({element:this.element.querySelector(`[data-ref=${t}Resizer]`)});this.resizerMap={topLeft:t("eTopLeft"),top:t("eTop"),topRight:t("eTopRight"),right:t("eRight"),bottomRight:t("eBottomRight"),bottom:t("eBottom"),bottomLeft:t("eBottomLeft"),left:t("eLeft")}}addResizers(){if(this.resizersAdded){return}const t=this.element;if(!t){return}t.appendChild(gh(Oh));this.createResizeMap();this.resizersAdded=true}removeResizers(){this.resizerMap=void 0;const t=this.element.querySelector(`.${zh}`);t?.remove();this.resizersAdded=false}getResizerElement(t){return this.resizerMap[t].element}onResizeStart(t,e){this.boundaryEl=this.findBoundaryElement();if(!this.positioned){this.initialisePosition()}this.currentResizer={isTop:!!e.match(/top/i),isRight:!!e.match(/right/i),isBottom:!!e.match(/bottom/i),isLeft:!!e.match(/left/i)};this.element.classList.add("ag-resizing");this.resizerMap[e].element.classList.add("ag-active");const{popup:i,forcePopupParentAsOffsetParent:s}=this.config;if(!i&&!s){this.applySizeToSiblings(this.currentResizer.isBottom||this.currentResizer.isTop)}this.isResizing=true;this.updateDragStartPosition(t.clientX,t.clientY)}getSiblings(){const t=this.element;const e=t.parentElement;if(!e){return null}return Array.prototype.slice.call(e.children).filter((t=>!t.classList.contains("ag-hidden")))}getMinSizeOfSiblings(){const t=this.getSiblings()||[];let e=0;let i=0;for(let s=0;st))}onResize(t){if(!this.isResizing||!this.currentResizer){return}const{popup:e,forcePopupParentAsOffsetParent:i}=this.config;const{isTop:s,isRight:o,isBottom:n,isLeft:r}=this.currentResizer;const l=o||r;const a=n||s;const{movementX:h,movementY:c}=this.calculateMouseMovement({e:t,isLeft:r,isTop:s});const u=this.position.x;const d=this.position.y;let f=0;let g=0;if(l&&h){const t=r?-1:1;const e=this.getWidth();const i=e+h*t;let s=false;if(r){f=e-i;if(u+f<=0||i<=this.minWidth){s=true;f=0}}if(!s){this.setWidth(i)}}if(a&&c){const t=s?-1:1;const e=this.getHeight();const i=e+c*t;let o=false;if(s){g=e-i;if(d+g<=0||i<=this.minHeight){o=true;g=0}}else if(!this.config.popup&&!this.config.forcePopupParentAsOffsetParent&ðis.element.parentElement.offsetHeight){o=true}if(!o){this.setHeight(i)}}this.updateDragStartPosition(t.clientX,t.clientY);if((e||i)&&f||g){this.offsetElement(u+f,d+g)}}onResizeEnd(t,e){this.isResizing=false;this.currentResizer=null;this.boundaryEl=null;this.element.classList.remove("ag-resizing");this.resizerMap[e].element.classList.remove("ag-active");this.dispatchLocalEvent({type:"resize"})}refreshSize(){const t=this.element;if(this.config.popup){if(!this.config.width){this.setWidth(t.offsetWidth)}if(!this.config.height){this.setHeight(t.offsetHeight)}}}onMoveStart(t){this.boundaryEl=this.findBoundaryElement();if(!this.positioned){this.initialisePosition()}this.isMoving=true;this.element.classList.add("ag-moving");this.updateDragStartPosition(t.clientX,t.clientY)}onMove(t){if(!this.isMoving){return}const{x:e,y:i}=this.position;let s;if(this.config.calculateTopBuffer){s=this.config.calculateTopBuffer()}const{movementX:o,movementY:n}=this.calculateMouseMovement({e:t,isTop:true,anywhereWithin:true,topBuffer:s});this.offsetElement(e+o,i+n);this.updateDragStartPosition(t.clientX,t.clientY)}onMoveEnd(){this.isMoving=false;this.boundaryEl=null;this.element.classList.remove("ag-moving")}setOffsetParent(){if(this.config.forcePopupParentAsOffsetParent&&this.popupSvc){this.offsetParent=this.popupSvc.getPopupParent()}else{this.offsetParent=this.element.offsetParent}}findBoundaryElement(){let t=this.element;while(t){if(window.getComputedStyle(t).position!=="static"){return t}t=t.parentElement}return this.element}clearResizeListeners(){while(this.resizeListeners.length){const t=this.resizeListeners.pop();this.dragSvc?.removeDragSource(t)}}destroy(){super.destroy();if(this.moveElementDragListener){this.dragSvc?.removeDragSource(this.moveElementDragListener)}this.constrainSizeToAvailableHeight(false);this.clearResizeListeners();this.removeResizers()}};var Vh="__ag_Grid_Stop_Propagation";function Nh(t){t[Vh]=true}function Gh(t){return t[Vh]===true}var $h="ag-focus-managed";var Wh=class extends ge{constructor(t,e={}){super();this.eFocusable=t;this.callbacks=e;this.callbacks={shouldStopEventPropagation:()=>false,onTabKeyDown:t=>{if(t.defaultPrevented){return}const e=Lr(this.beans,this.eFocusable,false,t.shiftKey);if(!e){return}e.focus();t.preventDefault()},...e}}postConstruct(){const{eFocusable:t,callbacks:{onFocusIn:e,onFocusOut:i}}=this;t.classList.add($h);this.addKeyDownListeners(t);if(e){this.addManagedElementListeners(t,{focusin:e})}if(i){this.addManagedElementListeners(t,{focusout:i})}}addKeyDownListeners(t){this.addManagedElementListeners(t,{keydown:t=>{if(t.defaultPrevented||Gh(t)){return}const{callbacks:e}=this;if(e.shouldStopEventPropagation(t)){Nh(t);return}if(t.key===Zn.TAB){e.onTabKeyDown(t)}else if(e.handleKeyDown){e.handleKeyDown(t)}}})}};var Uh=class extends Qo{constructor(t,e){super();this.filterNameKey=t;this.cssIdentifier=e;this.applyActive=false;this.debouncePending=false;this.defaultDebounceMs=0}postConstruct(){const t={tag:"div",cls:`ag-filter-body-wrapper ag-${this.cssIdentifier}-body-wrapper`,children:[this.createBodyTemplate()]};this.setTemplate(t,this.getAgComponents());this.createManagedBean(new Wh(this.getFocusableElement(),{handleKeyDown:this.handleKeyDown.bind(this)}));this.positionableFeature=this.createBean(new Lh(this.getPositionableElement(),{forcePopupParentAsOffsetParent:true}))}handleKeyDown(t){}init(t){const e=t;this.setParams(e);this.setModelIntoUi(e.state.model,true).then((()=>this.updateUiVisibility()))}refresh(t){const e=t;const i=this.params;this.params=e;const s=e.source;if(s==="colDef"){this.updateParams(e,i)}const o=e.state;const n=this.state;this.state=o;if(o.model!==n.model||o.state!==n.state){this.setModelIntoUi(o.model)}return true}setParams(t){this.params=t;this.state=t.state;this.commonUpdateParams(t)}updateParams(t,e){this.commonUpdateParams(t,e)}commonUpdateParams(t,e){this.applyActive=yh(t);this.setupApplyDebounced()}doesFilterPass(t){Ci(283);const{getHandler:e,model:i,column:s}=this.params;return e().doesFilterPass({...t,model:i,handlerParams:this.beans.colFilter.getHandlerParams(s)})}getFilterTitle(){return this.translate(this.filterNameKey)}isFilterActive(){Ci(284);return this.params.model!=null}setupApplyDebounced(){const t=bh(this.params,this.defaultDebounceMs);const e=be(this,this.checkApplyDebounce.bind(this),t);this.applyDebounced=()=>{this.debouncePending=true;e()}}checkApplyDebounce(){if(this.debouncePending){this.debouncePending=false;this.doApplyModel()}}getModel(){Ci(285);return this.params.model}setModel(t){Ci(286);const{beans:e,params:i}=this;return e.colFilter.setModelForColumnLegacy(i.column,t)}applyModel(t="api"){return this.doApplyModel()}canApply(t){return true}doApplyModel(t){const{params:e,state:i}=this;const s=!this.areModelsEqual(e.model,i.model);if(s){e.onAction("apply",t)}return s}onNewRowsLoaded(){}onUiChanged(t,e=false){this.updateUiVisibility();const i=this.getModelFromUi();const s={model:i,state:this.getState(),valid:this.canApply(i)};this.state=s;const o=this.params;o.onStateChange(s);o.onUiChange(this.getUiChangeEventParams());if(!this.gos.get("enableFilterHandlers")){this.eventSvc.dispatchEvent({type:"filterModified",column:o.column,filterInstance:this})}t??(t=this.applyActive?void 0:"debounce");if(t==="immediately"){this.doApplyModel({afterFloatingFilter:e,afterDataChange:false})}else if(t==="debounce"){this.applyDebounced()}}getState(){return void 0}getUiChangeEventParams(){return void 0}afterGuiAttached(t){this.lastContainerType=t?.container;this.refreshFilterResizer(t?.container)}refreshFilterResizer(t){const{positionableFeature:e,gos:i}=this;if(!e){return}const s=t==="floatingFilter"||t==="columnFilter";if(s){e.restoreLastSize();e.setResizable(i.get("enableRtl")?{bottom:true,bottomLeft:true,left:true}:{bottom:true,bottomRight:true,right:true})}else{e.removeSizeFromEl();e.setResizable(false)}e.constrainSizeToAvailableHeight(s)}afterGuiDetached(){this.checkApplyDebounce();this.positionableFeature?.constrainSizeToAvailableHeight(false)}destroy(){this.positionableFeature=this.destroyBean(this.positionableFeature);super.destroy()}translate(t){return Ch(this,t)}getPositionableElement(){return this.getGui()}areModelsEqual(t,e){if(t===e||t==null&&e==null){return true}if(t==null||e==null){return false}return this.areNonNullModelsEqual(t,e)}};function jh(t){return!!t.operator}function qh(t,e,i){if(e==null){return null}let s=null;const{compName:o,jsComp:n,fwComp:r}=jn(t,e);if(o){const t={agSetColumnFilter:"agSetColumnFloatingFilter",agMultiColumnFilter:"agMultiColumnFloatingFilter",agGroupColumnFilter:"agGroupColumnFloatingFilter",agNumberColumnFilter:"agNumberColumnFloatingFilter",agDateColumnFilter:"agDateColumnFloatingFilter",agTextColumnFilter:"agTextColumnFloatingFilter"};s=t[o]}else{const t=n==null&&r==null&&e.filter===true;if(t){s=i()}}return s}var Kh=["aggregation","filter","sort","pivot","columnVisibility","columnSizing","rowGroup"];var _h={AUTO_HEIGHT:"ag-layout-auto-height",NORMAL:"ag-layout-normal",PRINT:"ag-layout-print"};var Zh=class extends ge{constructor(t){super();this.view=t}postConstruct(){this.addManagedPropertyListener("domLayout",this.updateLayoutClasses.bind(this));this.updateLayoutClasses()}updateLayoutClasses(){const t=this.gos.get("domLayout");const e={autoHeight:t==="autoHeight",normal:t==="normal",print:t==="print"};const i=e.autoHeight?_h.AUTO_HEIGHT:e.print?_h.PRINT:_h.NORMAL;this.view.updateLayoutClasses(i,e)}};var Qh="Viewport";var Yh="fakeVScrollComp";var Jh=["fakeHScrollComp","centerHeader","topCenter","bottomCenter","stickyTopCenter","stickyBottomCenter"];var Xh=100;var tc=150;var ec=class extends ge{constructor(t){super();this.clearRetryListenerFncs=[];this.lastScrollSource=[null,null];this.scrollLeft=-1;this.nextScrollTop=-1;this.scrollTop=-1;this.lastOffsetHeight=-1;this.lastScrollTop=-1;this.lastIsHorizontalScrollShowing=false;this.scrollTimer=0;this.isScrollActive=false;this.isVerticalPositionInvalidated=true;this.isHorizontalPositionInvalidated=true;this.eBodyViewport=t;this.resetLastHScrollDebounced=be(this,(()=>this.lastScrollSource[1]=null),tc);this.resetLastVScrollDebounced=be(this,(()=>this.lastScrollSource[0]=null),tc)}wireBeans(t){this.ctrlsSvc=t.ctrlsSvc;this.animationFrameSvc=t.animationFrameSvc;this.visibleCols=t.visibleCols}destroy(){super.destroy();this.clearRetryListenerFncs=[];window.clearTimeout(this.scrollTimer)}postConstruct(){this.enableRtl=this.gos.get("enableRtl");const t=this.invalidateVerticalScroll.bind(this);const e=this.invalidateHorizontalScroll.bind(this);this.addManagedEventListeners({displayedColumnsWidthChanged:this.onDisplayedColumnsWidthChanged.bind(this),bodyHeightChanged:t,scrollGapChanged:e});this.addManagedElementListeners(this.eBodyViewport,{scroll:t});this.ctrlsSvc.whenReady(this,(t=>{this.centerRowsCtrl=t.center;this.onDisplayedColumnsWidthChanged();this.addScrollListener()}))}invalidateHorizontalScroll(){this.isHorizontalPositionInvalidated=true}invalidateVerticalScroll(){this.isVerticalPositionInvalidated=true}addScrollListener(){this.addHorizontalScrollListeners();this.addVerticalScrollListeners()}addHorizontalScrollListeners(){this.addManagedElementListeners(this.centerRowsCtrl.eViewport,{scroll:this.onHScroll.bind(this,Qh)});for(const t of Jh){const e=this.ctrlsSvc.get(t);this.registerScrollPartner(e,this.onHScroll.bind(this,t))}}addVerticalScrollListeners(){const t=this.ctrlsSvc.get("fakeVScrollComp");const e=this.gos.get("debounceVerticalScrollbar");const i=e?be(this,this.onVScroll.bind(this,Qh),Xh):this.onVScroll.bind(this,Qh);const s=e?be(this,this.onVScroll.bind(this,Yh),Xh):this.onVScroll.bind(this,Yh);this.addManagedElementListeners(this.eBodyViewport,{scroll:i});this.registerScrollPartner(t,s)}registerScrollPartner(t,e){t.onScrollCallback(e)}onDisplayedColumnsWidthChanged(){if(this.enableRtl){this.horizontallyScrollHeaderCenterAndFloatingCenter()}}horizontallyScrollHeaderCenterAndFloatingCenter(t){const e=this.centerRowsCtrl==null;if(e){return}if(t===void 0){t=this.centerRowsCtrl.getCenterViewportScrollLeft()}this.setScrollLeftForAllContainersExceptCurrent(Math.abs(t))}setScrollLeftForAllContainersExceptCurrent(t){for(const e of[...Jh,Qh]){if(this.lastScrollSource[1]===e){continue}const i=this.getViewportForSource(e);Ct(i,t,this.enableRtl)}}getViewportForSource(t){if(t===Qh){return this.centerRowsCtrl.eViewport}return this.ctrlsSvc.get(t).eViewport}isControllingScroll(t,e){if(this.lastScrollSource[e]==null){if(e===0){this.lastScrollSource[0]=t}else{this.lastScrollSource[1]=t}return true}return this.lastScrollSource[e]===t}onHScroll(t){if(!this.isControllingScroll(t,1)){return}const e=this.centerRowsCtrl.eViewport;const{scrollLeft:i}=e;if(this.shouldBlockScrollUpdate(1,i,true)){return}const s=wt(this.getViewportForSource(t),this.enableRtl);this.doHorizontalScroll(s);this.resetLastHScrollDebounced()}onVScroll(t){if(!this.isControllingScroll(t,0)){return}let e;if(t===Qh){e=this.eBodyViewport.scrollTop}else{e=this.ctrlsSvc.get("fakeVScrollComp").getScrollPosition()}if(this.shouldBlockScrollUpdate(0,e,true)){return}const{animationFrameSvc:i}=this;i?.setScrollTop(e);this.nextScrollTop=e;if(t===Qh){this.ctrlsSvc.get("fakeVScrollComp").setScrollPosition(e)}else{this.eBodyViewport.scrollTop=e}if(i?.active){i.schedule()}else{this.scrollGridIfNeeded(true)}this.resetLastVScrollDebounced()}doHorizontalScroll(t){const e=this.ctrlsSvc.get("fakeHScrollComp").getScrollPosition();if(this.scrollLeft===t&&t===e){return}this.scrollLeft=t;this.fireScrollEvent(1);this.horizontallyScrollHeaderCenterAndFloatingCenter(t);this.centerRowsCtrl.onHorizontalViewportChanged(true)}isScrolling(){return this.isScrollActive}fireScrollEvent(t){const e={type:"bodyScroll",direction:t===1?"horizontal":"vertical",left:this.scrollLeft,top:this.scrollTop};this.isScrollActive=true;this.eventSvc.dispatchEvent(e);window.clearTimeout(this.scrollTimer);this.scrollTimer=window.setTimeout((()=>{this.scrollTimer=0;this.isScrollActive=false;this.eventSvc.dispatchEvent({...e,type:"bodyScrollEnd"})}),tc)}shouldBlockScrollUpdate(t,e,i=false){if(i&&!lr()){return false}if(t===0){return this.shouldBlockVerticalScroll(e)}return this.shouldBlockHorizontalScroll(e)}shouldBlockVerticalScroll(t){const e=ft(this.eBodyViewport);const{scrollHeight:i}=this.eBodyViewport;return!!(t<0||t+e>i)}shouldBlockHorizontalScroll(t){const e=this.centerRowsCtrl.getCenterWidth();const{scrollWidth:i}=this.centerRowsCtrl.eViewport;if(this.enableRtl){if(t>0){return true}}else if(t<0){return true}return Math.abs(t)+e>i}redrawRowsAfterScroll(){this.fireScrollEvent(0)}checkScrollLeft(){const t=this.scrollLeft;let e=false;for(const i of Jh){const s=this.getViewportForSource(i);if(s.scrollLeft!==t){e=true;break}}if(e){this.onHScroll(Qh)}}scrollGridIfNeeded(t=false){const e=this.scrollTop!=this.nextScrollTop;if(e){this.scrollTop=this.nextScrollTop;if(t){this.invalidateVerticalScroll()}this.redrawRowsAfterScroll()}return e}setHorizontalScrollPosition(t,e=false){const i=0;const s=this.centerRowsCtrl.eViewport.scrollWidth-this.centerRowsCtrl.getCenterWidth();if(!e&&this.shouldBlockScrollUpdate(1,t)){if(this.enableRtl){t=t>0?0:s}else{t=Math.min(Math.max(t,i),s)}}Ct(this.centerRowsCtrl.eViewport,Math.abs(t),this.enableRtl);this.doHorizontalScroll(t)}setVerticalScrollPosition(t){this.invalidateVerticalScroll();this.eBodyViewport.scrollTop=t}getVScrollPosition(){if(!this.isVerticalPositionInvalidated){const{lastOffsetHeight:t,lastScrollTop:e}=this;return{top:e,bottom:e+t}}this.isVerticalPositionInvalidated=false;const{scrollTop:t,offsetHeight:e}=this.eBodyViewport;this.lastScrollTop=t;this.lastOffsetHeight=e;return{top:t,bottom:t+e}}getApproximateVScollPosition(){if(this.lastScrollTop>=0&&this.lastOffsetHeight>=0){return{top:this.scrollTop,bottom:this.scrollTop+this.lastOffsetHeight}}return this.getVScrollPosition()}getHScrollPosition(){return this.centerRowsCtrl.getHScrollPosition()}isHorizontalScrollShowing(){if(this.isHorizontalPositionInvalidated){this.lastIsHorizontalScrollShowing=this.centerRowsCtrl.isHorizontalScrollShowing();this.isHorizontalPositionInvalidated=false}return this.lastIsHorizontalScrollShowing}scrollHorizontally(t){const e=this.centerRowsCtrl.eViewport.scrollLeft;this.setHorizontalScrollPosition(e+t);return this.centerRowsCtrl.eViewport.scrollLeft-e}scrollToTop(){this.eBodyViewport.scrollTop=0}ensureNodeVisible(t,e=null){const{rowModel:i}=this.beans;const s=i.getRowCount();let o=-1;for(let e=0;e=0){this.ensureIndexVisible(o,e)}}ensureIndexVisible(t,e,i=0){if(Pi(this.gos,"print")){return}const{rowModel:s}=this.beans;const o=s.getRowCount();if(typeof t!=="number"||t<0||t>=o){Ci(88,{index:t});return}this.clearRetryListeners();const{frameworkOverrides:n,pageBounds:r,rowContainerHeight:l,rowRenderer:a}=this.beans;n.wrapIncoming((()=>{const o=this.ctrlsSvc.getGridBodyCtrl();const n=s.getRow(t);let h;let c;let u=0;this.invalidateVerticalScroll();do{const{stickyTopHeight:t,stickyBottomHeight:i}=o;const s=n.rowTop;const d=n.rowHeight;const f=r.getPixelOffset();const g=n.rowTop-f;const p=g+n.rowHeight;const m=this.getVScrollPosition();const v=l.divStretchOffset;const w=m.top+v;const C=m.bottom+v;const b=C-w;const y=l.getScrollPositionForPixel(g);const S=l.getScrollPositionForPixel(p-b);const x=Math.min((y+S)/2,g);const k=w+t>g;const R=C-ib){E=y-t}else{E=S+i}}if(E!==null){this.setVerticalScrollPosition(E);a.redraw({afterScroll:true})}h=s!==n.rowTop||d!==n.rowHeight;c=t!==o.stickyTopHeight||i!==o.stickyBottomHeight;u++}while((h||c)&&u<10);this.animationFrameSvc?.flushAllFrames();if(i<10&&(n?.stub||!this.beans.rowAutoHeight?.areRowsMeasured())){const o=this.getVScrollPosition().top;this.clearRetryListenerFncs=this.addManagedEventListeners({bodyScroll:()=>{const t=this.getVScrollPosition().top;if(o===t){return}this.clearRetryListeners()},modelUpdated:()=>{this.clearRetryListeners();if(t>=s.getRowCount()){return}this.ensureIndexVisible(t,e,i+1)}})}}))}clearRetryListeners(){for(const t of this.clearRetryListenerFncs){t()}this.clearRetryListenerFncs=[]}ensureColumnVisible(t,e="auto"){const{colModel:i,frameworkOverrides:s}=this.beans;const o=i.getCol(t);if(!o){return}if(o.isPinned()){return}if(!this.visibleCols.isColDisplayed(o)){return}const n=this.getPositionedHorizontalScroll(o,e);s.wrapIncoming((()=>{if(n!==null){this.centerRowsCtrl.setCenterViewportScrollLeft(n)}this.centerRowsCtrl.onHorizontalViewportChanged();this.animationFrameSvc?.flushAllFrames()}))}getPositionedHorizontalScroll(t,e){const{columnBeforeStart:i,columnAfterEnd:s}=this.isColumnOutsideViewport(t);const o=this.centerRowsCtrl.getCenterWidth()o:is;return{columnBeforeStart:r,columnAfterEnd:l}}getColumnBounds(t){const e=this.enableRtl;const i=this.visibleCols.bodyWidth;const s=t.getActualWidth();const o=t.getLeft();const n=e?-1:1;const r=e?i-o:o;const l=r+s*n;const a=r+s/2*n;return{colLeft:r,colMiddle:a,colRight:l}}getViewportBounds(){const t=this.centerRowsCtrl.getCenterWidth();const e=this.centerRowsCtrl.getCenterViewportScrollLeft();const i=e;const s=t+e;return{start:i,end:s,width:t}}};var ic=class extends ge{constructor(t,e=false){super();this.callback=t;this.addSpacer=e}postConstruct(){const t=this.setWidth.bind(this);this.addManagedPropertyListener("domLayout",t);this.addManagedEventListeners({columnContainerWidthChanged:t,displayedColumnsChanged:t,leftPinnedWidthChanged:t});if(this.addSpacer){this.addManagedEventListeners({rightPinnedWidthChanged:t,scrollVisibilityChanged:t,scrollbarWidthChanged:t})}this.setWidth()}setWidth(){const t=Pi(this.gos,"print");const{visibleCols:e,scrollVisibleSvc:i}=this.beans;const s=e.bodyWidth;const o=e.getColsLeftWidth();const n=e.getDisplayedColumnsRightWidth();let r;if(t){r=s+o+n}else{r=s;if(this.addSpacer){const t=this.gos.get("enableRtl")?o:n;if(t===0&&i.verticalScrollShowing){r+=i.getScrollbarWidth()}}}this.callback(r)}};var sc=class extends ge{constructor(t){super();this.centerContainerCtrl=t}wireBeans(t){this.scrollVisibleSvc=t.scrollVisibleSvc}postConstruct(){this.beans.ctrlsSvc.whenReady(this,(t=>{this.gridBodyCtrl=t.gridBodyCtrl;this.listenForResize()}));this.addManagedEventListeners({scrollbarWidthChanged:this.onScrollbarWidthChanged.bind(this)});this.addManagedPropertyListeners(["alwaysShowHorizontalScroll","alwaysShowVerticalScroll"],(()=>{this.checkViewportAndScrolls()}))}listenForResize(){const{beans:t,centerContainerCtrl:e,gridBodyCtrl:i}=this;const s=()=>{Vt(t,(()=>{this.onCenterViewportResized()}))};e.registerViewportResizeListener(s);i.registerBodyViewportResizeListener(s)}onScrollbarWidthChanged(){this.checkViewportAndScrolls()}onCenterViewportResized(){this.scrollVisibleSvc.updateScrollGap();if(this.centerContainerCtrl.isViewportInTheDOMTree()){const{pinnedCols:t,colFlex:e}=this.beans;t?.keepPinnedColumnsNarrowerThanViewport();this.checkViewportAndScrolls();const i=this.centerContainerCtrl.getCenterWidth();if(i!==this.centerWidth){this.centerWidth=i;e?.refreshFlexedColumns({viewportWidth:this.centerWidth,updateBodyWidths:true,fireResizedEvent:true})}}else{this.bodyHeight=0}}checkViewportAndScrolls(){this.updateScrollVisibleService();this.checkBodyHeight();this.onHorizontalViewportChanged();this.gridBodyCtrl.scrollFeature.checkScrollLeft()}getBodyHeight(){return this.bodyHeight}checkBodyHeight(){const t=this.gridBodyCtrl.eBodyViewport;const e=ft(t);if(this.bodyHeight!==e){this.bodyHeight=e;this.eventSvc.dispatchEvent({type:"bodyHeightChanged"})}}updateScrollVisibleService(){this.updateScrollVisibleServiceImpl();setTimeout(this.updateScrollVisibleServiceImpl.bind(this),500)}updateScrollVisibleServiceImpl(){if(!this.isAlive()){return}const t={horizontalScrollShowing:this.centerContainerCtrl.isHorizontalScrollShowing(),verticalScrollShowing:this.gridBodyCtrl.isVerticalScrollShowing()};this.scrollVisibleSvc.setScrollsVisible(t)}onHorizontalViewportChanged(){const t=this.centerContainerCtrl.getCenterWidth();const e=this.centerContainerCtrl.getViewportScrollLeft();this.beans.colViewport.setScrollPosition(t,e)}};function oc(t,e,i,s){const o=e.getColDef().cellRendererParams?.suppressMouseEventHandling;return rc(t,e,i,s,o)}function nc(t,e,i,s){const o=e?.suppressMouseEventHandling;return rc(t,void 0,i,s,o)}function rc(t,e,i,s,o){if(!o){return false}return o(Rs(t,{column:e,node:i,event:s}))}function lc(t,e,i){let s=e;while(s){const e=Oi(t,s,i);if(e){return e}s=s.parentElement}return null}var ac="cellCtrl";function hc(t,e){return lc(t,e,ac)}var cc="renderedRow";function uc(t,e){return lc(t,e,cc)}function dc(t,e,i,s,o){const n=s?s.getColDef().suppressKeyboardEvent:void 0;if(!n){return false}const r=Rs(t,{event:e,editing:o,column:s,node:i,data:i.data,colDef:s.getColDef()});if(n){const t=n(r);if(t){return true}}return false}function fc(t){const{pinnedRowModel:e,rowModel:i}=t;const[s,o]=[e?.isEmpty("top")??true,e?.isEmpty("bottom")??true];const n=s?null:"top";let r;let l;if(o){r=null;l=i.getRowCount()-1}else{r="bottom";l=e?.getPinnedBottomRowCount()??0-1}const{visibleCols:a,rangeSvc:h}=t;const c=a.allCols;if(!h||!c?.length){return}h.setCellRange({rowStartIndex:0,rowStartPinned:n,rowEndIndex:l,rowEndPinned:r})}var gc=65;var pc=67;var mc=86;var vc=68;var wc=90;var Cc=89;function bc(t){const{keyCode:e}=t;let i;switch(e){case gc:i=Zn.A;break;case pc:i=Zn.C;break;case mc:i=Zn.V;break;case vc:i=Zn.D;break;case wc:i=Zn.Z;break;case Cc:i=Zn.Y;break;default:i=t.code}return i}var yc=class extends ge{constructor(t){super();this.element=t}postConstruct(){this.addKeyboardListeners();this.addMouseListeners();this.beans.touchSvc?.mockRowContextMenu(this);this.editSvc=this.beans.editSvc}addKeyboardListeners(){const t="keydown";const e=this.processKeyboardEvent.bind(this,t);this.addManagedElementListeners(this.element,{[t]:e})}addMouseListeners(){const t=Kt("touchstart")?"touchstart":"mousedown";const e=["dblclick","contextmenu","mouseover","mouseout","click",t];for(const t of e){const e=this.processMouseEvent.bind(this,t);this.addManagedElementListeners(this.element,{[t]:e})}}processMouseEvent(t,e){if(!ee(this.beans,e)||Gh(e)){return}const{cellCtrl:i,rowCtrl:s}=this.getControlsForEventTarget(e.target);if(t==="contextmenu"){if(i?.column){i.dispatchCellContextMenuEvent(e)}this.beans.contextMenuSvc?.handleContextMenuMouseEvent(e,void 0,s,i)}else{if(i){i.onMouseEvent(t,e)}if(s){s.onMouseEvent(t,e)}}}getControlsForEventTarget(t){const{gos:e}=this;return{cellCtrl:hc(e,t),rowCtrl:uc(e,t)}}processKeyboardEvent(t,e){const{cellCtrl:i,rowCtrl:s}=this.getControlsForEventTarget(e.target);if(e.defaultPrevented){return}if(i){this.processCellKeyboardEvent(i,t,e)}else if(s?.isFullWidth()){this.processFullWidthRowKeyboardEvent(s,t,e)}}processCellKeyboardEvent(t,e,i){const s=this.editSvc?.isEditing(t,{withOpenEditor:true})??false;const o=!dc(this.gos,i,t.rowNode,t.column,s);if(o){if(e==="keydown"){const e=!s&&this.beans.navigation?.handlePageScrollingKey(i);if(!e){t.onKeyDown(i)}this.doGridOperations(i,s);if(Mr(i)){t.processCharacter(i)}}}if(e==="keydown"){this.eventSvc.dispatchEvent(t.createEvent(i,"cellKeyDown"))}}processFullWidthRowKeyboardEvent(t,e,i){const{rowNode:s}=t;const{focusSvc:o,navigation:n}=this.beans;const r=o.getFocusedCell();const l=r?.column;const a=!dc(this.gos,i,s,l,false);if(a){const s=i.key;if(e==="keydown"){switch(s){case Zn.PAGE_HOME:case Zn.PAGE_END:case Zn.PAGE_UP:case Zn.PAGE_DOWN:n?.handlePageScrollingKey(i,true);break;case Zn.LEFT:case Zn.RIGHT:if(!this.gos.get("embedFullWidthRows")){break}case Zn.UP:case Zn.DOWN:t.onKeyboardNavigate(i);break;case Zn.TAB:t.onTabKeyDown(i);break}}}if(e==="keydown"){this.eventSvc.dispatchEvent(t.createRowEvent("cellKeyDown",i))}}doGridOperations(t,e){if(!t.ctrlKey&&!t.metaKey){return}if(e){return}if(!ee(this.beans,t)){return}const i=bc(t);const{clipboardSvc:s,undoRedo:o}=this.beans;if(i===Zn.A){return this.onCtrlAndA(t)}if(i===Zn.C){return this.onCtrlAndC(s,t)}if(i===Zn.D){return this.onCtrlAndD(s,t)}if(i===Zn.V){return this.onCtrlAndV(s,t)}if(i===Zn.X){return this.onCtrlAndX(s,t)}if(i===Zn.Y){return this.onCtrlAndY(o)}if(i===Zn.Z){return this.onCtrlAndZ(o,t)}}onCtrlAndA(t){const{beans:{rowModel:e,rangeSvc:i,selectionSvc:s},gos:o}=this;if(i&&ns(o)&&!ms(o)&&e.isRowsToRender()){fc(this.beans)}else if(s){s.selectAllRowNodes({source:"keyboardSelectAll",selectAll:ps(o)})}t.preventDefault()}onCtrlAndC(t,e){if(!t||this.gos.get("enableCellTextSelection")){return}const{cellCtrl:i}=this.getControlsForEventTarget(e.target);if(this.editSvc?.isEditing(i,{withOpenEditor:true})){return}e.preventDefault();t.copyToClipboard()}onCtrlAndX(t,e){if(!t||this.gos.get("enableCellTextSelection")||this.gos.get("suppressCutToClipboard")){return}const{cellCtrl:i}=this.getControlsForEventTarget(e.target);if(this.editSvc?.isEditing(i,{withOpenEditor:true})){return}e.preventDefault();t.cutToClipboard(void 0,"ui")}onCtrlAndV(t,e){const{cellCtrl:i}=this.getControlsForEventTarget(e.target);if(this.editSvc?.isEditing(i,{withOpenEditor:true})){return}if(t&&!this.gos.get("suppressClipboardPaste")){t.pasteFromClipboard()}}onCtrlAndD(t,e){if(t&&!this.gos.get("suppressClipboardPaste")){t.copyRangeDown()}e.preventDefault()}onCtrlAndZ(t,e){if(!this.gos.get("undoRedoCellEditing")||!t){return}e.preventDefault();if(e.shiftKey){t.redo("ui")}else{t.undo("ui")}}onCtrlAndY(t){t?.redo("ui")}};var Sc=class extends ge{constructor(t,e){super();this.eContainer=t;this.eViewport=e}postConstruct(){this.addManagedEventListeners({rowContainerHeightChanged:this.onHeightChanged.bind(this,this.beans.rowContainerHeight)})}onHeightChanged(t){const e=t.uiContainerHeight;const i=e!=null?`${e}px`:``;this.eContainer.style.height=i;if(this.eViewport){this.eViewport.style.height=i}}};var xc=t=>t.topRowCtrls;var kc=t=>t.getStickyTopRowCtrls();var Rc=t=>t.getStickyBottomRowCtrls();var Ec=t=>t.bottomRowCtrls;var Fc=t=>t.allRowCtrls;var Mc=t=>t.getCtrls("top");var Pc=t=>t.getCtrls("center");var Dc=t=>t.getCtrls("bottom");var Tc={center:{type:"center",name:"center-cols",getRowCtrls:Fc,getSpannedRowCtrls:Pc},left:{type:"left",name:"pinned-left-cols",pinnedType:"left",getRowCtrls:Fc,getSpannedRowCtrls:Pc},right:{type:"right",name:"pinned-right-cols",pinnedType:"right",getRowCtrls:Fc,getSpannedRowCtrls:Pc},fullWidth:{type:"fullWidth",name:"full-width",fullWidth:true,getRowCtrls:Fc},topCenter:{type:"center",name:"floating-top",getRowCtrls:xc,getSpannedRowCtrls:Mc},topLeft:{type:"left",name:"pinned-left-floating",container:"ag-pinned-left-floating-top",pinnedType:"left",getRowCtrls:xc,getSpannedRowCtrls:Mc},topRight:{type:"right",name:"pinned-right-floating",container:"ag-pinned-right-floating-top",pinnedType:"right",getRowCtrls:xc,getSpannedRowCtrls:Mc},topFullWidth:{type:"fullWidth",name:"floating-top-full-width",fullWidth:true,getRowCtrls:xc},stickyTopCenter:{type:"center",name:"sticky-top",getRowCtrls:kc},stickyTopLeft:{type:"left",name:"pinned-left-sticky-top",container:"ag-pinned-left-sticky-top",pinnedType:"left",getRowCtrls:kc},stickyTopRight:{type:"right",name:"pinned-right-sticky-top",container:"ag-pinned-right-sticky-top",pinnedType:"right",getRowCtrls:kc},stickyTopFullWidth:{type:"fullWidth",name:"sticky-top-full-width",fullWidth:true,getRowCtrls:kc},stickyBottomCenter:{type:"center",name:"sticky-bottom",getRowCtrls:Rc},stickyBottomLeft:{type:"left",name:"pinned-left-sticky-bottom",container:"ag-pinned-left-sticky-bottom",pinnedType:"left",getRowCtrls:Rc},stickyBottomRight:{type:"right",name:"pinned-right-sticky-bottom",container:"ag-pinned-right-sticky-bottom",pinnedType:"right",getRowCtrls:Rc},stickyBottomFullWidth:{type:"fullWidth",name:"sticky-bottom-full-width",fullWidth:true,getRowCtrls:Rc},bottomCenter:{type:"center",name:"floating-bottom",getRowCtrls:Ec,getSpannedRowCtrls:Dc},bottomLeft:{type:"left",name:"pinned-left-floating-bottom",container:"ag-pinned-left-floating-bottom",pinnedType:"left",getRowCtrls:Ec,getSpannedRowCtrls:Dc},bottomRight:{type:"right",name:"pinned-right-floating-bottom",container:"ag-pinned-right-floating-bottom",pinnedType:"right",getRowCtrls:Ec,getSpannedRowCtrls:Dc},bottomFullWidth:{type:"fullWidth",name:"floating-bottom-full-width",fullWidth:true,getRowCtrls:Ec}};function Bc(t){const e=zc(t);return`ag-${e.name}-viewport`}function Ac(t){const e=zc(t);return e.container??`ag-${e.name}-container`}function Ic(t){const e=zc(t);return`ag-${e.name}-spanned-cells-container`}function zc(t){return Tc[t]}var Hc=["topCenter","topLeft","topRight"];var Oc=["bottomCenter","bottomLeft","bottomRight"];var Lc=["center","left","right"];var Vc=["center","left","right","fullWidth"];var Nc=["stickyTopCenter","stickyBottomCenter","center","topCenter","bottomCenter"];var Gc=["left","bottomLeft","topLeft","stickyTopLeft","stickyBottomLeft"];var $c=["right","bottomRight","topRight","stickyTopRight","stickyBottomRight"];var Wc=["stickyTopCenter","stickyTopLeft","stickyTopRight"];var Uc=["stickyBottomCenter","stickyBottomLeft","stickyBottomRight"];var jc=[...Wc,"stickyTopFullWidth",...Uc,"stickyBottomFullWidth"];var qc=[...Hc,...Oc,...Lc,...Wc,...Uc];var Kc=class extends ge{constructor(t){super();this.name=t;this.visible=true;this.EMPTY_CTRLS=[];this.options=zc(t)}postConstruct(){this.enableRtl=this.gos.get("enableRtl");this.forContainers(["center"],(()=>{this.viewportSizeFeature=this.createManagedBean(new sc(this));this.addManagedEventListeners({stickyTopOffsetChanged:this.onStickyTopOffsetChanged.bind(this)})}))}onStickyTopOffsetChanged(t){this.comp.setOffsetTop(`${t.offset}px`)}registerWithCtrlsService(){if(this.options.fullWidth){return}this.beans.ctrlsSvc.register(this.name,this)}forContainers(t,e){if(t.indexOf(this.name)>=0){e()}}setComp(t,e,i,s){this.comp=t;this.eContainer=e;this.eSpannedContainer=i;this.eViewport=s;this.createManagedBean(new yc(this.eViewport??this.eContainer));this.addPreventScrollWhileDragging();this.listenOnDomOrder();const{pinnedCols:o,rangeSvc:n}=this.beans;const r=()=>this.onPinnedWidthChanged();this.forContainers(Gc,(()=>{this.pinnedWidthFeature=this.createOptionalManagedBean(o?.createPinnedWidthFeature(true,this.eContainer,this.eSpannedContainer));this.addManagedEventListeners({leftPinnedWidthChanged:r})}));this.forContainers($c,(()=>{this.pinnedWidthFeature=this.createOptionalManagedBean(o?.createPinnedWidthFeature(false,this.eContainer,this.eSpannedContainer));this.addManagedEventListeners({rightPinnedWidthChanged:r})}));this.forContainers(Vc,(()=>this.createManagedBean(new Sc(this.eContainer,this.name==="center"?s:void 0))));if(n){this.forContainers(qc,(()=>this.createManagedBean(n.createDragListenerFeature(this.eContainer))))}this.forContainers(Nc,(()=>this.createManagedBean(new ic((t=>this.comp.setContainerWidth(`${t}px`))))));this.visible=this.isContainerVisible();this.addListeners();this.registerWithCtrlsService()}onScrollCallback(t){this.addManagedElementListeners(this.eViewport,{scroll:t})}addListeners(){const{spannedRowRenderer:t,gos:e}=this.beans;const i=this.onDisplayedColumnsChanged.bind(this);this.addManagedEventListeners({displayedColumnsChanged:i,displayedColumnsWidthChanged:i,displayedRowsChanged:t=>this.onDisplayedRowsChanged(t.afterScroll)});i();this.onDisplayedRowsChanged();if(t&&this.options.getSpannedRowCtrls&&e.get("enableCellSpan")){this.addManagedListeners(t,{spannedRowsUpdated:()=>{const e=this.options.getSpannedRowCtrls(t);if(!e){return}this.comp.setSpannedRowCtrls(e,false)}})}}listenOnDomOrder(){const t=jc.indexOf(this.name)>=0;if(t){this.comp.setDomOrder(true);return}const e=()=>{const t=this.gos.get("ensureDomOrder");const e=Pi(this.gos,"print");this.comp.setDomOrder(t||e)};this.addManagedPropertyListener("domLayout",e);e()}onDisplayedColumnsChanged(){this.forContainers(["center"],(()=>this.onHorizontalViewportChanged()))}addPreventScrollWhileDragging(){const{dragSvc:t}=this.beans;if(!t){return}const e=e=>{if(t.dragging){if(e.cancelable){e.preventDefault()}}};this.eContainer.addEventListener("touchmove",e,{passive:false});this.addDestroyFunc((()=>this.eContainer.removeEventListener("touchmove",e)))}onHorizontalViewportChanged(t=false){const e=this.getCenterWidth();const i=this.getCenterViewportScrollLeft();this.beans.colViewport.setScrollPosition(e,i,t)}hasHorizontalScrollGap(){return this.eContainer.clientWidth-this.eViewport.clientWidth<0}hasVerticalScrollGap(){return this.eContainer.clientHeight-this.eViewport.clientHeight<0}getCenterWidth(){return gt(this.eViewport)}getCenterViewportScrollLeft(){return wt(this.eViewport,this.enableRtl)}registerViewportResizeListener(t){const e=Lt(this.beans,this.eViewport,t);this.addDestroyFunc((()=>e()))}isViewportInTheDOMTree(){return St(this.eViewport)}getViewportScrollLeft(){return wt(this.eViewport,this.enableRtl)}isHorizontalScrollShowing(){const t=this.gos.get("alwaysShowHorizontalScroll");return t||Dt(this.eViewport)}setHorizontalScroll(t){this.comp.setHorizontalScroll(t)}getHScrollPosition(){const t={left:this.eViewport.scrollLeft,right:this.eViewport.scrollLeft+this.eViewport.offsetWidth};return t}setCenterViewportScrollLeft(t){Ct(this.eViewport,t,this.enableRtl)}isContainerVisible(){const t=this.options.pinnedType!=null;return!t||!!this.pinnedWidthFeature&&this.pinnedWidthFeature.getWidth()>0}onPinnedWidthChanged(){const t=this.isContainerVisible();if(this.visible!=t){this.visible=t;this.onDisplayedRowsChanged()}}onDisplayedRowsChanged(t=false){const e=this.options.getRowCtrls(this.beans.rowRenderer);if(!this.visible||e.length===0){this.comp.setRowCtrls({rowCtrls:this.EMPTY_CTRLS});return}const i=Pi(this.gos,"print");const s=this.gos.get("embedFullWidthRows");const o=s||i;const n=e.filter((t=>{const e=t.isFullWidth();const i=this.options.fullWidth?!o&&e:o||!e;return i}));this.comp.setRowCtrls({rowCtrls:n,useFlushSync:t})}};var _c="ag-force-vertical-scroll";var Zc="ag-selectable";var Qc="ag-column-moving";var Yc=class extends ge{constructor(){super(...arguments);this.stickyTopHeight=0;this.stickyBottomHeight=0}wireBeans(t){this.ctrlsSvc=t.ctrlsSvc;this.colModel=t.colModel;this.scrollVisibleSvc=t.scrollVisibleSvc;this.pinnedRowModel=t.pinnedRowModel;this.filterManager=t.filterManager;this.rowGroupColsSvc=t.rowGroupColsSvc}setComp(t,e,i,s,o,n,r){this.comp=t;this.eGridBody=e;this.eBodyViewport=i;this.eTop=s;this.eBottom=o;this.eStickyTop=n;this.eStickyBottom=r;this.eCenterColsViewport=i.querySelector(`.${Bc("center")}`);this.eFullWidthContainer=i.querySelector(`.${Ac("fullWidth")}`);this.eStickyTopFullWidthContainer=n.querySelector(`.${Ac("stickyTopFullWidth")}`);this.eStickyBottomFullWidthContainer=r.querySelector(`.${Ac("stickyBottomFullWidth")}`);this.setCellTextSelection(this.gos.get("enableCellTextSelection"));this.addManagedPropertyListener("enableCellTextSelection",(t=>this.setCellTextSelection(t.currentValue)));this.createManagedBean(new Zh(this.comp));this.scrollFeature=this.createManagedBean(new ec(i));this.beans.rowDragSvc?.setupRowDrag(i,this);this.setupRowAnimationCssClass();this.addEventListeners();this.addFocusListeners([s,i,o,n,r]);this.setGridRootRole();this.onGridColumnsChanged();this.addBodyViewportListener();this.setFloatingHeights();this.disableBrowserDragging();this.addStopEditingWhenGridLosesFocus();this.updateScrollingClasses();this.filterManager?.setupAdvFilterHeaderComp(s);this.ctrlsSvc.register("gridBodyCtrl",this)}addEventListeners(){const t=this.setFloatingHeights.bind(this);const e=this.setGridRootRole.bind(this);const i=this.toggleRowResizeStyles.bind(this);this.addManagedEventListeners({gridColumnsChanged:this.onGridColumnsChanged.bind(this),scrollVisibilityChanged:this.onScrollVisibilityChanged.bind(this),scrollGapChanged:this.updateScrollingClasses.bind(this),pinnedRowDataChanged:t,pinnedHeightChanged:t,pinnedRowsChanged:t,headerHeightChanged:this.setStickyTopOffsetTop.bind(this),columnRowGroupChanged:e,columnPivotChanged:e,rowResizeStarted:i,rowResizeEnded:i});this.addManagedPropertyListener("treeData",e)}toggleRowResizeStyles(t){const e=t.type==="rowResizeStarted";this.eBodyViewport.classList.toggle("ag-prevent-animation",e)}onGridColumnsChanged(){const t=this.beans.colModel.getCols();this.comp.setColumnCount(t.length)}onScrollVisibilityChanged(){const{scrollVisibleSvc:t}=this;const e=t.verticalScrollShowing;this.setVerticalScrollPaddingVisible(e);this.setStickyWidth(e);this.setStickyBottomOffsetBottom();const i=e?t.getScrollbarWidth()||0:0;const s=dr()?16:0;const o=`calc(100% + ${i+s}px)`;Vt(this.beans,(()=>this.comp.setBodyViewportWidth(o)));this.updateScrollingClasses()}setGridRootRole(){const{rowGroupColsSvc:t,colModel:e}=this;let i=this.gos.get("treeData");if(!i){const s=e.isPivotMode();const o=!t?0:t.columns.length;const n=s?2:1;i=o>=n}this.comp.setGridRootRole(i?"treegrid":"grid")}addFocusListeners(t){for(const e of t){this.addManagedElementListeners(e,{focusin:t=>{const{target:i}=t;const s=ut(i,"ag-root",e);e.classList.toggle("ag-has-focus",!s)},focusout:t=>{const{target:i,relatedTarget:s}=t;const o=e.contains(s);const n=ut(s,"ag-root",e);const r=ut(i,"ag-root",e);if(r){return}if(!o||n){e.classList.remove("ag-has-focus")}}})}}setColumnMovingCss(t){this.comp.setColumnMovingCss(Qc,t)}setCellTextSelection(t=false){this.comp.setCellSelectableCss(Zc,t)}updateScrollingClasses(){const{eGridBody:{classList:t},scrollVisibleSvc:e}=this;t.toggle("ag-body-vertical-content-no-gap",!e.verticalScrollGap);t.toggle("ag-body-horizontal-content-no-gap",!e.horizontalScrollGap)}disableBrowserDragging(){this.addManagedElementListeners(this.eGridBody,{dragstart:t=>{if(t.target instanceof HTMLImageElement){t.preventDefault();return false}}})}addStopEditingWhenGridLosesFocus(){this.beans.editSvc?.addStopEditingWhenGridLosesFocus([this.eBodyViewport,this.eBottom,this.eTop,this.eStickyTop,this.eStickyBottom])}updateRowCount(){const t=(this.ctrlsSvc.getHeaderRowContainerCtrl()?.getRowCount()??0)+(this.filterManager?.getHeaderRowCount()??0);const{rowModel:e}=this.beans;const i=e.isLastRowIndexKnown()?e.getRowCount():-1;const s=i===-1?-1:t+i;this.comp.setRowCount(s)}registerBodyViewportResizeListener(t){this.comp.registerBodyViewportResizeListener(t)}setVerticalScrollPaddingVisible(t){const e=t?"scroll":"hidden";this.comp.setPinnedTopBottomOverflowY(e)}isVerticalScrollShowing(){const t=this.gos.get("alwaysShowVerticalScroll");const e=t?_c:null;const i=Pi(this.gos,"normal");this.comp.setAlwaysVerticalScrollClass(e,t);return t||i&&Tt(this.eBodyViewport)}setupRowAnimationCssClass(){const{rowContainerHeight:t,environment:e}=this.beans;let i=e.sizesMeasured;const s=()=>{const e=i&&Vi(this.gos)&&!t.stretching;const s=e?"ag-row-animation":"ag-row-no-animation";this.comp.setRowAnimationCssOnBodyViewport(s,e)};s();this.addManagedEventListeners({heightScaleChanged:s});this.addManagedPropertyListener("animateRows",s);this.addManagedEventListeners({gridStylesChanged:()=>{if(!i&&e.sizesMeasured){i=true;s()}}})}addBodyViewportListener(){const{eBodyViewport:t,eStickyTop:e,eStickyBottom:i,eTop:s,eBottom:o,beans:{popupSvc:n,touchSvc:r}}=this;const l=this.onBodyViewportContextMenu.bind(this);this.addManagedElementListeners(t,{contextmenu:l});r?.mockBodyContextMenu(this,l);this.addManagedElementListeners(t,{wheel:this.onBodyViewportWheel.bind(this,n)});const a=this.onStickyWheel.bind(this);for(const t of[e,i,s,o]){this.addManagedElementListeners(t,{wheel:a})}const h=this.onHorizontalWheel.bind(this);for(const t of["left","right","topLeft","topRight","bottomLeft","bottomRight"]){this.addManagedElementListeners(this.ctrlsSvc.get(t).eContainer,{wheel:h})}this.addFullWidthContainerWheelListener()}addFullWidthContainerWheelListener(){this.addManagedElementListeners(this.eFullWidthContainer,{wheel:t=>this.onFullWidthContainerWheel(t)})}onFullWidthContainerWheel(t){const{deltaX:e,deltaY:i,shiftKey:s}=t;const o=s||Math.abs(e)>Math.abs(i);if(o&&ee(this.beans,t)){this.scrollGridBodyToMatchEvent(t)}}onStickyWheel(t){const{deltaY:e}=t;const i=this.scrollVertically(e);if(i>0){t.preventDefault()}}onHorizontalWheel(t){const{deltaX:e,deltaY:i,shiftKey:s}=t;const o=s||Math.abs(e)>Math.abs(i);if(!o){return}this.scrollGridBodyToMatchEvent(t)}scrollGridBodyToMatchEvent(t){const{deltaX:e,deltaY:i}=t;t.preventDefault();this.eCenterColsViewport.scrollBy({left:e||i})}onBodyViewportContextMenu(t,e,i){if(!t&&!i){return}if(this.gos.get("preventDefaultOnContextMenu")){const e=t||i;e.preventDefault()}const{target:s}=t||e;if(s===this.eBodyViewport||s===this.ctrlsSvc.get("center").eViewport){this.beans.contextMenuSvc?.showContextMenu({mouseEvent:t,touchEvent:i,value:null,anchorToElement:this.eGridBody,source:"ui"})}}onBodyViewportWheel(t,e){if(!this.gos.get("suppressScrollWhenPopupsAreOpen")){return}if(t?.hasAnchoredPopup()){e.preventDefault()}}scrollVertically(t){const e=this.eBodyViewport.scrollTop;this.scrollFeature.setVerticalScrollPosition(e+t);return this.eBodyViewport.scrollTop-e}setFloatingHeights(){const{pinnedRowModel:t,beans:{environment:e}}=this;const i=t?.getPinnedTopTotalHeight();const s=t?.getPinnedBottomTotalHeight();const o=e.getPinnedRowBorderWidth();const n=e.getRowBorderWidth();const r=o-n;const l=!i?0:r+i;const a=!s?0:r+s;this.comp.setTopHeight(l);this.comp.setBottomHeight(a);this.comp.setTopInvisible(l<=0);this.comp.setBottomInvisible(a<=0);this.setStickyTopOffsetTop();this.setStickyBottomOffsetBottom()}setStickyTopHeight(t=0){this.comp.setStickyTopHeight(`${t}px`);this.stickyTopHeight=t}setStickyBottomHeight(t=0){this.comp.setStickyBottomHeight(`${t}px`);this.stickyBottomHeight=t}setStickyWidth(t){if(!t){this.comp.setStickyTopWidth("100%");this.comp.setStickyBottomWidth("100%")}else{const t=this.scrollVisibleSvc.getScrollbarWidth();this.comp.setStickyTopWidth(`calc(100% - ${t}px)`);this.comp.setStickyBottomWidth(`calc(100% - ${t}px)`)}}setStickyTopOffsetTop(){const t=this.ctrlsSvc.get("gridHeaderCtrl");const e=t.headerHeight+(this.filterManager?.getHeaderHeight()??0);const i=this.pinnedRowModel?.getPinnedTopTotalHeight()??0;let s=0;if(e>0){s+=e}if(i>0){s+=i}if(s>0){s+=1}this.comp.setStickyTopTop(`${s}px`)}setStickyBottomOffsetBottom(){const{pinnedRowModel:t,scrollVisibleSvc:e,comp:i}=this;const s=t?.getPinnedBottomTotalHeight()??0;const o=e.horizontalScrollShowing;const n=o?e.getScrollbarWidth()||0:0;const r=s+n;i.setStickyBottomBottom(`${r}px`)}};function Jc(t,e){return hc(t,e.target)?.getFocusedCellPosition()??null}function Xc(t,e){const i=Pi(t.gos,"normal");const s=e;let o;let n;if(s.clientX!=null||s.clientY!=null){o=s.clientX;n=s.clientY}else{o=s.x;n=s.y}const{pageFirstPixel:r}=t.pageBounds.getCurrentPagePixelRange();n+=r;if(i){const e=t.ctrlsSvc.getScrollFeature();const i=e.getVScrollPosition();const s=e.getHScrollPosition();o+=s.left;n+=i.top}return{x:o,y:n}}var tu=class extends Qo{constructor(t,e){super();this.direction=e;this.eViewport=jo;this.eContainer=jo;this.hideTimeout=0;this.setTemplate(t)}postConstruct(){this.addManagedEventListeners({scrollVisibilityChanged:this.onScrollVisibilityChanged.bind(this)});this.onScrollVisibilityChanged();this.toggleCss("ag-apple-scrollbar",rr()||lr())}destroy(){super.destroy();window.clearTimeout(this.hideTimeout)}initialiseInvisibleScrollbar(){if(this.invisibleScrollbar!==void 0){return}this.invisibleScrollbar=dr();if(this.invisibleScrollbar){this.hideAndShowInvisibleScrollAsNeeded();this.addActiveListenerToggles()}}addActiveListenerToggles(){const t=this.getGui();const e=()=>this.toggleCss("ag-scrollbar-active",true);const i=()=>this.toggleCss("ag-scrollbar-active",false);this.addManagedListeners(t,{mouseenter:e,mousedown:e,touchstart:e,mouseleave:i,touchend:i})}onScrollVisibilityChanged(){if(this.invisibleScrollbar===void 0){this.initialiseInvisibleScrollbar()}Vt(this.beans,(()=>this.setScrollVisible()))}hideAndShowInvisibleScrollAsNeeded(){this.addManagedEventListeners({bodyScroll:t=>{if(t.direction===this.direction){if(this.hideTimeout){window.clearTimeout(this.hideTimeout);this.hideTimeout=0}this.toggleCss("ag-scrollbar-scrolling",true)}},bodyScrollEnd:()=>{this.hideTimeout=window.setTimeout((()=>{this.toggleCss("ag-scrollbar-scrolling",false);this.hideTimeout=0}),400)}})}attemptSettingScrollPosition(t){const e=this.eViewport;Se(this,(()=>xt(e)),(()=>this.setScrollPosition(t)),100)}onScrollCallback(t){this.addManagedElementListeners(this.eViewport,{scroll:t})}};var eu={tag:"div",cls:"ag-body-horizontal-scroll",attrs:{"aria-hidden":"true"},children:[{tag:"div",ref:"eLeftSpacer",cls:"ag-horizontal-left-spacer"},{tag:"div",ref:"eViewport",cls:"ag-body-horizontal-scroll-viewport",children:[{tag:"div",ref:"eContainer",cls:"ag-body-horizontal-scroll-container"}]},{tag:"div",ref:"eRightSpacer",cls:"ag-horizontal-right-spacer"}]};var iu=class extends tu{constructor(){super(eu,"horizontal");this.eLeftSpacer=jo;this.eRightSpacer=jo;this.setScrollVisibleDebounce=0}wireBeans(t){this.visibleCols=t.visibleCols;this.scrollVisibleSvc=t.scrollVisibleSvc}postConstruct(){super.postConstruct();const t=this.setFakeHScrollSpacerWidths.bind(this);this.addManagedEventListeners({displayedColumnsChanged:t,displayedColumnsWidthChanged:t,pinnedRowDataChanged:this.refreshCompBottom.bind(this)});this.addManagedPropertyListener("domLayout",t);this.beans.ctrlsSvc.register("fakeHScrollComp",this);this.createManagedBean(new ic((t=>this.eContainer.style.width=`${t}px`)));this.addManagedPropertyListeners(["suppressHorizontalScroll"],this.onScrollVisibilityChanged.bind(this))}destroy(){window.clearTimeout(this.setScrollVisibleDebounce);super.destroy()}initialiseInvisibleScrollbar(){if(this.invisibleScrollbar!==void 0){return}this.enableRtl=this.gos.get("enableRtl");super.initialiseInvisibleScrollbar();if(this.invisibleScrollbar){this.refreshCompBottom()}}refreshCompBottom(){if(!this.invisibleScrollbar){return}const t=this.beans.pinnedRowModel?.getPinnedBottomTotalHeight()??0;this.getGui().style.bottom=`${t}px`}onScrollVisibilityChanged(){super.onScrollVisibilityChanged();this.setFakeHScrollSpacerWidths()}setFakeHScrollSpacerWidths(){const t=this.scrollVisibleSvc.verticalScrollShowing;let e=this.visibleCols.getDisplayedColumnsRightWidth();const i=!this.enableRtl&&t;const s=this.scrollVisibleSvc.getScrollbarWidth();if(i){e+=s}At(this.eRightSpacer,e);this.eRightSpacer.classList.toggle("ag-scroller-corner",e<=s);let o=this.visibleCols.getColsLeftWidth();const n=this.enableRtl&&t;if(n){o+=s}At(this.eLeftSpacer,o);this.eLeftSpacer.classList.toggle("ag-scroller-corner",o<=s)}setScrollVisible(){const t=this.scrollVisibleSvc.horizontalScrollShowing;const e=this.invisibleScrollbar;const i=this.gos.get("suppressHorizontalScroll");const s=t?this.scrollVisibleSvc.getScrollbarWidth()||0:0;const o=s===0&&e?16:s;const n=!i?o:0;const r=()=>{this.setScrollVisibleDebounce=0;this.toggleCss("ag-scrollbar-invisible",e);It(this.getGui(),n);It(this.eViewport,n);It(this.eContainer,n);if(!n){this.eContainer.style.setProperty("min-height","1px")}this.setVisible(t,{skipAriaHidden:true})};window.clearTimeout(this.setScrollVisibleDebounce);if(!t){r()}else{this.setScrollVisibleDebounce=window.setTimeout(r,100)}}getScrollPosition(){return wt(this.eViewport,this.enableRtl)}setScrollPosition(t){if(!xt(this.eViewport)){this.attemptSettingScrollPosition(t)}Ct(this.eViewport,t,this.enableRtl)}};var su={selector:"AG-FAKE-HORIZONTAL-SCROLL",component:iu};var ou={tag:"div",cls:"ag-body-vertical-scroll",attrs:{"aria-hidden":"true"},children:[{tag:"div",ref:"eViewport",cls:"ag-body-vertical-scroll-viewport",children:[{tag:"div",ref:"eContainer",cls:"ag-body-vertical-scroll-container"}]}]};var nu=class extends tu{constructor(){super(ou,"vertical")}postConstruct(){super.postConstruct();this.createManagedBean(new Sc(this.eContainer));const{ctrlsSvc:t}=this.beans;t.register("fakeVScrollComp",this);this.addManagedEventListeners({rowContainerHeightChanged:this.onRowContainerHeightChanged.bind(this,t)})}setScrollVisible(){const{scrollVisibleSvc:t}=this.beans;const e=t.verticalScrollShowing;const i=this.invisibleScrollbar;const s=e?t.getScrollbarWidth()||0:0;const o=s===0&&i?16:s;this.toggleCss("ag-scrollbar-invisible",i);At(this.getGui(),o);At(this.eViewport,o);At(this.eContainer,o);this.setDisplayed(e,{skipAriaHidden:true})}onRowContainerHeightChanged(t){const e=t.getGridBodyCtrl();const i=e.eBodyViewport;const s=this.getScrollPosition();const o=i.scrollTop;if(s!=o){this.setScrollPosition(o,true)}}getScrollPosition(){return this.eViewport.scrollTop}setScrollPosition(t,e){if(!e&&!xt(this.eViewport)){this.attemptSettingScrollPosition(t)}this.eViewport.scrollTop=t}};var ru={selector:"AG-FAKE-VERTICAL-SCROLL",component:nu};var lu="ag-column-first";var au="ag-column-last";function hu(t,e,i,o){if(s(t)){return[]}return fu(t.headerClass,t,e,i,o)}function cu(t,e,i,o){if(s(t)){return[]}return fu(t.toolPanelClass,t,e,i,o)}function uu(t,e,i){t.toggleCss(lu,i.isColAtEdge(e,"first"));t.toggleCss(au,i.isColAtEdge(e,"last"))}function du(t,e,i,s){return Rs(e,{colDef:t,column:i,columnGroup:s})}function fu(t,e,i,o,n){if(s(t)){return[]}let r;if(typeof t==="function"){const s=du(e,i,o,n);r=t(s)}else{r=t}if(typeof r==="string"){return[r]}if(Array.isArray(r)){return[...r]}return[]}function gu(t,e,i){e.addManagedElementListeners(i,{keydown:e=>{if(!e.defaultPrevented&&e.key===Zn.TAB){const s=e.shiftKey;if(!Lr(t,i,false,s)){if(wu(t,s)){e.preventDefault()}}}}})}function pu(t,e){return t.ctrlsSvc.get("gridCtrl").focusInnerElement(e)}function mu(t){return t.gos.get("suppressHeaderFocus")||!!t.overlays?.isExclusive()}function vu(t){return t.gos.get("suppressCellFocus")||!!t.overlays?.isExclusive()}function wu(t,e,i=false){const s=t.ctrlsSvc.get("gridCtrl");if(!i&&s.focusNextInnerContainer(e)){return true}if(i||!e&&!s.isDetailGrid()){s.forceFocusOutOfContainer(e)}return false}function Cu(t){if(!t.cols){return-1}return t.cols.treeDepth+1}function bu(t){return t.ctrlsSvc.getHeaderRowContainerCtrl()?.getRowCount()??0}function yu(t){const e=[];const i=t.ctrlsSvc.getHeaderRowContainerCtrls();for(const s of i){if(!s){continue}const i=s.getGroupRowCount()||0;for(let o=0;on){e[o]=s}}}}return e}function Su(t,e){const i=t.colModel.isPivotMode()?Mu(t):Eu(t);let s=i;const o=e.getHeaderCellCtrls();for(const t of o){const{column:e}=t;const i=e.getAutoHeaderHeight();if(i!=null&&i>s&&e.isAutoHeaderHeight()){s=i}}return s}function xu(t){const e=t.colModel.isPivotMode()?Fu(t):ku(t);let i=e;t.colModel.forAllCols((t=>{const e=t.getAutoHeaderHeight();if(e!=null&&e>i&&t.isAutoHeaderHeight()){i=e}}));return i}function ku(t){return t.gos.get("headerHeight")??t.environment.getDefaultHeaderHeight()}function Ru(t){return t.gos.get("floatingFiltersHeight")??ku(t)}function Eu(t){return t.gos.get("groupHeaderHeight")??ku(t)}function Fu(t){return t.gos.get("pivotHeaderHeight")??ku(t)}function Mu(t){return t.gos.get("pivotGroupHeaderHeight")??Eu(t)}function Pu(t,e){return t.headerRowIndex===e.headerRowIndex&&t.column===e.column}var Du=class extends ge{setComp(t,e,i){this.comp=t;this.eGui=e;const{beans:s}=this;const{headerNavigation:o,touchSvc:n,ctrlsSvc:r}=s;if(o){this.createManagedBean(new Wh(i,{onTabKeyDown:this.onTabKeyDown.bind(this),handleKeyDown:this.handleKeyDown.bind(this),onFocusOut:this.onFocusOut.bind(this)}))}this.addManagedEventListeners({columnPivotModeChanged:this.onPivotModeChanged.bind(this,s),displayedColumnsChanged:this.onDisplayedColumnsChanged.bind(this,s)});this.onPivotModeChanged(s);this.setupHeaderHeight();const l=this.onHeaderContextMenu.bind(this);this.addManagedElementListeners(this.eGui,{contextmenu:l});n?.mockHeaderContextMenu(this,l);r.register("gridHeaderCtrl",this)}setupHeaderHeight(){const t=this.setHeaderHeight.bind(this);t();this.addManagedPropertyListeners(["headerHeight","pivotHeaderHeight","groupHeaderHeight","pivotGroupHeaderHeight","floatingFiltersHeight"],t);this.addManagedEventListeners({headerRowsChanged:t,columnHeaderHeightChanged:t,columnGroupHeaderHeightChanged:()=>Vt(this.beans,(()=>t())),gridStylesChanged:t,advancedFilterEnabledChanged:t})}setHeaderHeight(){const{beans:t}=this;let e=0;const i=yu(t).reduce(((t,e)=>t+e),0);const s=xu(t);if(t.filterManager?.hasFloatingFilters()){e+=Ru(t)}e+=i;e+=s;if(this.headerHeight===e){return}this.headerHeight=e;const o=`${e+1}px`;this.comp.setHeightAndMinHeight(o);this.eventSvc.dispatchEvent({type:"headerHeightChanged"})}onPivotModeChanged(t){const e=t.colModel.isPivotMode();this.comp.toggleCss("ag-pivot-on",e);this.comp.toggleCss("ag-pivot-off",!e)}onDisplayedColumnsChanged(t){const e=t.visibleCols.allCols;const i=e.some((t=>t.isSpanHeaderHeight()));this.comp.toggleCss("ag-header-allow-overflow",i)}onTabKeyDown(t){const e=this.gos.get("enableRtl");const i=t.shiftKey;const s=i!==e?"LEFT":"RIGHT";const{beans:o}=this;const{headerNavigation:n,focusSvc:r}=o;if(n.navigateHorizontally(s,true,t)||!i&&r.focusOverlay(false)||wu(o,i,true)){t.preventDefault()}}handleKeyDown(t){let e=null;const{headerNavigation:s}=this.beans;switch(t.key){case Zn.LEFT:e="LEFT";case Zn.RIGHT:{if(!i(e)){e="RIGHT"}if(s.navigateHorizontally(e,false,t)){t.preventDefault()}break}case Zn.UP:e="UP";case Zn.DOWN:{if(!i(e)){e="DOWN"}if(s.navigateVertically(e,t)){t.preventDefault()}break}default:return}}onFocusOut(t){const{relatedTarget:e}=t;const{eGui:i,beans:s}=this;if(!e&&i.contains(d(s))){return}if(!i.contains(e)){s.focusSvc.focusedHeader=null}}onHeaderContextMenu(t,e,i){const{menuSvc:s,ctrlsSvc:o}=this.beans;if(!t&&!i||!s?.isHeaderContextMenuEnabled()){return}const{target:n}=t??e;if(n===this.eGui||n===o.getHeaderRowContainerCtrl()?.eViewport){s.showHeaderContextMenu(void 0,t,i)}}};var Tu=class extends Qo{constructor(t,e){super(t);this.ctrl=e}getCtrl(){return this.ctrl}};var Bu={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"}]};var Au=class extends Tu{constructor(t){super(Bu,t);this.eResize=jo;this.eHeaderCompWrapper=jo;this.headerCompVersion=0}postConstruct(){const t=this.getGui();const e=()=>{const t=this.ctrl.getSelectAllGui();if(t){this.eResize.insertAdjacentElement("afterend",t);this.addDestroyFunc((()=>t.remove()))}};const i={setWidth:e=>t.style.width=e,toggleCss:(t,e)=>this.toggleCss(t,e),setUserStyles:e=>Mt(t,e),setAriaSort:e=>e?Z(t,e):Q(t),setUserCompDetails:t=>this.setUserCompDetails(t),getUserCompInstance:()=>this.headerComp,refreshSelectAllGui:e,removeSelectAllGui:()=>this.ctrl.getSelectAllGui()?.remove()};this.ctrl.setComp(i,this.getGui(),this.eResize,this.eHeaderCompWrapper,void 0);e()}destroy(){this.destroyHeaderComp();super.destroy()}destroyHeaderComp(){if(this.headerComp){this.headerCompGui?.remove();this.headerComp=this.destroyBean(this.headerComp);this.headerCompGui=void 0}}setUserCompDetails(t){this.headerCompVersion++;const e=this.headerCompVersion;t.newAgStackInstance().then((t=>this.afterCompCreated(e,t)))}afterCompCreated(t,e){if(t!=this.headerCompVersion||!this.isAlive()){this.destroyBean(e);return}this.destroyHeaderComp();this.headerComp=e;this.headerCompGui=e.getGui();this.eHeaderCompWrapper.appendChild(this.headerCompGui);this.ctrl.setDragSource(this.getGui())}};var Iu={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"}]};var zu=class extends Tu{constructor(t){super(Iu,t);this.eResize=jo;this.eHeaderCompWrapper=jo}postConstruct(){const t=this.getGui();const e=(e,i)=>i!=void 0?t.setAttribute(e,i):t.removeAttribute(e);const i={toggleCss:(t,e)=>this.toggleCss(t,e),setUserStyles:e=>Mt(t,e),setHeaderWrapperHidden:t=>{if(t){this.eHeaderCompWrapper.style.setProperty("display","none")}else{this.eHeaderCompWrapper.style.removeProperty("display")}},setHeaderWrapperMaxHeight:t=>{if(t!=null){this.eHeaderCompWrapper.style.setProperty("max-height",`${t}px`)}else{this.eHeaderCompWrapper.style.removeProperty("max-height")}this.eHeaderCompWrapper.classList.toggle("ag-header-cell-comp-wrapper-limited-height",t!=null)},setResizableDisplayed:t=>at(this.eResize,t),setWidth:e=>t.style.width=e,setAriaExpanded:t=>e("aria-expanded",t),setUserCompDetails:t=>this.setUserCompDetails(t),getUserCompInstance:()=>this.headerGroupComp};this.ctrl.setComp(i,t,this.eResize,this.eHeaderCompWrapper,void 0)}setUserCompDetails(t){t.newAgStackInstance().then((t=>this.afterHeaderCompCreated(t)))}afterHeaderCompCreated(t){const e=()=>this.destroyBean(t);if(!this.isAlive()){e();return}const i=this.getGui();const s=t.getGui();this.eHeaderCompWrapper.appendChild(s);this.addDestroyFunc(e);this.headerGroupComp=t;this.ctrl.setDragSource(i)}};var Hu={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"}}]}]};var Ou=class extends Tu{constructor(t){super(Hu,t);this.eFloatingFilterBody=jo;this.eButtonWrapper=jo;this.eButtonShowMainFilter=jo}postConstruct(){const t=this.getGui();const e={toggleCss:(t,e)=>this.toggleCss(t,e),setUserStyles:e=>Mt(t,e),addOrRemoveBodyCssClass:(t,e)=>this.eFloatingFilterBody.classList.toggle(t,e),setButtonWrapperDisplayed:t=>at(this.eButtonWrapper,t),setCompDetails:t=>this.setCompDetails(t),getFloatingFilterComp:()=>this.compPromise,setWidth:e=>t.style.width=e,setMenuIcon:t=>this.eButtonShowMainFilter.appendChild(t)};this.ctrl.setComp(e,t,this.eButtonShowMainFilter,this.eFloatingFilterBody,void 0)}setCompDetails(t){if(!t){this.destroyFloatingFilterComp();this.compPromise=null;return}this.compPromise=t.newAgStackInstance();this.compPromise.then((t=>this.afterCompCreated(t)))}destroy(){this.destroyFloatingFilterComp();super.destroy()}destroyFloatingFilterComp(){if(this.floatingFilterComp){this.floatingFilterComp.getGui().remove();this.floatingFilterComp=this.destroyBean(this.floatingFilterComp)}}afterCompCreated(t){if(!t){return}if(!this.isAlive()){this.destroyBean(t);return}this.destroyFloatingFilterComp();this.floatingFilterComp=t;this.eFloatingFilterBody.appendChild(t.getGui());if(t.afterGuiAttached){t.afterGuiAttached()}}};var Lu=class extends Qo{constructor(t){super({tag:"div",cls:t.headerRowClass,role:"row"});this.ctrl=t;this.headerComps={}}postConstruct(){const t=this.getGui();t.setAttribute("tabindex",String(this.gos.get("tabIndex")));U(this.getGui(),this.ctrl.getAriaRowIndex());const e={setHeight:t=>this.getGui().style.height=t,setTop:t=>this.getGui().style.top=t,setHeaderCtrls:(t,e)=>this.setHeaderCtrls(t,e),setWidth:t=>this.getGui().style.width=t,setRowIndex:t=>U(this.getGui(),t)};this.ctrl.setComp(e,void 0)}destroy(){this.setHeaderCtrls([],false);super.destroy()}setHeaderCtrls(t,e){if(!this.isAlive()){return}const i=this.headerComps;this.headerComps={};for(const e of t){const t=e.instanceId;let s=i[t];delete i[t];if(s==null){s=this.createHeaderComp(e);this.getGui().appendChild(s.getGui())}this.headerComps[t]=s}Object.values(i).forEach((t=>{t.getGui().remove();this.destroyBean(t)}));if(e){const t=Object.values(this.headerComps);t.sort(((t,e)=>{const i=t.getCtrl().column.getLeft();const s=e.getCtrl().column.getLeft();return i-s}));const e=t.map((t=>t.getGui()));Et(this.getGui(),e)}}createHeaderComp(t){let e;switch(this.ctrl.type){case"group":e=new zu(t);break;case"filter":e=new Ou(t);break;default:e=new Au(t);break}this.createBean(e);e.setParentComponent(this);return e}};var Vu=class extends ge{constructor(t,e,i,s){super();this.columnOrGroup=t;this.eCell=e;this.colsSpanning=s;this.columnOrGroup=t;this.ariaEl=e.querySelector("[role=columnheader]")||e;this.beans=i}setColsSpanning(t){this.colsSpanning=t;this.onLeftChanged()}getColumnOrGroup(){const{beans:t,colsSpanning:e}=this;if(t.gos.get("enableRtl")&&e){return Vs(e)}return this.columnOrGroup}postConstruct(){const t=this.onLeftChanged.bind(this);this.addManagedListeners(this.columnOrGroup,{leftChanged:t});this.setLeftFirstTime();this.addManagedEventListeners({displayedColumnsWidthChanged:t});this.addManagedPropertyListener("domLayout",t)}setLeftFirstTime(){const{gos:t,colAnimation:e}=this.beans;const s=t.get("suppressColumnMoveAnimation");const o=i(this.columnOrGroup.getOldLeft());const n=e?.isActive()&&o&&!s;if(n){this.animateInLeft()}else{this.onLeftChanged()}}animateInLeft(){const t=this.getColumnOrGroup();const e=this.modifyLeftForPrintLayout(t,t.getOldLeft());const i=this.modifyLeftForPrintLayout(t,t.getLeft());this.setLeft(e);this.actualLeft=i;this.beans.colAnimation.executeNextVMTurn((()=>{if(this.actualLeft===i){this.setLeft(i)}}))}onLeftChanged(){const t=this.getColumnOrGroup();const e=t.getLeft();this.actualLeft=this.modifyLeftForPrintLayout(t,e);this.setLeft(this.actualLeft)}modifyLeftForPrintLayout(t,e){const{gos:i,visibleCols:s}=this.beans;const o=Pi(i,"print");if(!o){return e}if(t.getPinned()==="left"){return e}const n=s.getColsLeftWidth();if(t.getPinned()==="right"){const t=s.bodyWidth;return n+t+e}return n+e}setLeft(t){if(i(t)){this.eCell.style.left=`${t}px`}if(Za(this.columnOrGroup)){const t=this.columnOrGroup.getLeafColumns();if(!t.length){return}if(t.length>1){_(this.ariaEl,t.length)}}}};var Nu=0;var Gu="headerCtrl";var $u=class extends ge{constructor(t,e){super();this.column=t;this.rowCtrl=e;this.resizeToggleTimeout=0;this.resizeMultiplier=1;this.resizeFeature=null;this.lastFocusEvent=null;this.dragSource=null;this.reAttemptToFocus=false;this.instanceId=t.getUniqueId()+"-"+Nu++}postConstruct(){const t=this.refreshTabIndex.bind(this);this.addManagedPropertyListeners(["suppressHeaderFocus"],t);this.addManagedEventListeners({overlayExclusiveChanged:t})}setComp(t,e,i,s,o){e.setAttribute("col-id",this.column.colIdSanitised);this.wireComp(t,e,i,s,o);if(this.reAttemptToFocus){this.reAttemptToFocus=false;this.focus(this.lastFocusEvent??void 0)}}shouldStopEventPropagation(t){const{headerRowIndex:e,column:s}=this.beans.focusSvc.focusedHeader;const o=s.getDefinition();const n=o?.suppressHeaderKeyboardEvent;if(!i(n)){return false}const r=Rs(this.gos,{colDef:o,column:s,headerRowIndex:e,event:t});return!!n(r)}getWrapperHasFocus(){const t=d(this.beans);return t===this.eGui}setGui(t,e){this.eGui=t;this.addDomData(e);e.addManagedListeners(this.beans.eventSvc,{displayedColumnsChanged:this.onDisplayedColumnsChanged.bind(this)});e.addManagedElementListeners(this.eGui,{focus:this.onGuiFocus.bind(this)});this.onDisplayedColumnsChanged();this.refreshTabIndex()}refreshHeaderStyles(){const t=this.column.getDefinition();if(!t){return}const{headerStyle:e}=t;let i;if(typeof e==="function"){const t=this.getHeaderClassParams();i=e(t)}else{i=e}if(i){this.comp.setUserStyles(i)}}onGuiFocus(){this.eventSvc.dispatchEvent({type:"headerFocused",column:this.column})}setupAutoHeight(t){const{wrapperElement:e,checkMeasuringCallback:i,compBean:s}=t;const{beans:o}=this;const n=t=>{if(!this.isAlive()||!s.isAlive()){return}const{paddingTop:i,paddingBottom:r,borderBottomWidth:l,borderTopWidth:a}=dt(this.eGui);const h=i+r+l+a;const c=e.offsetHeight;const u=c+h;if(t<5){const i=f(o);const s=!i?.contains(e);const r=u==0;if(s||r){Ce((()=>n(t+1)),"raf",o);return}}this.setColHeaderHeight(this.column,u)};let r=false;let l;const a=()=>{const t=this.column.isAutoHeaderHeight();if(t&&!r){h()}if(!t&&r){c()}};const h=()=>{r=true;this.comp.toggleCss("ag-header-cell-auto-height",true);n(0);l=Lt(this.beans,e,(()=>n(0)))};const c=()=>{r=false;if(l){l()}this.comp.toggleCss("ag-header-cell-auto-height",false);l=void 0};a();s.addDestroyFunc((()=>c()));s.addManagedListeners(this.column,{widthChanged:()=>r&&n(0)});s.addManagedEventListeners({sortChanged:()=>{if(r){window.setTimeout((()=>n(0)))}}});if(i){i(a)}}onDisplayedColumnsChanged(){const{comp:t,column:e,beans:i,eGui:s}=this;if(!t||!e||!s){return}uu(t,e,i.visibleCols);K(s,i.visibleCols.getAriaColIndex(e))}addResizeAndMoveKeyboardListeners(t){t.addManagedListeners(this.eGui,{keydown:this.onGuiKeyDown.bind(this),keyup:this.onGuiKeyUp.bind(this)})}refreshTabIndex(){const t=mu(this.beans);if(this.eGui){Ot(this.eGui,"tabindex",t?null:"-1")}}onGuiKeyDown(t){const e=d(this.beans);const i=t.key===Zn.LEFT||t.key===Zn.RIGHT;if(this.isResizing){t.preventDefault();t.stopImmediatePropagation()}if(e!==this.eGui||!t.shiftKey&&!t.altKey){return}if(this.isResizing||i){t.preventDefault();t.stopImmediatePropagation()}if(!i){return}const s=t.key===Zn.LEFT!==this.gos.get("enableRtl");const o=s?"left":"right";if(t.altKey){this.isResizing=true;this.resizeMultiplier+=1;const e=this.getViewportAdjustedResizeDiff(t);this.resizeHeader(e,t.shiftKey);this.resizeFeature?.toggleColumnResizing(true)}else{this.moveHeader(o)}}moveHeader(t){this.beans.colMoves?.moveHeader(t,this.eGui,this.column,this.rowCtrl.pinned,this)}getViewportAdjustedResizeDiff(t){const e=this.getResizeDiff(t);const{pinnedCols:i}=this.beans;return i?i.getHeaderResizeDiff(e,this.column):e}getResizeDiff(t){const{gos:e,column:i}=this;let s=t.key===Zn.LEFT!==e.get("enableRtl");const o=i.getPinned();const n=e.get("enableRtl");if(o){if(n!==(o==="right")){s=!s}}return(s?-1:1)*this.resizeMultiplier}onGuiKeyUp(){if(!this.isResizing){return}if(this.resizeToggleTimeout){window.clearTimeout(this.resizeToggleTimeout);this.resizeToggleTimeout=0}this.isResizing=false;this.resizeMultiplier=1;this.resizeToggleTimeout=window.setTimeout((()=>{this.resizeFeature?.toggleColumnResizing(false)}),150)}handleKeyDown(t){const e=this.getWrapperHasFocus();switch(t.key){case Zn.PAGE_DOWN:case Zn.PAGE_UP:case Zn.PAGE_HOME:case Zn.PAGE_END:if(e){t.preventDefault()}}}addDomData(t){const e=Gu;const{eGui:i,gos:s}=this;Li(s,i,e,this);t.addDestroyFunc((()=>Li(s,i,e,null)))}focus(t){if(!this.isAlive()){return false}const{eGui:e}=this;if(!e){this.reAttemptToFocus=true}else{e.focus();this.lastFocusEvent=t||null}return true}focusThis(){this.beans.focusSvc.focusedHeader={headerRowIndex:this.rowCtrl.rowIndex,column:this.column}}removeDragSource(){if(this.dragSource){this.beans.dragAndDrop?.removeDragSource(this.dragSource);this.dragSource=null}}handleContextMenuMouseEvent(t,e,i){const s=t??e;const{menuSvc:o,gos:n}=this.beans;if(n.get("preventDefaultOnContextMenu")){s.preventDefault()}if(o?.isHeaderContextMenuEnabled(i)){o.showHeaderContextMenu(i,t,e)}this.dispatchColumnMouseEvent("columnHeaderContextMenu",i)}dispatchColumnMouseEvent(t,e){this.eventSvc.dispatchEvent({type:t,column:e})}setColHeaderHeight(t,e){if(!t.setAutoHeaderHeight(e)){return}const{eventSvc:i}=this;if(t.isColumn){i.dispatchEvent({type:"columnHeaderHeightChanged",column:t,columns:[t],source:"autosizeColumnHeaderHeight"})}else{i.dispatchEvent({type:"columnGroupHeaderHeightChanged",columnGroup:t,source:"autosizeColumnGroupHeaderHeight"})}}clearComponent(){this.removeDragSource();this.resizeFeature=null;this.comp=null;this.eGui=null}destroy(){super.destroy();this.column=null;this.lastFocusEvent=null;this.rowCtrl=null}};var Wu=class extends $u{constructor(){super(...arguments);this.refreshFunctions={};this.userHeaderClasses=new Set;this.ariaDescriptionProperties=new Map}wireComp(t,e,i,s,o){this.comp=t;const{rowCtrl:n,column:r,beans:l}=this;const{colResize:a,context:h,colHover:c,rangeSvc:u}=l;const d=Uo(this,h,o);this.setGui(e,d);this.updateState();this.setupWidth(d);this.setupMovingCss(d);this.setupMenuClass(d);this.setupSortableClass(d);this.setupWrapTextClass();this.refreshSpanHeaderHeight();this.setupAutoHeight({wrapperElement:s,checkMeasuringCallback:t=>this.setRefreshFunction("measuring",t),compBean:d});this.addColumnHoverListener(d);this.setupFilterClass(d);this.setupStylesFromColDef();this.setupClassesFromColDef();this.setupTooltip();this.addActiveHeaderMouseListeners(d);this.setupSelectAll(d);this.setupUserComp();this.refreshAria();if(a){this.resizeFeature=d.createManagedBean(a.createResizeFeature(n.pinned,r,i,t,this))}else{at(i,false)}c?.createHoverFeature(d,[r],e);u?.createRangeHighlightFeature(d,r,t);d.createManagedBean(new Vu(r,e,l));d.createManagedBean(new Wh(e,{shouldStopEventPropagation:t=>this.shouldStopEventPropagation(t),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.addManagedListeners(r,{colDefChanged:()=>this.refresh()});d.addManagedListeners(r,{headerHighlightChanged:this.onHeaderHighlightChanged.bind(this)});const f=()=>this.checkDisplayName();d.addManagedEventListeners({columnValueChanged:f,columnRowGroupChanged:f,columnPivotChanged:f,headerHeightChanged:this.onHeaderHeightChanged.bind(this)});d.addDestroyFunc((()=>{this.refreshFunctions={};this.selectAllFeature=null;this.dragSourceElement=void 0;this.userCompDetails=null;this.userHeaderClasses.clear();this.ariaDescriptionProperties.clear();this.clearComponent()}))}resizeHeader(t,e){this.beans.colResize?.resizeHeader(this.column,t,e)}getHeaderClassParams(){const{column:t,beans:e}=this;const i=t.colDef;return Rs(e.gos,{colDef:i,column:t,floatingFilter:false})}setupUserComp(){const t=this.lookupUserCompDetails();if(t){this.setCompDetails(t)}}setCompDetails(t){this.userCompDetails=t;this.comp.setUserCompDetails(t)}lookupUserCompDetails(){const t=this.createParams();const e=this.column.getColDef();return Fn(this.beans.userCompFactory,e,t)}createParams(){const{menuSvc:t,sortSvc:e,colFilter:i,gos:s}=this.beans;const o=Rs(s,{column:this.column,displayName:this.displayName,enableSorting:this.column.isSortable(),enableMenu:this.menuEnabled,enableFilterButton:this.openFilterEnabled&&!!t?.isHeaderFilterButtonEnabled(this.column),enableFilterIcon:!!i&&(!this.openFilterEnabled||bs(this.gos)),showColumnMenu:(e,i)=>{t?.showColumnMenu({column:this.column,buttonElement:e,positionBy:"button",onClosedCallback:i})},showColumnMenuAfterMouseClick:(e,i)=>{t?.showColumnMenu({column:this.column,mouseEvent:e,positionBy:"mouse",onClosedCallback:i})},showFilter:e=>{t?.showFilterMenu({column:this.column,buttonElement:e,containerType:"columnFilter",positionBy:"button"})},progressSort:t=>{e?.progressSort(this.column,!!t,"uiColumnSorted")},setSort:(t,i)=>{e?.setSortForColumn(this.column,t,!!i,"uiColumnSorted")},eGridHeader:this.eGui,setTooltip:(t,e)=>{s.assertModuleRegistered("Tooltip",3);this.setupTooltip(t,e)}});return o}setupSelectAll(t){const{selectionSvc:e}=this.beans;if(!e){return}this.selectAllFeature=t.createOptionalManagedBean(e.createSelectAllFeature(this.column));this.selectAllFeature?.setComp(this);t.addManagedPropertyListener("rowSelection",(()=>{const i=e.createSelectAllFeature(this.column);if(i&&!this.selectAllFeature){this.selectAllFeature=t.createManagedBean(i);this.selectAllFeature?.setComp(this);this.comp.refreshSelectAllGui()}else if(this.selectAllFeature&&!i){this.comp.removeSelectAllGui();this.selectAllFeature=this.destroyBean(this.selectAllFeature)}}))}getSelectAllGui(){return this.selectAllFeature?.getCheckboxGui()}handleKeyDown(t){super.handleKeyDown(t);if(t.key===Zn.SPACE){this.selectAllFeature?.onSpaceKeyDown(t)}if(t.key===Zn.ENTER){this.onEnterKeyDown(t)}if(t.key===Zn.DOWN&&t.altKey){this.showMenuOnKeyPress(t,false)}}onEnterKeyDown(t){if(t.ctrlKey||t.metaKey){this.showMenuOnKeyPress(t,true)}else if(this.sortable){this.beans.sortSvc?.progressSort(this.column,t.shiftKey,"uiColumnSorted")}}showMenuOnKeyPress(t,e){const i=this.comp.getUserCompInstance();if(!Uu(i)){return}if(i.onMenuKeyboardShortcut(e)){t.preventDefault()}}onFocusIn(t){if(!this.eGui.contains(t.relatedTarget)){this.focusThis();this.announceAriaDescription()}if(zr()){this.setActiveHeader(true)}}onFocusOut(t){if(this.eGui.contains(t.relatedTarget)){return}this.setActiveHeader(false)}setupTooltip(t,e){this.tooltipFeature=this.beans.tooltipSvc?.setupHeaderTooltip(this.tooltipFeature,this,t,e)}setupStylesFromColDef(){this.setRefreshFunction("headerStyles",this.refreshHeaderStyles.bind(this));this.refreshHeaderStyles()}setupClassesFromColDef(){const t=()=>{const t=this.column.getColDef();const e=hu(t,this.gos,this.column,null);const i=this.userHeaderClasses;this.userHeaderClasses=new Set(e);for(const t of e){if(i.has(t)){i.delete(t)}else{this.comp.toggleCss(t,true)}}for(const t of i){this.comp.toggleCss(t,false)}};this.setRefreshFunction("headerClasses",t);t()}setDragSource(t){this.dragSourceElement=t;this.removeDragSource();if(!t||!this.draggable){return}this.dragSource=this.beans.colMoves?.setDragSourceForHeader(t,this.column,this.displayName)??null}updateState(){const{menuSvc:t}=this.beans;this.menuEnabled=!!t?.isColumnMenuInHeaderEnabled(this.column);this.openFilterEnabled=!!t?.isFilterMenuInHeaderEnabled(this.column);this.sortable=this.column.isSortable();this.displayName=this.calculateDisplayName();this.draggable=this.workOutDraggable()}setRefreshFunction(t,e){this.refreshFunctions[t]=e}refresh(){this.updateState();this.refreshHeaderComp();this.refreshAria();for(const t of Object.values(this.refreshFunctions)){t()}}refreshHeaderComp(){const t=this.lookupUserCompDetails();if(!t){return}const e=this.comp.getUserCompInstance();const i=e!=null&&this.userCompDetails.componentClass==t.componentClass;const s=i?this.attemptHeaderCompRefresh(t.params):false;if(s){this.setDragSource(this.dragSourceElement)}else{this.setCompDetails(t)}}attemptHeaderCompRefresh(t){const e=this.comp.getUserCompInstance();if(!e){return false}if(!e.refresh){return false}const i=e.refresh(t);return i}calculateDisplayName(){return this.beans.colNames.getDisplayNameForColumn(this.column,"header",true)}checkDisplayName(){if(this.displayName!==this.calculateDisplayName()){this.refresh()}}workOutDraggable(){const t=this.column.getColDef();const e=this.gos.get("suppressMovableColumns");const i=!e&&!t.suppressMovable&&!t.lockPosition;return!!i||!!t.enableRowGroup||!!t.enablePivot}setupWidth(t){const e=()=>{const t=this.column.getActualWidth();this.comp.setWidth(`${t}px`)};t.addManagedListeners(this.column,{widthChanged:e});e()}setupMovingCss(t){const e=()=>{this.comp.toggleCss("ag-header-cell-moving",this.column.isMoving())};t.addManagedListeners(this.column,{movingChanged:e});e()}setupMenuClass(t){const e=()=>{this.comp?.toggleCss("ag-column-menu-visible",this.column.isMenuVisible())};t.addManagedListeners(this.column,{menuVisibleChanged:e});e()}setupSortableClass(t){const e=()=>{this.comp.toggleCss("ag-header-cell-sortable",!!this.sortable)};e();this.setRefreshFunction("updateSortable",e);t.addManagedEventListeners({sortChanged:this.refreshAriaSort.bind(this)})}setupFilterClass(t){const e=()=>{const t=this.column.isFilterActive();this.comp.toggleCss("ag-header-cell-filtered",t);this.refreshAria()};t.addManagedListeners(this.column,{filterActiveChanged:e});e()}setupWrapTextClass(){const t=()=>{const t=!!this.column.getColDef().wrapHeaderText;this.comp.toggleCss("ag-header-cell-wrap-text",t)};t();this.setRefreshFunction("wrapText",t)}onHeaderHighlightChanged(){const t=this.column.getHighlighted();const e=t===0;const i=t===1;this.comp.toggleCss("ag-header-highlight-before",e);this.comp.toggleCss("ag-header-highlight-after",i)}onDisplayedColumnsChanged(){super.onDisplayedColumnsChanged();if(!this.isAlive()){return}this.onHeaderHeightChanged()}onHeaderHeightChanged(){this.refreshSpanHeaderHeight()}refreshSpanHeaderHeight(){const{eGui:t,column:e,comp:i,beans:s}=this;const o=yu(this.beans);const n=o.reduce(((t,e)=>t+e),0)===0;i.toggleCss("ag-header-parent-hidden",n);if(!e.isSpanHeaderHeight()){t.style.removeProperty("top");t.style.removeProperty("height");i.toggleCss("ag-header-span-height",false);i.toggleCss("ag-header-span-total",false);return}const{numberOfParents:r,isSpanningTotal:l}=this.column.getColumnGroupPaddingInfo();i.toggleCss("ag-header-span-height",r>0);const a=xu(s);if(r===0){i.toggleCss("ag-header-span-total",false);t.style.setProperty("top",`0px`);t.style.setProperty("height",`${a}px`);return}i.toggleCss("ag-header-span-total",l);const h=(this.column.getFirstRealParent()?.getLevel()??-1)+1;const c=o.length-h;let u=0;for(let t=0;tt==="filter"?-1:e.charCodeAt(0)-t.charCodeAt(0))).map((t=>this.ariaDescriptionProperties.get(t))).join(". ");this.beans.ariaAnnounce?.announceValue(t,"columnHeader")}refreshAria(){this.refreshAriaSort();this.refreshAriaMenu();this.refreshAriaFilterButton();this.refreshAriaFiltered()}addColumnHoverListener(t){this.beans.colHover?.addHeaderColumnHoverListener(t,this.comp,this.column)}addActiveHeaderMouseListeners(t){const e=t=>this.handleMouseOverChange(t.type==="mouseenter");const i=()=>{this.setActiveHeader(true);this.dispatchColumnMouseEvent("columnHeaderClicked",this.column)};const s=t=>this.handleContextMenuMouseEvent(t,void 0,this.column);t.addManagedListeners(this.eGui,{mouseenter:e,mouseleave:e,click:i,contextmenu:s})}handleMouseOverChange(t){this.setActiveHeader(t);this.eventSvc.dispatchEvent({type:t?"columnHeaderMouseOver":"columnHeaderMouseLeave",column:this.column})}setActiveHeader(t){this.comp.toggleCss("ag-header-active",t)}getAnchorElementForMenu(t){const e=this.comp.getUserCompInstance();if(Uu(e)){return e.getAnchorElementForMenu(t)}return this.eGui}destroy(){this.tooltipFeature=this.destroyBean(this.tooltipFeature);super.destroy()}};function Uu(t){return typeof t?.getAnchorElementForMenu==="function"&&typeof t.onMenuKeyboardShortcut==="function"}var ju=0;var qu=class extends ge{constructor(t,e,i){super();this.rowIndex=t;this.pinned=e;this.type=i;this.instanceId=ju++;this.comp=null;this.allCtrls=[];let s="ag-header-row-column";if(i==="group"){s="ag-header-row-group"}else if(i==="filter"){s="ag-header-row-filter"}this.headerRowClass=`ag-header-row ${s}`}setRowIndex(t){this.rowIndex=t;this.comp?.setRowIndex(this.getAriaRowIndex());this.onRowHeightChanged()}postConstruct(){this.isPrintLayout=Pi(this.gos,"print");this.isEnsureDomOrder=this.gos.get("ensureDomOrder")}areCellsRendered(){if(!this.comp){return false}return this.allCtrls.every((t=>t.eGui!=null))}setComp(t,e,i=true){this.comp=t;e=Uo(this,this.beans.context,e);if(i){this.setRowIndex(this.rowIndex);this.onVirtualColumnsChanged()}this.setWidth();this.addEventListeners(e)}getAriaRowIndex(){return this.rowIndex+1}addEventListeners(t){const e=this.onRowHeightChanged.bind(this);const i=this.onDisplayedColumnsChanged.bind(this);t.addManagedEventListeners({columnResized:this.setWidth.bind(this),displayedColumnsChanged:i,virtualColumnsChanged:t=>this.onVirtualColumnsChanged(t.afterScroll),columnGroupHeaderHeightChanged:e,columnHeaderHeightChanged:e,gridStylesChanged:e,advancedFilterEnabledChanged:e});t.addManagedPropertyListener("domLayout",i);t.addManagedPropertyListener("ensureDomOrder",(t=>this.isEnsureDomOrder=t.currentValue));t.addManagedPropertyListeners(["headerHeight","pivotHeaderHeight","groupHeaderHeight","pivotGroupHeaderHeight","floatingFiltersHeight"],e)}onDisplayedColumnsChanged(){this.isPrintLayout=Pi(this.gos,"print");this.onVirtualColumnsChanged();this.setWidth();this.onRowHeightChanged()}setWidth(){if(!this.comp){return}const t=this.getWidthForRow();this.comp.setWidth(`${t}px`)}getWidthForRow(){const{visibleCols:t}=this.beans;if(this.isPrintLayout){const e=this.pinned!=null;if(e){return 0}return t.getContainerWidth("right")+t.getContainerWidth("left")+t.getContainerWidth(null)}return t.getContainerWidth(this.pinned)}onRowHeightChanged(){if(!this.comp){return}const{topOffset:t,rowHeight:e}=this.getTopAndHeight();this.comp.setTop(t+"px");this.comp.setHeight(e+"px")}getTopAndHeight(){let t=0;const e=yu(this.beans);for(let i=0;i{const{focusSvc:e,visibleCols:i}=this.beans;const s=e.isHeaderWrapperFocused(t);if(!s){return false}const o=i.isVisible(t.column);return o};if(t){for(const[e,s]of t){const t=i(s);if(t){this.ctrlsById.set(e,s)}else{this.destroyBean(s)}}}this.allCtrls=Array.from(this.ctrlsById.values());return this.allCtrls}getHeaderCellCtrls(){return this.allCtrls}recycleAndCreateHeaderCtrls(t,e,i){if(t.isEmptyGroup()){return}const s=t.getUniqueId();let o;if(i){o=i.get(s);i.delete(s)}const n=o&&o.column!=t;if(n){this.destroyBean(o);o=void 0}if(o==null){switch(this.type){case"filter":{o=this.createBean(this.beans.registry.createDynamicBean("headerFilterCellCtrl",true,t,this));break}case"group":o=this.createBean(this.beans.registry.createDynamicBean("headerGroupCellCtrl",true,t,this));break;default:o=this.createBean(new Wu(t,this));break}}e.set(s,o)}getColumnsInViewport(){if(!this.isPrintLayout){return this.getComponentsToRender()}if(this.pinned){return[]}const t=[];for(const e of["left",null,"right"]){t.push(...this.getComponentsToRender(e))}return t}getComponentsToRender(t=this.pinned){if(this.type==="group"){return this.beans.colViewport.getHeadersToRender(t,this.rowIndex)}return this.beans.colViewport.getColumnHeadersToRender(t)}focusHeader(t,e){const i=this.allCtrls.find((e=>e.column==t));if(!i){return false}const s=i.focus(e);return s}destroy(){this.allCtrls=this.destroyBeans(this.allCtrls);this.ctrlsById=void 0;this.comp=null;super.destroy()}};var Ku=class extends ge{constructor(t){super();this.pinned=t;this.hidden=false;this.includeFloatingFilter=false;this.groupsRowCtrls=[]}setComp(t,e){this.comp=t;this.eViewport=e;const{pinnedCols:i,ctrlsSvc:s,colModel:o,colMoves:n}=this.beans;this.setupCenterWidth();i?.setupHeaderPinnedWidth(this);this.setupDragAndDrop(n,this.eViewport);const r=this.refresh.bind(this,true);this.addManagedEventListeners({displayedColumnsChanged:r,advancedFilterEnabledChanged:r});const l=`${typeof this.pinned==="string"?this.pinned:"center"}Header`;s.register(l,this);if(o.ready){this.refresh()}}getAllCtrls(){const t=[...this.groupsRowCtrls];if(this.columnsRowCtrl){t.push(this.columnsRowCtrl)}if(this.filtersRowCtrl){t.push(this.filtersRowCtrl)}return t}refresh(t=false){const{focusSvc:e,filterManager:i,visibleCols:s}=this.beans;let o=0;const n=e.getFocusHeaderToUseAfterRefresh();const r=()=>{const e=s.headerGroupRowCount;o=e;if(!t){this.groupsRowCtrls=this.destroyBeans(this.groupsRowCtrls)}const i=this.groupsRowCtrls.length;if(i===e){return}if(i>e){for(let t=e;t{const e=o++;if(this.hidden){this.columnsRowCtrl=this.destroyBean(this.columnsRowCtrl);return}if(this.columnsRowCtrl==null||!t){this.columnsRowCtrl=this.destroyBean(this.columnsRowCtrl);this.columnsRowCtrl=this.createBean(new qu(e,this.pinned,"column"))}else if(this.columnsRowCtrl.rowIndex!==e){this.columnsRowCtrl.setRowIndex(e)}};const a=()=>{this.includeFloatingFilter=!!i?.hasFloatingFilters()&&!this.hidden;const e=()=>{this.filtersRowCtrl=this.destroyBean(this.filtersRowCtrl)};if(!this.includeFloatingFilter){e();return}if(!t){e()}const s=o++;if(this.filtersRowCtrl){const t=this.filtersRowCtrl.rowIndex!==s;if(t){this.filtersRowCtrl.setRowIndex(s)}}else{this.filtersRowCtrl=this.createBean(new qu(s,this.pinned,"filter"))}};const h=this.getAllCtrls();r();l();a();const c=this.getAllCtrls();this.comp.setCtrls(c);this.restoreFocusOnHeader(e,n);if(h.length!==c.length){this.beans.eventSvc.dispatchEvent({type:"headerRowsChanged"})}}getHeaderCtrlForColumn(t){const e=e=>e?.getHeaderCellCtrls().find((e=>e.column===t));if(Ts(t)){return e(this.columnsRowCtrl)}if(this.groupsRowCtrls.length===0){return}for(let t=0;tthis.comp.setCenterWidth(`${t}px`)),true))}};var _u=class extends ge{constructor(){super(...arguments);this.beanName="menuSvc"}postConstruct(){const{enterpriseMenuFactory:t,filterMenuFactory:e}=this.beans;this.activeMenuFactory=t??e}showColumnMenu(t){this.showColumnMenuCommon(this.activeMenuFactory,t,"columnMenu")}showFilterMenu(t){this.showColumnMenuCommon(Qu(this.beans),t,t.containerType,true)}showHeaderContextMenu(t,e,i){this.activeMenuFactory?.showMenuAfterContextMenuEvent(t,e,i)}hidePopupMenu(){this.beans.contextMenuSvc?.hideActiveMenu();this.activeMenuFactory?.hideActiveMenu()}hideFilterMenu(){Qu(this.beans)?.hideActiveMenu()}isColumnMenuInHeaderEnabled(t){const{suppressHeaderMenuButton:e}=t.getColDef();return!e&&!!this.activeMenuFactory?.isMenuEnabled(t)&&(bs(this.gos)||!!this.beans.enterpriseMenuFactory)}isFilterMenuInHeaderEnabled(t){return!t.getColDef().suppressHeaderFilterButton&&!!this.beans.filterManager?.isFilterAllowed(t)}isHeaderContextMenuEnabled(t){const e=t&&Ts(t)?t.getColDef():t?.getColGroupDef();return!e?.suppressHeaderContextMenu&&this.gos.get("columnMenu")==="new"}isHeaderMenuButtonAlwaysShowEnabled(){return this.isSuppressMenuHide()}isHeaderMenuButtonEnabled(){const t=!this.isSuppressMenuHide();const e=lr()&&t;return!e}isHeaderFilterButtonEnabled(t){return this.isFilterMenuInHeaderEnabled(t)&&!bs(this.gos)&&!this.isFloatingFilterButtonDisplayed(t)}isFilterMenuItemEnabled(t){return!!this.beans.filterManager?.isFilterAllowed(t)&&!bs(this.gos)&&!this.isFilterMenuInHeaderEnabled(t)&&!this.isFloatingFilterButtonDisplayed(t)}isFloatingFilterButtonEnabled(t){return!t.getColDef().suppressFloatingFilterButton}isFloatingFilterButtonDisplayed(t){return!!t.getColDef().floatingFilter&&this.isFloatingFilterButtonEnabled(t)}isSuppressMenuHide(){const t=this.gos;const e=t.get("suppressMenuHide");if(bs(t)){return t.exists("suppressMenuHide")?e:false}return e}showColumnMenuCommon(t,e,i,s){const{positionBy:o,onClosedCallback:n}=e;const r=e.column;if(o==="button"){const{buttonElement:o}=e;t?.showMenuAfterButtonClick(r,o,i,n,s)}else if(o==="mouse"){const{mouseEvent:o}=e;t?.showMenuAfterMouseEvent(r,o,i,n,s)}else if(r){const e=this.beans;const o=e.ctrlsSvc;o.getScrollFeature().ensureColumnVisible(r,"auto");Vt(e,(()=>{const e=o.getHeaderRowContainerCtrl(r.getPinned())?.getHeaderCtrlForColumn(r);if(e){t?.showMenuAfterButtonClick(r,e.getAnchorElementForMenu(s),i,n,s)}}))}}};function Zu(t,e,i){if(t.menuVisible!==e){t.menuVisible=e;t.dispatchColEvent("menuVisibleChanged",i)}}function Qu(t){const{enterpriseMenuFactory:e,filterMenuFactory:i,gos:s}=t;return e&&bs(s)?e:i}var Yu=class extends Qn{constructor(){super(...arguments);this.errorMessages=null}init(t){this.params=t;this.initialiseEditor(t);this.eEditor.onValueChange((()=>t.validate()))}destroy(){this.errorMessages=null}};var Ju=class extends Qo{constructor(){super()}};var Xu={tag:"span",cls:"ag-overlay-loading-center"};var td=class extends Ju{init(){const t=e(this.gos.get("overlayLoadingTemplate")?.trim());this.setTemplate(t??Xu);if(!t){const t=this.getLocaleTextFunc();const e=t("loadingOoo","Loading...");this.getGui().textContent=e;this.beans.ariaAnnounce.announceValue(e,"overlay")}}};var ed={tag:"span",cls:"ag-overlay-no-rows-center"};var id=class extends Ju{init(){const t=e(this.gos.get("overlayNoRowsTemplate")?.trim());this.setTemplate(t??ed);if(!t){const t=this.getLocaleTextFunc();const e=t("noRowsToShow","No Rows To Show");this.getGui().textContent=e;this.beans.ariaAnnounce.announceValue(e,"overlay")}}};function sd(t,e,i){const s=od(t,e,i);if(s){const{className:t}=s;if(typeof t==="string"&&t.includes("ag-icon")||typeof t==="object"&&t["ag-icon"]){return s}}const o=gh({tag:"span"});o.appendChild(s);return o}function od(t,e,i){let s=null;if(t==="smallDown"){Ci(262)}else if(t==="smallLeft"){Ci(263)}else if(t==="smallRight"){Ci(264)}const o=i?.getColDef().icons;if(o){s=o[t]}if(e.gos&&!s){const i=e.gos.get("icons");if(i){s=i[t]}}if(s){let e;if(typeof s==="function"){e=s()}else if(typeof s==="string"){e=s}else{Ci(38,{iconName:t});return void 0}if(typeof e==="string"){return kt(e)}if(Ht(e)){return e}Ci(133,{iconName:t});return void 0}else{const i=e.registry.getIcon(t);if(!i){e.validation?.validateIcon(t)}return gh({tag:"span",cls:`ag-icon ag-icon-${i??t}`,role:"presentation",attrs:{unselectable:"on"}})}}var nd=`.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)}`;var rd={tag:"div",children:[{tag:"div",ref:"eGhost",cls:"ag-dnd-ghost ag-unselectable",children:[{tag:"span",ref:"eIcon",cls:"ag-dnd-ghost-icon ag-shake-left-to-right"},{tag:"div",ref:"eLabel",cls:"ag-dnd-ghost-label"}]}]};var ld=class extends Qo{constructor(){super();this.dragSource=null;this.eIcon=jo;this.eLabel=jo;this.eGhost=jo;this.registerCSS(nd)}postConstruct(){const t=t=>sd(t,this.beans,null);this.dropIconMap={pinned:t("columnMovePin"),hide:t("columnMoveHide"),move:t("columnMoveMove"),left:t("columnMoveLeft"),right:t("columnMoveRight"),group:t("columnMoveGroup"),aggregate:t("columnMoveValue"),pivot:t("columnMovePivot"),notAllowed:t("dropNotAllowed")}}init(t){this.dragSource=t.dragSource;this.setTemplate(rd);this.beans.environment.applyThemeClasses(this.eGhost)}destroy(){this.dragSource=null;super.destroy()}setIcon(t,e){const{eGhost:i,eIcon:s,dragSource:o,dropIconMap:n,gos:r}=this;bt(s);let l=null;if(!t){t=o?.getDefaultIconName?o.getDefaultIconName():"notAllowed"}l=n[t];i.classList.toggle("ag-dnd-ghost-not-allowed",t==="notAllowed");s.classList.toggle("ag-shake-left-to-right",e);if(l===n["hide"]&&r.get("suppressDragLeaveHidesColumns")){return}if(l){s.appendChild(l)}}setLabel(t){this.eLabel.textContent=t}};var ad=`.ag-checkbox-cell{height:100%}`;var hd={tag:"div",cls:"ag-cell-wrapper ag-checkbox-cell",role:"presentation",children:[{tag:"ag-checkbox",ref:"eCheckbox",role:"presentation"}]};var cd=class extends Qo{constructor(){super(hd,[qr]);this.eCheckbox=jo;this.registerCSS(ad)}init(t){this.refresh(t);const{eCheckbox:e,beans:i}=this;const s=e.getInputElement();s.setAttribute("tabindex","-1");D(s,"polite");this.addManagedListeners(s,{click:t=>{Nh(t);if(e.isDisabled()){return}const i=e.getValue();this.onCheckboxChanged(i)},dblclick:t=>{Nh(t)}});this.addManagedElementListeners(t.eGridCell,{keydown:s=>{if(s.key===Zn.SPACE&&!e.isDisabled()){if(t.eGridCell===d(i)){e.toggle()}const o=e.getValue();this.onCheckboxChanged(o);s.preventDefault()}}})}refresh(t){this.params=t;this.updateCheckbox(t);return true}updateCheckbox(t){let e;let i=true;const{value:s,column:o,node:n}=t;if(n.group&&o){if(typeof s==="boolean"){e=s}else{const t=o.getColId();if(t.startsWith(qs)){e=s==null||s===""?void 0:s==="true"}else if(n.aggData&&n.aggData[t]!==void 0){e=s??void 0}else if(n.sourceRowIndex>=0){e=s??void 0}else{i=false}}}else{e=s??void 0}const{eCheckbox:r}=this;if(!i){r.setDisplayed(false);return}r.setValue(e);const l=t.disabled??!o?.isCellEditable(n);r.setDisabled(l);const a=this.getLocaleTextFunc();const h=st(a,e);const c=l?h:`${a("ariaToggleCellValue","Press SPACE to toggle cell value")} (${h})`;r.setInputAriaLabel(c)}onCheckboxChanged(t){const{params:e}=this;const{column:i,node:s,value:o}=e;this.beans?.editSvc?.setEditingCells([{column:i,colId:i.getColId(),rowIndex:s.rowIndex,rowPinned:s.rowPinned,state:"changed",oldValue:o,newValue:o}],{update:true,forceRefreshOfEditCellsOnly:true});const n=s.setDataValue(i,t,"renderer");this.beans.editSvc?.stopEditing({rowNode:s,column:i},{source:this.beans.editSvc?.isBatchEditing()?"ui":"api"});if(!n){this.updateCheckbox(e)}}};var ud=class{constructor(t,e){this.beans=t;this.floating=e;this.all=new Set;this.visible=new Set;this.order=[];this.queued=new Set}size(){return this.visible.size}add(t){const{all:e,visible:i,order:s}=this;if(e.has(t)){return}e.add(t);i.add(t);s.push(t);this.sort()}delete(t){this.all.delete(t);this.visible.delete(t);this.queued.delete(t.id);$s(this.order,t)}has(t){return this.visible.has(t)}forEach(t){this.order.forEach(t)}getByIndex(t){return this.order[t]}getById(t){for(const e of this.visible){if(e.id==t){return e}}}clear(){const{all:t,visible:e,order:i,queued:s}=this;t.clear();s.clear();e.clear();i.length=0}sort(){const{sortSvc:t,rowNodeSorter:e,gos:i}=this.beans;const s=t?.getSortOptions()??[];const o=md(this.order);this.order.sort(((t,e)=>(t.pinnedSibling?.rowIndex??0)-(e.pinnedSibling?.rowIndex??0)));this.order=e?.doFullSort(this.order,s)??this.order;if(!o){return}const n=Wi(i);if(n==="bottom"||n==="pinnedBottom"){this.order.push(o)}else{this.order.unshift(o)}}hide(t){const{all:e,visible:i}=this;e.forEach((e=>t(e)?i.delete(e):i.add(e)));this.order=Array.from(i);this.sort()}queue(t){this.queued.add(t)}unqueue(t){this.queued.delete(t)}forEachQueued(t){this.queued.forEach(t)}};function dd(t){if(t.level===-1){return true}const e=t.parent;if(e?.childrenAfterSort?.some((e=>e==t))){return dd(e)}return false}function fd(t,e){const{gos:i,rowModel:s,filterManager:o}=t;if(Mi(i)){return!s.getRowNode(e.id)}if(o?.isAnyFilterPresent()){return!dd(e)}if(i.get("pivotMode")){return!e.group}return false}function gd(t){return!!t.footer&&t.level===-1}function pd(t){return!!t.pinnedSibling&&gd(t.pinnedSibling)}function md(t){const e=t.findIndex(pd);if(e>-1){return t.splice(e,1)?.[0]}}var vd=class extends ge{postConstruct(){const{gos:t,beans:e}=this;this.top=new ud(e,"top");this.bottom=new ud(e,"bottom");const i=t=>fd(e,t.pinnedSibling);const s=()=>{const i=t.get("isRowPinned");if(i&&t.get("enableRowPinning")){e.rowModel.forEachNode((t=>this.pinRow(t,i(t))),true)}this.refreshRowPositions();this.dispatchRowPinnedEvents()};this.addManagedEventListeners({gridStylesChanged:this.onGridStylesChanges.bind(this),modelUpdated:({keepRenderedRows:t})=>{this.tryToEmptyQueues();this.pinGrandTotalRow();this.forContainers((t=>t.hide(i)));const e=this.refreshRowPositions();if(!t||e){this.dispatchRowPinnedEvents()}},columnRowGroupChanged:()=>{this.forContainers(yd);this.refreshRowPositions()},rowNodeDataChanged:({node:e})=>{const i=t.get("isRowPinnable");const s=i?.(e)??true;if(!s){this.pinRow(e,null)}},firstDataRendered:s});this.addManagedPropertyListener("pivotMode",(()=>{this.forContainers((t=>t.hide(i)));this.dispatchRowPinnedEvents()}));this.addManagedPropertyListener("grandTotalRow",(({currentValue:t})=>{this._grandTotalPinned=t==="pinnedBottom"?"bottom":t==="pinnedTop"?"top":null}));this.addManagedPropertyListener("isRowPinned",s)}destroy(){this.reset(false);super.destroy()}reset(t=true){this.forContainers((t=>{const e=[];t.forEach((t=>e.push(t)));e.forEach((t=>this.pinRow(t,null)));t.clear()}));if(t){this.dispatchRowPinnedEvents()}}pinRow(t,e,i){if(t.footer&&t.level>-1){return}if(t.footer&&t.level===-1){this._grandTotalPinned=e;kd(this.beans);return}const s=t.rowPinned??t.pinnedSibling?.rowPinned;const o=s!=null&&e!=null&&e!=s;if(o){const s=t.rowPinned?t:t.pinnedSibling;const o=t.rowPinned?t.pinnedSibling:t;this.pinRow(s,null,i);this.pinRow(o,e,i);return}const n=i&&Sd(this.beans,t,i);if(n){n.forEach((t=>this.pinRow(t,e)));return}if(e==null){const i=t.rowPinned?t:t.pinnedSibling;const s=this.findPinnedRowNode(i);if(!s){return}s.delete(i);const o=i.pinnedSibling;bd(i);this.refreshRowPositions(e);this.dispatchRowPinnedEvents(o)}else{const i=Cd(this.beans,t,e);const s=this.getContainer(e);s.add(i);if(fd(this.beans,t)){s.hide((t=>fd(this.beans,t.pinnedSibling)))}this.refreshRowPositions(e);this.dispatchRowPinnedEvents(t)}}isManual(){return true}isEmpty(t){return this.getContainer(t).size()===0}isRowsToRender(t){return!this.isEmpty(t)}ensureRowHeightsValid(){let t=false;let e=0;const i=i=>{if(i.rowHeightEstimated){const s=Ai(this.beans,i);i.setRowTop(e);i.setRowHeight(s.height);e+=s.height;t=true}};this.bottom.forEach(i);e=0;this.top.forEach(i);this.eventSvc.dispatchEvent({type:"pinnedHeightChanged"});return t}getPinnedTopTotalHeight(){return xd(this.top)}getPinnedBottomTotalHeight(){return xd(this.bottom)}getPinnedTopRowCount(){return this.top.size()}getPinnedBottomRowCount(){return this.bottom.size()}getPinnedTopRow(t){return this.top.getByIndex(t)}getPinnedBottomRow(t){return this.bottom.getByIndex(t)}getPinnedRowById(t,e){return this.getContainer(e).getById(t)}forEachPinnedRow(t,e){this.getContainer(t).forEach(e)}getPinnedState(){const t=t=>{const e=[];this.forEachPinnedRow(t,(t=>e.push(t.pinnedSibling.id)));return e};return{top:t("top"),bottom:t("bottom")}}setPinnedState(t){this.forContainers(((e,i)=>{for(const s of t[i]){const t=this.beans.rowModel.getRowNode(s);if(t){this.pinRow(t,i)}else{e.queue(s)}}}))}getGrandTotalPinned(){return this._grandTotalPinned}setGrandTotalPinned(t){this._grandTotalPinned=t}tryToEmptyQueues(){this.forContainers(((t,e)=>{const i=new Set;t.forEachQueued((t=>{const e=this.beans.rowModel.getRowNode(t);if(e){i.add(e)}}));for(const s of i){t.unqueue(s.id);this.pinRow(s,e)}}))}pinGrandTotalRow(){const{gos:t,beans:e,_grandTotalPinned:i}=this;const s=e.rowModel;if(!Fi(t)){return}const o=s.rootNode?.sibling;if(!o){return}const n=o.pinnedSibling;const r=n&&this.findPinnedRowNode(n);if(!i){if(!r){return}r.delete(n);bd(n)}else{if(r&&r.floating!==i){r.delete(n);bd(n)}if(!r||r.floating!==i){const t=Cd(e,o,i);this.getContainer(i).add(t)}}}onGridStylesChanges(t){if(t.rowHeightChanged){this.forContainers((t=>t.forEach((t=>t.setRowHeight(t.rowHeight,true)))))}}getContainer(t){return t==="top"?this.top:this.bottom}findPinnedRowNode(t){if(this.top.has(t)){return this.top}if(this.bottom.has(t)){return this.bottom}}refreshRowPositions(t){const e=t=>wd(this.beans,t);if(t){return e(this.getContainer(t))}let i=false;this.forContainers((t=>{const s=e(t);i||(i=s)}));return i}forContainers(t){t(this.top,"top");t(this.bottom,"bottom")}dispatchRowPinnedEvents(t){this.eventSvc.dispatchEvent({type:"pinnedRowsChanged"});t?.dispatchRowEvent("rowPinned")}};function wd(t,e){let i=0;let s=false;e.forEach(((e,o)=>{s||(s=e.rowTop!==i);e.setRowTop(i);if(e.rowHeightEstimated||e.rowHeight==null){const i=Ai(t,e).height;s||(s=e.rowHeight!==i);e.setRowHeight(i)}e.setRowIndex(o);i+=e.rowHeight}));return s}function Cd(t,e,i){if(e.pinnedSibling){return e.pinnedSibling}const s=oh(e,t);s.setRowTop(null);s.setRowIndex(null);s.rowPinned=i;const o=i==="top"?Ja:Xa;s.id=`${o}${i}-${e.id}`;s.pinnedSibling=e;e.pinnedSibling=s;return s}function bd(t){if(!t.pinnedSibling){return}t.rowPinned=null;t.setRowTop(null);t.setRowIndex(null);const e=t.pinnedSibling;t.pinnedSibling=void 0;if(e){e.pinnedSibling=void 0;e.rowPinned=null}}function yd(t){const e=new Set;t.forEach((t=>{if(t.group){e.add(t)}}));e.forEach((e=>t.delete(e)))}function Sd(t,e,i){const{rowSpanSvc:s}=t;const o=(i&&s?.isCellSpanning(i,e))??false;if(i&&o){return s?.getCellSpan(i,e)?.spannedNodes}}function xd(t){const e=t.size();if(e===0){return 0}const i=t.getByIndex(e-1);if(i===void 0){return 0}return i.rowTop+i.rowHeight}function kd({gos:t,rowModel:e}){if(Fi(t)){e.refreshModel({step:"map"})}}var Rd=class extends ge{constructor(){super(...arguments);this.nextId=0;this.pinnedTopRows={cache:{},order:[]};this.pinnedBottomRows={cache:{},order:[]}}postConstruct(){const t=this.gos;this.setPinnedRowData(t.get("pinnedTopRowData"),"top");this.setPinnedRowData(t.get("pinnedBottomRowData"),"bottom");this.addManagedPropertyListener("pinnedTopRowData",(t=>this.setPinnedRowData(t.currentValue,"top")));this.addManagedPropertyListener("pinnedBottomRowData",(t=>this.setPinnedRowData(t.currentValue,"bottom")));this.addManagedEventListeners({gridStylesChanged:this.onGridStylesChanges.bind(this)})}reset(){}isEmpty(t){return this.getCache(t).order.length===0}isRowsToRender(t){return!this.isEmpty(t)}isManual(){return false}pinRow(t,e){}onGridStylesChanges(t){if(t.rowHeightChanged){const t=t=>{t.setRowHeight(t.rowHeight,true)};Pd(this.pinnedBottomRows,t);Pd(this.pinnedTopRows,t)}}ensureRowHeightsValid(){let t=false;let e=0;const i=i=>{if(i.rowHeightEstimated){const s=Ai(this.beans,i);i.setRowTop(e);i.setRowHeight(s.height);e+=s.height;t=true}};Pd(this.pinnedBottomRows,i);e=0;Pd(this.pinnedTopRows,i);this.eventSvc.dispatchEvent({type:"pinnedHeightChanged"});return t}setPinnedRowData(t,e){this.updateNodesFromRowData(t,e);this.eventSvc.dispatchEvent({type:"pinnedRowDataChanged"})}updateNodesFromRowData(t,e){const i=this.getCache(e);if(t===void 0){i.order.length=0;i.cache={};return}const s=_i(this.gos);const o=e==="top"?Ja:Xa;const n=new Set(i.order);const r=[];const l=new Set;let a=0;let h=-1;for(const c of t){const t=s?.({data:c,level:0,rowPinned:e})??o+this.nextId++;if(l.has(t)){Ci(96,{id:t,data:c});continue}h++;l.add(t);r.push(t);const u=Fd(i,t);if(u!==void 0){if(u.data!==c){u.updateData(c)}a+=this.setRowTopAndRowIndex(u,a,h);n.delete(t)}else{const s=new eh(this.beans);s.id=t;s.data=c;s.rowPinned=e;a+=this.setRowTopAndRowIndex(s,a,h);i.cache[t]=s;i.order.push(t)}}for(const t of n){Fd(i,t)?.clearRowTopAndRowIndex();delete i.cache[t]}i.order=r}setRowTopAndRowIndex(t,e,i){t.setRowTop(e);t.setRowHeight(Ai(this.beans,t).height);t.setRowIndex(i);return t.rowHeight}getPinnedTopTotalHeight(){return Ed(this.pinnedTopRows)}getPinnedBottomTotalHeight(){return Ed(this.pinnedBottomRows)}getPinnedTopRowCount(){return Dd(this.pinnedTopRows)}getPinnedBottomRowCount(){return Dd(this.pinnedBottomRows)}getPinnedTopRow(t){return Md(this.pinnedTopRows,t)}getPinnedBottomRow(t){return Md(this.pinnedBottomRows,t)}getPinnedRowById(t,e){return Fd(this.getCache(e),t)}forEachPinnedRow(t,e){return Pd(this.getCache(t),e)}getCache(t){return t==="top"?this.pinnedTopRows:this.pinnedBottomRows}getPinnedState(){return{top:[],bottom:[]}}setPinnedState(){}getGrandTotalPinned(){return}setGrandTotalPinned(){}};function Ed(t){const e=Dd(t);if(e===0){return 0}const i=Md(t,e-1);if(i===void 0){return 0}return i.rowTop+i.rowHeight}function Fd(t,e){return t.cache[e]}function Md(t,e){return Fd(t,t.order[e])}function Pd(t,e){t.order.forEach(((i,s)=>{const o=Fd(t,i);o&&e(o,s)}))}function Dd(t){return t.order.length}var Td=class extends ge{constructor(){super(...arguments);this.beanName="pinnedRowModel"}postConstruct(){const{gos:t}=this;const e=()=>{const e=t.get("enableRowPinning");const i=Wi(t);const s=i==="pinnedBottom"||i==="pinnedTop";const o=!!e||s;const n=o?this.inner instanceof Rd:this.inner instanceof vd;if(this.inner&&n){this.destroyBean(this.inner)}if(n||!this.inner){this.inner=this.createManagedBean(o?new vd:new Rd)}};this.addManagedPropertyListeners(["enableRowPinning","grandTotalRow"],e);e()}reset(){return this.inner.reset()}isEmpty(t){return this.inner.isEmpty(t)}isManual(){return this.inner.isManual()}isRowsToRender(t){return this.inner.isRowsToRender(t)}pinRow(t,e,i){return this.inner.pinRow(t,e,i)}ensureRowHeightsValid(){return this.inner.ensureRowHeightsValid()}getPinnedRowById(t,e){return this.inner.getPinnedRowById(t,e)}getPinnedTopTotalHeight(){return this.inner.getPinnedTopTotalHeight()}getPinnedBottomTotalHeight(){return this.inner.getPinnedBottomTotalHeight()}getPinnedTopRowCount(){return this.inner.getPinnedTopRowCount()}getPinnedBottomRowCount(){return this.inner.getPinnedBottomRowCount()}getPinnedTopRow(t){return this.inner.getPinnedTopRow(t)}getPinnedBottomRow(t){return this.inner.getPinnedBottomRow(t)}forEachPinnedRow(t,e){return this.inner.forEachPinnedRow(t,e)}getPinnedState(){return this.inner.getPinnedState()}setPinnedState(t){return this.inner.setPinnedState(t)}setGrandTotalPinned(t){return this.inner.setGrandTotalPinned(t)}getGrandTotalPinned(){return this.inner.getGrandTotalPinned()}};var Bd=(t=>{t["Applied"]="Applied";t["StoreNotFound"]="StoreNotFound";t["StoreLoading"]="StoreLoading";t["StoreWaitingToLoad"]="StoreWaitingToLoad";t["StoreLoadingFailed"]="StoreLoadingFailed";t["StoreWrongType"]="StoreWrongType";t["Cancelled"]="Cancelled";t["StoreNotStarted"]="StoreNotStarted";return t})(Bd||{});function Ad(t){return!!(t.rowPinned&&t.pinnedSibling)}function Id(t,e,i,s){const o=e==="top";if(!i){return Id(t,e,o?t.getPinnedTopRow(0):t.getPinnedBottomRow(0),s)}if(!s){const s=o?t.getPinnedTopRowCount():t.getPinnedBottomRowCount();return Id(t,e,i,o?t.getPinnedTopRow(s-1):t.getPinnedBottomRow(s-1))}let n=false;let r=false;const l=[];t.forEachPinnedRow(e,(t=>{if(t===i&&!n){n=true;l.push(t);return}if(n&&t===s){r=true;l.push(t);return}if(n&&!r){l.push(t)}}));return l}var zd={tag:"div",cls:"ag-selection-checkbox",role:"presentation",children:[{tag:"ag-checkbox",ref:"eCheckbox",role:"presentation"}]};var Hd=class extends Qo{constructor(){super(zd,[qr]);this.eCheckbox=jo}postConstruct(){this.eCheckbox.setPassive(true)}onDataChanged(){this.onSelectionChanged()}onSelectableChanged(){this.showOrHideSelect()}onSelectionChanged(){const t=this.getLocaleTextFunc();const{rowNode:e,eCheckbox:i}=this;const s=e.isSelected();const o=st(t,s);const[n,r]=e.selectable?["ariaRowToggleSelection","Press Space to toggle row selection"]:["ariaRowSelectionDisabled","Row Selection is disabled for this row"];const l=t(n,r);i.setValue(s,true);i.setInputAriaLabel(`${l} (${o})`)}init(t){this.rowNode=t.rowNode;this.column=t.column;this.overrides=t.overrides;this.onSelectionChanged();this.addManagedListeners(this.eCheckbox.getInputElement(),{dblclick:Nh,click:t=>{Nh(t);this.beans.selectionSvc?.handleSelectionEvent(t,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:t,previousValue:e})=>{const i=typeof t==="object"?es(t):void 0;const s=typeof e==="object"?es(e):void 0;if(i!==s){this.onSelectableChanged()}}));const e=cs(this.gos);const i=e||typeof this.getIsVisible()==="function";if(i){const t=this.showOrHideSelect.bind(this);this.addManagedEventListeners({displayedColumnsChanged:t});this.addManagedListeners(this.rowNode,{dataChanged:t,cellChanged:t});this.showOrHideSelect()}this.eCheckbox.getInputElement().setAttribute("tabindex","-1")}showOrHideSelect(){const{column:t,rowNode:e,overrides:i,gos:s}=this;const o=e.selectable;const n=this.getIsVisible();let r=void 0;if(typeof n==="function"){const s=i?.callbackParams;if(!t){r=n({...s,node:e,data:e.data})}else{const i=t.createColumnFunctionCallbackParams(e);r=n({...s,...i})}}else{r=n??false}const l=o&&!r||!o&&r;const a=o||r;const h=s.get("rowSelection");const c=h&&typeof h!=="string"?!es(h):!!t?.getColDef().showDisabledCheckboxes;this.setVisible(a&&(l?c:true));this.setDisplayed(a&&(l?c:true));if(a){this.eCheckbox.setDisabled(l)}if(i?.removeHidden){this.setDisplayed(a)}}getIsVisible(){const t=this.overrides;if(t){return t.isVisible}const e=this.gos.get("rowSelection");if(e&&typeof e!=="string"){return Ji(e)}return this.column?.getColDef()?.checkboxSelection}};var Od=class{constructor(t,e){this.rowModel=t;this.pinnedRowModel=e;this.selectAll=false;this.rootId=null;this.endId=null;this.cachedRange=[]}reset(){this.rootId=null;this.endId=null;this.cachedRange.length=0}setRoot(t){this.rootId=t.id;this.endId=null;this.cachedRange.length=0}setEndRange(t){this.endId=t.id;this.cachedRange.length=0}getRange(){if(this.cachedRange.length===0){const t=this.getRoot();const e=this.getEnd();if(t==null||e==null){return this.cachedRange}this.cachedRange=this.getNodesInRange(t,e)??[]}return this.cachedRange}isInRange(t){if(this.rootId===null){return false}return this.getRange().some((e=>e.id===t.id))}getRoot(t){if(this.rootId){return this.getRowNode(this.rootId)}if(t){this.setRoot(t);return t}}getEnd(){if(this.endId){return this.getRowNode(this.endId)}}getRowNode(t){let e;const{rowModel:i,pinnedRowModel:s}=this;e??(e=i.getRowNode(t));if(s?.isManual()){e??(e=s.getPinnedRowById(t,"top"));e??(e=s.getPinnedRowById(t,"bottom"))}return e}truncate(t){const e=this.getRange();if(e.length===0){return{keep:[],discard:[]}}const i=e[0].id===this.rootId;const s=e.findIndex((e=>e.id===t.id));if(s>-1){const o=e.slice(0,s);const n=e.slice(s+1);this.setEndRange(t);return i?{keep:o,discard:n}:{keep:n,discard:o}}else{return{keep:e,discard:[]}}}extend(t,e=false){const i=this.getRoot();if(i==null){const i=this.getRange().slice();if(e){t.depthFirstSearch((t=>!t.group&&i.push(t)))}i.push(t);this.setRoot(t);return{keep:i,discard:[]}}const s=this.getNodesInRange(i,t);if(!s){this.setRoot(t);return{keep:[t],discard:[]}}if(s.find((t=>t.id===this.endId))){this.setEndRange(t);return{keep:this.getRange(),discard:[]}}else{const e=this.getRange().slice();this.setEndRange(t);return{keep:this.getRange(),discard:e}}}getNodesInRange(t,e){const{pinnedRowModel:i,rowModel:s}=this;if(!i?.isManual()){return s.getNodesInRangeForSelection(t,e)}if(t.rowPinned==="top"&&!e.rowPinned){const o=Id(i,"top",t,void 0);return o.concat(s.getNodesInRangeForSelection(s.getRow(0),e)??[])}if(t.rowPinned==="bottom"&&!e.rowPinned){const o=Id(i,"bottom",void 0,t);const n=s.getRowCount();const r=s.getRow(n-1);return(s.getNodesInRangeForSelection(e,r)??[]).concat(o)}if(!t.rowPinned&&!e.rowPinned){return s.getNodesInRangeForSelection(t,e)}if(t.rowPinned==="top"&&e.rowPinned==="top"){return Id(i,"top",t,e)}if(t.rowPinned==="bottom"&&e.rowPinned==="top"){const o=Id(i,"top",e,void 0);const n=Id(i,"bottom",void 0,t);const r=s.getRow(0);const l=s.getRow(s.getRowCount()-1);return o.concat(s.getNodesInRangeForSelection(r,l)??[]).concat(n)}if(!t.rowPinned&&e.rowPinned==="top"){const o=Id(i,"top",e,void 0);return o.concat(s.getNodesInRangeForSelection(s.getRow(0),t)??[])}if(t.rowPinned==="top"&&e.rowPinned==="bottom"){const o=Id(i,"top",t,void 0);const n=Id(i,"bottom",void 0,e);const r=s.getRow(0);const l=s.getRow(s.getRowCount()-1);return o.concat(s.getNodesInRangeForSelection(r,l)??[]).concat(n)}if(t.rowPinned==="bottom"&&e.rowPinned==="bottom"){return Id(i,"bottom",t,e)}if(!t.rowPinned&&e.rowPinned==="bottom"){const o=Id(i,"bottom",void 0,e);const n=s.getRow(s.getRowCount());return(s.getNodesInRangeForSelection(t,n)??[]).concat(o)}return null}};var Ld=class extends ge{constructor(t){super();this.column=t;this.cbSelectAllVisible=false;this.processingEventFromCheckbox=false}onSpaceKeyDown(t){const e=this.cbSelectAll;if(e.isDisplayed()&&!e.getGui().contains(d(this.beans))){t.preventDefault();e.setValue(!e.getValue())}}getCheckboxGui(){return this.cbSelectAll.getGui()}setComp(t){this.headerCellCtrl=t;const e=this.createManagedBean(new jr);this.cbSelectAll=e;e.addCss("ag-header-select-all");x(e.getGui(),"presentation");this.showOrHideSelectAll();const i=this.updateStateOfCheckbox.bind(this);this.addManagedEventListeners({newColumnsLoaded:()=>this.showOrHideSelectAll(),displayedColumnsChanged:this.onDisplayedColumnsChanged.bind(this),selectionChanged:i,paginationChanged:i,modelUpdated:i});this.addManagedPropertyListener("rowSelection",(({currentValue:t,previousValue:e})=>{const i=t=>typeof t==="string"||!t||t.mode==="singleRow"?void 0:t.selectAll;if(i(t)!==i(e)){this.showOrHideSelectAll()}this.updateStateOfCheckbox()}));this.addManagedListeners(e,{fieldValueChanged:this.onCbSelectAll.bind(this)});e.getInputElement().setAttribute("tabindex","-1");this.refreshSelectAllLabel()}onDisplayedColumnsChanged(t){if(!this.isAlive()){return}this.showOrHideSelectAll(t.source==="uiColumnMoved")}showOrHideSelectAll(t=false){const e=this.isCheckboxSelection();this.cbSelectAllVisible=e;this.cbSelectAll.setDisplayed(e);if(e){this.checkRightRowModelType("selectAllCheckbox");this.checkSelectionType("selectAllCheckbox");this.updateStateOfCheckbox()}this.refreshSelectAllLabel(t)}updateStateOfCheckbox(){if(!this.cbSelectAllVisible||this.processingEventFromCheckbox){return}this.processingEventFromCheckbox=true;const t=this.getSelectAllMode();const e=this.beans.selectionSvc;const i=this.cbSelectAll;const s=e.getSelectAllState(t);i.setValue(s);const o=e.hasNodesToSelect(t);i.setDisabled(!o);this.refreshSelectAllLabel();this.processingEventFromCheckbox=false}refreshSelectAllLabel(t=false){const e=this.getLocaleTextFunc();const{headerCellCtrl:i,cbSelectAll:s,cbSelectAllVisible:o}=this;const n=s.getValue();const r=st(e,n);const l=e("ariaRowSelectAll","Press Space to toggle all rows selection");i.setAriaDescriptionProperty("selectAll",o?`${l} (${r})`:null);s.setInputAriaLabel(e("ariaHeaderSelection","Column with Header Selection"));if(!t){i.announceAriaDescription()}}checkSelectionType(t){const e=ds(this.gos);if(!e){Ci(128,{feature:t});return false}return true}checkRightRowModelType(t){const{gos:e,rowModel:i}=this.beans;const s=Fi(e)||Mi(e);if(!s){Ci(129,{feature:t,rowModel:i.getType()});return false}return true}onCbSelectAll(){if(this.processingEventFromCheckbox){return}if(!this.cbSelectAllVisible){return}const t=this.cbSelectAll.getValue();const e=this.getSelectAllMode();let i="uiSelectAll";if(e==="currentPage"){i="uiSelectAllCurrentPage"}else if(e==="filtered"){i="uiSelectAllFiltered"}const s={source:i,selectAll:e};const o=this.beans.selectionSvc;if(t){o.selectAllRowNodes(s)}else{o.deselectAllRowNodes(s)}}isCheckboxSelection(){const{column:t,gos:e,beans:i}=this;const s=e.get("rowSelection");const o=typeof s==="object";const n=o?"headerCheckbox":"headerCheckboxSelection";return Vd(i,t)&&this.checkRightRowModelType(n)&&this.checkSelectionType(n)}getSelectAllMode(){const t=ps(this.gos,false);if(t){return t}const{headerCheckboxSelectionCurrentPageOnly:e,headerCheckboxSelectionFilteredOnly:i}=this.column.getColDef();if(e){return"currentPage"}if(i){return"filtered"}return"all"}destroy(){super.destroy();this.cbSelectAll=void 0;this.headerCellCtrl=void 0}};function Vd({gos:t,selectionColSvc:e},i){const s=t.get("rowSelection");const o=i.getColDef();const{headerCheckboxSelection:n}=o;let r=false;const l=typeof s==="object";if(l){const t=to(i);const o=Xs(i);const n=ts(s);if(n==="autoGroupColumn"&&o||t&&e?.isSelectionColumnEnabled()){r=Xi(s)}}else if(typeof n==="function"){r=n(Rs(t,{column:i,colDef:o}))}else{r=!!n}return r}var Nd=class extends ge{postConstruct(){const{gos:t,beans:e}=this;this.selectionCtx=new Od(e.rowModel,e.pinnedRowModel);this.addManagedPropertyListeners(["isRowSelectable","rowSelection"],(()=>{const e=cs(t);if(e!==this.isRowSelectable){this.isRowSelectable=e;this.updateSelectable()}}));this.isRowSelectable=cs(t);this.addManagedEventListeners({cellValueChanged:t=>this.updateRowSelectable(t.node),rowNodeDataChanged:t=>this.updateRowSelectable(t.node)})}destroy(){super.destroy();this.selectionCtx.reset()}createCheckboxSelectionComponent(){return new Hd}createSelectAllFeature(t){if(Vd(this.beans,t)){return new Ld(t)}}isMultiSelect(){return ds(this.gos)}onRowCtrlSelected(t,e,i){const s=!!t.rowNode.isSelected();t.forEachGui(i,(t=>{t.rowComp.toggleCss("ag-row-selected",s);const i=t.element;Y(i,s);const o=i.contains(d(this.beans));if(o){e(t)}}))}announceAriaRowSelection(t){if(this.isRowSelectionBlocked(t)){return}const e=t.isSelected();const i=this.beans.editSvc?.isEditing({rowNode:t});if(!t.selectable||i){return}const s=this.getLocaleTextFunc();const o=s(e?"ariaRowDeselect":"ariaRowSelect",`Press SPACE to ${e?"deselect":"select"} this row`);this.beans.ariaAnnounce?.announceValue(o,"rowSelection")}isRowSelectionBlocked(t){return!t.selectable||t.rowPinned&&!Ad(t)||!Di(this.gos)}updateRowSelectable(t,e){const i=t.rowPinned&&t.pinnedSibling?t.pinnedSibling.selectable:this.isRowSelectable?.(t)??true;this.setRowSelectable(t,i,e);return i}setRowSelectable(t,e,i){if(t.selectable!==e){t.selectable=e;t.dispatchRowEvent("selectableChanged");if(i){return}const s=vs(this.gos);if(s){const e=this.calculateSelectedFromChildren(t);this.setNodesSelected({nodes:[t],newValue:e??false,source:"selectableChanged"});return}if(t.isSelected()&&!t.selectable){this.setNodesSelected({nodes:[t],newValue:false,source:"selectableChanged"})}}}calculateSelectedFromChildren(t){let e=false;let i=false;if(!t.childrenAfterGroup?.length){return t.selectable?t.__selected:null}for(let s=0;sthis.shouldStopEventPropagation(),onTabKeyDown:t=>this.onTabKeyDown(t),handleKeyDown:t=>this.handleKeyDown(t),onFocusIn:t=>this.onFocusIn(t),onFocusOut:t=>this.onFocusOut(t)}));this.activateTabGuards();for(const t of[this.eTopGuard,this.eBottomGuard]){this.addManagedElementListeners(t,{focus:this.onFocus.bind(this)})}}handleKeyDown(t){if(this.providedHandleKeyDown){this.providedHandleKeyDown(t)}}tabGuardsAreActive(){return!!this.eTopGuard&&this.eTopGuard.hasAttribute("tabIndex")}shouldStopEventPropagation(){if(this.providedShouldStopEventPropagation){return this.providedShouldStopEventPropagation()}return false}activateTabGuards(){if(this.forcingFocusOut){return}const t=this.gos.get("tabIndex");this.comp.setTabIndex(t.toString())}deactivateTabGuards(){this.comp.setTabIndex()}onFocus(t){if(this.isFocusableContainer&&!this.eFocusableElement.contains(t.relatedTarget)){if(!this.allowFocus){this.findNextElementOutsideAndFocus(t.target===this.eBottomGuard);return}}if(this.skipTabGuardFocus){this.skipTabGuardFocus=false;return}if(this.forceFocusOutWhenTabGuardsAreEmpty){const e=this.providedIsEmpty?this.providedIsEmpty():Hr(this.eFocusableElement,".ag-tab-guard").length===0;if(e){this.findNextElementOutsideAndFocus(t.target===this.eBottomGuard);return}}if(this.isFocusableContainer&&this.eFocusableElement.contains(t.relatedTarget)){return}const e=t.target===this.eBottomGuard;const i=this.providedFocusInnerElement?this.providedFocusInnerElement(e):this.focusInnerElement(e);if(!i&&this.forceFocusOutWhenTabGuardsAreEmpty){this.findNextElementOutsideAndFocus(t.target===this.eBottomGuard)}}findNextElementOutsideAndFocus(t){const e=f(this.beans);const i=Hr(e.body,null,true);const s=i.indexOf(t?this.eTopGuard:this.eBottomGuard);if(s===-1){return}let o;let n;if(t){o=0;n=s}else{o=s+1;n=i.length}const r=i.slice(o,n);const l=this.gos.get("tabIndex");r.sort(((t,e)=>{const i=Number.parseInt(t.getAttribute("tabindex")||"0");const s=Number.parseInt(e.getAttribute("tabindex")||"0");if(s===l){return 1}if(i===l){return-1}if(i===0){return 1}if(s===0){return-1}return i-s}));r[t?r.length-1:0]?.focus()}onFocusIn(t){if(this.focusTrapActive||this.forcingFocusOut){return}if(this.providedFocusIn){this.providedFocusIn(t)}if(!this.isFocusableContainer){this.deactivateTabGuards()}}onFocusOut(t){if(this.focusTrapActive){return}if(this.providedFocusOut){this.providedFocusOut(t)}if(!this.eFocusableElement.contains(t.relatedTarget)){this.activateTabGuards()}}onTabKeyDown(t){if(this.providedOnTabKeyDown){this.providedOnTabKeyDown(t);return}if(this.focusTrapActive){return}if(t.defaultPrevented){return}const e=this.tabGuardsAreActive();if(e){this.deactivateTabGuards()}const i=this.getNextFocusableElement(t.shiftKey);if(e){setTimeout((()=>this.activateTabGuards()),0)}if(!i){return}i.focus();t.preventDefault()}focusInnerElement(t=false){const e=Hr(this.eFocusableElement);if(this.tabGuardsAreActive()){e.splice(0,1);e.splice(e.length-1,1)}if(!e.length){return false}e[t?e.length-1:0].focus({preventScroll:true});return true}getNextFocusableElement(t){return Lr(this.beans,this.eFocusableElement,false,t)}forceFocusOutOfContainer(t=false){if(this.forcingFocusOut){return}const e=t?this.eTopGuard:this.eBottomGuard;this.activateTabGuards();this.skipTabGuardFocus=true;this.forcingFocusOut=true;e.focus();window.setTimeout((()=>{this.forcingFocusOut=false;this.activateTabGuards()}))}isTabGuard(t,e){return t===this.eTopGuard&&!e||t===this.eBottomGuard&&(e??true)}setAllowFocus(t){this.allowFocus=t}};var Wd=class extends ge{constructor(t){super();this.comp=t}initialiseTabGuard(t){this.eTopGuard=this.createTabGuard("top");this.eBottomGuard=this.createTabGuard("bottom");this.eFocusableElement=this.comp.getFocusableElement();const{eTopGuard:e,eBottomGuard:i,eFocusableElement:s}=this;const o=[e,i];const n={setTabIndex:t=>{for(const e of o){t!=null?e.setAttribute("tabindex",t):e.removeAttribute("tabindex")}}};this.addTabGuards(e,i);const{focusTrapActive:r=false,onFocusIn:l,onFocusOut:a,focusInnerElement:h,handleKeyDown:c,onTabKeyDown:u,shouldStopEventPropagation:d,isEmpty:f,forceFocusOutWhenTabGuardsAreEmpty:g,isFocusableContainer:p}=t;this.tabGuardCtrl=this.createManagedBean(new $d({comp:n,focusTrapActive:r,eTopGuard:e,eBottomGuard:i,eFocusableElement:s,onFocusIn:l,onFocusOut:a,focusInnerElement:h,handleKeyDown:c,onTabKeyDown:u,shouldStopEventPropagation:d,isEmpty:f,forceFocusOutWhenTabGuardsAreEmpty:g,isFocusableContainer:p}))}getTabGuardCtrl(){return this.tabGuardCtrl}createTabGuard(t){const e=f(this.beans).createElement("div");const i=t==="top"?Gd.TAB_GUARD_TOP:Gd.TAB_GUARD_BOTTOM;e.classList.add(Gd.TAB_GUARD,i);x(e,"presentation");return e}addTabGuards(t,e){const i=this.eFocusableElement;i.insertAdjacentElement("afterbegin",t);i.insertAdjacentElement("beforeend",e)}removeAllChildrenExceptTabGuards(){const t=[this.eTopGuard,this.eBottomGuard];bt(this.comp.getFocusableElement());this.addTabGuards(...t)}forceFocusOutOfContainer(t=false){this.tabGuardCtrl.forceFocusOutOfContainer(t)}appendChild(t,e,i){if(!Ht(e)){e=e.getGui()}const{eBottomGuard:s}=this;if(s){s.insertAdjacentElement("beforebegin",e)}else{t(e,i)}}destroy(){const{eTopGuard:t,eBottomGuard:e}=this;yt(t);yt(e);super.destroy()}};var Ud=class extends Qo{initialiseTabGuard(t){this.tabGuardFeature=this.createManagedBean(new Wd(this));this.tabGuardFeature.initialiseTabGuard(t)}forceFocusOutOfContainer(t=false){this.tabGuardFeature.forceFocusOutOfContainer(t)}appendChild(t,e){this.tabGuardFeature.appendChild(super.appendChild.bind(this),t,e)}};var jd=500;var qd=550;var Kd;var _d=t=>{if(!Kd){Kd=new WeakSet}else if(Kd.has(t)){return false}Kd.add(t);return true};var Zd=class{constructor(t,e=false){this.eElement=t;this.preventClick=e;this.startListener=null;this.handlers=[];this.eventSvc=void 0;this.touchStart=null;this.lastTapTime=null;this.longPressTimer=0;this.moved=false}addEventListener(e,i){let s=this.eventSvc;if(!s){if(s===null){return}this.eventSvc=s=new t;const e=this.onTouchStart.bind(this);this.startListener=e;this.eElement.addEventListener("touchstart",e,{passive:true})}s.addEventListener(e,i)}removeEventListener(t,e){this.eventSvc?.removeEventListener(t,e)}onTouchStart(t){if(this.touchStart||!_d(t)){return}const e=t.touches[0];this.touchStart=e;const i=this.handlers;if(!i.length){const t=this.eElement;const e=t.ownerDocument;const s=this.onTouchMove.bind(this);const o=this.onTouchEnd.bind(this);const n=this.onTouchCancel.bind(this);const r={passive:true};const l={passive:false};se(i,[t,"touchmove",s,r],[e,"touchcancel",n,r],[e,"touchend",o,l],[e,"contextmenu",ne,l])}this.clearLongPress();this.longPressTimer=window.setTimeout((()=>{this.longPressTimer=0;if(this.touchStart===e&&!this.moved){this.moved=true;this.eventSvc?.dispatchEvent({type:"longTap",touchStart:e,touchEvent:t})}}),qd)}onTouchMove(t){const{moved:e,touchStart:i}=this;if(!e&&i){const e=te(i,t.touches);const s=e&&!Xt(e,i,4);if(s){this.clearLongPress();this.moved=true}}}onTouchEnd(t){const e=this.touchStart;if(!e||!te(e,t.changedTouches)){return}if(!this.moved){this.eventSvc?.dispatchEvent({type:"tap",touchStart:e});this.checkDoubleTap(e)}if(this.preventClick){ne(t)}this.cancel()}onTouchCancel(t){const e=this.touchStart;if(!e||!te(e,t.changedTouches)){return}this.lastTapTime=null;this.cancel()}checkDoubleTap(t){let e=Date.now();const i=this.lastTapTime;if(i){const s=e-i;if(s>jd){this.eventSvc?.dispatchEvent({type:"doubleTap",touchStart:t});e=null}}this.lastTapTime=e}cancel(){this.clearLongPress();oe(this.handlers);this.touchStart=null}clearLongPress(){window.clearTimeout(this.longPressTimer);this.longPressTimer=0;this.moved=false}destroy(){const t=this.startListener;if(t){this.startListener=null;this.eElement.removeEventListener("touchstart",t)}this.cancel();this.eElement=null;this.eventSvc=null}};var Qd=(t=>{t[t["VALUE"]=0]="VALUE";t[t["DIMENSION"]=1]="DIMENSION";return t})(Qd||{});var Yd=class{constructor(t){this.tickingInterval=null;this.onScrollCallback=null;this.scrollContainer=t.scrollContainer;this.scrollHorizontally=t.scrollAxis.includes("x");this.scrollVertically=t.scrollAxis.includes("y");this.scrollByTick=t.scrollByTick!=null?t.scrollByTick:20;if(t.onScrollCallback){this.onScrollCallback=t.onScrollCallback}if(this.scrollVertically){this.getVerticalPosition=t.getVerticalPosition;this.setVerticalPosition=t.setVerticalPosition}if(this.scrollHorizontally){this.getHorizontalPosition=t.getHorizontalPosition;this.setHorizontalPosition=t.setHorizontalPosition}this.shouldSkipVerticalScroll=t.shouldSkipVerticalScroll||(()=>false);this.shouldSkipHorizontalScroll=t.shouldSkipHorizontalScroll||(()=>false)}get scrolling(){return this.tickingInterval!==null}check(t,e=false){const i=e||this.shouldSkipVerticalScroll();if(i&&this.shouldSkipHorizontalScroll()){return}const s=this.scrollContainer.getBoundingClientRect();const o=this.scrollByTick;this.tickLeft=t.clientXs.right-o;this.tickUp=t.clientYs.bottom-o&&!i;if(this.tickLeft||this.tickRight||this.tickUp||this.tickDown){this.ensureTickingStarted()}else{this.ensureCleared()}}ensureTickingStarted(){if(this.tickingInterval===null){this.tickingInterval=window.setInterval(this.doTick.bind(this),100);this.tickCount=0}}doTick(){this.tickCount++;const t=this.tickCount>20?200:this.tickCount>10?80:40;if(this.scrollVertically){const e=this.getVerticalPosition();if(this.tickUp){this.setVerticalPosition(e-t)}if(this.tickDown){this.setVerticalPosition(e+t)}}if(this.scrollHorizontally){const e=this.getHorizontalPosition();if(this.tickLeft){this.setHorizontalPosition(e-t)}if(this.tickRight){this.setHorizontalPosition(e+t)}}if(this.onScrollCallback){this.onScrollCallback()}}ensureCleared(){if(this.tickingInterval){window.clearInterval(this.tickingInterval);this.tickingInterval=null}}};var Jd=class{constructor(t="javascript"){this.frameworkName=t;this.renderingEngine="vanilla";this.batchFrameworkComps=false;this.wrapIncoming=t=>t();this.wrapOutgoing=t=>t();this.baseDocLink=`${Be}/${this.frameworkName}-data-grid`;hi(this.baseDocLink)}frameworkComponent(t){return null}isFrameworkComponent(t){return false}getDocLink(t){return this.baseDocLink+(t?"/"+t:"")}};function Xd(t){return{beanName:"gridApi",bean:t.getBean("apiFunctionSvc").api}}var tf=["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"];var ef=Object.fromEntries(tf.map(((t,e)=>[t,e])));function sf(t,e){const i=(t.beanName?ef[t.beanName]:void 0)??Number.MAX_SAFE_INTEGER;const s=(e.beanName?ef[e.beanName]:void 0)??Number.MAX_SAFE_INTEGER;return i-s}function of(t,e){if(t?.beanName==="gridDestroySvc"){return-1}if(e?.beanName==="gridDestroySvc"){return 1}return 0}var nf={tag:"div",cls:"ag-pinned-left-header",role:"rowgroup"};var rf={tag:"div",cls:"ag-pinned-right-header",role:"rowgroup"};var lf={tag:"div",cls:"ag-header-viewport",role:"rowgroup",attrs:{tabindex:"-1"},children:[{tag:"div",ref:"eCenterContainer",cls:"ag-header-container",role:"presentation"}]};var af=class extends Qo{constructor(t){super();this.eCenterContainer=jo;this.headerRowComps={};this.rowCompsList=[];this.pinned=t}postConstruct(){this.selectAndSetTemplate();const t={setDisplayed:t=>this.setDisplayed(t),setCtrls:t=>this.setCtrls(t),setCenterWidth:t=>this.eCenterContainer.style.width=t,setViewportScrollLeft:t=>this.getGui().scrollLeft=t,setPinnedContainerWidth:t=>{const e=this.getGui();e.style.width=t;e.style.maxWidth=t;e.style.minWidth=t}};const e=this.createManagedBean(new Ku(this.pinned));e.setComp(t,this.getGui())}selectAndSetTemplate(){const t=this.pinned=="left";const e=this.pinned=="right";const i=t?nf:e?rf:lf;this.setTemplate(i);this.eRowContainer=this.eCenterContainer!==jo?this.eCenterContainer:this.getGui()}destroy(){this.setCtrls([]);super.destroy()}destroyRowComp(t){this.destroyBean(t);t.getGui().remove()}setCtrls(t){const e=this.headerRowComps;this.headerRowComps={};this.rowCompsList=[];let i;const s=t=>{const e=t.getGui();const s=e.parentElement!=this.eRowContainer;if(s){this.eRowContainer.appendChild(e)}if(i){Rt(this.eRowContainer,e,i)}i=e};for(const i of t){const t=i.instanceId;const o=e[t];delete e[t];const n=o?o:this.createBean(new Lu(i));this.headerRowComps[t]=n;this.rowCompsList.push(n);s(n)}for(const t of Object.values(e)){this.destroyRowComp(t)}}};var hf={tag:"div",cls:"ag-header",role:"presentation"};var cf=class extends Qo{constructor(){super(hf)}postConstruct(){const t={toggleCss:(t,e)=>this.toggleCss(t,e),setHeightAndMinHeight:t=>{this.getGui().style.height=t;this.getGui().style.minHeight=t}};const e=this.createManagedBean(new Du);e.setComp(t,this.getGui(),this.getFocusableElement());const i=t=>{this.createManagedBean(t);this.appendChild(t)};i(new af("left"));i(new af(null));i(new af("right"))}};var uf={selector:"AG-HEADER-ROOT",component:cf};var df=class extends Qo{constructor(t,e,i,s,o){super();this.cellCtrl=e;this.rendererVersion=0;this.editorVersion=0;this.beans=t;this.gos=t.gos;this.column=e.column;this.rowNode=e.rowNode;this.eRow=s;const n=gh({tag:"div",role:e.getCellAriaRole(),attrs:{"comp-id":`${this.getCompId()}`,"col-id":e.column.colIdSanitised}});this.eCell=n;let r;if(e.isCellSpanning()){r=gh({tag:"div",cls:"ag-spanned-cell-wrapper",role:"presentation"});r.appendChild(n);this.setTemplateFromElement(r)}else{this.setTemplateFromElement(n)}this.cellCssManager=new Ko((()=>n));this.forceWrapper=e.isForceWrapper();this.refreshWrapper(false);const l={toggleCss:(t,e)=>this.cellCssManager.toggleCss(t,e),setUserStyles:t=>Mt(n,t),getFocusableElement:()=>n,setIncludeSelection:t=>this.includeSelection=t,setIncludeRowDrag:t=>this.includeRowDrag=t,setIncludeDndSource:t=>this.includeDndSource=t,setRenderDetails:(t,e,i)=>this.setRenderDetails(t,e,i),setEditDetails:(t,e,i)=>this.setEditDetails(t,e,i),getCellEditor:()=>this.cellEditor||null,getCellRenderer:()=>this.cellRenderer||null,getParentOfValue:()=>this.getParentOfValue(),refreshEditStyles:(t,e)=>this.refreshEditStyles(t,e)};e.setComp(l,n,r,this.eCellWrapper,i,o,void 0)}getParentOfValue(){return this.eCellValue??this.eCellWrapper??this.eCell}setRenderDetails(t,e,i){const s=this.cellEditor&&!this.cellEditorPopupWrapper;if(s){return}this.firstRender=this.firstRender==null;const o=this.refreshWrapper(false);this.refreshEditStyles(false);if(t){const e=i||o;const s=e?false:this.refreshCellRenderer(t);if(!s){this.destroyRenderer();this.createCellRendererInstance(t)}}else{this.destroyRenderer();this.insertValueWithoutCellRenderer(e)}this.rowDraggingComp?.refreshVisibility()}setEditDetails(t,e,i){if(t){this.createCellEditorInstance(t,e,i)}else{this.destroyEditor()}}removeControls(){const t=this.beans.context;this.checkboxSelectionComp=t.destroyBean(this.checkboxSelectionComp);this.dndSourceComp=t.destroyBean(this.dndSourceComp);this.rowDraggingComp=t.destroyBean(this.rowDraggingComp)}refreshWrapper(t){const e=this.includeRowDrag||this.includeDndSource||this.includeSelection;const i=e||this.forceWrapper;const s=i&&this.eCellWrapper==null;if(s){this.eCellWrapper=gh({tag:"div",cls:"ag-cell-wrapper",role:"presentation"});this.eCell.appendChild(this.eCellWrapper)}const o=!i&&this.eCellWrapper!=null;if(o){yt(this.eCellWrapper);this.eCellWrapper=void 0}this.cellCssManager.toggleCss("ag-cell-value",!i);const n=!t&&i;const r=n&&this.eCellValue==null;if(r){const t=this.cellCtrl.getCellValueClass();this.eCellValue=gh({tag:"span",cls:t,role:"presentation"});this.eCellWrapper.appendChild(this.eCellValue)}const l=!n&&this.eCellValue!=null;if(l){yt(this.eCellValue);this.eCellValue=void 0}const a=s||o||r||l;if(a){this.removeControls()}if(!t&&e){this.addControls()}return a}addControls(){const{cellCtrl:t,eCellWrapper:e,eCellValue:i,includeRowDrag:s,includeDndSource:o,includeSelection:n}=this;const r=t=>{if(t){e.insertBefore(t.getGui(),i)}};if(s&&this.rowDraggingComp==null){this.rowDraggingComp=t.createRowDragComp();r(this.rowDraggingComp)}if(o&&this.dndSourceComp==null){this.dndSourceComp=t.createDndSource();r(this.dndSourceComp)}if(n&&this.checkboxSelectionComp==null){this.checkboxSelectionComp=t.createSelectionCheckbox();r(this.checkboxSelectionComp)}}createCellEditorInstance(t,e,i){const o=this.editorVersion;const n=t.newAgStackInstance();const{params:r}=t;n.then((t=>this.afterCellEditorCreated(o,t,r,e,i)));const l=s(this.cellEditor);if(l&&r.cellStartedEdit){this.cellCtrl.focusCell(true)}}insertValueWithoutCellRenderer(t){const e=this.getParentOfValue();bt(e);const i=h(t);if(i!=null){e.textContent=i}}destroyRenderer(){const{context:t}=this.beans;this.cellRenderer=t.destroyBean(this.cellRenderer);yt(this.cellRendererGui);this.cellRendererGui=null;this.rendererVersion++}destroyEditor(){const{context:t}=this.beans;const e=this.cellEditorPopupWrapper?.getGui().contains(d(this.beans))||this.cellCtrl.hasBrowserFocus();if(e){this.eCell.focus({preventScroll:true})}this.hideEditorPopup?.();this.hideEditorPopup=void 0;this.cellEditor=t.destroyBean(this.cellEditor);this.cellEditorPopupWrapper=t.destroyBean(this.cellEditorPopupWrapper);yt(this.cellEditorGui);this.cellCtrl.disableEditorTooltipFeature();this.cellEditorGui=null;this.editorVersion++}refreshCellRenderer(t){if(this.cellRenderer?.refresh==null){return false}if(this.cellRendererClass!==t.componentClass){return false}const e=this.cellRenderer.refresh(t.params);return e===true||e===void 0}createCellRendererInstance(t){const e=this.rendererVersion;const i=t=>i=>{const s=this.rendererVersion!==e||!this.isAlive();if(s){return}const o=t.newAgStackInstance();const n=this.afterCellRendererCreated.bind(this,e,t.componentClass);o?.then(n)};const{animationFrameSvc:s}=this.beans;let o;if(s?.active&&this.firstRender){o=(t,e=false)=>{s.createTask(i(t),this.rowNode.rowIndex,"p2",t.componentFromFramework,e)}}else{o=t=>i(t)()}if(t.params?.deferRender&&!this.cellCtrl.rowNode.group){const{loadingComp:e,onReady:i}=this.cellCtrl.getDeferLoadingCellRenderer();if(e){o(e);i.then((()=>o(t,true)))}}else{o(t)}}afterCellRendererCreated(t,e,i){const s=!this.isAlive()||t!==this.rendererVersion;if(s){this.beans.context.destroyBean(i);return}this.cellRenderer=i;this.cellRendererClass=e;const o=i.getGui();this.cellRendererGui=o;if(o!=null){const t=this.getParentOfValue();bt(t);t.appendChild(o)}}afterCellEditorCreated(t,e,i,s,o){const n=t!==this.editorVersion;const{context:r}=this.beans;if(n){r.destroyBean(e);return}const l=e.isCancelBeforeStart?.();if(l){r.destroyBean(e);this.cellCtrl.stopEditing(true);return}if(!e.getGui){Ci(97,{colId:this.column.getId()});r.destroyBean(e);return}this.cellEditor=e;this.cellEditorGui=e.getGui();const a=s||e.isPopup?.();if(a){this.addPopupCellEditor(i,o)}else{this.addInCellEditor()}this.refreshEditStyles(true,a);e.afterGuiAttached?.();this.cellCtrl.enableEditorTooltipFeature(e);this.cellCtrl.cellEditorAttached()}refreshEditStyles(t,e){const{cellCssManager:i}=this;i.toggleCss("ag-cell-inline-editing",t&&!e);i.toggleCss("ag-cell-popup-editing",t&&!!e);i.toggleCss("ag-cell-not-inline-editing",!t||!!e)}addInCellEditor(){const{eCell:t}=this;if(t.contains(d(this.beans))){t.focus()}this.destroyRenderer();this.refreshWrapper(true);bt(this.getParentOfValue());if(this.cellEditorGui){const t=this.getParentOfValue();t.appendChild(this.cellEditorGui)}}addPopupCellEditor(t,e){const{gos:i,context:s,popupSvc:o,editSvc:n}=this.beans;if(i.get("editType")==="fullRow"){Ci(98)}const r=this.cellEditorPopupWrapper=s.createBean(n.createPopupEditorWrapper(t));const{cellEditor:l,cellEditorGui:a,eCell:h,rowNode:c,column:u,cellCtrl:d}=this;const f=r.getGui();if(a){f.appendChild(a)}const g=i.get("stopEditingWhenCellsLoseFocus");const p=e!=null?e:l.getPopupPosition?.()??"over";const m=i.get("enableRtl");const v={ePopup:f,column:u,rowNode:c,type:"popupCellEditor",eventSource:h,position:p,alignSide:m?"right":"left",keepWithinBounds:true};const w=o.positionPopupByComponent.bind(o,v);const C=o.addPopup({modal:g,eChild:f,closeOnEsc:true,closedCallback:()=>{d.onPopupEditorClosed()},anchorToElement:h,positionCallback:w,ariaOwns:h});if(C){this.hideEditorPopup=C.hideFunc}}detach(){this.getGui().remove()}destroy(){this.destroyRenderer();this.destroyEditor();this.removeControls();super.destroy()}};var ff=class extends Qo{constructor(t,e,i){super();this.cellComps=new Map;this.beans=e;this.rowCtrl=t;const s=gh({tag:"div",role:"row",attrs:{"comp-id":`${this.getCompId()}`}});this.setInitialStyle(s,i);this.setTemplateFromElement(s);const o=s.style;this.domOrder=this.rowCtrl.getDomOrder();const n={setDomOrder:t=>this.domOrder=t,setCellCtrls:t=>this.setCellCtrls(t),showFullWidth:t=>this.showFullWidth(t),getFullWidthCellRenderer:()=>this.fullWidthCellRenderer,getFullWidthCellRendererParams:()=>this.fullWidthCellRendererParams,toggleCss:(t,e)=>this.toggleCss(t,e),setUserStyles:t=>Mt(s,t),setTop:t=>o.top=t,setTransform:t=>o.transform=t,setRowIndex:t=>s.setAttribute("row-index",t),setRowId:t=>s.setAttribute("row-id",t),setRowBusinessKey:t=>s.setAttribute("row-business-key",t),refreshFullWidth:t=>{const e=t();this.fullWidthCellRendererParams=e;return this.fullWidthCellRenderer?.refresh?.(e)??false}};t.setComp(n,this.getGui(),i,void 0);this.addDestroyFunc((()=>{t.unsetComp(i)}))}setInitialStyle(t,e){const i=this.rowCtrl.getInitialTransform(e);if(i){t.style.setProperty("transform",i)}else{const i=this.rowCtrl.getInitialRowTop(e);if(i){t.style.setProperty("top",i)}}}showFullWidth(t){const e=e=>{if(this.isAlive()){const i=e.getGui();this.getGui().appendChild(i);this.rowCtrl.setupDetailRowAutoHeight(i);this.setFullWidthRowComp(e,t.params)}else{this.beans.context.destroyBean(e)}};const i=t.newAgStackInstance();i.then(e)}setCellCtrls(t){const e=new Map(this.cellComps);for(const i of t){const t=i.instanceId;if(!this.cellComps.has(t)){this.newCellComp(i)}else{e.delete(t)}}this.destroyCells(e);this.ensureDomOrder(t)}ensureDomOrder(t){if(!this.domOrder){return}const e=[];for(const i of t){const t=this.cellComps.get(i.instanceId);if(t){e.push(t.getGui())}}Et(this.getGui(),e)}newCellComp(t){const e=this.beans.editSvc?.isEditing(t,{withOpenEditor:true})??false;const i=new df(this.beans,t,this.rowCtrl.printLayout,this.getGui(),e);this.cellComps.set(t.instanceId,i);this.getGui().appendChild(i.getGui())}destroy(){super.destroy();this.destroyCells(this.cellComps)}setFullWidthRowComp(t,e){this.fullWidthCellRenderer=t;this.fullWidthCellRendererParams=e;this.addDestroyFunc((()=>{this.fullWidthCellRenderer=this.beans.context.destroyBean(this.fullWidthCellRenderer);this.fullWidthCellRendererParams=void 0}))}destroyCells(t){for(const e of t.values()){if(!e){return}const t=e.cellCtrl.instanceId;if(this.cellComps.get(t)!==e){return}e.detach();e.destroy();this.cellComps.delete(t)}}};function gf(t,e,i){const s=!!i.gos.get("enableCellSpan")&&!!e.getSpannedRowCtrls;const o={tag:"div",ref:"eContainer",cls:Ac(t),role:"rowgroup"};if(e.type==="center"||s){const e={tag:"div",ref:"eSpannedContainer",cls:`ag-spanning-container ${Ic(t)}`,role:"presentation"};o.role="presentation";return{tag:"div",ref:"eViewport",cls:`ag-viewport ${Bc(t)}`,role:"rowgroup",children:[o,s?e:null]}}return o}var pf=class extends Qo{constructor(t){super();this.eViewport=jo;this.eContainer=jo;this.eSpannedContainer=jo;this.rowCompsNoSpan={};this.rowCompsWithSpan={};this.name=t?.name;this.options=zc(this.name)}postConstruct(){this.setTemplate(gf(this.name,this.options,this.beans));const t={setHorizontalScroll:t=>this.eViewport.scrollLeft=t,setViewportHeight:t=>this.eViewport.style.height=t,setRowCtrls:({rowCtrls:t})=>this.setRowCtrls(t),setSpannedRowCtrls:t=>this.setRowCtrls(t,true),setDomOrder:t=>{this.domOrder=t},setContainerWidth:t=>{this.eContainer.style.width=t;if(this.eSpannedContainer){this.eSpannedContainer.style.width=t}},setOffsetTop:t=>{const e=`translateY(${t})`;this.eContainer.style.transform=e;if(this.eSpannedContainer){this.eSpannedContainer.style.transform=e}}};const e=this.createManagedBean(new Kc(this.name));e.setComp(t,this.eContainer,this.eSpannedContainer,this.eViewport)}destroy(){this.setRowCtrls([]);this.setRowCtrls([],true);super.destroy();this.lastPlacedElement=null}setRowCtrls(t,e){const{beans:i,options:s}=this;const o=e?this.eSpannedContainer:this.eContainer;const n=e?{...this.rowCompsWithSpan}:{...this.rowCompsNoSpan};const r={};if(e){this.rowCompsWithSpan=r}else{this.rowCompsNoSpan=r}this.lastPlacedElement=null;const l=[];for(const e of t){const t=e.instanceId;const o=n[t];let a;if(o){a=o;delete n[t]}else{if(!e.rowNode.displayed){continue}a=new ff(e,i,s.type)}r[t]=a;l.push([a,!o])}this.removeOldRows(Object.values(n));this.addRowNodes(l,o)}addRowNodes(t,e){const{domOrder:i}=this;for(const[s,o]of t){const t=s.getGui();if(!i){if(o){e.appendChild(t)}}else{this.ensureDomOrder(t,e)}}}removeOldRows(t){for(const e of t){e.getGui().remove();e.destroy()}}ensureDomOrder(t,e){Rt(e,t,this.lastPlacedElement);this.lastPlacedElement=t}};var mf={selector:"AG-ROW-CONTAINER",component:pf};function vf(t,e){return e.map((e=>{const i=`e${e[0].toUpperCase()+e.substring(1)}RowContainer`;t[i]={name:e};return{tag:"ag-row-container",ref:i,attrs:{name:e}}}))}function wf(t){const e={};const i={tag:"div",ref:"eGridRoot",cls:"ag-root ag-unselectable",children:[{tag:"ag-header-root"},{tag:"div",ref:"eTop",cls:"ag-floating-top",role:"presentation",children:vf(e,["topLeft","topCenter","topRight","topFullWidth"])},{tag:"div",ref:"eBody",cls:"ag-body",role:"presentation",children:[{tag:"div",ref:"eBodyViewport",cls:"ag-body-viewport",role:"presentation",children:vf(e,["left","center","right","fullWidth"])},{tag:"ag-fake-vertical-scroll"}]},{tag:"div",ref:"eStickyTop",cls:"ag-sticky-top",role:"presentation",children:vf(e,["stickyTopLeft","stickyTopCenter","stickyTopRight","stickyTopFullWidth"])},{tag:"div",ref:"eStickyBottom",cls:"ag-sticky-bottom",role:"presentation",children:vf(e,["stickyBottomLeft","stickyBottomCenter","stickyBottomRight","stickyBottomFullWidth"])},{tag:"div",ref:"eBottom",cls:"ag-floating-bottom",role:"presentation",children:vf(e,["bottomLeft","bottomCenter","bottomRight","bottomFullWidth"])},{tag:"ag-fake-horizontal-scroll"},t?{tag:"ag-overlay-wrapper"}:null]};return{paramsMap:e,elementParams:i}}var Cf=class extends Qo{constructor(){super(...arguments);this.eGridRoot=jo;this.eBodyViewport=jo;this.eStickyTop=jo;this.eStickyBottom=jo;this.eTop=jo;this.eBottom=jo;this.eBody=jo}postConstruct(){const{overlays:t,rangeSvc:e}=this.beans;const i=t?.getOverlayWrapperSelector();const{paramsMap:s,elementParams:o}=wf(!!i);this.setTemplate(o,[...i?[i]:[],su,ru,uf,mf],s);const n=(t,e)=>{const i=`${t}px`;e.style.minHeight=i;e.style.height=i};const r={setRowAnimationCssOnBodyViewport:(t,e)=>this.setRowAnimationCssOnBodyViewport(t,e),setColumnCount:t=>q(this.getGui(),t),setRowCount:t=>W(this.getGui(),t),setTopHeight:t=>n(t,this.eTop),setBottomHeight:t=>n(t,this.eBottom),setTopInvisible:t=>this.eTop.classList.toggle("ag-invisible",t),setBottomInvisible:t=>this.eBottom.classList.toggle("ag-invisible",t),setStickyTopHeight:t=>this.eStickyTop.style.height=t,setStickyTopTop:t=>this.eStickyTop.style.top=t,setStickyTopWidth:t=>this.eStickyTop.style.width=t,setStickyBottomHeight:t=>{this.eStickyBottom.style.height=t;this.eStickyBottom.classList.toggle("ag-invisible",t==="0px")},setStickyBottomBottom:t=>this.eStickyBottom.style.bottom=t,setStickyBottomWidth:t=>this.eStickyBottom.style.width=t,setColumnMovingCss:(t,e)=>this.toggleCss(t,e),updateLayoutClasses:(t,e)=>{const i=[this.eBodyViewport.classList,this.eBody.classList];for(const t of i){t.toggle(_h.AUTO_HEIGHT,e.autoHeight);t.toggle(_h.NORMAL,e.normal);t.toggle(_h.PRINT,e.print)}this.toggleCss(_h.AUTO_HEIGHT,e.autoHeight);this.toggleCss(_h.NORMAL,e.normal);this.toggleCss(_h.PRINT,e.print)},setAlwaysVerticalScrollClass:(t,e)=>this.eBodyViewport.classList.toggle(_c,e),registerBodyViewportResizeListener:t=>{const e=Lt(this.beans,this.eBodyViewport,t);this.addDestroyFunc((()=>e()))},setPinnedTopBottomOverflowY:t=>this.eTop.style.overflowY=this.eBottom.style.overflowY=t,setCellSelectableCss:(t,e)=>{for(const i of[this.eTop,this.eBodyViewport,this.eBottom]){i.classList.toggle(t,e)}},setBodyViewportWidth:t=>this.eBodyViewport.style.width=t,setGridRootRole:t=>x(this.eGridRoot,t)};this.ctrl=this.createManagedBean(new Yc);this.ctrl.setComp(r,this.getGui(),this.eBodyViewport,this.eTop,this.eBottom,this.eStickyTop,this.eStickyBottom);if(e&&ns(this.gos)||ds(this.gos)){$(this.getGui(),true)}}setRowAnimationCssOnBodyViewport(t,e){const i=this.eBodyViewport.classList;i.toggle("ag-row-animation",e);i.toggle("ag-row-no-animation",!e)}};var bf={selector:"AG-GRID-BODY",component:Cf};var yf=class extends ge{constructor(){super(...arguments);this.additionalFocusableContainers=new Set}setComp(t,e,i){this.view=t;this.eGridHostDiv=e;this.eGui=i;this.eGui.setAttribute("grid-id",this.beans.context.getId());const{dragAndDrop:s,ctrlsSvc:o}=this.beans;s?.registerGridDropTarget((()=>this.eGui),this);this.createManagedBean(new Zh(this.view));this.view.setRtlClass(this.gos.get("enableRtl")?"ag-rtl":"ag-ltr");const n=Lt(this.beans,this.eGridHostDiv,this.onGridSizeChanged.bind(this));this.addDestroyFunc((()=>n()));o.register("gridCtrl",this)}isDetailGrid(){const t=Vr(this.getGui());return t?.getAttribute("row-id")?.startsWith("detail")||false}getOptionalSelectors(){const t=this.beans;return{paginationSelector:t.pagination?.getPaginationSelector(),gridHeaderDropZonesSelector:t.registry?.getSelector("AG-GRID-HEADER-DROP-ZONES"),sideBarSelector:t.sideBar?.getSelector(),statusBarSelector:t.registry?.getSelector("AG-STATUS-BAR"),watermarkSelector:t.licenseManager?.getWatermarkSelector()}}onGridSizeChanged(){this.eventSvc.dispatchEvent({type:"gridSizeChanged",clientWidth:this.eGridHostDiv.clientWidth,clientHeight:this.eGridHostDiv.clientHeight})}destroyGridUi(){this.view.destroyGridUi()}getGui(){return this.eGui}setResizeCursor(t){const{view:e}=this;if(t===false){e.setCursor(null)}else{const i=t===1?"ew-resize":"ns-resize";e.setCursor(i)}}disableUserSelect(t){this.view.setUserSelect(t?"none":null)}focusNextInnerContainer(t){const e=this.getFocusableContainers();const{indexWithFocus:i,nextIndex:s}=this.getNextFocusableIndex(e,t);if(s<0||s>=e.length){return false}if(s===0){if(i>0){const{visibleCols:t,focusSvc:e}=this.beans;const i=t.allCols;const s=Vs(i);if(e.focusGridView({column:s,backwards:true})){return true}}return false}return this.focusContainer(e[s],t)}focusInnerElement(t){const e=this.gos.getCallback("focusGridInnerElement");if(e?.({fromBottom:!!t})){return true}const i=this.getFocusableContainers();const{focusSvc:s,visibleCols:o}=this.beans;const n=o.allCols;if(t){if(i.length>1){return this.focusContainer(Vs(i),t)}const e=Vs(n);if(s.focusGridView({column:e,backwards:t})){return true}}if(this.gos.get("headerHeight")===0||mu(this.beans)){if(s.focusGridView({column:n[0],backwards:t})){return true}for(let e=1;e=e.length){return}const o=e[i];o.setAllowFocus?.(true);setTimeout((()=>{o.setAllowFocus?.(false)}))}isFocusable(){const t=this.beans;return!vu(t)||!mu(t)||!!t.sideBar?.comp?.isDisplayed()}getNextFocusableIndex(t,e){const i=d(this.beans);const s=t.findIndex((t=>t.getGui().contains(i)));const o=s+(e?-1:1);return{indexWithFocus:s,nextIndex:o}}focusContainer(t,e){t.setAllowFocus?.(true);const i=Or(t.getGui(),e,false,true);t.setAllowFocus?.(false);return i}getFocusableContainers(){return[...this.view.getFocusableContainers(),...this.additionalFocusableContainers]}destroy(){this.additionalFocusableContainers.clear();super.destroy()}};var Sf=class extends Ud{constructor(t){super();this.gridBody=jo;this.sideBar=jo;this.pagination=jo;this.rootWrapperBody=jo;this.eGridDiv=t}postConstruct(){const t={destroyGridUi:()=>this.destroyBean(this),setRtlClass:t=>this.addCss(t),forceFocusOutOfContainer:this.forceFocusOutOfContainer.bind(this),updateLayoutClasses:this.updateLayoutClasses.bind(this),getFocusableContainers:this.getFocusableContainers.bind(this),setUserSelect:t=>{this.getGui().style.userSelect=t!=null?t:"";this.getGui().style.webkitUserSelect=t!=null?t:""},setCursor:t=>{this.getGui().style.cursor=t!=null?t:""}};const e=this.createManagedBean(new yf);const i=e.getOptionalSelectors();const s=this.createTemplate(i);const o=[bf,...Object.values(i).filter((t=>!!t))];this.setTemplate(s,o);e.setComp(t,this.eGridDiv,this.getGui());this.insertGridIntoDom();this.initialiseTabGuard({onTabKeyDown:()=>void 0,focusInnerElement:t=>e.focusInnerElement(t),forceFocusOutWhenTabGuardsAreEmpty:true,isEmpty:()=>!e.isFocusable()})}insertGridIntoDom(){const t=this.getGui();this.eGridDiv.appendChild(t);this.addDestroyFunc((()=>{t.remove();Ae(this.gos,"Grid removed from DOM")}))}updateLayoutClasses(t,e){const i=this.rootWrapperBody.classList;const{AUTO_HEIGHT:s,NORMAL:o,PRINT:n}=_h;const{autoHeight:r,normal:l,print:a}=e;i.toggle(s,r);i.toggle(o,l);i.toggle(n,a);this.toggleCss(s,r);this.toggleCss(o,l);this.toggleCss(n,a)}createTemplate(t){const e=t.gridHeaderDropZonesSelector?{tag:"ag-grid-header-drop-zones"}:null;const i=t.sideBarSelector?{tag:"ag-side-bar",ref:"sideBar"}:null;const s=t.statusBarSelector?{tag:"ag-status-bar"}:null;const o=t.watermarkSelector?{tag:"ag-watermark"}:null;const n=t.paginationSelector?{tag:"ag-pagination",ref:"pagination"}:null;return{tag:"div",cls:"ag-root-wrapper",role:"presentation",children:[e,{tag:"div",ref:"rootWrapperBody",cls:"ag-root-wrapper-body",role:"presentation",children:[{tag:"ag-grid-body",ref:"gridBody"},i]},s,n,o]}}getFocusableElement(){return this.rootWrapperBody}forceFocusOutOfContainer(t=false){if(!t&&this.pagination?.isDisplayed()){this.pagination.forceFocusOutOfContainer(t);return}super.forceFocusOutOfContainer(t)}getFocusableContainers(){const t=[this.gridBody];for(const e of[this.sideBar,this.pagination]){if(e){t.push(e)}}return t.filter((t=>xt(t.getGui())))}};var xf=(t,e)=>{for(const i of Object.keys(e)){e[i]=t}return e};var kf={dispatchEvent:"CommunityCore",...xf("CommunityCore",{destroy:0,getGridId:0,getGridOption:0,isDestroyed:0,setGridOption:0,updateGridOptions:0,isModuleRegistered:0}),...xf("GridState",{getState:0,setState:0}),...xf("SharedRowSelection",{setNodesSelected:0,selectAll:0,deselectAll:0,selectAllFiltered:0,deselectAllFiltered:0,selectAllOnCurrentPage:0,deselectAllOnCurrentPage:0,getSelectedNodes:0,getSelectedRows:0}),...xf("RowApi",{redrawRows:0,setRowNodeExpanded:0,getRowNode:0,addRenderedRowListener:0,getRenderedNodes:0,forEachNode:0,getFirstDisplayedRowIndex:0,getLastDisplayedRowIndex:0,getDisplayedRowAtIndex:0,getDisplayedRowCount:0}),...xf("ScrollApi",{getVerticalPixelRange:0,getHorizontalPixelRange:0,ensureColumnVisible:0,ensureIndexVisible:0,ensureNodeVisible:0}),...xf("KeyboardNavigation",{getFocusedCell:0,clearFocusedCell:0,setFocusedCell:0,tabToNextCell:0,tabToPreviousCell:0,setFocusedHeader:0}),...xf("EventApi",{addEventListener:0,addGlobalListener:0,removeEventListener:0,removeGlobalListener:0}),...xf("ValueCache",{expireValueCache:0}),...xf("CellApi",{getCellValue:0}),...xf("SharedMenu",{showColumnMenu:0,hidePopupMenu:0}),...xf("Sort",{onSortChanged:0}),...xf("PinnedRow",{getPinnedTopRowCount:0,getPinnedBottomRowCount:0,getPinnedTopRow:0,getPinnedBottomRow:0,forEachPinnedRow:0}),...xf("Overlay",{showLoadingOverlay:0,showNoRowsOverlay:0,hideOverlay:0}),...xf("RenderApi",{setGridAriaProperty:0,refreshCells:0,refreshHeader:0,isAnimationFrameQueueEmpty:0,flushAllAnimationFrames:0,getSizesForCurrentTheme:0,getCellRendererInstances:0}),...xf("HighlightChanges",{flashCells:0}),...xf("RowDrag",{addRowDropZone:0,removeRowDropZone:0,getRowDropZoneParams:0,getRowDropPositionIndicator:0,setRowDropPositionIndicator:0}),...xf("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}),...xf("ColumnAutoSize",{sizeColumnsToFit:0,autoSizeColumns:0,autoSizeAllColumns:0}),...xf("ColumnGroup",{setColumnGroupOpened:0,getColumnGroup:0,getProvidedColumnGroup:0,getDisplayNameForColumnGroup:0,getColumnGroupState:0,setColumnGroupState:0,resetColumnGroupState:0,getLeftDisplayedColumnGroups:0,getCenterDisplayedColumnGroups:0,getRightDisplayedColumnGroups:0,getAllDisplayedColumnGroups:0}),...xf("ColumnMove",{moveColumnByIndex:0,moveColumns:0}),...xf("ColumnResize",{setColumnWidths:0}),...xf("ColumnHover",{isColumnHovered:0}),...xf("EditCore",{getCellEditorInstances:0,getEditingCells:0,getEditRowValues:0,stopEditing:0,startEditingCell:0,isEditing:0,validateEdit:0}),...xf("BatchEdit",{startBatchEdit:0,cancelBatchEdit:0,commitBatchEdit:0,isBatchEditing:0}),...xf("UndoRedoEdit",{undoCellEditing:0,redoCellEditing:0,getCurrentUndoSize:0,getCurrentRedoSize:0}),...xf("FilterCore",{isAnyFilterPresent:0,onFilterChanged:0}),...xf("ColumnFilter",{isColumnFilterPresent:0,getColumnFilterInstance:0,destroyFilter:0,setFilterModel:0,getFilterModel:0,getColumnFilterModel:0,setColumnFilterModel:0,showColumnFilter:0,hideColumnFilter:0,getColumnFilterHandler:0,doFilterAction:0}),...xf("QuickFilter",{isQuickFilterPresent:0,getQuickFilter:0,resetQuickFilter:0}),...xf("Find",{findGetActiveMatch:0,findGetTotalMatches:0,findGoTo:0,findNext:0,findPrevious:0,findGetNumMatches:0,findGetParts:0,findClearActive:0,findRefresh:0}),...xf("Pagination",{paginationIsLastPageFound:0,paginationGetPageSize:0,paginationGetCurrentPage:0,paginationGetTotalPages:0,paginationGetRowCount:0,paginationGoToNextPage:0,paginationGoToPreviousPage:0,paginationGoToFirstPage:0,paginationGoToLastPage:0,paginationGoToPage:0}),...xf("CsrmSsrmSharedApi",{expandAll:0,collapseAll:0}),...xf("SsrmInfiniteSharedApi",{setRowCount:0,getCacheBlockState:0,isLastRowIndexKnown:0}),...xf("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}),...xf("CsvExport",{getDataAsCsv:0,exportDataAsCsv:0}),...xf("InfiniteRowModel",{refreshInfiniteCache:0,purgeInfiniteCache:0,getInfiniteRowCount:0}),...xf("AdvancedFilter",{getAdvancedFilterModel:0,setAdvancedFilterModel:0,showAdvancedFilterBuilder:0,hideAdvancedFilterBuilder:0}),...xf("IntegratedCharts",{getChartModels:0,getChartRef:0,getChartImageDataURL:0,downloadChart:0,openChartToolPanel:0,closeChartToolPanel:0,createRangeChart:0,createPivotChart:0,createCrossFilterChart:0,updateChart:0,restoreChart:0}),...xf("Clipboard",{copyToClipboard:0,cutToClipboard:0,copySelectedRowsToClipboard:0,copySelectedRangeToClipboard:0,copySelectedRangeDown:0,pasteFromClipboard:0}),...xf("ExcelExport",{getDataAsExcel:0,exportDataAsExcel:0,getSheetDataForExcel:0,getMultipleSheetsAsExcel:0,exportMultipleSheetsAsExcel:0}),...xf("SharedMasterDetail",{addDetailGridInfo:0,removeDetailGridInfo:0,getDetailGridInfo:0,forEachDetailGridInfo:0}),...xf("ContextMenu",{showContextMenu:0}),...xf("ColumnMenu",{showColumnChooser:0,hideColumnChooser:0}),...xf("CellSelection",{getCellRanges:0,addCellRange:0,clearRangeSelection:0,clearCellSelection:0}),...xf("SharedRowGrouping",{setRowGroupColumns:0,removeRowGroupColumns:0,addRowGroupColumns:0,getRowGroupColumns:0,moveRowGroupColumn:0}),...xf("SharedAggregation",{addAggFuncs:0,clearAggFuncs:0,setColumnAggFunc:0}),...xf("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}),...xf("ServerSideRowModelApi",{getServerSideSelectionState:0,setServerSideSelectionState:0,applyServerSideTransaction:0,applyServerSideTransactionAsync:0,applyServerSideRowData:0,retryServerSideLoads:0,flushServerSideAsyncTransactions:0,refreshServerSide:0,getServerSideGroupLevelState:0,onRowHeightChanged:0,resetRowHeights:0}),...xf("SideBar",{isSideBarVisible:0,setSideBarVisible:0,setSideBarPosition:0,openToolPanel:0,closeToolPanel:0,getOpenedToolPanel:0,refreshToolPanel:0,isToolPanelShowing:0,getToolPanelInstance:0,getSideBar:0}),...xf("StatusBar",{getStatusPanel:0}),...xf("AiToolkit",{getStructuredSchema:0})};var Rf={isDestroyed:()=>true,destroy(){},preConstruct(){},postConstruct(){},preWireBeans(){},wireBeans(){}};var Ef=(t,e)=>t.eventSvc.dispatchEvent(e);var Ff=class{};Reflect.defineProperty(Ff,"name",{value:"GridApi"});var Mf=class extends ge{constructor(){super();this.beanName="apiFunctionSvc";this.api=new Ff;this.fns={...Rf,dispatchEvent:Ef};this.preDestroyLink="";const{api:t}=this;for(const e of Object.keys(kf)){t[e]=this.makeApi(e)[e]}}postConstruct(){this.preDestroyLink=this.beans.frameworkOverrides.getDocLink("grid-lifecycle/#grid-pre-destroyed")}addFunction(t,e){const{fns:i,beans:s}=this;if(i!==Rf){i[t]=s?.validation?.validateApiFunction(t,e)??e}}makeApi(t){return{[t]:(...e)=>{const{beans:i,fns:{[t]:s}}=this;return s?s(i,...e):this.apiNotFound(t)}}}apiNotFound(t){const{beans:e,gos:i,preDestroyLink:s}=this;if(!e){Ci(26,{fnName:t,preDestroyLink:s})}else{const e=kf[t];if(i.assertModuleRegistered(e,`api.${t}`)){Ci(27,{fnName:t,module:e})}}}destroy(){super.destroy();this.fns=Rf;this.beans=null}};function Pf(t){return t.context.getId()}function Df(t){t.gridDestroySvc.destroy()}function Tf(t){return t.gridDestroySvc.destroyCalled}function Bf(t,e){return t.gos.get(e)}function Af(t,e,i){If(t,{[e]:i})}function If(t,e){t.gos.updateGridOptions({options:e})}function zf(t,e){const i=e.replace(/Module$/,"");return t.gos.isModuleRegistered(i)}var Hf={tag:"div",cls:"ag-drag-handle ag-row-drag",attrs:{draggable:"true"}};var Of=class extends Qo{constructor(t,e,i){super(Hf);this.rowNode=t;this.column=e;this.eCell=i}postConstruct(){const t=this.getGui();t.appendChild(od("rowDrag",this.beans,null));this.addGuiEventListener("mousedown",(t=>{t.stopPropagation()}));this.addDragSource();this.checkVisibility()}addDragSource(){this.addGuiEventListener("dragstart",this.onDragStart.bind(this))}onDragStart(t){const{rowNode:e,column:i,eCell:s,gos:o}=this;const n=i.getColDef().dndSourceOnRowDrag;const r=t.dataTransfer;r.setDragImage(s,0,0);if(n){const i=Rs(o,{rowNode:e,dragEvent:t});n(i)}else{try{const t=JSON.stringify(e.data);r.setData("application/json",t);r.setData("text/plain",t)}catch(t){}}}checkVisibility(){const t=this.column.isDndSource(this.rowNode);this.setDisplayed(t)}};function Lf(t,e){t.rowDragSvc?.rowDragFeature?.addRowDropZone(e)}function Vf(t,e){const i=t.dragAndDrop?.findExternalZone(e.getContainer());if(i){t.dragAndDrop?.removeDropTarget(i)}}function Nf(t,e){return t.rowDragSvc?.rowDragFeature?.getRowDropZone(e)}function Gf(t){const e=t.rowDropHighlightSvc;return e?{row:e.row,dropIndicatorPosition:e.position}:{row:null,dropIndicatorPosition:"none"}}function $f(t,e){const i=t.rowDropHighlightSvc;if(!i){return}const s=e?.row;let o=e?.dropIndicatorPosition;if(o!=="above"&&o!=="below"&&o!=="inside"){o="none"}const n=s?.rowIndex;if(n===null||n===void 0||o==="none"){i.clear()}else{i.set(s,o)}}var Wf=class extends Ga{shouldPreventMouseEvent(t){const e=this.gos.get("enableCellTextSelection");return e&&super.shouldPreventMouseEvent(t)}};var Uf=class extends ge{constructor(){super(...arguments);this.beanName="horizontalResizeSvc"}addResizeBar(t){const e={dragStartPixels:t.dragStartPixels||0,eElement:t.eResizeBar,onDragStart:this.onDragStart.bind(this,t),onDragStop:this.onDragStop.bind(this,t),onDragging:this.onDragging.bind(this,t),onDragCancel:this.onDragStop.bind(this,t),includeTouch:true,stopPropagationForTouch:true};const{dragSvc:i}=this.beans;i.addDragSource(e);const s=()=>i.removeDragSource(e);return s}onDragStart(t,e){this.dragStartX=e.clientX;this.setResizeIcons();const i=e instanceof MouseEvent&&e.shiftKey===true;t.onResizeStart(i)}setResizeIcons(){const t=this.beans.ctrlsSvc.get("gridCtrl");t.setResizeCursor(1);t.disableUserSelect(true)}onDragStop(t){t.onResizeEnd(this.resizeAmount);this.resetIcons()}resetIcons(){const t=this.beans.ctrlsSvc.get("gridCtrl");t.setResizeCursor(false);t.disableUserSelect(false)}onDragging(t,e){this.resizeAmount=e.clientX-this.dragStartX;t.onResizing(this.resizeAmount)}};var jf={tag:"div",cls:"ag-drag-handle ag-row-drag",attrs:{"aria-hidden":"true"}};var qf=class extends Qo{constructor(t,e,i,s,o,n=false){super();this.cellValueFn=t;this.rowNode=e;this.column=i;this.customGui=s;this.dragStartPixels=o;this.alwaysVisible=n;this.dragSource=null}isCustomGui(){return this.customGui!=null}postConstruct(){const{beans:t,customGui:e}=this;if(e){this.setDragElement(e,this.dragStartPixels)}else{this.setTemplate(jf);this.getGui().appendChild(od("rowDrag",t,null));this.addDragSource()}if(!this.alwaysVisible){this.initCellDrag()}}initCellDrag(){const{beans:t,gos:e,rowNode:i}=this;const s=this.refreshVisibility.bind(this);this.addManagedPropertyListener("suppressRowDrag",s);this.addManagedListeners(i,{dataChanged:s,cellChanged:s});this.addManagedListeners(t.eventSvc,e.get("rowDragManaged")?{sortChanged:s,filterChanged:s,columnRowGroupChanged:s,newColumnsLoaded:s}:{newColumnsLoaded:s})}setDragElement(t,e){this.setTemplateFromElement(t,void 0,void 0,true);this.addDragSource(e)}refreshVisibility(){if(this.alwaysVisible){return}const t={skipAriaHidden:true};if(this.isNeverDisplayed()){this.setDisplayed(false,t);return}const e=this.column;let i=typeof e?.getColDef().rowDrag==="function";let s=!e||this.isCustomGui()||e.isRowDrag(this.rowNode);if(s&&this.rowNode.footer&&this.gos.get("rowDragManaged")){s=false;i=true}this.setDisplayed(i||s,t);this.setVisible(s,t)}isNeverDisplayed(){const{gos:t,beans:e}=this;if(t.get("suppressRowDrag")){return true}if(t.get("rowDragManaged")&&!!e.rowDragSvc.rowDragFeature?.shouldPreventRowMove()&&!e.dragAndDrop?.hasExternalDropZones()){return true}return false}getSelectedNodes(){const t=this.rowNode;const e=this.gos.get("rowDragMultiRow");if(!e){return[t]}const i=this.beans.selectionSvc?.getSelectedNodes()??[];return i.indexOf(t)!==-1?i:[t]}getDragItem(){const{column:t,rowNode:e}=this;return{rowNode:e,rowNodes:this.getSelectedNodes(),columns:t?[t]:void 0,defaultTextValue:this.cellValueFn()}}getRowDragText(t){if(t){const e=t.getColDef();if(e.rowDragText){return e.rowDragText}}return this.gos.get("rowDragText")}addDragSource(t=4){if(this.dragSource){this.removeDragSource()}if(this.gos.get("rowDragManaged")&&this.rowNode.footer){return}const e=this.getGui();if(this.gos.get("enableCellTextSelection")){this.removeMouseDownListener();this.mouseDownListener=this.addManagedElementListeners(e,{mousedown:t=>{t?.preventDefault()}})[0]}const i=this.getLocaleTextFunc();this.dragSource={type:2,eElement:e,dragItemName:t=>{const e=t?.dragItem||this.getDragItem();const s=(t?.dropTarget?.rows.length??e.rowNodes?.length)||1;const o=this.getRowDragText(this.column);if(o){return o(e,s)}return s===1?this.cellValueFn():`${s} ${i("rowDragRows","rows")}`},getDragItem:()=>this.getDragItem(),dragStartPixels:t,dragSourceDomDataKey:this.gos.getDomDataKey()};this.beans.dragAndDrop.addDragSource(this.dragSource,true)}destroy(){this.removeDragSource();this.removeMouseDownListener();super.destroy()}removeDragSource(){if(!this.dragSource){return}this.beans.dragAndDrop.removeDragSource(this.dragSource);this.dragSource=null}removeMouseDownListener(){if(!this.mouseDownListener){return}this.mouseDownListener();this.mouseDownListener=void 0}};var Kf=class{constructor(){this.reordered=false;this.removals=new Set;this.updates=new Set;this.adds=new Set}};function _f(t){const{rowIndex:e,rowPinned:i,column:s}=t;return`${e}.${i==null?"null":i}.${s.getId()}`}function Zf(t,e){const i=t.column===e.column;const s=t.rowPinned===e.rowPinned;const o=t.rowIndex===e.rowIndex;return i&&s&&o}function Qf(t,e){switch(t.rowPinned){case"top":if(e.rowPinned!=="top"){return true}break;case"bottom":if(e.rowPinned!=="bottom"){return false}break;default:if(i(e.rowPinned)){return e.rowPinned!=="top"}break}return t.rowIndext.rowNode.rowIndex===e.rowIndex));const a=l?n:r;const h=(i?-1:1)*(l?-1:1);let c;for(let t=0;ti[t.getId()]));return s}getNotValueColumnsForNode(t,e){if(!this.keepingColumns){return null}const i=this.nodeIdsToColumns[t.id];const s=e.filter((t=>!i[t.getId()]));return s}};var hg=class{constructor(t,e){this.beans=t;this.groupThrottled=false;this.scrollChanged=false;this.scrollChanging=false;this.oldVScroll=null;this.groupTimer=null;this.groupTarget=null;this.onGroupThrottle=()=>{this.groupTimer=null;this.groupThrottled=true;this.beans.dragAndDrop?.nudge()};const i=()=>e.scrollFeature.getVScrollPosition().top;this.autoScroll=new Yd({scrollContainer:e.eBodyViewport,scrollAxis:"y",getVerticalPosition:i,setVerticalPosition:t=>e.scrollFeature.setVerticalScrollPosition(t),onScrollCallback:()=>{const t=i();if(this.oldVScroll!==t){this.oldVScroll=t;this.scrollChanging=true;return}const e=this.scrollChanging;this.scrollChanged=e;this.scrollChanging=false;if(e){this.beans.dragAndDrop?.nudge();this.scrollChanged=false}}})}updateGroup(t,e){if(this.groupTarget&&this.groupTarget!==t){this.clearGroup()}if(t){if(e&&this.groupThrottled&&!t.expanded&&t.childrenAfterSort?.length&&t.isExpandable()){t.setExpanded(true,void 0,true)}if(t.expanded&&t.childrenAfterSort?.length){this.groupThrottled=true;this.groupTarget=t}}}startGroup(t){this.groupTarget=t;if(this.groupTimer===null){this.groupTimer=window.setTimeout(this.onGroupThrottle,this.beans.gos.get("rowDragInsertDelay"))}}clearGroup(){this.groupThrottled=false;this.groupTarget=null;const t=this.groupTimer;if(t!==null){this.groupTimer=null;window.clearTimeout(t)}}clear(){this.clearGroup();this.autoScroll.ensureCleared();this.oldVScroll=null;this.scrollChanged=false;this.scrollChanging=false}};var cg=class extends ge{constructor(t){super();this.eContainer=t;this.lastDraggingEvent=null;this.nudger=null}postConstruct(){const t=this.beans;t.ctrlsSvc.whenReady(this,(e=>{this.nudger=new hg(t,e.gridBodyCtrl)}))}destroy(){super.destroy();this.nudger?.clear();this.nudger=null;this.lastDraggingEvent=null;this.eContainer=null}getContainer(){return this.eContainer}isInterestedIn(t){return t===2}getIconName(t){if(t?.dropTarget?.allowed===false){return"notAllowed"}if(this.gos.get("rowDragManaged")&&this.shouldPreventRowMove()){return"notAllowed"}return"move"}shouldPreventRowMove(){const{rowGroupColsSvc:t,filterManager:e,sortSvc:i}=this.beans;const s=t?.columns??[];if(s.length){return true}const o=e?.isAnyFilterPresent();if(o){return true}const n=i?.isSortActive();if(n){return true}return false}getRowNodes(t){if(!this.isFromThisGrid(t)){return t.dragItem.rowNodes||[]}const e=t.dragItem.rowNode;if(this.gos.get("rowDragMultiRow")){const t=this.beans.selectionSvc?.getSelectedNodes();if(t&&t.indexOf(e)>=0){return t.slice().sort(vg)}}return[e]}onDragEnter(t){this.dragging(t,true)}onDragging(t){this.dragging(t,false)}dragging(t,e){const{lastDraggingEvent:i,beans:s}=this;if(e){const e=this.getRowNodes(t);t.dragItem.rowNodes=e;wg(e,true)}this.lastDraggingEvent=t;const o=t.fromNudge;const n=this.makeRowsDrop(i,t,o,false);s.rowDropHighlightSvc?.fromDrag(t);if(e){this.dispatchGridEvent("rowDragEnter",t)}this.dispatchGridEvent("rowDragMove",t);if(n?.rowDragManaged&&n.moved&&n.allowed&&n.sameGrid&&!n.suppressMoveWhenRowDragging&&(!o&&!this.nudger?.autoScroll.scrolling||this.nudger?.scrollChanged)){this.dropRows(n)}this.nudger?.autoScroll.check(t.event)}isFromThisGrid(t){return t.dragSource.dragSourceDomDataKey===this.gos.getDomDataKey()}makeRowsDrop(t,e,i,s){const{beans:o,gos:n}=this;const r=this.newRowsDrop(e,s);const l=o.rowModel;e.dropTarget=r;e.changed=false;if(!r){return null}let{sameGrid:a,rootNode:h,source:c,target:u,rows:d}=r;u??(u=l.getRow(l.getRowCount()-1)??null);const f=!!this.beans.groupStage?.treeData&&a;let g=null;if(u?.footer){const t=ug(l,-1,u)??ug(l,1,u);g=u.sibling??h;u=t??null}if(u?.detail){u=u.parent}r.moved&&(r.moved=c!==u);let p=.5;if(u){if(a&&r.moved&&(g||!f)){p=c.rowIndex>u.rowIndex?-.5:.5}else{p=(r.y-u.rowTop-u.rowHeight/2)/u.rowHeight||0}}if(!f&&a&&u&&r.moved&&Fi(n)){const t=Cg(l,r);if(t){p=c.rowIndex>t.rowIndex?-.5:.5;u=t;r.moved&&(r.moved=c!==u)}}const m=this.nudger;m?.updateGroup(u,i);if(f&&!g&&m){if(!u||p>=.5&&u.rowIndex===o.pageBounds.getLastRow()){g=h}else if(r.moved&&this.targetShouldBeParent(u,p,d)){if(m.groupThrottled){g=u}if(!i&&(!g||u&&!u.expanded&&!!u.childrenAfterSort?.length)){m.startGroup(u)}}g??(g=u?.parent??h)}let v=false;if(g){if(g===u&&g!==h){const t=g.expanded?ug(l,1,u):null;if(t?.parent===g){u=t;p=-.5}else{v=true}}if(u&&!v){let t=u;while(t&&t!==h&&t!==g){u=t;t=t.parent}}}r.target=u;r.newParent=g;r.moved&&(r.moved=c!==u);const w=p<0?"above":"below";r.position=r.moved?v?"inside":w:"none";this.validateRowsDrop(r,f,w,s);e.changed||(e.changed=mg(t?.dropTarget,r));return r}newRowsDrop(t,e){const{beans:i,gos:s}=this;const o=i.rowModel.rootNode;const n=Fi(s)?s.get("rowDragManaged"):false;const r=s.get("suppressMoveWhenRowDragging");const l=this.isFromThisGrid(t);let{rowNode:a,rowNodes:h}=t.dragItem;h||(h=a?[a]:[]);a||(a=h[0]);if(!a||!o){return null}const c=this.beans.dragAndDrop.isDropZoneWithinThisGrid(t);let u=true;if(n&&(!h.length||this.shouldPreventRowMove()||(r||!l)&&!c)){u=false}const d=Xc(i,t).y;const f=this.getOverNode(d);return{api:i.gridApi,context:i.gridOptions.context,draggingEvent:t,rowDragManaged:n,suppressMoveWhenRowDragging:r,sameGrid:l,withinGrid:c,rootNode:o,moved:a!==f,y:d,overNode:f,overIndex:f?.rowIndex??-1,position:"none",source:a,target:f??null,newParent:null,rows:h,allowed:u,highlight:!e&&n&&r&&(c||!l)}}validateRowsDrop(t,e,i,s){const{rowDragManaged:o,suppressMoveWhenRowDragging:n}=t;if(!e){t.newParent=null}if(n&&!t.moved){t.allowed=false}const r=(!o||t.allowed)&&this.gos.get("isRowValidDropPosition");if(r){if(e&&t.newParent&&fg(t.rows,t.newParent)){t.newParent=null}const i=r(t);if(!i){t.allowed=false}else if(typeof i==="object"){if(i.rows!==void 0){t.rows=i.rows??[]}if(e&&i.newParent!==void 0){t.newParent=i.newParent}if(i.target!==void 0){t.target=i.target}if(i.position){t.position=i.position}if(i.allowed!==void 0){t.allowed=i.allowed}else if(!o){t.allowed=true}const n=t.draggingEvent;if(i.changed&&n){n.changed=true}if(!s&&i.highlight!==void 0){t.highlight=i.highlight}}}if(o){t.rows=this.filterRows(t)}if(e&&t.newParent&&fg(t.rows,t.newParent)){t.newParent=null}if(n&&(!t.rows.length||t.position==="none")){t.allowed=false}if((!t.allowed||!t.newParent)&&t.position==="inside"){t.position=i}}targetShouldBeParent(t,e,i){const s=t.rowIndex;const o=.25;if(e<-.5+o){return false}if(e<.5-o){return true}let n;let r=s+1;const l=this.beans.rowModel;do{n=l.getRow(r++)}while(n?.footer);const a=t.childrenAfterGroup;if(n&&n.parent===t&&a?.length){const t=new Set(i);for(const e of a){if(e.rowIndex!==null&&!t.has(e)){return true}}}return false}addRowDropZone(t){if(!t.getContainer()){Ci(55);return}const e=this.beans.dragAndDrop;if(e.findExternalZone(t.getContainer())){Ci(56);return}const i=t.fromGrid?t:{getContainer:t.getContainer,onDragEnter:t.onDragEnter&&(e=>t.onDragEnter(this.rowDragEvent("rowDragEnter",e))),onDragLeave:t.onDragLeave&&(e=>t.onDragLeave(this.rowDragEvent("rowDragLeave",e))),onDragging:t.onDragging&&(e=>t.onDragging(this.rowDragEvent("rowDragMove",e))),onDragStop:t.onDragStop&&(e=>t.onDragStop(this.rowDragEvent("rowDragEnd",e))),onDragCancel:t.onDragCancel&&(e=>t.onDragCancel(this.rowDragEvent("rowDragCancel",e)))};const s={isInterestedIn:t=>t===2,getIconName:()=>"move",external:true,...i};e.addDropTarget(s);this.addDestroyFunc((()=>e.removeDropTarget(s)))}getRowDropZone(t){const e={getContainer:this.getContainer.bind(this),onDragEnter:e=>{this.onDragEnter(e);t?.onDragEnter?.(this.rowDragEvent("rowDragEnter",e))},onDragLeave:e=>{this.onDragLeave(e);t?.onDragLeave?.(this.rowDragEvent("rowDragLeave",e))},onDragging:e=>{this.onDragging(e);t?.onDragging?.(this.rowDragEvent("rowDragMove",e))},onDragStop:e=>{this.onDragStop(e);t?.onDragStop?.(this.rowDragEvent("rowDragEnd",e))},onDragCancel:e=>{this.onDragCancel(e);t?.onDragCancel?.(this.rowDragEvent("rowDragCancel",e))},fromGrid:true};return e}getOverNode(t){const{pageBounds:e,rowModel:i}=this.beans;const s=t>e.getCurrentPagePixelRange().pageLastPixel;const o=s?-1:i.getRowIndexAtPixel(t);return o>=0?i.getRow(o):void 0}rowDragEvent(t,e){const i=this.beans;const{dragItem:s,dropTarget:o,event:n,vDirection:r}=e;const l=o?.rootNode===i.rowModel.rootNode;const a=l?o.y:Xc(i,e).y;const h=l?o.overNode:this.getOverNode(a);const c=l?o.overIndex:h?.rowIndex??-1;return{api:i.gridApi,context:i.gridOptions.context,type:t,event:n,node:s.rowNode,nodes:s.rowNodes,overIndex:c,overNode:h,y:a,vDirection:r,rowsDrop:o}}dispatchGridEvent(t,e){const i=this.rowDragEvent(t,e);this.eventSvc.dispatchEvent(i)}onDragLeave(t){this.dispatchGridEvent("rowDragLeave",t);this.stopDragging(t)}onDragStop(t){const e=this.makeRowsDrop(this.lastDraggingEvent,t,false,true);this.dispatchGridEvent("rowDragEnd",t);if(e?.allowed&&e.rowDragManaged&&(e.suppressMoveWhenRowDragging||!e.sameGrid||this.nudger?.autoScroll.scrolling)){this.dropRows(e)}this.stopDragging(t)}onDragCancel(t){this.dispatchGridEvent("rowDragCancel",t);this.stopDragging(t)}stopDragging(t){this.nudger?.clear();this.beans.rowDropHighlightSvc?.fromDrag(null);wg(t.dragItem.rowNodes,false)}dropRows(t){return t.sameGrid?this.csrmMoveRows(t):this.csrmAddRows(t)}csrmAddRows({position:t,target:e,rows:i}){const s=_i(this.gos);const o=this.beans.rowModel;const n=i.filter((({data:t,rowPinned:e})=>!o.getRowNode(s?.({data:t,level:0,rowPinned:e})??t.id))).map((({data:t})=>t));if(n.length===0){return false}const r=e?gg(e)+(t==="above"?0:1):void 0;o.updateRowData({add:n,addIndex:r});return true}filterRows({newParent:t,rows:e}){let i;for(let s=0,o=e.length;s=s){o=s}else if(!i){++o}let n=o;let r=Math.min(o,s-1);for(const e of t){const t=e.sourceRowIndex;if(tr){r=t}}return[n,o,r]}reorderLeafChildren(t,e,i,s){let o=false;const n=this.beans.rowModel.rootNode?._leafs;if(!t.size||!n){return false}let r=e;for(let s=e;s=i;--e){const i=n[e];if(!t.has(i)){if(i.sourceRowIndex!==l){i.sourceRowIndex=l;n[l]=i;o=true}--l}}for(const e of t){if(e.sourceRowIndex!==r){e.sourceRowIndex=r;n[r]=e;o=true}++r}return o}};var ug=(t,e,i)=>{if(i){const s=t.getRowCount();let o=i.rowIndex+e;while(o>=0&&o{let i=e;while(i){if(i===t){return true}i=i.parent}return false};var fg=(t,e)=>{for(let i=0,s=t.length;i{const e=pg(t);return e!==void 0?e.sourceRowIndex:-1};var pg=t=>t.data?t:nh(t.childrenAfterGroup);var mg=(t,e)=>t!==e&&(!t||t.sameGrid!==e.sameGrid||t.allowed!==e.allowed||t.position!==e.position||t.target!==e.target||t.source!==e.source||t.newParent!==e.newParent||!Ns(t.rows,e.rows));var vg=({rowIndex:t},{rowIndex:e})=>t!==null&&e!==null?t-e:0;var wg=(t,e)=>{for(let i=0,s=t?.length||0;i{let i=null;let s=e.target;if(s&&e.rows.indexOf(s)<0){return null}const o=e.source;if(!s||!o){return null}let n=s.rowIndex-o.rowIndex;const r=n<0?-1:1;n=e.suppressMoveWhenRowDragging?Math.abs(n):1;const l=new Set(e.rows);do{const e=ug(t,r,s);if(!e){break}if(!l.has(e)){i=e;--n}s=e}while(n>0);return i};var bg=class extends ge{constructor(){super(...arguments);this.beanName="rowDragSvc"}setupRowDrag(t,e){const i=e.createManagedBean(new cg(t));const s=this.beans.dragAndDrop;s.addDropTarget(i);e.addDestroyFunc((()=>s.removeDropTarget(i)));this.rowDragFeature=i}createRowDragComp(t,e,i,s,o,n){return new qf(t,e,i,s,o,n)}createRowDragCompForRow(t,e){if(ns(this.gos)){return void 0}const i=this.getLocaleTextFunc();return this.createRowDragComp((()=>`1 ${i("rowDragRow","row")}`),t,void 0,e,void 0,true)}createRowDragCompForCell(t,e,i,s,o,n){const r=this.gos;if(r.get("rowDragManaged")){if(!Fi(r)||r.get("pagination")){return void 0}}const l=this.createRowDragComp(i,t,e,s,o,n);return l}};var yg=class extends ge{constructor(){super(...arguments);this.beanName="rowDropHighlightSvc";this.uiLevel=0;this.dragging=false;this.row=null;this.position="none"}postConstruct(){this.addManagedEventListeners({modelUpdated:this.onModelUpdated.bind(this)})}onModelUpdated(){const t=this.row;const e=this.dragging;if(!t||t?.rowIndex===null||this.position==="none"){this.clear()}else{this.set(t,this.position)}this.dragging=e}destroy(){this.clear();super.destroy()}clear(){const t=this.row;this.dragging=false;if(t){this.uiLevel=0;this.position="none";this.row=null;t.dispatchRowEvent("rowHighlightChanged")}}set(t,e){const i=t!==this.row;const s=t.uiLevel;const o=e!==this.position;const n=s!==this.uiLevel;this.dragging=false;if(i||o||n){if(i){this.clear()}this.uiLevel=s;this.position=e;this.row=t;t.dispatchRowEvent("rowHighlightChanged")}}fromDrag(t){const e=t?.dropTarget;if(e){const{highlight:t,target:i,position:s}=e;if(t&&i&&s!=="none"){this.set(i,s);this.dragging=true;return}}if(this.dragging){this.clear()}}};var Sg={moduleName:"Drag",version:ii,beans:[Wf]};var xg={moduleName:"DragAndDrop",version:ii,dynamicBeans:{dndSourceComp:Of},icons:{rowDrag:"grip"}};var kg={moduleName:"SharedDragAndDrop",version:ii,beans:[Ka],dependsOn:[Sg],userComponents:{agDragAndDropImage:ld},icons:{columnMovePin:"pin",columnMoveHide:"eye-slash",columnMoveMove:"arrows",columnMoveLeft:"left",columnMoveRight:"right",columnMoveGroup:"group",columnMoveValue:"aggregation",columnMovePivot:"pivot",dropNotAllowed:"not-allowed",rowDrag:"grip"}};var Rg={moduleName:"RowDrag",version:ii,beans:[yg,bg],apiFunctions:{addRowDropZone:Lf,removeRowDropZone:Vf,getRowDropZoneParams:Nf,getRowDropPositionIndicator:Gf,setRowDropPositionIndicator:$f},dependsOn:[kg]};var Eg={moduleName:"HorizontalResize",version:ii,beans:[Uf],dependsOn:[Sg]};var Fg=`:where(.ag-ltr) :where(.ag-column-moving){.ag-cell,.ag-header-cell,.ag-spanned-cell-wrapper{transition:left .2s}.ag-header-group-cell{transition:left .2s,width .2s}}:where(.ag-rtl) :where(.ag-column-moving){.ag-cell,.ag-header-cell,.ag-spanned-cell-wrapper{transition:right .2s}.ag-header-group-cell{transition:right .2s,width .2s}}`;var Mg=class extends ge{constructor(){super(...arguments);this.beanName="colAnimation";this.executeNextFuncs=[];this.executeLaterFuncs=[];this.active=false;this.activeNext=false;this.suppressAnimation=false;this.animationThreadCount=0}postConstruct(){this.beans.ctrlsSvc.whenReady(this,(t=>this.gridBodyCtrl=t.gridBodyCtrl))}isActive(){return this.active&&!this.suppressAnimation}setSuppressAnimation(t){this.suppressAnimation=t}start(){if(this.active){return}const{gos:t}=this;if(t.get("suppressColumnMoveAnimation")){return}if(t.get("enableRtl")){return}this.ensureAnimationCssClassPresent();this.active=true;this.activeNext=true}finish(){if(!this.active){return}this.flush((()=>this.activeNext=false),(()=>this.active=false))}executeNextVMTurn(t){if(this.activeNext){this.executeNextFuncs.push(t)}else{t()}}executeLaterVMTurn(t){if(this.active){this.executeLaterFuncs.push(t)}else{t()}}ensureAnimationCssClassPresent(){this.animationThreadCount++;const t=this.animationThreadCount;const{gridBodyCtrl:e}=this;e.setColumnMovingCss(true);this.executeLaterFuncs.push((()=>{if(this.animationThreadCount===t){e.setColumnMovingCss(false)}}))}flush(t,e){const{executeNextFuncs:i,executeLaterFuncs:s}=this;if(i.length===0&&s.length===0){t();e();return}const o=t=>{while(t.length){const e=t.pop();if(e){e()}}};this.beans.frameworkOverrides.wrapIncoming((()=>{window.setTimeout((()=>{t();o(i)}),0);window.setTimeout((()=>{e();o(s)}),200)}))}};function Pg(t,e,i){t.colMoves?.moveColumnByIndex(e,i,"api")}function Dg(t,e,i){t.colMoves?.moveColumns(e,i,"api")}var Tg=class extends ge{constructor(t){super();this.pinned=t;this.columnsToAggregate=[];this.columnsToGroup=[];this.columnsToPivot=[]}onDragEnter(t){this.clearColumnsList();if(this.gos.get("functionsReadOnly")){return}const e=t.dragItem.columns;if(!e){return}for(const t of e){if(!t.isPrimary()){continue}if(t.isAnyFunctionActive()){continue}if(t.isAllowValue()){this.columnsToAggregate.push(t)}else if(t.isAllowRowGroup()){this.columnsToGroup.push(t)}else if(t.isAllowPivot()){this.columnsToPivot.push(t)}}}getIconName(){const t=this.columnsToAggregate.length+this.columnsToGroup.length+this.columnsToPivot.length;if(t>0){return this.pinned?"pinned":"move"}return null}onDragLeave(t){this.clearColumnsList()}clearColumnsList(){this.columnsToAggregate.length=0;this.columnsToGroup.length=0;this.columnsToPivot.length=0}onDragging(t){}onDragStop(t){const{valueColsSvc:e,rowGroupColsSvc:i,pivotColsSvc:s}=this.beans;if(this.columnsToAggregate.length>0){e?.addColumns(this.columnsToAggregate,"toolPanelDragAndDrop")}if(this.columnsToGroup.length>0){i?.addColumns(this.columnsToGroup,"toolPanelDragAndDrop")}if(this.columnsToPivot.length>0){s?.addColumns(this.columnsToPivot,"toolPanelDragAndDrop")}}onDragCancel(){this.clearColumnsList()}};function Bg(t,e){if(!e||e.length<=1){return}const i=e.filter((e=>t.indexOf(e)<0)).length>0;if(i){return}e.sort(((e,i)=>{const s=t.indexOf(e);const o=t.indexOf(i);return s-o}))}function Ag(t){const e=[...t];for(const i of t){let t=null;let s=i.getParent();while(s!=null&&s.getDisplayedLeafColumns().length===1){t=s;s=s.getParent()}if(t!=null){const i=!!t.getColGroupDef()?.marryChildren;const s=i?t.getProvidedColumnGroup().getLeafColumns():t.getLeafColumns();for(const t of s){if(!e.includes(t)){e.push(t)}}}}return e}function Ig(t,e,i,s){const o=s.allCols;let n=null;let r=null;for(let s=0;so.includes(t)));if(r===null){r=h}else if(!Ns(h,r)){break}const c=Lg(a);if(n===null||c=g){return}if(i&&p<=g){return}}const v=Ig(f,d,h,c);if(!v){return}const w=v.move;if(w>a.getCols().length-d.length){return}return{columns:d,toIndex:w}}function Hg(t){const{columns:e,toIndex:i}=zg(t)||{};const{finished:s,colMoves:o}=t;if(!e||i==null){return null}o.moveColumns(e,i,"uiColumnMoved",s);return s?null:{columns:e,toIndex:i}}function Og(t,e){const i=e.getCols();const s=t.map((t=>i.indexOf(t))).sort(((t,e)=>t-e));const o=s[0];const n=Vs(s);const r=n-o;const l=r!==s.length-1;return l?null:o}function Lg(t){function e(t){const e=[];let i=t.getOriginalParent();while(i!=null){e.push(i);i=i.getOriginalParent()}return e}let i=0;for(let s=0;sn.length?[o,n]:[n,o];for(const t of o){if(n.indexOf(t)===-1){i++}}}return i}function Vg(t,e){switch(e){case"left":return t.leftCols;case"right":return t.rightCols;default:return t.centerCols}}function Ng(t){const{movingCols:e,draggingRight:i,xPosition:s,pinned:o,gos:n,colModel:r,visibleCols:l}=t;const a=n.get("suppressMovableColumns")||e.some((t=>t.getColDef().suppressMovable));if(a){return[]}const h=Vg(l,o);const c=r.getCols();const u=h.filter((t=>e.includes(t)));const d=h.filter((t=>!e.includes(t)));const f=c.filter((t=>!e.includes(t)));let g=0;let p=s;if(i){let t=0;for(const e of u){t+=e.getActualWidth()}p-=t}if(p>0){for(let t=0;t0){const t=d[g-1];m=f.indexOf(t)+1}else{m=f.indexOf(d[0]);if(m===-1){m=0}}const v=[m];const w=(t,e)=>t-e;if(i){let t=m+1;const e=c.length-1;while(t<=e){v.push(t);t++}v.sort(w)}else{let t=m;const e=c.length-1;let i=c[t];while(t<=e&&h.indexOf(i)<0){t++;v.push(t);i=c[t]}t=m-1;const s=0;while(t>=s){v.push(t);t--}v.sort(w).reverse()}return v}function Gg(t){const{pinned:e,fromKeyboard:i,gos:s,ctrlsSvc:o,useHeaderRow:n,skipScrollPadding:r}=t;let l=o.getHeaderRowContainerCtrl(e)?.eViewport;let{x:a}=t;if(!l){return 0}if(i){a-=l.getBoundingClientRect().left}if(s.get("enableRtl")){if(n){l=l.querySelector(".ag-header-row")}a=l.clientWidth-a}if(e==null&&!r){a+=o.get("center").getCenterViewportScrollLeft()}return a}function $g(t,e){for(const i of t){i.moving=e;i.dispatchColEvent("movingChanged","uiColumnMoved")}}var Wg=7;var Ug=100;var jg=Ug/2;var qg=5;var Kg=100;var _g=class extends ge{constructor(t){super();this.pinned=t;this.needToMoveLeft=false;this.needToMoveRight=false;this.lastMovedInfo=null;this.isCenterContainer=!i(t)}postConstruct(){this.beans.ctrlsSvc.whenReady(this,(t=>{this.gridBodyCon=t.gridBodyCtrl}))}getIconName(){const{pinned:t,lastDraggingEvent:e}=this;const{dragItem:i}=e||{};const s=i?.columns??[];for(const e of s){const s=e.getPinned();if(e.getColDef().lockPinned){if(s==t){return"move"}continue}const o=i?.containerType;if(o===t||!t){return"move"}if(t&&(!s||o!==t)){return"pinned"}}return"notAllowed"}onDragEnter(t){const e=t.dragItem;const i=e.columns;const s=t.dragSource.type===0;if(s){this.setColumnsVisible(i,true,"uiColumnDragged")}else{const t=e.visibleState;const s=(i||[]).filter((e=>t[e.getId()]&&!e.isVisible()));this.setColumnsVisible(s,true,"uiColumnDragged")}if(!this.gos.get("suppressMoveWhenColumnDragging")){this.attemptToPinColumns(i,this.pinned)}this.onDragging(t,true,true)}onDragging(t=this.lastDraggingEvent,e=false,i=false,o=false){const{gos:n,ctrlsSvc:r}=this.beans;const l=n.get("suppressMoveWhenColumnDragging");if(o&&!l){this.finishColumnMoving();return}this.lastDraggingEvent=t;if(!t||!o&&s(t.hDirection)){return}const a=Gg({x:t.x,pinned:this.pinned,gos:n,ctrlsSvc:r});if(!e){this.checkCenterForScrolling(a)}if(l){this.handleColumnDragWhileSuppressingMovement(t,e,i,a,o)}else{this.handleColumnDragWhileAllowingMovement(t,e,i,a,o)}}onDragLeave(){this.ensureIntervalCleared();this.clearHighlighted();this.updateDragItemContainerType();this.lastMovedInfo=null}onDragStop(){this.onDragging(this.lastDraggingEvent,false,true,true);this.ensureIntervalCleared();this.lastMovedInfo=null}onDragCancel(){this.clearHighlighted();this.ensureIntervalCleared();this.lastMovedInfo=null}setColumnsVisible(t,e,i){if(!t?.length){return}const s=t.filter((t=>!t.getColDef().lockVisible));if(!s.length){return}this.beans.colModel.setColsVisible(s,e,i)}finishColumnMoving(){this.clearHighlighted();const t=this.lastMovedInfo;if(!t){return}const{columns:e,toIndex:i}=t;this.beans.colMoves.moveColumns(e,i,"uiColumnMoved",true)}updateDragItemContainerType(){const{lastDraggingEvent:t}=this;if(this.gos.get("suppressMoveWhenColumnDragging")||!t){return}const e=t.dragItem;if(!e){return}e.containerType=this.pinned}handleColumnDragWhileSuppressingMovement(t,e,i,s,o){const n=this.getAllMovingColumns(t,true);if(o){const t=this.isAttemptingToPin(n);if(t){this.attemptToPinColumns(n,void 0,true)}const{fromLeft:s,xPosition:o}=this.getNormalisedXPositionInfo(n,t)||{};if(s==null||o==null){this.finishColumnMoving();return}this.moveColumnsAfterHighlight({allMovingColumns:n,xPosition:o,fromEnter:e,fakeEvent:i,fromLeft:s})}else{if(!this.beans.dragAndDrop.isDropZoneWithinThisGrid(t)){return}this.highlightHoveredColumn(n,s)}}handleColumnDragWhileAllowingMovement(t,e,i,s,o){const n=this.getAllMovingColumns(t);const r=this.normaliseDirection(t.hDirection)==="right";const l=t.dragSource.type===1;const a=this.getMoveColumnParams({allMovingColumns:n,isFromHeader:l,xPosition:s,fromLeft:r,fromEnter:e,fakeEvent:i});const h=Hg({...a,finished:o});if(h){this.lastMovedInfo=h}}getAllMovingColumns(t,e=false){const i=t.dragSource.getDragItem();let s=null;if(e){s=i.columnsInSplit;if(!s){s=i.columns}}else{s=i.columns}const o=t=>t.getColDef().lockPinned?t.getPinned()==this.pinned:true;if(!s){return[]}return s.filter(o)}getMoveColumnParams(t){const{allMovingColumns:e,isFromHeader:i,xPosition:s,fromLeft:o,fromEnter:n,fakeEvent:r}=t;const{gos:l,colModel:a,colMoves:h,visibleCols:c}=this.beans;return{allMovingColumns:e,isFromHeader:i,fromLeft:o,xPosition:s,pinned:this.pinned,fromEnter:n,fakeEvent:r,gos:l,colModel:a,colMoves:h,visibleCols:c}}highlightHoveredColumn(t,e){const{gos:i,colModel:s}=this.beans;const o=i.get("enableRtl");const n=s.getCols().filter((t=>t.isVisible()&&t.getPinned()===this.pinned));let r=null;let l=null;let a=null;for(const t of n){l=t.getActualWidth();r=this.getNormalisedColumnLeft(t,0,o);if(r!=null){const i=r+l;if(r<=e&&i>=e){a=t;break}}r=null;l=null}if(!a){for(let t=n.length-1;t>=0;t--){const e=n[t];const i=n[t].getParent();if(!i){a=e;break}const s=i?.getDisplayedLeafColumns();if(s.length){a=Vs(s);break}}if(!a){return}r=this.getNormalisedColumnLeft(a,0,o);l=a.getActualWidth()}else if(t.indexOf(a)!==-1){a=null}if(this.lastHighlightedColumn?.column!==a){this.clearHighlighted()}if(a==null||r==null||l==null){return}let h;if(e-rWg;return e&&i||t.some((t=>t.getPinned()!==this.pinned))}moveColumnsAfterHighlight(t){const{allMovingColumns:e,xPosition:i,fromEnter:s,fakeEvent:o,fromLeft:n}=t;const r=this.getMoveColumnParams({allMovingColumns:e,isFromHeader:true,xPosition:i,fromLeft:n,fromEnter:s,fakeEvent:o});const{columns:l,toIndex:a}=zg(r)||{};if(l&&a!=null){this.lastMovedInfo={columns:l,toIndex:a}}this.finishColumnMoving()}clearHighlighted(){const{lastHighlightedColumn:t}=this;if(!t){return}Zg(t.column,null);this.lastHighlightedColumn=null}checkCenterForScrolling(t){if(!this.isCenterContainer){return}const e=this.beans.ctrlsSvc.get("center");const i=e.getCenterViewportScrollLeft();const s=i+e.getCenterWidth();let o;let n;if(this.gos.get("enableRtl")){o=ts-jg}else{n=ts-jg}this.needToMoveRight=o;this.needToMoveLeft=n;if(n||o){this.ensureIntervalStarted()}else{this.ensureIntervalCleared()}}ensureIntervalStarted(){if(this.movingIntervalId){return}this.intervalCount=0;this.failedMoveAttempts=0;this.movingIntervalId=window.setInterval(this.moveInterval.bind(this),Kg);this.beans.dragAndDrop.setDragImageCompIcon(this.needToMoveLeft?"left":"right",true)}ensureIntervalCleared(){if(!this.movingIntervalId){return}window.clearInterval(this.movingIntervalId);this.movingIntervalId=null;this.failedMoveAttempts=0;this.beans.dragAndDrop.setDragImageCompIcon(this.getIconName())}moveInterval(){let t;this.intervalCount++;t=10+this.intervalCount*qg;if(t>Ug){t=Ug}let e=null;const i=this.gridBodyCon.scrollFeature;if(this.needToMoveLeft){e=i.scrollHorizontally(-t)}else if(this.needToMoveRight){e=i.scrollHorizontally(t)}if(e!==0){this.onDragging(this.lastDraggingEvent);this.failedMoveAttempts=0}else{this.failedMoveAttempts++;const{pinnedCols:t,dragAndDrop:e,gos:i}=this.beans;if(this.failedMoveAttempts<=Wg+1||!t){return}e.setDragImageCompIcon("pinned");if(!i.get("suppressMoveWhenColumnDragging")){const t=this.lastDraggingEvent?.dragItem.columns;this.attemptToPinColumns(t,void 0,true)}}}getPinDirection(){if(this.needToMoveLeft||this.pinned==="left"){return"left"}if(this.needToMoveRight||this.pinned==="right"){return"right"}}attemptToPinColumns(t,e,i=false){const s=(t||[]).filter((t=>!t.getColDef().lockPinned));if(!s.length){return 0}if(i){e=this.getPinDirection()}const{pinnedCols:o,dragAndDrop:n}=this.beans;o?.setColsPinned(s,e,"uiColumnDragged");if(i){n.nudge()}return s.length}destroy(){super.destroy();this.lastDraggingEvent=null;this.clearHighlighted();this.lastMovedInfo=null}};function Zg(t,e){if(t.highlighted===e){return}t.highlighted=e;t.dispatchColEvent("headerHighlightChanged","uiColumnMoved")}function Qg(t){const e=t.length;let i;let s;for(let o=0;o{let e;const s=t.gridBodyCtrl.eBodyViewport;switch(i){case"left":e=[[s,t.left.eContainer],[t.bottomLeft.eContainer],[t.topLeft.eContainer]];break;case"right":e=[[s,t.right.eContainer],[t.bottomRight.eContainer],[t.topRight.eContainer]];break;default:e=[[s,t.center.eViewport],[t.bottomCenter.eViewport],[t.topCenter.eViewport]];break}this.eSecondaryContainers=e}));this.moveColumnFeature=this.createManagedBean(new _g(i));this.bodyDropPivotTarget=this.createManagedBean(new Tg(i));e.addDropTarget(this);this.addDestroyFunc((()=>e.removeDropTarget(this)))}isInterestedIn(t){return t===1||t===0&&this.gos.get("allowDragFromColumnsToolPanel")}getSecondaryContainers(){return this.eSecondaryContainers}getContainer(){return this.eContainer}getIconName(){return this.currentDropListener.getIconName()}isDropColumnInPivotMode(t){return this.beans.colModel.isPivotMode()&&t.dragSource.type===0}onDragEnter(t){this.currentDropListener=this.isDropColumnInPivotMode(t)?this.bodyDropPivotTarget:this.moveColumnFeature;this.currentDropListener.onDragEnter(t)}onDragLeave(t){this.currentDropListener.onDragLeave(t)}onDragging(t){this.currentDropListener.onDragging(t)}onDragStop(t){this.currentDropListener.onDragStop(t)}onDragCancel(){this.currentDropListener.onDragCancel()}};var Jg=class extends ge{constructor(){super(...arguments);this.beanName="colMoves"}moveColumnByIndex(t,e,i){const s=this.beans.colModel.getCols();if(!s){return}const o=s[t];this.moveColumns([o],e,i)}moveColumns(t,e,i,s=true){const{colModel:o,colAnimation:n,visibleCols:r,eventSvc:l}=this.beans;const a=o.getCols();if(!a){return}if(e>a.length-t.length){Ci(30,{toIndex:e});return}n?.start();const h=o.getColsForKeys(t);if(this.doesMovePassRules(h,e)){Us(o.getCols(),h,e);r.refresh(i);l.dispatchEvent({type:"columnMoved",columns:h,column:h.length===1?h[0]:null,toIndex:e,finished:s,source:i})}n?.finish()}doesMovePassRules(t,e){const i=this.getProposedColumnOrder(t,e);return this.doesOrderPassRules(i)}doesOrderPassRules(t){const{colModel:e,gos:i}=this.beans;if(!Ro(t,e.getColTree())){return false}const s=t=>{const e=t=>{if(!t){return 0}return t==="left"||t===true?-1:1};const s=i.get("enableRtl");let o=s?1:-1;let n=true;for(const i of t){const t=e(i.getColDef().lockPosition);if(s){if(t>o){n=false}}else if(tep(e,r.allCols):()=>tp(e);const u={type:1,eElement:t,getDefaultIconName:()=>l?"hide":"notAllowed",getDragItem:c,dragItemName:i,onDragStarted:()=>{l=!s.get("suppressDragLeaveHidesColumns");$g(h,true)},onDragStopped:()=>$g(h,false),onDragCancelled:()=>$g(h,false),onGridEnter:t=>{if(l){const{columns:e=[],visibleState:i}=t??{};const s=a?t=>!i||i[t.getColId()]:()=>true;const n=e.filter((t=>!t.getColDef().lockVisible&&s(t)));o.setColsVisible(n,true,"uiColumnMoved")}},onGridExit:t=>{if(l){const e=t?.columns?.filter((t=>!t.getColDef().lockVisible))||[];o.setColsVisible(e,false,"uiColumnMoved")}}};n.addDragSource(u,true);return u}};function Xg(t,e){while(t){if(t.getGroupId()===e){return t}t=t.getParent()}return void 0}function tp(t){const e={};e[t.getId()]=t.isVisible();return{columns:[t],visibleState:e,containerType:t.pinned}}function ep(t,e){const i=t.getProvidedColumnGroup().getLeafColumns();const s={};for(const t of i){s[t.getId()]=t.isVisible()}const o=[];for(const t of e){if(i.indexOf(t)>=0){o.push(t);$s(i,t)}}for(const t of i){o.push(t)}const n=[];const r=t.getLeafColumns();for(const t of o){if(r.indexOf(t)!==-1){n.push(t)}}return{columns:o,columnsInSplit:n,visibleState:s,containerType:n[0]?.pinned}}var ip={moduleName:"ColumnMove",version:ii,beans:[Jg,Mg],apiFunctions:{moveColumnByIndex:Pg,moveColumns:Dg},dependsOn:[kg],css:[Fg]};var sp=class extends ge{constructor(){super(...arguments);this.beanName="autoWidthCalc"}postConstruct(){this.beans.ctrlsSvc.whenReady(this,(t=>{this.centerRowContainerCtrl=t.center}))}getPreferredWidthForColumn(t,e){const i=this.getHeaderCellForColumn(t);if(!i){return-1}const s=this.beans.rowRenderer.getAllCellsNotSpanningForColumn(t);if(!e){s.push(i)}return this.getPreferredWidthForElements(s)}getPreferredWidthForColumnGroup(t){const e=this.getHeaderCellForColumn(t);if(!e){return-1}return this.getPreferredWidthForElements([e])}getPreferredWidthForElements(t,e){const i=document.createElement("form");i.style.position="fixed";const s=this.centerRowContainerCtrl.eContainer;for(const e of t){this.cloneItemIntoDummy(e,i)}s.appendChild(i);const o=i.offsetWidth;i.remove();e=e??this.gos.get("autoSizePadding");return o+e}getHeaderCellForColumn(t){let e=null;for(const i of this.beans.ctrlsSvc.getHeaderRowContainerCtrls()){const s=i.getHtmlElementForColumnHeader(t);if(s!=null){e=s}}return e}cloneItemIntoDummy(t,e){const i=t.cloneNode(true);i.style.width="";i.style.position="static";i.style.left="";const s=document.createElement("div");const o=s.classList;const n=["ag-header-cell","ag-header-group-cell"].some((t=>i.classList.contains(t)));if(n){o.add("ag-header","ag-header-row");s.style.position="static"}else{o.add("ag-row")}let r=t.parentElement;while(r){const t=["ag-header-row","ag-row"].some((t=>r.classList.contains(t)));if(t){for(let t=0;tthis.resizeLeafColumnsToFit("uiColumnResized"))))}}onResizeStart(t){const{columnsToResize:e,resizeStartWidth:i,resizeRatios:s,groupAfterColumns:o,groupAfterStartWidth:n,groupAfterRatios:r}=this.getInitialValues(t);this.resizeCols=e;this.resizeStartWidth=i;this.resizeRatios=s;this.resizeTakeFromCols=o;this.resizeTakeFromStartWidth=n;this.resizeTakeFromRatios=r;this.toggleColumnResizing(true)}onResizing(t,e,i="uiColumnResized"){const s=this.normaliseDragChange(e);const o=this.resizeStartWidth+s;this.resizeColumnsFromLocalValues(o,i,t)}getInitialValues(t){const e=t=>t.reduce(((t,e)=>t+e.getActualWidth()),0);const i=(t,e)=>t.map((t=>t.getActualWidth()/e));const s=this.getColumnsToResize();const o=e(s);const n=i(s,o);const r={columnsToResize:s,resizeStartWidth:o,resizeRatios:n};let l=null;if(t){l=this.beans.colGroupSvc?.getGroupAtDirection(this.columnGroup,"After")??null}if(l){const t=l.getDisplayedLeafColumns();const s=r.groupAfterColumns=t.filter((t=>t.isResizable()));const o=r.groupAfterStartWidth=e(s);r.groupAfterRatios=i(s,o)}else{r.groupAfterColumns=void 0;r.groupAfterStartWidth=void 0;r.groupAfterRatios=void 0}return r}resizeLeafColumnsToFit(t){const e=this.beans.autoWidthCalc.getPreferredWidthForColumnGroup(this.columnGroup);const i=this.getInitialValues();if(e>i.resizeStartWidth){this.resizeColumns(i,e,t,true)}}resizeColumnsFromLocalValues(t,e,i=true){if(!this.resizeCols||!this.resizeRatios){return}const s={columnsToResize:this.resizeCols,resizeStartWidth:this.resizeStartWidth,resizeRatios:this.resizeRatios,groupAfterColumns:this.resizeTakeFromCols,groupAfterStartWidth:this.resizeTakeFromStartWidth,groupAfterRatios:this.resizeTakeFromRatios};this.resizeColumns(s,t,e,i)}resizeColumns(t,e,i,s=true){const{columnsToResize:o,resizeStartWidth:n,resizeRatios:r,groupAfterColumns:l,groupAfterStartWidth:a,groupAfterRatios:h}=t;const c=[];c.push({columns:o,ratios:r,width:e});if(l){const t=e-n;c.push({columns:l,ratios:h,width:a-t})}this.beans.colResize?.resizeColumnSets({resizeSets:c,finished:s,source:i});if(s){this.toggleColumnResizing(false)}}toggleColumnResizing(t){this.comp.toggleCss("ag-column-resizing",t)}getColumnsToResize(){const t=this.columnGroup.getDisplayedLeafColumns();return t.filter((t=>t.isResizable()))}normaliseDragChange(t){let e=t;if(this.gos.get("enableRtl")){if(this.pinned!=="left"){e*=-1}}else if(this.pinned==="right"){e*=-1}return e}destroy(){super.destroy();this.resizeCols=void 0;this.resizeRatios=void 0;this.resizeTakeFromCols=void 0;this.resizeTakeFromRatios=void 0}};var lp=class extends ge{constructor(t,e,i,s,o){super();this.pinned=t;this.column=e;this.eResize=i;this.comp=s;this.ctrl=o}postConstruct(){const t=[];let e;let i;const s=()=>{at(this.eResize,e);if(!e){return}const{horizontalResizeSvc:s,colAutosize:o}=this.beans;const n=s.addResizeBar({eResizeBar:this.eResize,onResizeStart:this.onResizeStart.bind(this),onResizing:this.onResizing.bind(this,false),onResizeEnd:this.onResizing.bind(this,true)});t.push(n);if(i&&o){t.push(o.addColumnAutosizeListeners(this.eResize,this.column))}};const o=()=>{for(const e of t){e()}t.length=0};const n=()=>{const t=this.column.isResizable();const n=!this.gos.get("suppressAutoSize")&&!this.column.getColDef().suppressAutoSize;const r=t!==e||n!==i;if(r){e=t;i=n;o();s()}};n();this.addDestroyFunc(o);this.ctrl.setRefreshFunction("resize",n)}onResizing(t,e){const{column:i,lastResizeAmount:s,resizeStartWidth:o,beans:n}=this;const r=this.normaliseResizeAmount(e);const l=o+r;const a=[{key:i,newWidth:l}];const{pinnedCols:h,ctrlsSvc:c,colResize:u}=n;if(this.column.getPinned()){const t=h?.leftWidth??0;const e=h?.rightWidth??0;const i=gt(c.getGridBodyCtrl().eBodyViewport)-50;if(t+e+(r-s)>i){return}}this.lastResizeAmount=r;u?.setColumnWidths(a,this.resizeWithShiftKey,t,"uiColumnResized");if(t){this.toggleColumnResizing(false)}}onResizeStart(t){this.resizeStartWidth=this.column.getActualWidth();this.lastResizeAmount=0;this.resizeWithShiftKey=t;this.toggleColumnResizing(true)}toggleColumnResizing(t){this.column.resizing=t;this.comp.toggleCss("ag-column-resizing",t)}normaliseResizeAmount(t){let e=t;const i=this.pinned!=="left";const s=this.pinned==="right";if(this.gos.get("enableRtl")){if(i){e*=-1}}else if(s){e*=-1}return e}};var ap=class extends ge{constructor(){super(...arguments);this.beanName="colResize"}setColumnWidths(t,e,i,s){const o=[];const{colModel:n,gos:r,visibleCols:l}=this.beans;for(const i of t){const t=n.getColDefCol(i.key)||n.getCol(i.key);if(!t){continue}o.push({width:i.newWidth,ratios:[1],columns:[t]});const s=r.get("colResizeDefault")==="shift";if(s){e=!e}if(e){const e=l.getColAfter(t);if(!e){continue}const s=t.getActualWidth()-i.newWidth;const n=e.getActualWidth()+s;o.push({width:n,ratios:[1],columns:[e]})}}if(o.length===0){return}this.resizeColumnSets({resizeSets:o,finished:i,source:s})}resizeColumnSets(t){const{resizeSets:e,finished:i,source:s}=t;const o=!e||e.every((t=>hp(t)));if(!o){if(i){const t=e&&e.length>0?e[0].columns:null;Do(this.eventSvc,t,i,s)}return}const n=[];const r=[];for(const t of e){const{width:e,columns:i,ratios:o}=t;const l={};const a={};for(const t of i){r.push(t)}let h=true;let c=0;while(h){c++;if(c>1e3){bi(31);break}h=false;const t=[];let s=0;let n=e;i.forEach(((e,i)=>{const r=a[e.getId()];if(r){n-=l[e.getId()]}else{t.push(e);const n=o[i];s+=n}}));const r=1/s;t.forEach(((i,s)=>{const c=s===t.length-1;let u;if(c){u=n}else{u=Math.round(o[s]*e*r);n-=u}const d=i.getMinWidth();const f=i.getMaxWidth();if(u0&&u>f){u=f;a[i.getId()]=true;h=true}l[i.getId()]=u}))}for(const t of i){const e=l[t.getId()];const i=t.getActualWidth();if(i!==e){t.setActualWidth(e,s);n.push(t)}}}const l=n.length>0;let a=[];if(l){const{colFlex:t,visibleCols:e,colViewport:i}=this.beans;a=t?.refreshFlexedColumns({resizingCols:r,skipSetLeft:true})??[];e.setLeftValues(s);e.updateBodyWidths();i.checkViewportColumns()}const h=r.concat(a);if(l||i){Do(this.eventSvc,h,i,s,a)}}resizeHeader(t,e,i){if(!t.isResizable()){return}const s=t.getActualWidth();const o=t.getMinWidth();const n=t.getMaxWidth();const r=Math.min(Math.max(s+e,o),n);this.setColumnWidths([{key:t,newWidth:r}],i,true,"uiColumnResized")}createResizeFeature(t,e,i,s,o){return new lp(t,e,i,s,o)}createGroupResizeFeature(t,e,i,s){return new rp(t,e,i,s)}};function hp(t){const{columns:e,width:i}=t;let s=0;let o=0;let n=true;for(const t of e){const e=t.getMinWidth();s+=e||0;const i=t.getMaxWidth();if(i>0){o+=i}else{n=false}}const r=i>=s;const l=!n||i<=o;return r&&l}var cp={moduleName:"ColumnResize",version:ii,beans:[ap],apiFunctions:{setColumnWidths:np},dependsOn:[Eg,op]};var up=class extends ge{constructor(t,e){super();this.removeChildListenersFuncs=[];this.columnGroup=e;this.comp=t}postConstruct(){this.addListenersToChildrenColumns();this.addManagedListeners(this.columnGroup,{displayedChildrenChanged:this.onDisplayedChildrenChanged.bind(this)});this.onWidthChanged();this.addDestroyFunc(this.removeListenersOnChildrenColumns.bind(this))}addListenersToChildrenColumns(){this.removeListenersOnChildrenColumns();const t=this.onWidthChanged.bind(this);for(const e of this.columnGroup.getLeafColumns()){e.__addEventListener("widthChanged",t);e.__addEventListener("visibleChanged",t);this.removeChildListenersFuncs.push((()=>{e.__removeEventListener("widthChanged",t);e.__removeEventListener("visibleChanged",t)}))}}removeListenersOnChildrenColumns(){for(const t of this.removeChildListenersFuncs){t()}this.removeChildListenersFuncs=[]}onDisplayedChildrenChanged(){this.addListenersToChildrenColumns();this.onWidthChanged()}onWidthChanged(){const t=this.columnGroup.getActualWidth();this.comp.setWidth(`${t}px`);this.comp.toggleCss("ag-hidden",t===0)}};var dp=class extends $u{constructor(){super(...arguments);this.onSuppressColMoveChange=()=>{if(!this.isAlive()||this.isSuppressMoving()){this.removeDragSource()}else if(!this.dragSource){this.setDragSource(this.eGui)}}}wireComp(t,e,i,s,o){const{column:n,beans:r}=this;const{context:l,colNames:a,colHover:h,rangeSvc:c,colResize:u}=r;this.comp=t;o=Uo(this,l,o);this.setGui(e,o);this.displayName=a.getDisplayNameForColumnGroup(n,"header");this.refreshHeaderStyles();this.addClasses();this.setupMovingCss(o);this.setupExpandable(o);this.setupTooltip();this.setupAutoHeight({wrapperElement:s,compBean:o});this.setupUserComp();this.addHeaderMouseListeners(o);this.addManagedPropertyListener("groupHeaderHeight",this.refreshMaxHeaderHeight.bind(this));this.refreshMaxHeaderHeight();const d=this.rowCtrl.pinned;const f=n.getProvidedColumnGroup().getLeafColumns();h?.createHoverFeature(o,f,e);c?.createRangeHighlightFeature(o,n,t);o.createManagedBean(new Vu(n,e,r));o.createManagedBean(new up(t,n));if(u){this.resizeFeature=o.createManagedBean(u.createGroupResizeFeature(t,i,d,n))}else{t.setResizableDisplayed(false)}o.createManagedBean(new Wh(e,{shouldStopEventPropagation:this.shouldStopEventPropagation.bind(this),onTabKeyDown:()=>void 0,handleKeyDown:this.handleKeyDown.bind(this),onFocusIn:this.onFocusIn.bind(this)}));this.addHighlightListeners(o,f);o.addManagedPropertyListener("suppressMovableColumns",this.onSuppressColMoveChange);this.addResizeAndMoveKeyboardListeners(o);o.addDestroyFunc((()=>this.clearComponent()))}getHeaderClassParams(){const{column:t,beans:e}=this;const i=t.getDefinition();return Rs(e.gos,{colDef:i,columnGroup:t,floatingFilter:false})}refreshMaxHeaderHeight(){const{gos:t,comp:e}=this;const i=t.get("groupHeaderHeight");if(i!=null){if(i===0){e.setHeaderWrapperHidden(true)}else{e.setHeaderWrapperMaxHeight(i)}}else{e.setHeaderWrapperHidden(false);e.setHeaderWrapperMaxHeight(null)}}addHighlightListeners(t,e){if(!this.beans.gos.get("suppressMoveWhenColumnDragging")){return}for(const i of e){t.addManagedListeners(i,{headerHighlightChanged:this.onLeafColumnHighlightChanged.bind(this,i)})}}onLeafColumnHighlightChanged(t){const e=this.column.getDisplayedLeafColumns();const i=e[0]===t;const s=Vs(e)===t;if(!i&&!s){return}const o=t.getHighlighted();const n=!!this.rowCtrl.getHeaderCellCtrls().find((t=>t.column.isMoving()));let r=false;let l=false;if(n){const t=this.beans.gos.get("enableRtl");const e=o===1;const n=o===0;if(i){if(t){l=e}else{r=n}}if(s){if(t){r=n}else{l=e}}}this.comp.toggleCss("ag-header-highlight-before",r);this.comp.toggleCss("ag-header-highlight-after",l)}resizeHeader(t,e){const{resizeFeature:i}=this;if(!i){return}const s=i.getInitialValues(e);i.resizeColumns(s,s.resizeStartWidth+t,"uiColumnResized",true)}resizeLeafColumnsToFit(t){this.resizeFeature?.resizeLeafColumnsToFit(t)}setupUserComp(){const{colGroupSvc:t,userCompFactory:e,gos:i,enterpriseMenuFactory:s}=this.beans;const o=this.column;const n=o.getProvidedColumnGroup();const r=Rs(i,{displayName:this.displayName,columnGroup:o,setExpanded:e=>{t.setColumnGroupOpened(n,e,"gridInitializing")},setTooltip:(t,e)=>{i.assertModuleRegistered("Tooltip",3);this.setupTooltip(t,e)},showColumnMenu:(t,e)=>s?.showMenuAfterButtonClick(n,t,"columnMenu",e),showColumnMenuAfterMouseClick:(t,e)=>s?.showMenuAfterMouseEvent(n,t,"columnMenu",e),eGridHeader:this.eGui});const l=Pn(e,r);if(l){this.comp.setUserCompDetails(l)}}addHeaderMouseListeners(t){const e=t=>this.handleMouseOverChange(t.type==="mouseenter");const i=()=>this.dispatchColumnMouseEvent("columnHeaderClicked",this.column.getProvidedColumnGroup());const s=t=>this.handleContextMenuMouseEvent(t,void 0,this.column.getProvidedColumnGroup());t.addManagedListeners(this.eGui,{mouseenter:e,mouseleave:e,click:i,contextmenu:s})}handleMouseOverChange(t){this.eventSvc.dispatchEvent({type:t?"columnHeaderMouseOver":"columnHeaderMouseLeave",column:this.column.getProvidedColumnGroup()})}setupTooltip(t,e){this.tooltipFeature=this.beans.tooltipSvc?.setupHeaderGroupTooltip(this.tooltipFeature,this,t,e)}setupExpandable(t){const e=this.column.getProvidedColumnGroup();this.refreshExpanded();const i=this.refreshExpanded.bind(this);t.addManagedListeners(e,{expandedChanged:i,expandableChanged:i})}refreshExpanded(){const{column:t}=this;this.expandable=t.isExpandable();const e=t.isExpanded();if(this.expandable){this.comp.setAriaExpanded(e?"true":"false")}else{this.comp.setAriaExpanded(void 0)}this.refreshHeaderStyles()}addClasses(){const{column:t}=this;const e=t.getColGroupDef();const i=hu(e,this.gos,null,t);if(t.isPadding()){i.push("ag-header-group-cell-no-group");const e=t.getLeafColumns();if(e.every((t=>t.isSpanHeaderHeight()))){i.push("ag-header-span-height")}}else{i.push("ag-header-group-cell-with-group");if(e?.wrapHeaderText){i.push("ag-header-cell-wrap-text")}}for(const t of i){this.comp.toggleCss(t,true)}}setupMovingCss(t){const{column:e}=this;const i=e.getProvidedColumnGroup();const s=i.getLeafColumns();const o=()=>this.comp.toggleCss("ag-header-cell-moving",e.isMoving());for(const e of s){t.addManagedListeners(e,{movingChanged:o})}o()}onFocusIn(t){if(!this.eGui.contains(t.relatedTarget)){this.focusThis()}}handleKeyDown(t){super.handleKeyDown(t);const e=this.getWrapperHasFocus();if(!this.expandable||!e){return}if(t.key===Zn.ENTER){const t=this.column;const e=!t.isExpanded();this.beans.colGroupSvc.setColumnGroupOpened(t.getProvidedColumnGroup(),e,"uiColumnExpanded")}}setDragSource(t){if(!this.isAlive()||this.isSuppressMoving()){return}this.removeDragSource();if(!t){return}this.dragSource=this.beans.colMoves?.setDragSourceForHeader(t,this.column,this.displayName)??null}isSuppressMoving(){return this.gos.get("suppressMovableColumns")||this.column.getLeafColumns().some((t=>t.getColDef().suppressMovable||t.getColDef().lockPosition))}destroy(){this.tooltipFeature=this.destroyBean(this.tooltipFeature);super.destroy()}};function fp(t,e,i){t.colGroupSvc?.setColumnGroupOpened(e,i,"api")}function gp(t,e,i){return t.colGroupSvc?.getColumnGroup(e,i)??null}function pp(t,e){return t.colGroupSvc?.getProvidedColGroup(e)??null}function mp(t,e,i){return t.colNames.getDisplayNameForColumnGroup(e,i)||""}function vp(t){return t.colGroupSvc?.getColumnGroupState()??[]}function wp(t,e){t.colGroupSvc?.setColumnGroupState(e,"api")}function Cp(t){t.colGroupSvc?.resetColumnGroupState("api")}function bp(t){return t.visibleCols.treeLeft}function yp(t){return t.visibleCols.treeCenter}function Sp(t){return t.visibleCols.treeRight}function xp(t){return t.visibleCols.getAllTrees()}function kp(t,e){for(let i=0;i=0){t[s]=t[t.length-1];t.pop()}}}var Rp=class extends ge{constructor(){super(...arguments);this.beanName="visibleCols";this.colsAndGroupsMap={};this.leftCols=[];this.rightCols=[];this.centerCols=[];this.allCols=[];this.headerGroupRowCount=0;this.bodyWidth=0;this.leftWidth=0;this.rightWidth=0;this.isBodyWidthDirty=true}refresh(t,e=false){const{colFlex:i,colModel:s,colGroupSvc:o,colViewport:n,selectionColSvc:r}=this.beans;if(!e){this.buildTrees(s,o)}o?.updateOpenClosedVisibility();this.leftCols=Fp(this.treeLeft);this.centerCols=Fp(this.treeCenter);this.rightCols=Fp(this.treeRight);r?.refreshVisibility(this.leftCols,this.centerCols,this.rightCols);this.joinColsAriaOrder(s);this.joinCols();this.headerGroupRowCount=this.getHeaderRowCount();this.setLeftValues(t);this.autoHeightCols=this.allCols.filter((t=>t.isAutoHeight()));i?.refreshFlexedColumns();this.updateBodyWidths();this.setFirstRightAndLastLeftPinned(s,this.leftCols,this.rightCols,t);n.checkViewportColumns(false);this.eventSvc.dispatchEvent({type:"displayedColumnsChanged",source:t})}getHeaderRowCount(){if(!this.gos.get("hidePaddedHeaderRows")){return this.beans.colModel.cols.treeDepth}let t=0;for(const e of this.allCols){let i=e.getParent();while(i){if(!i.isPadding()){const e=i.getProvidedColumnGroup().getLevel()+1;if(e>t){t=e}break}i=i.getParent()}}return t}updateBodyWidths(){const t=Ys(this.centerCols);const e=Ys(this.leftCols);const i=Ys(this.rightCols);this.isBodyWidthDirty=this.bodyWidth!==t;const s=this.bodyWidth!==t||this.leftWidth!==e||this.rightWidth!==i;if(s){this.bodyWidth=t;this.leftWidth=e;this.rightWidth=i;this.eventSvc.dispatchEvent({type:"columnContainerWidthChanged"});this.eventSvc.dispatchEvent({type:"displayedColumnsWidthChanged"})}}setLeftValues(t){this.setLeftValuesOfCols(t);this.setLeftValuesOfGroups()}setFirstRightAndLastLeftPinned(t,e,i,s){let o;let n;if(this.gos.get("enableRtl")){o=e?e[0]:null;n=i?Vs(i):null}else{o=e?Vs(e):null;n=i?i[0]:null}for(const e of t.getCols()){e.setLastLeftPinned(e===o,s);e.setFirstRightPinned(e===n,s)}}buildTrees(t,e){const i=t.getColsToShow();const s=i.filter((t=>t.getPinned()=="left"));const o=i.filter((t=>t.getPinned()=="right"));const n=i.filter((t=>t.getPinned()!="left"&&t.getPinned()!="right"));const r=new $o;const l=t=>e?e.createColumnGroups(t):t.columns;this.treeLeft=l({columns:s,idCreator:r,pinned:"left",oldDisplayedGroups:this.treeLeft});this.treeRight=l({columns:o,idCreator:r,pinned:"right",oldDisplayedGroups:this.treeRight});this.treeCenter=l({columns:n,idCreator:r,pinned:null,oldDisplayedGroups:this.treeCenter});this.updateColsAndGroupsMap()}clear(){this.leftCols=[];this.rightCols=[];this.centerCols=[];this.allCols=[];this.ariaOrderColumns=[]}joinColsAriaOrder(t){const e=t.getCols();const i=[];const s=[];const o=[];for(const t of e){const e=t.getPinned();if(!e){s.push(t)}else if(e===true||e==="left"){i.push(t)}else{o.push(t)}}this.ariaOrderColumns=i.concat(s).concat(o)}getAriaColIndex(t){let e;if(Za(t)){e=t.getLeafColumns()[0]}else{e=t}return this.ariaOrderColumns.indexOf(e)+1}setLeftValuesOfGroups(){for(const t of[this.treeLeft,this.treeRight,this.treeCenter]){for(const e of t){if(Za(e)){const t=e;t.checkLeft()}}}}setLeftValuesOfCols(t){const{colModel:e}=this.beans;const i=e.getColDefCols();if(!i){return}const s=e.getCols().slice(0);const o=this.gos.get("enableRtl");for(const e of[this.leftCols,this.rightCols,this.centerCols]){if(o){let i=Ys(e);for(const s of e){i-=s.getActualWidth();s.setLeft(i,t)}}else{let i=0;for(const s of e){s.setLeft(i,t);i+=s.getActualWidth()}}kp(s,e)}for(const e of s){e.setLeft(null,t)}}joinCols(){if(this.gos.get("enableRtl")){this.allCols=this.rightCols.concat(this.centerCols).concat(this.leftCols)}else{this.allCols=this.leftCols.concat(this.centerCols).concat(this.rightCols)}}getAllTrees(){if(this.treeLeft&&this.treeRight&&this.treeCenter){return this.treeLeft.concat(this.treeCenter).concat(this.treeRight)}return null}isColDisplayed(t){return this.allCols.indexOf(t)>=0}getLeftColsForRow(t){const{leftCols:e,beans:{colModel:i}}=this;const s=i.colSpanActive;if(!s){return e}return this.getColsForRow(t,e)}getRightColsForRow(t){const{rightCols:e,beans:{colModel:i}}=this;const s=i.colSpanActive;if(!s){return e}return this.getColsForRow(t,e)}getColsForRow(t,e,i,s){const o=[];let n=null;for(let r=0;r1){const t=h-1;for(let i=1;i<=t;i++){c.push(e[r+i])}r+=t}let u;if(i){u=false;for(const t of c){if(i(t)){u=true}}}else{u=true}if(u){if(o.length===0&&n){const t=s?s(l):false;if(t){o.push(n)}}o.push(l)}n=l}return o}getContainerWidth(t){switch(t){case"left":return this.leftWidth;case"right":return this.rightWidth;default:return this.bodyWidth}}getColBefore(t){const e=this.allCols;const i=e.indexOf(t);if(i>0){return e[i-1]}return null}isPinningLeft(){return this.leftCols.length>0}isPinningRight(){return this.rightCols.length>0}updateColsAndGroupsMap(){this.colsAndGroupsMap={};const t=t=>{this.colsAndGroupsMap[t.getUniqueId()]=t};Ep(this.treeCenter,false,t);Ep(this.treeLeft,false,t);Ep(this.treeRight,false,t)}isVisible(t){const e=this.colsAndGroupsMap[t.getUniqueId()];return e===t}getFirstColumn(){const t=this.gos.get("enableRtl");const e=["leftCols","centerCols","rightCols"];if(t){e.reverse()}for(let i=0;i{if(Ts(t)){e.push(t)}}));return e}var Mp=class extends ge{constructor(){super(...arguments);this.beanName="colGroupSvc"}getColumnGroupState(){const t=[];const e=this.beans.colModel.getColTree();xo(null,e,(e=>{if(As(e)){t.push({groupId:e.getGroupId(),open:e.isExpanded()})}}));return t}resetColumnGroupState(t){const e=this.beans.colModel.getColDefColTree();if(!e){return}const i=[];xo(null,e,(t=>{if(As(t)){const e=t.getColGroupDef();const s={groupId:t.getGroupId(),open:!e?void 0:e.openByDefault};i.push(s)}}));this.setColumnGroupState(i,t)}setColumnGroupState(t,e){const{colModel:i,colAnimation:s,visibleCols:o,eventSvc:n}=this.beans;const r=i.getColTree();if(!r.length){return}s?.start();const l=[];for(const e of t){const t=e.groupId;const i=e.open;const s=this.getProvidedColGroup(t);if(!s){continue}if(s.isExpanded()===i){continue}s.setExpanded(i);l.push(s)}o.refresh(e,true);if(l.length){n.dispatchEvent({type:"columnGroupOpened",columnGroup:l.length===1?l[0]:void 0,columnGroups:l})}s?.finish()}setColumnGroupOpened(t,e,i){let s;if(As(t)){s=t.getId()}else{s=t||""}this.setColumnGroupState([{groupId:s,open:e}],i)}getProvidedColGroup(t){let e=null;xo(null,this.beans.colModel.getColTree(),(i=>{if(As(i)){if(i.getId()===t){e=i}}}));return e}getGroupAtDirection(t,e){const i=t.getProvidedColumnGroup().getLevel()+t.getPaddingLevel();const s=t.getDisplayedLeafColumns();const o=e==="After"?Vs(s):s[0];const n=`getCol${e}`;while(true){const e=this.beans.visibleCols[n](o);if(!e){return null}const s=this.getColGroupAtLevel(e,i);if(s!==t){return s}}}getColGroupAtLevel(t,e){let i=t.getParent();let s;let o;while(true){const t=i.getProvidedColumnGroup();s=t.getLevel();o=i.getPaddingLevel();if(s+o<=e){break}i=i.getParent()}return i}updateOpenClosedVisibility(){const t=this.beans.visibleCols.getAllTrees();Ep(t,false,(t=>{if(Za(t)){t.calculateDisplayedColumns()}}))}getColumnGroup(t,e){if(!t){return null}if(Za(t)){return t}const i=this.beans.visibleCols.getAllTrees();const s=typeof e==="number";let o=null;Ep(i,false,(i=>{if(Za(i)){const n=i;let r;if(s){r=t===n.getGroupId()&&e===n.getPartId()}else{r=t===n.getGroupId()}if(r){o=n}}}));return o}createColumnGroups(t){const{columns:e,idCreator:i,pinned:s,oldDisplayedGroups:o,isStandaloneStructure:n}=t;const r=this.mapOldGroupsById(o);const l=[];let a=e;while(a.length){const t=a;a=[];let e=0;const o=o=>{const h=e;e=o;const c=t[h];const u=Za(c)?c.getProvidedColumnGroup():c;const d=u.getOriginalParent();if(d==null){for(let e=h;eAs(t)));if(e){l.setChildren([r]);continue}else{l.setChildren(t);break}}o.push(r)}}return o}findDepth(t){let e=0;let i=t;while(i?.[0]&&As(i[0])){e++;i=i[0].getChildren()}return e}findMaxDepth(t,e){let i=e;for(let s=0;s=0;i--){const e=new Is(null,`FAKE_PATH_${s.getId()}}_${i}`,true,i);this.createBean(e);e.setChildren([t]);t.originalParent=e;t=e}if(e===0){s.originalParent=null}i.push(t)}return i}findExistingGroup(t,e){const i=t.groupId!=null;if(!i){return void 0}for(let i=0;i{for(const s of t){if(Za(s)){const t=s;e[s.getUniqueId()]=t;i(t.getChildren())}}};if(t){i(t)}return e}setupParentsIntoCols(t,e){for(const i of t??[]){if(i.parent!==e){this.beans.colViewport.colsWithinViewportHash=""}i.parent=e;if(Za(i)){const t=i;this.setupParentsIntoCols(t.getChildren(),t)}}}};var Pp={moduleName:"ColumnGroup",version:ii,dynamicBeans:{headerGroupCellCtrl:dp},beans:[Mp],apiFunctions:{getAllDisplayedColumnGroups:xp,getCenterDisplayedColumnGroups:yp,getColumnGroup:gp,getColumnGroupState:vp,getDisplayNameForColumnGroup:mp,getLeftDisplayedColumnGroups:bp,getProvidedColumnGroup:pp,getRightDisplayedColumnGroups:Sp,resetColumnGroupState:Cp,setColumnGroupOpened:fp,setColumnGroupState:wp}};var Dp={tag:"div",cls:"ag-skeleton-container"};var Tp=class extends Qo{constructor(){super(Dp)}init(t){const e=`ag-cell-skeleton-renderer-${this.getCompId()}`;this.getGui().setAttribute("id",e);this.addDestroyFunc((()=>M(t.eParentOfValue)));M(t.eParentOfValue,e);if(t.deferRender){this.setupLoading(t)}else{t.node.failedLoad?this.setupFailed():this.setupLoading(t)}}setupFailed(){const t=this.getLocaleTextFunc();this.getGui().textContent=t("loadingError","ERR");const e=t("ariaSkeletonCellLoadingFailed","Row failed to load");F(this.getGui(),e)}setupLoading(t){const e=gh({tag:"div",cls:"ag-skeleton-effect"});const i=t.node.rowIndex;if(i!=null){const t=75+25*(i%2===0?Math.sin(i):Math.cos(i));e.style.width=`${t}%`}this.getGui().appendChild(e);const s=this.getLocaleTextFunc();const o=t.deferRender?s("ariaDeferSkeletonCellLoading","Cell is loading"):s("ariaSkeletonCellLoading","Row data is loading");F(this.getGui(),o)}refresh(t){return false}};var Bp={moduleName:"CheckboxCellRenderer",version:ii,userComponents:{agCheckboxCellRenderer:cd}};var Ap={moduleName:"SkeletonCellRenderer",version:ii,userComponents:{agSkeletonCellRenderer:Tp}};function Ip(t,e){const i=t.colModel.getColDefCol(e);if(i){return i.getColDef()}return null}function zp(t){return t.colModel.getColumnDefs(true)}function Hp(t,e,i){return t.colNames.getDisplayNameForColumn(e,i)||""}function Op(t,e){return t.colModel.getColDefCol(e)}function Lp(t){return t.colModel.getColDefCols()}function Vp(t,e){return To(t,e,"api")}function Np(t){return Io(t)}function Gp(t){Bo(t,"api")}function $p(t){return t.visibleCols.isPinningLeft()||t.visibleCols.isPinningRight()}function Wp(t){return t.visibleCols.isPinningLeft()}function Up(t){return t.visibleCols.isPinningRight()}function jp(t,e){return t.visibleCols.getColAfter(e)}function qp(t,e){return t.visibleCols.getColBefore(e)}function Kp(t,e,i){t.colModel.setColsVisible(e,i,"api")}function _p(t,e,i){t.pinnedCols?.setColsPinned(e,i,"api")}function Zp(t){return t.colModel.getCols()}function Qp(t){return t.visibleCols.leftCols}function Yp(t){return t.visibleCols.centerCols}function Jp(t){return t.visibleCols.rightCols}function Xp(t){return t.visibleCols.allCols}function tm(t){return t.colViewport.getViewportColumns()}function em(t,e){if(!t){return}const i=t;const s={};for(const t of Object.keys(i)){if(e&&e.indexOf(t)>=0||xe.has(t)){continue}const o=i[t];const n=typeof o==="object"&&o!==null&&o.constructor===Object;if(n){s[t]=em(o)}else{s[t]=o}}return s}var im=class extends ge{constructor(){super(...arguments);this.beanName="colDefFactory"}wireBeans(t){this.rowGroupColsSvc=t.rowGroupColsSvc;this.pivotColsSvc=t.pivotColsSvc}getColumnDefs(t,e,i,s,o=false){const n=t.slice();if(e){n.sort(((t,e)=>i.indexOf(t)-i.indexOf(e)))}else if(i||o){n.sort(((t,e)=>s.indexOf(t)-s.indexOf(e)))}const r=this.rowGroupColsSvc?.columns;const l=this.pivotColsSvc?.columns;return this.buildColumnDefs(n,r,l)}buildColumnDefs(t,e=[],i=[]){const s=[];const o={};for(const n of t){const t=this.createDefFromColumn(n,e,i);let r=true;let l=t;let a=n.getOriginalParent();let h=null;while(a){let t=null;if(a.isPadding()){a=a.getOriginalParent();continue}const e=o[a.getGroupId()];if(e){e.children.push(l);r=false;break}t=this.createDefFromGroup(a);if(t){t.children=[l];o[t.groupId]=t;l=t;a=a.getOriginalParent()}if(a!=null&&h===a){r=false;break}h=a}if(r){s.push(l)}}return s}createDefFromGroup(t){const e=em(t.getColGroupDef(),["children"]);if(e){e.groupId=t.getGroupId()}return e}createDefFromColumn(t,e,i){const s=em(t.getColDef());s.colId=t.getColId();s.width=t.getActualWidth();s.rowGroup=t.isRowGroupActive();s.rowGroupIndex=t.isRowGroupActive()?e.indexOf(t):null;s.pivot=t.isPivotActive();s.pivotIndex=t.isPivotActive()?i.indexOf(t):null;s.aggFunc=t.isValueActive()?t.getAggFunc():null;s.hide=t.isVisible()?void 0:true;s.pinned=t.isPinned()?t.getPinned():null;s.sort=t.getSort()?t.getSort():null;s.sortIndex=t.getSortIndex()!=null?t.getSortIndex():null;return s}};var sm=class extends ge{constructor(){super(...arguments);this.beanName="colFlex";this.columnsHidden=false}refreshFlexedColumns(t={}){const e=t.source??"flex";if(t.viewportWidth!=null){this.flexViewportWidth=t.viewportWidth}const i=this.flexViewportWidth;const{visibleCols:s,colDelayRenderSvc:o}=this.beans;const n=s.centerCols;let r=-1;if(t.resizingCols){const e=new Set(t.resizingCols);for(let t=n.length-1;t>=0;t--){if(e.has(n[t])){r=t;break}}}let l=false;const a=n.map(((t,e)=>{const i=t.getFlex();const s=i!=null&&i>0&&e>r;l||(l=s);return{col:t,isFlex:s,flex:Math.max(0,i??0),initialSize:t.getActualWidth(),min:t.getMinWidth(),max:t.getMaxWidth(),targetSize:0}}));if(l){o?.hideColumns("colFlex");this.columnsHidden=true}else if(this.columnsHidden){this.revealColumns(o)}if(!i||!l){return[]}let h=a.length;let c=a.reduce(((t,e)=>t+e.flex),0);let u=i;const d=(t,i)=>{t.frozenSize=i;t.col.setActualWidth(i,e);u-=i;c-=t.flex;h-=1};const f=t=>t.frozenSize!=null;for(const t of a){if(!t.isFlex){d(t,t.initialSize)}}while(h>0){const t=Math.round(c<1?u*c:u);let e;let i=0;let s=0;for(const o of a){if(f(o)){continue}e=o;s+=t*(o.flex/c);const n=s-i;const r=Math.round(n);o.targetSize=r;i+=r}if(e){e.targetSize+=t-i}let o=0;for(const t of a){if(f(t)){continue}const e=t.targetSize;const i=Math.min(Math.max(e,t.min),t.max);o+=i-e;t.violationType=i===e?void 0:i0?"min":"max";for(const t of a){if(f(t)){continue}if(n==="all"||t.violationType===n){d(t,t.targetSize)}}}if(!t.skipSetLeft){s.setLeftValues(e)}if(t.updateBodyWidths){s.updateBodyWidths()}const g=a.filter((t=>t.isFlex&&!t.violationType)).map((t=>t.col));if(t.fireResizedEvent){const t=a.filter((t=>t.initialSize!==t.frozenSize)).map((t=>t.col));const i=a.filter((t=>t.flex)).map((t=>t.col));Do(this.eventSvc,t,true,e,i)}this.revealColumns(o);return g}revealColumns(t){if(this.columnsHidden){t?.revealColumns("colFlex");this.columnsHidden=false}}initCol(t){const{flex:e,initialFlex:i}=t.colDef;if(e!==void 0){t.flex=e}else if(i!==void 0){t.flex=i}}setColFlex(t,e){t.flex=e??null;t.dispatchStateUpdatedEvent("flex")}};function om(t,e,i){if(!e||!t){return}if(!i){return t[e]}const s=e.split(".");let o=t;for(let t=0;tnull,suppressKeyboardEvent:t=>!!t.colDef.editable&&t.event.key===Zn.SPACE}},date({formatValue:t}){return{cellEditor:"agDateCellEditor",keyCreator:t}},dateString({formatValue:t}){return{cellEditor:"agDateStringCellEditor",keyCreator:t}},dateTime(t){return this.date(t)},dateTimeString(t){return this.dateString(t)},object({formatValue:t,colModel:e,colId:i}){return{cellEditorParams:{useFormatter:true},comparator:(s,o)=>{const n=e.getColDefCol(i);const r=n?.getColDef();if(!n||!r){return 0}const l=s==null?"":t({column:n,node:null,value:s});const a=o==null?"":t({column:n,node:null,value:o});if(l===a){return 0}return l>a?1:-1},keyCreator:t}},text(){return{}}}}wireBeans(t){this.colModel=t.colModel}postConstruct(){this.processDataTypeDefinitions();this.addManagedPropertyListener("dataTypeDefinitions",(t=>{this.processDataTypeDefinitions();this.colModel.recreateColumnDefs(t)}))}processDataTypeDefinitions(){const t=this.getDefaultDataTypes();const e={};const i={};const s=t=>e=>{const{column:i,node:s,value:o}=e;let n=i.getColDef().valueFormatter;if(n===t.groupSafeValueFormatter){n=t.valueFormatter}return this.beans.valueSvc.formatValue(i,s,o,n)};for(const o of Object.keys(t)){const n=t[o];const r={...n,groupSafeValueFormatter:hm(n,this.gos)};e[o]=r;i[o]=s(r)}const o=this.gos.get("dataTypeDefinitions")??{};const n={};for(const r of Object.keys(o)){const l=o[r];const a=this.processDataTypeDefinition(l,o,[r],t);if(a){e[r]=a;if(l.dataTypeMatcher){n[r]=l.dataTypeMatcher}i[r]=s(a)}}const{valueParser:r,valueFormatter:l}=t.object;const{valueParser:a,valueFormatter:h}=e.object;this.hasObjectValueParser=a!==r;this.hasObjectValueFormatter=h!==l;this.formatValueFuncs=i;this.dataTypeDefinitions=e;this.dataTypeMatchers=this.sortKeysInMatchers(n,t)}sortKeysInMatchers(t,e){const i={...t};for(const s of nm){delete i[s];i[s]=t[s]??e[s].dataTypeMatcher}return i}processDataTypeDefinition(t,e,i,s){let o;const n=t.extendsDataType;if(t.columnTypes){this.isColumnTypeOverrideInDataTypeDefinitions=true}if(t.extendsDataType===t.baseDataType){let i=s[n];const r=e[n];if(i&&r){i=r}if(!am(t,i,n)){return void 0}o=lm(i,t)}else{if(i.includes(n)){Ci(44);return void 0}const r=e[n];if(!am(t,r,n)){return void 0}const l=this.processDataTypeDefinition(r,e,[...i,n],s);if(!l){return void 0}o=lm(l,t)}return{...o,groupSafeValueFormatter:hm(o,this.gos)}}updateColDefAndGetColumnType(t,e,i){let{cellDataType:s}=e;const{field:o}=e;if(s===void 0){s=t.cellDataType}if(s==null||s===true){s=this.canInferCellDataType(t,e)?this.inferCellDataType(o,i):false}if(!s){t.cellDataType=false;return void 0}const n=this.dataTypeDefinitions[s];if(!n){Ci(47,{cellDataType:s});return void 0}t.cellDataType=s;if(n.groupSafeValueFormatter){t.valueFormatter=n.groupSafeValueFormatter}if(n.valueParser){t.valueParser=n.valueParser}if(!n.suppressDefaultProperties){this.setColDefPropertiesForBaseDataType(t,s,n,i)}return n.columnTypes}addColumnListeners(t){if(!this.isPendingInference){return}const e=this.columnStateUpdatesPendingInference[t.getColId()];if(!e){return}const i=t=>{e.add(t.key)};t.__addEventListener("columnStateUpdated",i);this.columnStateUpdateListenerDestroyFuncs.push((()=>t.__removeEventListener("columnStateUpdated",i)))}canInferCellDataType(t,e){const{gos:i}=this;if(!Fi(i)){return false}const s={cellRenderer:true,valueGetter:true,valueParser:true,refData:true};if(um(e,s)){return false}const o=e.type===null?t.type:e.type;if(o){const t=i.get("columnTypes")??{};const e=so(o).some((e=>{const i=t[e.trim()];return i&&um(i,s)}));if(e){return false}}return!um(t,s)}inferCellDataType(t,e){if(!t){return void 0}let i;const s=this.getInitialData();if(s){const e=t.includes(".")&&!this.gos.get("suppressFieldDotNotation");i=om(s,t,e)}else{this.initWaitForRowData(e)}if(i==null){return void 0}const o=Object.keys(this.dataTypeMatchers).find((t=>this.dataTypeMatchers[t](i)));return o??"object"}getInitialData(){const t=this.gos.get("rowData");if(t?.length){return t[0]}else if(this.initialData){return this.initialData}else{const t=this.beans.rowModel.rootNode?._leafs;if(t?.length){return t[0].data}}return null}initWaitForRowData(t){this.columnStateUpdatesPendingInference[t]=new Set;if(this.isPendingInference){return}this.isPendingInference=true;const e=this.isColumnTypeOverrideInDataTypeDefinitions;const{colAutosize:i,eventSvc:s}=this.beans;if(e&&i){i.shouldQueueResizeOperations=true}const[o]=this.addManagedEventListeners({rowDataUpdateStarted:t=>{const{firstRowData:n}=t;if(!n){return}o?.();this.isPendingInference=false;this.processColumnsPendingInference(n,e);this.columnStateUpdatesPendingInference={};if(e){i?.processResizeOperations()}s.dispatchEvent({type:"dataTypesInferred"})}})}processColumnsPendingInference(t,e){this.initialData=t;const i=[];this.destroyColumnStateUpdateListeners();const s={};const o={};for(const t of Object.keys(this.columnStateUpdatesPendingInference)){const n=this.columnStateUpdatesPendingInference[t];const r=this.colModel.getCol(t);if(!r){return}const l=r.getColDef();if(!this.resetColDefIntoCol(r,"cellDataTypeInferred")){return}const a=r.getColDef();if(e&&a.type&&a.type!==l.type){const e=dm(r,n);if(e.rowGroup&&e.rowGroupIndex==null){s[t]=e}if(e.pivot&&e.pivotIndex==null){o[t]=e}i.push(e)}}if(e){i.push(...this.generateColumnStateForRowGroupAndPivotIndexes(s,o))}if(i.length){To(this.beans,{state:i},"cellDataTypeInferred")}this.initialData=null}generateColumnStateForRowGroupAndPivotIndexes(t,e){const i={};const{rowGroupColsSvc:s,pivotColsSvc:o}=this.beans;s?.restoreColumnOrder(i,t);o?.restoreColumnOrder(i,e);return Object.values(i)}resetColDefIntoCol(t,e){const i=t.getUserProvidedColDef();if(!i){return false}const s=Co(this.beans,i,t.getColId());t.setColDef(s,i,e);return true}getDateStringTypeDefinition(t){const{dateString:e}=this.dataTypeDefinitions;if(!t){return e}return this.getDataTypeDefinition(t)??e}getDateParserFunction(t){return this.getDateStringTypeDefinition(t).dateParser}getDateFormatterFunction(t){return this.getDateStringTypeDefinition(t).dateFormatter}getDateIncludesTimeFlag(t){return t==="dateTime"||t==="dateTimeString"}getDataTypeDefinition(t){const e=t.getColDef();if(!e.cellDataType){return void 0}return this.dataTypeDefinitions[e.cellDataType]}getBaseDataType(t){return this.getDataTypeDefinition(t)?.baseDataType}checkType(t,e){if(e==null){return true}const i=this.getDataTypeDefinition(t)?.dataTypeMatcher;if(!i){return true}return i(e)}validateColDef(t){const e=t=>Ci(48,{property:t});if(t.cellDataType==="object"){const{object:i}=this.dataTypeDefinitions;if(t.valueFormatter===i.groupSafeValueFormatter&&!this.hasObjectValueFormatter){e("Formatter")}if(t.editable&&t.valueParser===i.valueParser&&!this.hasObjectValueParser){e("Parser")}}}postProcess(t){const e=t.cellDataType;if(!e||typeof e!=="string"){return}const{dataTypeDefinitions:i,beans:s,formatValueFuncs:o}=this;const n=i[e];if(!n){return}s.colFilter?.setColDefPropsForDataType(t,n,o[e])}getFormatValue(t){return this.formatValueFuncs[t]}isColPendingInference(t){return this.isPendingInference&&!!this.columnStateUpdatesPendingInference[t]}setColDefPropertiesForBaseDataType(t,e,i,s){const o=this.formatValueFuncs[e];const n=this.columnDefinitionPropsPerDataType[i.baseDataType]({colDef:t,cellDataType:e,colModel:this.colModel,dataTypeDefinition:i,colId:s,formatValue:o});Object.assign(t,n)}getDateObjectTypeDef(t){const e=this.getLocaleTextFunc();const i=this.getDateIncludesTimeFlag(t);return{baseDataType:t,valueParser:t=>Rr(t.newValue&&String(t.newValue)),valueFormatter:t=>{if(t.value==null){return""}if(!(t.value instanceof Date)||isNaN(t.value.getTime())){return e("invalidDate","Invalid Date")}return vr(t.value,i)??""},dataTypeMatcher:t=>t instanceof Date}}getDateStringTypeDef(t){const e=this.getDateIncludesTimeFlag(t);return{baseDataType:t,dateParser:t=>Rr(t)??void 0,dateFormatter:t=>vr(t??null,e)??void 0,valueParser:t=>xr(String(t.newValue))?t.newValue:null,valueFormatter:t=>xr(String(t.value))?String(t.value):"",dataTypeMatcher:t=>typeof t==="string"&&xr(t)}}getDefaultDataTypes(){const t=this.getLocaleTextFunc();return{number:{baseDataType:"number",valueParser:t=>t.newValue?.trim?.()===""?null:Number(t.newValue),valueFormatter:e=>{if(e.value==null){return""}if(typeof e.value!=="number"||isNaN(e.value)){return t("invalidNumber","Invalid Number")}return String(e.value)},dataTypeMatcher:t=>typeof t==="number"},text:{baseDataType:"text",valueParser:t=>t.newValue===""?null:o(t.newValue),dataTypeMatcher:t=>typeof t==="string"},boolean:{baseDataType:"boolean",valueParser:t=>{if(t.newValue==null){return t.newValue}return 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"&&kr(t)},object:{baseDataType:"object",valueParser:()=>null,valueFormatter:t=>o(t.value)??""}}}destroyColumnStateUpdateListeners(){for(const t of this.columnStateUpdateListenerDestroyFuncs){t()}this.columnStateUpdateListenerDestroyFuncs=[]}destroy(){this.dataTypeDefinitions={};this.dataTypeMatchers={};this.formatValueFuncs={};this.columnStateUpdatesPendingInference={};this.destroyColumnStateUpdateListeners();super.destroy()}};function lm(t,e){const i={...t,...e};if(t.columnTypes&&e.columnTypes&&e.appendColumnTypes){i.columnTypes=[...so(t.columnTypes),...so(e.columnTypes)]}return i}function am(t,e,i){if(!e){Ci(45,{parentCellDataType:i});return false}if(e.baseDataType!==t.baseDataType){Ci(46);return false}return true}function hm(t,e){if(!t.valueFormatter){return void 0}return i=>{if(i.node?.group){const e=(i.colDef.pivotValueColumn??i.column).getAggFunc();if(e){if(e==="first"||e==="last"){return t.valueFormatter(i)}if(t.baseDataType==="number"&&e!=="count"){if(typeof i.value==="number"){return t.valueFormatter(i)}if(typeof i.value==="object"){if(!i.value){return void 0}if("toNumber"in i.value){return t.valueFormatter({...i,value:i.value.toNumber()})}if("value"in i.value){return t.valueFormatter({...i,value:i.value.value})}}}return void 0}}else if(e.get("groupHideOpenParents")&&i.column.isRowGroupActive()){if(typeof i.value==="string"&&!t.dataTypeMatcher?.(i.value)){return void 0}}return t.valueFormatter(i)}}function cm(t,e,i,s){if(!e[i]){return false}const o=t[i];if(o===null){e[i]=false;return false}else{return s===void 0?!!o:o===s}}function um(t,e){return[["cellRenderer","agSparklineCellRenderer"],["valueGetter",void 0],["valueParser",void 0],["refData",void 0]].some((([i,s])=>cm(t,e,i,s)))}function dm(t,e){const i=zo(t);for(const t of e){delete i[t];if(t==="rowGroup"){delete i.rowGroupIndex}else if(t==="pivot"){delete i.pivotIndex}}return i}var fm={moduleName:"DataType",version:ii,beans:[rm],dependsOn:[Bp]};var gm={moduleName:"ColumnFlex",version:ii,beans:[sm]};var pm={moduleName:"ColumnApi",version:ii,beans:[im],apiFunctions:{getColumnDef:Ip,getDisplayNameForColumn:Hp,getColumn:Op,getColumns:Lp,applyColumnState:Vp,getColumnState:Np,resetColumnState:Gp,isPinning:$p,isPinningLeft:Wp,isPinningRight:Up,getDisplayedColAfter:jp,getDisplayedColBefore:qp,setColumnsVisible:Kp,setColumnsPinned:_p,getAllGridColumns:Zp,getDisplayedLeftColumns:Qp,getDisplayedCenterColumns:Yp,getDisplayedRightColumns:Jp,getAllDisplayedColumns:Xp,getAllDisplayedVirtualColumns:tm,getColumnDefs:zp}};function mm(t){if(!t||t==null){return null}const e=/([a-z])([A-Z])/g;const i=/([A-Z]+)([A-Z])([a-z])/g;const s=t.replace(e,"$1 $2").replace(i,"$1 $2$3").replace(/\./g," ").split(" ");return s.map((t=>t.substring(0,1).toUpperCase()+(t.length>1?t.substring(1,t.length):""))).join(" ")}var vm=class extends ge{constructor(){super(...arguments);this.beanName="colNames"}getDisplayNameForColumn(t,e,i=false){if(!t){return null}const s=this.getHeaderName(t.getColDef(),t,null,null,e);const{aggColNameSvc:o}=this.beans;if(i&&o){return o.getHeaderName(t,s)}return s}getDisplayNameForProvidedColumnGroup(t,e,i){const s=e?.getColGroupDef();if(s){return this.getHeaderName(s,null,t,e,i)}return null}getDisplayNameForColumnGroup(t,e){return this.getDisplayNameForProvidedColumnGroup(t,t.getProvidedColumnGroup(),e)}getHeaderName(t,e,i,s,o){const n=t.headerValueGetter;if(n){const r=Rs(this.gos,{colDef:t,column:e,columnGroup:i,providedColumnGroup:s,location:o});if(typeof n==="function"){return n(r)}else if(typeof n==="string"){return this.beans.expressionSvc?.evaluate(n,r)??null}return""}else if(t.headerName!=null){return t.headerName}else if(t.field){return mm(t.field)}return""}};var wm=class extends ge{constructor(){super(...arguments);this.beanName="colViewport";this.colsWithinViewport=[];this.headerColsWithinViewport=[];this.colsWithinViewportHash="";this.rowsOfHeadersToRenderLeft={};this.rowsOfHeadersToRenderRight={};this.rowsOfHeadersToRenderCenter={};this.columnsToRenderLeft=[];this.columnsToRenderRight=[];this.columnsToRenderCenter=[]}wireBeans(t){this.visibleCols=t.visibleCols;this.colModel=t.colModel}postConstruct(){this.suppressColumnVirtualisation=this.gos.get("suppressColumnVirtualisation")}setScrollPosition(t,e,i=false){const{visibleCols:s}=this;const o=s.isBodyWidthDirty;const n=t===this.scrollWidth&&e===this.scrollPosition&&!o;if(n){return}this.scrollWidth=t;this.scrollPosition=e;s.isBodyWidthDirty=true;if(this.gos.get("enableRtl")){const i=s.bodyWidth;this.viewportLeft=i-e-t;this.viewportRight=i-e}else{this.viewportLeft=e;this.viewportRight=t+e}if(this.colModel.ready){this.checkViewportColumns(i)}}getColumnHeadersToRender(t){switch(t){case"left":return this.columnsToRenderLeft;case"right":return this.columnsToRenderRight;default:return this.columnsToRenderCenter}}getHeadersToRender(t,e){let i;switch(t){case"left":i=this.rowsOfHeadersToRenderLeft[e];break;case"right":i=this.rowsOfHeadersToRenderRight[e];break;default:i=this.rowsOfHeadersToRenderCenter[e];break}return i??[]}extractViewportColumns(){const t=this.visibleCols.centerCols;if(this.isColumnVirtualisationSuppressed()){this.colsWithinViewport=t;this.headerColsWithinViewport=t}else{this.colsWithinViewport=t.filter(this.isColumnInRowViewport.bind(this));this.headerColsWithinViewport=t.filter(this.isColumnInHeaderViewport.bind(this))}}isColumnVirtualisationSuppressed(){return this.suppressColumnVirtualisation||this.viewportRight===0}clear(){this.rowsOfHeadersToRenderLeft={};this.rowsOfHeadersToRenderRight={};this.rowsOfHeadersToRenderCenter={};this.colsWithinViewportHash=""}isColumnInHeaderViewport(t){if(t.isAutoHeaderHeight()||Cm(t)){return true}return this.isColumnInRowViewport(t)}isColumnInRowViewport(t){if(t.isAutoHeight()){return true}const e=t.getLeft()||0;const i=e+t.getActualWidth();const s=this.viewportLeft-200;const o=this.viewportRight+200;const n=eo&&i>o;return!n&&!r}getViewportColumns(){const{leftCols:t,rightCols:e}=this.visibleCols;const i=this.colsWithinViewport.concat(t).concat(e);return i}getColsWithinViewport(t){if(!this.colModel.colSpanActive){return this.colsWithinViewport}const e=t=>{const e=t.getLeft();return i(e)&&e>this.viewportLeft};const s=this.isColumnVirtualisationSuppressed()?void 0:this.isColumnInRowViewport.bind(this);const{visibleCols:o}=this;const n=o.centerCols;return o.getColsForRow(t,n,s,e)}checkViewportColumns(t=false){const e=this.extractViewport();if(e){this.eventSvc.dispatchEvent({type:"virtualColumnsChanged",afterScroll:t})}}calculateHeaderRows(){const{leftCols:t,rightCols:e}=this.visibleCols;this.columnsToRenderLeft=t;this.columnsToRenderRight=e;this.columnsToRenderCenter=this.colsWithinViewport;const i=t=>{const e=new Set;const i={};for(const s of t){let t=s.getParent();const o=s.isSpanHeaderHeight();while(t){if(e.has(t)){break}const s=o&&t.isPadding();if(s){t=t.getParent();continue}const n=t.getProvidedColumnGroup().getLevel();i[n]??(i[n]=[]);i[n].push(t);e.add(t);t=t.getParent()}}return i};this.rowsOfHeadersToRenderLeft=i(t);this.rowsOfHeadersToRenderRight=i(e);this.rowsOfHeadersToRenderCenter=i(this.headerColsWithinViewport)}extractViewport(){const t=t=>`${t.getId()}-${t.getPinned()||"normal"}`;this.extractViewportColumns();const e=this.getViewportColumns().map(t).join("#");const i=this.colsWithinViewportHash!==e;if(i){this.colsWithinViewportHash=e;this.calculateHeaderRows()}return i}};function Cm(t){while(t){if(t.isAutoHeaderHeight()){return true}t=t.getParent()}return false}var bm=class extends ge{constructor(){super(...arguments);this.beanName="agCompUtils"}adaptFunction(t,e){if(!t.cellRenderer){return null}class i{refresh(){return false}getGui(){return this.eGui}init(t){const i=e(t);const s=typeof i;if(s==="string"||s==="number"||s==="boolean"){this.eGui=kt(""+i+"");return}if(i==null){this.eGui=gh({tag:"span"});return}this.eGui=i}}return i}};var ym={moduleName:"CellRendererFunction",version:ii,beans:[bm]};var Sm=class extends Ca{constructor(){super(...arguments);this.agGridDefaults={};this.agGridDefaultOverrides={};this.jsComps={};this.selectors={};this.icons={}}postConstruct(){const t=this.gos.get("components");if(t!=null){for(const e of Object.keys(t)){this.jsComps[e]=t[e]}}}registerModule(t){const{icons:e,userComponents:i,dynamicBeans:s,selectors:o}=t;if(i){const t=(t,e,i,s)=>{this.agGridDefaults[t]=e;if(i||s){this.agGridDefaultOverrides[t]={params:i,processParams:s}}};for(const e of Object.keys(i)){let s=i[e];if(_n(s)){s=s.getComp(this.beans)}if(typeof s==="object"){const{classImp:i,params:o,processParams:n}=s;t(e,i,o,n)}else{t(e,s)}}}this.registerDynamicBeans(s);for(const t of o??[]){this.selectors[t.selector]=t}if(e){for(const t of Object.keys(e)){this.icons[t]=e[t]}}}getUserComponent(t,e){const i=(t,e,i,s)=>({componentFromFramework:e,component:t,params:i,processParams:s});const{frameworkOverrides:s}=this.beans;const o=s.frameworkComponent(e,this.gos.get("components"));if(o!=null){return i(o,true)}const n=this.jsComps[e];if(n){const t=s.isFrameworkComponent(n);return i(n,t)}const r=this.agGridDefaults[e];if(r){const t=this.agGridDefaultOverrides[e];return i(r,false,t?.params,t?.processParams)}this.beans.validation?.missingUserComponent(t,e,this.agGridDefaults,this.jsComps);return null}getSelector(t){return this.selectors[t]}getIcon(t){return this.icons[t]}getDynamicError(t,e){if(e){return ki(279,{name:t})}return this.beans.validation?.missingDynamicBean(t)??ki(256)}};var xm=23;var km=class extends ge{constructor(){super(...arguments);this.beanName="ctrlsSvc";this.params={};this.ready=false;this.readyCallbacks=[]}postConstruct(){this.addEventListener("ready",(()=>{this.updateReady();if(this.ready){for(const t of this.readyCallbacks){t(this.params)}this.readyCallbacks.length=0}}),this.beans.frameworkOverrides.runWhenReadyAsync?.()??false)}updateReady(){const t=Object.values(this.params);this.ready=t.length===xm&&t.every((t=>t?.isAlive()??false))}whenReady(t,e){if(this.ready){e(this.params)}else{this.readyCallbacks.push(e)}t.addDestroyFunc((()=>{const t=this.readyCallbacks.indexOf(e);if(t>=0){this.readyCallbacks.splice(t,1)}}))}register(t,e){this.params[t]=e;this.updateReady();if(this.ready){this.dispatchLocalEvent({type:"ready"})}e.addDestroyFunc((()=>{this.updateReady()}))}get(t){return this.params[t]}getGridBodyCtrl(){return this.params.gridBodyCtrl}getHeaderRowContainerCtrls(){const{leftHeader:t,centerHeader:e,rightHeader:i}=this.params;return[t,i,e]}getHeaderRowContainerCtrl(t){const e=this.params;switch(t){case"left":return e.leftHeader;case"right":return e.rightHeader;default:return e.centerHeader}}getScrollFeature(){return this.getGridBodyCtrl().scrollFeature}};var Rm=`.ag-aria-description-container{border:0;z-index:9999;clip:rect(1px,1px,1px,1px);height:1px;overflow:hidden;padding:0;position:absolute;white-space:nowrap;width:1px}.ag-unselectable{-webkit-user-select:none;-moz-user-select:none;user-select:none}.ag-selectable{-webkit-user-select:text;-moz-user-select:text;user-select:text}.ag-tab-guard{display:block;height:0;position:absolute;width:0}:where(.ag-virtual-list-viewport) .ag-tab-guard{position:sticky}.ag-tab-guard-top{top:1px}.ag-tab-guard-bottom{bottom:1px}.ag-shake-left-to-right{animation-direction:alternate;animation-duration:.2s;animation-iteration-count:infinite;animation-name:ag-shake-left-to-right}@keyframes ag-shake-left-to-right{0%{padding-left:6px;padding-right:2px}to{padding-left:2px;padding-right:6px}}.ag-body-horizontal-scroll-viewport,.ag-body-vertical-scroll-viewport,.ag-body-viewport,.ag-center-cols-viewport,.ag-floating-bottom-viewport,.ag-floating-top-viewport,.ag-header-viewport,.ag-sticky-bottom-viewport,.ag-sticky-top-viewport,.ag-virtual-list-viewport{flex:1 1 auto;height:100%;min-width:0;overflow:hidden;position:relative}.ag-viewport{position:relative}.ag-spanning-container{position:absolute;top:0;z-index:1}.ag-body-viewport,.ag-center-cols-viewport,.ag-floating-bottom-viewport,.ag-floating-top-viewport,.ag-header-viewport,.ag-sticky-bottom-viewport,.ag-sticky-top-viewport{overflow-x:auto;-ms-overflow-style:none!important;scrollbar-width:none!important;&::-webkit-scrollbar{display:none!important}}.ag-body-viewport{display:flex;overflow-x:hidden;&:where(.ag-layout-normal){overflow-y:auto;-webkit-overflow-scrolling:touch}}.ag-floating-bottom-container,.ag-floating-top-container,.ag-sticky-bottom-container,.ag-sticky-top-container{min-height:1px}.ag-center-cols-viewport{min-height:100%;width:100%}.ag-body-horizontal-scroll-viewport{overflow-x:scroll}.ag-body-vertical-scroll-viewport{overflow-y:scroll}.ag-virtual-list-viewport{overflow:auto;width:100%}.ag-body-container,.ag-body-horizontal-scroll-container,.ag-body-vertical-scroll-container,.ag-center-cols-container,.ag-floating-bottom-container,.ag-floating-bottom-full-width-container,.ag-floating-top-container,.ag-full-width-container,.ag-header-container,.ag-pinned-left-cols-container,.ag-pinned-right-cols-container,.ag-sticky-bottom-container,.ag-sticky-top-container,.ag-virtual-list-container{position:relative}.ag-floating-bottom-container,.ag-floating-top-container,.ag-header-container,.ag-pinned-left-floating-bottom,.ag-pinned-left-floating-top,.ag-pinned-right-floating-bottom,.ag-pinned-right-floating-top,.ag-sticky-bottom-container,.ag-sticky-top-container{height:100%;white-space:nowrap}.ag-center-cols-container,.ag-pinned-right-cols-container{display:block}.ag-body-horizontal-scroll-container{height:100%}.ag-body-vertical-scroll-container{width:100%}.ag-floating-bottom-full-width-container,.ag-floating-top-full-width-container,.ag-full-width-container,.ag-sticky-bottom-full-width-container,.ag-sticky-top-full-width-container{pointer-events:none;position:absolute;top:0}:where(.ag-ltr) .ag-floating-bottom-full-width-container,:where(.ag-ltr) .ag-floating-top-full-width-container,:where(.ag-ltr) .ag-full-width-container,:where(.ag-ltr) .ag-sticky-bottom-full-width-container,:where(.ag-ltr) .ag-sticky-top-full-width-container{left:0}:where(.ag-rtl) .ag-floating-bottom-full-width-container,:where(.ag-rtl) .ag-floating-top-full-width-container,:where(.ag-rtl) .ag-full-width-container,:where(.ag-rtl) .ag-sticky-bottom-full-width-container,:where(.ag-rtl) .ag-sticky-top-full-width-container{right:0}.ag-full-width-container{width:100%}.ag-floating-bottom-full-width-container,.ag-floating-top-full-width-container{display:inline-block;height:100%;overflow:hidden;width:100%}.ag-virtual-list-container{overflow:hidden}.ag-body{display:flex;flex:1 1 auto;flex-direction:row!important;min-height:0;position:relative}.ag-body-horizontal-scroll,.ag-body-vertical-scroll{display:flex;min-height:0;min-width:0;position:relative;&:where(.ag-scrollbar-invisible){bottom:0;position:absolute;&:where(.ag-apple-scrollbar){opacity:0;transition:opacity .4s;visibility:hidden;&:where(.ag-scrollbar-scrolling,.ag-scrollbar-active){opacity:1;visibility:visible}}}}.ag-body-horizontal-scroll{width:100%;&:where(.ag-scrollbar-invisible){left:0;right:0}}.ag-body-vertical-scroll{height:100%;&:where(.ag-scrollbar-invisible){top:0;z-index:10}}:where(.ag-ltr) .ag-body-vertical-scroll{&:where(.ag-scrollbar-invisible){right:0}}:where(.ag-rtl) .ag-body-vertical-scroll{&:where(.ag-scrollbar-invisible){left:0}}.ag-force-vertical-scroll{overflow-y:scroll!important}.ag-horizontal-left-spacer,.ag-horizontal-right-spacer{height:100%;min-width:0;overflow-x:scroll;&:where(.ag-scroller-corner){overflow-x:hidden}}:where(.ag-row-animation) .ag-row{transition:transform .4s,top .4s,opacity .2s;&:where(.ag-after-created){transition:transform .4s,top .4s,height .4s,opacity .2s}}:where(.ag-row-animation.ag-prevent-animation) .ag-row{transition:none!important;&:where(.ag-row.ag-after-created){transition:none!important}}:where(.ag-row-no-animation) .ag-row{transition:none}.ag-row-loading{align-items:center;display:flex}.ag-row-position-absolute{position:absolute}.ag-row-position-relative{position:relative}.ag-full-width-row{overflow:hidden;pointer-events:all}.ag-row-inline-editing{z-index:1}.ag-row-dragging{z-index:2}.ag-stub-cell{align-items:center;display:flex}.ag-cell{display:inline-block;height:100%;position:absolute;white-space:nowrap;&:focus-visible{box-shadow:none}}.ag-cell-value{flex:1 1 auto}.ag-cell-value:not(.ag-allow-overflow),.ag-group-value{overflow:hidden;text-overflow:ellipsis}.ag-cell-wrap-text{white-space:normal;word-break:break-word}:where(.ag-cell) .ag-icon{display:inline-block;vertical-align:middle}.ag-floating-top{display:flex;overflow:hidden;position:relative;white-space:nowrap;width:100%}:where(.ag-floating-top:not(.ag-invisible)){border-bottom:var(--ag-pinned-row-border)}.ag-floating-bottom{display:flex;overflow:hidden;position:relative;white-space:nowrap;width:100%}:where(.ag-floating-bottom:not(.ag-invisible)){border-top:var(--ag-pinned-row-border)}.ag-sticky-bottom,.ag-sticky-top{background-color:var(--ag-data-background-color);display:flex;height:0;overflow:hidden;position:absolute;width:100%;z-index:1}.ag-opacity-zero{opacity:0!important}.ag-cell-label-container{align-items:center;display:flex;flex-direction:row-reverse;height:100%;justify-content:space-between;width:100%}:where(.ag-right-aligned-header){.ag-cell-label-container{flex-direction:row}.ag-header-cell-text{text-align:end}}.ag-column-group-icons{display:block;>*{cursor:pointer}}:where(.ag-ltr){direction:ltr;.ag-body,.ag-body-horizontal-scroll,.ag-body-viewport,.ag-floating-bottom,.ag-floating-top,.ag-header,.ag-sticky-bottom,.ag-sticky-top{flex-direction:row}}:where(.ag-rtl){direction:rtl;text-align:right;.ag-body,.ag-body-horizontal-scroll,.ag-body-viewport,.ag-floating-bottom,.ag-floating-top,.ag-header,.ag-sticky-bottom,.ag-sticky-top{flex-direction:row-reverse}.ag-icon-contracted,.ag-icon-expanded,.ag-icon-tree-closed{display:block}}:where(.ag-rtl){.ag-icon-contracted,.ag-icon-expanded,.ag-icon-tree-closed{transform:rotate(180deg)}}:where(.ag-rtl){.ag-icon-contracted,.ag-icon-expanded,.ag-icon-tree-closed{transform:rotate(-180deg)}}.ag-measurement-container{height:0;overflow:hidden;visibility:hidden;width:0}.ag-measurement-element-border{display:inline-block;&:before{border-left:var(--ag-internal-measurement-border);content:"";display:block}}.ag-group{position:relative;width:100%}.ag-group-title-bar{align-items:center;display:flex;padding:var(--ag-spacing)}.ag-group-title{display:inline;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}:where(.ag-group-title-bar) .ag-group-title{cursor:default}.ag-group-toolbar{align-items:center;display:flex;padding:var(--ag-spacing)}.ag-group-container{display:flex}.ag-disabled .ag-group-container{pointer-events:none}.ag-disabled-group-container,.ag-disabled-group-title-bar{opacity:.5}.ag-group-container-horizontal{flex-flow:row wrap}.ag-group-container-vertical{flex-direction:column}.ag-group-title-bar-icon{cursor:pointer;flex:none}:where(.ag-ltr) .ag-group-title-bar-icon{margin-right:var(--ag-spacing)}:where(.ag-rtl) .ag-group-title-bar-icon{margin-left:var(--ag-spacing)}:where(.ag-group-item-alignment-stretch) .ag-group-item{align-items:stretch}:where(.ag-group-item-alignment-start) .ag-group-item{align-items:flex-start}:where(.ag-group-item-alignment-end) .ag-group-item{align-items:flex-end}:where(.ag-ltr) .ag-row:not(.ag-row-level-0) .ag-pivot-leaf-group{margin-left:var(--ag-row-group-indent-size)}:where(.ag-rtl) .ag-row:not(.ag-row-level-0) .ag-pivot-leaf-group{margin-right:var(--ag-row-group-indent-size)}:where(.ag-ltr) .ag-row-group-leaf-indent{margin-left:calc(var(--ag-cell-widget-spacing) + var(--ag-icon-size))}:where(.ag-rtl) .ag-row-group-leaf-indent{margin-right:calc(var(--ag-cell-widget-spacing) + var(--ag-icon-size))}.ag-value-change-delta{padding:0 2px}.ag-value-change-delta-up{color:var(--ag-value-change-delta-up-color)}.ag-value-change-delta-down{color:var(--ag-value-change-delta-down-color)}.ag-value-change-value{background-color:transparent;border-radius:1px;padding-left:1px;padding-right:1px;transition:background-color 1s}.ag-value-change-value-highlight{background-color:var(--ag-value-change-value-highlight-background-color);transition:background-color .1s}.ag-cell-data-changed{background-color:var(--ag-value-change-value-highlight-background-color)!important}.ag-cell-data-changed-animation{background-color:transparent}.ag-cell-highlight{background-color:var(--ag-range-selection-highlight-color)!important}.ag-row,.ag-spanned-row{color:var(--ag-cell-text-color);font-family:var(--ag-cell-font-family);font-size:var(--ag-data-font-size);white-space:nowrap;--ag-internal-content-line-height:calc(min(var(--ag-row-height), var(--ag-line-height, 1000px)) - var(--ag-internal-row-border-width, 1px) - 2px)}.ag-row{background-color:var(--ag-data-background-color);border-bottom:var(--ag-row-border);height:var(--ag-row-height);width:100%;&.ag-row-editing-invalid{background-color:var(--ag-full-row-edit-invalid-background-color)}}:where(.ag-body-vertical-content-no-gap>div>div>div,.ag-body-vertical-content-no-gap>div>div>div>div)>.ag-row-last{border-bottom-color:transparent}.ag-sticky-bottom{border-top:var(--ag-row-border);box-sizing:content-box!important}.ag-group-contracted,.ag-group-expanded{cursor:pointer}.ag-cell,.ag-full-width-row .ag-cell-wrapper.ag-row-group{border:1px solid transparent;line-height:var(--ag-internal-content-line-height);-webkit-font-smoothing:subpixel-antialiased}:where(.ag-ltr) .ag-cell{border-right:var(--ag-column-border)}:where(.ag-rtl) .ag-cell{border-left:var(--ag-column-border)}.ag-spanned-cell-wrapper{background-color:var(--ag-data-background-color);position:absolute}.ag-spanned-cell-wrapper>.ag-spanned-cell{display:block;position:relative}:where(.ag-ltr) :where(.ag-body-horizontal-content-no-gap) .ag-column-last{border-right-color:transparent}:where(.ag-rtl) :where(.ag-body-horizontal-content-no-gap) .ag-column-last{border-left-color:transparent}.ag-cell-wrapper{align-items:center;display:flex;>:where(:not(.ag-cell-value,.ag-group-value)){align-items:center;display:flex;height:var(--ag-internal-content-line-height)}&:where(.ag-row-group){align-items:flex-start}:where(.ag-full-width-row) &:where(.ag-row-group){align-items:center;height:100%}}:where(.ag-ltr) .ag-cell-wrapper{padding-left:calc(var(--ag-indentation-level)*var(--ag-row-group-indent-size))}:where(.ag-rtl) .ag-cell-wrapper{padding-right:calc(var(--ag-indentation-level)*var(--ag-row-group-indent-size))}:where(.ag-cell-wrap-text:not(.ag-cell-auto-height)) .ag-cell-wrapper{align-items:normal;height:100%;:where(.ag-cell-value){height:100%}}:where(.ag-ltr) .ag-row>.ag-cell-wrapper.ag-row-group{padding-left:calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size)*var(--ag-indentation-level))}:where(.ag-rtl) .ag-row>.ag-cell-wrapper.ag-row-group{padding-right:calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size)*var(--ag-indentation-level))}.ag-cell-focus:not(.ag-cell-range-selected):focus-within,.ag-cell-range-single-cell,.ag-cell-range-single-cell.ag-cell-range-handle,.ag-context-menu-open .ag-cell-focus:not(.ag-cell-range-selected),.ag-context-menu-open .ag-full-width-row.ag-row-focus .ag-cell-wrapper.ag-row-group,.ag-full-width-row.ag-row-focus:focus .ag-cell-wrapper.ag-row-group{border:1px solid;border-color:var(--ag-range-selection-border-color);border-style:var(--ag-range-selection-border-style);outline:initial}.ag-full-width-row.ag-row-focus:focus{box-shadow:none}:where(.ag-ltr) .ag-group-contracted,:where(.ag-ltr) .ag-group-expanded,:where(.ag-ltr) .ag-row-drag,:where(.ag-ltr) .ag-selection-checkbox{margin-right:var(--ag-cell-widget-spacing)}:where(.ag-rtl) .ag-group-contracted,:where(.ag-rtl) .ag-group-expanded,:where(.ag-rtl) .ag-row-drag,:where(.ag-rtl) .ag-selection-checkbox{margin-left:var(--ag-cell-widget-spacing)}:where(.ag-ltr) .ag-group-child-count{margin-left:3px}:where(.ag-rtl) .ag-group-child-count{margin-right:3px}.ag-row-highlight-above:after,.ag-row-highlight-below:after,.ag-row-highlight-inside:after{background-color:var(--ag-range-selection-border-color);content:"";height:1px;pointer-events:none;position:absolute;width:calc(100% - 1px)}:where(.ag-ltr) .ag-row-highlight-above:after,:where(.ag-ltr) .ag-row-highlight-below:after,:where(.ag-ltr) .ag-row-highlight-inside:after{left:1px}:where(.ag-rtl) .ag-row-highlight-above:after,:where(.ag-rtl) .ag-row-highlight-below:after,:where(.ag-rtl) .ag-row-highlight-inside:after{right:1px}.ag-row-highlight-above:after{top:0}.ag-row-highlight-below:after{bottom:0}.ag-row-highlight-indent:after{display:block;width:auto}:where(.ag-ltr) .ag-row-highlight-indent:after{left:calc((var(--ag-cell-widget-spacing) + var(--ag-icon-size))*2 + var(--ag-cell-horizontal-padding) + var(--ag-row-highlight-level)*var(--ag-row-group-indent-size));right:1px}:where(.ag-rtl) .ag-row-highlight-indent:after{left:1px;right:calc((var(--ag-cell-widget-spacing) + var(--ag-icon-size))*2 + var(--ag-cell-horizontal-padding) + var(--ag-row-highlight-level)*var(--ag-row-group-indent-size))}.ag-row-highlight-inside:after{background-color:var(--ag-selected-row-background-color);border:1px solid var(--ag-range-selection-border-color);display:block;height:auto;inset:0;width:auto}.ag-body,.ag-floating-bottom,.ag-floating-top{background-color:var(--ag-data-background-color)}.ag-row-odd{background-color:var(--ag-odd-row-background-color)}.ag-row-selected:before{background-color:var(--ag-selected-row-background-color);content:"";display:block;inset:0;pointer-events:none;position:absolute}.ag-row-hover.ag-full-width-row.ag-row-group:before,.ag-row-hover:not(.ag-full-width-row):before{background-color:var(--ag-row-hover-color);content:"";display:block;inset:0;pointer-events:none;position:absolute}.ag-row-hover.ag-row-selected:before{background-color:var(--ag-row-hover-color);background-image:linear-gradient(var(--ag-selected-row-background-color),var(--ag-selected-row-background-color))}.ag-row.ag-full-width-row.ag-row-group>*{position:relative}.ag-column-hover{background-color:var(--ag-column-hover-color)}.ag-header-range-highlight{background-color:var(--ag-range-header-highlight-color)}.ag-right-aligned-cell{font-variant-numeric:tabular-nums}:where(.ag-ltr) .ag-right-aligned-cell{text-align:right}:where(.ag-rtl) .ag-right-aligned-cell{text-align:left}.ag-right-aligned-cell .ag-cell-value,.ag-right-aligned-cell .ag-group-value{margin-left:auto}:where(.ag-ltr) .ag-cell:not(.ag-cell-inline-editing),:where(.ag-ltr) .ag-full-width-row .ag-cell-wrapper.ag-row-group{padding-left:calc(var(--ag-cell-horizontal-padding) - 1px + var(--ag-row-group-indent-size)*var(--ag-indentation-level));padding-right:calc(var(--ag-cell-horizontal-padding) - 1px)}:where(.ag-rtl) .ag-cell:not(.ag-cell-inline-editing),:where(.ag-rtl) .ag-full-width-row .ag-cell-wrapper.ag-row-group{padding-left:calc(var(--ag-cell-horizontal-padding) - 1px);padding-right:calc(var(--ag-cell-horizontal-padding) - 1px + var(--ag-row-group-indent-size)*var(--ag-indentation-level))}.ag-row>.ag-cell-wrapper{padding-left:calc(var(--ag-cell-horizontal-padding) - 1px);padding-right:calc(var(--ag-cell-horizontal-padding) - 1px)}.ag-row-dragging{cursor:move;opacity:.5}.ag-details-row{background-color:var(--ag-data-background-color);padding:calc(var(--ag-spacing)*3.75)}.ag-layout-auto-height,.ag-layout-print{.ag-center-cols-container,.ag-center-cols-viewport{min-height:150px}}.ag-overlay-loading-wrapper{background-color:var(--ag-modal-overlay-background-color)}.ag-skeleton-container{align-content:center;height:100%;width:100%}.ag-skeleton-effect{animation:ag-skeleton-loading 1.5s ease-in-out .5s infinite;background-color:var(--ag-row-loading-skeleton-effect-color);border-radius:.25rem;height:1em;width:100%}:where(.ag-ltr) .ag-right-aligned-cell .ag-skeleton-effect{margin-left:auto}:where(.ag-rtl) .ag-right-aligned-cell .ag-skeleton-effect{margin-right:auto}@keyframes ag-skeleton-loading{0%{background-color:var(--ag-row-loading-skeleton-effect-color)}50%{background-color:color-mix(in srgb,transparent,var(--ag-row-loading-skeleton-effect-color) 40%)}to{background-color:var(--ag-row-loading-skeleton-effect-color)}}.ag-loading{align-items:center;display:flex;height:100%}:where(.ag-ltr) .ag-loading{padding-left:var(--ag-cell-horizontal-padding)}:where(.ag-rtl) .ag-loading{padding-right:var(--ag-cell-horizontal-padding)}:where(.ag-ltr) .ag-loading-icon{padding-right:var(--ag-cell-widget-spacing)}:where(.ag-rtl) .ag-loading-icon{padding-left:var(--ag-cell-widget-spacing)}.ag-icon-loading{animation-duration:1s;animation-iteration-count:infinite;animation-name:spin;animation-timing-function:linear}@keyframes spin{0%{transform:rotate(0deg)}to{transform:rotate(1turn)}}.ag-header{background-color:var(--ag-header-background-color);border-bottom:var(--ag-header-row-border);color:var(--ag-header-text-color);display:flex;font-family:var(--ag-header-font-family);font-size:var(--ag-header-font-size);font-weight:var(--ag-header-font-weight);overflow:hidden;white-space:nowrap;width:100%}.ag-header-row{height:var(--ag-header-height);position:absolute}.ag-floating-filter-button-button,.ag-header-cell-filter-button,.ag-header-cell-menu-button,.ag-header-expand-icon,.ag-panel-title-bar-button,:where(.ag-header-cell-sortable) .ag-header-cell-label{cursor:pointer}:where(.ag-ltr) .ag-header-expand-icon{margin-left:4px}:where(.ag-rtl) .ag-header-expand-icon{margin-right:4px}.ag-header-row:where(:not(:first-child)){:where(.ag-header-cell:not(.ag-header-span-height.ag-header-span-total,.ag-header-parent-hidden),.ag-header-group-cell.ag-header-group-cell-with-group){border-top:var(--ag-header-row-border)}}.ag-header-row:where(:not(.ag-header-row-column-group)){overflow:hidden}:where(.ag-header.ag-header-allow-overflow) .ag-header-row{overflow:visible}.ag-header-cell{display:inline-flex;overflow:hidden}.ag-header-group-cell{contain:paint;display:flex}.ag-header-cell,.ag-header-group-cell{align-items:center;gap:var(--ag-cell-widget-spacing);height:100%;padding:0 var(--ag-cell-horizontal-padding);position:absolute}@property --ag-internal-moving-color{syntax:"";inherits:false;initial-value:transparent}@property --ag-internal-hover-color{syntax:"";inherits:false;initial-value:transparent}.ag-header-cell:where(:not(.ag-floating-filter)),.ag-header-group-cell{&:before{background-image:linear-gradient(var(--ag-internal-hover-color),var(--ag-internal-hover-color)),linear-gradient(var(--ag-internal-moving-color),var(--ag-internal-moving-color));content:"";inset:0;position:absolute;--ag-internal-moving-color:transparent;--ag-internal-hover-color:transparent;transition:--ag-internal-moving-color var(--ag-header-cell-background-transition-duration),--ag-internal-hover-color var(--ag-header-cell-background-transition-duration)}&:where(:hover):before{--ag-internal-hover-color:var(--ag-header-cell-hover-background-color)}&:where(.ag-header-cell-moving):before{--ag-internal-moving-color:var(--ag-header-cell-moving-background-color);--ag-internal-hover-color:var(--ag-header-cell-hover-background-color)}}:where(.ag-header-cell:not(.ag-floating-filter) *,.ag-header-group-cell *){position:relative;z-index:1}.ag-header-cell-menu-button:where(:not(.ag-header-menu-always-show)){opacity:0;transition:opacity .2s}.ag-header-cell-filter-button,:where(.ag-header-cell.ag-header-active) .ag-header-cell-menu-button{opacity:1}.ag-header-cell-label,.ag-header-group-cell-label{align-items:center;align-self:stretch;display:flex;flex:1 1 auto;overflow:hidden;padding:5px 0}:where(.ag-ltr) .ag-sort-indicator-icon{padding-left:var(--ag-spacing)}:where(.ag-rtl) .ag-sort-indicator-icon{padding-right:var(--ag-spacing)}.ag-header-cell-label{text-overflow:ellipsis}.ag-header-group-cell-label.ag-sticky-label{flex:none;max-width:100%;overflow:visible;position:sticky}:where(.ag-ltr) .ag-header-group-cell-label.ag-sticky-label{left:var(--ag-cell-horizontal-padding)}:where(.ag-rtl) .ag-header-group-cell-label.ag-sticky-label{right:var(--ag-cell-horizontal-padding)}.ag-header-cell-text,.ag-header-group-text{overflow:hidden;text-overflow:ellipsis}.ag-header-cell-text{word-break:break-word}.ag-header-cell-comp-wrapper{width:100%}:where(.ag-header-group-cell) .ag-header-cell-comp-wrapper{display:flex}:where(.ag-header-cell:not(.ag-header-cell-auto-height)) .ag-header-cell-comp-wrapper{align-items:center;display:flex;height:100%}.ag-header-cell-wrap-text .ag-header-cell-comp-wrapper{white-space:normal}.ag-header-cell-comp-wrapper-limited-height>*{overflow:hidden}:where(.ag-right-aligned-header) .ag-header-cell-label{flex-direction:row-reverse}:where(.ag-ltr) :where(.ag-header-cell:not(.ag-right-aligned-header)){.ag-header-label-icon,.ag-header-menu-icon{margin-left:var(--ag-spacing)}}:where(.ag-rtl) :where(.ag-header-cell:not(.ag-right-aligned-header)){.ag-header-label-icon,.ag-header-menu-icon{margin-right:var(--ag-spacing)}}:where(.ag-ltr) :where(.ag-header-cell.ag-right-aligned-header){.ag-header-label-icon,.ag-header-menu-icon{margin-right:var(--ag-spacing)}}:where(.ag-rtl) :where(.ag-header-cell.ag-right-aligned-header){.ag-header-label-icon,.ag-header-menu-icon{margin-left:var(--ag-spacing)}}.ag-header-cell:after,.ag-header-group-cell:where(:not(.ag-header-span-height.ag-header-group-cell-no-group)):after{content:"";height:var(--ag-header-column-border-height);position:absolute;top:calc(50% - var(--ag-header-column-border-height)*.5);z-index:1}:where(.ag-ltr) .ag-header-cell:after,:where(.ag-ltr) .ag-header-group-cell:where(:not(.ag-header-span-height.ag-header-group-cell-no-group)):after{border-right:var(--ag-header-column-border);right:0}:where(.ag-rtl) .ag-header-cell:after,:where(.ag-rtl) .ag-header-group-cell:where(:not(.ag-header-span-height.ag-header-group-cell-no-group)):after{border-left:var(--ag-header-column-border);left:0}.ag-header-highlight-after:after,.ag-header-highlight-before:after{background-color:var(--ag-accent-color);content:"";height:100%;position:absolute;width:1px}:where(.ag-ltr) .ag-header-highlight-before:after{left:0}:where(.ag-rtl) .ag-header-highlight-before:after{right:0}:where(.ag-ltr) .ag-header-highlight-after:after{right:0;:where(.ag-pinned-left-header) &{right:1px}}:where(.ag-rtl) .ag-header-highlight-after:after{left:0;:where(.ag-pinned-left-header) &{left:1px}}.ag-header-cell-resize{align-items:center;cursor:ew-resize;display:flex;height:100%;position:absolute;top:0;width:8px;z-index:2;&:after{background-color:var(--ag-header-column-resize-handle-color);content:"";height:var(--ag-header-column-resize-handle-height);position:absolute;top:calc(50% - var(--ag-header-column-resize-handle-height)*.5);width:var(--ag-header-column-resize-handle-width);z-index:1}}:where(.ag-ltr) .ag-header-cell-resize{right:-3px;&:after{left:calc(50% - var(--ag-header-column-resize-handle-width))}}:where(.ag-rtl) .ag-header-cell-resize{left:-3px;&:after{right:calc(50% - var(--ag-header-column-resize-handle-width))}}:where(.ag-header-cell.ag-header-span-height) .ag-header-cell-resize:after{height:calc(100% - var(--ag-spacing)*4);top:calc(var(--ag-spacing)*2)}.ag-header-group-cell-no-group:where(.ag-header-span-height){display:none}.ag-sort-indicator-container{display:flex;gap:var(--ag-spacing)}.ag-layout-print{&.ag-body{display:block;height:unset}&.ag-root-wrapper{display:inline-block}.ag-body-horizontal-scroll,.ag-body-vertical-scroll{display:none}&.ag-force-vertical-scroll{overflow-y:visible!important}}@media print{.ag-root-wrapper.ag-layout-print{display:table;.ag-body-horizontal-scroll-viewport,.ag-body-viewport,.ag-center-cols-container,.ag-center-cols-viewport,.ag-root,.ag-root-wrapper-body,.ag-virtual-list-viewport{display:block!important;height:auto!important;overflow:hidden!important}.ag-cell,.ag-row{-moz-column-break-inside:avoid;break-inside:avoid}}}ag-grid,ag-grid-angular{display:block}.ag-root-wrapper{border:var(--ag-wrapper-border);border-radius:var(--ag-wrapper-border-radius);display:flex;flex-direction:column;overflow:hidden;position:relative;&.ag-layout-normal{height:100%}}.ag-root-wrapper-body{display:flex;flex-direction:row;&.ag-layout-normal{flex:1 1 auto;height:0;min-height:0}}.ag-root{display:flex;flex-direction:column;position:relative;&.ag-layout-auto-height,&.ag-layout-normal{flex:1 1 auto;overflow:hidden;width:0}&.ag-layout-normal{height:100%}}.ag-virtual-list-item{height:var(--ag-list-item-height);position:absolute;width:100%}.ag-list-item-hovered:after{background-color:var(--ag-accent-color);content:"";height:1px;left:0;position:absolute;right:0}.ag-item-highlight-top:after{top:0}.ag-item-highlight-bottom:after{bottom:0}.ag-drag-handle{color:var(--ag-drag-handle-color);cursor:grab;:where(.ag-icon){color:var(--ag-drag-handle-color)}}.ag-chart-menu-icon,.ag-chart-settings-next,.ag-chart-settings-prev,.ag-column-group-icons,.ag-column-select-header-icon,.ag-filter-toolpanel-expand,.ag-floating-filter-button-button,.ag-group-title-bar-icon,.ag-header-cell-filter-button,.ag-header-cell-menu-button,.ag-header-expand-icon,.ag-panel-title-bar-button,.ag-panel-title-bar-button-icon,.ag-set-filter-group-icons,:where(.ag-group-contracted) .ag-icon,:where(.ag-group-expanded) .ag-icon{background-color:var(--ag-icon-button-background-color);border-radius:var(--ag-icon-button-border-radius);box-shadow:0 0 0 var(--ag-icon-button-background-spread) var(--ag-icon-button-background-color);color:var(--ag-icon-button-color);&:hover{background-color:var(--ag-icon-button-hover-background-color);box-shadow:0 0 0 var(--ag-icon-button-background-spread) var(--ag-icon-button-hover-background-color);color:var(--ag-icon-button-hover-color)}}.ag-filter-active{background-image:linear-gradient(var(--ag-icon-button-active-background-color),var(--ag-icon-button-active-background-color));border-radius:1px;outline:solid var(--ag-icon-button-background-spread) var(--ag-icon-button-active-background-color);position:relative;&:after{background-color:var(--ag-icon-button-active-indicator-color);border-radius:50%;content:"";height:6px;position:absolute;top:-1px;width:6px}:where(.ag-icon-filter){clip-path:path("M8,0C8,4.415 11.585,8 16,8L16,16L0,16L0,0L8,0Z");color:var(--ag-icon-button-active-color)}}:where(.ag-ltr) .ag-filter-active{&:after{right:-1px}}:where(.ag-rtl) .ag-filter-active{&:after{left:-1px}}.ag-menu{background-color:var(--ag-menu-background-color);border:var(--ag-menu-border);border-radius:var(--ag-border-radius);box-shadow:var(--ag-menu-shadow);color:var(--ag-menu-text-color);max-height:100%;overflow-y:auto;position:absolute;-webkit-user-select:none;-moz-user-select:none;user-select:none}`;var Em={wrapperBorder:true,rowBorder:true,headerRowBorder:true,footerRowBorder:{ref:"rowBorder"},columnBorder:{style:"solid",width:1,color:"transparent"},headerColumnBorder:false,headerColumnBorderHeight:"100%",pinnedColumnBorder:true,pinnedRowBorder:true,sidePanelBorder:true,sideBarPanelWidth:250,sideBarBackgroundColor:{ref:"chromeBackgroundColor"},sideButtonBarBackgroundColor:{ref:"sideBarBackgroundColor"},sideButtonBarTopPadding:0,sideButtonSelectedUnderlineWidth:2,sideButtonSelectedUnderlineColor:"transparent",sideButtonSelectedUnderlineTransitionDuration:0,sideButtonBackgroundColor:"transparent",sideButtonTextColor:{ref:"textColor"},sideButtonHoverBackgroundColor:{ref:"sideButtonBackgroundColor"},sideButtonHoverTextColor:{ref:"sideButtonTextColor"},sideButtonSelectedBackgroundColor:Ll,sideButtonSelectedTextColor:{ref:"sideButtonTextColor"},sideButtonBorder:"solid 1px transparent",sideButtonSelectedBorder:true,sideButtonLeftPadding:{ref:"spacing"},sideButtonRightPadding:{ref:"spacing"},sideButtonVerticalPadding:{calc:"spacing * 3"},headerBackgroundColor:{ref:"chromeBackgroundColor"},headerFontFamily:{ref:"fontFamily"},cellFontFamily:{ref:"fontFamily"},headerFontWeight:500,headerFontSize:{ref:"fontSize"},dataFontSize:{ref:"fontSize"},headerTextColor:{ref:"textColor"},headerCellHoverBackgroundColor:"transparent",headerCellMovingBackgroundColor:{ref:"headerCellHoverBackgroundColor"},headerCellBackgroundTransitionDuration:"0.2s",cellTextColor:{ref:"textColor"},rangeSelectionBorderStyle:"solid",rangeSelectionBorderColor:Nl,rangeSelectionBackgroundColor:Il(.2),rangeSelectionChartBackgroundColor:"#0058FF1A",rangeSelectionChartCategoryBackgroundColor:"#00FF841A",rangeSelectionHighlightColor:Il(.5),rangeHeaderHighlightColor:Ol(.08),rowNumbersSelectedColor:Il(.5),rowHoverColor:Il(.08),columnHoverColor:Il(.05),selectedRowBackgroundColor:Il(.12),modalOverlayBackgroundColor:{ref:"backgroundColor",mix:.66},dataBackgroundColor:Ll,oddRowBackgroundColor:{ref:"dataBackgroundColor"},wrapperBorderRadius:8,cellHorizontalPadding:{calc:"spacing * 2 * cellHorizontalPaddingScale"},cellWidgetSpacing:{calc:"spacing * 1.5"},cellHorizontalPaddingScale:1,rowGroupIndentSize:{calc:"cellWidgetSpacing + iconSize"},valueChangeDeltaUpColor:"#43a047",valueChangeDeltaDownColor:"#e53935",valueChangeValueHighlightBackgroundColor:"#16a08580",rowHeight:{calc:"max(iconSize, dataFontSize) + spacing * 3.25 * rowVerticalPaddingScale"},rowVerticalPaddingScale:1,headerHeight:{calc:"max(iconSize, dataFontSize) + spacing * 4 * headerVerticalPaddingScale"},headerVerticalPaddingScale:1,paginationPanelHeight:{ref:"rowHeight",calc:"max(rowHeight, 22px)"},dragHandleColor:zl(.7),headerColumnResizeHandleHeight:"30%",headerColumnResizeHandleWidth:2,headerColumnResizeHandleColor:{ref:"borderColor"},widgetContainerHorizontalPadding:{calc:"spacing * 1.5"},widgetContainerVerticalPadding:{calc:"spacing * 1.5"},widgetHorizontalSpacing:{calc:"spacing * 1.5"},widgetVerticalSpacing:{ref:"spacing"},iconButtonColor:{ref:"iconColor"},iconButtonBackgroundColor:"transparent",iconButtonBackgroundSpread:4,iconButtonBorderRadius:1,iconButtonHoverColor:{ref:"iconButtonColor"},iconButtonHoverBackgroundColor:zl(.1),iconButtonActiveColor:Nl,iconButtonActiveBackgroundColor:Il(.28),iconButtonActiveIndicatorColor:Nl,menuBorder:{color:zl(.2)},menuBackgroundColor:Hl(.03),menuTextColor:Hl(.95),menuShadow:{ref:"popupShadow"},menuSeparatorColor:{ref:"borderColor"},setFilterIndentSize:{ref:"iconSize"},chartMenuPanelWidth:260,chartMenuLabelColor:zl(.8),dialogShadow:{ref:"popupShadow"},cellEditingBorder:{color:Nl},cellEditingShadow:{ref:"cardShadow"},fullRowEditInvalidBackgroundColor:{ref:"invalidColor",onto:"backgroundColor",mix:.25},dialogBorder:{color:zl(.2)},panelBackgroundColor:Ll,panelTitleBarHeight:{ref:"headerHeight"},panelTitleBarBackgroundColor:{ref:"headerBackgroundColor"},panelTitleBarIconColor:{ref:"headerTextColor"},panelTitleBarTextColor:{ref:"headerTextColor"},panelTitleBarFontWeight:{ref:"headerFontWeight"},panelTitleBarBorder:true,columnSelectIndentSize:{ref:"iconSize"},toolPanelSeparatorBorder:true,columnDropCellBackgroundColor:zl(.07),columnDropCellTextColor:{ref:"textColor"},columnDropCellDragHandleColor:{ref:"textColor"},columnDropCellBorder:{color:zl(.13)},selectCellBackgroundColor:zl(.07),selectCellBorder:{color:zl(.13)},advancedFilterBuilderButtonBarBorder:true,advancedFilterBuilderIndentSize:{calc:"spacing * 2 + iconSize"},advancedFilterBuilderJoinPillColor:"#f08e8d",advancedFilterBuilderColumnPillColor:"#a6e194",advancedFilterBuilderOptionPillColor:"#f3c08b",advancedFilterBuilderValuePillColor:"#85c0e4",filterPanelApplyButtonColor:Ll,filterPanelApplyButtonBackgroundColor:Nl,filterPanelCardSubtleColor:{ref:"textColor",mix:.7},filterPanelCardSubtleHoverColor:{ref:"textColor"},findMatchColor:Vl,findMatchBackgroundColor:"#ffff00",findActiveMatchColor:Vl,findActiveMatchBackgroundColor:"#ffa500",filterToolPanelGroupIndent:{ref:"spacing"},rowLoadingSkeletonEffectColor:zl(.15),statusBarLabelColor:Vl,statusBarLabelFontWeight:500,statusBarValueColor:Vl,statusBarValueFontWeight:500,pinnedSourceRowTextColor:{ref:"textColor"},pinnedSourceRowBackgroundColor:{ref:"dataBackgroundColor"},pinnedSourceRowFontWeight:600,pinnedRowFontWeight:600,pinnedRowBackgroundColor:{ref:"dataBackgroundColor"},pinnedRowTextColor:{ref:"textColor"}};var Fm=`.ag-cell-batch-edit{background-color:var(--ag-cell-batch-edit-background-color);color:var(--ag-cell-batch-edit-text-color);display:inherit}.ag-row-batch-edit{background-color:var(--ag-row-batch-edit-background-color);color:var(--ag-row-batch-edit-text-color)}`;var Mm={cellBatchEditBackgroundColor:"rgba(220 181 139 / 16%)",cellBatchEditTextColor:"#422f00",rowBatchEditBackgroundColor:{ref:"cellBatchEditBackgroundColor"},rowBatchEditTextColor:{ref:"cellBatchEditTextColor"}};var Pm={...Mm,cellBatchEditTextColor:"#f3d0b3"};var Dm=()=>Rl({feature:"batchEditStyle",params:Mm,css:Fm});var Tm=Dm();var Bm=`:where(.ag-button){background:none;border:none;color:inherit;cursor:pointer;font-family:inherit;font-size:inherit;font-weight:inherit;letter-spacing:inherit;line-height:inherit;margin:0;padding:0;text-indent:inherit;text-shadow:inherit;text-transform:inherit;word-spacing:inherit;&:disabled{cursor:default}&:focus-visible{box-shadow:var(--ag-focus-shadow);outline:none}}.ag-standard-button{-webkit-appearance:none;-moz-appearance:none;appearance:none;background-color:var(--ag-button-background-color);border:var(--ag-button-border);border-radius:var(--ag-button-border-radius);color:var(--ag-button-text-color);cursor:pointer;font-weight:var(--ag-button-font-weight);padding:var(--ag-button-vertical-padding) var(--ag-button-horizontal-padding);&:hover{background-color:var(--ag-button-hover-background-color);border:var(--ag-button-hover-border);color:var(--ag-button-hover-text-color)}&:active{background-color:var(--ag-button-active-background-color);border:var(--ag-button-active-border);color:var(--ag-button-active-text-color)}&:disabled{background-color:var(--ag-button-disabled-background-color);border:var(--ag-button-disabled-border);color:var(--ag-button-disabled-text-color)}}`;var Am={buttonTextColor:"inherit",buttonFontWeight:"normal",buttonBackgroundColor:"transparent",buttonBorder:false,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"}};var Im=()=>Rl({feature:"buttonStyle",params:Am,css:Bm});var zm=Im();var Hm=()=>Rl({feature:"buttonStyle",params:{...Am,buttonBackgroundColor:Ll,buttonBorder:true,buttonHoverBackgroundColor:{ref:"rowHoverColor"},buttonActiveBorder:{color:Nl}},css:Bm});var Om=Hm();var Lm=()=>Rl({feature:"buttonStyle",params:{...Am,buttonBackgroundColor:Ll,buttonBorder:{color:Nl},buttonFontWeight:600,buttonTextColor:Nl,buttonHoverBackgroundColor:{ref:"rowHoverColor"},buttonActiveBackgroundColor:Nl,buttonActiveTextColor:Ll},css:Bm});var Vm=Lm();var Nm=()=>Rl({feature:"buttonStyle",params:{...Am,buttonBorder:{color:Vl,width:2,style:"outset"},buttonActiveBorder:{color:Vl,width:2,style:"inset"},buttonBackgroundColor:Hl(.07),buttonHoverBackgroundColor:Ll,buttonVerticalPadding:{calc:"spacing * 0.5"}},css:Bm});var Gm=Nm();var $m=`.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}`;var Wm=`.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))}`;var Um=()=>Rl({feature:"columnDropStyle",css:$m});var jm=Um();var qm=()=>Rl({feature:"columnDropStyle",css:Wm});var Km=qm();var _m={warn:(...t)=>{Ci(t[0],t[1])},error:(...t)=>{bi(t[0],t[1])},preInitErr:(...t)=>{yi(t[0],t[2],t[1])}};var Zm=()=>la(_m).withParams(Em).withPart(Om).withPart(jm).withPart(Tm);var Qm=`.ag-checkbox-input-wrapper,.ag-radio-button-input-wrapper{background-color:var(--ag-checkbox-unchecked-background-color);border:solid var(--ag-checkbox-border-width) var(--ag-checkbox-unchecked-border-color);flex:none;height:var(--ag-icon-size);position:relative;width:var(--ag-icon-size);:where(input){-webkit-appearance:none;-moz-appearance:none;appearance:none;cursor:pointer;display:block;height:var(--ag-icon-size);margin:0;opacity:0;width:var(--ag-icon-size)}&:after{content:"";display:block;inset:0;-webkit-mask-position:center;mask-position:center;-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat;pointer-events:none;position:absolute}&:where(.ag-checked){background-color:var(--ag-checkbox-checked-background-color);border-color:var(--ag-checkbox-checked-border-color);&:after{background-color:var(--ag-checkbox-checked-shape-color)}}&:where(:focus-within,:active){box-shadow:var(--ag-focus-shadow)}&:where(.ag-disabled){filter:grayscale();opacity:.5}}.ag-checkbox-input-wrapper{border-radius:var(--ag-checkbox-border-radius);&:where(.ag-checked):after{-webkit-mask-image:var(--ag-checkbox-checked-shape-image);mask-image:var(--ag-checkbox-checked-shape-image)}&:where(.ag-indeterminate){background-color:var(--ag-checkbox-indeterminate-background-color);border-color:var(--ag-checkbox-indeterminate-border-color);&:after{background-color:var(--ag-checkbox-indeterminate-shape-color);-webkit-mask-image:var(--ag-checkbox-indeterminate-shape-image);mask-image:var(--ag-checkbox-indeterminate-shape-image)}}}.ag-cell-editing-error .ag-checkbox-input-wrapper:focus-within{box-shadow:var(--ag-focus-error-shadow)}.ag-radio-button-input-wrapper{border-radius:100%;&:where(.ag-checked):after{-webkit-mask-image:var(--ag-radio-checked-shape-image);mask-image:var(--ag-radio-checked-shape-image)}}`;var Ym=()=>Rl({feature:"checkboxStyle",params:{checkboxBorderWidth:1,checkboxBorderRadius:{ref:"borderRadius"},checkboxUncheckedBackgroundColor:Ll,checkboxUncheckedBorderColor:Hl(.3),checkboxCheckedBackgroundColor:Nl,checkboxCheckedBorderColor:{ref:"checkboxCheckedBackgroundColor"},checkboxCheckedShapeImage:{svg:''},checkboxCheckedShapeColor:Ll,checkboxIndeterminateBackgroundColor:Hl(.3),checkboxIndeterminateBorderColor:{ref:"checkboxIndeterminateBackgroundColor"},checkboxIndeterminateShapeImage:{svg:''},checkboxIndeterminateShapeColor:Ll,radioCheckedShapeImage:{svg:''}},css:Qm});var Jm=Ym();var Xm=()=>Rl({feature:"colorScheme",params:Gl});var tv=Xm();var ev=()=>Rl({feature:"colorScheme",params:{...Gl,foregroundColor:"#000000de",borderColor:"#60300026",chromeBackgroundColor:"#60300005"}});var iv=ev();var sv=()=>Rl({feature:"colorScheme",params:{...Gl,foregroundColor:"#000",chromeBackgroundColor:"#f3f8f8"}});var ov=sv();var nv=()=>({...Gl,...Pm,backgroundColor:"hsl(217, 0%, 17%)",foregroundColor:"#FFF",chromeBackgroundColor:Hl(.05),rowHoverColor:Il(.15),selectedRowBackgroundColor:Il(.2),menuBackgroundColor:Hl(.1),browserColorScheme:"dark",popupShadow:"0 0px 20px #000A",cardShadow:"0 1px 4px 1px #000A",advancedFilterBuilderJoinPillColor:"#7a3a37",advancedFilterBuilderColumnPillColor:"#355f2d",advancedFilterBuilderOptionPillColor:"#5a3168",advancedFilterBuilderValuePillColor:"#374c86",filterPanelApplyButtonColor:Vl,findMatchColor:Ll,findActiveMatchColor:Ll,checkboxUncheckedBorderColor:Hl(.4),toggleButtonOffBackgroundColor:Hl(.4),rowBatchEditBackgroundColor:Hl(.1)});var rv=()=>Rl({feature:"colorScheme",params:nv()});var lv=rv();var av=()=>Rl({feature:"colorScheme",params:{backgroundColor:"hsl(29, 10%, 17%)",foregroundColor:"#FFF",browserColorScheme:"dark"}});var hv=()=>({...nv(),backgroundColor:"#1f2836"});var cv=av();var uv=()=>Rl({feature:"colorScheme",params:hv()});var dv=uv();var fv=()=>Rl({feature:"colorScheme",params:Gl,modeParams:{light:Gl,dark:nv(),"dark-blue":hv()}});var gv=fv();var pv=`.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-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,.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-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-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-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")}`;var mv=Rl({feature:"iconSet",css:pv});var vv=`.ag-icon-aggregation:before{mask-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' xml:space='preserve' style='fill-rule:evenodd;clip-rule:evenodd;stroke-linejoin:round;stroke-miterlimit:2' viewBox='0 0 32 32'%3E%3Cpath d='M24 6H8v2l8 8-8 8v2h16v-2H11l8-8-8-8h13z' style='fill-rule:nonzero'/%3E%3C/svg%3E")}.ag-icon-arrows:before{mask-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' xml:space='preserve' style='fill-rule:evenodd;clip-rule:evenodd;stroke-linejoin:round;stroke-miterlimit:2' viewBox='0 0 32 32'%3E%3Cpath d='M7.515 11.171 2.687 16l4.828 4.829-1.414 1.414L-.142 16l6.243-6.243zm16.97 0 1.414-1.414L32.142 16l-6.243 6.243-1.414-1.414L29.313 16zM16.028 13.2l2.829 2.828-2.829 2.829-2.828-2.829zm-4.857 11.285L16 29.313l4.829-4.828 1.414 1.414L16 32.142l-6.243-6.243zm0-16.97L9.757 6.101 16-.142l6.243 6.243-1.414 1.414L16 2.687z' style='fill-rule:nonzero'/%3E%3C/svg%3E")}.ag-icon-asc:before{mask-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' xml:space='preserve' style='fill-rule:evenodd;clip-rule:evenodd;stroke-linejoin:round;stroke-miterlimit:2' viewBox='0 0 32 32'%3E%3Cpath d='m5.333 16 1.88 1.88 7.453-7.44v16.227h2.667V10.44l7.44 7.453L26.666 16 15.999 5.333 5.332 16z' style='fill-rule:nonzero'/%3E%3C/svg%3E")}.ag-icon-cancel:before{mask-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' xml:space='preserve' style='fill-rule:evenodd;clip-rule:evenodd;stroke-linejoin:round;stroke-miterlimit:2' viewBox='0 0 32 32'%3E%3Cpath d='M16 2.667A13.32 13.32 0 0 0 2.667 16c0 7.373 5.96 13.333 13.333 13.333S29.333 23.373 29.333 16 23.373 2.667 16 2.667m6.667 18.12-1.88 1.88L16 17.88l-4.787 4.787-1.88-1.88L14.12 16l-4.787-4.787 1.88-1.88L16 14.12l4.787-4.787 1.88 1.88L17.88 16z' style='fill-rule:nonzero'/%3E%3C/svg%3E")}.ag-icon-chart:before{mask-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Ctitle%3Echart%3C/title%3E%3Cg fill='%23000' fill-rule='nonzero'%3E%3Cpath d='M14 7h4v18h-4zM8 17h4v8H8zM20 13h4v12h-4z'/%3E%3C/g%3E%3C/svg%3E")}.ag-icon-color-picker:before{mask-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' xml:space='preserve' style='fill-rule:evenodd;clip-rule:evenodd;stroke-linejoin:round;stroke-miterlimit:2' viewBox='0 0 32 32'%3E%3Cpath d='M23.907 17.587 10.574 4.254l-1.88 1.88 3.173 3.173-8.28 8.28 10.16 10.16zm-16.547 0 6.387-6.387 6.387 6.387zm18.387 2s-2.667 2.893-2.667 4.667c0 1.467 1.2 2.667 2.667 2.667s2.667-1.2 2.667-2.667c0-1.773-2.667-4.667-2.667-4.667' style='fill-rule:nonzero'/%3E%3C/svg%3E")}.ag-icon-columns:before{mask-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' xml:space='preserve' style='fill-rule:evenodd;clip-rule:evenodd;stroke-linejoin:round;stroke-miterlimit:2' viewBox='0 0 32 32'%3E%3Cpath d='M26 25H6V7h20zM12 11H8v12h4zm6 0h-4v12h4zm6 12V11h-4v12z' style='fill-rule:nonzero' transform='translate(0 -1)'/%3E%3C/svg%3E")}.ag-icon-contracted:before{mask-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' xml:space='preserve' style='fill-rule:evenodd;clip-rule:evenodd;stroke-linejoin:round;stroke-miterlimit:2' viewBox='0 0 32 32'%3E%3Cpath d='m12 6 10 10-10 10-2-2 8-8-8-8z'/%3E%3C/svg%3E")}.ag-icon-copy:before{mask-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' xml:space='preserve' style='fill-rule:evenodd;clip-rule:evenodd;stroke-linejoin:round;stroke-miterlimit:2' viewBox='0 0 32 32'%3E%3Cpath d='M22 1.333H6A2.675 2.675 0 0 0 3.333 4v18.667H6V4h16zm4 5.334H11.333a2.675 2.675 0 0 0-2.667 2.667v18.667c0 1.467 1.2 2.667 2.667 2.667H26c1.467 0 2.667-1.2 2.667-2.667V9.334c0-1.467-1.2-2.667-2.667-2.667M26 28H11.333V9.333H26z' style='fill-rule:nonzero'/%3E%3C/svg%3E")}.ag-icon-cross:before{mask-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' xml:space='preserve' style='fill-rule:evenodd;clip-rule:evenodd;stroke-linejoin:round;stroke-miterlimit:2' viewBox='0 0 32 32'%3E%3Cpath d='M15.984 13.894 27.05 2.828l2.122 2.122-11.066 11.066 11.066 11.066-2.122 2.12-11.066-11.066L4.918 29.202l-2.12-2.12 11.066-11.066L2.798 4.95l2.12-2.122z'/%3E%3C/svg%3E")}.ag-icon-csv:before{mask-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' xml:space='preserve' style='fill-rule:evenodd;clip-rule:evenodd;stroke-linejoin:round;stroke-miterlimit:2' viewBox='0 0 32 32'%3E%3Cpath d='M384 131.9c-7.753-8.433-110.425-128.473-114.9-133L48-.1C21.5 0 0 21.5 0 48v416c0 26.5 21.5 48 48 48h288c26.5 0 48-21.5 48-48zm-35.9 2.1H257V27.9zM30 479V27h200l1 105c0 13.3-1.3 29 12 29h111l1 318z' style='fill-rule:nonzero' transform='translate(3.934 -.054)scale(.06285)'/%3E%3Cpath d='M.688-.226a.2.2 0 0 1-.017.074.28.28 0 0 1-.145.14.412.412 0 0 1-.234.013.28.28 0 0 1-.202-.168.468.468 0 0 1-.04-.19q0-.086.025-.155a.319.319 0 0 1 .182-.191.4.4 0 0 1 .134-.025q.087 0 .155.035a.3.3 0 0 1 .104.085.17.17 0 0 1 .036.097.06.06 0 0 1-.018.044.06.06 0 0 1-.042.019.06.06 0 0 1-.042-.013.2.2 0 0 1-.031-.046.2.2 0 0 0-.066-.079.16.16 0 0 0-.095-.027.17.17 0 0 0-.142.068.3.3 0 0 0-.053.193.4.4 0 0 0 .023.139.2.2 0 0 0 .067.083.2.2 0 0 0 .1.027q.063 0 .106-.031a.2.2 0 0 0 .065-.091.2.2 0 0 1 .023-.046q.014-.018.044-.018a.06.06 0 0 1 .044.018.06.06 0 0 1 .019.045' style='fill-rule:nonzero' transform='matrix(8.39799 0 0 12.455 7.122 25.977)'/%3E%3Cpath d='M.622-.215a.2.2 0 0 1-.033.117.23.23 0 0 1-.098.081.4.4 0 0 1-.153.029.34.34 0 0 1-.175-.04.23.23 0 0 1-.079-.077.17.17 0 0 1-.031-.093q0-.027.019-.045a.06.06 0 0 1 .046-.019.06.06 0 0 1 .039.014.1.1 0 0 1 .027.044.3.3 0 0 0 .03.057q.015.023.044.038.03.015.076.015.065 0 .105-.03a.09.09 0 0 0 .04-.075.08.08 0 0 0-.022-.058.14.14 0 0 0-.056-.034 1 1 0 0 0-.092-.025.7.7 0 0 1-.129-.042.2.2 0 0 1-.083-.066.17.17 0 0 1-.03-.104q0-.058.032-.105a.2.2 0 0 1 .093-.07.4.4 0 0 1 .144-.025q.066 0 .114.016a.3.3 0 0 1 .08.044.2.2 0 0 1 .046.057q.015.03.015.058a.07.07 0 0 1-.018.046.06.06 0 0 1-.046.021q-.025 0-.038-.012a.2.2 0 0 1-.028-.041.2.2 0 0 0-.047-.063Q.387-.625.326-.625a.15.15 0 0 0-.09.025q-.035.024-.035.059 0 .021.012.037a.1.1 0 0 0 .032.027.4.4 0 0 0 .111.036q.06.015.11.031.048.018.083.042a.2.2 0 0 1 .054.062.2.2 0 0 1 .019.091' style='fill-rule:nonzero' transform='matrix(8.39799 0 0 12.455 13.339 25.977)'/%3E%3Cpath d='m.184-.633.162.48.163-.483q.013-.038.019-.053a.062.062 0 0 1 .061-.039q.018 0 .034.009a.1.1 0 0 1 .025.025q.009.015.009.031L.654-.64l-.007.025-.009.024-.173.468-.019.051a.2.2 0 0 1-.021.042.1.1 0 0 1-.033.03.1.1 0 0 1-.049.012.1.1 0 0 1-.05-.011A.1.1 0 0 1 .26-.03a.2.2 0 0 1-.021-.042L.22-.123.05-.587.041-.612.033-.638.03-.662q0-.025.02-.046a.07.07 0 0 1 .05-.02q.037 0 .053.023.015.023.031.072' style='fill-rule:nonzero' transform='matrix(8.39799 0 0 12.455 18.94 25.977)'/%3E%3C/svg%3E")}.ag-icon-cut:before{mask-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' xml:space='preserve' style='fill-rule:evenodd;clip-rule:evenodd;stroke-linejoin:round;stroke-miterlimit:2' viewBox='0 0 32 32'%3E%3Cpath d='M13.775 15.198 3.835 2.945a1.501 1.501 0 0 1 2.33-1.89l14.997 18.488A6.003 6.003 0 0 1 29.657 25c0 3.311-2.688 6-6 6s-6-2.689-6-6c0-1.335.437-2.569 1.176-3.566l-3.127-3.855-3.001 3.7A5.97 5.97 0 0 1 14 25c0 3.311-2.689 6-6 6s-6-2.689-6-6a6.003 6.003 0 0 1 8.315-5.536zm9.882 6.702a3.1 3.1 0 0 0-3.1 3.1c0 1.711 1.389 3.1 3.1 3.1s3.1-1.389 3.1-3.1-1.389-3.1-3.1-3.1M8 21.95a3.05 3.05 0 1 0 .001 6.101A3.05 3.05 0 0 0 8 21.95m9.63-11.505 1.932 2.381 8.015-9.881a1.5 1.5 0 0 0-2.329-1.89z' style='fill-rule:nonzero'/%3E%3C/svg%3E")}.ag-icon-desc:before,.ag-icon-down:before{mask-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' xml:space='preserve' style='fill-rule:evenodd;clip-rule:evenodd;stroke-linejoin:round;stroke-miterlimit:2' viewBox='0 0 32 32'%3E%3Cpath d='m26.667 16-1.88-1.88-7.453 7.44V5.333h-2.667V21.56l-7.44-7.453L5.334 16l10.667 10.667z' style='fill-rule:nonzero'/%3E%3C/svg%3E")}.ag-icon-excel:before{mask-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' xml:space='preserve' style='fill-rule:evenodd;clip-rule:evenodd;stroke-linejoin:round;stroke-miterlimit:2' viewBox='0 0 32 32'%3E%3Cpath d='M384 131.9c-7.753-8.433-110.425-128.473-114.9-133L48-.1C21.5 0 0 21.5 0 48v416c0 26.5 21.5 48 48 48h288c26.5 0 48-21.5 48-48zm-35.9 2.1H257V27.9zM30 479V27h200l1 105c0 13.3-1.3 29 12 29h111l1 318z' style='fill-rule:nonzero' transform='translate(3.934 -.054)scale(.06285)'/%3E%3Cpath d='m.052-.139.16-.234-.135-.208a.4.4 0 0 1-.028-.052.1.1 0 0 1-.01-.042.05.05 0 0 1 .018-.037.07.07 0 0 1 .045-.016q.03 0 .047.018a1 1 0 0 1 .047.066l.107.174.115-.174.024-.038.019-.026.021-.015a.1.1 0 0 1 .027-.005.06.06 0 0 1 .044.016.05.05 0 0 1 .018.039q0 .033-.038.089l-.141.211.152.234a.3.3 0 0 1 .03.051.1.1 0 0 1 .009.038.1.1 0 0 1-.008.031.1.1 0 0 1-.024.023.1.1 0 0 1-.034.008.1.1 0 0 1-.035-.008.1.1 0 0 1-.023-.022L.427-.067.301-.265l-.134.204-.022.034-.016.019a.1.1 0 0 1-.022.015.1.1 0 0 1-.03.005.06.06 0 0 1-.044-.016.06.06 0 0 1-.017-.047q0-.036.036-.088' style='fill-rule:nonzero' transform='matrix(17.82892 0 0 16.50777 10.371 25.928)'/%3E%3C/svg%3E")}.ag-icon-expanded:before{mask-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' xml:space='preserve' style='fill-rule:evenodd;clip-rule:evenodd;stroke-linejoin:round;stroke-miterlimit:2' viewBox='0 0 32 32'%3E%3Cpath d='M20 26 10 16 20 6l2 2-8 8 8 8z'/%3E%3C/svg%3E")}.ag-icon-eye-slash:before{mask-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Ctitle%3Eeye-slash%3C/title%3E%3Cpath fill='%23000' fill-rule='nonzero' d='M8.95 10.364 7 8.414 8.414 7l2.32 2.32A13.2 13.2 0 0 1 16.5 8c5.608 0 10.542 3.515 12.381 8.667L29 17l-.119.333a13 13 0 0 1-4.255 5.879l1.466 1.466-1.414 1.414-1.754-1.753A13.2 13.2 0 0 1 16.5 26c-5.608 0-10.542-3.515-12.381-8.667L4 17l.119-.333a13 13 0 0 1 4.83-6.303m1.445 1.445A11.02 11.02 0 0 0 6.148 17c1.646 4.177 5.728 7 10.352 7 1.76 0 3.441-.409 4.94-1.146l-1.878-1.878A5.06 5.06 0 0 1 16.5 22c-2.789 0-5.05-2.239-5.05-5 0-1.158.398-2.223 1.065-3.07zm1.855-.974 1.794 1.795A5.07 5.07 0 0 1 16.5 12c2.789 0 5.05 2.239 5.05 5 0 .9-.24 1.745-.661 2.474l2.305 2.306A11 11 0 0 0 26.852 17c-1.646-4.177-5.728-7-10.352-7-1.495 0-2.933.295-4.25.835'/%3E%3C/svg%3E")}.ag-icon-eye:before{mask-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' xml:space='preserve' style='fill-rule:evenodd;clip-rule:evenodd;stroke-linejoin:round;stroke-miterlimit:2' viewBox='0 0 32 32'%3E%3Cpath d='M16.5 23c4.624 0 8.706-2.823 10.352-7-1.646-4.177-5.728-7-10.352-7s-8.706 2.823-10.352 7c1.646 4.177 5.728 7 10.352 7M4.119 15.667C5.958 10.515 10.892 7 16.5 7s10.542 3.515 12.381 8.667L29 16l-.119.333C27.042 21.485 22.108 25 16.5 25S5.958 21.485 4.119 16.333L4 16zM16.5 21c2.789 0 5.049-2.239 5.049-5s-2.26-5-5.049-5-5.049 2.239-5.049 5 2.26 5 5.049 5' style='fill-rule:nonzero'/%3E%3C/svg%3E")}.ag-icon-filter:before{mask-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' xml:space='preserve' style='fill-rule:evenodd;clip-rule:evenodd;stroke-linejoin:round;stroke-miterlimit:2' viewBox='0 0 32 32'%3E%3Cpath d='m28 8-8 8v5l-6 6V16L6 8V6h22zM9 8l7 7v7l2-2v-5l7-7z' style='fill-rule:nonzero'/%3E%3C/svg%3E")}.ag-icon-first:before{mask-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' xml:space='preserve' style='fill-rule:evenodd;clip-rule:evenodd;stroke-linejoin:round;stroke-miterlimit:2' viewBox='0 0 32 32'%3E%3Cpath d='M24.273 22.12 18.153 16l6.12-6.12L22.393 8l-8 8 8 8zM7.727 8h2.667v16H7.727z' style='fill-rule:nonzero'/%3E%3C/svg%3E")}.ag-icon-group:before{mask-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' xml:space='preserve' style='fill-rule:evenodd;clip-rule:evenodd;stroke-linejoin:round;stroke-miterlimit:2' viewBox='0 0 32 32'%3E%3Cpath d='M14 7v1H9V7zm0-3v1H5.001V4zm-7 7H5v-1h2zm0-3H5V7h2zM3 5H1V4h2zm11 5v1H9v-1zm-7 4H5v-1h2zm7-1v1H9v-1z' style='fill-rule:nonzero' transform='matrix(2 0 0 2 0 -2)'/%3E%3C/svg%3E")}.ag-icon-last:before{mask-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' xml:space='preserve' style='fill-rule:evenodd;clip-rule:evenodd;stroke-linejoin:round;stroke-miterlimit:2' viewBox='0 0 32 32'%3E%3Cpath d='m7.727 9.88 6.12 6.12-6.12 6.12L9.607 24l8-8-8-8zM21.607 8h2.667v16h-2.667z' style='fill-rule:nonzero'/%3E%3C/svg%3E")}.ag-icon-left:before{mask-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' xml:space='preserve' style='fill-rule:evenodd;clip-rule:evenodd;stroke-linejoin:round;stroke-miterlimit:2' viewBox='0 0 32 32'%3E%3Cpath d='M26.667 14.667H10.44l7.453-7.453L16 5.334 5.333 16.001 16 26.668l1.88-1.88-7.44-7.453h16.227z' style='fill-rule:nonzero'/%3E%3C/svg%3E")}.ag-icon-linked:before{mask-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' xml:space='preserve' style='fill-rule:evenodd;clip-rule:evenodd;stroke-linejoin:round;stroke-miterlimit:2' viewBox='0 0 32 32'%3E%3Cpath d='M5.2 16a4.136 4.136 0 0 1 4.133-4.133h5.333V9.334H9.333a6.67 6.67 0 0 0-6.667 6.667 6.67 6.67 0 0 0 6.667 6.667h5.333v-2.533H9.333A4.136 4.136 0 0 1 5.2 16.002zm5.467 1.333h10.667v-2.667H10.667zm12-8h-5.333v2.533h5.333a4.136 4.136 0 0 1 4.133 4.133 4.136 4.136 0 0 1-4.133 4.133h-5.333v2.533h5.333a6.67 6.67 0 0 0 6.667-6.667 6.67 6.67 0 0 0-6.667-6.667z' style='fill-rule:nonzero'/%3E%3C/svg%3E")}.ag-icon-loading:before{mask-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' xml:space='preserve' style='fill-rule:evenodd;clip-rule:evenodd;stroke-linejoin:round;stroke-miterlimit:2' viewBox='0 0 32 32'%3E%3Cpath d='M17 29h-2v-8h2zm-3.586-9L7 26.414 5.586 25 12 18.586zm13 5L25 26.414 18.586 20 20 18.586zM29 17h-8v-2h8zm-18 0H3v-2h8zm2.414-5L12 13.414 5.586 7 7 5.586zm13-5L20 13.414 18.586 12 25 5.586zM17 11h-2V3h2z' style='fill-rule:nonzero' transform='translate(-3.692 -3.692)scale(1.23077)'/%3E%3C/svg%3E")}.ag-icon-maximize:before{mask-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' xml:space='preserve' style='fill-rule:evenodd;clip-rule:evenodd;stroke-linejoin:round;stroke-miterlimit:2' viewBox='0 0 32 32'%3E%3Cpath d='M14 30H2V18h2.828v7.05l8.254-8.252 2.12 2.12-8.252 8.254H14zm4-28h12v12h-2.828V6.95l-8.254 8.252-2.12-2.12 8.252-8.254H18z'/%3E%3C/svg%3E")}.ag-icon-menu:before{mask-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' xml:space='preserve' style='fill-rule:evenodd;clip-rule:evenodd;stroke-linejoin:round;stroke-miterlimit:2' viewBox='0 0 32 32'%3E%3Cpath d='M20 13H0v-2h20zm0-6H0V5h20zm0-6H0v-2h20z' style='fill-rule:nonzero' transform='translate(6 9)'/%3E%3C/svg%3E")}.ag-icon-menu-alt:before{mask-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='32' height='32' fill='none' viewBox='0 0 32 32'%3E%3Cpath fill='%23000' d='M16 19a3 3 0 1 0 0-6 3 3 0 0 0 0 6M16 11a3 3 0 1 0 0-6 3 3 0 0 0 0 6M16 27a3 3 0 1 0 0-6 3 3 0 0 0 0 6'/%3E%3C/svg%3E")}.ag-icon-minimize:before{mask-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' xml:space='preserve' style='fill-rule:evenodd;clip-rule:evenodd;stroke-linejoin:round;stroke-miterlimit:2' viewBox='0 0 32 32'%3E%3Cpath d='M2 18h12v12h-2.828v-7.05l-8.254 8.252-2.12-2.12 8.252-8.254H2zm28-4H18V2h2.828v7.05L29.082.798l2.12 2.12-8.252 8.254H30z'/%3E%3C/svg%3E")}.ag-icon-minus:before{mask-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' xml:space='preserve' style='fill-rule:evenodd;clip-rule:evenodd;stroke-linejoin:round;stroke-miterlimit:2' viewBox='0 0 32 32'%3E%3Cpath d='M6.572 6.572a13.32 13.32 0 0 0 0 18.856 13.32 13.32 0 0 0 18.856 0 13.32 13.32 0 0 0 0-18.856 13.32 13.32 0 0 0-18.856 0m17.527 8.099v2.658H7.901v-2.658z' style='fill-rule:nonzero'/%3E%3C/svg%3E")}.ag-icon-next:before{mask-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' xml:space='preserve' style='fill-rule:evenodd;clip-rule:evenodd;stroke-linejoin:round;stroke-miterlimit:2' viewBox='0 0 32 32'%3E%3Cpath d='M10.94 6 9.06 7.88 17.167 16 9.06 24.12 10.94 26l10-10z' style='fill-rule:nonzero' transform='translate(1)'/%3E%3C/svg%3E")}.ag-icon-none:before{mask-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Ctitle%3Enone%3C/title%3E%3Cg fill='%23000' fill-rule='nonzero'%3E%3Cpath d='M23.708 14.645 16 6.939l-7.708 7.706 1.416 1.416L16 9.767l6.292 6.294zM23.708 20.355 16 28.061l-7.708-7.706 1.416-1.416L16 25.233l6.292-6.294z'/%3E%3C/g%3E%3C/svg%3E")}.ag-icon-not-allowed:before{mask-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' xml:space='preserve' style='fill-rule:evenodd;clip-rule:evenodd;stroke-linejoin:round;stroke-miterlimit:2' viewBox='0 0 32 32'%3E%3Cpath d='M16 2.667C8.64 2.667 2.667 8.64 2.667 16S8.64 29.333 16 29.333 29.333 23.36 29.333 16 23.36 2.667 16 2.667M5.333 16c0-5.893 4.773-10.667 10.667-10.667 2.467 0 4.733.84 6.533 2.253L7.586 22.533A10.54 10.54 0 0 1 5.333 16M16 26.667c-2.467 0-4.733-.84-6.533-2.253L24.414 9.467A10.54 10.54 0 0 1 26.667 16c0 5.893-4.773 10.667-10.667 10.667' style='fill-rule:nonzero'/%3E%3C/svg%3E")}.ag-icon-paste:before{mask-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' xml:space='preserve' style='fill-rule:evenodd;clip-rule:evenodd;stroke-linejoin:round;stroke-miterlimit:2' viewBox='0 0 32 32'%3E%3Cpath d='M25.334 4H19.76C19.2 2.453 17.733 1.333 16 1.333S12.8 2.453 12.24 4H6.667A2.675 2.675 0 0 0 4 6.667V28c0 1.467 1.2 2.667 2.667 2.667h18.667c1.467 0 2.667-1.2 2.667-2.667V6.667C28.001 5.2 26.801 4 25.334 4M16 4c.733 0 1.333.6 1.333 1.333s-.6 1.333-1.333 1.333-1.333-.6-1.333-1.333S15.267 4 16 4m9.333 24H6.666V6.667h2.667v4h13.333v-4h2.667z' style='fill-rule:nonzero'/%3E%3C/svg%3E")}.ag-icon-pin:before{mask-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' xml:space='preserve' style='fill-rule:evenodd;clip-rule:evenodd;stroke-linejoin:round;stroke-miterlimit:2' viewBox='0 0 32 32'%3E%3Cpath d='m10.78 19.777-4.668-4.666s.032-1 .67-1.87c1.366-1.86 4.052-1.96 6.056-1.572l3.158-3.108c-.7-2.342 3.352-5.046 3.352-5.046l9.166 9.168q-.334.447-.67.894c-1.074 1.426-2.538 2.63-4.272 2.338l-3.32 3.218c.046.344.042.03.118 1.152.144 2.13-.64 4.324-2.632 5.34l-.746.364-4.798-4.798-7.292 7.294-1.416-1.416zm8.24-13.672c-.688.568-1.416 1.45-1.024 2.072l.49.722-4.986 4.988c-1.988-.506-4.346-.636-5.156.614l9.02 9.032q.14-.099.272-.21c1.226-1.08.764-3.04.498-4.9l4.79-4.79s1.47.938 2.936-.776l-6.79-6.79q-.026.019-.05.038' style='fill-rule:nonzero'/%3E%3C/svg%3E")}.ag-icon-pivot:before{mask-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' xml:space='preserve' style='fill-rule:evenodd;clip-rule:evenodd;stroke-linejoin:round;stroke-miterlimit:2' viewBox='0 0 32 32'%3E%3Cpath d='M25.128 2.002c2.56.096 4.772 2.292 4.87 4.87a712 712 0 0 1 0 18.256c-.096 2.56-2.292 4.772-4.87 4.87a712 712 0 0 1-18.256 0c-2.558-.096-4.772-2.29-4.87-4.87a712 712 0 0 1 0-18.256c.096-2.56 2.292-4.772 4.87-4.87a712 712 0 0 1 18.256 0m2.966 7.954H9.892v18.136c5.086.13 10.18.098 15.264-.096 1.48-.094 2.746-1.35 2.84-2.84.192-5.064.226-10.134.098-15.2M3.968 24.1q.015.528.036 1.056c.094 1.484 1.354 2.746 2.84 2.84l1.012.036V24.1zM22 15.414l-.292.294-1.416-1.416L23 11.586l2.708 2.706-1.416 1.416-.292-.294v3.592c-.032 2.604-2.246 4.892-4.872 4.992L15.414 24l.294.292-1.416 1.416L11.586 23l2.706-2.708 1.416 1.416-.322.32c3.372.03 6.578-.164 6.614-3.034zM3.88 18.038c.002 1.346.012 2.694.038 4.04h3.938v-4.04zm.05-6.062a681 681 0 0 0-.044 4.042h3.97v-4.042zm5.962-7.99Q8.449 3.999 7.006 4c-1.57.02-2.946 1.348-3.004 2.922q-.02 1.517-.042 3.034h3.896v-2.02h2.036zm14.244-.016v3.966h3.898q-.017-.546-.038-1.092c-.094-1.48-1.35-2.746-2.84-2.84q-.51-.019-1.02-.034m-8.14-.054q-2.035.022-4.07.048v3.972h4.07zm6.106.008a213 213 0 0 0-4.07-.022v4.034h4.07z' style='fill-rule:nonzero'/%3E%3C/svg%3E")}.ag-icon-plus:before{mask-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' xml:space='preserve' style='fill-rule:evenodd;clip-rule:evenodd;stroke-linejoin:round;stroke-miterlimit:2' viewBox='0 0 32 32'%3E%3Cpath d='M6.572 6.572a13.32 13.32 0 0 0 0 18.856 13.32 13.32 0 0 0 18.856 0 13.32 13.32 0 0 0 0-18.856 13.32 13.32 0 0 0-18.856 0m17.527 8.099v2.658h-6.77v6.77h-2.658v-6.77h-6.77v-2.658h6.77v-6.77h2.658v6.77z' style='fill-rule:nonzero'/%3E%3C/svg%3E")}.ag-icon-previous:before{mask-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' xml:space='preserve' style='fill-rule:evenodd;clip-rule:evenodd;stroke-linejoin:round;stroke-miterlimit:2' viewBox='0 0 32 32'%3E%3Cpath d='M21.94 7.88 20.06 6l-10 10 10 10 1.88-1.88L13.833 16z' style='fill-rule:nonzero'/%3E%3C/svg%3E")}.ag-icon-right:before{mask-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' xml:space='preserve' style='fill-rule:evenodd;clip-rule:evenodd;stroke-linejoin:round;stroke-miterlimit:2' viewBox='0 0 32 32'%3E%3Cpath d='m16 5.333-1.88 1.88 7.44 7.453H5.333v2.667H21.56l-7.44 7.453 1.88 1.88 10.667-10.667L16 5.332z' style='fill-rule:nonzero'/%3E%3C/svg%3E")}.ag-icon-save:before{mask-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' xml:space='preserve' style='fill-rule:evenodd;clip-rule:evenodd;stroke-linejoin:round;stroke-miterlimit:2' viewBox='0 0 32 32'%3E%3Cpath d='M15.708 2.355 8 10.061.292 2.355 1.708.939 8 7.233 14.292.939z' style='fill-rule:nonzero' transform='translate(8 14)'/%3E%3Cpath d='M5 26h22v2H5zM15 4h2v18h-2z'/%3E%3C/svg%3E")}.ag-icon-small-down:before{mask-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' xml:space='preserve' style='fill-rule:evenodd;clip-rule:evenodd;stroke-linejoin:round;stroke-miterlimit:2' viewBox='0 0 32 32'%3E%3Cpath d='M7.334 10.667 16 21.334l8.667-10.667z' style='fill-rule:nonzero'/%3E%3C/svg%3E")}.ag-icon-small-left:before{mask-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' xml:space='preserve' style='fill-rule:evenodd;clip-rule:evenodd;stroke-linejoin:round;stroke-miterlimit:2' viewBox='0 0 32 32'%3E%3Cpath d='M21.333 7.334 10.666 16l10.667 8.667z' style='fill-rule:nonzero'/%3E%3C/svg%3E")}.ag-icon-small-right:before{mask-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' xml:space='preserve' style='fill-rule:evenodd;clip-rule:evenodd;stroke-linejoin:round;stroke-miterlimit:2' viewBox='0 0 32 32'%3E%3Cpath d='M10.667 24.666 21.334 16 10.667 7.333z' style='fill-rule:nonzero'/%3E%3C/svg%3E")}.ag-icon-small-up:before{mask-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' xml:space='preserve' style='fill-rule:evenodd;clip-rule:evenodd;stroke-linejoin:round;stroke-miterlimit:2' viewBox='0 0 32 32'%3E%3Cpath d='M7.334 21.333 16 10.666l8.667 10.667z' style='fill-rule:nonzero'/%3E%3C/svg%3E")}.ag-icon-tick:before{mask-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' xml:space='preserve' style='fill-rule:evenodd;clip-rule:evenodd;stroke-linejoin:round;stroke-miterlimit:2' viewBox='0 0 32 32'%3E%3Cpath d='M11.586 22.96 27.718 6.828 29.84 8.95 11.586 27.202 2.4 18.016l2.12-2.122z'/%3E%3C/svg%3E")}.ag-icon-tree-closed:before{mask-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' xml:space='preserve' style='fill-rule:evenodd;clip-rule:evenodd;stroke-linejoin:round;stroke-miterlimit:2' viewBox='0 0 32 32'%3E%3Cpath d='m11.94 6-1.88 1.88L18.167 16l-8.107 8.12L11.94 26l10-10z' style='fill-rule:nonzero'/%3E%3C/svg%3E")}.ag-icon-tree-indeterminate:before{mask-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' xml:space='preserve' style='fill-rule:evenodd;clip-rule:evenodd;stroke-linejoin:round;stroke-miterlimit:2' viewBox='0 0 32 32'%3E%3Cpath d='M6 13.5h20v3H6z'/%3E%3C/svg%3E")}.ag-icon-tree-open:before{mask-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' xml:space='preserve' style='fill-rule:evenodd;clip-rule:evenodd;stroke-linejoin:round;stroke-miterlimit:2' viewBox='0 0 32 32'%3E%3Cpath d='M24.12 9.06 16 17.167 7.88 9.06 6 10.94l10 10 10-10z' style='fill-rule:nonzero' transform='translate(0 1)'/%3E%3C/svg%3E")}.ag-icon-unlinked:before{mask-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' xml:space='preserve' style='fill-rule:evenodd;clip-rule:evenodd;stroke-linejoin:round;stroke-miterlimit:2' viewBox='0 0 32 32'%3E%3Cpath d='M22.667 9.333h-5.333v2.533h5.333a4.136 4.136 0 0 1 4.133 4.133c0 1.907-1.307 3.507-3.08 3.973l1.947 1.947c2.173-1.107 3.667-3.32 3.667-5.92a6.67 6.67 0 0 0-6.667-6.667zm-1.334 5.334h-2.92l2.667 2.667h.253zM2.667 5.693 6.814 9.84A6.65 6.65 0 0 0 2.667 16a6.67 6.67 0 0 0 6.667 6.667h5.333v-2.533H9.334a4.136 4.136 0 0 1-4.133-4.133c0-2.12 1.613-3.867 3.68-4.093l2.76 2.76h-.973v2.667h3.64l3.027 3.027v2.307h2.307l5.347 5.333 1.68-1.68L4.362 4.002 2.669 5.695z' style='fill-rule:nonzero'/%3E%3C/svg%3E")}.ag-icon-up:before{mask-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' xml:space='preserve' style='fill-rule:evenodd;clip-rule:evenodd;stroke-linejoin:round;stroke-miterlimit:2' viewBox='0 0 32 32'%3E%3Cpath d='m5.333 16 1.88 1.88 7.453-7.44v16.227h2.667V10.44l7.44 7.453L26.666 16 15.999 5.333 5.332 16z' style='fill-rule:nonzero'/%3E%3C/svg%3E")}.ag-icon-grip:before{mask-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' xml:space='preserve' style='fill-rule:evenodd;clip-rule:evenodd;stroke-linejoin:round;stroke-miterlimit:2' viewBox='0 0 32 32'%3E%3Cpath d='M8 24H6v-4h2zm6 0h-2v-4h2zm6 0h-2v-4h2zm6 0h-2v-4h2zM8 18H6v-4h2zm6 0h-2v-4h2zm6 0h-2v-4h2zm6 0h-2v-4h2zM8 12H6V8h2zm6 0h-2V8h2zm6 0h-2V8h2zm6 0h-2V8h2z' style='fill-rule:nonzero'/%3E%3C/svg%3E")}.ag-icon-settings:before{mask-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='32' height='32' fill='none' viewBox='0 0 32 32'%3E%3Cpath fill='%23000' d='M30 8h-4.1c-.5-2.3-2.5-4-4.9-4s-4.4 1.7-4.9 4H2v2h14.1c.5 2.3 2.5 4 4.9 4s4.4-1.7 4.9-4H30zm-9 4c-1.7 0-3-1.3-3-3s1.3-3 3-3 3 1.3 3 3-1.3 3-3 3M2 24h4.1c.5 2.3 2.5 4 4.9 4s4.4-1.7 4.9-4H30v-2H15.9c-.5-2.3-2.5-4-4.9-4s-4.4 1.7-4.9 4H2zm9-4c1.7 0 3 1.3 3 3s-1.3 3-3 3-3-1.3-3-3 1.3-3 3-3'/%3E%3C/svg%3E")}.ag-icon-column-arrow:before{mask-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 32 32'%3E%3Cpath fill='currentColor' fill-rule='evenodd' d='M11 4a1 1 0 0 1 1 1v22a1 1 0 1 1-2 0V5a1 1 0 0 1 1-1' clip-rule='evenodd'/%3E%3Cpath fill='currentColor' fill-rule='evenodd' d='M2 13a1 1 0 0 1 1-1h23.5a1 1 0 1 1 0 2H3a1 1 0 0 1-1-1' clip-rule='evenodd'/%3E%3Cpath fill='currentColor' fill-rule='evenodd' d='M2 4h18v24H2zm2 2v20h14V6zM26.793 13 23 9.207l1.414-1.414L29.621 13l-5.207 5.207L23 16.793z' clip-rule='evenodd'/%3E%3C/svg%3E")}.ag-icon-un-pin:before{mask-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='32' height='32' fill='none' viewBox='0 0 32 32'%3E%3Cpath fill='currentColor' fill-rule='evenodd' d='m6.112 15.111 3.272 3.271 1.436-1.402-2.476-2.479c.81-1.25 3.168-1.12 5.156-.614l4.986-4.988-.49-.722c-.392-.622.336-1.504 1.024-2.072l.008-.007.01-.006.032-.025 1.447 1.447 1.432-1.397-2.601-2.602s-4.052 2.704-3.352 5.046l-3.158 3.108c-2.004-.388-4.69-.288-6.056 1.572-.638.87-.67 1.87-.67 1.87m.581 11.582.014.014 5.502-5.501 4.783 4.783.746-.364c1.992-1.016 2.776-3.21 2.632-5.34-.055-.805-.068-.87-.088-.97-.008-.04-.017-.085-.03-.182l3.32-3.218c1.734.292 3.198-.912 4.272-2.338q.337-.447.67-.894l-.001-.001-.007-.007-.007-.007-.007-.007-3.87-3.87 1.585-1.584-1.414-1.414-14.381 14.38-1.237 1.209-5.69 5.687 1.417 1.416zM23.21 10.206l2.65 2.651c-1.465 1.714-2.935.776-2.935.776l-4.79 4.79q.041.291.087.583c.257 1.676.513 3.35-.585 4.317a4 4 0 0 1-.272.21l-3.739-3.744z' clip-rule='evenodd'/%3E%3C/svg%3E")}.ag-icon-pinned-top:before{mask-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='32' height='32' fill='none' viewBox='0 0 32 32'%3E%3Cpath fill='currentColor' d='m16.708 10.878 8.708 8.706L24 21l-6.292-6.294V27h-2V14.706L9.416 21 8 19.584q4.348-4.344 8.691-8.69zM25 6H8v2h17z'/%3E%3C/svg%3E")}.ag-icon-pinned-bottom:before{mask-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='32' height='32' fill='none' viewBox='0 0 32 32'%3E%3Cpath fill='currentColor' d='M16.708 22.122 8 13.416 9.416 12l6.292 6.294V6h2v12.294L24 12l1.416 1.416-8.691 8.69zM7.416 28h17v-2h-17z'/%3E%3C/svg%3E")}.ag-icon-chevron-up:before{mask-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' viewBox='0 0 16 16'%3E%3Cpath fill='currentColor' fill-rule='evenodd' d='M3.479 10.521a.75.75 0 0 1 0-1.06l4-4a.75.75 0 0 1 1.06 0l4 4a.75.75 0 0 1-1.06 1.06l-3.47-3.47-3.47 3.47a.75.75 0 0 1-1.06 0' clip-rule='evenodd'/%3E%3C/svg%3E")}.ag-icon-chevron-down:before{mask-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' viewBox='0 0 16 16'%3E%3Cpath fill='currentColor' fill-rule='evenodd' d='M12.521 5.461a.75.75 0 0 1 0 1.06l-4 4a.75.75 0 0 1-1.06 0l-4-4a.75.75 0 0 1 1.06-1.06l3.47 3.47 3.47-3.47a.75.75 0 0 1 1.06 0' clip-rule='evenodd'/%3E%3C/svg%3E")}.ag-icon-chevron-left:before{mask-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' viewBox='0 0 16 16'%3E%3Cpath fill='currentColor' fill-rule='evenodd' d='M10.53 12.512a.75.75 0 0 1-1.06 0l-4-4a.75.75 0 0 1 0-1.06l4-4a.75.75 0 0 1 1.06 1.06l-3.47 3.47 3.47 3.47a.75.75 0 0 1 0 1.06' clip-rule='evenodd'/%3E%3C/svg%3E")}.ag-icon-chevron-right:before{mask-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' viewBox='0 0 16 16'%3E%3Cpath fill='currentColor' fill-rule='evenodd' d='M5.47 3.47a.75.75 0 0 1 1.06 0l4 4a.75.75 0 0 1 0 1.06l-4 4a.75.75 0 0 1-1.06-1.06L8.94 8 5.47 4.53a.75.75 0 0 1 0-1.06' clip-rule='evenodd'/%3E%3C/svg%3E")}.ag-icon-filter-add:before{mask-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='32' height='32' fill='none' viewBox='0 0 32 32'%3E%3Cpath fill='currentColor' d='M19.834 8H8c0 .304.06.612.258.842 2.716 2.854 6.682 5.548 6.742 7.974V21l2-1.5v-2.684c.056-2.267 2.968-4.417 5.49-6.75v3.087c-1.081.974-2.245 1.968-3.232 3.005a1.05 1.05 0 0 0-.258.682v3.66L13 25c0-2.74.066-5.482-.002-8.222a1.05 1.05 0 0 0-.256-.62C10.026 13.304 6.06 10.61 6 8.184V6h13.834z'/%3E%3Cpath fill='currentColor' d='M26 6h2.946v2.002H26v3.313h-2.002V8.002h-2.946V6h2.946V3.04H26z'/%3E%3C/svg%3E")}.ag-icon-edit:before{mask-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='32' height='32' fill='none' viewBox='0 0 32 32'%3E%3Cpath fill='currentColor' d='M6.222 25.778h1.611l14.834-14.811-1.611-1.611-14.834 14.81zM4 28v-4.733L22.644 4.656a2.26 2.26 0 0 1 1.567-.634q.423 0 .833.167.412.166.734.478l1.589 1.6q.333.322.483.733t.15.822q0 .423-.161.839-.162.416-.472.728L8.733 28zm17.856-17.833-.8-.811 1.61 1.61z'/%3E%3C/svg%3E")}`;var wv=Rl({feature:"iconSet",css:vv});var Cv=`.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-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,.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-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-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-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")}`;var bv=Rl({feature:"iconSet",css:Cv});var yv=t=>{const e=[];if(t.type==="image"){const{icons:i,mask:s}=t;for(const t of Object.keys(i)){const o=ia(i[t]);if(s){e.push(`.ag-icon-${t}::before { mask-image: ${o}; }`)}else{e.push(`.ag-icon-${t}::before { background-image: ${o}; ${Sv} }`)}}}if(t.type==="font"){const{family:i,weight:s,color:o,icons:n}=t;let r=Sv;if(i){r+=` font-family: ${Xl(i)};`}if(s){r+=` font-weight: ${ea(s)};`}if(o){r+=` color: ${ql(o)};`}for(const t of Object.keys(n)){e.push(`.ag-icon-${t}::before { content: ${JSON.stringify(n[t])}; ${r} }`)}}return Rl({css:e.join(";\n"),cssImports:t.cssImports})};var Sv=`background-color: unset; mask-image: unset; -webkit-mask-image: unset;`;var xv={aggregation:'',arrows:'',asc:'',cancel:'',chart:'',"color-picker":'',columns:'',contracted:'',copy:'',cross:'',csv:'',cut:'',desc:'',down:'',excel:'',expanded:'',"eye-slash":'',eye:'',filter:'',first:'',group:'',last:'',left:'',linked:'',loading:'',maximize:'',menu:'',"menu-alt":'',minimize:'',minus:'',next:'',none:'',"not-allowed":'',paste:'',pin:'',pivot:'',plus:'',previous:'',right:'',save:'',"small-left":'',"small-right":'',tick:'',"tree-closed":'',"tree-indeterminate":'',"tree-open":'',unlinked:'',up:'',grip:'',settings:''};var kv={"column-arrow":'',"small-down":'',"small-up":'',"pinned-top":'',"pinned-bottom":'',"un-pin":'',"chevron-down":'',"chevron-up":'',"chevron-left":'',"chevron-right":'',"filter-add":'',edit:''};var Rv=(t={})=>{let e="";for(const i of[...Object.keys(xv),...Object.keys(kv)]){const s=Ev(i,t.strokeWidth);e+=`.ag-icon-${i}::before { mask-image: url('data:image/svg+xml,${encodeURIComponent(s)}'); }\n`}return e};var Ev=(t,e=1.5)=>{const i=kv[t];if(i){return i}const s=xv[t];if(!s){throw new Error(`Missing icon data for ${t}`)}return`"};var Fv=(t={})=>Rl({feature:"iconSet",css:()=>Rv(t)});var Mv=Fv({strokeWidth:1});var Pv=Fv();var Dv=Fv({strokeWidth:2});var Tv=`:where(.ag-input-field-input[type=number]:not(.ag-number-field-input-stepper)){-webkit-appearance:textfield;-moz-appearance:textfield;appearance:textfield;&::-webkit-inner-spin-button,&::-webkit-outer-spin-button{-webkit-appearance:none;appearance:none;margin:0}}.ag-input-field-input:where(input:not([type]),input[type=text],input[type=number],input[type=tel],input[type=date],input[type=datetime-local],textarea){background-color:var(--ag-input-background-color);border:var(--ag-input-border);border-radius:var(--ag-input-border-radius);color:var(--ag-input-text-color);font-family:inherit;font-size:inherit;line-height:inherit;margin:0;min-height:var(--ag-input-height);padding:0;&:where(:disabled){background-color:var(--ag-input-disabled-background-color);border:var(--ag-input-disabled-border);color:var(--ag-input-disabled-text-color)}&:where(:focus){background-color:var(--ag-input-focus-background-color);border:var(--ag-input-focus-border);box-shadow:var(--ag-input-focus-shadow);color:var(--ag-input-focus-text-color);outline:none}&:where(:invalid){background-color:var(--ag-input-invalid-background-color);border:var(--ag-input-invalid-border);color:var(--ag-input-invalid-text-color)}&:where(.invalid){background-color:var(--ag-input-invalid-background-color);border:var(--ag-input-invalid-border);color:var(--ag-input-invalid-text-color)}&::-moz-placeholder{color:var(--ag-input-placeholder-text-color)}&::placeholder{color:var(--ag-input-placeholder-text-color)}}:where(.ag-ltr) .ag-input-field-input:where(input:not([type]),input[type=text],input[type=number],input[type=tel],input[type=date],input[type=datetime-local],textarea){padding-left:var(--ag-input-padding-start)}:where(.ag-rtl) .ag-input-field-input:where(input:not([type]),input[type=text],input[type=number],input[type=tel],input[type=date],input[type=datetime-local],textarea){padding-right:var(--ag-input-padding-start)}:where(.ag-column-select-header-filter-wrapper,.ag-filter-toolpanel-search,.ag-mini-filter,.ag-filter-filter,.ag-filter-add-select){.ag-input-wrapper:before{background-color:currentcolor;color:var(--ag-input-icon-color);content:"";display:block;height:12px;-webkit-mask-image:url("data:image/svg+xml;charset=utf-8;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxMiIgaGVpZ2h0PSIxMiIgZmlsbD0ibm9uZSIgc3Ryb2tlPSIjMDAwIiBzdHJva2UtbGluZWNhcD0icm91bmQiIHN0cm9rZS1saW5lam9pbj0icm91bmQiIHN0cm9rZS13aWR0aD0iMS41Ij48cGF0aCBkPSJNNS4zIDlhMy43IDMuNyAwIDEgMCAwLTcuNSAzLjcgMy43IDAgMCAwIDAgNy41Wk0xMC41IDEwLjUgOC4zIDguMiIvPjwvc3ZnPg==");mask-image:url("data:image/svg+xml;charset=utf-8;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxMiIgaGVpZ2h0PSIxMiIgZmlsbD0ibm9uZSIgc3Ryb2tlPSIjMDAwIiBzdHJva2UtbGluZWNhcD0icm91bmQiIHN0cm9rZS1saW5lam9pbj0icm91bmQiIHN0cm9rZS13aWR0aD0iMS41Ij48cGF0aCBkPSJNNS4zIDlhMy43IDMuNyAwIDEgMCAwLTcuNSAzLjcgMy43IDAgMCAwIDAgNy41Wk0xMC41IDEwLjUgOC4zIDguMiIvPjwvc3ZnPg==");-webkit-mask-position:center;mask-position:center;-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat;opacity:.5;position:absolute;width:12px}}:where(.ag-ltr) :where(.ag-column-select-header-filter-wrapper,.ag-filter-toolpanel-search,.ag-mini-filter,.ag-filter-filter,.ag-filter-add-select){.ag-input-wrapper:before{margin-left:var(--ag-spacing)}.ag-number-field-input,.ag-text-field-input{padding-left:calc(var(--ag-spacing)*1.5 + 12px)}}:where(.ag-rtl) :where(.ag-column-select-header-filter-wrapper,.ag-filter-toolpanel-search,.ag-mini-filter,.ag-filter-filter,.ag-filter-add-select){.ag-input-wrapper:before{margin-right:var(--ag-spacing)}.ag-number-field-input,.ag-text-field-input{padding-right:calc(var(--ag-spacing)*1.5 + 12px)}}`;var Bv=`.ag-input-field-input:where(input:not([type]),input[type=text],input[type=number],input[type=tel],input[type=date],input[type=datetime-local],textarea){&:focus{box-shadow:var(--ag-focus-shadow);&:where(.invalid),&:where(:invalid){box-shadow:var(--ag-focus-error-shadow)}}}`;var Av=`.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}`;var Iv={inputBackgroundColor:"transparent",inputBorder:false,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:false,pickerButtonFocusBorder:{ref:"inputFocusBorder"},pickerButtonBackgroundColor:{ref:"backgroundColor"},pickerButtonFocusBackgroundColor:{ref:"backgroundColor"},pickerListBorder:false,pickerListBackgroundColor:{ref:"backgroundColor"},colorPickerThumbSize:18,colorPickerTrackSize:12,colorPickerThumbBorderWidth:3,colorPickerTrackBorderRadius:12,colorPickerColorBorderRadius:4};var zv=()=>Rl({feature:"inputStyle",params:Iv,css:Tv});var Hv=zv();var Ov=()=>Rl({feature:"inputStyle",params:{...Iv,inputBackgroundColor:Ll,inputBorder:true,inputBorderRadius:{ref:"borderRadius"},inputPaddingStart:{ref:"spacing"},inputFocusBorder:{color:Nl},inputFocusShadow:{ref:"focusShadow"},inputDisabledBackgroundColor:Hl(.06),inputDisabledTextColor:{ref:"textColor",mix:.5},inputInvalidBorder:{color:{ref:"invalidColor"}},pickerButtonBorder:true,pickerListBorder:true},css:()=>Tv+Bv});var Lv=Ov();var Vv=()=>Rl({feature:"inputStyle",params:{...Iv,inputBackgroundColor:"transparent",inputBorder:{width:2,color:zl(.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:()=>Tv+Av});var Nv=Vv();var Gv=`.ag-tabs-header{background-color:var(--ag-tab-bar-background-color);border-bottom:var(--ag-tab-bar-border);display:flex;flex:1;gap:var(--ag-tab-spacing);padding:var(--ag-tab-bar-top-padding) var(--ag-tab-bar-horizontal-padding) 0}.ag-tabs-header-wrapper{display:flex}.ag-tabs-close-button-wrapper{align-items:center;border:0;display:flex;padding:var(--ag-spacing)}:where(.ag-ltr) .ag-tabs-close-button-wrapper{border-right:solid var(--ag-border-width) var(--ag-border-color)}:where(.ag-rtl) .ag-tabs-close-button-wrapper{border-left:solid var(--ag-border-width) var(--ag-border-color)}.ag-tabs-close-button{background-color:unset;border:0;cursor:pointer;padding:0}.ag-tab{align-items:center;background-color:var(--ag-tab-background-color);border-left:var(--ag-tab-selected-border-width) solid transparent;border-right:var(--ag-tab-selected-border-width) solid transparent;color:var(--ag-tab-text-color);cursor:pointer;display:flex;flex:1;justify-content:center;padding:var(--ag-tab-top-padding) var(--ag-tab-horizontal-padding) var(--ag-tab-bottom-padding);position:relative;&:hover{background-color:var(--ag-tab-hover-background-color);color:var(--ag-tab-hover-text-color)}&.ag-tab-selected{background-color:var(--ag-tab-selected-background-color);color:var(--ag-tab-selected-text-color)}&:after{background-color:var(--ag-tab-selected-underline-color);bottom:0;content:"";display:block;height:var(--ag-tab-selected-underline-width);left:0;opacity:0;position:absolute;right:0;transition:opacity var(--ag-tab-selected-underline-transition-duration)}&.ag-tab-selected:after{opacity:1}}:where(.ag-ltr) .ag-tab{&.ag-tab-selected{&:where(:not(:first-of-type)){border-left-color:var(--ag-tab-selected-border-color)}&:where(:not(:last-of-type)){border-right-color:var(--ag-tab-selected-border-color)}}}:where(.ag-rtl) .ag-tab{&.ag-tab-selected{&:where(:not(:first-of-type)){border-right-color:var(--ag-tab-selected-border-color)}&:where(:not(:last-of-type)){border-left-color:var(--ag-tab-selected-border-color)}}}`;var $v=`.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)}}`;var Wv={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:false};var Uv=()=>Rl({feature:"tabStyle",params:Wv,css:Gv});var jv=Uv();var qv=()=>Rl({feature:"tabStyle",params:{...Wv,tabBarBorder:true,tabBarBackgroundColor:zl(.05),tabTextColor:{ref:"textColor",mix:.7},tabSelectedTextColor:{ref:"textColor"},tabHoverTextColor:{ref:"textColor"},tabSelectedBorderColor:{ref:"borderColor"},tabSelectedBackgroundColor:Ll},css:Gv});var Kv=qv();var _v=()=>Rl({feature:"tabStyle",params:{...Wv,tabBarBackgroundColor:{ref:"chromeBackgroundColor"},tabSelectedUnderlineColor:{ref:"primaryColor"},tabSelectedUnderlineWidth:2,tabSelectedUnderlineTransitionDuration:0},css:Gv});var Zv=_v();var Qv=()=>Rl({feature:"tabStyle",params:{...Wv,tabBarBorder:true,tabBarBackgroundColor:{ref:"chromeBackgroundColor"},tabHoverTextColor:Nl,tabSelectedTextColor:Nl,tabSelectedUnderlineColor:Nl,tabSelectedUnderlineWidth:2,tabSelectedUnderlineTransitionDuration:"0.3s"},css:Gv});var Yv=Qv();var Jv=()=>Rl({feature:"tabStyle",params:{...Wv,tabBarBackgroundColor:{ref:"chromeBackgroundColor"},tabBarHorizontalPadding:{ref:"spacing"},tabBarTopPadding:{ref:"spacing"},tabBarBorder:true,tabHorizontalPadding:{calc:"spacing * 2"},tabTopPadding:{ref:"spacing"},tabBottomPadding:{ref:"spacing"},tabSpacing:{ref:"spacing"},tabSelectedBorderColor:{ref:"borderColor"},tabSelectedBackgroundColor:Ll},css:()=>Gv+$v});var Xv=Jv();var tw=`.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%)}.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-header-highlight-after:after,.ag-header-highlight-before:after{background-color:var(--ag-primary-color)}.ag-filter-add-button,.ag-filter-add-button:hover{border-bottom:2px solid var(--ag-primary-color)}`;var ew=()=>Zm().withPart(Jm).withPart(gv).withPart(Pv).withPart(Kv).withPart(Lv).withPart(jm).withParams({fontFamily:[{googleFont:"IBM Plex Sans"},"-apple-system","BlinkMacSystemFont","Segoe UI","Roboto","Oxygen-Sans","Ubuntu"]});var iw=ew();var sw=()=>Zm().withPart(Vm).withPart(Jm).withPart(gv).withPart(wv).withPart(Yv).withPart(Lv).withPart(jm).withParams({accentColor:"#2196f3",selectedRowBackgroundColor:Il(.3),inputFocusBorder:{color:Il(.4)},focusShadow:{radius:2,spread:1.6,color:Il(.4)},iconButtonHoverBackgroundColor:"transparent",iconButtonActiveBackgroundColor:"transparent",checkboxUncheckedBorderColor:Hl(.45),checkboxIndeterminateBackgroundColor:Hl(.45),checkboxIndeterminateBorderColor:Hl(.45),checkboxBorderWidth:2,checkboxBorderRadius:2,fontSize:13,dataFontSize:14,headerFontWeight:700,borderRadius:3,wrapperBorderRadius:3,tabSelectedUnderlineColor:Nl,tabSelectedBorderWidth:0,tabSelectedUnderlineTransitionDuration:.3,sideButtonSelectedUnderlineColor:Nl,sideButtonSelectedUnderlineWidth:2,sideButtonSelectedUnderlineTransitionDuration:.3,sideButtonBorder:false,sideButtonSelectedBorder:false,sideButtonBarTopPadding:{calc:"spacing * 3"},sideButtonSelectedBackgroundColor:"transparent",sideButtonHoverTextColor:Nl,iconButtonHoverColor:Nl,toggleButtonWidth:28,toggleButtonHeight:18,toggleButtonSwitchInset:1,toggleButtonOffBackgroundColor:Hl(.45),colorPickerThumbSize:13,colorPickerTrackSize:11,colorPickerThumbBorderWidth:2,colorPickerTrackBorderRadius:2,colorPickerColorBorderRadius:2});var ow=sw();var nw=()=>Zm().withPart(Gm).withPart(Jm).withPart(gv).withPart(mv).withPart(Xv).withPart(Lv).withPart(Km).withParams({accentColor:"#0091ea",borderColor:zl(.2),spacing:4,widgetVerticalSpacing:{calc:"max(8px, spacing)"},borderRadius:2,wrapperBorderRadius:2,headerColumnResizeHandleColor:"transparent",headerColumnBorder:true,headerColumnBorderHeight:"50%",oddRowBackgroundColor:{ref:"chromeBackgroundColor",mix:.5},checkboxBorderRadius:2,checkboxBorderWidth:1,checkboxUncheckedBackgroundColor:Ll,checkboxUncheckedBorderColor:Hl(.5),checkboxCheckedBackgroundColor:Ll,checkboxCheckedBorderColor:Nl,checkboxCheckedShapeColor:Nl,checkboxIndeterminateBackgroundColor:Ll,checkboxIndeterminateBorderColor:Hl(.5),checkboxIndeterminateShapeColor:Hl(.5),focusShadow:{radius:2,spread:1,color:Nl},headerTextColor:zl(.6),iconButtonHoverBackgroundColor:"transparent",iconButtonActiveBackgroundColor:"transparent",fontSize:12,tabSelectedBackgroundColor:Ll,headerFontWeight:"bold",toggleButtonWidth:32,toggleButtonHeight:16,toggleButtonSwitchInset:1,toggleButtonOffBackgroundColor:Hl(.5),sideButtonBorder:true,sideButtonBarTopPadding:{calc:"spacing * 4"},popupShadow:"5px 5px 10px rgba(0, 0, 0, 0.3)",statusBarLabelColor:zl(.54),statusBarLabelFontWeight:600,statusBarValueFontWeight:600,panelTitleBarIconColor:Vl,colorPickerThumbSize:13,colorPickerTrackSize:11,colorPickerThumbBorderWidth:2,colorPickerTrackBorderRadius:2,colorPickerColorBorderRadius:2});var rw=nw();var lw=()=>{const t={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:Ll,sideButtonSelectedBackgroundColor:"transparent",sideButtonBarTopPadding:{calc:"spacing * 4"},headerColumnResizeHandleColor:"none",headerBackgroundColor:{ref:"backgroundColor"},rowHoverColor:zl(.08),columnHoverColor:zl(.08),headerCellHoverBackgroundColor:zl(.05),statusBarLabelColor:zl(.63),statusBarLabelFontWeight:600,statusBarValueFontWeight:600,valueChangeValueHighlightBackgroundColor:"#00acc1",panelTitleBarIconColor:Vl,advancedFilterBuilderButtonBarBorder:false,filterPanelApplyButtonColor:{ref:"buttonTextColor"},filterPanelApplyButtonBackgroundColor:{ref:"buttonBackgroundColor"},colorPickerThumbSize:13,colorPickerTrackSize:11,colorPickerThumbBorderWidth:2,colorPickerTrackBorderRadius:2,colorPickerColorBorderRadius:2};const e={...t,primaryColor:"#3f51b5",foregroundColor:"#000D",headerTextColor:"#0008",accentColor:"#ff4081",checkboxUncheckedBorderColor:Vl,checkboxIndeterminateBackgroundColor:Vl,toggleButtonOffBackgroundColor:Vl,selectedRowBackgroundColor:"rgba(33, 150, 243, 0.3)"};const i={...t,primaryColor:"#3f51b5",foregroundColor:"#fffD",headerTextColor:"#fff8",accentColor:"#bb86fc",checkboxUncheckedBorderColor:Hl(.5),checkboxIndeterminateBackgroundColor:Hl(.5),toggleButtonOffBackgroundColor:Hl(.5),selectedRowBackgroundColor:"#bb86fc33"};return Rl({feature:"styleMaterial",css:tw,params:e,modeParams:{light:e,dark:i,"dark-blue":i}})};var aw=lw();var hw=()=>Zm().withPart(zm).withPart(Jm).withPart(gv).withPart(bv).withPart(Zv).withPart(Nv).withPart(Km).withPart(aw).withParams({rowHeight:{calc:"max(iconSize, dataFontSize) + spacing * 3.75 * rowVerticalPaddingScale"},headerHeight:{calc:"max(iconSize, dataFontSize) + 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:false,menuBorder:false,dialogBorder:false,panelTitleBarBorder:false,tabSelectedBorderWidth:0,tabSelectedUnderlineTransitionDuration:.3,sidePanelBorder:false,sideButtonSelectedBorder:false,sideButtonSelectedUnderlineWidth:2,sideButtonSelectedUnderlineTransitionDuration:.3,sideButtonBorder:false,buttonBorder:false,buttonDisabledBorder:false,focusShadow:{spread:4,color:zl(.16)},fontFamily:[{googleFont:"Roboto"},"-apple-system","BlinkMacSystemFont","Segoe UI","Oxygen-Sans","Ubuntu","Cantarell","Helvetica Neue","sans-serif"],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)"});var cw=hw();var uw={cssName:"--ag-cell-horizontal-padding",changeKey:"cellHorizontalPaddingChanged",defaultValue:16};var dw={cssName:"--ag-indentation-level",changeKey:"indentationLevelChanged",defaultValue:0,noWarn:true,cacheDefault:true};var fw={cssName:"--ag-row-group-indent-size",changeKey:"rowGroupIndentSizeChanged",defaultValue:0};var gw={cssName:"--ag-row-height",changeKey:"rowHeightChanged",defaultValue:42};var pw={cssName:"--ag-header-height",changeKey:"headerHeightChanged",defaultValue:48};var mw={cssName:"--ag-list-item-height",changeKey:"listItemHeightChanged",defaultValue:24};var vw={cssName:"--ag-row-border",changeKey:"rowBorderWidthChanged",defaultValue:1,border:true};var ww={cssName:"--ag-pinned-row-border",changeKey:"pinnedRowBorderWidthChanged",defaultValue:1,border:true};function Cw(t,e){for(const i of e.sort(((t,e)=>t.moduleName.localeCompare(e.moduleName)))){const e=i.css;if(e){t.set(`module-${i.moduleName}`,e)}}}var bw=class extends wa{constructor(){super(...arguments);this.sizeEls=new Map;this.lastKnownValues=new Map;this.sizesMeasured=false}initVariables(){this.addManagedPropertyListener("rowHeight",(()=>this.refreshRowHeightVariable()));this.getSizeEl(gw);this.getSizeEl(pw);this.getSizeEl(mw);this.getSizeEl(vw);this.getSizeEl(ww);this.refreshRowBorderWidthVariable()}getPinnedRowBorderWidth(){return this.getCSSVariablePixelValue(ww)}getRowBorderWidth(){return this.getCSSVariablePixelValue(vw)}getDefaultRowHeight(){return this.getCSSVariablePixelValue(gw)}getDefaultHeaderHeight(){return this.getCSSVariablePixelValue(pw)}getDefaultCellHorizontalPadding(){return this.getCSSVariablePixelValue(uw)}getCellPaddingLeft(){const t=this.getDefaultCellHorizontalPadding();const e=this.getCSSVariablePixelValue(dw);const i=this.getCSSVariablePixelValue(fw);return t-1+i*e}getCellPadding(){const t=this.getDefaultCellHorizontalPadding()-1;return this.getCellPaddingLeft()+t}getDefaultColumnMinWidth(){return Math.min(36,this.getDefaultRowHeight())}getDefaultListItemHeight(){return this.getCSSVariablePixelValue(mw)}refreshRowHeightVariable(){const{eRootDiv:t}=this;const e=t.style.getPropertyValue("--ag-line-height").trim();const i=this.gos.get("rowHeight");if(i==null||isNaN(i)||!isFinite(i)){if(e!==null){t.style.setProperty("--ag-line-height",null)}return-1}const s=`${i}px`;if(e!=s){t.style.setProperty("--ag-line-height",s);return i}return e!=""?Number.parseFloat(e):-1}getCSSVariablePixelValue(t){const e=this.lastKnownValues.get(t);if(e!=null){return e}const i=this.measureSizeEl(t);if(i==="detached"||i==="no-styles"){if(t.cacheDefault){this.lastKnownValues.set(t,t.defaultValue)}return t.defaultValue}this.lastKnownValues.set(t,i);return i}measureSizeEl(t){const e=this.getSizeEl(t);if(e.offsetParent==null){return"detached"}const i=e.offsetWidth;if(i===yw){return"no-styles"}this.sizesMeasured=true;return i}getMeasurementContainer(){let t=this.eMeasurementContainer;if(!t){t=this.eMeasurementContainer=gh({tag:"div",cls:"ag-measurement-container"});this.eRootDiv.appendChild(t)}return t}getSizeEl(t){let e=this.sizeEls.get(t);if(e){return e}const i=this.getMeasurementContainer();e=gh({tag:"div"});const{border:s,noWarn:o}=t;if(s){e.className="ag-measurement-element-border";e.style.setProperty("--ag-internal-measurement-border",`var(${t.cssName}, solid ${yw}px)`)}else{e.style.width=`var(${t.cssName}, ${yw}px)`}i.appendChild(e);this.sizeEls.set(t,e);let n=this.measureSizeEl(t);if(n==="no-styles"&&!o){Ci(9,{variable:t})}const r=Lt(this.beans,e,(()=>{const e=this.measureSizeEl(t);if(e==="detached"||e==="no-styles"){return}this.lastKnownValues.set(t,e);if(e!==n){n=e;this.fireStylesChangedEvent(t.changeKey)}}));this.addDestroyFunc((()=>r()));return e}fireStylesChangedEvent(t){if(t==="rowBorderWidthChanged"){this.refreshRowBorderWidthVariable()}this.eventSvc.dispatchEvent({type:"gridStylesChanged",[t]:true})}refreshRowBorderWidthVariable(){const t=this.getCSSVariablePixelValue(vw);this.eRootDiv.style.setProperty("--ag-internal-row-border-width",`${t}px`)}postProcessThemeChange(t,e){if(t&&getComputedStyle(this.getMeasurementContainer()).getPropertyValue("--ag-legacy-styles-loaded")){if(e){bi(106)}else{bi(239)}}}getAdditionalCss(){const t=new Map;t.set("core",[Rm]);Cw(t,Array.from(Qe()));return t}getDefaultTheme(){return iw}themeError(t){bi(240,{theme:t})}};var yw=15538;var Sw=class extends ba{postConstruct(){const{globalListener:t,globalSyncListener:e}=this.beans;if(t){this.addGlobalListener(t,true)}if(e){this.addGlobalListener(e,false)}}};function xw(t,e,i){const s=t.visibleCols.headerGroupRowCount;if(i>=s){return{column:e,headerRowIndex:i}}let o=e.getParent();while(o&&o.getProvidedColumnGroup().getLevel()>i){o=o.getParent()}const n=e.isSpanHeaderHeight();if(!o||n&&o.isPadding()){return{column:e,headerRowIndex:s}}return{column:o,headerRowIndex:o.getProvidedColumnGroup().getLevel()}}var kw=class extends ge{constructor(){super(...arguments);this.beanName="headerNavigation";this.currentHeaderRowWithoutSpan=-1}postConstruct(){const t=this.beans;t.ctrlsSvc.whenReady(this,(t=>{this.gridBodyCon=t.gridBodyCtrl}));const e=f(t);this.addManagedElementListeners(e,{mousedown:()=>{this.currentHeaderRowWithoutSpan=-1}})}getHeaderPositionForColumn(t,e){let i;const{colModel:s,colGroupSvc:o,ctrlsSvc:n}=this.beans;if(typeof t==="string"){i=s.getCol(t);if(!i){i=o?.getColumnGroup(t)??null}}else{i=t}if(!i){return null}const r=n.getHeaderRowContainerCtrl();const l=r?.getAllCtrls();const a=Vs(l||[]).type==="filter";const h=bu(this.beans)-1;let c=-1;let u=i;while(u){c++;u=u.getParent()}let d=c;if(e&&a&&d===h-1){d++}return d===-1?null:{headerRowIndex:d,column:i}}navigateVertically(t,e){const{focusSvc:i,visibleCols:s}=this.beans;const{focusedHeader:o}=i;if(!o){return false}const{headerRowIndex:n}=o;const r=o.column;const l=bu(this.beans);const a=this.getHeaderRowType(n);const h=s.headerGroupRowCount;let{headerRowIndex:c,column:u,headerRowIndexWithoutSpan:d}=t==="UP"?Rw(a,r,n):Ew(r,n,h);let f=false;if(c<0){c=0;u=r;f=true}if(c>=l){c=-1;this.currentHeaderRowWithoutSpan=-1}else if(d!==void 0){this.currentHeaderRowWithoutSpan=d}if(!f&&!u){return false}return i.focusHeaderPosition({headerPosition:{headerRowIndex:c,column:u},allowUserOverride:true,event:e})}navigateHorizontally(t,e=false,i){const{focusSvc:s,gos:o}=this.beans;const n={...s.focusedHeader};let r;let l;if(this.currentHeaderRowWithoutSpan!==-1){n.headerRowIndex=this.currentHeaderRowWithoutSpan}else{this.currentHeaderRowWithoutSpan=n.headerRowIndex}if(t==="LEFT"!==o.get("enableRtl")){l="Before";r=this.findHeader(n,l)}else{l="After";r=this.findHeader(n,l)}const a=o.getCallback("tabToNextHeader");if(e&&a){const t=s.focusHeaderPositionFromUserFunc({userFunc:a,headerPosition:r,direction:l});if(t){const{headerRowIndex:t}=s.focusedHeader||{};if(t!=null&&t!=n.headerRowIndex){this.currentHeaderRowWithoutSpan=t}}return t}if(r||!e){return s.focusHeaderPosition({headerPosition:r,direction:l,fromTab:e,allowUserOverride:true,event:i})}return this.focusNextHeaderRow(n,l,i)}focusNextHeaderRow(t,e,i){const s=this.beans;const o=t.headerRowIndex;let n=null;let r;const l=bu(s);const a=this.beans.visibleCols.allCols;if(e==="Before"){if(o<=0){return false}n=Vs(a);r=o-1;this.currentHeaderRowWithoutSpan-=1}else{n=a[0];r=o+1;if(this.currentHeaderRowWithoutSpan=l){c=-1}return s.focusSvc.focusHeaderPosition({headerPosition:{column:h,headerRowIndex:c},direction:e,fromTab:true,allowUserOverride:true,event:i})}scrollToColumn(t,e="After"){if(t.getPinned()){return}let i;if(Za(t)){const s=t.getDisplayedLeafColumns();i=e==="Before"?Vs(s):s[0]}else{i=t}this.gridBodyCon.scrollFeature.ensureColumnVisible(i)}findHeader(t,e){const{colGroupSvc:i,visibleCols:s}=this.beans;let o=t.column;if(o instanceof Qa){const t=o.getDisplayedLeafColumns();o=e==="Before"?t[0]:t[t.length-1]}const n=e==="Before"?s.getColBefore(o):s.getColAfter(o);if(!n){return void 0}const r=s.headerGroupRowCount;if(t.headerRowIndex>=r){return{headerRowIndex:t.headerRowIndex,column:n}}const l=i?.getColGroupAtLevel(n,t.headerRowIndex);if(!l){const e=n instanceof Bs&&n.isSpanHeaderHeight();return{headerRowIndex:e?s.headerGroupRowCount:t.headerRowIndex,column:n}}if(l.isPadding()&&n.isSpanHeaderHeight()){return{headerRowIndex:s.headerGroupRowCount,column:n}}return{headerRowIndex:t.headerRowIndex,column:l??n}}getHeaderRowType(t){const e=this.beans.ctrlsSvc.getHeaderRowContainerCtrl();if(e){return e.getRowType(t)}}};function Rw(t,e,i){const s=i-1;if(t!=="filter"){const t=e instanceof Bs&&e.isSpanHeaderHeight();let i=e.getParent();while(i&&(i.getProvidedColumnGroup().getLevel()>s||t&&i.isPadding())){i=i.getParent()}if(i){if(t){return{column:i,headerRowIndex:i.getProvidedColumnGroup().getLevel(),headerRowIndexWithoutSpan:s}}else{return{column:i,headerRowIndex:s,headerRowIndexWithoutSpan:s}}}}return{column:e,headerRowIndex:s,headerRowIndexWithoutSpan:s}}function Ew(t,e,i){const s=e+1;const o={column:t,headerRowIndex:s,headerRowIndexWithoutSpan:s};if(t instanceof Qa){if(s>=i){return{column:t.getDisplayedLeafColumns()[0],headerRowIndex:i,headerRowIndexWithoutSpan:s}}const e=t.getDisplayedChildren();let n=e[0];if(n instanceof Qa&&n.isPadding()){const t=n.getDisplayedLeafColumns()[0];if(t.isSpanHeaderHeight()){n=t}}o.column=n;const r=n instanceof Bs&&n.isSpanHeaderHeight();if(r){o.headerRowIndex=i;o.headerRowIndexWithoutSpan=s}}return o}var Fw=class extends ge{constructor(){super(...arguments);this.beanName="focusSvc";this.focusFallbackTimeout=null;this.needsFocusRestored=false}wireBeans(t){this.colModel=t.colModel;this.visibleCols=t.visibleCols;this.rowRenderer=t.rowRenderer;this.navigation=t.navigation;this.filterManager=t.filterManager;this.overlays=t.overlays}postConstruct(){const t=this.clearFocusedCell.bind(this);this.addManagedEventListeners({columnPivotModeChanged:t,newColumnsLoaded:this.onColumnEverythingChanged.bind(this),columnGroupOpened:t,columnRowGroupChanged:t});this.addDestroyFunc(Ir(this.beans))}attemptToRecoverFocus(){this.needsFocusRestored=true;if(this.focusFallbackTimeout!=null){clearTimeout(this.focusFallbackTimeout)}this.focusFallbackTimeout=window.setTimeout(this.setFocusRecovered.bind(this),100)}setFocusRecovered(){this.needsFocusRestored=false;if(this.focusFallbackTimeout!=null){clearTimeout(this.focusFallbackTimeout);this.focusFallbackTimeout=null}}shouldTakeFocus(){if(this.gos.get("suppressFocusAfterRefresh")){this.setFocusRecovered();return false}if(this.needsFocusRestored){this.setFocusRecovered();return true}return this.doesRowOrCellHaveBrowserFocus()}onColumnEverythingChanged(){if(!this.focusedCell){return}const t=this.focusedCell.column;const e=this.colModel.getCol(t.getId());if(t!==e){this.clearFocusedCell()}}getFocusCellToUseAfterRefresh(){const{gos:t,focusedCell:e}=this;if(t.get("suppressFocusAfterRefresh")||t.get("suppressCellFocus")||!e){return null}if(!this.doesRowOrCellHaveBrowserFocus()){return null}return e}getFocusHeaderToUseAfterRefresh(){if(this.gos.get("suppressFocusAfterRefresh")||!this.focusedHeader){return null}if(!this.isDomDataPresentInHierarchy(d(this.beans),Gu)){return null}return this.focusedHeader}doesRowOrCellHaveBrowserFocus(){const t=d(this.beans);if(this.isDomDataPresentInHierarchy(t,ac)){return true}return this.isDomDataPresentInHierarchy(t,cc)}isDomDataPresentInHierarchy(t,e){let i=t;while(i){const t=Oi(this.gos,i,e);if(t){return true}i=i.parentNode}return false}getFocusedCell(){return this.focusedCell}getFocusEventParams(t){const{rowIndex:e,rowPinned:i,column:s}=t;const o={rowIndex:e,rowPinned:i,column:s,isFullWidthCell:false};const n=this.rowRenderer.getRowByPosition({rowIndex:e,rowPinned:i});if(n){o.isFullWidthCell=n.isFullWidth()}return o}clearFocusedCell(){if(this.focusedCell==null){return}const t=this.getFocusEventParams(this.focusedCell);this.focusedCell=null;this.eventSvc.dispatchEvent({type:"cellFocusCleared",...t})}setFocusedCell(t){this.setFocusRecovered();const{column:i,rowIndex:s,rowPinned:o,forceBrowserFocus:n=false,preventScrollOnBrowserFocus:r=false,sourceEvent:l}=t;const a=this.colModel.getCol(i);if(!a){this.focusedCell=null;return}this.focusedCell={rowIndex:s,rowPinned:e(o),column:a};const h=this.getFocusEventParams(this.focusedCell);this.eventSvc.dispatchEvent({type:"cellFocused",...h,...this.previousCellFocusParams&&{previousParams:this.previousCellFocusParams},forceBrowserFocus:n,preventScrollOnBrowserFocus:r,sourceEvent:l});this.previousCellFocusParams=h}isCellFocused(t){if(this.focusedCell==null){return false}return Zf(t,this.focusedCell)}isHeaderWrapperFocused(t){if(this.focusedHeader==null){return false}const{column:e,rowCtrl:{rowIndex:i,pinned:s}}=t;const{column:o,headerRowIndex:n}=this.focusedHeader;return e===o&&i===n&&s==o.getPinned()}focusHeaderPosition(t){this.setFocusRecovered();if(mu(this.beans)){return false}const{direction:e,fromTab:i,allowUserOverride:s,event:o,fromCell:n,rowWithoutSpanValue:r,scroll:l=true}=t;let{headerPosition:a}=t;if(n&&this.filterManager?.isAdvFilterHeaderActive()){return this.focusAdvancedFilter(a)}if(s){const t=this.focusedHeader;const s=bu(this.beans);if(i){const i=this.gos.getCallback("tabToNextHeader");if(i){a=this.getHeaderPositionFromUserFunc({userFunc:i,direction:e,currentPosition:t,headerPosition:a,headerRowCount:s})}}else{const e=this.gos.getCallback("navigateToNextHeader");if(e&&o){const i={key:o.key,previousHeaderPosition:t,nextHeaderPosition:a,headerRowCount:s,event:o};a=e(i)}}}if(!a){return false}return this.focusProvidedHeaderPosition({headerPosition:a,direction:e,event:o,fromCell:n,rowWithoutSpanValue:r,scroll:l})}focusHeaderPositionFromUserFunc(t){if(mu(this.beans)){return false}const{userFunc:e,headerPosition:i,direction:s,event:o}=t;const n=this.focusedHeader;const r=bu(this.beans);const l=this.getHeaderPositionFromUserFunc({userFunc:e,direction:s,currentPosition:n,headerPosition:i,headerRowCount:r});return!!l&&this.focusProvidedHeaderPosition({headerPosition:l,direction:s,event:o})}getHeaderPositionFromUserFunc(t){const{userFunc:e,direction:i,currentPosition:s,headerPosition:o,headerRowCount:n}=t;const r={backwards:i==="Before",previousHeaderPosition:s,nextHeaderPosition:o,headerRowCount:n};const l=e(r);if(l===true){return s}if(l===false){return null}return l}focusProvidedHeaderPosition(t){const{headerPosition:e,direction:i,fromCell:s,rowWithoutSpanValue:o,event:n,scroll:r=true}=t;const{column:l,headerRowIndex:a}=e;const{filterManager:h,ctrlsSvc:c,headerNavigation:u}=this.beans;if(this.focusedHeader&&Pu(t.headerPosition,this.focusedHeader)){return false}if(a===-1){if(h?.isAdvFilterHeaderActive()){return this.focusAdvancedFilter(e)}return this.focusGridView({column:l,event:n})}if(r){u?.scrollToColumn(l,i)}const d=c.getHeaderRowContainerCtrl(l.getPinned());const f=d?.focusHeader(e.headerRowIndex,l,n)||false;if(u&&f&&(o!=null||s)){u.currentHeaderRowWithoutSpan=o??-1}return f}focusFirstHeader(){if(this.overlays?.isExclusive()&&this.focusOverlay()){return true}const t=this.visibleCols.allCols[0];if(!t){return false}const e=xw(this.beans,t,0);return this.focusHeaderPosition({headerPosition:e,rowWithoutSpanValue:0})}focusLastHeader(t){if(this.overlays?.isExclusive()&&this.focusOverlay(true)){return true}const e=bu(this.beans)-1;const i=Vs(this.visibleCols.allCols);return this.focusHeaderPosition({headerPosition:{headerRowIndex:e,column:i},rowWithoutSpanValue:-1,event:t})}focusPreviousFromFirstCell(t){if(this.filterManager?.isAdvFilterHeaderActive()){return this.focusAdvancedFilter(null)}return this.focusLastHeader(t)}isAnyCellFocused(){return!!this.focusedCell}isRowFocused(t,i){if(this.focusedCell==null){return false}return this.focusedCell.rowIndex===t&&this.focusedCell.rowPinned===e(i)}focusOverlay(t){const e=this.overlays?.isVisible()&&this.overlays.eWrapper?.getGui();return!!e&&Or(e,t)}focusGridView(t){const{backwards:i=false,canFocusOverlay:s=true,event:o}=t;if(this.overlays?.isExclusive()){return s&&this.focusOverlay(i)}if(vu(this.beans)){if(i){if(!mu(this.beans)){return this.focusLastHeader()}}if(s&&this.focusOverlay(i)){return true}if(i){return false}return wu(this.beans,i)}const n=i?Xf(this.beans):Jf(this.beans);if(n){const s=t.column??this.focusedHeader?.column;const{rowIndex:r,rowPinned:l}=n;const a=tg(this.beans,n);if(!s||!a||r==null){return false}if(s.isSuppressNavigable(a)){const t=this.gos.get("enableRtl");let e;if(!o||o.key===Zn.TAB){e=t?Zn.LEFT:Zn.RIGHT}else{e=o.key}this.beans.navigation?.navigateToNextCell(null,e,{rowIndex:r,column:s,rowPinned:l||null},true);return true}this.navigation?.ensureCellVisible({rowIndex:r,column:s,rowPinned:l});if(i){const t=this.rowRenderer.getRowByPosition(n);if(t?.isFullWidth()&&this.navigation?.tryToFocusFullWidthRow(n,i)){return true}}this.setFocusedCell({rowIndex:r,column:s,rowPinned:e(l),forceBrowserFocus:true});this.beans.rangeSvc?.setRangeToCell({rowIndex:r,rowPinned:l,column:s});return true}if(s&&this.focusOverlay(i)){return true}if(i&&this.focusLastHeader()){return true}return false}focusAdvancedFilter(t){this.advFilterFocusColumn=t?.column;return this.beans.advancedFilter?.getCtrl().focusHeaderComp()??false}focusNextFromAdvancedFilter(t,e){const i=(e?void 0:this.advFilterFocusColumn)??this.visibleCols.allCols?.[0];if(t){return this.focusHeaderPosition({headerPosition:{column:i,headerRowIndex:bu(this.beans)-1}})}else{return this.focusGridView({column:i})}}clearAdvancedFilterColumn(){this.advFilterFocusColumn=void 0}};var Mw=class extends ge{constructor(){super(...arguments);this.beanName="scrollVisibleSvc"}wireBeans(t){this.ctrlsSvc=t.ctrlsSvc;this.colAnimation=t.colAnimation}postConstruct(){this.horizontalScrollShowing=this.gos.get("alwaysShowHorizontalScroll")===true;this.verticalScrollShowing=this.gos.get("alwaysShowVerticalScroll")===true;this.getScrollbarWidth();this.addManagedEventListeners({displayedColumnsChanged:this.updateScrollVisible.bind(this),displayedColumnsWidthChanged:this.updateScrollVisible.bind(this)})}updateScrollVisible(){const{colAnimation:t}=this;if(t?.isActive()){t.executeLaterVMTurn((()=>{t.executeLaterVMTurn((()=>this.updateScrollVisibleImpl()))}))}else{this.updateScrollVisibleImpl()}}updateScrollVisibleImpl(){const t=this.ctrlsSvc.get("center");if(!t||this.colAnimation?.isActive()){return}const e={horizontalScrollShowing:t.isHorizontalScrollShowing(),verticalScrollShowing:this.verticalScrollShowing};this.setScrollsVisible(e);this.updateScrollGap()}updateScrollGap(){const t=this.ctrlsSvc.get("center");const e=t.hasHorizontalScrollGap();const i=t.hasVerticalScrollGap();const s=this.horizontalScrollGap!==e||this.verticalScrollGap!==i;if(s){this.horizontalScrollGap=e;this.verticalScrollGap=i;this.eventSvc.dispatchEvent({type:"scrollGapChanged"})}}setScrollsVisible(t){const e=this.horizontalScrollShowing!==t.horizontalScrollShowing||this.verticalScrollShowing!==t.verticalScrollShowing;if(e){this.horizontalScrollShowing=t.horizontalScrollShowing;this.verticalScrollShowing=t.verticalScrollShowing;this.eventSvc.dispatchEvent({type:"scrollVisibilityChanged"})}}getScrollbarWidth(){if(this.scrollbarWidth==null){const t=this.gos.get("scrollbarWidth");const e=typeof t==="number"&&t>=0;const i=e?t:cr();if(i!=null){this.scrollbarWidth=i;this.eventSvc.dispatchEvent({type:"scrollbarWidthChanged"})}}return this.scrollbarWidth}};var Pw=class extends ge{constructor(){super(...arguments);this.beanName="gridDestroySvc";this.destroyCalled=false}destroy(){if(this.destroyCalled){return}const{stateSvc:t,ctrlsSvc:e,context:i}=this.beans;this.eventSvc.dispatchEvent({type:"gridPreDestroyed",state:t?.getState()??{}});this.destroyCalled=true;e.get("gridCtrl")?.destroyGridUi();i.destroy();super.destroy()}};var Dw=new Set(["gridPreDestroyed","fillStart","pasteStart"]);var Tw=["columnEverythingChanged","newColumnsLoaded","columnPivotModeChanged","pivotMaxColumnsExceeded","columnRowGroupChanged","expandOrCollapseAll","columnPivotChanged","gridColumnsChanged","columnValueChanged","columnMoved","columnVisible","columnPinned","columnGroupOpened","columnResized","displayedColumnsChanged","virtualColumnsChanged","columnHeaderMouseOver","columnHeaderMouseLeave","columnHeaderClicked","columnHeaderContextMenu","asyncTransactionsFlushed","rowGroupOpened","rowDataUpdated","pinnedRowDataChanged","pinnedRowsChanged","rangeSelectionChanged","cellSelectionChanged","chartCreated","chartRangeSelectionChanged","chartOptionsChanged","chartDestroyed","toolPanelVisibleChanged","toolPanelSizeChanged","modelUpdated","cutStart","cutEnd","pasteStart","pasteEnd","fillStart","fillEnd","cellSelectionDeleteStart","cellSelectionDeleteEnd","rangeDeleteStart","rangeDeleteEnd","undoStarted","undoEnded","redoStarted","redoEnded","cellClicked","cellDoubleClicked","cellMouseDown","cellContextMenu","cellValueChanged","cellEditRequest","rowValueChanged","headerFocused","cellFocused","rowSelected","selectionChanged","tooltipShow","tooltipHide","cellKeyDown","cellMouseOver","cellMouseOut","filterChanged","filterModified","filterUiChanged","filterOpened","floatingFilterUiChanged","advancedFilterBuilderVisibleChanged","sortChanged","virtualRowRemoved","rowClicked","rowDoubleClicked","gridReady","gridPreDestroyed","gridSizeChanged","viewportChanged","firstDataRendered","dragStarted","dragStopped","dragCancelled","rowEditingStarted","rowEditingStopped","cellEditingStarted","cellEditingStopped","bodyScroll","bodyScrollEnd","paginationChanged","componentStateChanged","storeRefreshed","stateUpdated","columnMenuVisibleChanged","contextMenuVisibleChanged","rowDragEnter","rowDragMove","rowDragLeave","rowDragEnd","rowDragCancel","findChanged","rowResizeStarted","rowResizeEnded","columnsReset","bulkEditingStarted","bulkEditingStopped","batchEditingStarted","batchEditingStopped"];var Bw=["scrollbarWidthChanged","keyShortcutChangedCellStart","keyShortcutChangedCellEnd","pinnedHeightChanged","cellFocusCleared","fullWidthRowFocused","checkboxChanged","heightScaleChanged","suppressMovableColumns","suppressMenuHide","suppressFieldDotNotation","columnPanelItemDragStart","columnPanelItemDragEnd","bodyHeightChanged","columnContainerWidthChanged","displayedColumnsWidthChanged","scrollVisibilityChanged","scrollGapChanged","columnHoverChanged","flashCells","paginationPixelOffsetChanged","displayedRowsChanged","leftPinnedWidthChanged","rightPinnedWidthChanged","rowContainerHeightChanged","headerHeightChanged","columnGroupHeaderHeightChanged","columnHeaderHeightChanged","gridStylesChanged","storeUpdated","filterDestroyed","filterHandlerDestroyed","rowDataUpdateStarted","rowCountReady","advancedFilterEnabledChanged","dataTypesInferred","fieldValueChanged","fieldPickerValueSelected","richSelectListRowSelected","sideBarUpdated","alignedGridScroll","alignedGridColumn","gridOptionsChanged","chartTitleEdit","recalculateRowBounds","stickyTopOffsetChanged","overlayExclusiveChanged","rowNodeDataChanged","cellEditValuesChanged","filterSwitched","filterClosed","headerRowsChanged","rowExpansionStateChanged"];var Aw=()=>[...Tw,...Bw];var Iw=Tw.reduce(((t,e)=>{t[e]=Ss(e);return t}),{});var zw=(t,e)=>({tag:"span",ref:`eSort${t}`,cls:`ag-sort-indicator-icon ag-sort-${e} ag-hidden`,attrs:{"aria-hidden":"true"}});var Hw={tag:"span",cls:"ag-sort-indicator-container",children:[zw("Order","order"),zw("Asc","ascending-icon"),zw("Desc","descending-icon"),zw("Mixed","mixed-icon"),zw("None","none-icon")]};var Ow=class extends Qo{constructor(t){super();this.eSortOrder=jo;this.eSortAsc=jo;this.eSortDesc=jo;this.eSortMixed=jo;this.eSortNone=jo;if(!t){this.setTemplate(Hw)}}attachCustomElements(t,e,i,s,o){this.eSortOrder=t;this.eSortAsc=e;this.eSortDesc=i;this.eSortMixed=s;this.eSortNone=o}setupSort(t,e=false){this.column=t;this.suppressOrder=e;this.setupMultiSortIndicator();if(!t.isSortable()&&!t.getColDef().showRowGroup){return}this.addInIcon("sortAscending",this.eSortAsc,t);this.addInIcon("sortDescending",this.eSortDesc,t);this.addInIcon("sortUnSort",this.eSortNone,t);const i=this.updateIcons.bind(this);const s=this.onSortChanged.bind(this);this.addManagedPropertyListener("unSortIcon",i);this.addManagedEventListeners({newColumnsLoaded:i,sortChanged:s,columnRowGroupChanged:s});this.onSortChanged()}addInIcon(t,e,i){if(e==null){return}const s=od(t,this.beans,i);if(s){e.appendChild(s)}}onSortChanged(){this.updateIcons();if(!this.suppressOrder){this.updateSortOrder()}}updateIcons(){const{eSortAsc:t,eSortDesc:e,eSortNone:i,column:s,gos:o,beans:n}=this;const r=n.sortSvc.getDisplaySortForColumn(s);if(t){const e=r==="asc";at(t,e,{skipAriaHidden:true})}if(e){const t=r==="desc";at(e,t,{skipAriaHidden:true})}if(i){const t=!s.getColDef().unSortIcon&&!o.get("unSortIcon");const e=r===null||r===void 0;at(i,!t&&e,{skipAriaHidden:true})}}setupMultiSortIndicator(){const{eSortMixed:t,column:e,gos:i}=this;this.addInIcon("sortUnSort",t,e);const s=e.getColDef().showRowGroup;const o=Gi(i);if(o&&s){this.addManagedEventListeners({sortChanged:this.updateMultiSortIndicator.bind(this),columnRowGroupChanged:this.updateMultiSortIndicator.bind(this)});this.updateMultiSortIndicator()}}updateMultiSortIndicator(){const{eSortMixed:t,beans:e,column:i}=this;if(t){const s=e.sortSvc.getDisplaySortForColumn(i)==="mixed";at(t,s,{skipAriaHidden:true})}}updateSortOrder(){const{eSortOrder:t,column:e,beans:{sortSvc:i}}=this;if(!t){return}const s=i.getColumnsWithSortingOrdered();const o=i.getDisplaySortIndexForColumn(e)??-1;const n=s.some((t=>i.getDisplaySortIndexForColumn(t)??-1>=1));const r=o>=0&&n;at(t,r,{skipAriaHidden:true});if(o>=0){t.textContent=(o+1).toString()}else{bt(t)}}};var Lw={selector:"AG-SORT-INDICATOR",component:Ow};var Vw=["asc","desc",null];var Nw=class extends ge{constructor(){super(...arguments);this.beanName="sortSvc"}progressSort(t,e,i){const s=this.getNextSortDirection(t);this.setSortForColumn(t,s,e,i)}progressSortFromEvent(t,e){const i=this.gos.get("multiSortKey")==="ctrl";const s=i?e.ctrlKey||e.metaKey:e.shiftKey;this.progressSort(t,s,"uiColumnSorted")}setSortForColumn(t,e,i,s){if(e!=="asc"&&e!=="desc"){e=null}const{gos:o,showRowGroupCols:n}=this.beans;const r=Gi(o);let l=[t];if(r){if(t.getColDef().showRowGroup){const e=n?.getSourceColumnsForGroupColumn?.(t);const i=e?.filter((t=>t.isSortable()));if(i){l=[t,...i]}}}for(const t of l){this.setColSort(t,e,s)}const a=(i||o.get("alwaysMultiSort"))&&!o.get("suppressMultiSort");const h=[];if(!a){const t=this.clearSortBarTheseColumns(l,s);h.push(...t)}this.updateSortIndex(t);h.push(...l);this.dispatchSortChangedEvents(s,h)}updateSortIndex(t){const{gos:e,colModel:i,showRowGroupCols:s}=this.beans;const o=Gi(e);const n=s?.getShowRowGroupCol(t.getId());const r=o?n||t:t;const l=this.getColumnsWithSortingOrdered();i.forAllCols((t=>this.setColSortIndex(t,null)));const a=l.filter((t=>{if(o&&t.getColDef().showRowGroup){return false}return t!==r}));const h=r.getSort()?[...a,r]:a;h.forEach(((t,e)=>this.setColSortIndex(t,e)))}onSortChanged(t,e){this.dispatchSortChangedEvents(t,e)}isSortActive(){let t=false;this.beans.colModel.forAllCols((e=>{if(e.getSort()){t=true}}));return t}dispatchSortChangedEvents(t,e){const i={type:"sortChanged",source:t};if(e){i.columns=e}this.eventSvc.dispatchEvent(i)}clearSortBarTheseColumns(t,e){const i=[];this.beans.colModel.forAllCols((s=>{if(!t.includes(s)){if(s.getSort()){i.push(s)}this.setColSort(s,void 0,e)}}));return i}getNextSortDirection(t){const e=t.getColDef().sortingOrder??this.gos.get("sortingOrder")??Vw;const i=e.indexOf(t.getSort());const s=i<0;const o=i==e.length-1;return s||o?e[0]:e[i+1]}getIndexedSortMap(){const{gos:t,colModel:e,showRowGroupCols:i,rowGroupColsSvc:s}=this.beans;let o=[];e.forAllCols((t=>{if(t.getSort()){o.push(t)}}));if(e.isPivotMode()){const e=Gi(t);o=o.filter((t=>{const s=!!t.getAggFunc();const o=!t.isPrimary();const n=e?i?.getShowRowGroupCol(t.getId()):t.getColDef().showRowGroup;return s||o||n}))}const n=s?.columns.filter((t=>!!t.getSort()))??[];const r={};o.forEach(((t,e)=>r[t.getId()]=e));o.sort(((t,e)=>{const i=t.getSortIndex();const s=e.getSortIndex();if(i!=null&&s!=null){return i-s}else if(i==null&&s==null){const i=r[t.getId()];const s=r[e.getId()];return i>s?1:-1}else if(s==null){return-1}else{return 1}}));const l=Gi(t)&&!!n.length;if(l){o=[...new Set(o.map((t=>i?.getShowRowGroupCol(t.getId())??t)))]}const a=new Map;o.forEach(((t,e)=>a.set(t,e)));if(l){for(const t of n){const e=i.getShowRowGroupCol(t.getId());a.set(t,a.get(e))}}return a}getColumnsWithSortingOrdered(){return[...this.getIndexedSortMap().entries()].sort((([,t],[,e])=>t-e)).map((([t])=>t))}getSortModel(){return this.getColumnsWithSortingOrdered().filter((t=>t.getSort())).map((t=>({sort:t.getSort(),colId:t.getId()})))}getSortOptions(){return this.getColumnsWithSortingOrdered().filter((t=>t.getSort())).map((t=>({sort:t.getSort(),column:t})))}canColumnDisplayMixedSort(t){const e=Gi(this.gos);const i=!!t.getColDef().showRowGroup;return e&&i}getDisplaySortForColumn(t){const e=this.beans.showRowGroupCols?.getSourceColumnsForGroupColumn(t);if(!this.canColumnDisplayMixedSort(t)||!e?.length){return t.getSort()}const i=t.getColDef().field!=null||!!t.getColDef().valueGetter;const s=i?[t,...e]:e;const o=s[0].getSort();const n=s.every((t=>t.getSort()==o));if(!n){return"mixed"}return o}getDisplaySortIndexForColumn(t){return this.getIndexedSortMap().get(t)}setupHeader(t,e,i){let s=0;t.addManagedListeners(e,{movingChanged:()=>{s=Date.now()}});if(i){t.addManagedElementListeners(i,{click:t=>{const i=e.isMoving();const o=Date.now();const n=o-s<50;const r=i||n;if(!r){this.progressSortFromEvent(e,t)}}})}const o=()=>{const i=e.getSort();t.toggleCss("ag-header-cell-sorted-asc",i==="asc");t.toggleCss("ag-header-cell-sorted-desc",i==="desc");t.toggleCss("ag-header-cell-sorted-none",!i);if(e.getColDef().showRowGroup){const i=this.beans.showRowGroupCols?.getSourceColumnsForGroupColumn(e);const s=i?.every((t=>e.getSort()==t.getSort()));const o=!s;t.toggleCss("ag-header-cell-sorted-mixed",o)}};t.addManagedEventListeners({sortChanged:o,columnRowGroupChanged:o})}initCol(t){const{sort:e,initialSort:i,sortIndex:s,initialSortIndex:o}=t.colDef;if(e!==void 0){if(e==="asc"||e==="desc"){t.sort=e}}else if(i==="asc"||i==="desc"){t.sort=i}if(s!==void 0){if(s!==null){t.sortIndex=s}}else if(o!==null){t.sortIndex=o}}updateColSort(t,e,i){if(e!==void 0){if(e==="desc"||e==="asc"){this.setColSort(t,e,i)}else{this.setColSort(t,void 0,i)}}}setColSort(t,e,i){if(t.sort!==e){t.sort=e;t.dispatchColEvent("sortChanged",i)}t.dispatchStateUpdatedEvent("sort")}setColSortIndex(t,e){t.sortIndex=e;t.dispatchStateUpdatedEvent("sortIndex")}createSortIndicator(t){return new Ow(t)}getSortIndicatorSelector(){return Lw}};var Gw={agSetColumnFilter:"SetFilter",agSetColumnFloatingFilter:"SetFilter",agMultiColumnFilter:"MultiFilter",agMultiColumnFloatingFilter:"MultiFilter",agGroupColumnFilter:"GroupFilter",agGroupColumnFloatingFilter:"GroupFilter",agGroupCellRenderer:"GroupCellRenderer",agGroupRowRenderer:"GroupCellRenderer",agRichSelect:"RichSelect",agRichSelectCellEditor:"RichSelect",agDetailCellRenderer:"SharedMasterDetail",agSparklineCellRenderer:"Sparklines",agDragAndDropImage:"SharedDragAndDrop",agColumnHeader:"ColumnHeaderComp",agColumnGroupHeader:"ColumnGroupHeaderComp",agSortIndicator:"Sort",agAnimateShowChangeCellRenderer:"HighlightChanges",agAnimateSlideCellRenderer:"HighlightChanges",agLoadingCellRenderer:"LoadingCellRenderer",agSkeletonCellRenderer:"SkeletonCellRenderer",agCheckboxCellRenderer:"CheckboxCellRenderer",agLoadingOverlay:"Overlay",agNoRowsOverlay:"Overlay",agTooltipComponent:"Tooltip",agReadOnlyFloatingFilter:"CustomFilter",agTextColumnFilter:"TextFilter",agNumberColumnFilter:"NumberFilter",agDateColumnFilter:"DateFilter",agDateInput:"DateFilter",agTextColumnFloatingFilter:"TextFilter",agNumberColumnFloatingFilter:"NumberFilter",agDateColumnFloatingFilter:"DateFilter",agCellEditor:"TextEditor",agSelectCellEditor:"SelectEditor",agTextCellEditor:"TextEditor",agNumberCellEditor:"NumberEditor",agDateCellEditor:"DateEditor",agDateStringCellEditor:"DateEditor",agCheckboxCellEditor:"CheckboxEditor",agLargeTextCellEditor:"LargeTextEditor",agMenuItem:"MenuItem",agColumnsToolPanel:"ColumnsToolPanel",agFiltersToolPanel:"FiltersToolPanel",agNewFiltersToolPanel:"NewFiltersToolPanel",agAggregationComponent:"StatusBar",agSelectedRowCountComponent:"StatusBar",agTotalRowCountComponent:"StatusBar",agFilteredRowCountComponent:"StatusBar",agTotalAndFilteredRowCountComponent:"StatusBar",agFindCellRenderer:"Find"};function $w(t){return`"${t}"`}var Ww=()=>({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."}});var Uw={aggFunc:"SharedAggregation",autoHeight:"RowAutoHeight",cellClass:"CellStyle",cellClassRules:"CellStyle",cellEditor:({cellEditor:t,editable:e})=>{if(!e){return null}if(typeof t==="string"){return Gw[t]??"CustomEditor"}return"CustomEditor"},cellRenderer:({cellRenderer:t})=>{if(typeof t!=="string"){return null}return Gw[t]},cellStyle:"CellStyle",columnChooserParams:"ColumnMenu",contextMenuItems:"ContextMenu",dndSource:"DragAndDrop",dndSourceOnRowDrag:"DragAndDrop",editable:({editable:t,cellEditor:e})=>{if(t&&!e){return"TextEditor"}return null},enableCellChangeFlash:"HighlightChanges",enablePivot:"SharedPivot",enableRowGroup:"SharedRowGrouping",enableValue:"SharedAggregation",filter:({filter:t})=>{if(t&&typeof t!=="string"&&typeof t!=="boolean"){return"CustomFilter"}if(typeof t==="string"){return Gw[t]??"ColumnFilter"}return"ColumnFilter"},floatingFilter:"ColumnFilter",getQuickFilterText:"QuickFilter",headerTooltip:"Tooltip",headerTooltipValueGetter:"Tooltip",mainMenuItems:"ColumnMenu",menuTabs:t=>{const e=["columnsMenuTab","generalMenuTab"];if(t.menuTabs?.some((t=>e.includes(t)))){return"ColumnMenu"}return null},pivot:"SharedPivot",pivotIndex:"SharedPivot",rowDrag:"RowDrag",rowGroup:"SharedRowGrouping",rowGroupIndex:"SharedRowGrouping",tooltipField:"Tooltip",tooltipValueGetter:"Tooltip",tooltipComponentSelector:"Tooltip",spanRows:"CellSpan",groupHierarchy:"SharedRowGrouping"};var jw=()=>{const t={autoHeight:{supportedRowModels:["clientSide","serverSide"],validate:(t,{paginationAutoPageSize:e})=>{if(e){return"colDef.autoHeight is not supported with paginationAutoPageSize."}return null}},cellRendererParams:{validate:t=>{const e=t.rowGroup!=null||t.rowGroupIndex!=null||t.cellRenderer==="agGroupCellRenderer";if(e&&"checkbox"in t.cellRendererParams){return'Since v33.0, `cellRendererParams.checkbox` has been deprecated. Use `rowSelection.checkboxLocation = "autoGroupColumn"` instead.'}return null}},flex:{validate:(t,e)=>{if(e.autoSizeStrategy){return"colDef.flex is not supported with gridOptions.autoSizeStrategy"}return null}},headerCheckboxSelection:{supportedRowModels:["clientSide","serverSide"],validate:(t,{rowSelection:e})=>e==="multiple"?null:"headerCheckboxSelection is only supported with rowSelection=multiple"},headerCheckboxSelectionCurrentPageOnly:{supportedRowModels:["clientSide"],validate:(t,{rowSelection:e})=>e==="multiple"?null:"headerCheckboxSelectionCurrentPageOnly is only supported with rowSelection=multiple"},headerCheckboxSelectionFilteredOnly:{supportedRowModels:["clientSide"],validate:(t,{rowSelection:e})=>e==="multiple"?null:"headerCheckboxSelectionFilteredOnly is only supported with rowSelection=multiple"},headerValueGetter:{validate:t=>{const e=t.headerValueGetter;if(typeof e==="function"||typeof e==="string"){return null}return"headerValueGetter must be a function or a valid string expression"}},icons:{validate:({icons:t})=>{if(t){if(t["smallDown"]){return ki(262)}if(t["smallLeft"]){return ki(263)}if(t["smallRight"]){return ki(264)}}return null}},sortingOrder:{validate:t=>{const e=t.sortingOrder;if(Array.isArray(e)&&e.length>0){const t=e.filter((t=>!Vw.includes(t)));if(t.length>0){return`sortingOrder must be an array with elements from [${Vw.map(gi).join()}], currently it includes [${t.map(gi).join()}]`}}else if(!Array.isArray(e)||e.length<=0){return`sortingOrder must be an array with at least one element, currently it's ${e}`}return null}},type:{validate:t=>{const e=t.type;if(e instanceof Array){const t=e.some((t=>typeof t!=="string"));if(t){return"if colDef.type is supplied an array it should be of type 'string[]'"}return null}if(typeof e==="string"){return null}return"colDef.type should be of type 'string' | 'string[]'"}},rowSpan:{validate:(t,{suppressRowTransform:e})=>{if(!e){return"colDef.rowSpan requires suppressRowTransform to be enabled."}return null}},spanRows:{dependencies:{editable:{required:[false,void 0]},rowDrag:{required:[false,void 0]},colSpan:{required:[void 0]},rowSpan:{required:[void 0]}},validate:(t,{rowSelection:e,cellSelection:i,suppressRowTransform:s,enableCellSpan:o,rowDragEntireRow:n,enableCellTextSelection:r})=>{if(typeof e==="object"){if(e?.mode==="singleRow"&&e?.enableClickSelection){return"colDef.spanRows is not supported with rowSelection.clickSelection"}}if(i){return"colDef.spanRows is not supported with cellSelection."}if(s){return"colDef.spanRows is not supported with suppressRowTransform."}if(!o){return"colDef.spanRows requires enableCellSpan to be enabled."}if(n){return"colDef.spanRows is not supported with rowDragEntireRow."}if(r){return"colDef.spanRows is not supported with enableCellTextSelection."}return null}},groupHierarchy:{validate(t,{groupHierarchyConfig:e={}},i){const s=new Set(["year","quarter","month","formattedMonth","day","hour","minute","second"]);const o=[];for(const n of t.groupHierarchy??[]){if(typeof n==="object"){i.validation?.validateColDef(n);continue}if(!s.has(n)&&!(n in e)){o.push($w(n))}}if(o.length>0){const t=`The following parts of colDef.groupHierarchy are not recognised: ${o.join(", ")}.`;const e=`Choose one of ${[...s].map($w).join(", ")}, or define your own parts in gridOptions.groupHierarchyConfig.`;return`${t}\n${e}`}return null}}};return t};var qw={headerName:void 0,columnGroupShow:void 0,headerStyle:void 0,headerClass:void 0,toolPanelClass:void 0,headerValueGetter:void 0,pivotKeys:void 0,groupId:void 0,colId:void 0,sort:void 0,initialSort:void 0,field:void 0,type:void 0,cellDataType:void 0,tooltipComponent:void 0,tooltipField:void 0,headerTooltip:void 0,headerTooltipValueGetter:void 0,cellClass:void 0,showRowGroup:void 0,filter:void 0,initialAggFunc:void 0,defaultAggFunc:void 0,aggFunc:void 0,pinned:void 0,initialPinned:void 0,chartDataType:void 0,cellAriaRole:void 0,cellEditorPopupPosition:void 0,headerGroupComponent:void 0,headerGroupComponentParams:void 0,cellStyle:void 0,cellRenderer:void 0,cellRendererParams:void 0,cellEditor:void 0,cellEditorParams:void 0,filterParams:void 0,pivotValueColumn:void 0,headerComponent:void 0,headerComponentParams:void 0,floatingFilterComponent:void 0,floatingFilterComponentParams:void 0,tooltipComponentParams:void 0,refData:void 0,columnChooserParams:void 0,children:void 0,sortingOrder:void 0,allowedAggFuncs:void 0,menuTabs:void 0,pivotTotalColumnIds:void 0,cellClassRules:void 0,icons:void 0,sortIndex:void 0,initialSortIndex:void 0,flex:void 0,initialFlex:void 0,width:void 0,initialWidth:void 0,minWidth:void 0,maxWidth:void 0,rowGroupIndex:void 0,initialRowGroupIndex:void 0,pivotIndex:void 0,initialPivotIndex:void 0,suppressColumnsToolPanel:void 0,suppressFiltersToolPanel:void 0,openByDefault:void 0,marryChildren:void 0,suppressStickyLabel:void 0,hide:void 0,initialHide:void 0,rowGroup:void 0,initialRowGroup:void 0,pivot:void 0,initialPivot:void 0,checkboxSelection:void 0,showDisabledCheckboxes:void 0,headerCheckboxSelection:void 0,headerCheckboxSelectionFilteredOnly:void 0,headerCheckboxSelectionCurrentPageOnly:void 0,suppressHeaderMenuButton:void 0,suppressMovable:void 0,lockPosition:void 0,lockVisible:void 0,lockPinned:void 0,unSortIcon:void 0,suppressSizeToFit:void 0,suppressAutoSize:void 0,enableRowGroup:void 0,enablePivot:void 0,enableValue:void 0,editable:void 0,suppressPaste:void 0,suppressNavigable:void 0,enableCellChangeFlash:void 0,rowDrag:void 0,dndSource:void 0,autoHeight:void 0,wrapText:void 0,sortable:void 0,resizable:void 0,singleClickEdit:void 0,floatingFilter:void 0,cellEditorPopup:void 0,suppressFillHandle:void 0,wrapHeaderText:void 0,autoHeaderHeight:void 0,dndSourceOnRowDrag:void 0,valueGetter:void 0,valueSetter:void 0,filterValueGetter:void 0,keyCreator:void 0,valueFormatter:void 0,valueParser:void 0,comparator:void 0,equals:void 0,pivotComparator:void 0,suppressKeyboardEvent:void 0,suppressHeaderKeyboardEvent:void 0,colSpan:void 0,rowSpan:void 0,spanRows:void 0,getQuickFilterText:void 0,onCellValueChanged:void 0,onCellClicked:void 0,onCellDoubleClicked:void 0,onCellContextMenu:void 0,rowDragText:void 0,tooltipValueGetter:void 0,tooltipComponentSelector:void 0,cellRendererSelector:void 0,cellEditorSelector:void 0,suppressSpanHeaderHeight:void 0,useValueFormatterForExport:void 0,useValueParserForImport:void 0,mainMenuItems:void 0,contextMenuItems:void 0,suppressFloatingFilterButton:void 0,suppressHeaderFilterButton:void 0,suppressHeaderContextMenu:void 0,loadingCellRenderer:void 0,loadingCellRendererParams:void 0,loadingCellRendererSelector:void 0,context:void 0,dateComponent:void 0,dateComponentParams:void 0,getFindText:void 0,rowGroupingHierarchy:void 0,groupHierarchy:void 0};var Kw=()=>Object.keys(qw);var _w=()=>({objectName:"colDef",allProperties:Kw(),docsUrl:"column-properties/",deprecations:Ww(),validations:jw()});var Zw=["overlayLoadingTemplate","overlayNoRowsTemplate","gridId","quickFilterText","rowModelType","editType","domLayout","clipboardDelimiter","rowGroupPanelShow","multiSortKey","pivotColumnGroupTotals","pivotRowTotals","pivotPanelShow","fillHandleDirection","groupDisplayType","treeDataDisplayType","treeDataChildrenField","treeDataParentIdField","colResizeDefault","tooltipTrigger","serverSidePivotResultFieldSeparator","columnMenu","tooltipShowMode","invalidEditValueMode","grandTotalRow","themeCssLayer","findSearchValue","styleNonce","renderingMode"];var Qw=["components","rowStyle","context","autoGroupColumnDef","localeText","icons","datasource","dragAndDropImageComponentParams","serverSideDatasource","viewportDatasource","groupRowRendererParams","aggFuncs","fullWidthCellRendererParams","defaultColGroupDef","defaultColDef","defaultCsvExportParams","defaultExcelExportParams","columnTypes","rowClassRules","detailCellRendererParams","loadingCellRendererParams","loadingOverlayComponentParams","noRowsOverlayComponentParams","popupParent","themeStyleContainer","statusBar","chartThemeOverrides","customChartThemes","chartToolPanelsDef","dataTypeDefinitions","advancedFilterParent","advancedFilterBuilderParams","advancedFilterParams","initialState","autoSizeStrategy","selectionColumnDef","findOptions","filterHandlers","groupHierarchyConfig"];var Yw=["sortingOrder","alignedGrids","rowData","columnDefs","excelStyles","pinnedTopRowData","pinnedBottomRowData","chartThemes","rowClass","paginationPageSizeSelector"];var Jw=["rowHeight","detailRowHeight","rowBuffer","headerHeight","groupHeaderHeight","groupLockGroupColumns","floatingFiltersHeight","pivotHeaderHeight","pivotGroupHeaderHeight","groupDefaultExpanded","pivotDefaultExpanded","viewportRowModelPageSize","viewportRowModelBufferSize","autoSizePadding","maxBlocksInCache","maxConcurrentDatasourceRequests","tooltipShowDelay","tooltipHideDelay","cacheOverflowSize","paginationPageSize","cacheBlockSize","infiniteInitialRowCount","serverSideInitialRowCount","scrollbarWidth","asyncTransactionWaitMillis","blockLoadDebounceMillis","keepDetailRowsCount","undoRedoCellEditingLimit","cellFlashDuration","cellFadeDuration","tabIndex","pivotMaxGeneratedColumns","rowDragInsertDelay"];var Xw=["theme","rowSelection"];var tC=["cellSelection","sideBar","rowNumbers","suppressGroupChangesColumnVisibility","groupAggFiltering","suppressStickyTotalRow","groupHideParentOfSingleChild","enableRowPinning"];var eC=["loadThemeGoogleFonts","suppressMakeColumnVisibleAfterUnGroup","suppressRowClickSelection","suppressCellFocus","suppressHeaderFocus","suppressHorizontalScroll","groupSelectsChildren","alwaysShowHorizontalScroll","alwaysShowVerticalScroll","debug","enableBrowserTooltips","enableCellExpressions","groupSuppressBlankHeader","suppressMenuHide","suppressRowDeselection","unSortIcon","suppressMultiSort","alwaysMultiSort","singleClickEdit","suppressLoadingOverlay","suppressNoRowsOverlay","suppressAutoSize","skipHeaderOnAutoSize","suppressColumnMoveAnimation","suppressMoveWhenColumnDragging","suppressMovableColumns","suppressFieldDotNotation","enableRangeSelection","enableRangeHandle","enableFillHandle","suppressClearOnFillReduction","deltaSort","suppressTouch","allowContextMenuWithControlKey","suppressContextMenu","suppressDragLeaveHidesColumns","suppressRowGroupHidesColumns","suppressMiddleClickScrolls","suppressPreventDefaultOnMouseWheel","suppressCopyRowsToClipboard","copyHeadersToClipboard","copyGroupHeadersToClipboard","pivotMode","suppressAggFuncInHeader","suppressColumnVirtualisation","alwaysAggregateAtRootLevel","suppressFocusAfterRefresh","functionsReadOnly","animateRows","groupSelectsFiltered","groupRemoveSingleChildren","groupRemoveLowestSingleChildren","enableRtl","enableCellSpan","suppressClickEdit","rowDragEntireRow","rowDragManaged","suppressRowDrag","suppressMoveWhenRowDragging","rowDragMultiRow","enableGroupEdit","embedFullWidthRows","suppressPaginationPanel","groupHideOpenParents","groupAllowUnbalanced","pagination","paginationAutoPageSize","suppressScrollOnNewData","suppressScrollWhenPopupsAreOpen","purgeClosedRowNodes","cacheQuickFilter","includeHiddenColumnsInQuickFilter","ensureDomOrder","accentedSort","suppressChangeDetection","valueCache","valueCacheNeverExpires","aggregateOnlyChangedColumns","suppressAnimationFrame","suppressExcelExport","suppressCsvExport","includeHiddenColumnsInAdvancedFilter","suppressMultiRangeSelection","enterNavigatesVerticallyAfterEdit","enterNavigatesVertically","suppressPropertyNamesCheck","rowMultiSelectWithClick","suppressRowHoverHighlight","suppressRowTransform","suppressClipboardPaste","suppressLastEmptyLineOnPaste","enableCharts","suppressMaintainUnsortedOrder","enableCellTextSelection","suppressBrowserResizeObserver","suppressMaxRenderedRowRestriction","excludeChildrenWhenTreeDataFiltering","tooltipMouseTrack","tooltipInteraction","keepDetailRows","paginateChildRows","preventDefaultOnContextMenu","undoRedoCellEditing","allowDragFromColumnsToolPanel","pivotSuppressAutoColumn","suppressExpandablePivotGroups","debounceVerticalScrollbar","detailRowAutoHeight","serverSideSortAllLevels","serverSideEnableClientSideSort","serverSideOnlyRefreshFilteredGroups","suppressAggFilteredOnly","showOpenedGroup","suppressClipboardApi","suppressModelUpdateAfterUpdateTransaction","stopEditingWhenCellsLoseFocus","groupMaintainOrder","columnHoverHighlight","readOnlyEdit","suppressRowVirtualisation","enableCellEditingOnBackspace","resetRowDataOnUpdate","removePivotHeaderRowWhenSingleValueColumn","suppressCopySingleCellRanges","suppressGroupRowsSticky","suppressCutToClipboard","rowGroupPanelSuppressSort","allowShowChangeAfterFilter","enableAdvancedFilter","masterDetail","treeData","reactiveCustomComponents","applyQuickFilterBeforePivotOrAgg","suppressServerSideFullWidthLoadingRow","suppressAdvancedFilterEval","loading","maintainColumnOrder","enableStrictPivotColumnOrder","suppressSetFilterByDefault","enableFilterHandlers","suppressStartEditOnTab","hidePaddedHeaderRows","ssrmExpandAllAffectsAllRows"];var iC=["doesExternalFilterPass","processPivotResultColDef","processPivotResultColGroupDef","getBusinessKeyForNode","isRowSelectable","rowDragText","groupRowRenderer","dragAndDropImageComponent","fullWidthCellRenderer","loadingCellRenderer","loadingOverlayComponent","noRowsOverlayComponent","detailCellRenderer","quickFilterParser","quickFilterMatcher","getLocaleText","isExternalFilterPresent","getRowHeight","getRowClass","getRowStyle","getFullRowEditValidationErrors","getContextMenuItems","getMainMenuItems","processRowPostCreate","processCellForClipboard","getGroupRowAgg","isFullWidthRow","sendToClipboard","focusGridInnerElement","navigateToNextHeader","tabToNextHeader","navigateToNextCell","tabToNextCell","processCellFromClipboard","getDocument","postProcessPopup","getChildCount","getDataPath","isRowMaster","postSortRows","processHeaderForClipboard","processUnpinnedColumns","processGroupHeaderForClipboard","paginationNumberFormatter","processDataFromClipboard","getServerSideGroupKey","isServerSideGroup","createChartContainer","getChartToolbarItems","fillOperation","isApplyServerSideTransaction","getServerSideGroupLevelParams","isServerSideGroupOpenByDefault","isGroupOpenByDefault","initialGroupOrderComparator","loadingCellRendererSelector","getRowId","chartMenuItems","groupTotalRow","alwaysPassFilter","isRowPinnable","isRowPinned","isRowValidDropPosition"];var sC=()=>[...Yw,...Qw,...Zw,...Jw,...iC,...eC,...tC,...Xw];var oC=()=>({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."}});function nC(t,e,i){if(typeof e==="number"||e==null){if(e==null){return null}return e>=i?null:`${t}: value should be greater than or equal to ${i}`}return`${t}: value should be a number`}var rC={alignedGrids:"AlignedGrids",allowContextMenuWithControlKey:"ContextMenu",autoSizeStrategy:"ColumnAutoSize",cellSelection:"CellSelection",columnHoverHighlight:"ColumnHover",datasource:"InfiniteRowModel",doesExternalFilterPass:"ExternalFilter",editType:"EditCore",invalidEditValueMode:"EditCore",enableAdvancedFilter:"AdvancedFilter",enableCellSpan:"CellSpan",enableCharts:"IntegratedCharts",enableRangeSelection:"CellSelection",enableRowPinning:"PinnedRow",findSearchValue:"Find",getFullRowEditValidationErrors:"EditCore",getContextMenuItems:"ContextMenu",getLocaleText:"Locale",getMainMenuItems:"ColumnMenu",getRowClass:"RowStyle",getRowStyle:"RowStyle",groupTotalRow:"SharedRowGrouping",grandTotalRow:"ClientSideRowModelHierarchy",initialState:"GridState",isExternalFilterPresent:"ExternalFilter",isRowPinnable:"PinnedRow",isRowPinned:"PinnedRow",localeText:"Locale",masterDetail:"SharedMasterDetail",pagination:"Pagination",pinnedBottomRowData:"PinnedRow",pinnedTopRowData:"PinnedRow",pivotMode:"SharedPivot",pivotPanelShow:"RowGroupingPanel",quickFilterText:"QuickFilter",rowClass:"RowStyle",rowClassRules:"RowStyle",rowData:"ClientSideRowModel",rowDragManaged:"RowDrag",rowGroupPanelShow:"RowGroupingPanel",rowNumbers:"RowNumbers",rowSelection:"SharedRowSelection",rowStyle:"RowStyle",serverSideDatasource:"ServerSideRowModel",sideBar:"SideBar",statusBar:"StatusBar",treeData:"SharedTreeData",undoRedoCellEditing:"UndoRedoEdit",valueCache:"ValueCache",viewportDatasource:"ViewportRowModel"};var lC=()=>{const t={autoSizePadding:{validate({autoSizePadding:t}){return nC("autoSizePadding",t,0)}},cacheBlockSize:{supportedRowModels:["serverSide","infinite"],validate({cacheBlockSize:t}){return nC("cacheBlockSize",t,1)}},cacheOverflowSize:{validate({cacheOverflowSize:t}){return nC("cacheOverflowSize",t,1)}},datasource:{supportedRowModels:["infinite"]},domLayout:{validate:t=>{const e=t.domLayout;const i=["autoHeight","normal","print"];if(e&&!i.includes(e)){return`domLayout must be one of [${i.join()}], currently it's ${e}`}return null}},enableFillHandle:{dependencies:{enableRangeSelection:{required:[true]}}},enableRangeHandle:{dependencies:{enableRangeSelection:{required:[true]}}},enableRangeSelection:{dependencies:{rowDragEntireRow:{required:[false,void 0]}}},enableRowPinning:{supportedRowModels:["clientSide"],validate({enableRowPinning:t,pinnedTopRowData:e,pinnedBottomRowData:i}){if(t&&(e||i)){return"Manual row pinning cannot be used together with pinned row data. Either set `enableRowPinning` to `false`, or remove `pinnedTopRowData` and `pinnedBottomRowData`."}return null}},isRowPinnable:{supportedRowModels:["clientSide"],validate({enableRowPinning:t,isRowPinnable:e,pinnedTopRowData:i,pinnedBottomRowData:s}){if(e&&(i||s)){return"Manual row pinning cannot be used together with pinned row data. Either remove `isRowPinnable`, or remove `pinnedTopRowData` and `pinnedBottomRowData`."}if(!t&&e){return"`isRowPinnable` requires `enableRowPinning` to be set."}return null}},isRowPinned:{supportedRowModels:["clientSide"],validate({enableRowPinning:t,isRowPinned:e,pinnedTopRowData:i,pinnedBottomRowData:s}){if(e&&(i||s)){return"Manual row pinning cannot be used together with pinned row data. Either remove `isRowPinned`, or remove `pinnedTopRowData` and `pinnedBottomRowData`."}if(!t&&e){return"`isRowPinned` requires `enableRowPinning` to be set."}return null}},groupDefaultExpanded:{supportedRowModels:["clientSide"]},groupHideOpenParents:{supportedRowModels:["clientSide","serverSide"],dependencies:{groupTotalRow:{required:[void 0,"bottom"]},treeData:{required:[void 0,false],reason:"Tree Data has values at the group level so it doesn't make sense to hide them."}}},groupHideParentOfSingleChild:{dependencies:{groupHideOpenParents:{required:[void 0,false]}}},groupRemoveLowestSingleChildren:{dependencies:{groupHideOpenParents:{required:[void 0,false]},groupRemoveSingleChildren:{required:[void 0,false]}}},groupRemoveSingleChildren:{dependencies:{groupHideOpenParents:{required:[void 0,false]},groupRemoveLowestSingleChildren:{required:[void 0,false]}}},groupSelectsChildren:{dependencies:{rowSelection:{required:["multiple"]}}},groupHierarchyConfig:{validate({groupHierarchyConfig:t={}},e,i){for(const e of Object.keys(t)){i.validation?.validateColDef(t[e])}return null}},icons:{validate:({icons:t})=>{if(t){if(t["smallDown"]){return ki(262)}if(t["smallLeft"]){return ki(263)}if(t["smallRight"]){return ki(264)}}return null}},infiniteInitialRowCount:{validate({infiniteInitialRowCount:t}){return nC("infiniteInitialRowCount",t,1)}},initialGroupOrderComparator:{supportedRowModels:["clientSide"]},ssrmExpandAllAffectsAllRows:{validate:t=>{if(typeof t.ssrmExpandAllAffectsAllRows==="boolean"){if(t.rowModelType!=="serverSide"){return"'ssrmExpandAllAffectsAllRows' is only supported with the Server Side Row Model."}if(t.ssrmExpandAllAffectsAllRows&&typeof t.getRowId!=="function"){return`'getRowId' callback must be provided for Server Side Row Model grouping to work correctly.`}}return null}},keepDetailRowsCount:{validate({keepDetailRowsCount:t}){return nC("keepDetailRowsCount",t,1)}},paginationPageSize:{validate({paginationPageSize:t}){return nC("paginationPageSize",t,1)}},paginationPageSizeSelector:{validate:t=>{const e=t.paginationPageSizeSelector;if(typeof e==="boolean"||e==null){return null}if(!e.length){return`'paginationPageSizeSelector' cannot be an empty array.\n If you want to hide the page size selector, set paginationPageSizeSelector to false.`}return null}},pivotMode:{dependencies:{treeData:{required:[false,void 0],reason:"Pivot Mode is not supported with Tree Data."}}},quickFilterText:{supportedRowModels:["clientSide"]},rowBuffer:{validate({rowBuffer:t}){return nC("rowBuffer",t,0)}},rowClass:{validate:t=>{const e=t.rowClass;if(typeof e==="function"){return"rowClass should not be a function, please use getRowClass instead"}return null}},rowData:{supportedRowModels:["clientSide"]},rowDragManaged:{supportedRowModels:["clientSide"],dependencies:{pagination:{required:[false,void 0]}}},rowSelection:{validate({rowSelection:t}){if(t&&typeof t==="string"){return'As of version 32.2.1, using `rowSelection` with the values "single" or "multiple" has been deprecated. Use the object value instead.'}if(t&&typeof t!=="object"){return"Expected `RowSelectionOptions` object for the `rowSelection` property."}if(t&&t.mode!=="multiRow"&&t.mode!=="singleRow"){return`Selection mode "${t.mode}" is invalid. Use one of 'singleRow' or 'multiRow'.`}return null}},rowStyle:{validate:t=>{const e=t.rowStyle;if(e&&typeof e==="function"){return"rowStyle should be an object of key/value styles, not be a function, use getRowStyle() instead"}return null}},serverSideDatasource:{supportedRowModels:["serverSide"]},serverSideInitialRowCount:{supportedRowModels:["serverSide"],validate({serverSideInitialRowCount:t}){return nC("serverSideInitialRowCount",t,1)}},serverSideOnlyRefreshFilteredGroups:{supportedRowModels:["serverSide"]},serverSideSortAllLevels:{supportedRowModels:["serverSide"]},sortingOrder:{validate:t=>{const e=t.sortingOrder;if(Array.isArray(e)&&e.length>0){const t=e.filter((t=>!Vw.includes(t)));if(t.length>0){return`sortingOrder must be an array with elements from [${Vw.map(gi).join()}], currently it includes [${t.map(gi).join()}]`}}else if(!Array.isArray(e)||e.length<=0){return`sortingOrder must be an array with at least one element, currently it's ${e}`}return null}},tooltipHideDelay:{validate:t=>{if(t.tooltipHideDelay&&t.tooltipHideDelay<0){return"tooltipHideDelay should not be lower than 0"}return null}},tooltipShowDelay:{validate:t=>{if(t.tooltipShowDelay&&t.tooltipShowDelay<0){return"tooltipShowDelay should not be lower than 0"}return null}},treeData:{supportedRowModels:["clientSide","serverSide"],validate:t=>{const e=t.rowModelType??"clientSide";switch(e){case"clientSide":{const{treeDataChildrenField:e,treeDataParentIdField:i,getDataPath:s,getRowId:o}=t;if(!e&&!i&&!s){return"treeData requires either 'treeDataChildrenField' or 'treeDataParentIdField' or 'getDataPath' in the clientSide row model."}if(e){if(s){return"Cannot use both 'treeDataChildrenField' and 'getDataPath' at the same time."}if(i){return"Cannot use both 'treeDataChildrenField' and 'treeDataParentIdField' at the same time."}}if(i){if(!o){return"getRowId callback not provided, tree data with parent id cannot be built."}if(s){return"Cannot use both 'treeDataParentIdField' and 'getDataPath' at the same time."}}return null}case"serverSide":{const i=`treeData requires 'isServerSideGroup' and 'getServerSideGroupKey' in the ${e} row model.`;return t.isServerSideGroup&&t.getServerSideGroupKey?null:i}}return null}},viewportDatasource:{supportedRowModels:["viewport"]},viewportRowModelBufferSize:{validate({viewportRowModelBufferSize:t}){return nC("viewportRowModelBufferSize",t,0)}},viewportRowModelPageSize:{validate({viewportRowModelPageSize:t}){return nC("viewportRowModelPageSize",t,1)}},rowDragEntireRow:{dependencies:{cellSelection:{required:[void 0]}}},autoGroupColumnDef:{validate({autoGroupColumnDef:t,showOpenedGroup:e}){if(t?.field&&e){return"autoGroupColumnDef.field and showOpenedGroup are not supported when used together."}if(t?.valueGetter&&e){return"autoGroupColumnDef.valueGetter and showOpenedGroup are not supported when used together."}return null}},renderingMode:{validate:t=>{const e=t.renderingMode;const i=["default","legacy"];if(e&&!i.includes(e)){return`renderingMode must be one of [${i.join()}], currently it's ${e}`}return null}},autoSizeStrategy:{validate:({autoSizeStrategy:t})=>{if(!t){return null}const e=["fitCellContents","fitGridWidth","fitProvidedWidth"];const i=t.type;if(i!=="fitCellContents"&&i!=="fitGridWidth"&&i!=="fitProvidedWidth"){return`Invalid Auto-size strategy. \`autoSizeStrategy\` must be one of ${e.map((t=>'"'+t+'"')).join(", ")}, currently it's ${i}`}if(i==="fitProvidedWidth"&&typeof t.width!="number"){return`When using the 'fitProvidedWidth' auto-size strategy, must provide a numeric \`width\`. You provided ${t.width}`}return null}}};const e={};for(const t of eC){e[t]={expectedType:"boolean"}}for(const t of Jw){e[t]={expectedType:"number"}}Re(e,t);return e};var aC=()=>({objectName:"gridOptions",allProperties:[...sC(),...Object.values(Iw)],propertyExceptions:["api"],docsUrl:"grid-options/",deprecations:oC(),validations:lC()});var hC=0;var cC=0;var uC="__ag_grid_instance";var dC=class extends ge{constructor(){super(...arguments);this.beanName="gos";this.domDataKey="__AG_"+Math.random().toString();this.instanceId=cC++;this.gridReadyFired=false;this.queueEvents=[];this.propEventSvc=new t;this.globalEventHandlerFactory=t=>(e,i)=>{if(!this.isAlive()){return}const s=Dw.has(e);if(s&&!t||!s&&t){return}if(!fC(e)){return}const o=(t,e)=>{const i=Iw[t];const s=this.gridOptions[i];if(typeof s==="function"){this.beans.frameworkOverrides.wrapOutgoing((()=>s(e)))}};if(this.gridReadyFired){o(e,i)}else if(e==="gridReady"){o(e,i);this.gridReadyFired=true;for(const t of this.queueEvents){o(t.eventName,t.event)}this.queueEvents=[]}else{this.queueEvents.push({eventName:e,event:i})}}}wireBeans(t){this.gridOptions=t.gridOptions;this.validation=t.validation;this.api=t.gridApi;this.gridId=t.context.getId()}get gridOptionsContext(){return this.gridOptions["context"]}postConstruct(){this.validateGridOptions(this.gridOptions);this.eventSvc.addGlobalListener(this.globalEventHandlerFactory().bind(this),true);this.eventSvc.addGlobalListener(this.globalEventHandlerFactory(true).bind(this),false);this.propEventSvc.setFrameworkOverrides(this.beans.frameworkOverrides);this.addManagedEventListeners({gridOptionsChanged:({options:t})=>{this.updateGridOptions({options:t,force:true,source:"optionsUpdated"})}})}destroy(){super.destroy();this.queueEvents=[]}get(t){return this.gridOptions[t]??Te[t]}getCallback(t){return this.mergeGridCommonParams(this.gridOptions[t])}exists(t){return i(this.gridOptions[t])}mergeGridCommonParams(t){if(t){const e=e=>t(this.addCommon(e));return e}return t}updateGridOptions({options:t,force:e,source:i="api"}){const s={id:hC++,properties:[]};const o=[];const{gridOptions:n,validation:r}=this;for(const l of Object.keys(t)){const a=Me.applyGlobalGridOption(l,t[l]);r?.warnOnInitialPropertyUpdate(i,l);const h=e||typeof a==="object"&&i==="api";const c=n[l];if(h||c!==a){n[l]=a;const t={type:l,currentValue:a,previousValue:c,changeSet:s,source:i};o.push(t)}}this.validateGridOptions(this.gridOptions);s.properties=o.map((t=>t.type));for(const t of o){Ae(this,`Updated property ${t.type} from`,t.previousValue,` to `,t.currentValue);this.propEventSvc.dispatchEvent(t)}}addPropertyEventListener(t,e){this.propEventSvc.addEventListener(t,e)}removePropertyEventListener(t,e){this.propEventSvc.removeEventListener(t,e)}getDomDataKey(){return this.domDataKey}addCommon(t){t.api=this.api;t.context=this.gridOptionsContext;return t}validateOptions(t,e){for(const i of Object.keys(t)){const s=t[i];if(s==null||s===false){continue}let o=e[i];if(typeof o==="function"){o=o(t,this.gridOptions,this.beans)}if(o){this.assertModuleRegistered(o,i)}}}validateGridOptions(t){this.validateOptions(t,rC);this.validation?.processGridOptions(t)}validateColDef(t,e,i){if(i||!this.beans.dataTypeSvc?.isColPendingInference(e)){this.validateOptions(t,Uw);this.validation?.validateColDef(t)}}assertModuleRegistered(t,e){const i=Array.isArray(t)?t.some((t=>this.isModuleRegistered(t))):this.isModuleRegistered(t);if(!i){bi(200,{...this.getModuleErrorParams(),moduleName:t,reasonOrId:e})}return i}getModuleErrorParams(){return{gridId:this.gridId,gridScoped:_e(),rowModelType:this.get("rowModelType"),isUmd:Xe()}}isModuleRegistered(t){return Ke(t,this.gridId,this.get("rowModelType"))}setInstanceDomData(t){t[uC]=this.instanceId}isElementInThisInstance(t){let e=t;while(e){const t=e[uC];if(i(t)){const e=t===this.instanceId;return e}e=e.parentElement}return false}};function fC(t){return!!Iw[t]}function gC(t){const e={"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:e},{tag:"span",ref:"eFilterButton",cls:"ag-header-icon ag-header-cell-filter-button",attrs:e},{tag:"div",ref:"eLabel",cls:"ag-header-cell-label",role:"presentation",children:[{tag:"span",ref:"eText",cls:"ag-header-cell-text"},{tag:"span",ref:"eFilter",cls:"ag-header-icon ag-header-label-icon ag-filter-icon",attrs:e},t?{tag:"ag-sort-indicator",ref:"eSortIndicator"}:null]}]}}var pC=gC(true);var mC=gC(false);var vC=class extends Qo{constructor(){super(...arguments);this.eFilter=jo;this.eFilterButton=jo;this.eSortIndicator=jo;this.eMenu=jo;this.eLabel=jo;this.eText=jo;this.eSortOrder=jo;this.eSortAsc=jo;this.eSortDesc=jo;this.eSortMixed=jo;this.eSortNone=jo;this.isLoadingInnerComponent=false}refresh(t){const e=this.params;this.params=t;if(this.workOutTemplate(t,!!this.beans?.sortSvc)!=this.currentTemplate||this.workOutShowMenu()!=this.currentShowMenu||t.enableSorting!=this.currentSort||this.currentSuppressMenuHide!=null&&this.shouldSuppressMenuHide()!=this.currentSuppressMenuHide||e.enableFilterButton!=t.enableFilterButton||e.enableFilterIcon!=t.enableFilterIcon){return false}if(this.innerHeaderComponent){const e={...t};Re(e,t.innerHeaderComponentParams);this.innerHeaderComponent.refresh?.(e)}else{this.setDisplayName(t)}return true}workOutTemplate(t,e){const i=t.template;if(i){return i?.trim?i.trim():i}else{return e?pC:mC}}init(t){this.params=t;const{sortSvc:e,touchSvc:i,rowNumbersSvc:s,userCompFactory:o}=this.beans;const n=e?.getSortIndicatorSelector();this.currentTemplate=this.workOutTemplate(t,!!n);this.setTemplate(this.currentTemplate,n?[n]:void 0);i?.setupForHeader(this);this.setMenu();this.setupSort();s?.setupForHeader(this);this.setupFilterIcon();this.setupFilterButton();this.workOutInnerHeaderComponent(o,t);this.setDisplayName(t)}workOutInnerHeaderComponent(t,e){const i=Mn(t,e,e);if(!i){return}this.isLoadingInnerComponent=true;i.newAgStackInstance().then((t=>{this.isLoadingInnerComponent=false;if(!t){return}if(this.isAlive()){this.innerHeaderComponent=t;if(this.eText){this.eText.appendChild(t.getGui())}}else{this.destroyBean(t)}}))}setDisplayName(t){const{displayName:e}=t;const i=this.currentDisplayName;this.currentDisplayName=e;if(!this.eText||i===e||this.innerHeaderComponent||this.isLoadingInnerComponent){return}this.eText.textContent=h(e)}addInIcon(t,e,i){const s=od(t,this.beans,i);if(s){e.appendChild(s)}}workOutShowMenu(){return this.params.enableMenu&&!!this.beans.menuSvc?.isHeaderMenuButtonEnabled()}shouldSuppressMenuHide(){return!!this.beans.menuSvc?.isHeaderMenuButtonAlwaysShowEnabled()}setMenu(){if(!this.eMenu){return}this.currentShowMenu=this.workOutShowMenu();if(!this.currentShowMenu){yt(this.eMenu);this.eMenu=void 0;return}const{gos:t,eMenu:e,params:i}=this;const s=bs(t);this.addInIcon(s?"menu":"menuAlt",e,i.column);e.classList.toggle("ag-header-menu-icon",!s);const o=this.shouldSuppressMenuHide();this.currentSuppressMenuHide=o;this.addManagedElementListeners(e,{click:()=>this.showColumnMenu(this.eMenu)});this.toggleMenuAlwaysShow(o)}toggleMenuAlwaysShow(t){this.eMenu?.classList.toggle("ag-header-menu-always-show",t)}showColumnMenu(t){const{currentSuppressMenuHide:e,params:i}=this;if(!e){this.toggleMenuAlwaysShow(true)}i.showColumnMenu(t,(()=>{if(!e){this.toggleMenuAlwaysShow(false)}}))}onMenuKeyboardShortcut(t){const{params:e,gos:i,beans:s,eMenu:o,eFilterButton:n}=this;const r=e.column;const l=bs(i);if(t&&!l){if(s.menuSvc?.isFilterMenuInHeaderEnabled(r)){e.showFilter(n??o??this.getGui());return true}}else if(e.enableMenu){this.showColumnMenu(o??n??this.getGui());return true}return false}setupSort(){const{sortSvc:t}=this.beans;if(!t){return}const{enableSorting:e,column:i}=this.params;this.currentSort=e;if(!this.eSortIndicator){this.eSortIndicator=this.createBean(t.createSortIndicator(true));const{eSortIndicator:e,eSortOrder:i,eSortAsc:s,eSortDesc:o,eSortMixed:n,eSortNone:r}=this;e.attachCustomElements(i,s,o,n,r)}this.eSortIndicator.setupSort(i);if(!this.currentSort){return}t.setupHeader(this,i,this.eLabel)}setupFilterIcon(){const{eFilter:t,params:e}=this;if(!t){return}const i=()=>{const i=e.column.isFilterActive();at(t,i,{skipAriaHidden:true})};this.configureFilter(e.enableFilterIcon,t,i,"filterActive")}setupFilterButton(){const{eFilterButton:t,params:e}=this;if(!t){return}const i=this.configureFilter(e.enableFilterButton,t,this.onFilterChangedButton.bind(this),"filter");if(i){this.addManagedElementListeners(t,{click:()=>e.showFilter(t)})}else{this.eFilterButton=void 0}}configureFilter(t,e,i,s){if(!t){yt(e);return false}const o=this.params.column;this.addInIcon(s,e,o);this.addManagedListeners(o,{filterChanged:i});i();return true}onFilterChangedButton(){const t=this.params.column.isFilterActive();this.eFilterButton.classList.toggle("ag-filter-active",t)}getAnchorElementForMenu(t){const{eFilterButton:e,eMenu:i}=this;if(t){return e??i??this.getGui()}return i??e??this.getGui()}destroy(){super.destroy();if(this.innerHeaderComponent){this.destroyBean(this.innerHeaderComponent);this.innerHeaderComponent=void 0}}};var wC={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`}]};var CC=class extends Qo{constructor(){super(wC);this.agOpened=jo;this.agClosed=jo;this.agLabel=jo;this.isLoadingInnerComponent=false}init(t){const{userCompFactory:e,touchSvc:i}=this.beans;this.params=t;this.checkWarnings();this.workOutInnerHeaderGroupComponent(e,t);this.setupLabel(t);this.addGroupExpandIcon(t);this.setupExpandIcons();i?.setupForHeaderGroup(this)}checkWarnings(){const t=this.params;if(t.template){Ci(89)}}workOutInnerHeaderGroupComponent(t,e){const i=Dn(t,e,e);if(!i){return}this.isLoadingInnerComponent=true;i.newAgStackInstance().then((t=>{this.isLoadingInnerComponent=false;if(!t){return}if(this.isAlive()){this.innerHeaderGroupComponent=t;this.agLabel.appendChild(t.getGui())}else{this.destroyBean(t)}}))}setupExpandIcons(){const{agOpened:t,agClosed:e,params:{columnGroup:i},beans:s}=this;this.addInIcon("columnGroupOpened",t);this.addInIcon("columnGroupClosed",e);const o=t=>{if(Gh(t)){return}const e=!i.isExpanded();s.colGroupSvc.setColumnGroupOpened(i.getProvidedColumnGroup(),e,"uiColumnExpanded")};this.addTouchAndClickListeners(s,e,o);this.addTouchAndClickListeners(s,t,o);const n=t=>{Nh(t)};this.addManagedElementListeners(e,{dblclick:n});this.addManagedElementListeners(t,{dblclick:n});this.addManagedElementListeners(this.getGui(),{dblclick:o});this.updateIconVisibility();const r=i.getProvidedColumnGroup();const l=this.updateIconVisibility.bind(this);this.addManagedListeners(r,{expandedChanged:l,expandableChanged:l})}addTouchAndClickListeners(t,e,i){t.touchSvc?.setupForHeaderGroupElement(this,e,i);this.addManagedElementListeners(e,{click:i})}updateIconVisibility(){const{agOpened:t,agClosed:e,params:{columnGroup:i}}=this;if(i.isExpandable()){const s=i.isExpanded();at(t,s);at(e,!s)}else{at(t,false);at(e,false)}}addInIcon(t,e){const i=od(t,this.beans,null);if(i){e.appendChild(i)}}addGroupExpandIcon(t){if(!t.columnGroup.isExpandable()){const{agOpened:t,agClosed:e}=this;at(t,false);at(e,false)}}setupLabel(t){const{displayName:e,columnGroup:s}=t;const o=this.innerHeaderGroupComponent||this.isLoadingInnerComponent;if(i(e)&&!o){this.agLabel.textContent=h(e)}this.toggleCss("ag-sticky-label",!s.getColGroupDef()?.suppressStickyLabel)}destroy(){super.destroy();if(this.innerHeaderGroupComponent){this.destroyBean(this.innerHeaderGroupComponent);this.innerHeaderGroupComponent=void 0}}};var bC={moduleName:"ColumnHeaderComp",version:ii,userComponents:{agColumnHeader:vC},icons:{menu:"menu",menuAlt:"menu-alt"}};var yC={moduleName:"ColumnGroupHeaderComp",version:ii,userComponents:{agColumnGroupHeader:CC},icons:{columnGroupOpened:"expanded",columnGroupClosed:"contracted"}};var SC=class extends ge{constructor(){super(...arguments);this.beanName="animationFrameSvc";this.p1={list:[],sorted:false};this.p2={list:[],sorted:false};this.f1={list:[],sorted:false};this.destroyTasks=[];this.ticking=false;this.scrollGoingDown=true;this.lastScrollTop=0;this.taskCount=0}setScrollTop(t){this.scrollGoingDown=t>=this.lastScrollTop;if(t===0){this.scrollGoingDown=true}this.lastScrollTop=t}postConstruct(){this.active=!this.gos.get("suppressAnimationFrame");this.batchFrameworkComps=this.beans.frameworkOverrides.batchFrameworkComps}verify(){if(this.active===false){Ci(92)}}createTask(t,e,i,s,o=false){this.verify();let n=i;if(s&&this.batchFrameworkComps){n="f1"}const r={task:t,index:e,createOrder:++this.taskCount,deferred:o};this.addTaskToList(this[n],r);this.schedule()}addTaskToList(t,e){t.list.push(e);t.sorted=false}sortTaskList(t){if(t.sorted){return}const e=this.scrollGoingDown?1:-1;t.list.sort(((t,i)=>{if(t.deferred!==i.deferred){return t.deferred?-1:1}if(t.index!==i.index){return e*(i.index-t.index)}return i.createOrder-t.createOrder}));t.sorted=true}addDestroyTask(t){this.verify();this.destroyTasks.push(t);this.schedule()}executeFrame(t){const{p1:e,p2:i,f1:s,destroyTasks:o,beans:n}=this;const{ctrlsSvc:r,frameworkOverrides:l}=n;const a=e.list;const h=i.list;const c=s.list;const u=Date.now();let d=0;const f=t<=0;const g=r.getScrollFeature();while(f||d{while(f||d{}}else if(o.length){n=o.pop()}else{break}n()}d=Date.now()-u}if(a.length||h.length||c.length||o.length){this.requestFrame()}else{this.ticking=false}}flushAllFrames(){if(!this.active){return}this.executeFrame(-1)}schedule(){if(!this.active){return}if(!this.ticking){this.ticking=true;this.requestFrame()}}requestFrame(){const t=this.executeFrame.bind(this,60);Vt(this.beans,t)}isQueueEmpty(){return!this.ticking}};var xC={moduleName:"AnimationFrame",version:ii,beans:[SC]};var kC=class extends ge{constructor(){super(...arguments);this.beanName="iconSvc"}createIconNoSpan(t,e){return od(t,this.beans,e?.column)}};var RC=class extends ge{constructor(){super(...arguments);this.beanName="touchSvc"}mockBodyContextMenu(t,e){this.mockContextMenu(t,t.eBodyViewport,e)}mockHeaderContextMenu(t,e){this.mockContextMenu(t,t.eGui,e)}mockRowContextMenu(t){if(!lr()){return}const e=(e,i,s)=>{const{rowCtrl:o,cellCtrl:n}=t.getControlsForEventTarget(s?.target??null);if(n?.column){n.dispatchCellContextMenuEvent(s??null)}this.beans.contextMenuSvc?.handleContextMenuMouseEvent(void 0,s,o,n)};this.mockContextMenu(t,t.element,e)}handleCellDoubleClick(t,e){const i=()=>{if(!lr()||Kt("dblclick")){return false}const e=Date.now();const i=e-t.lastIPadMouseClickEvent<200;t.lastIPadMouseClickEvent=e;return i};if(i()){t.onCellDoubleClicked(e);e.preventDefault();return true}return false}setupForHeader(t){const{gos:e,sortSvc:s,menuSvc:o}=this.beans;if(e.get("suppressTouch")){return}const{params:n,eMenu:r,eFilterButton:l}=t;const a=new Zd(t.getGui(),true);t.addDestroyFunc((()=>a.destroy()));const h=t.shouldSuppressMenuHide();const c=h&&i(r)&&n.enableMenu;let u=a;if(c){u=new Zd(r,true);t.addDestroyFunc((()=>u.destroy()))}if(n.enableMenu||o?.isHeaderContextMenuEnabled(n.column)){const e=c?"tap":"longTap";const i=t=>n.showColumnMenuAfterMouseClick(t.touchStart);t.addManagedListeners(u,{[e]:i});t.addManagedListeners(a,{longTap:i})}if(n.enableSorting){const e=t=>{const e=t.touchStart.target;if(h&&(r?.contains(e)||l?.contains(e))){return}s?.progressSort(n.column,false,"uiColumnSorted")};t.addManagedListeners(a,{tap:e})}if(n.enableFilterButton&&l){const e=new Zd(l,true);t.addManagedListeners(e,{tap:()=>n.showFilter(l)});t.addDestroyFunc((()=>e.destroy()))}}setupForHeaderGroup(t){const e=t.params;if(this.beans.menuSvc?.isHeaderContextMenuEnabled(e.columnGroup.getProvidedColumnGroup())){const i=new Zd(e.eGridHeader,true);const s=t=>e.showColumnMenuAfterMouseClick(t.touchStart);t.addManagedListeners(i,{longTap:s});t.addDestroyFunc((()=>i.destroy()))}}setupForHeaderGroupElement(t,e,i){const s=new Zd(e,true);t.addManagedListeners(s,{tap:i});t.addDestroyFunc((()=>s.destroy()))}mockContextMenu(t,e,i){if(!lr()){return}const s=new Zd(e);const o=t=>{if(!ee(this.beans,t.touchEvent)){return}i(void 0,t.touchStart,t.touchEvent)};t.addManagedListeners(s,{longTap:o});t.addDestroyFunc((()=>s.destroy()))}};var EC={moduleName:"Touch",version:ii,beans:[RC]};var FC=class extends ge{constructor(){super(...arguments);this.beanName="cellNavigation"}wireBeans(t){this.rowSpanSvc=t.rowSpanSvc}getNextCellToFocus(t,e,i=false){if(i){return this.getNextCellToFocusWithCtrlPressed(t,e)}return this.getNextCellToFocusWithoutCtrlPressed(t,e)}getNextCellToFocusWithCtrlPressed(t,e){const i=t===Zn.UP;const s=t===Zn.DOWN;const o=t===Zn.LEFT;let n;let r;const{pageBounds:l,gos:a,visibleCols:h,pinnedRowModel:c}=this.beans;const{rowPinned:u}=e;if(i||s){if(u&&c){if(i){r=0}else{r=u==="top"?c.getPinnedTopRowCount()-1:c.getPinnedBottomRowCount()-1}}else{r=i?l.getFirstRow():l.getLastRow()}n=e.column}else{const t=a.get("enableRtl");r=e.rowIndex;const i=o!==t?h.allCols:[...h.allCols].reverse();n=i.find((t=>this.isCellGoodToFocusOn({rowIndex:r,rowPinned:null,column:t})))}return n?{rowIndex:r,rowPinned:u,column:n}:null}getNextCellToFocusWithoutCtrlPressed(t,e){let i=e;let s=false;while(!s){switch(t){case Zn.UP:i=this.getCellAbove(i);break;case Zn.DOWN:i=this.getCellBelow(i);break;case Zn.RIGHT:i=this.gos.get("enableRtl")?this.getCellToLeft(i):this.getCellToRight(i);break;case Zn.LEFT:i=this.gos.get("enableRtl")?this.getCellToRight(i):this.getCellToLeft(i);break;default:i=null;Ci(8,{key:t});break}if(i){s=this.isCellGoodToFocusOn(i)}else{s=true}}return i}isCellGoodToFocusOn(t){const e=t.column;let i;const{pinnedRowModel:s,rowModel:o}=this.beans;switch(t.rowPinned){case"top":i=s?.getPinnedTopRow(t.rowIndex);break;case"bottom":i=s?.getPinnedBottomRow(t.rowIndex);break;default:i=o.getRow(t.rowIndex);break}if(!i){return false}const n=this.isSuppressNavigable(e,i);return!n}getCellToLeft(t){if(!t){return null}const e=this.beans.visibleCols.getColBefore(t.column);if(!e){return null}return{rowIndex:t.rowIndex,column:e,rowPinned:t.rowPinned}}getCellToRight(t){if(!t){return null}const e=this.beans.visibleCols.getColAfter(t.column);if(!e){return null}return{rowIndex:t.rowIndex,column:e,rowPinned:t.rowPinned}}getCellBelow(t){if(!t){return null}const e=this.rowSpanSvc?.getCellEnd(t)??t;const i=ng(this.beans,e,true);if(i){return{rowIndex:i.rowIndex,column:t.column,rowPinned:i.rowPinned}}return null}getCellAbove(t){if(!t){return null}const e=this.rowSpanSvc?.getCellStart(t)??t;const i=sg(this.beans,{rowIndex:e.rowIndex,rowPinned:e.rowPinned},true);if(i){return{rowIndex:i.rowIndex,column:t.column,rowPinned:i.rowPinned}}return null}getNextTabbedCell(t,e){if(e){return this.getNextTabbedCellBackwards(t)}return this.getNextTabbedCellForwards(t)}getNextTabbedCellForwards(t){const{visibleCols:e,pagination:i}=this.beans;const o=e.allCols;let n=t.rowIndex;let r=t.rowPinned;let l=e.getColAfter(t.column);if(!l){l=o[0];const e=ng(this.beans,t,true);if(s(e)){return null}if(!e.rowPinned&&!(i?.isRowInPage(e.rowIndex)??true)){return null}n=e?e.rowIndex:null;r=e?e.rowPinned:null}return{rowIndex:n,column:l,rowPinned:r}}getNextTabbedCellBackwards(t){const{beans:e}=this;const{visibleCols:i,pagination:o}=e;const n=i.allCols;let r=t.rowIndex;let l=t.rowPinned;let a=i.getColBefore(t.column);if(!a){a=Vs(n);const i=sg(e,{rowIndex:t.rowIndex,rowPinned:t.rowPinned},true);if(s(i)){return null}if(!i.rowPinned&&!(o?.isRowInPage(i.rowIndex)??true)){return null}r=i?i.rowIndex:null;l=i?i.rowPinned:null}return{rowIndex:r,column:a,rowPinned:l}}isSuppressNavigable(t,e){const{suppressNavigable:i}=t.colDef;if(typeof i==="boolean"){return i}if(typeof i==="function"){const s=t.createColumnFunctionCallbackParams(e);const o=i;return o(s)}return false}};function MC(t){return t.focusSvc.getFocusedCell()}function PC(t){return t.focusSvc.clearFocusedCell()}function DC(t,e,i,s){t.focusSvc.setFocusedCell({rowIndex:e,column:i,rowPinned:s,forceBrowserFocus:true})}function TC(t,e){return t.navigation?.tabToNextCell(false,e)??false}function BC(t,e){return t.navigation?.tabToNextCell(true,e)??false}function AC(t,e,i=false){const s=t.headerNavigation?.getHeaderPositionForColumn(e,i);if(!s){return}t.focusSvc.focusHeaderPosition({headerPosition:s})}var IC=class extends ge{constructor(){super(...arguments);this.beanName="editModelSvc";this.edits=new Map;this.cellValidations=new zC;this.rowValidations=new HC;this.suspendEdits=false}suspend(t){this.suspendEdits=t}removeEdits({rowNode:t,column:e}){if(!this.hasEdits({rowNode:t})||!t){return}const i=this.getEditRow(t);if(e){i.delete(e)}else{i.clear()}if(i.size===0){this.edits.delete(t)}}getEditRow(t,e={}){if(this.suspendEdits){return void 0}if(this.edits.size===0){return void 0}const i=t&&this.edits.get(t);if(i){return i}if(e.checkSiblings){const e=t.pinnedSibling;if(e){return this.getEditRow(e)}}return void 0}getEditRowDataValue(t,{checkSiblings:e}={}){if(!t||this.edits.size===0){return void 0}const i=this.getEditRow(t);const s=t.pinnedSibling;const o=e&&s&&this.getEditRow(s);if(!i&&!o){return void 0}const n=Object.assign({},t.data);const r=(t,e)=>t.forEach((({pendingValue:t},i)=>{if(t!==$C){e[i.getColId()]=t}}));if(i){r(i,n)}if(o){r(o,n)}return n}getEdit(t,e){const i=this._getEdit(t);return e&&i?{...i}:i}_getEdit(t){if(this.suspendEdits){return void 0}if(this.edits.size===0){return void 0}return t.rowNode&&t.column&&this.getEditRow(t.rowNode)?.get(t.column)}getEditMap(t=true){if(this.suspendEdits||this.edits.size===0){return new Map}if(!t){return this.edits}const e=new Map;this.edits.forEach(((t,i)=>{const s=new Map;t.forEach((({editorState:t,...e},i)=>s.set(i,{...e})));e.set(i,s)}));return e}setEditMap(t){this.edits.clear();t.forEach(((t,e)=>{const i=new Map;t.forEach(((t,e)=>i.set(e,{...t})));this.edits.set(e,i)}))}setEdit(t,e){(this.edits.size===0||!this.edits.has(t.rowNode))&&this.edits.set(t.rowNode,new Map);const i=this._getEdit(t);const s=Object.assign({editorState:{isCancelAfterEnd:void 0,isCancelBeforeStart:void 0},...i,...e});this.getEditRow(t.rowNode).set(t.column,s);return s}clearEditValue(t){const{rowNode:e,column:i}=t;if(e){if(i){const e=this._getEdit(t);if(e){e.editorValue=void 0;e.pendingValue=e.sourceValue;e.state="changed"}}else{this.getEditRow(e)?.forEach((t=>{t.editorValue=void 0;t.pendingValue=t.sourceValue;t.state="changed"}))}}}getState(t){if(this.suspendEdits){return void 0}return this.getEdit(t)?.state}getEditPositions(t){if(this.suspendEdits||(t??this.edits).size===0){return[]}const e=[];(t??this.edits).forEach(((t,i)=>{for(const s of t.keys()){const{editorState:o,...n}=t.get(s);e.push({rowNode:i,column:s,...n})}}));return e}hasRowEdits(t,e){if(this.suspendEdits){return false}if(this.edits.size===0){return false}const i=this.getEditRow(t,e);return!!i}hasEdits(t={},e={}){if(this.suspendEdits){return false}if(this.edits.size===0){return false}const{rowNode:i,column:s}=t;const{withOpenEditor:o}=e;if(i){const n=this.getEditRow(i,e);if(!n){return false}if(s){if(o){return this.getEdit(t)?.state==="editing"}return n.has(s)??false}if(n.size!==0){if(o){return Array.from(n.values()).some((({state:t})=>t==="editing"))}return true}return false}if(o){return this.getEditPositions().some((({state:t})=>t==="editing"))}return this.edits.size>0}start(t){const e=this.getEditRow(t.rowNode)??new Map;const{rowNode:i,column:s}=t;if(s&&!e.has(s)){e.set(s,{editorValue:void 0,pendingValue:$C,sourceValue:this.beans.valueSvc.getValue(s,i,false,"api"),state:"editing",editorState:{isCancelAfterEnd:void 0,isCancelBeforeStart:void 0}})}this.edits.set(i,e)}stop(t){if(!this.hasEdits(t)){return}if(t){this.removeEdits(t)}else{this.clear()}}clear(){for(const t of this.edits.values()){t.clear()}this.edits.clear()}getCellValidationModel(){return this.cellValidations}getRowValidationModel(){return this.rowValidations}setCellValidationModel(t){this.cellValidations=t}setRowValidationModel(t){this.rowValidations=t}destroy(){super.destroy();this.clear()}};var zC=class{constructor(){this.cellValidations=new Map}getCellValidation(t){const{rowNode:e,column:i}=t||{};return this.cellValidations?.get(e)?.get(i)}hasCellValidation(t){if(!t?.rowNode||!t.column){return this.cellValidations.size>0}return!!this.getCellValidation(t)}setCellValidation(t,e){const{rowNode:i,column:s}=t;if(!this.cellValidations.has(i)){this.cellValidations.set(i,new Map)}this.cellValidations.get(i).set(s,e)}clearCellValidation(t){const{rowNode:e,column:i}=t;this.cellValidations.get(e)?.delete(i)}setCellValidationMap(t){this.cellValidations=t}getCellValidationMap(){return this.cellValidations}clearCellValidationMap(){this.cellValidations.clear()}};var HC=class{constructor(){this.rowValidations=new Map}getRowValidation(t){const{rowNode:e}=t||{};return this.rowValidations.get(e)}hasRowValidation(t){if(!t?.rowNode){return this.rowValidations.size>0}return!!this.getRowValidation(t)}setRowValidation({rowNode:t},e){this.rowValidations.set(t,e)}clearRowValidation({rowNode:t}){this.rowValidations.delete(t)}setRowValidationMap(t){this.rowValidations=t}getRowValidationMap(){return this.rowValidations}clearRowValidationMap(){this.rowValidations.clear()}};function OC(t,e={}){const{rowIndex:i,rowId:s,rowCtrl:o,rowPinned:n}=e;if(o){return o}const{rowModel:r,rowRenderer:l}=t;let{rowNode:a}=e;if(!a){if(s){a=ig(t,s,n)}else if(i!=null){a=r.getRow(i)}}return l.getRowCtrls(a?[a]:[])?.[0]}function LC(t,e={}){const{cellCtrl:i,colId:s,columnId:o,column:n}=e;if(i){return i}const r=t.colModel.getCol(s??o??GC(n));const l=e.rowCtrl??OC(t,e);const a=l?.getCellCtrl(r)??void 0;if(a){return a}const h=e.rowNode??l?.rowNode;if(h){return t.rowRenderer.getCellCtrls([h],[r])?.[0]}return void 0}function VC(t){const{editSvc:e}=t;if(e?.isBatchEditing()){ib(t)}else{e?.stopEditing(void 0,{source:"api"})}}function NC(t,e,i){const{gos:s,popupSvc:o}=e;if(!s.get("stopEditingWhenCellsLoseFocus")){return}const n=t=>{const n=t.relatedTarget;if(ar(n)===null){VC(e);return}let r=i.some((t=>t.contains(n)))&&s.isElementInThisInstance(n);if(!r){r=!!o&&(o.getActivePopups().some((t=>t.contains(n)))||o.isElementWithinCustomPopup(n))}if(!r){VC(e)}};for(const e of i){t.addManagedElementListeners(e,{focusout:n})}}function GC(t){if(!t){return void 0}if(typeof t==="string"){return t}return t.getColId()}var $C=Symbol("unedited");function WC(t,e={}){const i=[];const s=t.rowRenderer.getCellCtrls(e.rowNodes,e.columns);for(const t of s){const e=t.comp?.getCellEditor();if(e){i.push({ctrl:t,editor:Kn(e)})}}return i}var UC=(t,e={})=>WC(t,e).map((t=>t.editor));function jC(t,e,i,s,o,n){if(e.length===0&&i?.rowNode&&i?.column){KC(t,i,{key:s,event:o,cellStartedEdit:n})}const{valueSvc:r,editSvc:l,editModelSvc:a}=t;const{rowNode:h,column:c}=i??{};for(const u of e){const{rowNode:e,column:d}=u;const f=LC(t,u);if(!f){if(e&&d){const t=r.getValue(d,e,void 0,"api");const o=i?.rowNode===e&&i?.column===d;const n=o&&s||void 0;const h=n??l?.getCellDataValue(u,false)??r.getValueForDisplay(d,e)?.value??t??$C;a?.setEdit(u,{pendingValue:h,sourceValue:t,state:"editing"})}continue}const g=n&&h===f.rowNode&&f.column===c;KC(t,{rowNode:h,column:f.column},{key:g?s:null,event:g?o:null,cellStartedEdit:g&&n})}}function qC({pendingValue:t,sourceValue:e}){if(t===$C){t=e}return t!==e}function KC(t,e,i){const s=t.gos.get("enableGroupEdit");const{key:o,event:n,cellStartedEdit:r,silent:l}=i??{};const a=LC(t,e);const h=a?.comp?.getCellEditor();const c=ZC(t,e,o,r&&!l);const u=t.editModelSvc?.getEdit(e);let d=c.value;if(d===void 0){d=u?.sourceValue}t.editModelSvc?.setEdit(e,{editorValue:d,state:"editing"});if(h){h.refresh?.(c);return}const f=e.column.getColDef();const g=Ln(t.userCompFactory,f,c);const p=g?.popupFromSelector!=null?g.popupFromSelector:!!f.cellEditorPopup;const m=g?.popupPositionFromSelector!=null?g.popupPositionFromSelector:f.cellEditorPopupPosition;JC(g.params,n);if(a){a.editCompDetails=g;a.onEditorAttachedFuncs.push((()=>a.rangeFeature?.unsetComp()));a.comp?.setEditDetails(g,p,m,t.gos.get("reactiveCustomComponents"));a?.rowCtrl?.refreshRow({suppressFlash:true});const i=t.editModelSvc?.getEdit(e,true);if(!l&&!i?.editorState?.cellStartedEditing){t.editSvc?.dispatchCellEvent(e,n,"cellEditingStarted",s?{value:d}:{});t.editModelSvc?.setEdit(e,{editorState:{cellStartedEditing:true}})}}}function _C(t,e,i){const s={editorValueExists:false};if(rb(t)){const t=e.getValidationErrors?.();if((t?.length??0)>0){return s}}if(i?.isCancelling){return s}if(i?.isStopping){const t=e?.isCancelAfterEnd?.();if(t){return{...s,isCancelAfterEnd:t}}}const o=e.getValue();return{editorValue:o,editorValueExists:true}}function ZC(t,e,i,s){const{valueSvc:o,gos:n,editSvc:r}=t;const l=t.gos.get("enableGroupEdit");const a=LC(t,e);const h=e.rowNode?.rowIndex??void 0;const c=r?.isBatchEditing();const u=t.colModel.getCol(e.column.getId());const{rowNode:d,column:f}=e;const g=a.comp?.getCellEditor();const p=r?.getCellDataValue(e,false);const m=p===void 0?g?_C(t,g)?.editorValue:void 0:p;const v=m===$C?o.getValueForDisplay(u,d)?.value:m;return Rs(n,{value:l?m:v,eventKey:i??null,column:f,colDef:f.getColDef(),rowIndex:h,node:d,data:d.data,cellStartedEdit:s??false,onKeyDown:a?.onKeyDown.bind(a),stopEditing:i=>{r.stopEditing(e,{source:c?"ui":"api",suppressNavigateAfterEdit:i});sb(t,e)},eGridCell:a?.eGui,parseValue:t=>o.parseValue(u,d,t,a?.value),formatValue:a?.formatValue.bind(a),validate:()=>{r?.validateEdit()}})}function QC(t,e){const{editModelSvc:i}=t;i?.getEditMap().forEach(((t,s)=>{t.forEach(((t,o)=>{if(!e&&(t.state==="editing"||t.pendingValue===$C)){return}if(!qC(t)&&(t.state!=="editing"||e)){i?.removeEdits({rowNode:s,column:o})}}))}))}function YC(t,e){const i=e.comp?.getCellEditor();if(!i?.refresh){return}const{eventKey:s,cellStartedEdit:o}=e.editCompDetails.params;const{column:n}=e;const r=ZC(t,e,s,o);const l=n.getColDef();const a=Ln(t.userCompFactory,l,r);i.refresh(JC(a.params,s))}function JC(t,e){if(e instanceof KeyboardEvent&&t.column.getColDef().cellEditor==="agNumberCellEditor"){t.suppressPreventDefault=["-","+",".","e"].includes(e?.key??"")||t.suppressPreventDefault}else{e?.preventDefault?.()}return t}function XC(t,e){for(const i of t.editModelSvc?.getEditPositions()??[]){const s=LC(t,i);if(!s){continue}const o=s.comp?.getCellEditor();if(!o){continue}const{editorValue:n,editorValueExists:r,isCancelAfterEnd:l}=_C(t,o,e);if(l){t.editModelSvc?.setEdit(i,{editorState:{isCancelAfterEnd:l}})}tb(t,i,n,void 0,!r,e)}}function tb(t,e,i,s,o,n){const{editModelSvc:r,valueSvc:l}=t;if(!r){return}const{rowNode:a,column:h}=e;if(!(a&&h)){return}let c=r.getEdit(e,true);if(!c?.sourceValue){c=r.setEdit(e,{sourceValue:l.getValue(h,a,void 0,"api"),pendingValue:c?c.editorValue:$C})}r.setEdit(e,{editorValue:o?c.sourceValue:i});if(n?.persist){eb(t,e)}}function eb(t,e){const{editModelSvc:i}=t;const s=i?.getEdit(e,true);i?.setEdit(e,{pendingValue:s?.editorValue})}function ib(t,e,i){if(!e){e=t.editModelSvc?.getEditPositions()}for(const s of e??[]){sb(t,s,i)}}function sb(t,e,i){const s=t.gos.get("enableGroupEdit");const{editModelSvc:o}=t;const n=LC(t,e);const r=o?.getEdit(e,true);if(!n){if(r){o?.setEdit(e,{state:"changed"})}return}const{comp:l}=n;if(l&&!l.getCellEditor()){n?.refreshCell();if(r){o?.setEdit(e,{state:"changed"});const n=s?ob(i,r):{valueChanged:false,newValue:void 0,oldValue:r.sourceValue};nb(t,e,n,i)}return}if(rb(t)){const t=l?.getCellEditor()?.getValidationErrors?.();const i=o?.getCellValidationModel();if(t?.length){i?.setCellValidation(e,{errorMessages:t})}else{i?.clearCellValidation(e)}}o?.setEdit(e,{state:"changed"});l?.setEditDetails();l?.refreshEditStyles(false,false);n?.refreshCell({force:true,suppressFlash:true});const a=o?.getEdit(e);if(a&&a.state==="changed"){const o=s?ob(i,a):{valueChanged:qC(a)&&!i?.cancel,newValue:i?.cancel||a.editorState.isCancelAfterEnd?void 0:a?.editorValue??r?.pendingValue,oldValue:a?.sourceValue};nb(t,e,o,i)}}function ob(t,e){return t?.cancel?{valueChanged:false,oldValue:e.sourceValue,newValue:void 0,value:e.sourceValue}:{valueChanged:false,oldValue:e.sourceValue,newValue:e.pendingValue,value:e.sourceValue}}function nb(t,e,i,{silent:s,event:o}={}){const{editSvc:n,editModelSvc:r}=t;const l=r?.getEdit(e);const{editorState:a}=l||{};const{isCancelBeforeStart:h}=a||{};if(!s&&!h){n?.dispatchCellEvent(e,o,"cellEditingStopped",i);r?.setEdit(e,{editorState:{cellStoppedEditing:true}})}}function rb(t){const{gos:e,colModel:i}=t;const s=!!e.get("getFullRowEditValidationErrors");const o=i.getColumnDefs()?.filter((t=>t.editable)).some((({cellEditorParams:t})=>{const{minLength:e,maxLength:i,getValidationErrors:s,min:o,max:n}=t||{};return e!==void 0||i!==void 0||s!==void 0||o!==void 0||n!==void 0}));const n=t.gridApi.getCellEditorInstances().some((t=>t.getValidationElement||t.getValidationErrors));return o||s||n}function lb(t,e){if(!(e||rb(t))){return}const i=WC(t);const s=new zC;const{ariaAnnounce:o,localeSvc:n,editModelSvc:r,gos:l}=t;const a=l.get("editType")==="fullRow";const h=le(n);const c=h("ariaValidationErrorPrefix","Cell Editor Validation");for(const t of i){const{ctrl:e,editor:i}=t;const{rowNode:n,column:r}=e;const l=i.getValidationErrors?.()??[];const a=i.getValidationElement?.(false)||!i.isPopup?.()&&e.eGui;if(a){const t=l!=null&&l.length>0;const e=t?l.join(". "):"";A(a,t);if(t){o.announceValue(`${c} ${l}`,"editorValidation")}if(a instanceof HTMLInputElement){a.setCustomValidity(e)}else{a.classList.toggle("invalid",t)}}if(l?.length>0){s.setCellValidation({rowNode:n,column:r},{errorMessages:l})}}XC(t,{persist:false});r?.setCellValidationModel(s);const u=new Set;for(const{ctrl:t}of i){u.add(t.rowCtrl)}if(a){const e=ab(t);r?.setRowValidationModel(e)}for(const t of u.values()){t.rowEditStyleFeature?.applyRowStyles();for(const e of t.getAllCellCtrls()){e.tooltipFeature?.refreshTooltip(true);e.editorTooltipFeature?.refreshTooltip(true);e.editStyleFeature?.applyCellStyles?.()}}}var ab=t=>{const e=new HC;const i=t.gos.get("getFullRowEditValidationErrors");const s=t.editModelSvc?.getEditMap();if(!s){return e}for(const t of s.keys()){const o=s.get(t);if(!o){continue}const n=[];const{rowIndex:r,rowPinned:l}=t;for(const t of o.keys()){const e=o.get(t);if(!e){continue}const{editorValue:i,pendingValue:s,sourceValue:a}=e;const h=i??(s===$C?void 0:s)??a;n.push({column:t,colId:t.getColId(),rowIndex:r,rowPinned:l,oldValue:a,newValue:h})}const a=i?.({editorsState:n})??[];if(a.length>0){e.setRowValidation({rowNode:t},{errorMessages:a})}}return e};function hb(t){lb(t,true);const e=t.editModelSvc?.getCellValidationModel().getCellValidationMap();if(!e){return null}const i=[];e.forEach(((t,e)=>{t.forEach((({errorMessages:t},s)=>{i.push({column:s,rowIndex:e.rowIndex,rowPinned:e.rowPinned,messages:t??null})}))}));return i}function cb(t,e,i,{rowNode:s,column:o},n){const r=Rs(t.gos,{type:i,node:s,data:s.data,value:n,column:o,colDef:o.getColDef(),rowPinned:s.rowPinned,event:e,rowIndex:s.rowIndex});return r}function ub(t,e=false){if(t===Zn.DELETE){return true}if(!e&&t===Zn.BACKSPACE){return rr()}return false}var db=class extends ge{constructor(t,e,i,s){super();this.cellCtrl=t;this.rowNode=i;this.rowCtrl=s;this.beans=e}init(){this.eGui=this.cellCtrl.eGui}onKeyDown(t){const e=t.key;switch(e){case Zn.ENTER:this.onEnterKeyDown(t);break;case Zn.F2:this.onF2KeyDown(t);break;case Zn.ESCAPE:this.onEscapeKeyDown(t);break;case Zn.TAB:this.onTabKeyDown(t);break;case Zn.BACKSPACE:case Zn.DELETE:this.onBackspaceOrDeleteKeyDown(e,t);break;case Zn.DOWN:case Zn.UP:case Zn.RIGHT:case Zn.LEFT:this.onNavigationKeyDown(t,e);break}}onNavigationKeyDown(t,e){const{cellCtrl:i,beans:s}=this;if(s.editSvc?.isEditing(i,{withOpenEditor:true})){return}if(t.shiftKey&&i.isRangeSelectionEnabled()){this.onShiftRangeSelect(t)}else{const o=i.getFocusedCellPosition();s.navigation?.navigateToNextCell(t,e,o,true)}t.preventDefault()}onShiftRangeSelect(t){const{rangeSvc:e,navigation:i}=this.beans;if(!e){return}const s=e.extendLatestRangeInDirection(t);if(!s){return}if(t.key===Zn.LEFT||t.key===Zn.RIGHT){i?.ensureColumnVisible(s.column)}else{i?.ensureRowVisible(s.rowIndex)}}onTabKeyDown(t){this.beans.navigation?.onTabKeyDown(this.cellCtrl,t)}onBackspaceOrDeleteKeyDown(t,e){const{cellCtrl:i,beans:s,rowNode:o}=this;const{gos:n,rangeSvc:r,eventSvc:l,editSvc:a}=s;l.dispatchEvent({type:"keyShortcutChangedCellStart"});if(ub(t,n.get("enableCellEditingOnBackspace"))&&!a?.isEditing(i,{withOpenEditor:true})){if(r&&ns(n)){r.clearCellRangeCellValues({dispatchWrapperEvents:true,wrapperEventSource:"deleteKey"})}else if(i.isCellEditable()){const{column:t}=i;const e=this.beans.valueSvc.getDeleteValue(t,o);o.setDataValue(t,e,"cellClear")}}else if(!a?.isEditing(i,{withOpenEditor:true})){s.editSvc?.startEditing(i,{startedEdit:true,event:e})}l.dispatchEvent({type:"keyShortcutChangedCellEnd"})}onEnterKeyDown(t){const{cellCtrl:e,beans:i}=this;const{editSvc:s,navigation:o}=i;const n=s?.isEditing(e,{withOpenEditor:true});const r=e.rowNode;const l=s?.isRowEditing(r,{withOpenEditor:true});const a=e=>{const i=s?.startEditing(e,{startedEdit:true,event:t,source:"edit"});if(i){t.preventDefault()}};if(n||l){if(this.isCtrlEnter(t)){s?.applyBulkEdit(e,i?.rangeSvc?.getCellRanges()||[]);return}lb(i);if(s?.checkNavWithValidation(void 0,t)==="block-stop"){return}if(s?.isEditing(e,{withOpenEditor:true})){s?.stopEditing(e,{event:t,source:"edit"})}else if(l&&!e.isCellEditable()){s?.stopEditing({rowNode:r},{event:t,source:"edit"})}else{a(e)}}else if(i.gos.get("enterNavigatesVertically")){const i=t.shiftKey?Zn.UP:Zn.DOWN;o?.navigateToNextCell(null,i,e.cellPosition,false)}else{if(s?.hasValidationErrors()){return}if(s?.hasValidationErrors(e)){s.revertSingleCellEdit(e,true)}a(e)}}isCtrlEnter(t){return(t.ctrlKey||t.metaKey)&&t.key===Zn.ENTER}onF2KeyDown(t){const{cellCtrl:e,beans:{editSvc:i}}=this;const s=i?.isEditing();if(s){lb(this.beans);if(i?.checkNavWithValidation(void 0,t)==="block-stop"){return}}i?.startEditing(e,{startedEdit:true,event:t})}onEscapeKeyDown(t){const{cellCtrl:e,beans:{editSvc:i}}=this;if(i?.checkNavWithValidation(e,t)==="block-stop"){i.revertSingleCellEdit(e)}i?.stopEditing(e,{event:t,cancel:true})}processCharacter(t){const e=t.target;const i=e!==this.eGui;const{beans:{editSvc:s},cellCtrl:o}=this;if(i){return}if(s?.isEditing(o,{withOpenEditor:true})){return}const n=t.key;if(n===Zn.SPACE){this.onSpaceKeyDown(t)}else if(s?.isCellEditable(o,"ui")){if(s?.hasValidationErrors()&&!s?.hasValidationErrors(o)){return}s?.startEditing(o,{startedEdit:true,event:t,source:"api"});const e=o.editCompDetails;const i=!e?.params?.suppressPreventDefault;if(i){t.preventDefault()}}}onSpaceKeyDown(t){const{gos:e,editSvc:i}=this.beans;const{rowNode:s}=this.cellCtrl;if(!i?.isEditing(this.cellCtrl,{withOpenEditor:true})&&Di(e)){this.beans.selectionSvc?.handleSelectionEvent(t,s,"spaceKey")}t.preventDefault()}};var fb=class extends ge{constructor(t,e,i){super();this.cellCtrl=t;this.column=i;this.beans=e}onMouseEvent(t,e){if(Gh(e)){return}switch(t){case"click":this.onCellClicked(e);break;case"mousedown":case"touchstart":this.onMouseDown(e);break;case"dblclick":this.onCellDoubleClicked(e);break;case"mouseout":this.onMouseOut(e);break;case"mouseover":this.onMouseOver(e);break}}onCellClicked(t){if(this.beans.touchSvc?.handleCellDoubleClick(this,t)){return}const{eventSvc:e,rangeSvc:i,editSvc:s,editModelSvc:o,frameworkOverrides:n,gos:r}=this.beans;const l=t.ctrlKey||t.metaKey;const{cellCtrl:a}=this;const{column:h,cellPosition:c,rowNode:u}=a;const d=oc(r,h,u,t);if(i&&l&&!d){if(i.getCellRangeCount(c)>1){i.intersectLastRange(true)}}const f=a.createEvent(t,"cellClicked");f.isEventHandlingSuppressed=d;e.dispatchEvent(f);const g=h.getColDef();if(g.onCellClicked){window.setTimeout((()=>{n.wrapOutgoing((()=>{g.onCellClicked(f)}))}),0)}if(d){return}if(o?.getState(a)!=="editing"){const e=s?.isEditing();const i=o?.getCellValidationModel().getCellValidationMap().size??0;const n=o?.getRowValidationModel().getRowValidationMap().size??0;if(e&&(i>0||n>0)){return}if(s?.shouldStartEditing(a,t)){s?.startEditing(a,{event:t})}else if(s?.shouldStopEditing(a,t)){if(this.beans.gos.get("editType")==="fullRow"){s?.stopEditing(a,{event:t,source:"edit"})}else{s?.stopEditing(void 0,{event:t,source:"edit"})}}}}onCellDoubleClicked(t){const{column:e,beans:i,cellCtrl:s}=this;const{eventSvc:o,frameworkOverrides:n,editSvc:r,editModelSvc:l,gos:a}=i;const h=oc(a,s.column,s.rowNode,t);const c=e.getColDef();const u=s.createEvent(t,"cellDoubleClicked");u.isEventHandlingSuppressed=h;o.dispatchEvent(u);if(typeof c.onCellDoubleClicked==="function"){window.setTimeout((()=>{n.wrapOutgoing((()=>{c.onCellDoubleClicked(u)}))}),0)}if(h){return}if(r?.shouldStartEditing(s,t)&&l?.getState(s)!=="editing"){const e=r?.isEditing();const i=l?.getCellValidationModel().getCellValidationMap().size??0;const o=l?.getRowValidationModel().getRowValidationMap().size??0;if(e&&(i>0||o>0)){return}r?.startEditing(s,{event:t})}}onMouseDown(t){const{ctrlKey:e,metaKey:i,shiftKey:s}=t;const o=t.target;const{cellCtrl:n,beans:r}=this;const{eventSvc:l,rangeSvc:a,rowNumbersSvc:h,focusSvc:c,gos:u,editSvc:d}=r;const{column:f,rowNode:g,cellPosition:p}=n;const m=oc(u,f,g,t);const v=()=>{const e=n.createEvent(t,"cellMouseDown");e.isEventHandlingSuppressed=m;l.dispatchEvent(e)};if(m){v();return}if(this.isRightClickInExistingRange(t)){return}const w=a&&!a.isEmpty();const C=this.containsWidget(o);const b=eo(f);if(h&&b&&!h.handleMouseDownOnCell(p,t)){if(a){t.preventDefault()}t.stopImmediatePropagation();return}if(!s||!w){const e=d?.isEditing(n);const i=u.get("enableCellTextSelection");const s=i&&t.defaultPrevented;const r=(or()||s)&&!e&&!lt(o)&&!C;n.focusCell(r,t)}if(s&&w&&!c.isCellFocused(p)){t.preventDefault();const e=c.getFocusedCell();if(e){const{column:i,rowIndex:s,rowPinned:o}=e;if(d?.isEditing(e)){d?.stopEditing(e)}c.setFocusedCell({column:i,rowIndex:s,rowPinned:o,forceBrowserFocus:true,preventScrollOnBrowserFocus:true,sourceEvent:t})}}if(C){return}if(a){if(b){t.preventDefault()}const o=Fs(r,t)&&b;if(s){a.extendLatestRangeToCell(p)}else if(!o){const t=e||i;a.setRangeToCell(p,t)}}v()}isRightClickInExistingRange(t){const{rangeSvc:e}=this.beans;if(e){const i=e.isCellInAnyRange(this.cellCtrl.cellPosition);const s=Fs(this.beans,t);if(i&&s){return true}}return false}containsWidget(t){return ut(t,"ag-selection-checkbox",3)||ut(t,"ag-drag-handle",3)}onMouseOut(t){if(this.mouseStayingInsideCell(t)){return}const{eventSvc:e,colHover:i}=this.beans;e.dispatchEvent(this.cellCtrl.createEvent(t,"cellMouseOut"));i?.clearMouseOver()}onMouseOver(t){if(this.mouseStayingInsideCell(t)){return}const{eventSvc:e,colHover:i}=this.beans;e.dispatchEvent(this.cellCtrl.createEvent(t,"cellMouseOver"));i?.setMouseOver([this.column])}mouseStayingInsideCell(t){if(!t.target||!t.relatedTarget){return false}const e=this.cellCtrl.eGui;const i=e.contains(t.target);const s=e.contains(t.relatedTarget);return i&&s}};var gb=class extends ge{constructor(t,e){super();this.cellCtrl=t;this.beans=e;this.column=t.column;this.rowNode=t.rowNode}setupRowSpan(){this.rowSpan=this.column.getRowSpan(this.rowNode);this.addManagedListeners(this.beans.eventSvc,{newColumnsLoaded:()=>this.onNewColumnsLoaded()})}init(){this.eSetLeft=this.cellCtrl.getRootElement();this.eContent=this.cellCtrl.eGui;const t=this.cellCtrl.getCellSpan();if(!t){this.setupColSpan();this.setupRowSpan()}this.onLeftChanged();this.onWidthChanged();if(!t){this._legacyApplyRowSpan()}if(t){const e=this.refreshSpanHeight.bind(this,t);e();this.addManagedListeners(this.beans.eventSvc,{paginationChanged:e,recalculateRowBounds:e,pinnedHeightChanged:e})}}refreshSpanHeight(t){const e=t.getCellHeight();if(e!=null){this.eContent.style.height=`${e}px`}}onNewColumnsLoaded(){const t=this.column.getRowSpan(this.rowNode);if(this.rowSpan===t){return}this.rowSpan=t;this._legacyApplyRowSpan(true)}onDisplayColumnsChanged(){const t=this.getColSpanningList();if(!Ns(this.colsSpanning,t)){this.colsSpanning=t;this.onWidthChanged();this.onLeftChanged()}}setupColSpan(){if(this.column.getColDef().colSpan==null){return}this.colsSpanning=this.getColSpanningList();this.addManagedListeners(this.beans.eventSvc,{displayedColumnsChanged:this.onDisplayColumnsChanged.bind(this),displayedColumnsWidthChanged:this.onWidthChanged.bind(this)})}onWidthChanged(){if(!this.eContent){return}const t=this.getCellWidth();this.eContent.style.width=`${t}px`}getCellWidth(){if(!this.colsSpanning){return this.column.getActualWidth()}return this.colsSpanning.reduce(((t,e)=>t+e.getActualWidth()),0)}getColSpanningList(){const{column:t,rowNode:e}=this;const i=t.getColSpan(e);const o=[];if(i===1){o.push(t)}else{let e=t;const n=t.getPinned();for(let t=0;e&&tthis.removeFeatures()));this.onSuppressCellFocusChanged(this.beans.gos.get("suppressCellFocus"));this.setupFocus();this.applyStaticCssClasses();this.setWrapText();this.onFirstRightPinnedChanged();this.onLastLeftPinnedChanged();this.onColumnHover();this.setupControlComps();this.setupAutoHeight(s,r);this.refreshFirstAndLastStyles();this.refreshAriaColIndex();this.positionFeature?.init();this.customStyleFeature?.setComp(t);this.editStyleFeature?.setComp(t);this.tooltipFeature?.refreshTooltip();this.keyboardListener?.init();this.rangeFeature?.setComp(t);this.rowResizeFeature?.refreshRowResizer();if(n&&this.isCellEditable()||this.hasEdit&&this.editSvc?.isEditing(this,{withOpenEditor:true})){this.editSvc?.startEditing(this,{startedEdit:false,source:"api",silent:true,continueEditing:true})}else{this.showValue(false,true)}if(this.onCompAttachedFuncs.length){for(const t of this.onCompAttachedFuncs){t()}this.onCompAttachedFuncs=[]}}setupAutoHeight(t,e){this.isAutoHeight=this.beans.rowAutoHeight?.setupCellAutoHeight(this,t,e)??false}getCellAriaRole(){return this.column.getColDef().cellAriaRole??"gridcell"}isCellRenderer(){const t=this.column.getColDef();return t.cellRenderer!=null||t.cellRendererSelector!=null}getValueToDisplay(){return this.valueFormatted??this.value}getDeferLoadingCellRenderer(){const{beans:t,column:e}=this;const{userCompFactory:i,ctrlsSvc:s,eventSvc:o}=t;const n=e.getColDef();const r=this.createCellRendererParams();r.deferRender=true;const l=On(i,n,r);if(s.getGridBodyCtrl()?.scrollFeature?.isScrolling()){let t;const e=new tn((e=>{t=e}));const[i]=this.addManagedListeners(o,{bodyScrollEnd:()=>{t();i()}});return{loadingComp:l,onReady:e}}return{loadingComp:l,onReady:tn.resolve()}}showValue(t,e){const{beans:i,column:s,rowNode:o,rangeFeature:n}=this;const{userCompFactory:r}=i;let l=this.getValueToDisplay();let a;const h=o.stub&&o.groupData?.[s.getId()]==null;const c=s.getColDef();if(h||this.isCellRenderer()){const t=this.createCellRendererParams();if(!h||eo(s)){a=zn(r,c,t)}else{a=On(r,c,t)}}if(!a&&!h&&i.findSvc?.isMatch(o,s)){const t=this.createCellRendererParams();a=zn(r,{...s.getColDef(),cellRenderer:"agFindCellRenderer"},t)}if(this.hasEdit&&this.editSvc.isBatchEditing()&&this.editSvc.isRowEditing(o,{checkSiblings:true})){const t=this.editSvc.prepDetailsDuringBatch(this,{compDetails:a,valueToDisplay:l});if(t){if(t.compDetails){a=t.compDetails}else if(t.valueToDisplay){l=t.valueToDisplay}}}this.comp.setRenderDetails(a,l,t);this.customRowDragComp?.refreshVisibility();if(!e&&n){Vt(i,(()=>n?.refreshHandle()))}this.rowResizeFeature?.refreshRowResizer()}setupControlComps(){const t=this.column.getColDef();this.includeSelection=this.isIncludeControl(this.isCheckboxSelection(t),true);this.includeRowDrag=this.isIncludeControl(t.rowDrag);this.includeDndSource=this.isIncludeControl(t.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 t="ag-cell-value";const e=this.column.getColDef().cellRenderer==="agCheckboxCellRenderer";let i="";if(e){i=" ag-allow-overflow"}return`${t}${i}`}isIncludeControl(t,e=false){const i=this.rowNode.rowPinned==null;return(i||e&&Ad(this.rowNode))&&!!t}isCheckboxSelection(t){const{rowSelection:e,groupDisplayType:i}=this.beans.gridOptions;const s=ts(e);const o=to(this.column);if(i==="custom"&&s!=="selectionColumn"&&o){return false}return t.checkboxSelection||o&&typeof e==="object"&&Ji(e)}refreshShouldDestroy(){const t=this.column.getColDef();const e=this.includeSelection!=this.isIncludeControl(this.isCheckboxSelection(t),true);const i=this.includeRowDrag!=this.isIncludeControl(t.rowDrag);const s=this.includeDndSource!=this.isIncludeControl(t.dndSource);const o=this.isAutoHeight!=this.column.isAutoHeight();return e||i||s||o}onPopupEditorClosed(){const{editSvc:t}=this.beans;if(!t?.isEditing(this,{withOpenEditor:true})){return}t?.stopEditing(this,{source:t?.isBatchEditing()?"ui":"api"})}stopEditing(t=false){const{editSvc:e}=this.beans;return e?.stopEditing(this,{cancel:t,source:e?.isBatchEditing()?"ui":"api"})??false}createCellRendererParams(){const{value:t,valueFormatted:e,column:i,rowNode:s,comp:o,eGui:n,beans:{valueSvc:r,gos:l,editSvc:a}}=this;const h=Rs(l,{value:t,valueFormatted:e,getValue:()=>r.getValueForDisplay(i,s).value,setValue:t=>a?.setDataValue({rowNode:s,column:i},t)||s.setDataValue(i,t),formatValue:this.formatValue.bind(this),data:s.data,node:s,pinned:i.getPinned(),colDef:i.getColDef(),column:i,refreshCell:this.refreshCell.bind(this),eGridCell:n,eParentOfValue:o.getParentOfValue(),registerRowDragger:(t,e,i,s)=>this.registerRowDragger(t,e,s),setTooltip:(t,e)=>{l.assertModuleRegistered("Tooltip",3);if(this.tooltipFeature){this.disableTooltipFeature()}this.enableTooltipFeature(t,e);this.tooltipFeature?.refreshTooltip()}});return h}onCellChanged(t){const e=t.column===this.column;if(e){this.refreshCell({})}}refreshOrDestroyCell(t){if(this.refreshShouldDestroy()){this.rowCtrl?.recreateCell(this)}else{this.refreshCell(t)}if(this.hasEdit&&this.editCompDetails){const{editSvc:t,comp:e}=this;if(!e?.getCellEditor()&&t.isEditing(this,{withOpenEditor:true})){t.startEditing(this,{startedEdit:false,source:"api",silent:true})}}}refreshCell({force:t,suppressFlash:e,newData:i}={}){const{editStyleFeature:s,customStyleFeature:o,rowCtrl:{rowEditStyleFeature:n},beans:{cellFlashSvc:r,filterManager:l},column:a,comp:h,suppressRefreshCell:c,tooltipFeature:u}=this;if(c){return}const{field:d,valueGetter:f,showRowGroup:g,enableCellChangeFlash:p}=a.getColDef();const m=d==null&&f==null&&g==null;const v=t||m||i;const w=!!h;const C=this.updateAndFormatValue(w);const b=v||C;if(!w){return}if(b){this.showValue(!!i,false);const t=l?.isSuppressFlashingCellsBecauseFiltering();const a=!e&&!t&&p;if(a){r?.flashCell(this)}s?.applyCellStyles?.();o?.applyUserStyles();o?.applyClassesFromColDef();n?.applyRowStyles()}u?.refreshTooltip();o?.applyCellClassRules()}isCellEditable(){return this.column.isCellEditable(this.rowNode)}formatValue(t){return this.callValueFormatter(t)??t}callValueFormatter(t){return this.beans.valueSvc.formatValue(this.column,this.rowNode,t)}updateAndFormatValue(t){const e=this.value;const i=this.valueFormatted;const{value:s,valueFormatted:o}=this.beans.valueSvc.getValueForDisplay(this.column,this.rowNode,true);this.value=s;this.valueFormatted=o;if(t){return!this.valuesAreEqual(e,this.value)||this.valueFormatted!=i}return true}valuesAreEqual(t,e){const i=this.column.getColDef();return i.equals?i.equals(t,e):t===e}addDomData(t){const e=this.eGui;Li(this.beans.gos,e,ac,this);t.addDestroyFunc((()=>Li(this.beans.gos,e,ac,null)))}createEvent(t,e){const{rowNode:i,column:s,value:o,beans:n}=this;return cb(n,t,e,{rowNode:i,column:s},o)}processCharacter(t){this.keyboardListener?.processCharacter(t)}onKeyDown(t){this.keyboardListener?.onKeyDown(t)}onMouseEvent(t,e){this.mouseListener?.onMouseEvent(t,e)}getColSpanningList(){return this.positionFeature?.getColSpanningList()??[]}onLeftChanged(){if(!this.comp){return}this.positionFeature?.onLeftChanged()}onDisplayedColumnsChanged(){if(!this.eGui){return}this.refreshAriaColIndex();this.refreshFirstAndLastStyles()}refreshFirstAndLastStyles(){const{comp:t,column:e,beans:i}=this;uu(t,e,i.visibleCols)}refreshAriaColIndex(){const t=this.beans.visibleCols.getAriaColIndex(this.column);K(this.eGui,t)}onWidthChanged(){return this.positionFeature?.onWidthChanged()}getRowPosition(){const{rowIndex:t,rowPinned:e}=this.cellPosition;return{rowIndex:t,rowPinned:e}}updateRangeBordersIfRangeCount(){if(!this.comp){return}this.rangeFeature?.updateRangeBordersIfRangeCount()}onCellSelectionChanged(){if(!this.comp){return}this.rangeFeature?.onCellSelectionChanged()}isRangeSelectionEnabled(){return this.rangeFeature!=null}focusCell(t=false,e){const i=this.editSvc?.allowedFocusTargetOnValidation(this);if(i&&i!==this){return}this.beans.focusSvc.setFocusedCell({...this.getFocusedCellPosition(),forceBrowserFocus:t,sourceEvent:e})}restoreFocus(t=false){const{beans:{editSvc:e,focusSvc:i},comp:s}=this;if(!s||e?.isEditing(this)||!this.isCellFocused()||!i.shouldTakeFocus()){return}const o=()=>{if(!this.isAlive()){return}const t=s.getFocusableElement();if(this.isCellFocused()){t.focus({preventScroll:true})}};if(t){setTimeout(o,0);return}o()}onRowIndexChanged(){this.createCellPosition();this.onCellFocused();this.restoreFocus();this.rangeFeature?.onCellSelectionChanged();this.rowResizeFeature?.refreshRowResizer()}onSuppressCellFocusChanged(t){const e=this.eGui;if(!e){return}if(eo(this.column)){t=true}Ot(e,"tabindex",t?void 0:-1)}onFirstRightPinnedChanged(){if(!this.comp){return}const t=this.column.isFirstRightPinned();this.comp.toggleCss(Cb,t)}onLastLeftPinnedChanged(){if(!this.comp){return}const t=this.column.isLastLeftPinned();this.comp.toggleCss(bb,t)}checkCellFocused(){return this.beans.focusSvc.isCellFocused(this.cellPosition)}isCellFocused(){const t=this.checkCellFocused();this.hasBeenFocused||(this.hasBeenFocused=t);return t}setupFocus(){this.restoreFocus(true);this.onCellFocused(this.focusEventWhileNotReady??void 0)}onCellFocused(t){const{beans:e}=this;if(vu(e)){return}if(!this.comp){if(t){this.focusEventWhileNotReady=t}return}const i=this.isCellFocused();const s=e.editSvc?.isEditing(this)??false;this.comp.toggleCss(wb,i);if(i&&t?.forceBrowserFocus){let e=this.comp.getFocusableElement();if(s){const t=Hr(e,null,true);if(t.length){e=t[0]}}e.focus({preventScroll:!!t.preventScrollOnBrowserFocus})}if(i&&t){this.rowCtrl.announceDescription()}}createCellPosition(){const{rowIndex:t,rowPinned:i}=this.rowNode;this.cellPosition={rowIndex:t,rowPinned:e(i),column:this.column}}applyStaticCssClasses(){const{comp:t}=this;t.toggleCss(pb,true);t.toggleCss(yb,true);const e=this.column.isAutoHeight()==true;t.toggleCss(mb,e);t.toggleCss(vb,!e)}onColumnHover(){this.beans.colHover?.onCellColumnHover(this.column,this.comp)}onColDefChanged(){if(!this.comp){return}if(this.column.isTooltipEnabled()){this.disableTooltipFeature();this.enableTooltipFeature()}else{this.disableTooltipFeature()}this.setWrapText();if(this.editSvc?.isEditing(this)){this.editSvc?.handleColDefChanged(this)}else{this.refreshOrDestroyCell({force:true,suppressFlash:true})}}setWrapText(){const t=this.column.getColDef().wrapText==true;this.comp.toggleCss(Sb,t)}dispatchCellContextMenuEvent(t){const e=this.column.getColDef();const i=this.createEvent(t,"cellContextMenu");const{beans:s}=this;s.eventSvc.dispatchEvent(i);if(e.onCellContextMenu){window.setTimeout((()=>{s.frameworkOverrides.wrapOutgoing((()=>{e.onCellContextMenu(i)}))}),0)}}getCellRenderer(){return this.comp?.getCellRenderer()??null}destroy(){this.onCompAttachedFuncs=[];this.onEditorAttachedFuncs=[];if(this.isCellFocused()&&this.hasBrowserFocus()){this.beans.focusSvc.attemptToRecoverFocus()}super.destroy()}hasBrowserFocus(){return this.eGui?.contains(d(this.beans))??false}createSelectionCheckbox(){const t=this.beans.selectionSvc?.createCheckboxSelectionComponent();if(!t){return void 0}this.beans.context.createBean(t);t.init({rowNode:this.rowNode,column:this.column});return t}createDndSource(){const t=this.beans.registry.createDynamicBean("dndSourceComp",false,this.rowNode,this.column,this.eGui);if(t){this.beans.context.createBean(t)}return t}registerRowDragger(t,e,i){if(this.customRowDragComp){this.customRowDragComp.setDragElement(t,e);return}const s=this.createRowDragComp(t,e,i);if(s){this.customRowDragComp=s;this.addDestroyFunc((()=>{this.beans.context.destroyBean(s);this.customRowDragComp=null}));s.refreshVisibility()}}createRowDragComp(t,e,i){const s=this.beans.rowDragSvc?.createRowDragCompForCell(this.rowNode,this.column,(()=>this.value),t,e,i);if(!s){return void 0}this.beans.context.createBean(s);return s}cellEditorAttached(){for(const t of this.onEditorAttachedFuncs){t()}this.onEditorAttachedFuncs=[]}setFocusedCellPosition(t){}getFocusedCellPosition(){return this.cellPosition}refreshAriaRowIndex(){}getRootElement(){return this.eGui}};function Rb(t,e,i,s,o,n){if(i==null&&e==null){return}const r={};const l={};const a=(t,e)=>{for(const i of t.split(" ")){if(i.trim()==""){continue}e(i)}};if(i){const e=Object.keys(i);for(let o=0;o{c?r[t]=true:l[t]=true}))}}if(e&&n){for(const t of Object.keys(e)){a(t,(t=>{if(!r[t]){l[t]=true}}))}}if(n){Object.keys(l).forEach(n)}Object.keys(r).forEach(o)}function Eb(t){if(t.group){return t.level}const e=t.parent;return e?e.level+1:0}var Fb=class extends ge{constructor(){super(...arguments);this.beanName="rowStyleSvc"}processClassesFromGridOptions(t,e){const i=this.gos;const s=e=>{if(typeof e==="string"){t.push(e)}else if(Array.isArray(e)){for(const i of e){t.push(i)}}};const o=i.get("rowClass");if(o){s(o)}const n=i.getCallback("getRowClass");if(n){const t={data:e.data,node:e,rowIndex:e.rowIndex};const i=n(t);s(i)}}preProcessRowClassRules(t,e){this.processRowClassRules(e,(e=>{t.push(e)}),(()=>{}))}processRowClassRules(t,e,i){const{gos:s,expressionSvc:o}=this.beans;const n=Rs(s,{data:t.data,node:t,rowIndex:t.rowIndex});Rb(o,void 0,s.get("rowClassRules"),n,e,i)}processStylesFromGridOptions(t){const e=this.gos;const i=e.get("rowStyle");const s=e.getCallback("getRowStyle");let o;if(s){const e={data:t.data,node:t,rowIndex:t.rowIndex};o=s(e)}if(o||i){return Object.assign({},i,o)}return void 0}};var Mb=0;var Pb=class extends ge{constructor(t,e,i,s,o){super();this.rowNode=t;this.useAnimationFrameForCreate=s;this.printLayout=o;this.allRowGuis=[];this.active=true;this.centerCellCtrls={list:[],map:{}};this.leftCellCtrls={list:[],map:{}};this.rightCellCtrls={list:[],map:{}};this.slideInAnimation={left:false,center:false,right:false,fullWidth:false};this.fadeInAnimation={left:false,center:false,right:false,fullWidth:false};this.rowDragComps=[];this.lastMouseDownOnDragger=false;this.emptyStyle={};this.updateColumnListsPending=false;this.rowId=null;this.businessKey=null;this.beans=e;this.gos=e.gos;this.paginationPage=e.pagination?.getCurrentPage()??0;this.suppressRowTransform=this.gos.get("suppressRowTransform");this.instanceId=t.id+"-"+Mb++;this.rowId=c(t.id);this.initRowBusinessKey();this.rowFocused=e.focusSvc.isRowFocused(this.rowNode.rowIndex,this.rowNode.rowPinned);this.rowLevel=Eb(this.rowNode);this.setRowType();this.setAnimateFlags(i);this.rowStyles=this.processStylesFromGridOptions();this.rowEditStyleFeature=e.editSvc?.createRowStyleFeature(this,e);this.addListeners()}initRowBusinessKey(){this.businessKeyForNodeFunc=this.gos.get("getBusinessKeyForNode");this.updateRowBusinessKey()}updateRowBusinessKey(){if(typeof this.businessKeyForNodeFunc!=="function"){return}const t=this.businessKeyForNodeFunc(this.rowNode);this.businessKey=c(t)}updateGui(t,e){if(t==="left"){this.leftGui=e}else if(t==="right"){this.rightGui=e}else if(t==="fullWidth"){this.fullWidthGui=e}else{this.centerGui=e}}setComp(t,e,i,s){const{context:o,focusSvc:n}=this.beans;s=Uo(this,o,s);const r={rowComp:t,element:e,containerType:i,compBean:s};this.allRowGuis.push(r);this.updateGui(i,r);this.initialiseRowComp(r);const l=this.rowNode;const a=this.rowType==="FullWidthLoading"||l.stub;const h=!l.data&&this.beans.rowModel.getType()==="infinite";if(!a&&!h&&!l.rowPinned){this.beans.rowRenderer.dispatchFirstDataRenderedEvent()}const c=this.fullWidthGui?.element;if(c){const t=this.beans.editSvc?.isEditing(this);if(!t&&n.isRowFocused(l.rowIndex,l.rowPinned)&&n.shouldTakeFocus()){setTimeout((()=>c.focus({preventScroll:true})),0)}}}unsetComp(t){this.allRowGuis=this.allRowGuis.filter((e=>e.containerType!==t));this.updateGui(t,void 0)}isCacheable(){return this.rowType==="FullWidthDetail"&&this.gos.get("keepDetailRows")}setCached(t){const e=t?"none":"";for(const t of this.allRowGuis){t.element.style.display=e}}initialiseRowComp(t){const e=this.gos;this.onSuppressCellFocusChanged(this.beans.gos.get("suppressCellFocus"));this.listenOnDomOrder(t);this.onRowHeightChanged(t);this.updateRowIndexes(t);this.setFocusedClasses(t);this.setStylesFromGridOptions(false,t);if(Di(e)&&this.rowNode.selectable){this.onRowSelected(t)}this.updateColumnLists(!this.useAnimationFrameForCreate);const i=t.rowComp;const s=this.getInitialRowClasses(t.containerType);for(const t of s){i.toggleCss(t,true)}this.executeSlideAndFadeAnimations(t);if(this.rowNode.group){L(t.element,this.rowNode.expanded==true)}this.setRowCompRowId(i);this.setRowCompRowBusinessKey(i);Li(e,t.element,cc,this);t.compBean.addDestroyFunc((()=>Li(e,t.element,cc,null)));if(this.useAnimationFrameForCreate){this.beans.animationFrameSvc.createTask(this.addHoverFunctionality.bind(this,t),this.rowNode.rowIndex,"p2",false)}else{this.addHoverFunctionality(t)}if(this.isFullWidth()){this.setupFullWidth(t)}if(e.get("rowDragEntireRow")){this.addRowDraggerToRow(t)}if(this.useAnimationFrameForCreate){this.beans.animationFrameSvc.addDestroyTask((()=>{if(!this.isAlive()){return}t.rowComp.toggleCss("ag-after-created",true)}))}this.executeProcessRowPostCreateFunc()}setRowCompRowBusinessKey(t){if(this.businessKey==null){return}t.setRowBusinessKey(this.businessKey)}setRowCompRowId(t){const e=c(this.rowNode.id);this.rowId=e;if(e==null){return}t.setRowId(e)}executeSlideAndFadeAnimations(t){const{containerType:e}=t;const i=this.slideInAnimation[e];if(i){Ce((()=>{this.onTopChanged()}));this.slideInAnimation[e]=false}const s=this.fadeInAnimation[e];if(s){Ce((()=>{t.rowComp.toggleCss("ag-opacity-zero",false)}));this.fadeInAnimation[e]=false}}addRowDraggerToRow(t){const e=this.beans.rowDragSvc?.createRowDragCompForRow(this.rowNode,t.element);if(!e){return}const i=this.createBean(e,this.beans.context);this.rowDragComps.push(i);t.compBean.addDestroyFunc((()=>{this.rowDragComps=this.rowDragComps.filter((t=>t!==i));this.rowEditStyleFeature=this.destroyBean(this.rowEditStyleFeature,this.beans.context);this.destroyBean(i,this.beans.context)}))}setupFullWidth(t){const e=this.getPinnedForContainer(t.containerType);const i=this.createFullWidthCompDetails(t.element,e);t.rowComp.showFullWidth(i)}getFullWidthCellRenderers(){if(this.gos.get("embedFullWidthRows")){return this.allRowGuis.map((t=>t?.rowComp?.getFullWidthCellRenderer()))}return[this.fullWidthGui?.rowComp?.getFullWidthCellRenderer()]}executeProcessRowPostCreateFunc(){const t=this.gos.getCallback("processRowPostCreate");if(!t||!this.areAllContainersReady()){return}const e={eRow:this.centerGui.element,ePinnedLeftRow:this.leftGui?this.leftGui.element:void 0,ePinnedRightRow:this.rightGui?this.rightGui.element:void 0,node:this.rowNode,rowIndex:this.rowNode.rowIndex,addRenderedRowListener:this.addEventListener.bind(this)};t(e)}areAllContainersReady(){const{leftGui:t,centerGui:e,rightGui:i,beans:{visibleCols:s}}=this;const o=!!t||!s.isPinningLeft();const n=!!e;const r=!!i||!s.isPinningRight();return o&&n&&r}isNodeFullWidthCell(){if(this.rowNode.detail){return true}const t=this.beans.gos.getCallback("isFullWidthRow");return t?t({rowNode:this.rowNode}):false}setRowType(){const t=this.rowNode.stub&&!this.gos.get("suppressServerSideFullWidthLoadingRow")&&!this.gos.get("groupHideOpenParents");const e=this.isNodeFullWidthCell();const i=this.gos.get("masterDetail")&&this.rowNode.detail;const s=this.beans.colModel.isPivotMode();const o=Ki(this.gos,this.rowNode,s);if(t){this.rowType="FullWidthLoading"}else if(i){this.rowType="FullWidthDetail"}else if(e){this.rowType="FullWidth"}else if(o){this.rowType="FullWidthGroup"}else{this.rowType="Normal"}}updateColumnLists(t=false,e=false){if(this.isFullWidth()){return}const{animationFrameSvc:i}=this.beans;const s=!i?.active||t||this.printLayout;if(s){this.updateColumnListsImpl(e);return}if(this.updateColumnListsPending){return}i.createTask((()=>{if(!this.active){return}this.updateColumnListsImpl(true)}),this.rowNode.rowIndex,"p1",false);this.updateColumnListsPending=true}getNewCellCtrl(t){const e=this.beans.rowSpanSvc?.isCellSpanning(t,this.rowNode);if(e){return void 0}return new kb(t,this.rowNode,this.beans,this)}isCorrectCtrlForSpan(t){return!this.beans.rowSpanSvc?.isCellSpanning(t.column,this.rowNode)}createCellCtrls(t,e,i=null){const s={list:[],map:{}};const o=(t,e,i)=>{if(i!=null){s.list.splice(i,0,e)}else{s.list.push(e)}s.map[t]=e};const n=[];for(const i of e){const e=i.getInstanceId();let s=t.map[e];if(s&&!this.isCorrectCtrlForSpan(s)){s.destroy();s=void 0}if(!s){s=this.getNewCellCtrl(i)}if(!s){continue}o(e,s)}for(const e of t.list){const t=e.column.getInstanceId();const o=s.map[t]!=null;if(o){continue}const r=!this.isCellEligibleToBeRemoved(e,i);if(r){n.push([t,e])}else{e.destroy()}}if(n.length){for(const[t,e]of n){const i=s.list.findIndex((t=>t.column.getLeft()>e.column.getLeft()));const n=i===-1?void 0:Math.max(i-1,0);o(t,e,n)}}const{focusSvc:r,visibleCols:l}=this.beans;const a=r.getFocusedCell();if(a&&a.column.getPinned()==i){const t=a.column.getInstanceId();const e=s.map[t];if(!e&&l.allCols.includes(a.column)){const e=this.createFocusedCellCtrl();if(e){const i=s.list.findIndex((t=>t.column.getLeft()>e.column.getLeft()));const n=i===-1?void 0:Math.max(i-1,0);o(t,e,n)}}}return s}createFocusedCellCtrl(){const{focusSvc:t,rowSpanSvc:e}=this.beans;const i=t.getFocusedCell();if(!i){return void 0}const s=e?.getCellSpan(i.column,this.rowNode);if(s){if(s.firstNode!==this.rowNode||!s.doesSpanContain(i)){return void 0}}else if(!t.isRowFocused(this.rowNode.rowIndex,this.rowNode.rowPinned)){return void 0}return this.getNewCellCtrl(i.column)}updateColumnListsImpl(t){this.updateColumnListsPending=false;this.createAllCellCtrls();this.setCellCtrls(t)}setCellCtrls(t){for(const e of this.allRowGuis){const i=this.getCellCtrlsForContainer(e.containerType);e.rowComp.setCellCtrls(i,t)}}getCellCtrlsForContainer(t){switch(t){case"left":return this.leftCellCtrls.list;case"right":return this.rightCellCtrls.list;case"fullWidth":return[];case"center":return this.centerCellCtrls.list}}createAllCellCtrls(){const t=this.beans.colViewport;const e=this.beans.visibleCols;if(this.printLayout){this.centerCellCtrls=this.createCellCtrls(this.centerCellCtrls,e.allCols);this.leftCellCtrls={list:[],map:{}};this.rightCellCtrls={list:[],map:{}}}else{const i=t.getColsWithinViewport(this.rowNode);this.centerCellCtrls=this.createCellCtrls(this.centerCellCtrls,i);const s=e.getLeftColsForRow(this.rowNode);this.leftCellCtrls=this.createCellCtrls(this.leftCellCtrls,s,"left");const o=e.getRightColsForRow(this.rowNode);this.rightCellCtrls=this.createCellCtrls(this.rightCellCtrls,o,"right")}}isCellEligibleToBeRemoved(t,e){const i=true;const s=false;const{column:o}=t;if(o.getPinned()!=e){return i}if(!this.isCorrectCtrlForSpan(t)){return i}const{visibleCols:n,editSvc:r}=this.beans;const l=r?.isEditing(t);const a=t.isCellFocused();const h=l||a;if(h){const t=n.allCols;const e=t.indexOf(o)>=0;return e?s:i}return i}getDomOrder(){const t=this.gos.get("ensureDomOrder");return t||Pi(this.gos,"print")}listenOnDomOrder(t){const e=()=>{t.rowComp.setDomOrder(this.getDomOrder())};t.compBean.addManagedPropertyListeners(["domLayout","ensureDomOrder"],e)}setAnimateFlags(t){if(this.rowNode.sticky||!t){return}const e=i(this.rowNode.oldRowTop);const{visibleCols:s}=this.beans;const o=s.isPinningLeft();const n=s.isPinningRight();if(e){const{slideInAnimation:t}=this;if(this.isFullWidth()&&!this.gos.get("embedFullWidthRows")){t.fullWidth=true;return}t.center=true;t.left=o;t.right=n}else{const{fadeInAnimation:t}=this;if(this.isFullWidth()&&!this.gos.get("embedFullWidthRows")){t.fullWidth=true;return}t.center=true;t.left=o;t.right=n}}isFullWidth(){return this.rowType!=="Normal"}refreshFullWidth(){const t=(t,e)=>{if(!t){return true}return t.rowComp.refreshFullWidth((()=>{const i=this.createFullWidthCompDetails(t.element,e);return i.params}))};const e=t(this.fullWidthGui,null);const i=t(this.centerGui,null);const s=t(this.leftGui,"left");const o=t(this.rightGui,"right");const n=e&&i&&s&&o;return n}addListeners(){const{beans:t,gos:e,rowNode:i}=this;const{expansionSvc:s,eventSvc:o,context:n,rowSpanSvc:r}=t;this.addManagedListeners(this.rowNode,{heightChanged:()=>this.onRowHeightChanged(),rowSelected:()=>this.onRowSelected(),rowIndexChanged:this.onRowIndexChanged.bind(this),topChanged:this.onTopChanged.bind(this),...s?.getRowExpandedListeners(this)??{}});if(i.detail){this.addManagedListeners(i.parent,{dataChanged:this.onRowNodeDataChanged.bind(this)})}this.addManagedListeners(i,{dataChanged:this.onRowNodeDataChanged.bind(this),cellChanged:this.postProcessCss.bind(this),rowHighlightChanged:this.onRowNodeHighlightChanged.bind(this),draggingChanged:this.postProcessRowDragging.bind(this),uiLevelChanged:this.onUiLevelChanged.bind(this),rowPinned:this.onRowPinned.bind(this)});this.addManagedListeners(o,{paginationPixelOffsetChanged:this.onPaginationPixelOffsetChanged.bind(this),heightScaleChanged:this.onTopChanged.bind(this),displayedColumnsChanged:this.onDisplayedColumnsChanged.bind(this),virtualColumnsChanged:this.onVirtualColumnsChanged.bind(this),cellFocused:this.onCellFocusChanged.bind(this),cellFocusCleared:this.onCellFocusChanged.bind(this),paginationChanged:this.onPaginationChanged.bind(this),modelUpdated:this.refreshFirstAndLastRowStyles.bind(this),columnMoved:()=>this.updateColumnLists()});if(r){this.addManagedListeners(r,{spannedCellsUpdated:({pinned:t})=>{if(t&&!i.rowPinned){return}this.updateColumnLists()}})}this.addDestroyFunc((()=>{this.rowDragComps=this.destroyBeans(this.rowDragComps,n);this.tooltipFeature=this.destroyBean(this.tooltipFeature,n);this.rowEditStyleFeature=this.destroyBean(this.rowEditStyleFeature,n)}));this.addManagedPropertyListeners(["rowStyle","getRowStyle","rowClass","getRowClass","rowClassRules"],this.postProcessCss.bind(this));this.addManagedPropertyListener("rowDragEntireRow",(()=>{const t=e.get("rowDragEntireRow");if(t){for(const t of this.allRowGuis){this.addRowDraggerToRow(t)}return}this.rowDragComps=this.destroyBeans(this.rowDragComps,n)}));this.addListenersForCellComps()}addListenersForCellComps(){this.addManagedListeners(this.rowNode,{rowIndexChanged:()=>{for(const t of this.getAllCellCtrls()){t.onRowIndexChanged()}},cellChanged:t=>{for(const e of this.getAllCellCtrls()){e.onCellChanged(t)}}})}onRowPinned(){for(const t of this.allRowGuis){t.rowComp.toggleCss("ag-row-pinned-source",!!this.rowNode.pinnedSibling)}}onRowNodeDataChanged(t){this.refreshRow({suppressFlash:!t.update,newData:!t.update})}refreshRow(t){const e=this.isFullWidth()!==!!this.isNodeFullWidthCell();if(e){this.beans.rowRenderer.redrawRow(this.rowNode);return}if(this.isFullWidth()){const t=this.refreshFullWidth();if(!t){this.beans.rowRenderer.redrawRow(this.rowNode)}return}for(const e of this.getAllCellCtrls()){e.refreshCell(t)}for(const t of this.allRowGuis){this.setRowCompRowId(t.rowComp);this.updateRowBusinessKey();this.setRowCompRowBusinessKey(t.rowComp)}this.onRowSelected();this.postProcessCss()}postProcessCss(){this.setStylesFromGridOptions(true);this.postProcessClassesFromGridOptions();this.postProcessRowClassRules();this.rowEditStyleFeature?.applyRowStyles();this.postProcessRowDragging()}onRowNodeHighlightChanged(){const t=this.beans.rowDropHighlightSvc;const e=t?.row===this.rowNode?t.position:"none";const i=e==="above";const s=e==="inside";const o=e==="below";const n=this.gos.get("treeData");const r=n&&(o||i);const l=this.rowNode.uiLevel.toString();for(const t of this.allRowGuis){const e=t.rowComp;e.toggleCss("ag-row-highlight-above",i);e.toggleCss("ag-row-highlight-inside",s);e.toggleCss("ag-row-highlight-below",o);e.toggleCss("ag-row-highlight-indent",r);if(r){t.element.style.setProperty("--ag-row-highlight-level",l)}else{t.element.style.removeProperty("--ag-row-highlight-level")}}}postProcessRowDragging(){const t=this.rowNode.dragging;for(const e of this.allRowGuis){e.rowComp.toggleCss("ag-row-dragging",t)}}onDisplayedColumnsChanged(){this.updateColumnLists(true);this.beans.rowAutoHeight?.requestCheckAutoHeight()}onVirtualColumnsChanged(){this.updateColumnLists(false,true)}getRowPosition(){return{rowPinned:e(this.rowNode.rowPinned),rowIndex:this.rowNode.rowIndex}}onKeyboardNavigate(t){const e=this.findFullWidthInfoForEvent(t);if(!e){return}const{rowGui:i,column:s}=e;const o=i.element;const n=o===t.target;if(!n){return}const r=this.rowNode;const{focusSvc:l,navigation:a}=this.beans;const h=l.getFocusedCell();const c={rowIndex:r.rowIndex,rowPinned:r.rowPinned,column:h?.column??s};a?.navigateToNextCell(t,t.key,c,true);t.preventDefault()}onTabKeyDown(t){if(t.defaultPrevented||Gh(t)){return}const e=this.allRowGuis.find((e=>e.element.contains(t.target)));const i=e?e.element:null;const s=i===t.target;const o=d(this.beans);let n=false;if(i&&o){n=i.contains(o)&&o.classList.contains("ag-cell")}let r=null;if(!s&&!n){r=Lr(this.beans,i,false,t.shiftKey)}if(this.isFullWidth()&&s||!r){this.beans.navigation?.onTabKeyDown(this,t)}}getFullWidthElement(){if(this.fullWidthGui){return this.fullWidthGui.element}return null}getRowYPosition(){const t=this.allRowGuis.find((t=>xt(t.element)))?.element;if(t){return t.getBoundingClientRect().top}return 0}onSuppressCellFocusChanged(t){const e=this.isFullWidth()&&t?void 0:this.gos.get("tabIndex");for(const t of this.allRowGuis){Ot(t.element,"tabindex",e)}}onFullWidthRowFocused(t){const e=this.rowNode;const i=!t?false:this.isFullWidth()&&t.rowIndex===e.rowIndex&&t.rowPinned==e.rowPinned;let s;if(this.fullWidthGui){s=this.fullWidthGui.element}else{const e=this.beans.colModel.getCol(t?.column);const i=e?.pinned;if(i){s=i==="right"?this.rightGui?.element:this.leftGui?.element}else{s=this.centerGui?.element}}if(!s){return}s.classList.toggle("ag-full-width-focus",i);if(i&&t?.forceBrowserFocus){s.focus({preventScroll:true})}}recreateCell(t){this.centerCellCtrls=this.removeCellCtrl(this.centerCellCtrls,t);this.leftCellCtrls=this.removeCellCtrl(this.leftCellCtrls,t);this.rightCellCtrls=this.removeCellCtrl(this.rightCellCtrls,t);t.destroy();this.updateColumnLists()}removeCellCtrl(t,e){const i={list:[],map:{}};for(const s of t.list){if(s===e){continue}i.list.push(s);i.map[s.column.getInstanceId()]=s}return i}onMouseEvent(t,e){switch(t){case"dblclick":this.onRowDblClick(e);break;case"click":this.onRowClick(e);break;case"touchstart":case"mousedown":this.onRowMouseDown(e);break}}createRowEvent(t,e){const{rowNode:i}=this;return Rs(this.gos,{type:t,node:i,data:i.data,rowIndex:i.rowIndex,rowPinned:i.rowPinned,event:e})}createRowEventWithSource(t,e){const i=this.createRowEvent(t,e);i.source=this;return i}onRowDblClick(t){if(Gh(t)){return}const e=this.createRowEventWithSource("rowDoubleClicked",t);e.isEventHandlingSuppressed=this.isSuppressMouseEvent(t);this.beans.eventSvc.dispatchEvent(e)}findFullWidthInfoForEvent(t){if(!t){return}const e=this.findFullWidthRowGui(t.target);const i=this.getColumnForFullWidth(e);if(!e||!i){return}return{rowGui:e,column:i}}findFullWidthRowGui(t){return this.allRowGuis.find((e=>e.element.contains(t)))}getColumnForFullWidth(t){const{visibleCols:e}=this.beans;switch(t?.containerType){case"center":return e.centerCols[0];case"left":return e.leftCols[0];case"right":return e.rightCols[0];default:return e.allCols[0]}}onRowMouseDown(t){this.lastMouseDownOnDragger=ut(t.target,"ag-row-drag",3);if(!this.isFullWidth()||this.isSuppressMouseEvent(t)){return}const{rangeSvc:e,focusSvc:i}=this.beans;e?.removeAllCellRanges();const s=this.findFullWidthInfoForEvent(t);if(!s){return}const{rowGui:o,column:n}=s;const r=o.element;const l=t.target;const a=this.rowNode;let h=t.defaultPrevented||or();if(r&&r.contains(l)&<(l)){h=false}i.setFocusedCell({rowIndex:a.rowIndex,column:n,rowPinned:a.rowPinned,forceBrowserFocus:h})}isSuppressMouseEvent(t){const{gos:e,rowNode:i}=this;if(this.isFullWidth()){const s=this.findFullWidthRowGui(t.target);return nc(e,s?.rowComp.getFullWidthCellRendererParams(),i,t)}const s=hc(e,t.target);return s!=null&&oc(e,s.column,i,t)}onRowClick(t){const e=Gh(t)||this.lastMouseDownOnDragger;if(e){return}const i=this.isSuppressMouseEvent(t);const{eventSvc:s,selectionSvc:o}=this.beans;const n=this.createRowEventWithSource("rowClicked",t);n.isEventHandlingSuppressed=i;s.dispatchEvent(n);if(i){return}o?.handleSelectionEvent(t,this.rowNode,"rowClicked")}setupDetailRowAutoHeight(t){if(this.rowType!=="FullWidthDetail"){return}this.beans.masterDetailSvc?.setupDetailRowAutoHeight(this,t)}createFullWidthCompDetails(t,e){const{gos:i,rowNode:s}=this;const o=Rs(i,{fullWidth:true,data:s.data,node:s,value:s.key,valueFormatted:s.key,eGridCell:t,eParentOfValue:t,pinned:e,addRenderedRowListener:this.addEventListener.bind(this),registerRowDragger:(t,e,i,s)=>this.addFullWidthRowDragging(t,e,i,s),setTooltip:(t,e)=>{i.assertModuleRegistered("Tooltip",3);this.setupFullWidthRowTooltip(t,e)}});const n=this.beans.userCompFactory;switch(this.rowType){case"FullWidthDetail":return In(n,o);case"FullWidthGroup":{const{value:t,valueFormatted:e}=this.beans.valueSvc.getValueForDisplay(void 0,this.rowNode,true);o.value=t;o.valueFormatted=e;return An(n,o)}case"FullWidthLoading":return Bn(n,o);default:return Tn(n,o)}}setupFullWidthRowTooltip(t,e){if(!this.fullWidthGui){return}this.tooltipFeature=this.beans.tooltipSvc?.setupFullWidthRowTooltip(this.tooltipFeature,this,t,e)}addFullWidthRowDragging(t,e,i="",s){const{rowDragSvc:o,context:n}=this.beans;if(!o||!this.isFullWidth()){return}const r=o.createRowDragComp((()=>i),this.rowNode,void 0,t,e,s);this.createBean(r,n);this.addDestroyFunc((()=>{this.destroyBean(r,n)}))}onUiLevelChanged(){const t=Eb(this.rowNode);if(this.rowLevel!=t){const e="ag-row-level-"+t;const i="ag-row-level-"+this.rowLevel;for(const t of this.allRowGuis){t.rowComp.toggleCss(e,true);t.rowComp.toggleCss(i,false)}}this.rowLevel=t}isFirstRowOnPage(){return this.rowNode.rowIndex===this.beans.pageBounds.getFirstRow()}isLastRowOnPage(){return this.rowNode.rowIndex===this.beans.pageBounds.getLastRow()}refreshFirstAndLastRowStyles(){const t=this.isFirstRowOnPage();const e=this.isLastRowOnPage();if(this.firstRowOnPage!==t){this.firstRowOnPage=t;for(const e of this.allRowGuis){e.rowComp.toggleCss("ag-row-first",t)}}if(this.lastRowOnPage!==e){this.lastRowOnPage=e;for(const t of this.allRowGuis){t.rowComp.toggleCss("ag-row-last",e)}}}getAllCellCtrls(){if(this.leftCellCtrls.list.length===0&&this.rightCellCtrls.list.length===0){return this.centerCellCtrls.list}const t=[...this.centerCellCtrls.list,...this.leftCellCtrls.list,...this.rightCellCtrls.list];return t}postProcessClassesFromGridOptions(){const t=[];this.beans.rowStyleSvc?.processClassesFromGridOptions(t,this.rowNode);if(!t.length){return}for(const e of t){for(const t of this.allRowGuis){t.rowComp.toggleCss(e,true)}}}postProcessRowClassRules(){this.beans.rowStyleSvc?.processRowClassRules(this.rowNode,(t=>{for(const e of this.allRowGuis){e.rowComp.toggleCss(t,true)}}),(t=>{for(const e of this.allRowGuis){e.rowComp.toggleCss(t,false)}}))}setStylesFromGridOptions(t,e){if(t){this.rowStyles=this.processStylesFromGridOptions()}this.forEachGui(e,(t=>t.rowComp.setUserStyles(this.rowStyles)))}getPinnedForContainer(t){if(t==="left"||t==="right"){return t}return null}getInitialRowClasses(t){const e=this.getPinnedForContainer(t);const i=this.isFullWidth();const{rowNode:s,beans:o}=this;const n=[];n.push("ag-row");n.push(this.rowFocused?"ag-row-focus":"ag-row-no-focus");if(this.fadeInAnimation[t]){n.push("ag-opacity-zero")}n.push(s.rowIndex%2===0?"ag-row-even":"ag-row-odd");if(s.isRowPinned()){n.push("ag-row-pinned");if(o.pinnedRowModel?.isManual()){n.push("ag-row-pinned-manual")}}if(!s.isRowPinned()&&s.pinnedSibling){n.push("ag-row-pinned-source")}if(s.isSelected()){n.push("ag-row-selected")}if(s.footer){n.push("ag-row-footer")}n.push("ag-row-level-"+this.rowLevel);if(s.stub){n.push("ag-row-loading")}if(i){n.push("ag-full-width-row")}o.expansionSvc?.addExpandedCss(n,s);if(s.dragging){n.push("ag-row-dragging")}const{rowStyleSvc:r}=o;if(r){r.processClassesFromGridOptions(n,s);r.preProcessRowClassRules(n,s)}n.push(this.printLayout?"ag-row-position-relative":"ag-row-position-absolute");if(this.isFirstRowOnPage()){n.push("ag-row-first")}if(this.isLastRowOnPage()){n.push("ag-row-last")}if(i){if(e==="left"){n.push("ag-cell-last-left-pinned")}if(e==="right"){n.push("ag-cell-first-right-pinned")}}return n}processStylesFromGridOptions(){return this.beans.rowStyleSvc?.processStylesFromGridOptions(this.rowNode)??this.emptyStyle}onRowSelected(t){this.beans.selectionSvc?.onRowCtrlSelected(this,(t=>{if(t===this.centerGui||t===this.fullWidthGui){this.announceDescription()}}),t)}announceDescription(){this.beans.selectionSvc?.announceAriaRowSelection(this.rowNode)}addHoverFunctionality(t){if(!this.active){return}const{element:e,compBean:i}=t;const{rowNode:s,beans:o,gos:n}=this;i.addManagedListeners(e,{pointerenter:t=>{if(t.pointerType==="mouse"){s.dispatchRowEvent("mouseEnter")}},pointerleave:t=>{if(t.pointerType==="mouse"){s.dispatchRowEvent("mouseLeave")}}});i.addManagedListeners(s,{mouseEnter:()=>{if(!o.dragSvc?.dragging&&!n.get("suppressRowHoverHighlight")){e.classList.add("ag-row-hover");s.setHovered(true)}},mouseLeave:()=>{this.resetHoveredStatus(e)}})}resetHoveredStatus(t){const e=t?[t]:this.allRowGuis.map((t=>t.element));for(const t of e){t.classList.remove("ag-row-hover")}this.rowNode.setHovered(false)}roundRowTopToBounds(t){const e=this.beans.ctrlsSvc.getScrollFeature().getApproximateVScollPosition();const i=this.applyPaginationOffset(e.top,true)-100;const s=this.applyPaginationOffset(e.bottom,true)+100;return Math.min(Math.max(i,t),s)}forEachGui(t,e){if(t){e(t)}else{for(const t of this.allRowGuis){e(t)}}}isRowRendered(){return this.allRowGuis.length>0}onRowHeightChanged(t){if(this.rowNode.rowHeight==null){return}const e=this.rowNode.rowHeight;const i=this.beans.environment.getDefaultRowHeight();const s=Ti(this.gos);const o=s?Ai(this.beans,this.rowNode).height:void 0;const n=o?`${Math.min(i,o)-2}px`:void 0;this.forEachGui(t,(t=>{t.element.style.height=`${e}px`;if(n){t.element.style.setProperty("--ag-line-height",n)}}))}destroyFirstPass(t=false){this.active=false;const{rowNode:e}=this;if(!t&&Vi(this.gos)&&!e.sticky){const t=e.rowTop!=null;if(t){const t=this.roundRowTopToBounds(e.rowTop);this.setRowTop(t)}else{for(const t of this.allRowGuis){t.rowComp.toggleCss("ag-opacity-zero",true)}}}if(this.fullWidthGui?.element.contains(d(this.beans))){this.beans.focusSvc.attemptToRecoverFocus()}e.setHovered(false);const i=this.createRowEvent("virtualRowRemoved");this.dispatchLocalEvent(i);this.beans.eventSvc.dispatchEvent(i);super.destroy()}destroySecondPass(){this.allRowGuis.length=0;const t=t=>{for(const e of t.list){e.destroy()}return{list:[],map:{}}};this.centerCellCtrls=t(this.centerCellCtrls);this.leftCellCtrls=t(this.leftCellCtrls);this.rightCellCtrls=t(this.rightCellCtrls)}setFocusedClasses(t){this.forEachGui(t,(t=>{t.rowComp.toggleCss("ag-row-focus",this.rowFocused);t.rowComp.toggleCss("ag-row-no-focus",!this.rowFocused)}))}onCellFocusChanged(){const{focusSvc:t}=this.beans;const e=t.isRowFocused(this.rowNode.rowIndex,this.rowNode.rowPinned);if(e!==this.rowFocused){this.rowFocused=e;this.setFocusedClasses()}}onPaginationChanged(){const t=this.beans.pagination?.getCurrentPage()??0;if(this.paginationPage!==t){this.paginationPage=t;this.onTopChanged()}this.refreshFirstAndLastRowStyles()}onTopChanged(){this.setRowTop(this.rowNode.rowTop)}onPaginationPixelOffsetChanged(){this.onTopChanged()}applyPaginationOffset(t,e=false){if(this.rowNode.isRowPinned()||this.rowNode.sticky){return t}const i=this.beans.pageBounds.getPixelOffset();const s=e?1:-1;return t+i*s}setRowTop(t){if(this.printLayout){return}if(i(t)){const e=this.applyPaginationOffset(t);const i=this.rowNode.isRowPinned()||this.rowNode.sticky;const s=i?e:this.beans.rowContainerHeight.getRealPixelPosition(e);const o=`${s}px`;this.setRowTopStyle(o)}}getInitialRowTop(t){return this.suppressRowTransform?this.getInitialRowTopShared(t):void 0}getInitialTransform(t){return this.suppressRowTransform?void 0:`translateY(${this.getInitialRowTopShared(t)})`}getInitialRowTopShared(t){if(this.printLayout){return""}const e=this.rowNode;let i;if(e.sticky){i=e.stickyRowTop}else{const s=this.slideInAnimation[t]?this.roundRowTopToBounds(e.oldRowTop):e.rowTop;const o=this.applyPaginationOffset(s);i=e.isRowPinned()?o:this.beans.rowContainerHeight.getRealPixelPosition(o)}return i+"px"}setRowTopStyle(t){for(const e of this.allRowGuis){this.suppressRowTransform?e.rowComp.setTop(t):e.rowComp.setTransform(`translateY(${t})`)}}getCellCtrl(t,e=false){let i=null;for(const e of this.getAllCellCtrls()){if(e.column==t){i=e}}if(i!=null||e){return i}for(const e of this.getAllCellCtrls()){if(e?.getColSpanningList().indexOf(t)>=0){i=e}}return i}onRowIndexChanged(){if(this.rowNode.rowIndex!=null){this.onCellFocusChanged();this.updateRowIndexes();this.postProcessCss()}}updateRowIndexes(t){const e=this.rowNode.getRowIndexString();if(e===null){return}const i=(this.beans.ctrlsSvc.getHeaderRowContainerCtrl()?.getRowCount()??0)+(this.beans.filterManager?.getHeaderRowCount()??0);const s=this.rowNode.rowIndex%2===0;const o=i+this.rowNode.rowIndex+1;this.forEachGui(t,(t=>{t.rowComp.setRowIndex(e);t.rowComp.toggleCss("ag-row-even",s);t.rowComp.toggleCss("ag-row-odd",!s);U(t.element,o)}))}};var Db=class extends ge{constructor(){super();this.beanName="navigation";this.onPageDown=ye(this.onPageDown,100);this.onPageUp=ye(this.onPageUp,100)}postConstruct(){this.beans.ctrlsSvc.whenReady(this,(t=>{this.gridBodyCon=t.gridBodyCtrl}))}handlePageScrollingKey(t,e=false){const i=t.key;const s=t.altKey;const o=t.ctrlKey||t.metaKey;const n=!!this.beans.rangeSvc&&t.shiftKey;const r=Jc(this.gos,t);let l=false;switch(i){case Zn.PAGE_HOME:case Zn.PAGE_END:if(!o&&!s){this.onHomeOrEndKey(i);l=true}break;case Zn.LEFT:case Zn.RIGHT:case Zn.UP:case Zn.DOWN:if(!r){return false}if(o&&!s&&!n){this.onCtrlUpDownLeftRight(i,r);l=true}break;case Zn.PAGE_DOWN:case Zn.PAGE_UP:if(!o&&!s){l=this.handlePageUpDown(i,r,e)}break}if(l){t.preventDefault()}return l}handlePageUpDown(t,e,i){if(i){e=this.beans.focusSvc.getFocusedCell()}if(!e){return false}if(t===Zn.PAGE_UP){this.onPageUp(e)}else{this.onPageDown(e)}return true}navigateTo({scrollIndex:t,scrollType:e,scrollColumn:s,focusIndex:o,focusColumn:n,isAsync:r,rowPinned:l}){const{scrollFeature:a}=this.gridBodyCon;if(i(s)&&!s.isPinned()){a.ensureColumnVisible(s)}if(i(t)){a.ensureIndexVisible(t,e)}if(!r){a.ensureIndexVisible(o)}const{focusSvc:h,rangeSvc:c}=this.beans;h.setFocusedCell({rowIndex:o,column:n,rowPinned:l,forceBrowserFocus:true});c?.setRangeToCell({rowIndex:o,rowPinned:l,column:n})}onPageDown(t){const e=this.beans;const i=Tb(e);const s=this.getViewportHeight();const{pageBounds:o,rowModel:n,rowAutoHeight:r}=e;const l=o.getPixelOffset();const a=i.top+s;const h=n.getRowIndexAtPixel(a+l);if(r?.active){this.navigateToNextPageWithAutoHeight(t,h)}else{this.navigateToNextPage(t,h)}}onPageUp(t){const e=this.beans;const i=Tb(e);const{pageBounds:s,rowModel:o,rowAutoHeight:n}=e;const r=s.getPixelOffset();const l=i.top;const a=o.getRowIndexAtPixel(l+r);if(n?.active){this.navigateToNextPageWithAutoHeight(t,a,true)}else{this.navigateToNextPage(t,a,true)}}navigateToNextPage(t,e,i=false){const{pageBounds:s,rowModel:o}=this.beans;const n=this.getViewportHeight();const r=s.getFirstRow();const l=s.getLastRow();const a=s.getPixelOffset();const h=o.getRow(t.rowIndex);const c=i?h?.rowHeight-n-a:n-a;const u=h?.rowTop+c;let d=o.getRowIndexAtPixel(u+a);if(d===t.rowIndex){const s=i?-1:1;e=d=t.rowIndex+s}let f;if(i){f="bottom";if(dl){d=l}if(e>l){e=l}}if(this.isRowTallerThanView(o.getRow(d))){e=d;f="top"}this.navigateTo({scrollIndex:e,scrollType:f,scrollColumn:null,focusIndex:d,focusColumn:t.column})}navigateToNextPageWithAutoHeight(t,e,i=false){this.navigateTo({scrollIndex:e,scrollType:i?"bottom":"top",scrollColumn:null,focusIndex:e,focusColumn:t.column});setTimeout((()=>{const s=this.getNextFocusIndexForAutoHeight(t,i);this.navigateTo({scrollIndex:e,scrollType:i?"bottom":"top",scrollColumn:null,focusIndex:s,focusColumn:t.column,isAsync:true})}),50)}getNextFocusIndexForAutoHeight(t,e=false){const i=e?-1:1;const s=this.getViewportHeight();const{pageBounds:o,rowModel:n}=this.beans;const r=o.getLastRow();let l=0;let a=t.rowIndex;while(a>=0&&a<=r){const t=n.getRow(a);if(t){const e=t.rowHeight??0;if(l+e>s){break}l+=e}a+=i}return Math.max(0,Math.min(a,r))}getViewportHeight(){const t=this.beans;const e=Tb(t);const i=this.beans.scrollVisibleSvc.getScrollbarWidth();let s=e.bottom-e.top;if(t.ctrlsSvc.get("center").isHorizontalScrollShowing()){s-=i}return s}isRowTallerThanView(t){if(!t){return false}const e=t.rowHeight;if(typeof e!=="number"){return false}return e>this.getViewportHeight()}onCtrlUpDownLeftRight(t,e){const i=this.beans.cellNavigation.getNextCellToFocus(t,e,true);const s=this.getNormalisedPosition(i);const{rowIndex:o,rowPinned:n,column:r}=s??i;const l=r;this.navigateTo({scrollIndex:o,scrollType:null,scrollColumn:l,focusIndex:o,focusColumn:l,rowPinned:n})}onHomeOrEndKey(t){const e=t===Zn.PAGE_HOME;const{visibleCols:i,pageBounds:s,rowModel:o}=this.beans;const n=i.allCols;const r=e?s.getFirstRow():s.getLastRow();const l=o.getRow(r);if(!l){return}const a=(e?n:[...n].reverse()).find((t=>!t.isSuppressNavigable(l)));if(!a){return}this.navigateTo({scrollIndex:r,scrollType:null,scrollColumn:a,focusIndex:r,focusColumn:a})}onTabKeyDown(t,e){const i=e.shiftKey;const s=this.tabToNextCellCommon(t,i,e);const o=this.beans;const{ctrlsSvc:n,pageBounds:r,focusSvc:l,gos:a}=o;if(s!==false){if(s){e.preventDefault()}else if(s===null){n.get("gridCtrl").allowFocusForNextCoreContainer(i)}return}if(i){const{rowIndex:i,rowPinned:s}=t.getRowPosition();const n=s?i===0:i===r.getFirstRow();if(n){if(a.get("headerHeight")===0||mu(o)){wu(o,true,true)}else{e.preventDefault();l.focusPreviousFromFirstCell(e)}}}else{if(t instanceof kb){t.focusCell(true)}if(l.focusOverlay(false)||wu(o,i)){e.preventDefault()}}}tabToNextCell(t,e){const i=this.beans;const{focusSvc:s,rowRenderer:o}=i;const n=s.getFocusedCell();if(!n){return false}let r=eg(i,n);if(!r){r=o.getRowByPosition(n);if(!r?.isFullWidth()){return false}}return!!this.tabToNextCellCommon(r,t,e,"api")}tabToNextCellCommon(t,e,i,s="ui"){const{editSvc:o,focusSvc:n}=this.beans;let r=void 0;const l=t instanceof kb?t:t.getAllCellCtrls()?.[0];if(o?.isEditing()){r=o?.moveToNextCell(l,e,i,s)}else{r=this.moveToNextCellNotEditing(t,e,i)}if(r===null){return r}return r||!!n.focusedHeader}moveToNextCellNotEditing(t,e,s){const o=this.beans.visibleCols.allCols;let n;if(t instanceof Pb){n={...t.getRowPosition(),column:e?o[0]:Vs(o)};if(this.gos.get("embedFullWidthRows")&&s){const e=t.findFullWidthInfoForEvent(s);if(e){n.column=e.column}}}else{n=t.getFocusedCellPosition()}const r=this.findNextCellToFocusOn(n,{backwards:e,startEditing:false});if(r===false){return null}if(r instanceof kb){r.focusCell(true)}else if(r){return this.tryToFocusFullWidthRow(r,e)}return i(r)}findNextCellToFocusOn(t,{backwards:e,startEditing:s,skipToNextEditableCell:o}){let n=t;const r=this.beans;const{cellNavigation:l,gos:a,focusSvc:h,rowRenderer:c,rangeSvc:u}=r;while(true){if(t!==n){t=n}if(!e){n=this.getLastCellOfColSpan(n)}n=l.getNextTabbedCell(n,e);const d=a.getCallback("tabToNextCell");if(i(d)){const i={backwards:e,editing:s,previousCellPosition:t,nextCellPosition:n?n:null};const o=d(i);if(o===true){n=t}else if(o===false){return false}else{n={rowIndex:o.rowIndex,column:o.column,rowPinned:o.rowPinned}}}if(!n){return null}if(n.rowIndex<0){const t=bu(r);h.focusHeaderPosition({headerPosition:{headerRowIndex:t+n.rowIndex,column:n.column},fromCell:true});return null}const f=a.get("editType")==="fullRow";if(s&&(!f||o)){const t=this.isCellEditable(n);if(!t){continue}}this.ensureCellVisible(n);const g=eg(r,n);if(!g){const t=c.getRowByPosition(n);if(!t||!t.isFullWidth()||s){continue}return{...t.getRowPosition(),column:n?.column}}if(l.isSuppressNavigable(g.column,g.rowNode)){continue}g.setFocusedCellPosition(n);u?.setRangeToCell(n);return g}}isCellEditable(t){const e=this.lookupRowNodeForCell(t);if(e){return t.column.isCellEditable(e)}return false}lookupRowNodeForCell({rowIndex:t,rowPinned:e}){const{pinnedRowModel:i,rowModel:s}=this.beans;if(e==="top"){return i?.getPinnedTopRow(t)}if(e==="bottom"){return i?.getPinnedBottomRow(t)}return s.getRow(t)}navigateToNextCell(t,e,o,n){let r=o;let l=false;const a=this.beans;const{cellNavigation:h,focusSvc:c,gos:u}=a;while(r&&(r===o||!this.isValidNavigateCell(r))){if(u.get("enableRtl")){if(e===Zn.LEFT){r=this.getLastCellOfColSpan(r)}}else if(e===Zn.RIGHT){r=this.getLastCellOfColSpan(r)}r=h.getNextCellToFocus(e,r);l=s(r)}if(l&&t&&t.key===Zn.UP){r={rowIndex:-1,rowPinned:null,column:o.column}}if(n){const s=u.getCallback("navigateToNextCell");if(i(s)){const n={key:e,previousCellPosition:o,nextCellPosition:r?r:null,event:t};const l=s(n);if(i(l)){r={rowPinned:l.rowPinned,rowIndex:l.rowIndex,column:l.column}}else{r=null}}}if(!r){return}if(r.rowIndex<0){const e=bu(a);c.focusHeaderPosition({headerPosition:{headerRowIndex:e+r.rowIndex,column:o.column},event:t||void 0,fromCell:true});return}const d=this.getNormalisedPosition(r);if(d){this.focusPosition(d)}else{this.tryToFocusFullWidthRow(r)}}getNormalisedPosition(t){const e=!!this.beans.spannedRowRenderer?.getCellByPosition(t);if(e){return t}this.ensureCellVisible(t);const i=eg(this.beans,t);if(!i){return null}t=i.getFocusedCellPosition();this.ensureCellVisible(t);return t}tryToFocusFullWidthRow(t,e){const{visibleCols:i,rowRenderer:s,focusSvc:o,eventSvc:n}=this.beans;const r=i.allCols;const l=s.getRowByPosition(t);if(!l?.isFullWidth()){return false}const a=o.getFocusedCell();const h={rowIndex:t.rowIndex,rowPinned:t.rowPinned,column:t.column||(e?Vs(r):r[0])};this.focusPosition(h);const c=e==null?a!=null&&Qf(h,a):e;n.dispatchEvent({type:"fullWidthRowFocused",rowIndex:h.rowIndex,rowPinned:h.rowPinned,column:h.column,isFullWidthCell:true,fromBelow:c});return true}focusPosition(t){const{focusSvc:e,rangeSvc:i}=this.beans;e.setFocusedCell({rowIndex:t.rowIndex,column:t.column,rowPinned:t.rowPinned,forceBrowserFocus:true});i?.setRangeToCell(t)}isValidNavigateCell(t){const e=tg(this.beans,t);return!!e}getLastCellOfColSpan(t){const e=eg(this.beans,t);if(!e){return t}const i=e.getColSpanningList();if(i.length===1){return t}return{rowIndex:t.rowIndex,column:Vs(i),rowPinned:t.rowPinned}}ensureCellVisible(t){const e=Ni(this.gos);const i=this.beans.rowModel.getRow(t.rowIndex);const o=e&&i?.sticky;const{scrollFeature:n}=this.gridBodyCon;if(!o&&s(t.rowPinned)){n.ensureIndexVisible(t.rowIndex)}if(!t.column.isPinned()){n.ensureColumnVisible(t.column)}}ensureColumnVisible(t){const e=this.gridBodyCon.scrollFeature;if(!t.isPinned()){e.ensureColumnVisible(t)}}ensureRowVisible(t){const e=this.gridBodyCon.scrollFeature;e.ensureIndexVisible(t)}};function Tb(t){return t.ctrlsSvc.getScrollFeature().getVScrollPosition()}var Bb={moduleName:"KeyboardNavigation",version:ii,beans:[Db,FC,kw],apiFunctions:{getFocusedCell:MC,clearFocusedCell:PC,setFocusedCell:DC,setFocusedHeader:AC,tabToNextCell:TC,tabToPreviousCell:BC}};var Ab=class extends ge{constructor(){super(...arguments);this.beanName="pageBoundsListener"}postConstruct(){this.addManagedEventListeners({modelUpdated:this.onModelUpdated.bind(this),recalculateRowBounds:this.calculatePages.bind(this)});this.onModelUpdated()}onModelUpdated(t){this.calculatePages();this.eventSvc.dispatchEvent({type:"paginationChanged",animate:t?.animate??false,newData:t?.newData??false,newPage:t?.newPage??false,newPageSize:t?.newPageSize??false,keepRenderedRows:t?.keepRenderedRows??false})}calculatePages(){const{pageBounds:t,pagination:e,rowModel:i}=this.beans;if(e){e.calculatePages()}else{t.calculateBounds(0,i.getRowCount()-1)}}};var Ib=class extends ge{constructor(){super(...arguments);this.beanName="pageBounds";this.pixelOffset=0}getFirstRow(){return this.topRowBounds?.rowIndex??-1}getLastRow(){return this.bottomRowBounds?.rowIndex??-1}getCurrentPageHeight(){const{topRowBounds:t,bottomRowBounds:e}=this;if(!t||!e){return 0}return Math.max(e.rowTop+e.rowHeight-t.rowTop,0)}getCurrentPagePixelRange(){const{topRowBounds:t,bottomRowBounds:e}=this;const i=t?.rowTop??0;const s=e?e.rowTop+e.rowHeight:0;return{pageFirstPixel:i,pageLastPixel:s}}calculateBounds(t,e){const{rowModel:i}=this.beans;const s=i.getRowBounds(t);if(s){s.rowIndex=t}this.topRowBounds=s;const o=i.getRowBounds(e);if(o){o.rowIndex=e}this.bottomRowBounds=o;this.calculatePixelOffset()}getPixelOffset(){return this.pixelOffset}calculatePixelOffset(){const t=this.topRowBounds?.rowTop??0;if(this.pixelOffset===t){return}this.pixelOffset=t;this.eventSvc.dispatchEvent({type:"paginationPixelOffsetChanged"})}};var zb=`.ag-pinned-left-floating-bottom,.ag-pinned-left-floating-top,.ag-pinned-right-floating-bottom,.ag-pinned-right-floating-top{min-width:0;overflow:hidden;position:relative}.ag-pinned-left-sticky-top,.ag-pinned-right-sticky-top{height:100%;overflow:hidden;position:relative}.ag-sticky-bottom-full-width-container,.ag-sticky-top-full-width-container{height:100%;overflow:hidden;width:100%}.ag-pinned-left-header,.ag-pinned-right-header{display:inline-block;height:100%;overflow:hidden;position:relative}.ag-body-horizontal-scroll:not(.ag-scrollbar-invisible){.ag-horizontal-left-spacer:not(.ag-scroller-corner){border-right:var(--ag-pinned-column-border)}.ag-horizontal-right-spacer:not(.ag-scroller-corner){border-left:var(--ag-pinned-column-border)}}.ag-pinned-right-header{border-left:var(--ag-pinned-column-border)}.ag-pinned-left-header{border-right:var(--ag-pinned-column-border)}.ag-cell.ag-cell-first-right-pinned:not(.ag-cell-range-left,.ag-cell-range-single-cell,.ag-cell-focus:not(.ag-cell-range-selected):focus-within){border-left:var(--ag-pinned-column-border)}.ag-cell.ag-cell-last-left-pinned:not(.ag-cell-range-right,.ag-cell-range-single-cell,.ag-cell-focus:not(.ag-cell-range-selected):focus-within){border-right:var(--ag-pinned-column-border)}.ag-pinned-left-header .ag-header-cell-resize:after{left:calc(50% - var(--ag-header-column-resize-handle-width))}.ag-pinned-right-header .ag-header-cell-resize:after{left:50%}.ag-pinned-left-header .ag-header-cell-resize{right:-3px}.ag-pinned-right-header .ag-header-cell-resize{left:-3px}`;var Hb=class extends ge{constructor(t,e){super();this.isLeft=t;this.elements=e;this.getWidth=t?()=>this.beans.pinnedCols.leftWidth:()=>this.beans.pinnedCols.rightWidth}postConstruct(){this.addManagedEventListeners({[`${this.isLeft?"left":"right"}PinnedWidthChanged`]:this.onPinnedWidthChanged.bind(this)})}onPinnedWidthChanged(){const t=this.getWidth();const e=t>0;for(const i of this.elements){if(i){at(i,e);At(i,t)}}}};var Ob=class extends ge{constructor(){super(...arguments);this.beanName="pinnedCols"}postConstruct(){this.beans.ctrlsSvc.whenReady(this,(t=>{this.gridBodyCtrl=t.gridBodyCtrl}));const t=this.checkContainerWidths.bind(this);this.addManagedEventListeners({displayedColumnsChanged:t,displayedColumnsWidthChanged:t});this.addManagedPropertyListener("domLayout",t)}checkContainerWidths(){const{gos:t,visibleCols:e,eventSvc:i}=this.beans;const s=Pi(t,"print");const o=s?0:e.getColsLeftWidth();const n=s?0:e.getDisplayedColumnsRightWidth();if(o!=this.leftWidth){this.leftWidth=o;i.dispatchEvent({type:"leftPinnedWidthChanged"})}if(n!=this.rightWidth){this.rightWidth=n;i.dispatchEvent({type:"rightPinnedWidthChanged"})}}keepPinnedColumnsNarrowerThanViewport(){const t=this.gridBodyCtrl.eBodyViewport;const e=gt(t);if(e<=50){return}const i=this.getPinnedColumnsOverflowingViewport(e-50);const s=this.gos.getCallback("processUnpinnedColumns");const{columns:o,hasLockedPinned:n}=i;let r=o;if(!r.length&&!n){return}if(s){const t={columns:r,viewportWidth:e};r=s(t)}if(!r?.length){return}r=r.filter((t=>!eo(t)));this.setColsPinned(r,null,"viewportSizeFeature")}createPinnedWidthFeature(t,...e){return new Hb(t,e)}setColsPinned(t,e,i){const{colModel:s,colAnimation:o,visibleCols:n,gos:r}=this.beans;if(!s.cols){return}if(!t?.length){return}if(Pi(r,"print")){Ci(37);return}o?.start();let l;if(e===true||e==="left"){l="left"}else if(e==="right"){l="right"}else{l=null}const a=[];for(const e of t){if(!e){continue}const t=s.getCol(e);if(!t){continue}if(t.getPinned()!==l){this.setColPinned(t,l);a.push(t)}}if(a.length){n.refresh(i);Fo(this.eventSvc,a,i)}o?.finish()}initCol(t){const{pinned:e,initialPinned:i}=t.colDef;if(e!==void 0){this.setColPinned(t,e)}else{this.setColPinned(t,i)}}setColPinned(t,e){if(e===true||e==="left"){t.pinned="left"}else if(e==="right"){t.pinned="right"}else{t.pinned=null}t.dispatchStateUpdatedEvent("pinned")}setupHeaderPinnedWidth(t){const{scrollVisibleSvc:e}=this.beans;if(t.pinned==null){return}const i=t.pinned==="left";const s=t.pinned==="right";t.hidden=true;const o=()=>{const o=i?this.leftWidth:this.rightWidth;if(o==null){return}const n=o==0;const r=t.hidden!==n;const l=this.gos.get("enableRtl");const a=e.getScrollbarWidth();const h=e.verticalScrollShowing&&(l&&i||!l&&s);const c=h?o+a:o;t.comp.setPinnedContainerWidth(`${c}px`);t.comp.setDisplayed(!n);if(r){t.hidden=n;t.refresh()}};t.addManagedEventListeners({leftPinnedWidthChanged:o,rightPinnedWidthChanged:o,scrollVisibilityChanged:o,scrollbarWidthChanged:o})}getHeaderResizeDiff(t,e){const i=e.getPinned();if(i){const{leftWidth:e,rightWidth:i}=this;const s=gt(this.beans.ctrlsSvc.getGridBodyCtrl().eBodyViewport)-50;if(e+i+t>s){if(s>e+i){t=s-e-i}else{return 0}}}return t}getPinnedColumnsOverflowingViewport(t){const e=this.rightWidth??0;const i=this.leftWidth??0;const s=e+i;let o=false;if(s0){if(a0){const t=r[h++];if(t.colDef.lockPinned){o=true;continue}d-=t.getActualWidth();u.push(t)}}return{columns:u,hasLockedPinned:o}}};var Lb={moduleName:"PinnedColumn",version:ii,beans:[Ob],css:[zb]};var Vb=class extends ge{constructor(){super();this.beanName="ariaAnnounce";this.descriptionContainer=null;this.pendingAnnouncements=new Map;this.lastAnnouncement="";this.updateAnnouncement=be(this,this.updateAnnouncement.bind(this),200)}postConstruct(){const t=this.beans;const e=f(t);const i=this.descriptionContainer=e.createElement("div");i.classList.add("ag-aria-description-container");D(i,"polite");B(i,"additions text");T(i,true);t.eGridDiv.appendChild(i)}announceValue(t,e){this.pendingAnnouncements.set(e,t);this.updateAnnouncement()}updateAnnouncement(){if(!this.descriptionContainer){return}const t=Array.from(this.pendingAnnouncements.values()).join(". ");this.pendingAnnouncements.clear();this.descriptionContainer.textContent="";setTimeout((()=>{this.handleAnnouncementUpdate(t)}),50)}handleAnnouncementUpdate(t){if(!this.isAlive()||!this.descriptionContainer){return}let e=t;if(e==null||e.replace(/[ .]/g,"")==""){this.lastAnnouncement="";return}if(this.lastAnnouncement===e){e=`${e}`}this.lastAnnouncement=e;this.descriptionContainer.textContent=e}destroy(){super.destroy();const{descriptionContainer:t}=this;if(t){bt(t);t.remove()}this.descriptionContainer=null;this.pendingAnnouncements.clear()}};var Nb={moduleName:"Aria",version:ii,beans:[Vb]};var Gb=`:where(.ag-delay-render){.ag-cell,.ag-header-cell,.ag-header-group-cell,.ag-row,.ag-spanned-cell-wrapper{visibility:hidden}}`;var $b="ag-delay-render";var Wb=class extends ge{constructor(){super(...arguments);this.beanName="colDelayRenderSvc";this.hideRequested=false;this.alreadyRevealed=false;this.timesRetried=0;this.requesters=new Set}hideColumns(t){if(this.alreadyRevealed||this.requesters.has(t)){return}this.requesters.add(t);if(!this.hideRequested){this.beans.ctrlsSvc.whenReady(this,(t=>{t.gridBodyCtrl.eGridBody.classList.add($b)}));this.hideRequested=true}}revealColumns(t){if(this.alreadyRevealed||!this.isAlive()){return}this.requesters.delete(t);if(this.requesters.size>0){return}const{renderStatus:e,ctrlsSvc:i}=this.beans;if(e){if(!e.areHeaderCellsRendered()&&this.timesRetried<5){this.timesRetried++;setTimeout((()=>this.revealColumns(t)));return}this.timesRetried=0}i.getGridBodyCtrl().eGridBody.classList.remove($b);this.alreadyRevealed=true}};var Ub={moduleName:"ColumnDelayRender",version:ii,beans:[Wb],css:[Gb]};function jb(t){t.overlays?.showLoadingOverlay()}function qb(t){t.overlays?.showNoRowsOverlay()}function Kb(t){t.overlays?.hideOverlay()}var _b=`.ag-overlay{inset:0;pointer-events:none;position:absolute;z-index:2}.ag-overlay-panel,.ag-overlay-wrapper{display:flex;height:100%;width:100%}.ag-overlay-wrapper{align-items:center;flex:none;justify-content:center;text-align:center}.ag-overlay-loading-wrapper{pointer-events:all}.ag-overlay-loading-center{background:var(--ag-background-color);border:solid var(--ag-border-width) var(--ag-border-color);border-radius:var(--ag-border-radius);box-shadow:var(--ag-popup-shadow);padding:var(--ag-spacing)}`;var Zb={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"}]}]};var Qb=class extends Qo{constructor(){super(Zb);this.eOverlayWrapper=jo;this.activePromise=null;this.activeOverlay=null;this.updateListenerDestroyFunc=null;this.activeCssClass=null;this.elToFocusAfter=null;this.registerCSS(_b)}handleKeyDown(t){if(t.key!==Zn.TAB||t.defaultPrevented||Gh(t)){return}const e=this.beans;const i=Lr(e,this.eOverlayWrapper,false,t.shiftKey);if(i){return}let s=false;if(t.shiftKey){s=e.focusSvc.focusGridView({column:Vs(e.visibleCols.allCols),backwards:true,canFocusOverlay:false})}else{s=wu(e,false)}if(s){t.preventDefault()}}updateLayoutClasses(t,e){const i=this.eOverlayWrapper.classList;const{AUTO_HEIGHT:s,NORMAL:o,PRINT:n}=_h;i.toggle(s,e.autoHeight);i.toggle(o,e.normal);i.toggle(n,e.print)}postConstruct(){this.createManagedBean(new Zh(this));this.setDisplayed(false,{skipAriaHidden:true});this.beans.overlays.setOverlayWrapperComp(this);this.addManagedElementListeners(this.getFocusableElement(),{keydown:this.handleKeyDown.bind(this)})}setWrapperTypeClass(t){const e=this.eOverlayWrapper.classList;if(this.activeCssClass){e.toggle(this.activeCssClass,false)}this.activeCssClass=t;e.toggle(t,true)}showOverlay(t,e,i,s){this.setWrapperTypeClass(e);this.destroyActiveOverlay();this.elToFocusAfter=null;this.activePromise=t;if(!t){return}this.setDisplayed(true,{skipAriaHidden:true});if(i&&this.isGridFocused()){const t=d(this.beans);if(t&&!g(this.beans)){this.elToFocusAfter=t}}t.then((e=>{if(this.activePromise!==t){if(this.activeOverlay!==e){this.destroyBean(e);e=null}return}this.activePromise=null;if(!e){return}if(this.activeOverlay!==e){this.eOverlayWrapper.appendChild(e.getGui());this.activeOverlay=e;if(s){const t=e;this.updateListenerDestroyFunc=this.addManagedPropertyListener(s,(({currentValue:e})=>{t.refresh?.(Rs(this.gos,{...e??{}}))}))}}if(i&&this.isGridFocused()){Or(this.eOverlayWrapper)}}))}updateOverlayWrapperPaddingTop(t){this.eOverlayWrapper.style.setProperty("padding-top",`${t}px`)}destroyActiveOverlay(){this.activePromise=null;const t=this.activeOverlay;if(!t){return}let e=this.elToFocusAfter;this.activeOverlay=null;this.elToFocusAfter=null;if(e&&!this.isGridFocused()){e=null}const i=this.updateListenerDestroyFunc;if(i){i();this.updateListenerDestroyFunc=null}this.destroyBean(t);bt(this.eOverlayWrapper);e?.focus?.({preventScroll:true})}hideOverlay(){this.destroyActiveOverlay();this.setDisplayed(false,{skipAriaHidden:true})}isGridFocused(){const t=d(this.beans);return!!t&&this.beans.eGridDiv.contains(t)}destroy(){this.elToFocusAfter=null;this.destroyActiveOverlay();this.beans.overlays.setOverlayWrapperComp(void 0);super.destroy()}};var Yb={selector:"AG-OVERLAY-WRAPPER",component:Qb};var Jb=class extends ge{constructor(){super(...arguments);this.beanName="overlays";this.state=0;this.showInitialOverlay=true;this.wrapperPadding=0}postConstruct(){this.isClientSide=Fi(this.gos);this.isServerSide=!this.isClientSide&&Mi(this.gos);const t=()=>this.updateOverlayVisibility();this.addManagedEventListeners({newColumnsLoaded:t,rowDataUpdated:t,gridSizeChanged:this.refreshWrapperPadding.bind(this),rowCountReady:()=>{this.showInitialOverlay=false;this.updateOverlayVisibility()}});this.addManagedPropertyListener("loading",t)}setOverlayWrapperComp(t){this.eWrapper=t;this.updateOverlayVisibility()}isVisible(){return this.state!==0&&!!this.eWrapper}isExclusive(){return this.state===1&&!!this.eWrapper}showLoadingOverlay(){this.showInitialOverlay=false;const t=this.gos;const e=t.get("loading");if(!e&&(e!==void 0||t.get("suppressLoadingOverlay"))){return}this.doShowLoadingOverlay()}showNoRowsOverlay(){this.showInitialOverlay=false;const t=this.gos;if(t.get("loading")||t.get("suppressNoRowsOverlay")){return}this.doShowNoRowsOverlay()}hideOverlay(){this.showInitialOverlay=false;if(this.gos.get("loading")){Ci(99);return}this.doHideOverlay()}getOverlayWrapperSelector(){return Yb}getOverlayWrapperCompClass(){return Qb}updateOverlayVisibility(){if(!this.eWrapper){this.state=0;return}const{state:t,isClientSide:e,isServerSide:i,beans:{gos:s,colModel:o,rowModel:n}}=this;let r=this.gos.get("loading");if(r!==void 0){this.showInitialOverlay=false}if(this.showInitialOverlay&&r===void 0&&!s.get("suppressLoadingOverlay")){r=!s.get("columnDefs")||!o.ready||!s.get("rowData")&&e}if(r){if(t!==1){this.doShowLoadingOverlay()}}else{this.showInitialOverlay=false;if(e&&n.isEmpty()&&!s.get("suppressNoRowsOverlay")){if(t!==2){this.doShowNoRowsOverlay()}}else if(t===1||!i&&t!==0){this.doHideOverlay()}}}doShowLoadingOverlay(){if(!this.eWrapper){return}this.state=1;this.showOverlay(Gn(this.beans.userCompFactory,Rs(this.gos,{})),"ag-overlay-loading-wrapper","loadingOverlayComponentParams");this.updateExclusive()}doShowNoRowsOverlay(){if(!this.eWrapper){return}this.state=2;this.showOverlay($n(this.beans.userCompFactory,Rs(this.gos,{})),"ag-overlay-no-rows-wrapper","noRowsOverlayComponentParams");this.updateExclusive()}doHideOverlay(){if(!this.eWrapper){return}this.state=0;this.eWrapper.hideOverlay();this.updateExclusive()}showOverlay(t,e,i){const s=t?.newAgStackInstance()??null;this.eWrapper?.showOverlay(s,e,this.isExclusive(),i);this.refreshWrapperPadding()}updateExclusive(){const t=this.exclusive;this.exclusive=this.isExclusive();if(this.exclusive!==t){this.eventSvc.dispatchEvent({type:"overlayExclusiveChanged"})}}refreshWrapperPadding(){const t=this.eWrapper;if(!t){return}let e=0;if(this.state===2){const t=this.beans.ctrlsSvc.get("gridHeaderCtrl");const i=t?.headerHeight||0;e=i}if(this.wrapperPadding===e){return}this.wrapperPadding=e;t.updateOverlayWrapperPaddingTop(e)}};var Xb={moduleName:"Overlay",version:ii,userComponents:{agLoadingOverlay:td,agNoRowsOverlay:id},apiFunctions:{showLoadingOverlay:jb,showNoRowsOverlay:qb,hideOverlay:Kb},beans:[Jb]};var ty=class extends ge{constructor(){super(...arguments);this.beanName="rowContainerHeight";this.scrollY=0;this.uiBodyHeight=0}postConstruct(){this.addManagedEventListeners({bodyHeightChanged:this.updateOffset.bind(this)});this.maxDivHeight=hr();Ae(this.gos,"RowContainerHeightService - maxDivHeight = "+this.maxDivHeight)}updateOffset(){if(!this.stretching){return}const t=this.beans.ctrlsSvc.getScrollFeature().getVScrollPosition().top;const e=this.getUiBodyHeight();const i=t!==this.scrollY||e!==this.uiBodyHeight;if(i){this.scrollY=t;this.uiBodyHeight=e;this.calculateOffset()}}calculateOffset(){this.setUiContainerHeight(this.maxDivHeight);this.pixelsToShave=this.modelHeight-this.uiContainerHeight;this.maxScrollY=this.uiContainerHeight-this.uiBodyHeight;const t=this.scrollY/this.maxScrollY;const e=t*this.pixelsToShave;Ae(this.gos,`RowContainerHeightService - Div Stretch Offset = ${e} (${this.pixelsToShave} * ${t})`);this.setDivStretchOffset(e)}setUiContainerHeight(t){if(t!==this.uiContainerHeight){this.uiContainerHeight=t;this.eventSvc.dispatchEvent({type:"rowContainerHeightChanged"})}}clearOffset(){this.setUiContainerHeight(this.modelHeight);this.pixelsToShave=0;this.setDivStretchOffset(0)}setDivStretchOffset(t){const e=typeof t==="number"?Math.floor(t):null;if(this.divStretchOffset===e){return}this.divStretchOffset=e;this.eventSvc.dispatchEvent({type:"heightScaleChanged"})}setModelHeight(t){this.modelHeight=t;this.stretching=t!=null&&this.maxDivHeight>0&&t>this.maxDivHeight;if(this.stretching){this.calculateOffset()}else{this.clearOffset()}}getRealPixelPosition(t){return t-this.divStretchOffset}getUiBodyHeight(){const t=this.beans.ctrlsSvc.getScrollFeature().getVScrollPosition();return t.bottom-t.top}getScrollPositionForPixel(t){if(this.pixelsToShave<=0){return t}const e=this.modelHeight-this.getUiBodyHeight();const i=t/e;const s=this.maxScrollY*i;return s}};var ey=400;var iy=class extends ge{constructor(){super(...arguments);this.beanName="rowRenderer";this.destroyFuncsForColumnListeners=[];this.rowCtrlsByRowIndex={};this.zombieRowCtrls={};this.allRowCtrls=[];this.topRowCtrls=[];this.bottomRowCtrls=[];this.refreshInProgress=false;this.dataFirstRenderedFired=false;this.setupRangeSelectionListeners=()=>{const t=()=>{for(const t of this.getAllCellCtrls()){t.onCellSelectionChanged()}};const e=()=>{for(const t of this.getAllCellCtrls()){t.updateRangeBordersIfRangeCount()}};const i=()=>{this.eventSvc.addListener("cellSelectionChanged",t);this.eventSvc.addListener("columnMoved",e);this.eventSvc.addListener("columnPinned",e);this.eventSvc.addListener("columnVisible",e)};const s=()=>{this.eventSvc.removeListener("cellSelectionChanged",t);this.eventSvc.removeListener("columnMoved",e);this.eventSvc.removeListener("columnPinned",e);this.eventSvc.removeListener("columnVisible",e)};this.addDestroyFunc((()=>s()));this.addManagedPropertyListeners(["enableRangeSelection","cellSelection"],(()=>{const t=ns(this.gos);if(t){i()}else{s()}}));const o=ns(this.gos);if(o){i()}}}wireBeans(t){this.pageBounds=t.pageBounds;this.colModel=t.colModel;this.pinnedRowModel=t.pinnedRowModel;this.rowModel=t.rowModel;this.focusSvc=t.focusSvc;this.rowContainerHeight=t.rowContainerHeight;this.ctrlsSvc=t.ctrlsSvc;this.editSvc=t.editSvc}postConstruct(){this.ctrlsSvc.whenReady(this,(t=>{this.gridBodyCtrl=t.gridBodyCtrl;this.initialise()}))}initialise(){this.addManagedEventListeners({paginationChanged:this.onPageLoaded.bind(this),pinnedRowDataChanged:this.onPinnedRowDataChanged.bind(this),pinnedRowsChanged:this.onPinnedRowsChanged.bind(this),displayedColumnsChanged:this.onDisplayedColumnsChanged.bind(this),bodyScroll:this.onBodyScroll.bind(this),bodyHeightChanged:this.redraw.bind(this,{})});this.addManagedPropertyListeners(["domLayout","embedFullWidthRows"],(()=>this.onDomLayoutChanged()));this.addManagedPropertyListeners(["suppressMaxRenderedRowRestriction","rowBuffer"],(()=>this.redraw()));this.addManagedPropertyListener("suppressCellFocus",(t=>this.onSuppressCellFocusChanged(t.currentValue)));this.addManagedPropertyListeners(["groupSuppressBlankHeader","getBusinessKeyForNode","fullWidthCellRenderer","fullWidthCellRendererParams","suppressStickyTotalRow","groupRowRenderer","groupRowRendererParams","loadingCellRenderer","loadingCellRendererParams","detailCellRenderer","detailCellRendererParams","enableRangeSelection","enableCellTextSelection"],(()=>this.redrawRows()));this.addManagedPropertyListener("cellSelection",(({currentValue:t,previousValue:e})=>{if(!e&&t||e&&!t){this.redrawRows()}}));const{stickyRowSvc:t,gos:e,showRowGroupCols:i}=this.beans;if(i){this.addManagedPropertyListener("showOpenedGroup",(()=>{const t=i.getShowRowGroupCols();if(t.length){this.refreshCells({columns:t,force:true})}}))}if(t){this.stickyRowFeature=t.createStickyRowFeature(this,this.createRowCon.bind(this),this.destroyRowCtrls.bind(this))}else{const t=this.gridBodyCtrl;t.setStickyTopHeight(0);t.setStickyBottomHeight(0)}this.registerCellEventListeners();this.initialiseCache();this.printLayout=Pi(e,"print");this.embedFullWidthRows=this.printLayout||e.get("embedFullWidthRows");this.redrawAfterModelUpdate()}initialiseCache(){if(this.gos.get("keepDetailRows")){const t=this.getKeepDetailRowsCount();const e=t!=null?t:3;this.cachedRowCtrls=new sy(e)}}getKeepDetailRowsCount(){return this.gos.get("keepDetailRowsCount")}getStickyTopRowCtrls(){return this.stickyRowFeature?.stickyTopRowCtrls??[]}getStickyBottomRowCtrls(){return this.stickyRowFeature?.stickyBottomRowCtrls??[]}updateAllRowCtrls(){const t=Object.values(this.rowCtrlsByRowIndex);const e=Object.values(this.zombieRowCtrls);const i=this.cachedRowCtrls?.getEntries()??[];if(e.length>0||i.length>0){this.allRowCtrls=[...t,...e,...i]}else{this.allRowCtrls=t}}isCellBeingRendered(t,e){const i=this.rowCtrlsByRowIndex[t];if(!e||!i){return!!i}if(i.isFullWidth()){return true}const s=this.beans.spannedRowRenderer?.getCellByPosition({rowIndex:t,column:e,rowPinned:null});return!!s||!!i.getCellCtrl(e)||!i.isRowRendered()}updateCellFocus(t){for(const e of this.getAllCellCtrls()){e.onCellFocused(t)}for(const e of this.getFullWidthRowCtrls()){e.onFullWidthRowFocused(t)}}onCellFocusChanged(t){if(t?.rowIndex!=null&&!t.rowPinned){const e=this.beans.colModel.getCol(t.column)??void 0;if(!this.isCellBeingRendered(t.rowIndex,e)){this.redraw()}}this.updateCellFocus(t)}onSuppressCellFocusChanged(t){for(const e of this.getAllCellCtrls()){e.onSuppressCellFocusChanged(t)}for(const e of this.getFullWidthRowCtrls()){e.onSuppressCellFocusChanged(t)}}registerCellEventListeners(){this.addManagedEventListeners({cellFocused:t=>this.onCellFocusChanged(t),cellFocusCleared:()=>this.updateCellFocus(),flashCells:t=>{const{cellFlashSvc:e}=this.beans;if(e){for(const i of this.getAllCellCtrls()){e.onFlashCells(i,t)}}},columnHoverChanged:()=>{for(const t of this.getAllCellCtrls()){t.onColumnHover()}},displayedColumnsChanged:()=>{for(const t of this.getAllCellCtrls()){t.onDisplayedColumnsChanged()}},displayedColumnsWidthChanged:()=>{if(this.printLayout){for(const t of this.getAllCellCtrls()){t.onLeftChanged()}}}});this.setupRangeSelectionListeners();this.refreshListenersToColumnsForCellComps();this.addManagedEventListeners({gridColumnsChanged:this.refreshListenersToColumnsForCellComps.bind(this)});this.addDestroyFunc(this.removeGridColumnListeners.bind(this))}removeGridColumnListeners(){for(const t of this.destroyFuncsForColumnListeners){t()}this.destroyFuncsForColumnListeners.length=0}refreshListenersToColumnsForCellComps(){this.removeGridColumnListeners();const t=this.colModel.getCols();for(const e of t){const t=t=>{for(const i of this.getAllCellCtrls()){if(i.column===e){t(i)}}};const i=()=>{t((t=>t.onLeftChanged()))};const s=()=>{t((t=>t.onWidthChanged()))};const o=()=>{t((t=>t.onFirstRightPinnedChanged()))};const n=()=>{t((t=>t.onLastLeftPinnedChanged()))};const r=()=>{t((t=>t.onColDefChanged()))};e.__addEventListener("leftChanged",i);e.__addEventListener("widthChanged",s);e.__addEventListener("firstRightPinnedChanged",o);e.__addEventListener("lastLeftPinnedChanged",n);e.__addEventListener("colDefChanged",r);this.destroyFuncsForColumnListeners.push((()=>{e.__removeEventListener("leftChanged",i);e.__removeEventListener("widthChanged",s);e.__removeEventListener("firstRightPinnedChanged",o);e.__removeEventListener("lastLeftPinnedChanged",n);e.__removeEventListener("colDefChanged",r)}))}}onDomLayoutChanged(){const t=Pi(this.gos,"print");const e=t||this.gos.get("embedFullWidthRows");const i=e!==this.embedFullWidthRows||this.printLayout!==t;this.printLayout=t;this.embedFullWidthRows=e;if(i){this.redrawAfterModelUpdate({domLayoutChanged:true})}}datasourceChanged(){this.firstRenderedRow=0;this.lastRenderedRow=-1;const t=Object.keys(this.rowCtrlsByRowIndex);this.removeRowCtrls(t)}onPageLoaded(t){const e={recycleRows:t.keepRenderedRows,animate:t.animate,newData:t.newData,newPage:t.newPage,onlyBody:true};this.redrawAfterModelUpdate(e)}getAllCellsNotSpanningForColumn(t){const e=[];for(const i of this.getAllRowCtrls()){const s=i.getCellCtrl(t,true)?.eGui;if(s){e.push(s)}}return e}refreshFloatingRowComps(t=true){this.refreshFloatingRows(this.topRowCtrls,"top",t);this.refreshFloatingRows(this.bottomRowCtrls,"bottom",t)}refreshFloatingRows(t,e,i){const{pinnedRowModel:s,beans:o,printLayout:n}=this;const r=Object.fromEntries(t.map((t=>[t.rowNode.id,t])));s?.forEachPinnedRow(e,((l,a)=>{const h=t[a];const c=h&&s.getPinnedRowById(h.rowNode.id,e)===void 0;if(c){h.destroyFirstPass();h.destroySecondPass()}if(l.id in r&&i){t[a]=r[l.id];delete r[l.id]}else{t[a]=new Pb(l,o,false,false,n)}}));const l=(e==="top"?s?.getPinnedTopRowCount():s?.getPinnedBottomRowCount())??0;t.length=l}onPinnedRowDataChanged(){const t={recycleRows:true};this.redrawAfterModelUpdate(t)}onPinnedRowsChanged(){this.redrawAfterModelUpdate({recycleRows:true})}redrawRow(t,e=false){if(t.sticky){this.stickyRowFeature?.refreshStickyNode(t)}else if(this.cachedRowCtrls?.has(t)){this.cachedRowCtrls.removeRow(t);return}else{const e=e=>{const i=e[t.rowIndex];if(!i){return}if(i.rowNode!==t){return}i.destroyFirstPass();i.destroySecondPass();e[t.rowIndex]=this.createRowCon(t,false,false)};switch(t.rowPinned){case"top":e(this.topRowCtrls);break;case"bottom":e(this.bottomRowCtrls);break;default:e(this.rowCtrlsByRowIndex);this.updateAllRowCtrls()}}if(!e){this.dispatchDisplayedRowsChanged(false)}}redrawRows(t){const{editSvc:e}=this.beans;if(e?.isEditing()){if(e.isBatchEditing()){e.cleanupEditors()}else{e.stopEditing(void 0,{source:"api"})}}const i=t!=null;if(i){for(const e of t??[]){this.redrawRow(e,true)}this.dispatchDisplayedRowsChanged(false);return}this.redrawAfterModelUpdate()}redrawAfterModelUpdate(t={}){this.getLockOnRefresh();const e=this.beans.focusSvc?.getFocusCellToUseAfterRefresh();this.updateContainerHeights();this.scrollToTopIfNewData(t);const i=!t.domLayoutChanged&&!!t.recycleRows;const s=t.animate&&Vi(this.gos);const o=i?this.getRowsToRecycle():null;if(!i){this.removeAllRowComps()}this.workOutFirstAndLastRowsToRender();const{stickyRowFeature:n,gos:r}=this;if(n){n.checkStickyRows();const t=n.extraTopHeight+n.extraBottomHeight;if(t){this.updateContainerHeights(t)}}this.recycleRows(o,s);this.gridBodyCtrl.updateRowCount();if(!t.onlyBody){this.refreshFloatingRowComps(r.get("enableRowPinning")?i:void 0)}this.dispatchDisplayedRowsChanged();if(e!=null){this.restoreFocusedCell(e)}this.releaseLockOnRefresh()}scrollToTopIfNewData(t){const e=t.newData||t.newPage;const i=this.gos.get("suppressScrollOnNewData");if(e&&!i){this.gridBodyCtrl.scrollFeature.scrollToTop();this.stickyRowFeature?.resetOffsets()}}updateContainerHeights(t=0){const{rowContainerHeight:e}=this;if(this.printLayout){e.setModelHeight(null);return}let i=this.pageBounds.getCurrentPageHeight();if(i===0){i=1}e.setModelHeight(i+t)}getLockOnRefresh(){if(this.refreshInProgress){throw new Error(ki(252))}this.refreshInProgress=true;this.beans.frameworkOverrides.getLockOnRefresh?.()}releaseLockOnRefresh(){this.refreshInProgress=false;this.beans.frameworkOverrides.releaseLockOnRefresh?.()}isRefreshInProgress(){return this.refreshInProgress}restoreFocusedCell(t){if(!t){return}const e=this.beans.focusSvc;const i=this.findPositionToFocus(t);if(!i){e.focusHeaderPosition({headerPosition:{headerRowIndex:bu(this.beans)-1,column:t.column}});return}if(t.rowIndex!==i.rowIndex||t.rowPinned!=i.rowPinned){e.setFocusedCell({...i,preventScrollOnBrowserFocus:true,forceBrowserFocus:true});return}if(!e.doesRowOrCellHaveBrowserFocus()){this.updateCellFocus(Rs(this.gos,{...i,forceBrowserFocus:true,preventScrollOnBrowserFocus:true,type:"cellFocused"}))}}findPositionToFocus(t){const{pagination:e,pageBounds:i}=this.beans;let s=t;if(s.rowPinned==null&&e&&i&&!e.isRowInPage(s.rowIndex)){s={rowPinned:null,rowIndex:i.getFirstRow()}}while(s){if(s.rowPinned==null&&i){if(s.rowIndexi.getLastRow()){s={rowPinned:null,rowIndex:i.getLastRow()}}}const e=this.getRowByPosition(s);if(e?.isAlive()){return{...e.getRowPosition(),column:t.column}}s=sg(this.beans,s)}return null}getAllCellCtrls(){const t=[];const e=this.getAllRowCtrls();const i=e.length;for(let s=0;s{const i=t.rowNode;return ny(i,e)}))}getCellCtrls(t,e){let s;if(i(e)){s={};e.forEach((t=>{const e=this.colModel.getCol(t);if(i(e)){s[e.getId()]=true}}))}const o=[];for(const e of this.getRowCtrls(t)){for(const t of e.getAllCellCtrls()){const e=t.column.getId();const i=s&&!s[e];if(i){continue}o.push(t)}}return o}destroy(){this.removeAllRowComps(true);super.destroy()}removeAllRowComps(t=false){const e=Object.keys(this.rowCtrlsByRowIndex);this.removeRowCtrls(e,t);this.stickyRowFeature?.destroyStickyCtrls()}getRowsToRecycle(){const t=[];for(const e of Object.keys(this.rowCtrlsByRowIndex)){const i=this.rowCtrlsByRowIndex[e];const s=i.rowNode.id==null;if(s){t.push(e)}}this.removeRowCtrls(t);const e={};for(const t of Object.values(this.rowCtrlsByRowIndex)){const i=t.rowNode;e[i.id]=t}this.rowCtrlsByRowIndex={};return e}removeRowCtrls(t,e=false){for(const i of t){const t=this.rowCtrlsByRowIndex[i];if(t){t.destroyFirstPass(e);t.destroySecondPass()}delete this.rowCtrlsByRowIndex[i]}}onBodyScroll(t){if(t.direction!=="vertical"){return}this.redraw({afterScroll:true})}redraw(t={}){const{focusSvc:e,animationFrameSvc:i}=this.beans;const{afterScroll:s}=t;let o;const n=this.stickyRowFeature;if(n){o=e?.getFocusCellToUseAfterRefresh()||void 0}const r=this.firstRenderedRow;const l=this.lastRenderedRow;this.workOutFirstAndLastRowsToRender();let a=false;if(n){a=n.checkStickyRows();const t=n.extraTopHeight+n.extraBottomHeight;if(t){this.updateContainerHeights(t)}}const h=this.firstRenderedRow!==r||this.lastRenderedRow!==l;if(s&&!a&&!h){return}this.getLockOnRefresh();this.recycleRows(null,false,s);this.releaseLockOnRefresh();this.dispatchDisplayedRowsChanged(s&&!a);if(o!=null){const t=e?.getFocusCellToUseAfterRefresh();if(o!=null&&t==null){i?.flushAllFrames();this.restoreFocusedCell(o)}}}removeRowCompsNotToDraw(t,e){const i={};for(const e of t){i[e]=true}const s=Object.keys(this.rowCtrlsByRowIndex);const o=s.filter((t=>!i[t]));this.removeRowCtrls(o,e)}calculateIndexesToDraw(t){const e=[];for(let t=this.firstRenderedRow;t<=this.lastRenderedRow;t++){e.push(t)}const i=this.beans.pagination;const s=this.beans.focusSvc?.getFocusedCell()?.rowIndex;if(s!=null&&(sthis.lastRenderedRow)&&(!i||i.isRowInPage(s))&&s{const i=t.rowNode.rowIndex;if(i==null||i===s){return}if(ithis.lastRenderedRow){if(this.doNotUnVirtualiseRow(t)){e.push(i)}}};for(const t of Object.values(this.rowCtrlsByRowIndex)){o(t)}if(t){for(const e of Object.values(t)){o(e)}}e.sort(((t,e)=>t-e));const n=[];for(let t=0;t{this.destroyRowCtrls(t,e);this.updateAllRowCtrls();this.dispatchDisplayedRowsChanged()}))}else{this.destroyRowCtrls(t,e)}}this.updateAllRowCtrls()}dispatchDisplayedRowsChanged(t=false){this.eventSvc.dispatchEvent({type:"displayedRowsChanged",afterScroll:t})}onDisplayedColumnsChanged(){const{visibleCols:t}=this.beans;const e=t.isPinningLeft();const i=t.isPinningRight();const s=this.pinningLeft!==e||i!==this.pinningRight;if(s){this.pinningLeft=e;this.pinningRight=i;if(this.embedFullWidthRows){this.redrawFullWidthEmbeddedRows()}}}redrawFullWidthEmbeddedRows(){const t=[];for(const e of this.getFullWidthRowCtrls()){const i=e.rowNode.rowIndex;t.push(i.toString())}this.refreshFloatingRowComps();this.removeRowCtrls(t);this.redraw({afterScroll:true})}getFullWidthRowCtrls(t){const e=oy(t);return this.getAllRowCtrls().filter((t=>{if(!t.isFullWidth()){return false}const i=t.rowNode;if(e!=null&&!ny(i,e)){return false}return true}))}createOrUpdateRowCtrl(t,e,s,o){let n;let r=this.rowCtrlsByRowIndex[t];if(!r){n=this.rowModel.getRow(t);if(i(n)&&i(e)&&e[n.id]&&n.alreadyRendered){r=e[n.id];e[n.id]=null}}const l=!r;if(l){if(!n){n=this.rowModel.getRow(t)}if(i(n)){r=this.createRowCon(n,s,o)}else{return}}if(n){n.alreadyRendered=true}this.rowCtrlsByRowIndex[t]=r}destroyRowCtrls(t,e){const i=[];if(t){for(const s of Object.values(t)){if(!s){continue}if(this.cachedRowCtrls&&s.isCacheable()){this.cachedRowCtrls.addRow(s);continue}s.destroyFirstPass(!e);if(e){const t=s.instanceId;this.zombieRowCtrls[t]=s;i.push((()=>{s.destroySecondPass();delete this.zombieRowCtrls[t]}))}else{s.destroySecondPass()}}}if(e){i.push((()=>{if(this.isAlive()){this.updateAllRowCtrls();this.dispatchDisplayedRowsChanged()}}));window.setTimeout((()=>{for(const t of i){t()}}),ey)}}getRowBuffer(){return this.gos.get("rowBuffer")}getRowBufferInPixels(){const t=this.getRowBuffer();const e=zi(this.beans);return t*e}workOutFirstAndLastRowsToRender(){const{rowContainerHeight:t,pageBounds:e,rowModel:i}=this;t.updateOffset();let s;let o;if(!i.isRowsToRender()){s=0;o=-1}else if(this.printLayout){this.beans.environment.refreshRowHeightVariable();s=e.getFirstRow();o=e.getLastRow()}else{const n=this.getRowBufferInPixels();const r=this.ctrlsSvc.getScrollFeature();const l=this.gos.get("suppressRowVirtualisation");let a=false;let h;let c;do{const i=e.getPixelOffset();const{pageFirstPixel:s,pageLastPixel:o}=e.getCurrentPagePixelRange();const u=t.divStretchOffset;const d=r.getVScrollPosition();const f=d.top;const g=d.bottom;if(l){h=s+u;c=o+u}else{h=Math.max(f+i-n,s)+u;c=Math.min(g+i+n,o)+u}this.firstVisibleVPixel=Math.max(f+i,s)+u;this.lastVisibleVPixel=Math.min(g+i,o)+u;a=this.ensureAllRowsInRangeHaveHeightsCalculated(h,c)}while(a);let u=i.getRowIndexAtPixel(h);let d=i.getRowIndexAtPixel(c);const f=e.getFirstRow();const g=e.getLastRow();if(ug){d=g}s=u;o=d}const n=Pi(this.gos,"normal");const r=this.gos.get("suppressMaxRenderedRowRestriction");const l=Math.max(this.getRowBuffer(),500);if(n&&!r){if(o-s>l){o=s+l}}const a=s!==this.firstRenderedRow;const h=o!==this.lastRenderedRow;if(a||h){this.firstRenderedRow=s;this.lastRenderedRow=o;this.eventSvc.dispatchEvent({type:"viewportChanged",firstRow:s,lastRow:o})}}dispatchFirstDataRenderedEvent(){if(this.dataFirstRenderedFired){return}this.dataFirstRenderedFired=true;Vt(this.beans,(()=>{this.beans.eventSvc.dispatchEvent({type:"firstDataRendered",firstRow:this.firstRenderedRow,lastRow:this.lastRenderedRow})}))}ensureAllRowsInRangeHaveHeightsCalculated(t,e){const i=this.pinnedRowModel?.ensureRowHeightsValid();const s=this.stickyRowFeature?.ensureRowHeightsValid();const{pageBounds:o,rowModel:n}=this;const r=n.ensureRowHeightsValid(t,e,o.getFirstRow(),o.getLastRow());if(r||s){this.eventSvc.dispatchEvent({type:"recalculateRowBounds"})}if(s||r||i){this.updateContainerHeights();return true}return false}doNotUnVirtualiseRow(t){const e=false;const i=true;const s=t.rowNode;const o=this.focusSvc.isRowFocused(s.rowIndex,s.rowPinned);const n=this.editSvc?.isEditing(t);const r=s.detail;const l=o||n||r;if(!l){return e}const a=this.isRowPresent(s);return a?i:e}isRowPresent(t){if(!this.rowModel.isRowPresent(t)){return false}return this.beans.pagination?.isRowInPage(t.rowIndex)??true}createRowCon(t,e,i){const s=this.cachedRowCtrls?.getRow(t)??null;if(s){return s}const o=i&&!this.printLayout&&!!this.beans.animationFrameSvc?.active;const n=new Pb(t,this.beans,e,o,this.printLayout);return n}getRenderedNodes(){const t=Object.values(this.rowCtrlsByRowIndex).map((t=>t.rowNode));const e=this.getStickyTopRowCtrls().map((t=>t.rowNode));const i=this.getStickyBottomRowCtrls().map((t=>t.rowNode));return[...e,...t,...i]}getRowByPosition(t){let e;const{rowIndex:i}=t;switch(t.rowPinned){case"top":e=this.topRowCtrls[i];break;case"bottom":e=this.bottomRowCtrls[i];break;default:e=this.rowCtrlsByRowIndex[i];if(!e){e=this.getStickyTopRowCtrls().find((t=>t.rowNode.rowIndex===i))||null;if(!e){e=this.getStickyBottomRowCtrls().find((t=>t.rowNode.rowIndex===i))||null}}break}return e}isRangeInRenderedViewport(t,e){const i=t==null||e==null;if(i){return false}const s=t>this.lastRenderedRow;const o=ethis.maxCount){const t=this.entriesList[0];t.destroyFirstPass();t.destroySecondPass();this.removeFromCache(t)}}getRow(t){if(t?.id==null){return null}const e=this.entriesMap[t.id];if(!e){return null}this.removeFromCache(e);e.setCached(false);const i=e.rowNode!=t;return i?null:e}has(t){return this.entriesMap[t.id]!=null}removeRow(t){const e=t.id;const i=this.entriesMap[e];delete this.entriesMap[e];$s(this.entriesList,i)}removeFromCache(t){const e=t.rowNode.id;delete this.entriesMap[e];$s(this.entriesList,t)}getEntries(){return this.entriesList}};function oy(t){if(!t){return}const e={top:{},bottom:{},normal:{}};for(const i of t){const t=i.id;switch(i.rowPinned){case"top":e.top[t]=i;break;case"bottom":e.bottom[t]=i;break;default:e.normal[t]=i;break}}return e}function ny(t,e){const i=t.id;const s=t.rowPinned;switch(s){case"top":return e.top[i]!=null;case"bottom":return e.bottom[i]!=null;default:return e.normal[i]!=null}}var ry=class extends ge{constructor(){super(...arguments);this.beanName="rowNodeSorter"}postConstruct(){const{gos:t}=this;this.isAccentedSort=t.get("accentedSort");this.primaryColumnsSortGroups=Gi(t);this.addManagedPropertyListener("accentedSort",(t=>this.isAccentedSort=t.currentValue));this.addManagedPropertyListener("autoGroupColumnDef",(()=>this.primaryColumnsSortGroups=Gi(t)))}doFullSort(t,e){const i=t.map(((t,e)=>({currentPos:e,rowNode:t})));i.sort(this.compareRowNodes.bind(this,e));return i.map((t=>t.rowNode))}compareRowNodes(t,e,i){const s=e.rowNode;const o=i.rowNode;for(let e=0,i=t.length;ethis.setColumnDefs(t)))}start(){this.beans.ctrlsSvc.whenReady(this,(()=>{const t=this.gos.get("columnDefs");if(t){this.setColumnsAndData(t)}else{this.waitingForColumns=true}this.gridReady()}))}setColumnsAndData(t){const{colModel:e,rowModel:i}=this.beans;e.setColumnDefs(t??[],"gridInitializing");i.start()}gridReady(){const{eventSvc:t,gos:e}=this;t.dispatchEvent({type:"gridReady"});Ae(e,`initialised successfully, enterprise = ${e.isModuleRegistered("EnterpriseCore")}`)}setColumnDefs(t){const e=this.gos.get("columnDefs");if(!e){return}if(this.waitingForColumns){this.waitingForColumns=false;this.setColumnsAndData(e);return}this.beans.colModel.setColumnDefs(e,ro(t.source))}};function cy(t){t.valueCache?.expire()}function uy(t,e){const{colKey:i,rowNode:o,useFormatter:n}=e;const r=t.colModel.getColDefCol(i)??t.colModel.getCol(i);if(s(r)){return null}const l=t.valueSvc.getValueForDisplay(r,o,n);if(n){return l.valueFormatted??h(l.value)}return l.value}var dy="paste";var fy=class extends ge{constructor(){super(...arguments);this.beanName="changeDetectionSvc";this.clientSideRowModel=null}postConstruct(){const{gos:t,rowModel:e}=this.beans;if(Fi(t)){this.clientSideRowModel=e}this.addManagedEventListeners({cellValueChanged:this.onCellValueChanged.bind(this)})}onCellValueChanged(t){const{gos:e,rowRenderer:i}=this.beans;if(t.source===dy||e.get("suppressChangeDetection")){return}const s=t.node;const o=[s];const n=this.clientSideRowModel;const r=n?.rootNode;if(r&&!s.isRowPinned()){const i=e.get("aggregateOnlyChangedColumns");const l=new ag(i,r);l.addParentNode(s.parent,[t.column]);n.doAggregate(l);l.forEachChangedNodeDepthFirst((t=>{o.push(t);if(t.sibling){o.push(t.sibling)}}))}i.refreshCells({rowNodes:o})}};var gy=class extends ge{constructor(){super(...arguments);this.beanName="expressionSvc";this.cache={}}evaluate(t,e){if(typeof t==="string"){return this.evaluateExpression(t,e)}else{bi(15,{expression:t})}}evaluateExpression(t,e){try{const i=this.createExpressionFunction(t);const s=i(e.value,e.context,e.oldValue,e.newValue,e.value,e.node,e.data,e.colDef,e.rowIndex,e.api,e.getValue,e.column,e.columnGroup);return s}catch(i){bi(16,{expression:t,params:e,e:i});return null}}createExpressionFunction(t){const e=this.cache;if(e[t]){return e[t]}const i=this.createFunctionBody(t);const s=new Function("x, ctx, oldValue, newValue, value, node, data, colDef, rowIndex, api, getValue, column, columnGroup",i);e[t]=s;return s}createFunctionBody(t){if(t.includes("return")){return t}else{return"return "+t+";"}}};var py=class extends ge{constructor(){super(...arguments);this.beanName="valueCache";this.cacheVersion=0}postConstruct(){const t=this.gos;this.active=t.get("valueCache");this.neverExpires=t.get("valueCacheNeverExpires")}onDataChanged(){if(this.neverExpires){return}this.expire()}expire(){this.cacheVersion++}setValue(t,e,i){if(this.active){const s=this.cacheVersion;if(t.__cacheVersion!==s){t.__cacheVersion=s;t.__cacheData={}}t.__cacheData[e]=i}}getValue(t,e){if(!this.active||t.__cacheVersion!==this.cacheVersion){return void 0}return t.__cacheData[e]}};var my={moduleName:"ValueCache",version:ii,beans:[py],apiFunctions:{expireValueCache:cy}};var vy={moduleName:"Expression",version:ii,beans:[gy]};var wy={moduleName:"ChangeDetection",version:ii,beans:[fy]};var Cy={moduleName:"CellApi",version:ii,apiFunctions:{getCellValue:uy}};var by=class extends ge{constructor(){super(...arguments);this.beanName="valueSvc";this.hasEditSvc=false;this.initialised=false;this.isSsrm=false}wireBeans(t){this.expressionSvc=t.expressionSvc;this.colModel=t.colModel;this.valueCache=t.valueCache;this.dataTypeSvc=t.dataTypeSvc;this.editSvc=t.editSvc;this.hasEditSvc=!!t.editSvc}postConstruct(){if(!this.initialised){this.init()}}init(){this.executeValueGetter=this.valueCache?this.executeValueGetterWithValueCache.bind(this):this.executeValueGetterWithoutValueCache.bind(this);this.isSsrm=Mi(this.gos);this.cellExpressions=this.gos.get("enableCellExpressions");this.isTreeData=this.gos.get("treeData");this.initialised=true;const t=t=>this.callColumnCellValueChangedHandler(t);this.eventSvc.addListener("cellValueChanged",t,true);this.addDestroyFunc((()=>this.eventSvc.removeListener("cellValueChanged",t,true)));this.addManagedPropertyListener("treeData",(t=>this.isTreeData=t.currentValue))}getValueForDisplay(t,e,i=false,s=false,o="ui"){const{showRowGroupColValueSvc:n}=this.beans;const r=!t&&e.group;const l=t?.colDef.showRowGroup;const a=!this.isTreeData||e.footer;if(n&&a&&(r||l)){const o=n.getGroupValue(e,t);if(o==null){return{value:null,valueFormatted:null}}if(!i){return{value:o.value,valueFormatted:null}}const r=n.formatAndPrefixGroupColValue(o,t,s);return{value:o.value,valueFormatted:r}}if(!t){return{value:e.key,valueFormatted:null}}const h=e.leafGroup&&this.colModel.isPivotMode();const c=e.group&&e.expanded&&!e.footer&&!h;const u=this.gos.get("groupSuppressBlankHeader")||!e.sibling;const d=c&&!u;const f=this.getValue(t,e,d,o);const g=i&&!(s&&t.colDef.useValueFormatterForExport===false);return{value:f,valueFormatted:g?this.formatValue(t,e,f):null}}getValue(t,e,i=false,s="ui"){if(!this.initialised){this.init()}if(!e){return}const o=t.getColDef();const n=o.field;const r=t.getColId();const l=e.data;if(this.hasEditSvc&&s==="ui"){const i=this.editSvc;if(i.isEditing()){const s=i.getCellDataValue({rowNode:e,column:t},true);if(s!==void 0){return s}}}let a;const h=o.showRowGroup;if(typeof h==="string"){const t=this.beans.rowGroupColsSvc?.getColumnIndex(h)??-1;if(t>e.level){return null}}const c=typeof h!=="string"||!e.group;const u=e.groupData&&r in e.groupData;const d=!i&&e.aggData&&e.aggData[r]!==void 0;const f=this.isSsrm&&i&&!!o.aggFunc;const g=this.isSsrm&&e.footer&&e.field&&(o.showRowGroup===true||o.showRowGroup===e.field);if(this.isTreeData&&d){a=e.aggData[r]}else if(this.isTreeData&&o.valueGetter){a=this.executeValueGetter(o.valueGetter,l,t,e)}else if(this.isTreeData&&n&&l){a=om(l,n,t.isFieldContainsDots())}else if(u){a=e.groupData[r]}else if(d){a=e.aggData[r]}else if(o.valueGetter&&!f){if(!c){return a}a=this.executeValueGetter(o.valueGetter,l,t,e)}else if(g){a=om(l,e.field,t.isFieldContainsDots())}else if(n&&l&&!f){if(!c){return a}a=om(l,n,t.isFieldContainsDots())}if(this.cellExpressions&&typeof a==="string"&&a.indexOf("=")===0){const i=a.substring(1);a=this.executeValueGetter(i,l,t,e)}return a}parseValue(t,e,s,o){const n=t.getColDef();const r=n.valueParser;if(i(r)){const i=Rs(this.gos,{node:e,data:e?.data,oldValue:o,newValue:s,colDef:n,column:t});if(typeof r==="function"){return r(i)}return this.expressionSvc?.evaluate(r,i)}return s}getDeleteValue(t,e){if(i(t.getColDef().valueParser)){return this.parseValue(t,e,"",this.getValueForDisplay(t,e).value)??null}return null}formatValue(t,e,i,s,o=true){const{expressionSvc:n}=this.beans;let r=null;let l;const a=t.getColDef();if(s){l=s}else if(o){l=a.valueFormatter}if(l){const s=e?e.data:null;const o=Rs(this.gos,{value:i,node:e,data:s,colDef:a,column:t});if(typeof l==="function"){r=l(o)}else{r=n?n.evaluate(l,o):null}}else if(a.refData){return a.refData[i]||""}if(r==null&&Array.isArray(i)){r=i.join(", ")}return r}setValue(t,e,o,n){const r=this.colModel.getColDefCol(e);if(!t||!r){return false}if(s(t.data)){t.data={}}const{field:l,valueSetter:a}=r.getColDef();if(s(l)&&s(a)){Ci(17);return false}if(this.dataTypeSvc&&!this.dataTypeSvc.checkType(r,o)){Ci(135);return false}const h=Rs(this.gos,{node:t,data:t.data,oldValue:this.getValue(r,t,void 0,n),newValue:o,colDef:r.getColDef(),column:r});h.newValue=o;let c;if(i(a)){if(typeof a==="function"){c=a(h)}else{c=this.expressionSvc?.evaluate(a,h)}}else{c=this.setValueUsingField(t.data,l,o,r.isFieldContainsDots())}if(c===void 0){c=true}if(!c){return false}t.resetQuickFilterAggregateText();this.valueCache?.onDataChanged();const u=this.getValue(r,t);this.dispatchCellValueChangedEvent(t,h,u,n);if(t.pinnedSibling){this.dispatchCellValueChangedEvent(t.pinnedSibling,h,u,n)}return true}dispatchCellValueChangedEvent(t,e,i,s){this.eventSvc.dispatchEvent({type:"cellValueChanged",event:null,rowIndex:t.rowIndex,rowPinned:t.rowPinned,column:e.column,colDef:e.colDef,data:t.data,node:t,oldValue:e.oldValue,newValue:i,value:i,source:s})}callColumnCellValueChangedHandler(t){const e=t.colDef.onCellValueChanged;if(typeof e==="function"){this.beans.frameworkOverrides.wrapOutgoing((()=>{e({node:t.node,data:t.data,oldValue:t.oldValue,newValue:t.newValue,colDef:t.colDef,column:t.column,api:t.api,context:t.context})}))}}setValueUsingField(t,e,i,s){if(!e){return false}let o=false;if(!s){o=t[e]===i;if(!o){t[e]=i}}else{const s=e.split(".");let n=t;while(s.length>0&&n){const t=s.shift();if(s.length===0){o=n[t]===i;if(!o){n[t]=i}}else{n=n[t]}}}return!o}executeValueGetterWithValueCache(t,e,i,s){const o=i.getColId();const n=this.valueCache.getValue(s,o);if(n!==void 0){return n}const r=this.executeValueGetterWithoutValueCache(t,e,i,s);this.valueCache.setValue(s,o,r);return r}executeValueGetterWithoutValueCache(t,e,i,s){const o=Rs(this.gos,{data:e,node:s,column:i,colDef:i.getColDef(),getValue:this.getValueCallback.bind(this,s)});let n;if(typeof t==="function"){n=t(o)}else{n=this.expressionSvc?.evaluate(t,o)}return n}getValueCallback(t,e){const i=this.colModel.getColDefCol(e);if(i){return this.getValue(i,t)}return null}getKeyForNode(t,e){const i=this.getValue(t,e);const s=t.getColDef().keyCreator;let o=i;if(s){const n=Rs(this.gos,{value:i,colDef:t.getColDef(),column:t,node:e,data:e.data});o=s(n)}if(typeof o==="string"||o==null){return o}o=String(o);if(o==="[object Object]"){Ci(121)}return o}};var yy={moduleName:"CommunityCore",version:ii,beans:[Pw,Mf,Sm,on,ty,Rp,Sw,dC,No,Ib,Ab,iy,by,Fw,bw,Mw,km,hy,vm,wm,kC],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:Pf,destroy:Df,isDestroyed:Tf,getGridOption:Bf,setGridOption:Af,updateGridOptions:If,isModuleRegistered:zf},dependsOn:[fm,ip,cp,ay,bC,Pp,yC,Xb,wy,xC,Bb,Lb,Nb,EC,ym,gm,vy,Ap,Ub]};var Sy={AdvancedFilter:1,AiToolkit:1,AllEnterprise:1,BatchEdit:1,CellSelection:1,Clipboard:1,ColumnMenu:1,ColumnsToolPanel:1,ContextMenu:1,ExcelExport:1,FiltersToolPanel:1,Find:1,GridCharts:1,IntegratedCharts:1,GroupFilter:1,MasterDetail:1,Menu:1,MultiFilter:1,NewFiltersToolPanel:1,Pivot:1,RangeSelection:1,RichSelect:1,RowNumbers:1,RowGrouping:1,RowGroupingPanel:1,ServerSideRowModelApi:1,ServerSideRowModel:1,SetFilter:1,SideBar:1,Sparklines:1,StatusBar:1,TreeData:1,ViewportRowModel:1};var xy=["TextFilter","NumberFilter","DateFilter","SetFilter","MultiFilter","GroupFilter","CustomFilter"];var ky={EditCore:["TextEditor","NumberEditor","DateEditor","CheckboxEditor","LargeTextEditor","SelectEditor","RichSelect","CustomEditor"],CheckboxCellRenderer:["AllCommunity"],ClientSideRowModelHierarchy:["RowGrouping","Pivot","TreeData"],ColumnFilter:xy,ColumnGroupHeaderComp:["AllCommunity"],ColumnGroup:["AllCommunity"],ColumnHeaderComp:["AllCommunity"],ColumnMove:["AllCommunity"],ColumnResize:["AllCommunity"],CommunityCore:["AllCommunity"],CsrmSsrmSharedApi:["ClientSideRowModelApi","ServerSideRowModelApi"],RowModelSharedApi:["ClientSideRowModelApi","ServerSideRowModelApi"],EnterpriseCore:["AllEnterprise"],FilterCore:[...xy,"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:[...xy,"ColumnMenu","ContextMenu"],SharedPivot:["Pivot","ServerSideRowModel"],SharedRowGrouping:["RowGrouping","ServerSideRowModel"],SharedRowSelection:["RowSelection","ServerSideRowModel"],SkeletonCellRenderer:["ServerSideRowModel"],Sort:["AllCommunity"],SsrmInfiniteSharedApi:["InfiniteRowModel","ServerSideRowModelApi"],SharedTreeData:["TreeData","ServerSideRowModel"]};var Ry={InfiniteRowModel:"infinite",ClientSideRowModelApi:"clientSide",ClientSideRowModel:"clientSide",ServerSideRowModelApi:"serverSide",ServerSideRowModel:"serverSide",ViewportRowModel:"viewport"};function Ey(t,e){const i=[];for(const s of Array.isArray(t)?t:[t]){const t=ky[s];if(t){for(const s of t){const t=Ry[s];if(!t||t===e){i.push(s)}}}else{i.push(s)}}return i}var Fy=()=>`No AG Grid modules are registered! It is recommended to start with all Community features via the AllCommunityModule:\n \n import { ModuleRegistry, AllCommunityModule } from 'ag-grid-community';\n \n ModuleRegistry.registerModules([ AllCommunityModule ]);\n `;var My=t=>{const e=t.map((t=>`import { ${Py(t)} } from '${Sy[t]?"ag-grid-enterprise":"ag-grid-community"}';`));const i=t.some((t=>t==="IntegratedCharts"||t==="Sparklines"));if(i){const t=`import { AgChartsEnterpriseModule } from 'ag-charts-enterprise';`;e.push(t)}return`import { ModuleRegistry } from 'ag-grid-community'; \n${e.join(" \n")} \n\nModuleRegistry.registerModules([ ${t.map((t=>Py(t,true))).join(", ")} ]); \n\nFor more info see: ${li}/modules/`};function Py(t,e=false){if(e&&(t==="IntegratedCharts"||t==="Sparklines")){return`${t}Module.with(AgChartsEnterpriseModule)`}return`${t}Module`}function Dy(t,e){const i=e.filter((t=>t==="IntegratedCharts"||t==="Sparklines"));let s="";const o=globalThis?.agCharts;if(!o&&i.length>0){s=`Unable to use ${t} as either the ag-charts-community or ag-charts-enterprise script needs to be included alongside ag-grid-enterprise.\n`}else if(e.some((t=>Sy[t]))){s=s+`Unable to use ${t} as that requires the ag-grid-enterprise script to be included.\n`}return s}function Ty({moduleName:t,rowModelType:e}){return`To use the ${t}Module you must set the gridOption "rowModelType='${e}'"`}var By=({reasonOrId:t,moduleName:e,gridScoped:i,gridId:s,rowModelType:o,additionalText:n,isUmd:r})=>{const l=Ey(e,o);const a=typeof t==="string"?t:Oy[t];if(r){return Dy(a,l)}const h=l.filter((t=>t==="IntegratedCharts"||t==="Sparklines"));const c=h.length>0?`${h.map((t=>Py(t))).join()} must be initialised with an AG Charts module. One of 'AgChartsCommunityModule' / 'AgChartsEnterpriseModule'.`:"";const u=`Unable to use ${a} as ${l.length>1?"one of "+l.map((t=>Py(t))).join(", "):Py(l[0])} is not registered${i?" for gridId: "+s:""}. ${c} Check if you have registered the module:\n`;return`${u}\n${My(l)}`+(n?` \n\n${n}`:"")};var Ay=t=>`${t} must be initialised with an AG Charts module. One of 'AgChartsCommunityModule' / 'AgChartsEnterpriseModule'.\n\nimport { AgChartsEnterpriseModule } from 'ag-charts-enterprise';\nimport { ModuleRegistry } from 'ag-grid-community';\nimport { ${t} } from 'ag-grid-enterprise';\n \nModuleRegistry.registerModules([${t}.with(AgChartsEnterpriseModule)]);\n `;var Iy=t=>`AG Grid: Unable to use the Clipboard API (navigator.clipboard.${t}()). The reason why it could not be used has been logged in the previous line. For this reason the grid has defaulted to using a workaround which doesn't perform as well. Either fix why Clipboard API is blocked, OR stop this message from appearing by setting grid property suppressClipboardApi=true (which will default the grid to using the workaround rather than the API.`;var zy={1:()=>"`rowData` must be an array",2:({nodeId:t})=>`Duplicate node id '${t}' detected from getRowId callback, this could cause issues in your grid.`,3:()=>"Calling gridApi.resetRowHeights() makes no sense when using Auto Row Height.",4:({id:t})=>`Could not find row id=${t}, data item was not found for this id`,5:({data:t})=>[`Could not find data item as object was not found.`,t," 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:t})=>`Unknown key for navigation ${t}`,9:({variable:t})=>`No value for ${t?.cssName}. This usually means that the grid has been initialised before styles have been loaded. The default value of ${t?.defaultValue} will be used and updated when styles load.`,10:({eventType:t})=>`As of v33, the '${t}' event is deprecated. Use the global 'modelUpdated' event to determine when row children have changed.`,11:()=>"No gridOptions provided to createGrid",12:({colKey:t})=>["column ",t," 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:t})=>`Row IDs cannot start with ${t}, this is a reserved prefix for AG Grid's row grouping feature.`,15:({expression:t})=>["value should be either a string or a function",t],16:({expression:t,params:e,e:i})=>["Processing of the expression failed","Expression = ",t,"Params = ",e,"Exception = ",i],17:()=>"you need either field or valueSetter set on colDef for editing to work",18:()=>`alignedGrids contains an undefined option.`,19:()=>`alignedGrids - No api found on the linked grid.`,20:()=>`You may want to configure via a callback to avoid setup race conditions:\n "alignedGrids: () => [linkedGrid]"`,21:()=>"pivoting is not supported with aligned grids. You can only use one of these features at a time in a grid.",22:({key:t})=>`${t} 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:t})=>[`The getRowId callback must return a string. The ID `,t,` is being cast to a string.`],26:({fnName:t,preDestroyLink:e})=>`Grid API function ${t}() cannot be called as the grid has been destroyed.\n Either clear local references to the grid api, when it is destroyed, or check gridApi.isDestroyed() to avoid calling methods against a destroyed grid.\n To run logic when the grid is about to be destroyed use the gridPreDestroy event. See: ${e}`,27:({fnName:t,module:e})=>`API function '${t}' not registered to module '${e}'`,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:t})=>["tried to insert columns in invalid location, toIndex = ",t,"remember that you should not count the moving columns when calculating the new index"],31:()=>"infinite loop in resizeColumnSets",32:()=>"applyColumnState() - the state attribute should be an array, however an array was not found. Please provide an array of items (one for each col you want to change) for state.",33:()=>"stateItem.aggFunc must be a string. if using your own aggregation functions, register the functions first before using them in get/set state. This is because it is intended for the column state to be stored and retrieved as simple JSON.",34:({key:t})=>`the column type '${t}' is a default column type and cannot be overridden.`,35:()=>`Column type definitions 'columnTypes' with a 'type' attribute are not supported because a column type cannot refer to another column type. Only column definitions 'columnDefs' can use the 'type' attribute to refer to a column type.`,36:({t})=>"colDef.type '"+t+"' does not correspond to defined gridOptions.columnTypes",37:()=>`Changing the column pinning status is not allowed with domLayout='print'`,38:({iconName:t})=>`provided icon '${t}' needs to be a string or a function`,39:()=>"Applying column order broke a group where columns should be married together. Applying new order has been discarded.",40:({e:t,method:e})=>`${t}\n${Iy(e)}`,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:t})=>`As of v33, icon '${t}' is deprecated. Use the icon CSS name instead.`,44:()=>'Data type definition hierarchies (via the "extendsDataType" property) cannot contain circular references.',45:({parentCellDataType:t})=>`The data type definition ${t} does not exist.`,46:()=>'The "baseDataType" property of a data type definition must match that of its parent.',47:({cellDataType:t})=>`Missing data type definition - "${t}"`,48:({property:t})=>`Cell data type is "object" but no Value ${t} has been provided. Please either provide an object data type definition with a Value ${t}, or set "colDef.value${t}"`,49:({methodName:t})=>`Framework component is missing the method ${t}()`,50:({compName:t})=>`Could not find component ${t}, 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:t})=>`setFilterModel() - no column found for colId: ${t}`,63:({colId:t})=>`setFilterModel() - unable to fully apply model, filtering disabled for colId: ${t}`,64:({colId:t})=>`setFilterModel() - unable to fully apply model, unable to create filter for colId: ${t}`,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:t})=>`getGui method from filter returned ${t}; it should be a DOM element.`,70:({newFilter:t})=>`Grid option quickFilterText only supports string inputs, received: ${typeof t}`,71:()=>"debounceMs is ignored when apply button is present",72:({keys:t})=>[`ignoring FilterOptionDef as it doesn't contain one of `,t],73:()=>`invalid FilterOptionDef supplied as it doesn't contain a 'displayKey'`,74:()=>"no filter options for filter",75:()=>"Unknown button type specified",76:({filterModelType:t})=>['Unexpected type of filter "',t,'", it looks like the filter was configured with incorrect Filter Options'],77:()=>`Filter model is missing 'conditions'`,78:()=>'Filter Model contains more conditions than "filterParams.maxNumConditions". Additional conditions have been ignored.',79:()=>'"filterParams.maxNumConditions" must be greater than or equal to zero.',80:()=>'"filterParams.numAlwaysVisibleConditions" must be greater than or equal to zero.',81:()=>'"filterParams.numAlwaysVisibleConditions" cannot be greater than "filterParams.maxNumConditions".',82:({param:t})=>`DateFilter ${t} 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:t})=>`Invalid row index for ensureIndexVisible: ${t}`,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:t,pageSizeSet:e,pageSizesSet:i,pageSizeOptions:s})=>`'paginationPageSize=${t}'${e?"":" (default value)"}, but ${t} is not included in${i?"":" the default"} paginationPageSizeSelector=[${s?.join(", ")}].`,95:({paginationPageSizeOption:t,paginationPageSizeSelector:e})=>`Either set '${e}' to an array that includes ${t} or to 'false' to disable the page size selector.`,96:({id:t,data:e})=>["Duplicate ID",t,"found for pinned row with data",e,"When `getRowId` is defined, it must return unique IDs for all pinned rows. Use the `rowPinned` parameter."],97:({colId:t})=>`cellEditor for column ${t} is missing getGui() method`,98:()=>"popup cellEditor does not work with fullRowEdit - you cannot use them both - either turn off fullRowEdit, or stop using popup editors.",99:()=>"Since v32, `api.hideOverlay()` does not hide the loading overlay when `loading=true`. Set `loading=false` instead.",101:({propertyName:t,componentName:e,agGridDefaults:i,jsComps:s})=>{const o=[];const n=[...Object.keys(i??[]).filter((t=>!["agCellEditor","agGroupRowRenderer","agSortIndicator"].includes(t))),...Object.keys(s??[]).filter((t=>!!s[t]))];const r=Er({inputValue:e,allSuggestions:n,hideIrrelevant:true,filterByPercentageOfBestMatch:.8}).values;o.push(`Could not find '${e}' component. It was configured as "${t}: '${e}'" but it wasn't found in the list of registered components.\n`);if(r.length>0){o.push(` Did you mean: [${r.slice(0,3)}]?\n`)}o.push(`If using a custom component check it has been registered correctly.`);return o},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:t,param:e})=>`Numeric value ${t} passed to ${e} param will be interpreted as ${t} seconds. If this is intentional use "${t}s" to silence this warning.`,105:({e:t})=>[`chart rendering failed`,t],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: ${li}/theming-migration/`,107:({key:t,value:e})=>`Invalid value for theme param ${t} - ${e}`,108:({e:t})=>["chart update failed",t],109:({inputValue:t,allSuggestions:e})=>{const i=Er({inputValue:t,allSuggestions:e,hideIrrelevant:true,filterByPercentageOfBestMatch:.8}).values;return[`Could not find '${t}' aggregate function. It was configured as "aggFunc: '${t}'" but it wasn't found in the list of registered aggregations.`,i.length>0?` Did you mean: [${i.slice(0,3)}]?`:"",`If using a custom aggregation function check it has been registered correctly.`].join("\n")},110:()=>"groupHideOpenParents only works when specifying specific columns for colDef.showRowGroup",111:()=>"Invalid selection state. When `groupSelects` is enabled, the state must conform to `IServerSideGroupSelectionState`.",113:()=>"Set Filter cannot initialise because you are using a row model that does not contain all rows in the browser. Either use a different filter type, or configure Set Filter such that you provide it with values",114:({component:t})=>`Could not find component with name of ${t}. 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:t})=>`Unable to update chart. No active chart found with ID: ${t}.`,126:()=>"unable to restore chart as no chart model is provided",127:({allRange:t})=>`unable to create chart as ${t?"there are no columns in the grid":"no range is selected"}.`,128:({feature:t})=>`${t} is only available if using 'multiRow' selection mode.`,129:({feature:t,rowModel:e})=>`${t} is only available if using 'clientSide' or 'serverSide' rowModelType, you are using ${e}.`,130:()=>'cannot multi select unless selection mode is "multiRow"',132:()=>"Row selection features are not available unless `rowSelection` is enabled.",133:({iconName:t})=>`icon '${t}' function should return back a string or a dom object`,134:({iconName:t})=>`Did not find icon '${t}'`,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:t,currentChartType:e})=>`Unable to update chart as a '${t}' update type is not permitted on a ${e}.`,138:({chartType:t})=>`invalid chart type supplied: ${t}`,139:({customThemeName:t})=>`a custom chart theme with the name ${t} has been supplied but not added to the 'chartThemes' list`,140:({name:t})=>`no stock theme exists with the name '${t}' 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:t})=>`'${t}' is not a valid Chart Tool Panel name`,144:({type:t})=>`Invalid charts data panel group name supplied: '${t}'`,145:({group:t})=>`As of v32, only one charts customize panel group can be expanded at a time. '${t}' will not be expanded.`,146:({comp:t})=>`Unable to instantiate component '${t}' as its module hasn't been loaded. Add 'ValidationModule' to see which module is required.`,147:({group:t})=>`Invalid charts customize panel group name supplied: '${t}'`,148:({group:t})=>`invalid chartGroupsDef config '${t}'`,149:({group:t,chartType:e})=>`invalid chartGroupsDef config '${t}.${e}'`,150:()=>`'seriesChartTypes' are required when the 'customCombo' chart type is specified.`,151:({chartType:t})=>`invalid chartType '${t}' supplied in 'seriesChartTypes', converting to 'line' instead.`,152:({colId:t})=>`no 'seriesChartType' found for colId = '${t}', defaulting to 'line'.`,153:({chartDataType:t})=>`unexpected chartDataType value '${t}' supplied, instead use 'category', 'series' or 'excluded'`,154:({colId:t})=>`cross filtering requires a 'agSetColumnFilter' or 'agMultiColumnFilter' to be defined on the column with id: ${t}`,155:({option:t})=>`'${t}' is not a valid Chart Toolbar Option`,156:({panel:t})=>`Invalid panel in chartToolPanelsDef.panels: '${t}'`,157:({unrecognisedGroupIds:t})=>["unable to find group(s) for supplied groupIds:",t],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:t,dataType:e})=>`Unrecognized data type for excel export [${t}.dataType=${e}]`,163:({featureName:t})=>`Excel table export does not work with ${t}. The exported Excel file will not contain any Excel tables.\n Please turn off ${t} 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:t})=>["unable to find groups for these supplied groupIds:",t],167:({unrecognisedColIds:t})=>["unable to find columns for these supplied colIds:",t],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:t})=>`invalid cellRendererParams.refreshStrategy = ${t} 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:t})=>`invalid chartGroupsDef config '${t}'`,174:({group:t,chartType:e})=>`invalid chartGroupsDef config '${t}.${e}'`,175:({menuTabName:t,itemsToConsider:e})=>[`Trying to render an invalid menu item '${t}'. Check that your 'menuTabs' contains one of `,e],176:({key:t})=>`unknown menu item type ${t}`,177:()=>`valid values for cellSelection.handle.direction are 'x', 'y' and 'xy'. Default to 'xy'.`,178:({colId:t})=>`column ${t} 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:t,childNodeData:e})=>[`duplicate group keys for row data, keys should be unique`,[t,e]],185:({data:t})=>[`getDataPath() should not return an empty path`,[t]],186:({rowId:t,rowData:e,duplicateRowsData:i})=>[`duplicate group keys for row data, keys should be unique`,t,e,...i??[]],187:({rowId:t,firstData:e,secondData:i})=>[`Duplicate node id ${t}. Row IDs are provided via the getRowId() callback. Please modify the getRowId() callback code to provide unique row id values.`,"first instance",e,"second instance",i],188:t=>`getRowId callback must be provided for Server Side Row Model ${t?.feature||"selection"} to work correctly.`,189:({startRow:t})=>`invalid value ${t} for startRow, the value should be >= 0`,190:({rowGroupId:t,data:e})=>[`null and undefined values are not allowed for server side row model keys`,t?`column = ${t}`:``,`data is `,e],194:({method:t})=>`calling gridApi.${t}() is only possible when using rowModelType=\`clientSide\`.`,195:({justCurrentPage:t})=>`selecting just ${t?"current page":"filtered"} only works when gridOptions.rowModelType='clientSide'`,196:({key:t})=>`Provided ids must be of string type. Invalid id provided: ${t}`,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:By,201:({rowModelType:t})=>`Could not find row model for rowModelType = ${t}`,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:t})=>`Unable to display rows as duplicate row ids (${t}) 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 ${li}/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:t})=>`unable to lookup Tool Panel as invalid key supplied: ${t}`,215:({key:t,defaultByKey:e})=>`the key ${t} is not a valid key for specifying a tool panel, valid keys are: ${Object.keys(e??{}).join(",")}`,216:({name:t})=>`Missing component for '${t}'`,217:({invalidColIds:t})=>["unable to find grid columns for the supplied colDef(s):",t],218:({property:t,defaultOffset:e})=>`${t} must be a number, the value you provided is not a valid number. Using the default of ${e}px.`,219:({property:t})=>`Property ${t} does not exist on the target object.`,220:({lineDash:t})=>`'${t}' 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:t})=>`unrecognised menu item ${t}`,229:({index:t})=>["invalid row index for ensureIndexVisible: ",t],230:()=>"detailCellRendererParams.template is not supported by AG Grid React. To change the template, provide a Custom Detail Cell Renderer. See https://www.ag-grid.com/react-data-grid/master-detail-custom-detail/",231:()=>"As of v32, using custom components with `reactiveCustomComponents = false` is deprecated.",232:()=>"Using both rowData and v-model. rowData will be ignored.",233:({methodName:t})=>`Framework component is missing the method ${t}()`,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:t})=>`theme grid option must be a Theming API theme object or the string "legacy", received: ${t}`,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:t})=>`AG Grid: Unable to create chart as an invalid chartType = '${t}' 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:t})=>["Illegal version string: ",t],254:()=>"Cannot create chart: no chart themes available.",255:({point:t})=>`Lone surrogate U+${t?.toString(16).toUpperCase()} is not a scalar value`,256:()=>"Unable to initialise. See validation error, or load ValidationModule if missing.",257:()=>Ay("IntegratedChartsModule"),258:()=>Ay("SparklinesModule"),259:({part:t})=>`the argument to theme.withPart must be a Theming API part object, received: ${t}`,260:({propName:t,compName:e,gridScoped:i,gridId:s,rowModelType:o})=>By({reasonOrId:`AG Grid '${t}' component: ${e}`,moduleName:Gw[e],gridId:s,gridScoped:i,rowModelType:o}),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:t})=>`Unable to infer chart data type for column '${t}' if first data entry is null. Please specify "chartDataType", or a "cellDataType" in the column definition. For more information, see ${li}/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:t,parentId:e})=>`Cycle detected for row with id='${t}' and parent id='${e}'. Resetting the parent for row with id='${t}' and showing it as a root-level node.`,271:({id:t,parentId:e})=>`Parent row not found for row with id='${t}' and parent id='${e}'. Showing row with id='${t}' as a root-level node.`,272:()=>Fy(),273:({providedId:t,usedId:e})=>`Provided column id '${t}' was already in use, ensure all column and group ids are unique. Using '${e}' instead.`,274:({prop:t})=>{let e=`Since v33, ${t} has been deprecated.`;switch(t){case"maxComponentCreationTimeMs":e+=" This property is no longer required and so will be removed in a future version.";break;case"setGridApi":e+=` 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":e+=` For multiple versions AgGridReact does not support children.`;break}return e},275:Ty,276:()=>"Row Numbers Row Resizer cannot be used when Grid Columns have `autoHeight` enabled.",277:({colId:t})=>`'enableFilterHandlers' is set to true, but column '${t}' does not have 'filter.doesFilterPass' or 'filter.handler' set.`,278:({colId:t})=>`Unable to create filter handler for column '${t}'`,279:t=>{},280:({colId:t})=>`'name' must be provided for custom filter components for column '${t}`,281:({colId:t})=>`Filter for column '${t}' 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:t})=>`Row Model '${t}' is not supported with Batch Editing`,290:({rowIndex:t,rowPinned:e})=>`Row with index '${t}' and pinned state '${e}' not found`,291:()=>"License Key being set multiple times with different values. This can result in an incorrect license key being used,",292:({colId:t})=>`The Multi Filter for column '${t}' has buttons configured against the child filters. When 'enableFilterHandlers=true', buttons must instead be provided against the parent Multi Filter params. The child filter buttons will be ignored.`};function Hy(t,e){const i=zy[t];if(!i){return[`Missing error text for error id ${t}!`]}const s=i(e);const o=vi(t,e);const n=`\nSee ${o}`;return Array.isArray(s)?s.concat(n):[s,n]}var Oy={1:"Charting Aggregation",2:"pivotResultFields",3:"setTooltip"};var Ly=new WeakMap;var Vy=new WeakMap;function Ny(t,e,i){if(!e){bi(11);return{}}const s=i;let o;if(!s?.setThemeOnGridDiv){const e=gh({tag:"div"});e.style.height="100%";t.appendChild(e);t=e;o=()=>t.remove()}const n=(new $y).create(t,e,(e=>{const i=new Sf(t);e.createBean(i)}),void 0,i,o);return n}var Gy=1;var $y=class{create(t,e,i,s,o,n){const r=Me.applyGlobalGridOptions(e);const l=r.gridId??String(Gy++);const a=this.getRegisteredModules(o,l,r.rowModelType);const h=this.createBeansList(r.rowModelType,a,l);const c=this.createProvidedBeans(t,r,o);if(!h){return void 0}const u=()=>{Vy.delete(g);Ly.delete(t);qe(l);n?.()};const d={providedBeanInstances:c,beanClasses:h,id:l,beanInitComparator:sf,beanDestroyComparator:of,derivedBeans:[Xd],destroyCallback:u};const f=new ma(d);this.registerModuleFeatures(f,a);i(f);f.getBean("syncSvc").start();s?.(f);const g=f.getBean("gridApi");Ly.set(t,g);Vy.set(g,t);return g}getRegisteredModules(t,e,i){je(yy,void 0,true);t?.modules?.forEach((t=>je(t,e)));return Ze(e,Wy(i))}registerModuleFeatures(t,e){const i=t.getBean("registry");const s=t.getBean("apiFunctionSvc");for(const t of e){i.registerModule(t);const e=t.apiFunctions;if(e){const t=Object.keys(e);for(const i of t){s?.addFunction(i,e[i])}}}}createProvidedBeans(t,e,i){let o=i?i.frameworkOverrides:null;if(s(o)){o=new Jd}const n={gridOptions:e,eGridDiv:t,eRootDiv:t,globalListener:i?i.globalListener:null,globalSyncListener:i?i.globalSyncListener:null,frameworkOverrides:o};if(i?.providedBeanInstances){Object.assign(n,i.providedBeanInstances)}return n}createBeansList(t,e,i){const s={clientSide:"ClientSideRowModel",infinite:"InfiniteRowModel",serverSide:"ServerSideRowModel",viewport:"ViewportRowModel"};const o=Wy(t);const n=s[o];if(!n){yi(201,{rowModelType:o},`Unknown rowModelType ${o}.`);return}if(!Je()){yi(272,void 0,Fy());return}if(!t){const t=Object.entries(s).filter((([t,e])=>Ke(e,i,t)));if(t.length==1){const[e,i]=t[0];if(e!==o){const t={moduleName:i,rowModelType:e};yi(275,t,Ty(t));return}}}if(!Ke(n,i,o)){yi(200,{reasonOrId:`rowModelType = '${o}'`,moduleName:n,gridScoped:_e(),gridId:i,rowModelType:o},`Missing module ${n}Module for rowModelType ${o}.`);return}const r=new Set;for(const t of e){for(const e of t.beans??[]){r.add(e)}}return Array.from(r)}};function Wy(t){return t??"clientSide"}function Uy(t){if(typeof t==="string"){try{t=document.querySelector(`[grid-id="${t}"]`)?.parentElement??document.querySelector(t)?.firstElementChild??document.getElementById(t)?.firstElementChild}catch{t=null}}return t?Ly.get(t):void 0}function jy(t){return Vy.get(t)}function qy(t){const e=t.rowModel;return e.getType()==="clientSide"?e:void 0}function Ky(t){const e=t.rowModel;return e.getType()==="infinite"?e:void 0}function _y(t){const e=t.rowModel;return e.getType()==="serverSide"?e:void 0}function Zy(t){const e=t.rowModel;return e.getType()==="viewport"?e:void 0}var Qy=class extends ge{constructor(){super(...arguments);this.beanName="localeSvc"}getLocaleTextFunc(){const t=this.gos;const e=t.getCallback("getLocaleText");if(e){return he(e)}return ce(t.get("localeText"))}};function Yy(t,e=false){const i=[];const s=[];const o=[];const n=[];const r=[];const l=[];const a=[];const h=[];const c=[];let u=0;for(let e=0;et!=void 0))}function Xy(t){const e=[];for(const{groupId:i,open:s}of t){if(s){e.push(i)}}return e.length?{openColumnGroupIds:e}:void 0}function tS(t){return{columnGroup:Xy(t)}}var eS=class{wrap(t,e,i,s){const o=this.createWrapper(t,s);for(const t of e??[]){this.createMethod(o,t,true)}for(const t of i??[]){this.createMethod(o,t,false)}return o}createMethod(t,e,i){t.addMethod(e,this.createMethodProxy(t,e,i))}createMethodProxy(t,e,i){return function(){if(t.hasMethod(e)){return t.callMethod(e,arguments)}if(i){Ci(49,{methodName:e})}return null}}};function iS(t){return t.get("tooltipShowMode")==="whenTruncated"}function sS(t,e){return iS(t)?Pt(e):void 0}function oS(t,e){if(typeof t!=="number"){return""}const i=e();const s=i("thousandSeparator",",");const o=i("decimalSeparator",".");return t.toString().replace(".",o).replace(/(\d)(?=(\d{3})+(?!\d))/g,`$1${s}`)}var nS=class extends ge{getFileName(t){const e=this.getDefaultFileExtension();if(!t?.length){t=this.getDefaultFileName()}return t.includes(".")?t:`${t}.${e}`}getData(t){const e=this.createSerializingSession(t);return this.beans.gridSerializer.serialize(e,t)}getDefaultFileName(){return`export.${this.getDefaultFileExtension()}`}};var rS=class{constructor(t){const{colModel:e,rowGroupColsSvc:i,colNames:s,valueSvc:o,gos:n,processCellCallback:r,processHeaderCallback:l,processGroupHeaderCallback:a,processRowGroupCallback:h}=t;this.colModel=e;this.rowGroupColsSvc=i;this.colNames=s;this.valueSvc=o;this.gos=n;this.processCellCallback=r;this.processHeaderCallback=l;this.processGroupHeaderCallback=a;this.processRowGroupCallback=h}prepare(t){}extractHeaderValue(t){const e=this.getHeaderName(this.processHeaderCallback,t);return e??""}extractRowCellValue(t,e,i,s,o){const n=e===0&&Ki(this.gos,o,this.colModel.isPivotMode());if(this.processRowGroupCallback&&(this.gos.get("treeData")||o.group)&&(t.isRowGroupDisplayed(o.rowGroupColumn?.getColId()??"")||n)){return{value:this.processRowGroupCallback(Rs(this.gos,{column:t,node:o}))??""}}if(this.processCellCallback){return{value:this.processCellCallback(Rs(this.gos,{accumulatedRowIndex:i,column:t,node:o,value:this.valueSvc.getValueForDisplay(t,o,void 0,void 0).value,type:s,parseValue:e=>this.valueSvc.parseValue(t,o,e,this.valueSvc.getValue(t,o,void 0)),formatValue:e=>this.valueSvc.formatValue(t,o,e)??e}))??""}}const r=this.gos.get("treeData");const l=this.valueSvc;const a=o.level===-1&&o.footer;const h=t.colDef.showRowGroup===true&&(o.group||r);if(!a&&(n||h)){let e="";let i=o;while(i&&i.level!==-1){const{value:s,valueFormatted:o}=l.getValueForDisplay(n?void 0:t,i,true,true);e=` -> ${o??s??""}${e}`;i=i.parent}return{value:e,valueFormatted:e}}const{value:c,valueFormatted:u}=l.getValueForDisplay(t,o,true,true);return{value:c??"",valueFormatted:u}}getHeaderName(t,e){if(t){return t(Rs(this.gos,{column:e}))}return this.colNames.getDisplayNameForColumn(e,"csv",true)}};function lS(t,e){const i=document.defaultView||window;if(!i){Ci(52);return}const s=document.createElement("a");const o=i.URL.createObjectURL(e);s.setAttribute("href",o);s.setAttribute("download",t);s.style.display="none";document.body.appendChild(s);s.dispatchEvent(new MouseEvent("click",{bubbles:false,cancelable:true,view:i}));s.remove();i.setTimeout((()=>{i.URL.revokeObjectURL(o)}),0)}var aS={enableBrowserTooltips:true,tooltipTrigger:true,tooltipMouseTrack:true,tooltipShowMode:true,tooltipInteraction:true,defaultColGroupDef:true,suppressAutoSize:true,skipHeaderOnAutoSize:true,autoSizeStrategy:true,components:true,stopEditingWhenCellsLoseFocus:true,undoRedoCellEditing:true,undoRedoCellEditingLimit:true,excelStyles:true,cacheQuickFilter:true,customChartThemes:true,chartThemeOverrides:true,chartToolPanelsDef:true,loadingCellRendererSelector:true,localeText:true,keepDetailRows:true,keepDetailRowsCount:true,detailRowHeight:true,detailRowAutoHeight:true,tabIndex:true,valueCache:true,valueCacheNeverExpires:true,enableCellExpressions:true,suppressTouch:true,suppressBrowserResizeObserver:true,suppressPropertyNamesCheck:true,debug:true,dragAndDropImageComponent:true,loadingOverlayComponent:true,suppressLoadingOverlay:true,noRowsOverlayComponent:true,paginationPageSizeSelector:true,paginateChildRows:true,pivotPanelShow:true,pivotSuppressAutoColumn:true,suppressExpandablePivotGroups:true,aggFuncs:true,allowShowChangeAfterFilter:true,ensureDomOrder:true,enableRtl:true,suppressColumnVirtualisation:true,suppressMaxRenderedRowRestriction:true,suppressRowVirtualisation:true,rowDragText:true,groupLockGroupColumns:true,suppressGroupRowsSticky:true,rowModelType:true,cacheOverflowSize:true,infiniteInitialRowCount:true,serverSideInitialRowCount:true,maxBlocksInCache:true,maxConcurrentDatasourceRequests:true,blockLoadDebounceMillis:true,serverSideOnlyRefreshFilteredGroups:true,serverSidePivotResultFieldSeparator:true,viewportRowModelPageSize:true,viewportRowModelBufferSize:true,debounceVerticalScrollbar:true,suppressAnimationFrame:true,suppressPreventDefaultOnMouseWheel:true,scrollbarWidth:true,icons:true,suppressRowTransform:true,gridId:true,enableGroupEdit:true,initialState:true,processUnpinnedColumns:true,createChartContainer:true,getLocaleText:true,getRowId:true,reactiveCustomComponents:true,renderingMode:true,columnMenu:true,suppressSetFilterByDefault:true,getDataPath:true,enableCellSpan:true,enableFilterHandlers:true,filterHandlers:true};var hS="clientSide";var cS="serverSide";var uS="infinite";var dS={onGroupExpandedOrCollapsed:[hS],refreshClientSideRowModel:[hS],isRowDataEmpty:[hS],forEachLeafNode:[hS],forEachNodeAfterFilter:[hS],forEachNodeAfterFilterAndSort:[hS],resetRowHeights:[hS,cS],applyTransaction:[hS],applyTransactionAsync:[hS],flushAsyncTransactions:[hS],getBestCostNodeSelection:[hS],getServerSideSelectionState:[cS],setServerSideSelectionState:[cS],applyServerSideTransaction:[cS],applyServerSideTransactionAsync:[cS],applyServerSideRowData:[cS],retryServerSideLoads:[cS],flushServerSideAsyncTransactions:[cS],refreshServerSide:[cS],getServerSideGroupLevelState:[cS],refreshInfiniteCache:[uS],purgeInfiniteCache:[uS],getInfiniteRowCount:[uS],isLastRowIndexKnown:[uS,cS],expandAll:[hS,cS],collapseAll:[hS,cS],onRowHeightChanged:[hS,cS],setRowCount:[uS,cS],getCacheBlockState:[uS,cS]};var fS={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 gS(t,e,i){const s=fS[t];if(s){const{version:i,new:o,old:n,message:r}=s;const l=n??t;return(...t)=>{const s=o?`Please use ${o} instead. `:"";Ie(`Since ${i} api.${l} is deprecated. ${s}${r??""}`);return e.apply(e,t)}}const o=dS[t];if(o){return(...s)=>{const n=i.rowModel.getType();if(!o.includes(n)){ze(`api.${t} can only be called when gridOptions.rowModelType is ${o.join(" or ")}`);return void 0}return e.apply(e,s)}}return e}var pS={detailCellRendererCtrl:"SharedMasterDetail",dndSourceComp:"DragAndDrop",fillHandle:"CellSelection",groupCellRendererCtrl:"GroupCellRenderer",headerFilterCellCtrl:"ColumnFilter",headerGroupCellCtrl:"ColumnGroup",rangeHandle:"CellSelection",tooltipFeature:"Tooltip",highlightTooltipFeature:"Tooltip",tooltipStateManager:"Tooltip",groupStrategy:"RowGrouping",treeGroupStrategy:"TreeData",rowNumberRowResizer:"RowNumbers",singleCell:"EditCore",fullRow:"EditCore",agSetColumnFilterHandler:"SetFilter",agMultiColumnFilterHandler:"MultiFilter",agGroupColumnFilterHandler:"GroupFilter",agNumberColumnFilterHandler:"NumberFilter",agDateColumnFilterHandler:"DateFilter",agTextColumnFilterHandler:"TextFilter"};var mS={expanded:1,contracted:1,"tree-closed":1,"tree-open":1,"tree-indeterminate":1,pin:1,"eye-slash":1,arrows:1,left:1,right:1,group:1,aggregation:1,pivot:1,"not-allowed":1,chart:1,cross:1,cancel:1,tick:1,first:1,previous:1,next:1,last:1,linked:1,unlinked:1,"color-picker":1,loading:1,menu:1,"menu-alt":1,filter:1,"filter-add":1,columns:1,maximize:1,minimize:1,copy:1,cut:1,paste:1,grip:1,save:1,csv:1,excel:1,"small-down":1,"small-left":1,"small-right":1,"small-up":1,asc:1,desc:1,none:1,up:1,down:1,plus:1,minus:1,settings:1,"checkbox-checked":1,"checkbox-indeterminate":1,"checkbox-unchecked":1,"radio-button-on":1,"radio-button-off":1,eye:1,"column-arrow":1,"un-pin":1,"pinned-top":1,"pinned-bottom":1,"chevron-up":1,"chevron-down":1,"chevron-left":1,"chevron-right":1,edit:1};var vS={chart:"MenuCore",cancel:"EnterpriseCore",first:"Pagination",previous:"Pagination",next:"Pagination",last:"Pagination",linked:"IntegratedCharts",loadingMenuItems:"MenuCore",unlinked:"IntegratedCharts",menu:"ColumnHeaderComp",legacyMenu:"ColumnMenu",filter:"ColumnFilter",filterActive:"ColumnFilter",filterAdd:"NewFiltersToolPanel",filterCardCollapse:"NewFiltersToolPanel",filterCardExpand:"NewFiltersToolPanel",filterCardEditing:"NewFiltersToolPanel",filterTab:"ColumnMenu",filtersToolPanel:"FiltersToolPanel",columns:["MenuCore"],columnsToolPanel:["ColumnsToolPanel"],maximize:"EnterpriseCore",minimize:"EnterpriseCore",save:"MenuCore",columnGroupOpened:"ColumnGroupHeaderComp",columnGroupClosed:"ColumnGroupHeaderComp",accordionOpen:"EnterpriseCore",accordionClosed:"EnterpriseCore",accordionIndeterminate:"EnterpriseCore",columnSelectClosed:["ColumnsToolPanel","ColumnMenu"],columnSelectOpen:["ColumnsToolPanel","ColumnMenu"],columnSelectIndeterminate:["ColumnsToolPanel","ColumnMenu"],columnMovePin:"SharedDragAndDrop",columnMoveHide:"SharedDragAndDrop",columnMoveMove:"SharedDragAndDrop",columnMoveLeft:"SharedDragAndDrop",columnMoveRight:"SharedDragAndDrop",columnMoveGroup:"SharedDragAndDrop",columnMoveValue:"SharedDragAndDrop",columnMovePivot:"SharedDragAndDrop",dropNotAllowed:"SharedDragAndDrop",ensureColumnVisible:["ColumnsToolPanel","ColumnMenu"],groupContracted:"GroupCellRenderer",groupExpanded:"GroupCellRenderer",setFilterGroupClosed:"SetFilter",setFilterGroupOpen:"SetFilter",setFilterGroupIndeterminate:"SetFilter",setFilterLoading:"SetFilter",close:"EnterpriseCore",check:"MenuItem",colorPicker:"CommunityCore",groupLoading:"LoadingCellRenderer",menuAlt:"ColumnHeaderComp",menuPin:"MenuCore",menuValue:"MenuCore",menuAddRowGroup:["MenuCore","ColumnsToolPanel"],menuRemoveRowGroup:["MenuCore","ColumnsToolPanel"],clipboardCopy:"MenuCore",clipboardCut:"MenuCore",clipboardPaste:"MenuCore",pivotPanel:["ColumnsToolPanel","RowGroupingPanel"],rowGroupPanel:["ColumnsToolPanel","RowGroupingPanel"],valuePanel:"ColumnsToolPanel",columnDrag:"EnterpriseCore",rowDrag:["RowDrag","DragAndDrop"],csvExport:"MenuCore",excelExport:"MenuCore",smallDown:"CommunityCore",selectOpen:"CommunityCore",richSelectOpen:"RichSelect",richSelectRemove:"RichSelect",smallLeft:"CommunityCore",smallRight:"CommunityCore",subMenuOpen:"MenuItem",subMenuOpenRtl:"MenuItem",panelDelimiter:"RowGroupingPanel",panelDelimiterRtl:"RowGroupingPanel",smallUp:"CommunityCore",sortAscending:["MenuCore","Sort"],sortDescending:["MenuCore","Sort"],sortUnSort:["MenuCore","Sort"],advancedFilterBuilder:"AdvancedFilter",advancedFilterBuilderDrag:"AdvancedFilter",advancedFilterBuilderInvalid:"AdvancedFilter",advancedFilterBuilderMoveUp:"AdvancedFilter",advancedFilterBuilderMoveDown:"AdvancedFilter",advancedFilterBuilderAdd:"AdvancedFilter",advancedFilterBuilderRemove:"AdvancedFilter",advancedFilterBuilderSelectOpen:"AdvancedFilter",chartsMenu:"IntegratedCharts",chartsMenuEdit:"IntegratedCharts",chartsMenuAdvancedSettings:"IntegratedCharts",chartsMenuAdd:"IntegratedCharts",chartsColorPicker:"IntegratedCharts",chartsThemePrevious:"IntegratedCharts",chartsThemeNext:"IntegratedCharts",chartsDownload:"IntegratedCharts",checkboxChecked:"CommunityCore",checkboxIndeterminate:"CommunityCore",checkboxUnchecked:"CommunityCore",radioButtonOn:"CommunityCore",radioButtonOff:"CommunityCore",rowPin:"PinnedRow",rowUnpin:"PinnedRow",rowPinBottom:"PinnedRow",rowPinTop:"PinnedRow"};var wS=new Set(["colorPicker","smallUp","checkboxChecked","checkboxIndeterminate","checkboxUnchecked","radioButtonOn","radioButtonOff","smallDown","smallLeft","smallRight"]);var CS=class extends ge{constructor(){super(...arguments);this.beanName="validation"}wireBeans(t){this.gridOptions=t.gridOptions;ai(Hy)}warnOnInitialPropertyUpdate(t,e){if(t==="api"&&aS[e]){Ci(22,{key:e})}}processGridOptions(t){this.processOptions(t,aC())}validateApiFunction(t,e){return gS(t,e,this.beans)}missingUserComponent(t,e,i,s){const o=Gw[e];if(o){this.gos.assertModuleRegistered(o,`AG Grid '${t}' component: ${e}`)}else{Ci(101,{propertyName:t,componentName:e,agGridDefaults:i,jsComps:s})}}missingDynamicBean(t){const e=pS[t];return e?ki(200,{...this.gos.getModuleErrorParams(),moduleName:e,reasonOrId:t}):void 0}checkRowEvents(t){if(yS.has(t)){Ci(10,{eventType:t})}}validateIcon(t){if(wS.has(t)){Ci(43,{iconName:t})}if(mS[t]){return}const e=vS[t];if(e){bi(200,{reasonOrId:`icon '${t}'`,moduleName:e,gridScoped:_e(),gridId:this.beans.context.getId(),rowModelType:this.gos.get("rowModelType"),additionalText:"Alternatively, use the CSS icon name directly."});return}Ci(134,{iconName:t})}isProvidedUserComp(t){return!!Gw[t]}validateColDef(t){this.processOptions(t,_w())}processOptions(t,e){const{validations:i,deprecations:s,allProperties:o,propertyExceptions:n,objectName:r,docsUrl:l}=e;if(o&&this.gridOptions.suppressPropertyNamesCheck!==true){this.checkProperties(t,[...n??[],...Object.keys(s)],o,r,l)}const a=new Set;const h=Object.keys(t);h.forEach((e=>{const o=s[e];if(o){const{message:t,version:i}=o;a.add(`As of v${i}, ${String(e)} is deprecated. ${t??""}`)}const n=t[e];if(n==null||n===false){return}const r=i[e];if(!r){return}const{dependencies:l,validate:h,supportedRowModels:c,expectedType:u}=r;if(u){const t=typeof n;if(t!==u){a.add(`${String(e)} should be of type '${u}' but received '${t}' (${n}).`);return}}if(c){const t=this.gridOptions.rowModelType??"clientSide";if(!c.includes(t)){a.add(`${String(e)} is not supported with the '${t}' row model. It is only valid with: ${c.join(", ")}.`);return}}if(l){const i=this.checkForRequiredDependencies(e,l,t);if(i){a.add(i);return}}if(h){const e=h(t,this.gridOptions,this.beans);if(e){a.add(e);return}}}));if(a.size>0){for(const t of a){Ie(t)}}}checkForRequiredDependencies(t,e,i){const s=Object.entries(e);const o=s.filter((([t,e])=>{const s=i[t];return!e.required.includes(s)}));if(o.length===0){return null}return o.map((([e,i])=>`'${String(t)}' requires '${e}' to be one of [${i.required.map((t=>{if(t===null){return"null"}else if(t===void 0){return"undefined"}return t})).join(", ")}]. ${i.reason??""}`)).join("\n ")}checkProperties(t,e,i,s,o){const n=["__ob__","__v_skip","__metadata__"];const r=bS(Object.getOwnPropertyNames(t),[...n,...e,...i],i);const l=Object.keys(r);for(const t of l){const e=r[t];let o=`invalid ${s} property '${t}' did you mean any of these: ${e.slice(0,8).join(", ")}.`;if(i.includes("context")){o+=`\nIf you are trying to annotate ${s} with application data, use the '${s}.context' property instead.`}Ie(o)}if(l.length>0&&o){const t=this.beans.frameworkOverrides.getDocLink(o);Ie(`to see all the valid ${s} properties please check: ${t}`)}}};function bS(t,e,i){const s={};const o=t.filter((t=>!e.some((e=>e===t))));if(o.length>0){for(const t of o){s[t]=Er({inputValue:t,allSuggestions:i}).values}}return s}var yS=new Set(["firstChildChanged","lastChildChanged","childIndexChanged"]);var SS={moduleName:"Validation",version:ii,beans:[CS]};function xS(t){const e=t.sibling;if(e){e.childrenAfterFilter=t.childrenAfterFilter}}var kS=class extends ge{constructor(){super(...arguments);this.beanName="filterStage";this.step="filter";this.refreshProps=["excludeChildrenWhenTreeDataFiltering"]}wireBeans(t){this.filterManager=t.filterManager}execute(t){const{changedPath:e}=t;this.filter(e)}filter(t){const e=!!this.filterManager?.isChildFilterPresent();this.filterNodes(e,t)}filterNodes(t,e){const i=(e,i)=>{if(e.hasChildren()){if(t&&!i){e.childrenAfterFilter=e.childrenAfterGroup.filter((t=>{const e=t.childrenAfterFilter&&t.childrenAfterFilter.length>0;const i=t.data&&this.filterManager.doesRowPassFilter({rowNode:t});return e||i}))}else{e.childrenAfterFilter=e.childrenAfterGroup}}else{e.childrenAfterFilter=e.childrenAfterGroup}xS(e)};if(this.doingTreeDataFiltering()){const t=(e,s)=>{if(e.childrenAfterGroup){for(let o=0;ot(e,false);e.executeFromRootNode(s)}else{const t=t=>i(t,false);e.forEachChangedNodeDepthFirst(t,true)}}doingTreeDataFiltering(){return this.gos.get("treeData")&&!this.gos.get("excludeChildrenWhenTreeDataFiltering")}};var RS=class extends $u{constructor(){super(...arguments);this.iconCreated=false}wireComp(t,e,i,s,o){this.comp=t;const n=Uo(this,this.beans.context,o);this.eButtonShowMainFilter=i;this.eFloatingFilterBody=s;this.setGui(e,n);this.setupActive();this.refreshHeaderStyles();this.setupWidth(n);this.setupLeft(n);this.setupHover(n);this.setupFocus(n);this.setupAria();this.setupFilterButton();this.setupUserComp();this.setupSyncWithFilter(n);this.setupUi();n.addManagedElementListeners(this.eButtonShowMainFilter,{click:this.showParentFilter.bind(this)});this.setupFilterChangedListener(n);const r=()=>this.onColDefChanged(n);n.addManagedListeners(this.column,{colDefChanged:r});n.addManagedEventListeners({filterSwitched:({column:t})=>{if(t===this.column){r()}}});n.addDestroyFunc((()=>{this.eButtonShowMainFilter=null;this.eFloatingFilterBody=null;this.userCompDetails=null;this.clearComponent()}))}resizeHeader(){}moveHeader(){}getHeaderClassParams(){const{column:t,beans:e}=this;const i=t.colDef;return Rs(e.gos,{colDef:i,column:t,floatingFilter:true})}setupActive(){const t=this.column.getColDef();const e=!!t.filter;const i=!!t.floatingFilter;this.active=e&&i}setupUi(){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);if(!this.active||this.iconCreated){return}const t=od("filter",this.beans,this.column);if(t){this.iconCreated=true;this.eButtonShowMainFilter.appendChild(t)}}setupFocus(t){t.createManagedBean(new Wh(this.eGui,{shouldStopEventPropagation:this.shouldStopEventPropagation.bind(this),onTabKeyDown:this.onTabKeyDown.bind(this),handleKeyDown:this.handleKeyDown.bind(this),onFocusIn:this.onFocusIn.bind(this)}))}setupAria(){const t=this.getLocaleTextFunc();F(this.eButtonShowMainFilter,t("ariaFilterMenuOpen","Open Filter Menu"))}onTabKeyDown(t){const{beans:e}=this;const i=d(e);const s=i===this.eGui;if(s){return}const o=Lr(e,this.eGui,null,t.shiftKey);if(o){e.headerNavigation?.scrollToColumn(this.column);t.preventDefault();o.focus();return}const n=this.findNextColumnWithFloatingFilter(t.shiftKey);if(!n){return}if(e.focusSvc.focusHeaderPosition({headerPosition:{headerRowIndex:this.rowCtrl.rowIndex,column:n},event:t})){t.preventDefault()}}findNextColumnWithFloatingFilter(t){const e=this.beans.visibleCols;let i=this.column;do{i=t?e.getColBefore(i):e.getColAfter(i);if(!i){break}}while(!i.getColDef().filter||!i.getColDef().floatingFilter);return i}handleKeyDown(t){super.handleKeyDown(t);const e=this.getWrapperHasFocus();switch(t.key){case Zn.UP:case Zn.DOWN:case Zn.LEFT:case Zn.RIGHT:if(e){return}Nh(t);case Zn.ENTER:if(e){if(Or(this.eGui)){t.preventDefault()}}break;case Zn.ESCAPE:if(!e){this.eGui.focus()}}}onFocusIn(t){const e=this.eGui.contains(t.relatedTarget);if(e){return}const i=!!t.relatedTarget&&!t.relatedTarget.classList.contains("ag-floating-filter");const s=!!t.relatedTarget&&ut(t.relatedTarget,"ag-floating-filter");if(i&&s&&t.target===this.eGui){const t=this.lastFocusEvent;const e=!!(t&&t.key===Zn.TAB);if(t&&e){const e=t.shiftKey;Or(this.eGui,e)}}this.focusThis()}setupHover(t){this.beans.colHover?.addHeaderFilterColumnHoverListener(t,this.comp,this.column,this.eGui)}setupLeft(t){const e=new Vu(this.column,this.eGui,this.beans);t.createManagedBean(e)}setupFilterButton(){this.suppressFilterButton=!this.beans.menuSvc?.isFloatingFilterButtonEnabled(this.column);this.highlightFilterButtonWhenActive=!bs(this.gos)}setupUserComp(){if(!this.active){return}const t=this.beans.colFilter?.getFloatingFilterCompDetails(this.column,(()=>this.showParentFilter()));if(t){this.setCompDetails(t)}}setCompDetails(t){this.userCompDetails=t;this.comp.setCompDetails(t)}showParentFilter(){const t=this.suppressFilterButton?this.eFloatingFilterBody:this.eButtonShowMainFilter;this.beans.menuSvc?.showFilterMenu({column:this.column,buttonElement:t,containerType:"floatingFilter",positionBy:"button"})}setupSyncWithFilter(t){if(!this.active){return}const{beans:{colFilter:e},column:i,gos:s}=this;const o=t=>{if(t?.source==="filterDestroyed"&&(!this.isAlive()||!e?.isAlive())){return}const o=this.comp.getFloatingFilterComp();if(!o){return}o.then((o=>{if(o){if(s.get("enableFilterHandlers")){const e=t;let i="filter";if(e?.afterFloatingFilter){i="ui"}else if(e?.afterDataChange){i="dataChanged"}else if(t?.source==="api"){i="api"}this.updateFloatingFilterParams(this.userCompDetails,i);return}const n=e?.getCurrentFloatingFilterParentModel(i);const r=t?{...t,columns:t.columns??[],source:t.source==="api"?"api":"columnFilter"}:null;o.onParentModelChanged(n,r)}}))};[this.destroySyncListener]=t.addManagedListeners(i,{filterChanged:o});if(e?.isFilterActive(i)){o(null)}}setupWidth(t){const e=()=>{const t=`${this.column.getActualWidth()}px`;this.comp.setWidth(t)};t.addManagedListeners(this.column,{widthChanged:e});e()}setupFilterChangedListener(t){if(this.active){[this.destroyFilterChangedListener]=t.addManagedListeners(this.column,{filterChanged:this.updateFilterButton.bind(this)});this.updateFilterButton()}}updateFilterButton(){if(!this.suppressFilterButton&&this.comp){const t=!!this.beans.filterManager?.isFilterAllowed(this.column);this.comp.setButtonWrapperDisplayed(t);if(this.highlightFilterButtonWhenActive&&t){this.eButtonShowMainFilter.classList.toggle("ag-filter-active",this.column.isFilterActive())}}}onColDefChanged(t){const e=this.active;this.setupActive();const i=!e&&this.active;if(e&&!this.active){this.destroySyncListener();this.destroyFilterChangedListener()}const s=this.beans.colFilter;const o=this.active?s?.getFloatingFilterCompDetails(this.column,(()=>this.showParentFilter())):null;const n=this.comp.getFloatingFilterComp();if(!n||!o){this.updateCompDetails(t,o,i)}else{n.then((e=>{if(!e||s?.areFilterCompsDifferent(this.userCompDetails??null,o)){this.updateCompDetails(t,o,i)}else{this.updateFloatingFilterParams(o,"colDef")}}))}}updateCompDetails(t,e,i){if(!this.isAlive()){return}this.setCompDetails(e);this.setupFilterButton();this.setupUi();if(i){this.setupSyncWithFilter(t);this.setupFilterChangedListener(t)}}updateFloatingFilterParams(t,e){if(!t){return}let i=t.params;this.comp.getFloatingFilterComp()?.then((t=>{if(typeof t?.refresh==="function"){if(this.gos.get("enableFilterHandlers")){i={...i,model:fh(this.beans.colFilter?.model??{},this.column.getColId()),source:e}}t.refresh(i)}}))}addResizeAndMoveKeyboardListeners(){}destroy(){super.destroy();this.destroySyncListener=null;this.destroyFilterChangedListener=null}};function ES(t,e){const i=t.colModel.getCol(e);if(!i){bi(12,{colKey:e});return}t.menuSvc?.showColumnMenu({column:i,positionBy:"auto"})}function FS(t){t.menuSvc?.hidePopupMenu()}var MS={moduleName:"SharedMenu",version:ii,beans:[_u],apiFunctions:{showColumnMenu:ES,hidePopupMenu:FS}};var PS=class extends Ta{postConstruct(){this.beans.ctrlsSvc.whenReady(this,(t=>{this.gridCtrl=t.gridCtrl}));this.addManagedEventListeners({gridStylesChanged:this.handleThemeChange.bind(this)})}getDefaultPopupParent(){return this.gridCtrl.getGui()}positionPopupForMenu(t){const{eventSource:e,ePopup:i,event:s}=t;const o=e.getBoundingClientRect();const n=this.getParentRect();this.setAlignedTo(e,i);let r=false;const l=()=>{const t=this.keepXYWithinBounds(i,o.top-n.top,0);const e=i.clientWidth>0?i.clientWidth:200;if(!r){i.style.minWidth=`${e}px`;r=true}const s=n.right-n.left;const l=s-e;let a;if(this.gos.get("enableRtl")){a=c();if(a<0){a=h();this.setAlignedStyles(i,"left")}if(a>l){a=0;this.setAlignedStyles(i,"right")}}else{a=h();if(a>l){a=c();this.setAlignedStyles(i,"right")}if(a<0){a=0;this.setAlignedStyles(i,"left")}}return{x:a,y:t};function h(){return o.right-n.left-2}function c(){return o.left-n.left-e}};this.positionPopup({ePopup:i,keepWithinBounds:true,updatePosition:l,postProcessCallback:()=>this.callPostProcessPopup(t,"subMenu",i,e,s instanceof MouseEvent?s:void 0)})}callPostProcessPopup(t,e,i,s,o){const n=this.gos.getCallback("postProcessPopup");if(n){const{column:r,rowNode:l}=t;const a={column:r,rowNode:l,ePopup:i,type:e,eventSource:s,mouseEvent:o};n(a)}}getActivePopups(){return this.popupList.map((t=>t.element))}handleThemeChange(t){if(t.themeChanged){const t=this.beans.environment;for(const e of this.popupList){t.applyThemeClasses(e.wrapper)}}}hasAnchoredPopup(){return this.popupList.some((t=>t.isAnchored))}isStopPropagation(t){return Gh(t)}};var DS={moduleName:"Popup",version:ii,beans:[PS]};var TS=`.ag-set-filter{--ag-indentation-level:0}.ag-set-filter-item{align-items:center;display:flex;height:100%}:where(.ag-ltr) .ag-set-filter-item{padding-left:calc(var(--ag-widget-container-horizontal-padding) + var(--ag-indentation-level)*var(--ag-set-filter-indent-size))}:where(.ag-rtl) .ag-set-filter-item{padding-right:calc(var(--ag-widget-container-horizontal-padding) + var(--ag-indentation-level)*var(--ag-set-filter-indent-size))}.ag-set-filter-item-checkbox{display:flex;height:100%;width:100%}.ag-set-filter-group-icons{display:block;>*{cursor:pointer}}:where(.ag-ltr) .ag-set-filter-group-icons{margin-right:var(--ag-widget-container-horizontal-padding)}:where(.ag-rtl) .ag-set-filter-group-icons{margin-left:var(--ag-widget-container-horizontal-padding)}.ag-filter-body-wrapper{display:flex;flex-direction:column}:where(.ag-menu:not(.ag-tabs) .ag-filter) .ag-filter-body-wrapper,:where(.ag-menu:not(.ag-tabs) .ag-filter)>:not(.ag-filter-wrapper){min-width:180px}.ag-filter-filter{flex:1 1 0px}.ag-filter-condition{display:flex;justify-content:center}.ag-floating-filter-body{display:flex;flex:1 1 auto;height:100%;position:relative}.ag-floating-filter-full-body{align-items:center;display:flex;flex:1 1 auto;height:100%;overflow:hidden;width:100%}:where(.ag-floating-filter-full-body)>div{flex:1 1 auto}.ag-floating-filter-input{align-items:center;display:flex;width:100%;>*{flex:1 1 auto}:where(.ag-input-field-input[type=date]),:where(.ag-input-field-input[type=datetime-local]){width:1px}}.ag-floating-filter-button{display:flex;flex:none}.ag-date-floating-filter-wrapper{display:flex}.ag-set-floating-filter-input :where(input)[disabled]{pointer-events:none}.ag-floating-filter-button-button{-webkit-appearance:none;-moz-appearance:none;appearance:none;border:none;height:var(--ag-icon-size);width:var(--ag-icon-size)}.ag-filter-loading{align-items:unset;background-color:var(--ag-chrome-background-color);height:100%;padding:var(--ag-widget-container-vertical-padding) var(--ag-widget-container-horizontal-padding);position:absolute;width:100%;z-index:1;:where(.ag-menu) &{background-color:var(--ag-menu-background-color)}}.ag-filter-separator{border-top:solid var(--ag-border-width) var(--menu-separator-color)}:where(.ag-filter-select) .ag-picker-field-wrapper{width:0}.ag-filter-condition-operator{height:17px}:where(.ag-ltr) .ag-filter-condition-operator-or{margin-left:calc(var(--ag-spacing)*2)}:where(.ag-rtl) .ag-filter-condition-operator-or{margin-right:calc(var(--ag-spacing)*2)}.ag-set-filter-select-all{padding-top:var(--ag-widget-container-vertical-padding)}.ag-filter-no-matches,.ag-set-filter-list{height:calc(var(--ag-list-item-height)*6)}.ag-filter-no-matches{padding:var(--ag-widget-container-vertical-padding) var(--ag-widget-container-horizontal-padding)}.ag-set-filter-tree-list{height:calc(var(--ag-list-item-height)*10)}.ag-set-filter-filter{margin-left:var(--ag-widget-container-horizontal-padding);margin-right:var(--ag-widget-container-horizontal-padding);margin-top:var(--ag-widget-container-vertical-padding)}.ag-filter-to{margin-top:var(--ag-widget-vertical-spacing)}.ag-mini-filter{margin:var(--ag-widget-container-vertical-padding) var(--ag-widget-container-horizontal-padding)}:where(.ag-ltr) .ag-set-filter-add-group-indent{margin-left:calc(var(--ag-icon-size) + var(--ag-widget-container-horizontal-padding))}:where(.ag-rtl) .ag-set-filter-add-group-indent{margin-right:calc(var(--ag-icon-size) + var(--ag-widget-container-horizontal-padding))}:where(.ag-filter-menu) .ag-set-filter-list{min-width:200px}.ag-filter-virtual-list-item:focus-visible{box-shadow:inset var(--ag-focus-shadow)}.ag-filter-apply-panel{display:flex;justify-content:flex-end;overflow:hidden;padding:var(--ag-widget-vertical-spacing) var(--ag-widget-container-horizontal-padding) var(--ag-widget-container-vertical-padding)}.ag-filter-apply-panel-button{line-height:1.5}:where(.ag-ltr) .ag-filter-apply-panel-button{margin-left:calc(var(--ag-spacing)*2)}:where(.ag-rtl) .ag-filter-apply-panel-button{margin-right:calc(var(--ag-spacing)*2)}.ag-simple-filter-body-wrapper{display:flex;flex-direction:column;min-height:calc(var(--ag-list-item-height) + var(--ag-widget-container-vertical-padding) + var(--ag-widget-vertical-spacing));overflow-y:auto;padding:var(--ag-widget-container-vertical-padding) var(--ag-widget-container-horizontal-padding);padding-bottom:calc(var(--ag-widget-container-vertical-padding) - var(--ag-widget-vertical-spacing));&>*{margin-bottom:var(--ag-widget-vertical-spacing)}:where(.ag-resizer-wrapper){margin:0}}.ag-multi-filter-menu-item{margin:var(--ag-spacing) 0}.ag-multi-filter-group-title-bar{background-color:transparent;color:var(--ag-header-text-color);font-weight:500;padding:calc(var(--ag-spacing)*1.5) var(--ag-spacing)}.ag-group-filter-field-select-wrapper{display:flex;flex-direction:column;gap:var(--ag-widget-vertical-spacing);padding:var(--ag-widget-container-vertical-padding) var(--ag-widget-container-horizontal-padding)}`;function BS(t){const e=t.filterManager;return!!e?.isColumnFilterPresent()||!!e?.isAggregateFilterPresent()}function AS(t,e){return t.filterManager?.getColumnFilterInstance(e)??Promise.resolve(void 0)}function IS(t,e){const i=t.colModel.getColDefCol(e);if(i){return t.colFilter?.destroyFilter(i,"api")}}function zS(t,e){t.frameworkOverrides.wrapIncoming((()=>t.filterManager?.setFilterModel(e)))}function HS(t){return t.filterManager?.getFilterModel()??{}}function OS(t,e,i){const{gos:s,colModel:o,colFilter:n}=t;if(i&&!s.get("enableFilterHandlers")){Ci(288);i=false}const r=o.getColDefCol(e);return r?n?.getModelForColumn(r,i)??null:null}function LS(t,e,i){return t.filterManager?.setColumnFilterModel(e,i)??Promise.resolve()}function VS(t,e){const i=t.colModel.getCol(e);if(!i){bi(12,{colKey:e});return}t.menuSvc?.showFilterMenu({column:i,containerType:"columnFilter",positionBy:"auto"})}function NS(t){t.menuSvc?.hideFilterMenu()}function GS(t,e){const i=t.colModel.getCol(e);if(!i){bi(12,{colKey:e});return void 0}return t.colFilter?.getHandler(i,true)}function $S(t,e){const{colModel:i,colFilter:s,gos:o}=t;if(!o.get("enableFilterHandlers")){Ci(287);return}const{colId:n,action:r}=e;if(n){const t=i.getColById(n);if(t){s?.updateModel(t,r)}}else{s?.updateAllModels(r)}}var WS={filterHandler:()=>({doesFilterPass:()=>true})};var US=class extends ge{constructor(){super(...arguments);this.beanName="colFilter";this.allColumnFilters=new Map;this.allColumnListeners=new Map;this.activeAggregateFilters=[];this.activeColumnFilters=[];this.processingFilterChange=false;this.modelUpdates=[];this.columnModelUpdates=[];this.state=new Map;this.handlerMap={...rh};this.isGlobalButtons=false;this.activeFilterComps=new Set}postConstruct(){this.addManagedEventListeners({gridColumnsChanged:this.onColumnsChanged.bind(this),dataTypesInferred:this.processFilterModelUpdateQueue.bind(this)});const t=this.gos;const e={...t.get("initialState")?.filter?.filterModel??{}};this.initialModel=e;this.model={...e};if(!t.get("enableFilterHandlers")){delete this.handlerMap["agMultiColumnFilter"]}}refreshModel(){this.onNewRowsLoaded("rowDataUpdated")}setModel(t,e="api",i){const{colModel:s,dataTypeSvc:o,filterManager:r}=this.beans;if(o?.isPendingInference){this.modelUpdates.push({model:t,source:e});return}const l=[];const a=this.getModel(true);if(t){const e=new Set(Object.keys(t));this.allColumnFilters.forEach(((i,s)=>{const o=t[s];l.push(this.setModelOnFilterWrapper(i,o));e.delete(s)}));e.forEach((e=>{const i=s.getColDefCol(e)||s.getCol(e);if(!i){Ci(62,{colId:e});return}if(!i.isFilterAllowed()){Ci(63,{colId:e});return}const o=this.getOrCreateFilterWrapper(i,true);if(!o){Ci(64,{colId:e});return}l.push(this.setModelOnFilterWrapper(o,t[e],true))}))}else{this.model={};this.allColumnFilters.forEach((t=>{l.push(this.setModelOnFilterWrapper(t,null))}))}tn.all(l).then((()=>{const t=this.getModel(true);const s=[];this.allColumnFilters.forEach(((e,i)=>{const o=a?a[i]:null;const r=t?t[i]:null;if(!n(o,r)){s.push(e.column)}}));if(s.length>0){r?.onFilterChanged({columns:s,source:e})}else if(i){this.updateActive("filterChanged")}}))}getModel(t){const e={};const{allColumnFilters:s,initialModel:o,beans:{colModel:n}}=this;s.forEach(((t,s)=>{const o=this.getModelFromFilterWrapper(t);if(i(o)){e[s]=o}}));if(!t){for(const t of Object.keys(o)){const r=o[t];if(i(r)&&!s.has(t)&&n.getCol(t)?.isFilterAllowed()){e[t]=r}}}return e}setState(t,e,i="api"){this.state.clear();if(e){for(const t of Object.keys(e)){const i=e[t];this.state.set(t,{model:fh(this.model,t),state:i})}}this.setModel(t,i,true)}getState(){const t=this.state;if(!t.size){return void 0}const e={};let i=false;t.forEach(((t,s)=>{const o=t.state;if(o!=null){i=true;e[s]=o}}));return i?e:void 0}getModelFromFilterWrapper(t){const e=t.column;const i=e.getColId();if(t.isHandler){return fh(this.model,i)}const s=t.filter;if(s){if(typeof s.getModel!=="function"){Ci(66);return null}return s.getModel()}return fh(this.initialModel,i)}isFilterPresent(){return this.activeColumnFilters.length>0}isAggFilterPresent(){return!!this.activeAggregateFilters.length}disableFilters(){this.initialModel={};const{allColumnFilters:t}=this;if(t.size){t.forEach((t=>this.disposeFilterWrapper(t,"advancedFilterEnabled")));return true}return false}updateActiveFilters(){const t=t=>{if(!t){return false}if(!t.isFilterActive){Ci(67);return false}return t.isFilterActive()};const{colModel:e,gos:i}=this.beans;const s=!!$i(i);const o=t=>{const i=!t.isPrimary();if(i){return true}const o=!e.isPivotActive();const n=t.isValueActive();if(!n||!o){return false}if(e.isPivotMode()){return true}return s};const n=[];const r=[];const l=(t,e,i)=>{if(e){if(o(t)){n.push(i)}else{r.push(i)}}};const a=[];this.allColumnFilters.forEach((e=>{const i=e.column;const s=i.getColId();if(e.isHandler){a.push(tn.resolve().then((()=>{l(i,this.isHandlerActive(i),{colId:s,isHandler:true,handler:e.handler,handlerParams:e.handlerParams})})))}else{const o=ah(e);if(o){a.push(o.then((e=>{l(i,t(e),{colId:s,isHandler:false,comp:e})})))}}}));return tn.all(a).then((()=>{this.activeAggregateFilters=n;this.activeColumnFilters=r}))}updateFilterFlagInColumns(t,e){const i=[];this.allColumnFilters.forEach((s=>{const o=s.column;if(s.isHandler){i.push(tn.resolve().then((()=>{this.setColFilterActive(o,this.isHandlerActive(o),t,e)})))}else{const n=ah(s);if(n){i.push(n.then((i=>{this.setColFilterActive(o,i.isFilterActive(),t,e)})))}}}));this.beans.groupFilter?.updateFilterFlags(t,e);return tn.all(i)}doFiltersPass(t,e,i){const{data:s,aggData:o}=t;const n=i?this.activeAggregateFilters:this.activeColumnFilters;const r=i?o:s;const l=this.model;for(let i=0;i{if(this.isAlive()){i?.onFilterChanged(t)}};if(e.isRefreshInProgress()){setTimeout(s,0)}else{s()}}updateBeforeFilterChanged(t={}){const{column:e,additionalEventAttributes:i}=t;const s=e?.getColId();return this.updateActiveFilters().then((()=>this.updateFilterFlagInColumns("filterChanged",i).then((()=>{this.allColumnFilters.forEach((t=>{const{column:e,isHandler:i}=t;if(s===e.getColId()){return}if(i){t.handler.onAnyFilterChanged?.()}ah(t,i)?.then((t=>{if(typeof t?.onAnyFilterChanged==="function"){t.onAnyFilterChanged()}}))}));this.processingFilterChange=true}))))}updateAfterFilterChanged(){this.processingFilterChange=false}isSuppressFlashingCellsBecauseFiltering(){const t=this.gos.get("allowShowChangeAfterFilter")??false;return!t&&this.processingFilterChange}onNewRowsLoaded(t){const e=[];this.allColumnFilters.forEach((t=>{const i=t.isHandler;if(i){t.handler.onNewRowsLoaded?.()}const s=ah(t,i);if(s){e.push(s.then((t=>{t.onNewRowsLoaded?.()})))}}));tn.all(e).then((()=>this.updateActive(t,{afterDataChange:true})))}updateActive(t,e){this.updateFilterFlagInColumns(t,e).then((()=>this.updateActiveFilters()))}createGetValue(t,e){const{filterValueSvc:i,colModel:s}=this.beans;return(o,n)=>{const r=n?s.getCol(n):t;return r?i.getValue(r,o,e):void 0}}isFilterActive(t){const e=this.cachedFilter(t);if(e?.isHandler){return this.isHandlerActive(t)}const i=e?.filter;if(i){return i.isFilterActive()}return fh(this.initialModel,t.getColId())!=null}isHandlerActive(t){const e=i(fh(this.model,t.getColId()));if(e){return e}const s=this.beans.groupFilter;return s?.isGroupFilter(t)?s.isFilterActive(t):false}getOrCreateFilterUi(t){const e=this.getOrCreateFilterWrapper(t,true);return e?ah(e):null}getFilterUiForDisplay(t){const e=this.getOrCreateFilterWrapper(t,true);if(!e){return null}const i=ah(e);if(!i){return null}return i.then((t=>({comp:t,params:e.filterUi.filterParams,isHandler:e.isHandler})))}getHandler(t,e){const i=this.getOrCreateFilterWrapper(t,e);return i?.isHandler?i.handler:void 0}getOrCreateFilterWrapper(t,e){if(!t.isFilterAllowed()){return void 0}let i=this.cachedFilter(t);if(!i&&e){i=this.createFilterWrapper(t);this.setColumnFilterWrapper(t,i)}return i}cachedFilter(t){return this.allColumnFilters.get(t.getColId())}getDefaultFilter(t,e=false){return this.getDefaultFilterFromDataType((()=>this.beans.dataTypeSvc?.getBaseDataType(t)),e)}getDefaultFilterFromDataType(t,e=false){if(Cs(this.gos)){return e?"agSetColumnFloatingFilter":"agSetColumnFilter"}return Ih(t(),e)}getDefaultFloatingFilter(t){return this.getDefaultFilter(t,true)}createFilterComp(t,e,i,s,o,n){const r=()=>{const r=this.createFilterCompParams(t,o,n);const l=s(r,o);return Vn(this.beans.userCompFactory,e,l,i)};const l=r();if(!l){return null}const a=t=>(t?r():l).newAgStackInstance();return{compDetails:l,createFilterUi:a}}createFilterInstance(t,e,i,s){const o=this.beans.selectableFilter;if(o?.isSelectable(e)){e=o.getFilterDef(t,e)}const{handler:n,handlerParams:r,handlerGenerator:l}=this.createHandler(t,e,i)??{};const a=this.createFilterComp(t,e,i,s,!!n,"init");if(!a){return{compDetails:null,createFilterUi:null,handler:n,handlerGenerator:l,handlerParams:r}}const{compDetails:h,createFilterUi:c}=a;if(this.isGlobalButtons){const e=!!h.params?.buttons?.length;if(!e){Ci(281,{colId:t.getColId()})}}return{compDetails:h,handler:n,handlerGenerator:l,handlerParams:r,createFilterUi:c}}createBaseFilterParams(t,e){const{filterManager:i,rowModel:s}=this.beans;return Rs(this.gos,{column:t,colDef:t.getColDef(),getValue:this.createGetValue(t),doesRowPassOtherFilter:e?()=>true:e=>i?.doesRowPassOtherFilters(t.getColId(),e)??true,rowModel:s})}createFilterCompParams(t,e,i,s){const o=this.filterChangedCallbackFactory(t);const n=this.createBaseFilterParams(t,s);n.filterChangedCallback=o;n.filterModifiedCallback=s?()=>{}:e=>this.filterModified(t,e);if(e){const e=n;const s=t.getColId();const r=fh(this.model,s);e.model=r;e.state=this.state.get(s)??{model:r};e.onModelChange=(e,i)=>{this.updateStoredModel(s,e);this.refreshHandlerAndUi(t,e,"ui",false,i).then((()=>{o({...i,source:"columnFilter"})}))};e.onStateChange=e=>{this.updateState(t,e);this.updateOrRefreshFilterUi(t)};e.onAction=(e,i,s)=>{this.updateModel(t,e,i);this.dispatchLocalEvent({type:"filterAction",column:t,action:e,event:s})};e.getHandler=()=>this.getHandler(t,true);e.onUiChange=e=>this.filterUiChanged(t,e);e.source=i}return n}createFilterUiForHandler(t,e){return e?{created:false,create:e,filterParams:t.params,compDetails:t}:null}createFilterUiLegacy(t,e,i){const s=e();const o={created:true,create:e,filterParams:t.params,compDetails:t,promise:s};s.then(i);return o}createFilterWrapper(t){const{compDetails:e,handler:i,handlerGenerator:s,handlerParams:o,createFilterUi:n}=this.createFilterInstance(t,t.getColDef(),this.getDefaultFilter(t),(t=>t));const r=t.getColId();if(i){delete this.initialModel[r];i.init?.({...o,source:"init",model:fh(this.model,r)});return{column:t,isHandler:true,handler:i,handlerGenerator:s,handlerParams:o,filterUi:this.createFilterUiForHandler(e,n)}}if(n){const i={column:t,filterUi:null,isHandler:false};i.filterUi=this.createFilterUiLegacy(e,n,(t=>{i.filter=t??void 0}));return i}return{column:t,filterUi:null,isHandler:false}}createHandlerFunc(t,e,i){const{gos:s,frameworkOverrides:o,registry:n}=this.beans;let r;const l=t=>{const e=t.filter;if(Yo(e)){const t=e.handler;if(t){return t}r=e.doesFilterPass;if(r){return()=>({doesFilterPass:r})}return void 0}return typeof e==="string"?e:void 0};const a=s.get("enableFilterHandlers");const h=a?l(e):void 0;const c=t=>()=>this.createBean(n.createDynamicBean(t,true));let u;let d;if(typeof h==="string"){const t=s.get("filterHandlers")?.[h];if(t!=null){u=t}else if(lh.has(h)){u=c(h);d=h}}else{u=h}if(!u){let t;const{compName:s,jsComp:n,fwComp:r}=jn(o,e);if(s){t=s}else{const s=n==null&&r==null&&e.filter===true;if(s){t=i}}d=this.handlerMap[t];if(d){u=c(d)}}if(!u){if(!a){return void 0}if(Fi(s)){Ci(277,{colId:t.getColId()})}return WS}return{filterHandler:u,handlerNameOrCallback:r??d}}createHandler(t,e,i){const s=this.createHandlerFunc(t,e,i);if(!s){return void 0}const o=qn(this.beans.userCompFactory,e,this.createFilterCompParams(t,true,"init"));const{handlerNameOrCallback:n,filterHandler:r}=s;const{handler:l,handlerParams:a}=this.createHandlerFromFunc(t,r,o);return{handler:l,handlerParams:a,handlerGenerator:n??r}}createHandlerFromFunc(t,e,i){const s=t.getColDef();const o=e(Rs(this.gos,{column:t,colDef:s}));const n=this.createHandlerParams(t,i);return{handler:o,handlerParams:n}}createHandlerParams(t,e){const i=t.getColDef();const s=t.getColId();const o=this.filterChangedCallbackFactory(t);return Rs(this.gos,{colDef:i,column:t,getValue:this.createGetValue(t),doesRowPassOtherFilter:t=>this.beans.filterManager?.doesRowPassOtherFilters(s,t)??true,onModelChange:(e,i)=>{this.updateStoredModel(s,e);this.refreshHandlerAndUi(t,e,"handler",false,i).then((()=>{o({...i,source:"columnFilter"})}))},filterParams:e})}onColumnsChanged(){const t=[];const{colModel:e,filterManager:i,groupFilter:s}=this.beans;this.allColumnFilters.forEach(((i,s)=>{let o;if(i.column.isPrimary()){o=e.getColDefCol(s)}else{o=e.getCol(s)}if(o&&o===i.column){return}t.push(i.column);this.disposeFilterWrapper(i,"columnChanged");this.disposeColumnListener(s)}));const o=s&&t.every((t=>s.isGroupFilter(t)));if(t.length>0&&!o){i?.onFilterChanged({columns:t,source:"api"})}}isFilterAllowed(t){const e=t.isFilterAllowed();if(!e){return false}const i=this.beans.groupFilter;if(i?.isGroupFilter(t)){return i.isFilterAllowed(t)}return true}getFloatingFilterCompDetails(t,e){const{userCompFactory:i,frameworkOverrides:s,selectableFilter:o}=this.beans;const n=e=>{const i=this.getOrCreateFilterUi(t);if(i==null){return}i.then((t=>{e(Kn(t))}))};const r=t.getColDef();const l=o?.isSelectable(r)?o.getFilterDef(t,r):r;const a=qh(s,l,(()=>this.getDefaultFloatingFilter(t)))??"agReadOnlyFloatingFilter";const h=this.gos.get("enableFilterHandlers");const c=qn(i,l,this.createFilterCompParams(t,h,"init",true));const u=Rs(this.gos,{column:t,filterParams:c,currentParentModel:()=>this.getCurrentFloatingFilterParentModel(t),parentFilterInstance:n,showParentFilter:e});if(h){const e=u;const i=t.getColId();const s=this.filterChangedCallbackFactory(t);e.onUiChange=e=>this.floatingFilterUiChanged(t,e);e.model=fh(this.model,i);e.onModelChange=(e,o)=>{this.updateStoredModel(i,e);this.refreshHandlerAndUi(t,e,"floating",true,o).then((()=>{s({...o,source:"columnFilter"})}))};e.getHandler=()=>this.getHandler(t,true);e.source="init"}return Un(i,r,u,a)}getCurrentFloatingFilterParentModel(t){return this.getModelFromFilterWrapper(this.cachedFilter(t)??{column:t})}destroyFilterUi(t,e,i,s){const o="paramsUpdated";if(t.isHandler){const n=e.getColId();delete this.initialModel[n];this.state.delete(n);const r=t.filterUi;const l=this.createFilterUiForHandler(i,s);t.filterUi=l;const a=this.eventSvc;if(r?.created){r.promise.then((t=>{this.destroyBean(t);a.dispatchEvent({type:"filterDestroyed",source:o,column:e})}))}else{a.dispatchEvent({type:"filterHandlerDestroyed",source:o,column:e})}}else{this.destroyFilter(e,o)}}destroyFilter(t,e="api"){const i=t.getColId();const s=this.allColumnFilters.get(i);this.disposeColumnListener(i);delete this.initialModel[i];if(s){this.disposeFilterWrapper(s,e).then((e=>{if(e&&this.isAlive()){this.beans.filterManager?.onFilterChanged({columns:[t],source:"api"})}}))}}disposeColumnListener(t){const e=this.allColumnListeners.get(t);if(e){this.allColumnListeners.delete(t);e()}}disposeFilterWrapper(t,e){let i=false;const{column:s,isHandler:o,filterUi:n}=t;const r=s.getColId();if(o){i=this.isHandlerActive(s);this.destroyBean(t.handler);delete this.model[r];this.state.delete(r)}const l=()=>{this.setColFilterActive(s,false,"filterDestroyed");this.allColumnFilters.delete(r);this.eventSvc.dispatchEvent({type:"filterDestroyed",source:e,column:s})};if(n){if(n.created){return n.promise.then((t=>{i=o?i:!!t?.isFilterActive();this.destroyBean(t);l();return i}))}else{l()}}return tn.resolve(i)}filterChangedCallbackFactory(t){return e=>{this.callOnFilterChangedOutsideRenderCycle({additionalEventAttributes:e,columns:[t],column:t,source:e?.source??"columnFilter"})}}filterParamsChanged(t,e="api"){const i=this.allColumnFilters.get(t);if(!i){return}const s=this.beans;const o=i.column;const n=o.getColDef();const r=o.isFilterAllowed();const l=this.getDefaultFilter(o);const a=s.selectableFilter;const h=a?.isSelectable(n)?a.getFilterDef(o,n):n;const c=r?this.createHandlerFunc(o,h,this.getDefaultFilter(o)):void 0;const u=!!c;const d=i.isHandler;if(d!=u){this.destroyFilter(o,"paramsUpdated");return}const{compDetails:f,createFilterUi:g}=(r?this.createFilterComp(o,h,l,(t=>t),u,"colDef"):null)??{compDetails:null,createFilterUi:null};const p=f?.params??qn(s.userCompFactory,h,this.createFilterCompParams(o,u,"colDef"));if(d){const s=c?.handlerNameOrCallback??c?.filterHandler;const n=fh(this.model,t);if(i.handlerGenerator!=s){const r=i.handler;const{handler:l,handlerParams:a}=this.createHandlerFromFunc(o,c.filterHandler,p);i.handler=l;i.handlerParams=a;i.handlerGenerator=s;delete this.model[t];l.init?.({...a,source:"init",model:null});this.destroyBean(r);if(n!=null){this.beans.filterManager?.onFilterChanged({columns:[o],source:e})}}else{const t=this.createHandlerParams(o,f?.params);i.handlerParams=t;i.handler.refresh?.({...t,source:"colDef",model:n})}}if(this.areFilterCompsDifferent(i.filterUi?.compDetails??null,f)||!i.filterUi||!f){this.destroyFilterUi(i,o,f,g);return}i.filterUi.filterParams=p;ah(i,d)?.then((t=>{const e=t?.refresh?t.refresh(p):true;if(e===false){this.destroyFilterUi(i,o,f,g)}else{this.dispatchLocalEvent({type:"filterParamsChanged",column:o,params:p})}}))}refreshHandlerAndUi(t,e,i,s,o){const n=this.cachedFilter(t);if(!n){if(s){this.getOrCreateFilterWrapper(t,true)}return tn.resolve()}if(!n.isHandler){return tn.resolve()}const{filterUi:r,handler:l,handlerParams:a}=n;return hh((()=>{if(r){const{created:t,filterParams:e}=r;if(t){return r.promise.then((t=>t?{filter:t,filterParams:e}:void 0))}else{r.refreshed=true}}return tn.resolve(void 0)}),l,a,e,this.state.get(t.getColId())??{model:e},i,o)}setColumnFilterWrapper(t,e){const i=t.getColId();this.allColumnFilters.set(i,e);this.allColumnListeners.set(i,this.addManagedListeners(t,{colDefChanged:()=>this.filterParamsChanged(i)})[0])}areFilterCompsDifferent(t,e){if(!e||!t){return true}const{componentClass:i}=t;const{componentClass:s}=e;const o=i===s||i?.render&&s?.render&&i.render===s.render;return!o}hasFloatingFilters(){const t=this.beans.colModel.getCols();return t.some((t=>t.getColDef().floatingFilter))}getFilterInstance(t){const e=this.beans.colModel.getColDefCol(t);if(!e){return Promise.resolve(void 0)}const i=this.getOrCreateFilterUi(e);if(!i){return Promise.resolve(null)}return new Promise((t=>{i.then((e=>{t(Kn(e))}))}))}processFilterModelUpdateQueue(){this.modelUpdates.forEach((({model:t,source:e})=>this.setModel(t,e)));this.modelUpdates=[];this.columnModelUpdates.forEach((({key:t,model:e,resolve:i})=>{this.setModelForColumn(t,e).then((()=>i()))}));this.columnModelUpdates=[]}getModelForColumn(t,e){if(e){const{state:e,model:i}=this;const s=t.getColId();const o=e.get(s);if(o){return o.model??null}return fh(i,s)}const i=this.cachedFilter(t);return i?this.getModelFromFilterWrapper(i):null}setModelForColumn(t,e){if(this.beans.dataTypeSvc?.isPendingInference){let i=()=>{};const s=new Promise((t=>{i=t}));this.columnModelUpdates.push({key:t,model:e,resolve:i});return s}return new Promise((i=>{this.setModelForColumnLegacy(t,e).then((t=>i(t)))}))}getStateForColumn(t){return this.state.get(t)??{model:fh(this.model,t)}}setModelForColumnLegacy(t,e){const i=this.beans.colModel.getColDefCol(t);const s=i?this.getOrCreateFilterWrapper(i,true):null;return s?this.setModelOnFilterWrapper(s,e):tn.resolve()}setColDefPropsForDataType(t,e,i){const s=t.filter;const o=s===true?this.getDefaultFilterFromDataType((()=>e.baseDataType)):s;if(typeof o!=="string"){return}let n;let r;const l=this.beans;const{filterParams:a,filterValueGetter:h}=t;if(o==="agMultiColumnFilter"){({filterParams:n,filterValueGetter:r}=l.multiFilter?.getParamsForDataType(a,h,e,i)??{})}else{({filterParams:n,filterValueGetter:r}=Th(o,a,h,e,i,l,this.getLocaleTextFunc()))}t.filterParams=n;if(r){t.filterValueGetter=r}}setColFilterActive(t,e,i,s){if(t.filterActive!==e){t.filterActive=e;t.dispatchColEvent("filterActiveChanged",i)}t.dispatchColEvent("filterChanged",i,s)}setModelOnFilterWrapper(t,e,i){return new tn((s=>{if(t.isHandler){const o=t.column;const n=o.getColId();const r=this.model[n];this.updateStoredModel(n,e);if(i&&e===r){s();return}this.refreshHandlerAndUi(o,e,"api").then((()=>s()));return}const o=ah(t);if(o){o.then((t=>{if(typeof t?.setModel!=="function"){Ci(65);s();return}(t.setModel(e)||tn.resolve()).then((()=>s()))}));return}s()}))}updateStoredModel(t,e){if(i(e)){this.model[t]=e}else{delete this.model[t]}const s=this.state.get(t);const o={model:e,state:s?.state};this.state.set(t,o)}filterModified(t,e){this.getOrCreateFilterUi(t)?.then((i=>{this.eventSvc.dispatchEvent({type:"filterModified",column:t,filterInstance:i,...e})}))}filterUiChanged(t,e){if(this.gos.get("enableFilterHandlers")){this.eventSvc.dispatchEvent({type:"filterUiChanged",column:t,...e})}}floatingFilterUiChanged(t,e){if(this.gos.get("enableFilterHandlers")){this.eventSvc.dispatchEvent({type:"floatingFilterUiChanged",column:t,...e})}}updateModel(t,e,i){const s=t.getColId();const o=this.cachedFilter(t);const n=()=>o?.filterUi;dh(e,n,(()=>fh(this.model,s)),(()=>this.state.get(s)),(e=>this.updateState(t,e)),(t=>n()?.filterParams?.onModelChange(t,i)),o?.isHandler?o.handler.processModelToApply?.bind(o.handler):void 0)}updateAllModels(t,e){const i=[];this.allColumnFilters.forEach(((e,s)=>{const o=this.beans.colModel.getColDefCol(s);if(o){dh(t,(()=>e.filterUi),(()=>fh(this.model,s)),(()=>this.state.get(s)),(t=>this.updateState(o,t)),(e=>{this.updateStoredModel(s,e);this.dispatchLocalEvent({type:"filterAction",column:o,action:t});i.push(this.refreshHandlerAndUi(o,e,"ui"))}),e?.isHandler?e.handler.processModelToApply?.bind(e.handler):void 0)}}));if(i.length){tn.all(i).then((()=>{this.callOnFilterChangedOutsideRenderCycle({source:"columnFilter",additionalEventAttributes:e,columns:[]})}))}}updateOrRefreshFilterUi(t){const e=t.getColId();uh((()=>this.cachedFilter(t)?.filterUi),(()=>fh(this.model,e)),(()=>this.state.get(e)))}updateState(t,e){this.state.set(t.getColId(),e);this.dispatchLocalEvent({type:"filterStateChanged",column:t,state:e})}canApplyAll(){const{state:t,model:e,activeFilterComps:i}=this;for(const t of i){if(t.source==="COLUMN_MENU"){return false}}let s=false;for(const i of t.keys()){const o=t.get(i);if(o.valid===false){return false}if((o.model??null)!==fh(e,i)){s=true}}return s}hasUnappliedModel(t){const{model:e,state:i}=this;return(i.get(t)?.model??null)!==fh(e,t)}setGlobalButtons(t){this.isGlobalButtons=t;this.dispatchLocalEvent({type:"filterGlobalButtons",isGlobal:t})}shouldKeepStateOnDetach(t,e){if(e==="newFiltersToolPanel"){return true}const i=this.beans.filterPanelSvc;if(i?.isActive){return!!i.getState(t.getColId())}return false}destroy(){super.destroy();this.allColumnFilters.forEach((t=>this.disposeFilterWrapper(t,"gridDestroyed")));this.allColumnListeners.clear();this.state.clear();this.activeFilterComps.clear()}};function jS(t){return!!t.filterManager?.isAnyFilterPresent()}function qS(t,e="api"){t.filterManager?.onFilterChanged({source:e})}var KS=class extends ge{constructor(){super(...arguments);this.beanName="filterManager";this.advFilterModelUpdateQueue=[]}wireBeans(t){this.quickFilter=t.quickFilter;this.advancedFilter=t.advancedFilter;this.colFilter=t.colFilter}postConstruct(){const t=this.refreshFiltersForAggregations.bind(this);const e=this.updateAdvFilterColumns.bind(this);this.addManagedEventListeners({columnValueChanged:t,columnPivotChanged:t,columnPivotModeChanged:t,newColumnsLoaded:e,columnVisible:e,advancedFilterEnabledChanged:({enabled:t})=>this.onAdvFilterEnabledChanged(t),dataTypesInferred:this.processFilterModelUpdateQueue.bind(this)});this.externalFilterPresent=this.isExternalFilterPresentCallback();this.addManagedPropertyListeners(["isExternalFilterPresent","doesExternalFilterPass"],(()=>{this.onFilterChanged({source:"api"})}));this.updateAggFiltering();this.addManagedPropertyListener("groupAggFiltering",(()=>{this.updateAggFiltering();this.onFilterChanged()}));if(this.quickFilter){this.addManagedListeners(this.quickFilter,{quickFilterChanged:()=>this.onFilterChanged({source:"quickFilter"})})}const{gos:i}=this;this.alwaysPassFilter=i.get("alwaysPassFilter");this.addManagedPropertyListener("alwaysPassFilter",(()=>{this.alwaysPassFilter=i.get("alwaysPassFilter");this.onFilterChanged({source:"api"})}))}isExternalFilterPresentCallback(){const t=this.gos.getCallback("isExternalFilterPresent");return typeof t==="function"&&t({})}doesExternalFilterPass(t){const e=this.gos.get("doesExternalFilterPass");return typeof e==="function"&&e(t)}setFilterState(t,e,i="api"){if(this.isAdvFilterEnabled()){return}this.colFilter?.setState(t,e,i)}setFilterModel(t,e="api",i){if(this.isAdvFilterEnabled()){if(!i){this.warnAdvFilters()}return}this.colFilter?.setModel(t,e)}getFilterModel(){return this.colFilter?.getModel()??{}}getFilterState(){return this.colFilter?.getState()}isColumnFilterPresent(){return!!this.colFilter?.isFilterPresent()}isAggregateFilterPresent(){return!!this.colFilter?.isAggFilterPresent()}isChildFilterPresent(){return this.isColumnFilterPresent()||this.isQuickFilterPresent()||this.externalFilterPresent||this.isAdvFilterPresent()}isAnyFilterPresent(){return this.isChildFilterPresent()||this.isAggregateFilterPresent()}isAdvFilterPresent(){return this.isAdvFilterEnabled()&&this.advancedFilter.isFilterPresent()}onAdvFilterEnabledChanged(t){if(t){if(this.colFilter?.disableFilters()){this.onFilterChanged({source:"advancedFilter"})}}else if(this.advancedFilter?.isFilterPresent()){this.advancedFilter.setModel(null);this.onFilterChanged({source:"advancedFilter"})}}isAdvFilterEnabled(){return!!this.advancedFilter?.isEnabled()}isAdvFilterHeaderActive(){return this.isAdvFilterEnabled()&&this.advancedFilter.isHeaderActive()}refreshFiltersForAggregations(){if($i(this.gos)&&this.isAnyFilterPresent()){this.onFilterChanged()}}onFilterChanged(t={}){const{source:e,additionalEventAttributes:i,columns:s=[]}=t;this.externalFilterPresent=this.isExternalFilterPresentCallback();(this.colFilter?this.colFilter.updateBeforeFilterChanged(t):tn.resolve()).then((()=>{const t={source:e,type:"filterChanged",columns:s};if(i){Re(t,i)}this.eventSvc.dispatchEvent(t);this.colFilter?.updateAfterFilterChanged()}))}isSuppressFlashingCellsBecauseFiltering(){return!!this.colFilter?.isSuppressFlashingCellsBecauseFiltering()}isQuickFilterPresent(){return!!this.quickFilter?.isFilterPresent()}updateAggFiltering(){this.aggFiltering=!!$i(this.gos)}isAggregateQuickFilterPresent(){return this.isQuickFilterPresent()&&this.shouldApplyQuickFilterAfterAgg()}isNonAggregateQuickFilterPresent(){return this.isQuickFilterPresent()&&!this.shouldApplyQuickFilterAfterAgg()}shouldApplyQuickFilterAfterAgg(){return(this.aggFiltering||this.beans.colModel.isPivotMode())&&!this.gos.get("applyQuickFilterBeforePivotOrAgg")}doesRowPassOtherFilters(t,e){return this.doesRowPassFilter({rowNode:e,colIdToSkip:t})}doesRowPassAggregateFilters(t){const{rowNode:e}=t;if(this.alwaysPassFilter?.(e)){return true}if(this.isAggregateQuickFilterPresent()&&!this.quickFilter.doesRowPass(e)){return false}if(this.isAggregateFilterPresent()&&!this.colFilter.doFiltersPass(e,t.colIdToSkip,true)){return false}return true}doesRowPassFilter(t){const{rowNode:e}=t;if(this.alwaysPassFilter?.(e)){return true}if(this.isNonAggregateQuickFilterPresent()&&!this.quickFilter.doesRowPass(e)){return false}if(this.externalFilterPresent&&!this.doesExternalFilterPass(e)){return false}if(this.isColumnFilterPresent()&&!this.colFilter.doFiltersPass(e,t.colIdToSkip)){return false}if(this.isAdvFilterPresent()&&!this.advancedFilter.doesFilterPass(e)){return false}return true}isFilterAllowed(t){if(this.isAdvFilterEnabled()){return false}return!!this.colFilter?.isFilterAllowed(t)}getAdvFilterModel(){return this.isAdvFilterEnabled()?this.advancedFilter.getModel():null}setAdvFilterModel(t,e="api"){if(!this.isAdvFilterEnabled()){return}if(this.beans.dataTypeSvc?.isPendingInference){this.advFilterModelUpdateQueue.push(t);return}this.advancedFilter.setModel(t??null);this.onFilterChanged({source:e})}toggleAdvFilterBuilder(t,e){if(!this.isAdvFilterEnabled()){return}this.advancedFilter.getCtrl().toggleFilterBuilder({source:e,force:t})}updateAdvFilterColumns(){if(!this.isAdvFilterEnabled()){return}if(this.advancedFilter.updateValidity()){this.onFilterChanged({source:"advancedFilter"})}}hasFloatingFilters(){if(this.isAdvFilterEnabled()){return false}return!!this.colFilter?.hasFloatingFilters()}getColumnFilterInstance(t){if(this.isAdvFilterEnabled()){this.warnAdvFilters();return Promise.resolve(void 0)}return this.colFilter?.getFilterInstance(t)??Promise.resolve(void 0)}warnAdvFilters(){Ci(68)}setupAdvFilterHeaderComp(t){this.advancedFilter?.getCtrl().setupHeaderComp(t)}getHeaderRowCount(){return this.isAdvFilterHeaderActive()?1:0}getHeaderHeight(){return this.isAdvFilterHeaderActive()?this.advancedFilter.getCtrl().getHeaderHeight():0}processFilterModelUpdateQueue(){for(const t of this.advFilterModelUpdateQueue){this.setAdvFilterModel(t)}this.advFilterModelUpdateQueue=[]}setColumnFilterModel(t,e){if(this.isAdvFilterEnabled()){this.warnAdvFilters();return Promise.resolve()}return this.colFilter?.setModelForColumn(t,e)??Promise.resolve()}};var _S=class extends ge{constructor(){super(...arguments);this.beanName="filterMenuFactory"}wireBeans(t){this.popupSvc=t.popupSvc}hideActiveMenu(){this.hidePopup?.()}showMenuAfterMouseEvent(t,e,i,s){if(t&&!t.isColumn){return}this.showPopup(t,(s=>{this.popupSvc?.positionPopupUnderMouseEvent({column:t,type:i,mouseEvent:e,ePopup:s})}),i,e.target,bs(this.gos),s)}showMenuAfterButtonClick(t,e,i,s){if(t&&!t.isColumn){return}let o=-1;let n="left";const r=bs(this.gos);if(!r&&this.gos.get("enableRtl")){o=1;n="right"}const l=r?void 0:4*o;const a=r?void 0:4;this.showPopup(t,(s=>{this.popupSvc?.positionPopupByComponent({type:i,eventSource:e,ePopup:s,nudgeX:l,nudgeY:a,alignSide:n,keepWithinBounds:true,position:"under",column:t})}),i,e,r,s)}showPopup(t,e,i,s,o,n){const r=t?this.createBean(new kh(t,"COLUMN_MENU")):void 0;this.activeMenu=r;if(!r?.hasFilter()||!t){bi(57);return}const l=gh({tag:"div",cls:`ag-menu${!o?" ag-filter-menu":""}`,role:"presentation"});[this.tabListener]=this.addManagedElementListeners(l,{keydown:t=>this.trapFocusWithin(t,l)});l.appendChild(r?.getGui());let a;const h=()=>r?.afterGuiDetached();const c=ys(this.gos)?s??this.beans.ctrlsSvc.getGridBodyCtrl().eGridBody:void 0;const u=e=>{Zu(t,false,"contextMenu");const o=e instanceof KeyboardEvent;if(this.tabListener){this.tabListener=this.tabListener()}if(o&&s&&xt(s)){const t=Vr(s);t?.focus({preventScroll:true})}h();this.destroyBean(this.activeMenu);this.dispatchVisibleChangedEvent(false,i,t);n?.()};const d=this.getLocaleTextFunc();const f=o&&i!=="columnFilter"?d("ariaLabelColumnMenu","Column Menu"):d("ariaLabelColumnFilter","Column Filter");const g=this.popupSvc?.addPopup({modal:true,eChild:l,closeOnEsc:true,closedCallback:u,positionCallback:()=>e(l),anchorToElement:c,ariaLabel:f});if(g){this.hidePopup=a=g.hideFunc}r.afterInit().then((()=>{e(l);r.afterGuiAttached({container:i,hidePopup:a})}));Zu(t,true,"contextMenu");this.dispatchVisibleChangedEvent(true,i,t)}trapFocusWithin(t,e){if(t.key!==Zn.TAB||t.defaultPrevented||Lr(this.beans,e,false,t.shiftKey)){return}t.preventDefault();Or(e,t.shiftKey)}dispatchVisibleChangedEvent(t,e,i){this.eventSvc.dispatchEvent({type:"columnMenuVisibleChanged",visible:t,switchingTab:false,key:e,column:i??null,columnGroup:null})}isMenuEnabled(t){return t.isFilterAllowed()&&(t.getColDef().menuTabs??["filterMenuTab"]).includes("filterMenuTab")}showMenuAfterContextMenuEvent(){}destroy(){this.destroyBean(this.activeMenu);super.destroy()}};var ZS=class extends ge{constructor(){super(...arguments);this.beanName="filterValueSvc"}getValue(t,e,i){if(!e){return}const s=t.getColDef();const{selectableFilter:o,valueSvc:n}=this.beans;const r=i??o?.getFilterValueGetter(t.getColId())??s.filterValueGetter;if(r){return this.executeFilterValueGetter(r,e.data,t,e,s)}return n.getValue(t,e)}executeFilterValueGetter(t,e,i,s,o){const{expressionSvc:n,valueSvc:r}=this.beans;const l=Rs(this.gos,{data:e,node:s,column:i,colDef:o,getValue:r.getValueCallback.bind(r,s)});if(typeof t==="function"){return t(l)}return n?.evaluate(t,l)}};var QS={tag:"div",cls:"ag-floating-filter-input",role:"presentation",children:[{tag:"ag-input-text-field",ref:"eFloatingFilterText"}]};var YS=class extends Qo{constructor(){super(QS,[Jr]);this.eFloatingFilterText=jo}init(t){this.params=t;const e=this.beans.colNames.getDisplayNameForColumn(t.column,"header",true);this.eFloatingFilterText.setDisabled(true).setInputAriaLabel(`${e} ${this.getLocaleTextFunc()("ariaFilterInput","Filter Input")}`);if(this.gos.get("enableFilterHandlers")){const e=t;const i=e.getHandler();if(i.getModelAsString){const t=i.getModelAsString(e.model);this.eFloatingFilterText.setValue(t)}}}onParentModelChanged(t){if(t==null){this.eFloatingFilterText.setValue("");return}this.params.parentFilterInstance((e=>{if(e.getModelAsString){const i=e.getModelAsString(t);this.eFloatingFilterText.setValue(i)}}))}refresh(t){this.init(t)}};var JS=class{constructor(){this.customFilterOptions={}}init(t,e){this.filterOptions=t.filterOptions??e;this.mapCustomOptions();this.defaultOption=this.getDefaultItem(t.defaultOption)}refresh(t,e){const i=t.filterOptions??e;if(this.filterOptions!==i){this.filterOptions=i;this.customFilterOptions={};this.mapCustomOptions()}this.defaultOption=this.getDefaultItem(t.defaultOption)}mapCustomOptions(){const{filterOptions:t}=this;if(!t){return}for(const e of t){if(typeof e==="string"){continue}const i=[["displayKey"],["displayName"],["predicate","test"]];const s=t=>{if(!t.some((t=>e[t]!=null))){Ci(72,{keys:t});return false}return true};if(!i.every(s)){this.filterOptions=t.filter((t=>t===e))||[];continue}this.customFilterOptions[e.displayKey]=e}}getDefaultItem(t){const{filterOptions:e}=this;if(t){return t}else if(e.length>=1){const t=e[0];if(typeof t==="string"){return t}else if(t.displayKey){return t.displayKey}else{Ci(73)}}else{Ci(74)}return void 0}getCustomOption(t){return this.customFilterOptions[t]}};function XS(t,e,i){return i==null?t.splice(e):t.splice(e,i)}function tx(t){return t==null||typeof t==="string"&&t.trim().length===0}function ex(t){return t==="AND"||t==="OR"?t:"AND"}function ix(t,e,i){if(t==null){return}const{predicate:s}=t;if(s!=null&&!e.some((t=>t==null))){return s(e,i)}}function sx(t,e){let i=t.length;if(i>e){t.splice(e);Ci(78);i=e}return i}function ox(t,e){const i=e.getCustomOption(t);if(i){const{numberOfInputs:t}=i;return t!=null?t:1}const s=["empty","notBlank","blank"];if(t&&s.indexOf(t)>=0){return 0}else if(t==="inRange"){return 2}return 1}var nx=class extends Uh{constructor(t,e,i){super(t,"simple-filter");this.mapValuesFromModel=e;this.defaultOptions=i;this.eTypes=[];this.eJoinPanels=[];this.eJoinAnds=[];this.eJoinOrs=[];this.eConditionBodies=[];this.listener=()=>this.onUiChanged();this.lastUiCompletePosition=null;this.joinOperatorId=0}setParams(t){super.setParams(t);const e=new JS;this.optionsFactory=e;e.init(t,this.defaultOptions);this.commonUpdateSimpleParams(t);this.createOption();this.createMissingConditionsAndOperators()}updateParams(t,e){this.optionsFactory.refresh(t,this.defaultOptions);super.updateParams(t,e);this.commonUpdateSimpleParams(t)}commonUpdateSimpleParams(t){this.setNumConditions(t);this.defaultJoinOperator=ex(t.defaultJoinOperator);this.filterPlaceholder=t.filterPlaceholder;this.createFilterListOptions();const e=this.getGui();if(this.isReadOnly()){e.setAttribute("tabindex","-1")}else{e.removeAttribute("tabindex")}}onFloatingFilterChanged(t,e){this.setTypeFromFloatingFilter(t);this.setValueFromFloatingFilter(e);this.onUiChanged("immediately",true)}setTypeFromFloatingFilter(t){this.eTypes.forEach(((e,i)=>{const s=i===0?t:this.optionsFactory.defaultOption;e.setValue(s,true)}))}getModelFromUi(){const t=this.getUiCompleteConditions();if(t.length===0){return null}if(this.maxNumConditions>1&&t.length>1){return{filterType:this.filterType,operator:this.getJoinOperator(),conditions:t}}return t[0]}getConditionTypes(){return this.eTypes.map((t=>t.getValue()))}getConditionType(t){return this.eTypes[t].getValue()}getJoinOperator(){const{eJoinOrs:t,defaultJoinOperator:e}=this;return t.length===0?e:t[0].getValue()===true?"OR":"AND"}areNonNullModelsEqual(t,e){const i=!t.operator;const s=!e.operator;const o=!i&&s||i&&!s;if(o){return false}let n;if(i){const i=t;const s=e;n=this.areSimpleModelsEqual(i,s)}else{const i=t;const s=e;n=i.operator===s.operator&&Ns(i.conditions,s.conditions,((t,e)=>this.areSimpleModelsEqual(t,e)))}return n}setModelIntoUi(t,e){if(t==null){this.resetUiToDefaults(e);return tn.resolve()}const i=t.operator;if(i){const e=t;let i=e.conditions;if(i==null){i=[];Ci(77)}const s=sx(i,this.maxNumConditions);const o=this.getNumConditions();if(so){for(let t=o;tt.setValue(!n,true)));this.eJoinOrs.forEach((t=>t.setValue(n,true)));i.forEach(((t,e)=>{this.eTypes[e].setValue(t.type,true);this.setConditionIntoUi(t,e)}))}else{const e=t;if(this.getNumConditions()>1){this.removeConditionsAndOperators(1)}this.eTypes[0].setValue(e.type,true);this.setConditionIntoUi(e,0)}this.lastUiCompletePosition=this.getNumConditions()-1;this.createMissingConditionsAndOperators();this.updateUiVisibility();if(!e){this.params.onUiChange(this.getUiChangeEventParams())}return tn.resolve()}setNumConditions(t){let e=t.maxNumConditions??2;if(e<1){Ci(79);e=1}this.maxNumConditions=e;let i=t.numAlwaysVisibleConditions??1;if(i<1){Ci(80);i=1}if(i>e){Ci(81);i=e}this.numAlwaysVisibleConditions=i}createOption(){const t=this.getGui();const e=this.createManagedBean(new gl);this.eTypes.push(e);e.addCss("ag-filter-select");t.appendChild(e.getGui());const i=this.createEValue();this.eConditionBodies.push(i);t.appendChild(i);this.putOptionsIntoDropdown(e);this.resetType(e);const s=this.getNumConditions()-1;this.forEachPositionInput(s,(t=>this.resetInput(t)));this.addChangedListeners(e,s)}createJoinOperatorPanel(){const t=gh({tag:"div",cls:"ag-filter-condition"});this.eJoinPanels.push(t);const e=this.createJoinOperator(this.eJoinAnds,t,"and");const i=this.createJoinOperator(this.eJoinOrs,t,"or");this.getGui().appendChild(t);const s=this.eJoinPanels.length-1;const o=this.joinOperatorId++;this.resetJoinOperatorAnd(e,s,o);this.resetJoinOperatorOr(i,s,o);if(!this.isReadOnly()){e.onValueChange(this.listener);i.onValueChange(this.listener)}}createJoinOperator(t,e,i){const s=this.createManagedBean(new Kr);t.push(s);const o="ag-filter-condition-operator";s.addCss(o);s.addCss(`${o}-${i}`);e.appendChild(s.getGui());return s}createFilterListOptions(){this.filterListOptions=this.optionsFactory.filterOptions.map((t=>typeof t==="string"?this.createBoilerplateListOption(t):this.createCustomListOption(t)))}putOptionsIntoDropdown(t){const{filterListOptions:e}=this;for(const i of e){t.addOption(i)}t.setDisabled(e.length<=1)}createBoilerplateListOption(t){return{value:t,text:this.translate(t)}}createCustomListOption(t){const{displayKey:e}=t;const i=this.optionsFactory.getCustomOption(t.displayKey);return{value:e,text:i?this.getLocaleTextFunc()(i.displayKey,i.displayName):this.translate(e)}}createBodyTemplate(){return null}getAgComponents(){return[]}updateUiVisibility(){const t=this.getJoinOperator();this.updateNumConditions();this.updateConditionStatusesAndValues(this.lastUiCompletePosition,t)}updateNumConditions(){let t=-1;let e=true;for(let i=0;i0){this.removeConditionsAndOperators(i,s)}this.createMissingConditionsAndOperators()}}this.lastUiCompletePosition=t}updateConditionStatusesAndValues(t,e){this.eTypes.forEach(((e,i)=>{const s=this.isConditionDisabled(i,t);e.setDisabled(s||this.filterListOptions.length<=1);if(i===1){ct(this.eJoinPanels[0],s);this.eJoinAnds[0].setDisabled(s);this.eJoinOrs[0].setDisabled(s)}}));this.eConditionBodies.forEach(((t,e)=>{at(t,this.isConditionBodyVisible(e))}));const i=(e??this.getJoinOperator())==="OR";for(const t of this.eJoinAnds){t.setValue(!i,true)}for(const t of this.eJoinOrs){t.setValue(i,true)}this.forEachInput(((e,i,s,o)=>{this.setElementDisplayed(e,i=this.getNumConditions()){return}const{eTypes:i,eConditionBodies:s,eJoinPanels:o,eJoinAnds:n,eJoinOrs:r}=this;this.removeComponents(i,t,e);this.removeElements(s,t,e);this.removeEValues(t,e);const l=Math.max(t-1,0);this.removeElements(o,l,e);this.removeComponents(n,l,e);this.removeComponents(r,l,e)}removeElements(t,e,i){const s=XS(t,e,i);for(const t of s){yt(t)}}removeComponents(t,e,i){const s=XS(t,e,i);for(const t of s){yt(t.getGui());this.destroyBean(t)}}afterGuiAttached(t){super.afterGuiAttached(t);this.resetPlaceholder();if(!t?.suppressFocus){let t;if(!this.isReadOnly()){const e=this.getInputs(0)[0];if(e instanceof Ur&&this.isConditionBodyVisible(0)){t=e.getInputElement()}else{t=this.eTypes[0]?.getFocusableElement()}}(t??this.getGui()).focus({preventScroll:true})}}afterGuiDetached(){super.afterGuiDetached();const t=this.params;if(this.beans.colFilter?.shouldKeepStateOnDetach(t.column)){return}t.onStateChange({model:t.model});let e=-1;let i=-1;let s=false;const o=this.getJoinOperator();for(let t=this.getNumConditions()-1;t>=0;t--){if(this.isConditionUiComplete(t)){if(e===-1){e=t;i=t}}else{const o=t>=this.numAlwaysVisibleConditions&&!this.isConditionUiComplete(t-1);const n=t{if(!(e instanceof Ur)){return}const n=i===0&&o>1?"inRangeStart":i===0?"filterOoo":"inRangeEnd";const r=i===0&&o>1?t("ariaFilterFromValue","Filter from value"):i===0?t("ariaFilterValue","Filter Value"):t("ariaFilterToValue","Filter to Value");e.setInputPlaceholder(this.getPlaceholderText(n,s));e.setInputAriaLabel(r)}))}setElementValue(t,e,i){if(t instanceof Ur){t.setValue(e!=null?String(e):null,true)}}setElementDisplayed(t,e){if(qo(t)){at(t.getGui(),e)}}setElementDisabled(t,e){if(qo(t)){ct(t.getGui(),e)}}attachElementOnChange(t,e){if(t instanceof Ur){t.onValueChange(e)}}forEachInput(t){this.getConditionTypes().forEach(((e,i)=>{this.forEachPositionTypeInput(i,e,t)}))}forEachPositionInput(t,e){const i=this.getConditionType(t);this.forEachPositionTypeInput(t,i,e)}forEachPositionTypeInput(t,e,i){const s=ox(e,this.optionsFactory);const o=this.getInputs(t);for(let e=0;ee+1}isConditionBodyVisible(t){const e=this.getConditionType(t);const i=ox(e,this.optionsFactory);return i>0}isConditionUiComplete(t){if(t>=this.getNumConditions()){return false}const e=this.getConditionType(t);if(e==="empty"){return false}if(this.getValues(t).some((t=>t==null))){return false}return true}getNumConditions(){return this.eTypes.length}getUiCompleteConditions(){const t=[];for(let e=0;ethis.resetType(t)));this.eJoinAnds.forEach(((t,e)=>this.resetJoinOperatorAnd(t,e,this.joinOperatorId+e)));this.eJoinOrs.forEach(((t,e)=>this.resetJoinOperatorOr(t,e,this.joinOperatorId+e)));this.joinOperatorId++;this.forEachInput((t=>this.resetInput(t)));this.resetPlaceholder();this.createMissingConditionsAndOperators();this.lastUiCompletePosition=null;this.updateUiVisibility();if(!t){this.params.onUiChange(this.getUiChangeEventParams())}}resetType(t){const e=this.getLocaleTextFunc();const i=e("ariaFilteringOperator","Filtering operator");t.setValue(this.optionsFactory.defaultOption,true).setAriaLabel(i).setDisabled(this.isReadOnly()||this.filterListOptions.length<=1)}resetJoinOperatorAnd(t,e,i){this.resetJoinOperator(t,e,this.defaultJoinOperator==="AND",this.translate("andCondition"),i)}resetJoinOperatorOr(t,e,i){this.resetJoinOperator(t,e,this.defaultJoinOperator==="OR",this.translate("orCondition"),i)}resetJoinOperator(t,e,i,s,o){this.updateJoinOperatorDisabled(t.setValue(i,true).setName(`ag-simple-filter-and-or-${this.getCompId()}-${o}`).setLabel(s),e)}updateJoinOperatorsDisabled(){const t=(t,e)=>this.updateJoinOperatorDisabled(t,e);this.eJoinAnds.forEach(t);this.eJoinOrs.forEach(t)}updateJoinOperatorDisabled(t,e){t.setDisabled(this.isReadOnly()||e>0)}resetInput(t){this.setElementValue(t,null);this.setElementDisabled(t,this.isReadOnly())}setConditionIntoUi(t,e){const i=this.mapValuesFromModel(t,this.optionsFactory);this.forEachInput(((t,s,o)=>{if(o!==e){return}this.setElementValue(t,i[s]!=null?i[s]:null)}))}setValueFromFloatingFilter(t){this.forEachInput(((e,i,s)=>{this.setElementValue(e,i===0&&s===0?t:null,true)}))}addChangedListeners(t,e){if(this.isReadOnly()){return}t.onValueChange(this.listener);this.forEachPositionInput(e,(t=>{this.attachElementOnChange(t,this.listener)}))}hasInvalidInputs(){return false}isReadOnly(){return!!this.params.readOnly}};var rx=class{constructor(t,e,i,s,o,n){this.alive=true;this.context=t;this.eParent=o;const r=Nn(e,i,s);if(!r){return}r.newAgStackInstance().then((e=>{if(!this.alive){t.destroyBean(e);return}this.dateComp=e;if(!e){return}o.appendChild(e.getGui());e?.afterGuiAttached?.();const{tempValue:i,disabled:s}=this;if(i){e.setDate(i)}if(s!=null){e.setDisabled?.(s)}n?.(this)}))}destroy(){this.alive=false;this.dateComp=this.context.destroyBean(this.dateComp)}getDate(){return this.dateComp?this.dateComp.getDate():this.tempValue}setDate(t){const e=this.dateComp;if(e){e.setDate(t)}else{this.tempValue=t}}setDisabled(t){const e=this.dateComp;if(e){e.setDisabled?.(t)}else{this.disabled=t}}setDisplayed(t){at(this.eParent,t)}setInputPlaceholder(t){this.dateComp?.setInputPlaceholder?.(t)}setInputAriaLabel(t){this.dateComp?.setInputAriaLabel?.(t)}afterGuiAttached(t){this.dateComp?.afterGuiAttached?.(t)}updateParams(t){this.dateComp?.refresh?.(t)}};var lx=["equals","notEqual","lessThan","greaterThan","inRange","blank","notBlank"];function ax(t,e){const{dateFrom:i,dateTo:s,type:o}=t||{};return[i&&Rr(i,void 0,true)||null,s&&Rr(s,void 0,true)||null].slice(0,ox(o,e))}var hx=1e3;var cx=Infinity;var ux=class extends nx{constructor(){super("dateFilter",ax,lx);this.eConditionPanelsFrom=[];this.eConditionPanelsTo=[];this.dateConditionFromComps=[];this.dateConditionToComps=[];this.minValidYear=hx;this.maxValidYear=cx;this.minValidDate=null;this.maxValidDate=null;this.filterType="date"}afterGuiAttached(t){super.afterGuiAttached(t);this.dateConditionFromComps[0].afterGuiAttached(t)}commonUpdateSimpleParams(t){super.commonUpdateSimpleParams(t);const e=(e,i)=>{const s=t[e];if(s!=null){if(!isNaN(s)){return s==null?i:Number(s)}else{Ci(82,{param:e})}}return i};const i=e("minValidYear",hx);const s=e("maxValidYear",cx);this.minValidYear=i;this.maxValidYear=s;if(i>s){Ci(83)}const{minValidDate:o,maxValidDate:n}=t;const r=o instanceof Date?o:Rr(o);this.minValidDate=r;const l=n instanceof Date?n:Rr(n);this.maxValidDate=l;if(r&&l&&r>l){Ci(84)}}createDateCompWrapper(t){const{beans:{userCompFactory:e,context:i,gos:s},params:o}=this;const n=new rx(i,e,o.colDef,Rs(s,{onDateChanged:()=>this.onUiChanged(),filterParams:o,location:"filter"}),t);this.addDestroyFunc((()=>n.destroy()));return n}setElementValue(t,e){t.setDate(e)}setElementDisplayed(t,e){t.setDisplayed(e)}setElementDisabled(t,e){t.setDisabled(e)}createEValue(){const t=gh({tag:"div",cls:"ag-filter-body"});this.createFromToElement(t,this.eConditionPanelsFrom,this.dateConditionFromComps,"from");this.createFromToElement(t,this.eConditionPanelsTo,this.dateConditionToComps,"to");return t}createFromToElement(t,e,i,s){const o=gh({tag:"div",cls:`ag-filter-${s} ag-filter-date-${s}`});e.push(o);t.appendChild(o);i.push(this.createDateCompWrapper(o))}removeEValues(t,e){this.removeDateComps(this.dateConditionFromComps,t,e);this.removeDateComps(this.dateConditionToComps,t,e);XS(this.eConditionPanelsFrom,t,e);XS(this.eConditionPanelsTo,t,e)}removeDateComps(t,e,i){const s=XS(t,e,i);for(const t of s){t.destroy()}}isValidDateValue(t){if(t===null){return false}const{minValidDate:e,maxValidDate:i,minValidYear:s,maxValidYear:o}=this;if(e){if(ti){return false}}else if(t.getUTCFullYear()>o){return false}return true}isConditionUiComplete(t){if(!super.isConditionUiComplete(t)){return false}let e=true;this.forEachInput(((i,s,o,n)=>{if(o!==t||!e||s>=n){return}e=e&&this.isValidDateValue(i.getDate())}));return e}areSimpleModelsEqual(t,e){return t.dateFrom===e.dateFrom&&t.dateTo===e.dateTo&&t.type===e.type}createCondition(t){const e=this.getConditionType(t);const i={};const s=this.getValues(t);const o=this.params.useIsoSeparator?"T":" ";if(s.length>0){i.dateFrom=vr(s[0],true,o)}if(s.length>1){i.dateTo=vr(s[1],true,o)}return{dateFrom:null,dateTo:null,filterType:this.filterType,type:e,...i}}resetPlaceholder(){const t=this.getLocaleTextFunc();const e=this.translate("dateFormatOoo");const i=t("ariaFilterValue","Filter Value");this.forEachInput((t=>{t.setInputPlaceholder(e);t.setInputAriaLabel(i)}))}getInputs(t){const{dateConditionFromComps:e,dateConditionToComps:i}=this;if(t>=e.length){return[null,null]}return[e[t],i[t]]}getValues(t){const e=[];this.forEachPositionInput(t,((t,i,s,o)=>{if(ithis.individualConditionPasses(t,e,n)))}getModelAsString(t,e){return this.filterModelFormatter.getModelAsString(t,e)??""}validateModel(t){const{model:e,filterParams:{filterOptions:i,maxNumConditions:s}}=t;if(e==null){return}const o=jh(e);let n=o?e.conditions:[e];const r=i?.map((t=>typeof t==="string"?t:t.displayKey))??this.defaultOptions;const l=!n||n.every((t=>r.find((e=>e===t.type))!==void 0));if(!l){this.params={...t,model:null};t.onModelChange(null);return}let a=false;const h=this.filterType;if(n&&!n.every((t=>t.filterType===h))||e.filterType!==h){n=n.map((t=>({...t,filterType:h})));a=true}if(typeof s==="number"&&n&&n.length>s){n=n.slice(0,s);a=true}if(a){const i=n.length>1?{...e,filterType:h,conditions:n}:{...n[0],filterType:h};this.params={...t,model:i};t.onModelChange(i)}}individualConditionPasses(t,e,i){const s=this.optionsFactory;const o=this.mapValuesFromModel(e,s);const n=s.getCustomOption(e.type);const r=ix(n,o,i);if(r!=null){return r}if(i==null){return this.evaluateNullValue(e.type)}return this.evaluateNonNullValue(o,i,e,t)}};var fx=class extends dx{evaluateNullValue(t){const{includeBlanksInEquals:e,includeBlanksInNotEqual:i,includeBlanksInGreaterThan:s,includeBlanksInLessThan:o,includeBlanksInRange:n}=this.params.filterParams;switch(t){case"equals":if(e){return true}break;case"notEqual":if(i){return true}break;case"greaterThan":case"greaterThanOrEqual":if(s){return true}break;case"lessThan":case"lessThanOrEqual":if(o){return true}break;case"inRange":if(n){return true}break;case"blank":return true;case"notBlank":return false}return false}evaluateNonNullValue(t,e,i){const s=i.type;if(!this.isValid(e)){return s==="notEqual"||s==="notBlank"}const o=this.comparator();const n=t[0]!=null?o(t[0],e):0;switch(s){case"equals":return n===0;case"notEqual":return n!==0;case"greaterThan":return n>0;case"greaterThanOrEqual":return n>=0;case"lessThan":return n<0;case"lessThanOrEqual":return n<=0;case"inRange":{const i=o(t[1],e);return this.params.filterParams.inRangeInclusive?n>=0&&i<=0:n>0&&i<0}case"blank":return tx(e);case"notBlank":return!tx(e);default:Ci(76,{filterModelType:s});return true}}};var gx={equals:"Equals",notEqual:"NotEqual",greaterThan:"GreaterThan",greaterThanOrEqual:"GreaterThanOrEqual",lessThan:"LessThan",lessThanOrEqual:"LessThanOrEqual",inRange:"InRange"};var px={contains:"Contains",notContains:"NotContains",equals:"TextEquals",notEqual:"TextNotEqual",startsWith:"StartsWith",endsWith:"EndsWith",inRange:"InRange"};var mx=class extends ge{constructor(t,e,i){super();this.optionsFactory=t;this.filterParams=e;this.valueFormatter=i}getModelAsString(t,e){const i=this.getLocaleTextFunc();const s=e==="filterToolPanel";if(!t){return s?Ch(this,"filterSummaryInactive"):null}const o=t.operator!=null;if(o){const i=t;const s=i.conditions??[];const o=s.map((t=>this.getModelAsString(t,e)));const n=i.operator==="AND"?"andCondition":"orCondition";return o.join(` ${Ch(this,n)} `)}else if(t.type==="blank"||t.type==="notBlank"){return s?Ch(this,t.type==="blank"?"filterSummaryBlank":"filterSummaryNotBlank"):i(t.type,t.type)}else{const e=t;const o=this.optionsFactory.getCustomOption(e.type);const{displayKey:n,displayName:r,numberOfInputs:l}=o||{};if(n&&r&&l===0){return i(n,r)}return this.conditionToString(e,s,e.type==="inRange"||l===2,n,r)}}updateParams(t){const{optionsFactory:e,filterParams:i}=t;this.optionsFactory=e;this.filterParams=i}conditionForToolPanel(t,e,i,s,o,n){let r;const l=this.getTypeKey(t);if(l){r=Ch(this,l)}if(o&&n){r=this.getLocaleTextFunc()(o,n)}if(r!=null){if(e){return`${r} ${Ch(this,"filterSummaryInRangeValues",[i(),s()])}`}else{return`${r} ${i()}`}}return null}getTypeKey(t){const e=this.filterTypeKeys[t];return e?`filterSummary${e}`:null}formatValue(t){const e=this.valueFormatter;return e?e(t??null)??"":String(t)}};var vx=class extends mx{constructor(t,e){super(t,e,(t=>{const{dataTypeSvc:i,valueSvc:s}=this.beans;const o=e.column;const n=i?.getDateFormatterFunction(o);const r=n?n(t??void 0):t;return s.formatValue(o,null,r)}));this.filterTypeKeys=gx}conditionToString(t,e,i,s,o){const{type:n}=t;const r=Rr(t.dateFrom);const l=Rr(t.dateTo);const a=this.filterParams.inRangeFloatingFilterDateFormat;const h=e?this.formatValue.bind(this):t=>Sr(t,a);const c=()=>r!==null?h(r):"null";const u=()=>l!==null?h(l):"null";if(e){const t=this.conditionForToolPanel(n,i,c,u,s,o);if(t!=null){return t}}if(i){return`${c()}-${u()}`}if(r!=null){return h(r)}return`${n}`}};function wx(t,e){const i=e;if(it){return 1}return 0}var Cx=class extends fx{constructor(){super(ax,lx);this.filterType="date";this.FilterModelFormatterClass=vx}comparator(){return this.params.filterParams.comparator??wx}isValid(t){const e=this.params.filterParams.isValidDate;return!e||e(t)}};var bx=class extends Qo{constructor(){super(...arguments);this.defaultDebounceMs=0}setLastTypeFromModel(t){if(!t){this.lastType=this.optionsFactory.defaultOption;return}const e=t.operator;let i;if(e){const e=t;i=e.conditions[0]}else{i=t}this.lastType=i.type}canWeEditAfterModelFromParentFilter(t){if(!t){return this.isTypeEditable(this.lastType)}const e=t.operator;if(e){return false}const i=t;return this.isTypeEditable(i.type)}init(t){this.params=t;const e=this.gos.get("enableFilterHandlers");this.reactive=e;this.setParams(t);if(e){const e=t;this.onModelUpdated(e.model)}}setParams(t){const e=new JS;this.optionsFactory=e;e.init(t.filterParams,this.defaultOptions);this.filterModelFormatter=this.createManagedBean(new this.FilterModelFormatterClass(e,t.filterParams));this.setSimpleParams(t,false)}setSimpleParams(t,e=true){const i=this.optionsFactory.defaultOption;if(!e){this.lastType=i}this.readOnly=!!t.filterParams.readOnly;const s=this.isTypeEditable(i);this.setEditable(s)}refresh(t){this.params=t;const e=t;const i=this.reactive;if(!i||e.source==="colDef"){this.updateParams(t)}if(i){const{source:t,model:i}=e;if(t==="dataChanged"||t==="ui"){return}this.onModelUpdated(i)}}updateParams(t){const e=this.optionsFactory;e.refresh(t.filterParams,this.defaultOptions);this.setSimpleParams(t);this.filterModelFormatter.updateParams({optionsFactory:e,filterParams:t.filterParams})}onParentModelChanged(t,e){if(e?.afterFloatingFilter||e?.afterDataChange){return}this.onModelUpdated(t)}hasSingleInput(t){const e=this.optionsFactory.getCustomOption(t)?.numberOfInputs;return e==null||e==1}isTypeEditable(t){const e=["inRange","empty","blank","notBlank"];return!!t&&!this.readOnly&&this.hasSingleInput(t)&&e.indexOf(t)<0}getAriaLabel(t){const e=this.beans.colNames.getDisplayNameForColumn(t.column,"header",true);return`${e} ${this.getLocaleTextFunc()("ariaFilterInput","Filter Input")}`}};var yx={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"}]};var Sx=class extends bx{constructor(){super(yx,[Jr]);this.eReadOnlyText=jo;this.eDateWrapper=jo;this.FilterModelFormatterClass=vx;this.filterType="date";this.defaultOptions=lx}setParams(t){super.setParams(t);this.createDateComponent();const e=this.getLocaleTextFunc();this.eReadOnlyText.setDisabled(true).setInputAriaLabel(e("ariaDateFilterInput","Date Filter Input"))}updateParams(t){super.updateParams(t);this.dateComp.updateParams(this.getDateComponentParams());this.updateCompOnModelChange(t.currentParentModel())}updateCompOnModelChange(t){const e=!this.readOnly&&this.canWeEditAfterModelFromParentFilter(t);this.setEditable(e);if(e){const e=t?Rr(t.dateFrom):null;this.dateComp.setDate(e);this.eReadOnlyText.setValue("")}else{this.eReadOnlyText.setValue(this.filterModelFormatter.getModelAsString(t));this.dateComp.setDate(null)}}setEditable(t){at(this.eDateWrapper,t);at(this.eReadOnlyText.getGui(),!t)}onModelUpdated(t){super.setLastTypeFromModel(t);this.updateCompOnModelChange(t)}onDateChanged(){const t=this.dateComp.getDate();if(this.reactive){const e=this.params;e.onUiChange();const i=e.model;const s=vr(t);const o=s==null?null:{...i??{filterType:this.filterType,type:this.lastType??this.optionsFactory.defaultOption},dateFrom:s};e.onModelChange(o,{afterFloatingFilter:true})}else{this.params.parentFilterInstance((e=>{e?.onFloatingFilterChanged(this.lastType||null,t)}))}}getDateComponentParams(){const{filterParams:t}=this.params;const e=bh(t,this.defaultDebounceMs);return Rs(this.gos,{onDateChanged:be(this,this.onDateChanged.bind(this),e),filterParams:t,location:"floatingFilter"})}createDateComponent(){const{beans:{context:t,userCompFactory:e},eDateWrapper:i,params:s}=this;this.dateComp=new rx(t,e,s.column.getColDef(),this.getDateComponentParams(),i,(t=>{t.setInputAriaLabel(this.getAriaLabel(s))}));this.addDestroyFunc((()=>this.dateComp.destroy()))}};var xx={tag:"div",cls:"ag-filter-filter",children:[{tag:"ag-input-text-field",ref:"eDateInput",cls:"ag-date-filter"}]};var kx=class extends Qo{constructor(){super(xx,[Jr]);this.eDateInput=jo;this.isApply=false;this.applyOnFocusOut=false}init(t){this.params=t;this.setParams(t);const e=this.eDateInput.getInputElement();this.addManagedListeners(e,{mouseDown:()=>{if(this.eDateInput.isDisabled()||this.usingSafariDatePicker){return}e.focus({preventScroll:true})},input:this.handleInput.bind(this,false),change:this.handleInput.bind(this,true),focusout:this.handleFocusOut.bind(this)})}handleInput(t){if(this.eDateInput.isDisabled()){return}if(this.isApply){this.applyOnFocusOut=!t;if(t){this.params.onDateChanged()}return}if(!t){this.params.onDateChanged()}}handleFocusOut(){if(this.applyOnFocusOut){this.applyOnFocusOut=false;this.params.onDateChanged()}}setParams(t){const e=this.eDateInput.getInputElement();const i=this.shouldUseBrowserDatePicker(t);this.usingSafariDatePicker=i&&or();const{minValidYear:s,maxValidYear:o,minValidDate:n,maxValidDate:r,buttons:l,includeTime:a,colDef:h}=t.filterParams||{};const c=this.beans.dataTypeSvc;const u=a??c?.getDateIncludesTimeFlag?.(h.cellDataType)??false;if(i){if(u){e.type="datetime-local";e.step="1"}else{e.type="date"}}else{e.type="text"}if(n&&s){Ci(85)}if(r&&o){Ci(86)}if(n&&r){const[t,e]=[n,r].map((t=>t instanceof Date?t:Rr(t)));if(t&&e&&t.getTime()>e.getTime()){Ci(87)}}if(n){if(n instanceof Date){e.min=Sr(n)}else{e.min=n}}else if(s){e.min=`${s}-01-01`}if(r){if(r instanceof Date){e.max=Sr(r)}else{e.max=r}}else if(o){e.max=`${o}-12-31`}this.isApply=t.location==="floatingFilter"&&!!l?.includes("apply")}refresh(t){this.params=t;this.setParams(t)}getDate(){return Rr(this.eDateInput.getValue())}setDate(t){const e=this.params.filterParams.colDef.cellDataType;const i=this.beans.dataTypeSvc?.getDateIncludesTimeFlag(e)??false;this.eDateInput.setValue(vr(t,i))}setInputPlaceholder(t){this.eDateInput.setInputPlaceholder(t)}setInputAriaLabel(t){this.eDateInput.setAriaLabel(t)}setDisabled(t){this.eDateInput.setDisabled(t)}afterGuiAttached(t){if(!t?.suppressFocus){this.eDateInput.getInputElement().focus({preventScroll:true})}}shouldUseBrowserDatePicker(t){return t?.filterParams?.browserDatePicker??true}};var Rx=["equals","notEqual","greaterThan","greaterThanOrEqual","lessThan","lessThanOrEqual","inRange","blank","notBlank"];function Ex(t){const{allowedCharPattern:e}=t??{};return e??null}function Fx(t){if(t==null){return null}return isNaN(t)?null:t}function Mx(t,e){const{filter:i,filterTo:s,type:o}=t||{};return[Fx(i),Fx(s)].slice(0,ox(o,e))}var Px=class extends nx{constructor(){super("numberFilter",Mx,Rx);this.eValuesFrom=[];this.eValuesTo=[];this.filterType="number";this.defaultDebounceMs=500}setElementValue(t,e,i){const{numberFormatter:s}=this.params;const o=!i&&s?s(e??null):e;super.setElementValue(t,o)}createEValue(){const t=Ex(this.params);const e=gh({tag:"div",cls:"ag-filter-body",role:"presentation"});this.createFromToElement(e,this.eValuesFrom,"from",t);this.createFromToElement(e,this.eValuesTo,"to",t);return e}createFromToElement(t,e,i,s){const o=this.createManagedBean(s?new Yr({allowedCharPattern:s}):new el);o.addCss(`ag-filter-${i}`);o.addCss("ag-filter-filter");e.push(o);t.appendChild(o.getGui())}removeEValues(t,e){const i=i=>this.removeComponents(i,t,e);i(this.eValuesFrom);i(this.eValuesTo)}getValues(t){const e=[];this.forEachPositionInput(t,((t,i,s,o)=>{if(i0){i.filter=s[0]}if(s.length>1){i.filterTo=s[1]}return i}getInputs(t){const{eValuesFrom:e,eValuesTo:i}=this;if(t>=e.length){return[null,null]}return[e[t],i[t]]}hasInvalidInputs(){let t=false;this.forEachInput((e=>{if(!e.getInputElement().validity.valid){t=true}}));return t}};var Dx=class extends mx{constructor(t,e){super(t,e,e.numberFormatter);this.filterTypeKeys=gx}conditionToString(t,e,i,s,o){const{filter:n,filterTo:r,type:l}=t;const a=this.formatValue.bind(this);if(e){const t=this.conditionForToolPanel(l,i,(()=>a(n)),(()=>a(r)),s,o);if(t!=null){return t}}if(i){return`${a(n)}-${a(r)}`}if(n!=null){return a(n)}return`${l}`}};var Tx=class extends fx{constructor(){super(Mx,Rx);this.filterType="number";this.FilterModelFormatterClass=Dx}comparator(){return(t,e)=>{if(t===e){return 0}return t{}}setupGui(t){this.eInput=this.createManagedBean(new Yr(this.params?.config));const e=this.eInput.getGui();t.appendChild(e);const i=t=>this.onValueChanged(t);this.addManagedListeners(e,{input:i,keydown:i})}setEditable(t){this.eInput.setDisabled(!t)}getValue(){return this.eInput.getValue()}setValue(t,e){this.eInput.setValue(t,e)}setValueChangedListener(t){this.onValueChanged=t}setParams({ariaLabel:t,autoComplete:e}){const{eInput:i}=this;i.setInputAriaLabel(t);if(e!==void 0){i.setAutoComplete(e)}}};function Ax(t){const e=t?.trim();return e===""?t:e}function Ix(t,e){const{filter:i,filterTo:s,type:o}=t||{};return[i||null,s||null].slice(0,ox(o,e))}var zx={tag:"div",ref:"eFloatingFilterInputContainer",cls:"ag-floating-filter-input",role:"presentation"};var Hx=class extends bx{constructor(){super(...arguments);this.eFloatingFilterInputContainer=jo;this.defaultDebounceMs=500}postConstruct(){this.setTemplate(zx)}onModelUpdated(t){this.setLastTypeFromModel(t);this.setEditable(this.canWeEditAfterModelFromParentFilter(t));this.inputSvc.setValue(this.filterModelFormatter.getModelAsString(t))}setParams(t){this.setupFloatingFilterInputService(t);super.setParams(t);this.setTextInputParams(t)}setupFloatingFilterInputService(t){this.inputSvc=this.createFloatingFilterInputService(t);this.inputSvc.setupGui(this.eFloatingFilterInputContainer)}setTextInputParams(t){const e=t.browserAutoComplete??false;const{inputSvc:i,defaultDebounceMs:s,readOnly:o}=this;i.setParams({ariaLabel:this.getAriaLabel(t),autoComplete:e});this.applyActive=yh(t.filterParams);if(!o){const e=bh(t.filterParams,s);const o=be(this,this.syncUpWithParentFilter.bind(this),e);i.setValueChangedListener(o)}}updateParams(t){super.updateParams(t);this.setTextInputParams(t)}recreateFloatingFilterInputService(t){const{inputSvc:e}=this;const i=e.getValue();bt(this.eFloatingFilterInputContainer);this.destroyBean(e);this.setupFloatingFilterInputService(t);e.setValue(i,true)}syncUpWithParentFilter(t){const e=t.key===Zn.ENTER;const i=this.reactive;if(i){const t=this.params;t.onUiChange()}if(this.applyActive&&!e){return}const{inputSvc:s,params:o,lastType:n}=this;let r=s.getValue();if(o.filterParams.trimInput){r=Ax(r);s.setValue(r,true)}if(i){const t=o;const e=t.model;const i=this.convertValue(r);const s=i==null?null:{...e??{filterType:this.filterType,type:n??this.optionsFactory.defaultOption},filter:i};t.onModelChange(s,{afterFloatingFilter:true})}else{o.parentFilterInstance((t=>{t?.onFloatingFilterChanged(n||null,r||null)}))}}convertValue(t){return t||null}setEditable(t){this.inputSvc.setEditable(t)}};var Ox=class extends ge{constructor(){super(...arguments);this.onValueChanged=()=>{};this.numberInputActive=true}setupGui(t){this.eNumberInput=this.createManagedBean(new el);this.eTextInput=this.createManagedBean(new Yr);this.eTextInput.setDisabled(true);const e=this.eNumberInput.getGui();const i=this.eTextInput.getGui();t.appendChild(e);t.appendChild(i);this.setupListeners(e,(t=>this.onValueChanged(t)));this.setupListeners(i,(t=>this.onValueChanged(t)))}setEditable(t){this.numberInputActive=t;this.eNumberInput.setDisplayed(this.numberInputActive);this.eTextInput.setDisplayed(!this.numberInputActive)}setAutoComplete(t){this.eNumberInput.setAutoComplete(t);this.eTextInput.setAutoComplete(t)}getValue(){return this.getActiveInputElement().getValue()}setValue(t,e){this.getActiveInputElement().setValue(t,e)}getActiveInputElement(){return this.numberInputActive?this.eNumberInput:this.eTextInput}setValueChangedListener(t){this.onValueChanged=t}setupListeners(t,e){this.addManagedListeners(t,{input:e,keydown:e})}setParams(t){this.setAriaLabel(t.ariaLabel);if(t.autoComplete!==void 0){this.setAutoComplete(t.autoComplete)}}setAriaLabel(t){this.eNumberInput.setInputAriaLabel(t);this.eTextInput.setInputAriaLabel(t)}};var Lx=class extends Hx{constructor(){super(...arguments);this.FilterModelFormatterClass=Dx;this.filterType="number";this.defaultOptions=Rx}updateParams(t){const e=Ex(t.filterParams);if(e!==this.allowedCharPattern){this.recreateFloatingFilterInputService(t)}super.updateParams(t)}createFloatingFilterInputService(t){this.allowedCharPattern=Ex(t.filterParams);if(this.allowedCharPattern){return this.createManagedBean(new Bx({config:{allowedCharPattern:this.allowedCharPattern}}))}return this.createManagedBean(new Ox)}convertValue(t){return t?Number(t):null}};var Vx=["contains","notContains","equals","notEqual","startsWith","endsWith","blank","notBlank"];var Nx=class extends nx{constructor(){super("textFilter",Ix,Vx);this.filterType="text";this.eValuesFrom=[];this.eValuesTo=[];this.defaultDebounceMs=500}createCondition(t){const e=this.getConditionType(t);const i={filterType:this.filterType,type:e};const s=this.getValues(t);if(s.length>0){i.filter=s[0]}if(s.length>1){i.filterTo=s[1]}return i}areSimpleModelsEqual(t,e){return t.filter===e.filter&&t.filterTo===e.filterTo&&t.type===e.type}getInputs(t){const{eValuesFrom:e,eValuesTo:i}=this;if(t>=e.length){return[null,null]}return[e[t],i[t]]}getValues(t){const i=[];this.forEachPositionInput(t,((t,s,o,n)=>{if(sthis.removeComponents(i,t,e);const{eValuesFrom:s,eValuesTo:o}=this;i(s);i(o)}};var Gx=class extends mx{constructor(){super(...arguments);this.filterTypeKeys=px}conditionToString(t,e,i,s,o){const{filter:n,filterTo:r,type:l}=t;if(e){const t=t=>()=>Ch(this,"filterSummaryTextQuote",[t]);const e=this.conditionForToolPanel(l,i,t(n),t(r),s,o);if(e!=null){return e}}if(i){return`${n}-${r}`}if(n!=null){return`${n}`}return`${l}`}};var $x=({filterOption:t,value:e,filterText:i})=>{if(i==null){return false}switch(t){case"contains":return e.includes(i);case"notContains":return!e.includes(i);case"equals":return e===i;case"notEqual":return e!=i;case"startsWith":return e.indexOf(i)===0;case"endsWith":{const t=e.lastIndexOf(i);return t>=0&&t===e.length-i.length}default:return false}};var Wx=t=>t;var Ux=t=>t==null?null:t.toString().toLowerCase();var jx=class extends dx{constructor(){super(Ix,Vx);this.filterType="text";this.FilterModelFormatterClass=Gx}updateParams(t){super.updateParams(t);const e=t.filterParams;this.matcher=e.textMatcher??$x;this.formatter=e.textFormatter??(e.caseSensitive?Wx:Ux)}evaluateNullValue(t){const e=["notEqual","notContains","blank"];return t?e.indexOf(t)>=0:false}evaluateNonNullValue(t,e,i,s){const o=t.map((t=>this.formatter(t)))||[];const n=this.formatter(e);const{api:r,colDef:l,column:a,context:h,filterParams:{textFormatter:c}}=this.params;if(i.type==="blank"){return tx(e)}else if(i.type==="notBlank"){return!tx(e)}const u={api:r,colDef:l,column:a,context:h,node:s.node,data:s.data,filterOption:i.type,value:n,textFormatter:c};return o.some((t=>this.matcher({...u,filterText:t})))}processModelToApply(t){if(t&&this.params.filterParams.trimInput){const e=t=>{const e={...t};const{filter:i,filterTo:s}=t;if(i){e.filter=Ax(i)??null}if(s){e.filterTo=Ax(s)??null}return e};if(jh(t)){return{...t,conditions:t.conditions.map(e)}}return e(t)}return t}};var qx=class extends Hx{constructor(){super(...arguments);this.FilterModelFormatterClass=Gx;this.filterType="text";this.defaultOptions=Vx}createFloatingFilterInputService(){return this.createManagedBean(new Bx)}};function Kx(t){return!!t.quickFilter?.isFilterPresent()}function _x(t){return t.quickFilter?.getText()}function Zx(t){t.quickFilter?.resetCache()}var Qx=class extends ge{constructor(){super(...arguments);this.beanName="quickFilter";this.quickFilter=null;this.quickFilterParts=null}postConstruct(){const t=this.resetCache.bind(this);const e=this.gos;this.addManagedEventListeners({columnPivotModeChanged:t,newColumnsLoaded:t,columnRowGroupChanged:t,columnVisible:()=>{if(!e.get("includeHiddenColumnsInQuickFilter")){this.resetCache()}}});this.addManagedPropertyListener("quickFilterText",(t=>this.setFilter(t.currentValue)));this.addManagedPropertyListeners(["includeHiddenColumnsInQuickFilter","applyQuickFilterBeforePivotOrAgg"],(()=>this.onColumnConfigChanged()));this.quickFilter=this.parseFilter(e.get("quickFilterText"));this.parser=e.get("quickFilterParser");this.matcher=e.get("quickFilterMatcher");this.setFilterParts();this.addManagedPropertyListeners(["quickFilterMatcher","quickFilterParser"],(()=>this.setParserAndMatcher()))}refreshCols(){const{autoColSvc:t,colModel:e,gos:i,pivotResultCols:s}=this.beans;const o=e.isPivotMode();const n=t?.getColumns();const r=e.getColDefCols();let l=(o&&!i.get("applyQuickFilterBeforePivotOrAgg")?s?.getPivotResultCols()?.list:r)??[];if(n){l=l.concat(n)}this.colsToUse=i.get("includeHiddenColumnsInQuickFilter")?l:l.filter((t=>t.isVisible()||t.isRowGroupActive()))}isFilterPresent(){return this.quickFilter!==null}doesRowPass(t){const e=this.gos.get("cacheQuickFilter");if(this.matcher){return this.doesRowPassMatcher(e,t)}return this.quickFilterParts.every((i=>e?this.doesRowPassCache(t,i):this.doesRowPassNoCache(t,i)))}resetCache(){this.beans.rowModel.forEachNode((t=>t.quickFilterAggregateText=null))}getText(){return this.gos.get("quickFilterText")}setFilterParts(){const{quickFilter:t,parser:e}=this;if(t){this.quickFilterParts=e?e(t):t.split(" ")}else{this.quickFilterParts=null}}parseFilter(t){if(!i(t)){return null}return t.toUpperCase()}setFilter(t){if(t!=null&&typeof t!=="string"){Ci(70,{newFilter:t});return}const e=this.parseFilter(t);if(this.quickFilter!==e){this.quickFilter=e;this.setFilterParts();this.dispatchLocalEvent({type:"quickFilterChanged"})}}setParserAndMatcher(){const t=this.gos.get("quickFilterParser");const e=this.gos.get("quickFilterMatcher");const i=t!==this.parser||e!==this.matcher;this.parser=t;this.matcher=e;if(i){this.setFilterParts();this.dispatchLocalEvent({type:"quickFilterChanged"})}}onColumnConfigChanged(){this.refreshCols();this.resetCache();if(this.isFilterPresent()){this.dispatchLocalEvent({type:"quickFilterChanged"})}}doesRowPassNoCache(t,e){return this.colsToUse.some((s=>{const o=this.getTextForColumn(s,t);return i(o)&&o.includes(e)}))}doesRowPassCache(t,e){this.checkGenerateAggText(t);return t.quickFilterAggregateText.includes(e)}doesRowPassMatcher(t,e){let i;if(t){this.checkGenerateAggText(e);i=e.quickFilterAggregateText}else{i=this.getAggText(e)}const{quickFilterParts:s,matcher:o}=this;return o(s,i)}checkGenerateAggText(t){if(!t.quickFilterAggregateText){t.quickFilterAggregateText=this.getAggText(t)}}getTextForColumn(t,e){let s=this.beans.filterValueSvc.getValue(t,e);const o=t.getColDef();if(o.getQuickFilterText){const i=Rs(this.gos,{value:s,node:e,data:e.data,column:t,colDef:o});s=o.getQuickFilterText(i)}return i(s)?s.toString().toUpperCase():null}getAggText(t){const e=[];for(const s of this.colsToUse){const o=this.getTextForColumn(s,t);if(i(o)){e.push(o)}}return e.join("\n")}};var Yx={moduleName:"ClientSideRowModelFilter",version:ii,rowModels:["clientSide"],beans:[kS]};var Jx={moduleName:"FilterCore",version:ii,beans:[KS],apiFunctions:{isAnyFilterPresent:jS,onFilterChanged:qS},css:[TS],dependsOn:[Yx]};var Xx={moduleName:"FilterValue",version:ii,beans:[ZS]};var tk={moduleName:"ColumnFilter",version:ii,beans:[US,_S],dynamicBeans:{headerFilterCellCtrl:RS},icons:{filter:"filter",filterActive:"filter"},apiFunctions:{isColumnFilterPresent:BS,getColumnFilterInstance:AS,destroyFilter:IS,setFilterModel:zS,getFilterModel:HS,getColumnFilterModel:OS,setColumnFilterModel:LS,showColumnFilter:VS,hideColumnFilter:NS,getColumnFilterHandler:GS,doFilterAction:$S},dependsOn:[Jx,DS,Xx,MS]};var ek={moduleName:"CustomFilter",version:ii,userComponents:{agReadOnlyFloatingFilter:YS},dependsOn:[tk]};var ik={moduleName:"TextFilter",version:ii,dependsOn:[tk],userComponents:{agTextColumnFilter:{classImp:Nx,params:{useForm:true}},agTextColumnFloatingFilter:qx},dynamicBeans:{agTextColumnFilterHandler:jx}};var sk={moduleName:"NumberFilter",version:ii,dependsOn:[tk],userComponents:{agNumberColumnFilter:{classImp:Px,params:{useForm:true}},agNumberColumnFloatingFilter:Lx},dynamicBeans:{agNumberColumnFilterHandler:Tx}};var ok={moduleName:"DateFilter",version:ii,dependsOn:[tk],userComponents:{agDateColumnFilter:{classImp:ux,params:{useForm:true}},agDateInput:kx,agDateColumnFloatingFilter:Sx},dynamicBeans:{agDateColumnFilterHandler:Cx}};var nk={moduleName:"QuickFilterCore",version:ii,rowModels:["clientSide"],beans:[Qx],dependsOn:[Jx,Xx]};var rk={moduleName:"QuickFilter",version:ii,apiFunctions:{isQuickFilterPresent:Kx,getQuickFilter:_x,resetQuickFilter:Zx},dependsOn:[nk]};var lk={moduleName:"ExternalFilter",version:ii,dependsOn:[Jx]};var ak=`.ag-tooltip{background-color:var(--ag-tooltip-background-color);border:var(--ag-tooltip-border);border-radius:var(--ag-border-radius);color:var(--ag-tooltip-text-color);padding:var(--ag-widget-container-vertical-padding) var(--ag-widget-container-horizontal-padding);position:absolute;white-space:normal;z-index:99999;&:where(.ag-cell-editor-tooltip){background-color:var(--ag-tooltip-error-background-color);border:var(--ag-tooltip-error-border);color:var(--ag-tooltip-error-text-color);font-weight:500}}.ag-tooltip-custom{position:absolute;z-index:99999}.ag-tooltip-custom:where(:not(.ag-tooltip-interactive)),.ag-tooltip:where(:not(.ag-tooltip-interactive)){pointer-events:none}.ag-tooltip-animate{transition:opacity 1s;&:where(.ag-tooltip-hiding){opacity:0}}`;var hk=(t,e,i)=>{const{editModelSvc:s}=t;const o=s?.getCellValidationModel()?.getCellValidation(e)?.errorMessages;const n=s?.getRowValidationModel().getRowValidation(e)?.errorMessages;const r=o||n;return r?.length?r.join(i("tooltipValidationErrorSeparator",". ")):void 0};var ck=class extends ge{constructor(){super(...arguments);this.beanName="tooltipSvc"}setupHeaderTooltip(t,e,i,s){if(t){e.destroyBean(t)}const o=this.gos;const n=iS(o);const{column:r,eGui:l}=e;const a=r.getColDef();if(!s&&n&&!a.headerComponent){s=Pt((()=>l.querySelector(".ag-header-cell-text")))}const h="header";const c="header";const u=this.beans.colNames.getDisplayNameForColumn(r,c,true);const d=i??u;const f={getGui:()=>l,getLocation:()=>h,getTooltipValue:()=>i??a?.headerTooltipValueGetter?.(Rs(o,{location:h,colDef:a,column:r,value:d,valueFormatted:u}))??a?.headerTooltip,shouldDisplayTooltip:s,getAdditionalParams:()=>({column:r,colDef:r.getColDef()})};let g=this.createTooltipFeature(f);if(g){g=e.createBean(g);e.setRefreshFunction("tooltip",(()=>g.refreshTooltip()))}return g}setupHeaderGroupTooltip(t,e,i,s){if(t){e.destroyBean(t)}const o=this.gos;const n=iS(o);const{column:r,eGui:l}=e;const a=r.getColGroupDef();if(!s&&n&&!a?.headerGroupComponent){s=Pt((()=>l.querySelector(".ag-header-group-text")))}const h="headerGroup";const c="header";const u=this.beans.colNames.getDisplayNameForColumnGroup(r,c);const d=i??u;const f={getGui:()=>l,getLocation:()=>h,getTooltipValue:()=>i??a?.headerTooltipValueGetter?.(Rs(o,{location:h,colDef:a,column:r,value:d,valueFormatted:u}))??a?.headerTooltip,shouldDisplayTooltip:s,getAdditionalParams:()=>{const t={column:r};if(a){t.colDef=a}return t}};const g=this.createTooltipFeature(f);return g?e.createBean(g):g}enableCellTooltipFeature(t,e,s){const{beans:o}=this;const{gos:n,editSvc:r}=o;const{column:l,rowNode:a}=t;let h="cell";const c=()=>{const e=!!r?.isEditing(t);const s=!e&&hk(o,t,this.getLocaleTextFunc());if(s){h="cellEditor";return s}h="cell";const c=l.getColDef();const u=a.data;if(c.tooltipField&&i(u)){return om(u,c.tooltipField,l.isTooltipFieldContainsDots())}const d=c.tooltipValueGetter;if(d){return d(Rs(n,{location:"cell",colDef:l.getColDef(),column:l,rowIndex:t.cellPosition.rowIndex,node:a,data:a.data,value:t.value,valueFormatted:t.valueFormatted}))}return null};const u=iS(n);if(!s){if(u&&!t.isCellRenderer()){s=()=>{const e=!!r?.isEditing(t);const i=!e&&hk(o,t,this.getLocaleTextFunc());if(i){return true}const s=l.isTooltipEnabled();if(!s){return false}const n=Pt((()=>{const e=t.eGui;return e.children.length===0?e:e.querySelector(".ag-cell-value")}));return!e&&n()}}else{s=()=>!r?.isEditing(t)}}const d={getGui:()=>t.eGui,getLocation:()=>h,getTooltipValue:e!=null?()=>e:c,shouldDisplayTooltip:s,getAdditionalParams:()=>({column:l,colDef:l.getColDef(),rowIndex:t.cellPosition.rowIndex,node:a,data:a.data,valueFormatted:t.valueFormatted})};return this.createTooltipFeature(d,o)}setupFullWidthRowTooltip(t,e,i,s){const o={getGui:()=>e.getFullWidthElement(),getTooltipValue:()=>i,getLocation:()=>"fullWidthRow",shouldDisplayTooltip:s};const n=this.beans;const r=n.context;if(t){e.destroyBean(t,r)}const l=this.createTooltipFeature(o,n);if(!l){return}return e.createBean(l,r)}setupCellEditorTooltip(t,e){const{beans:i}=this;const{context:s}=i;const o=e.getValidationElement?.(true)||!e.isPopup?.()&&t.eGui;if(!o){return}const n={getGui:()=>o,getTooltipValue:()=>hk(i,t,this.getLocaleTextFunc()),getLocation:()=>"cellEditor",shouldDisplayTooltip:()=>{const{editModelSvc:t}=i;const e=t?.getRowValidationModel()?.getRowValidationMap();const s=t?.getCellValidationModel()?.getCellValidationMap();const o=!!e&&e.size>0;const n=!!s&&s.size>0;return o||n}};const r=this.createTooltipFeature(n,i);if(!r){return}return t.createBean(r,s)}initCol(t){const{colDef:e}=t;t.tooltipEnabled=i(e.tooltipField)||i(e.tooltipValueGetter)||i(e.tooltipComponent)}createTooltipFeature(t,e){return this.beans.registry.createDynamicBean("tooltipFeature",false,t,e)}};var uk=class extends Fa{createTooltipComp(t,e){const i=Wn(this.beans.userCompFactory,t);i?.newAgStackInstance().then(e)}setEventHandlers(t){[this.onColumnMovedEventCallback]=this.addManagedEventListeners({columnMoved:t})}clearEventHandlers(){this.onColumnMovedEventCallback?.();this.onColumnMovedEventCallback=void 0}};var dk={moduleName:"Tooltip",version:ii,beans:[ck],dynamicBeans:{tooltipFeature:ya,highlightTooltipFeature:Ma,tooltipStateManager:uk},userComponents:{agTooltipComponent:Ba},dependsOn:[DS],css:[ak]};var fk=class{constructor(t){this.cellValueChanges=t}};var gk=class extends fk{constructor(t,e,i,s){super(t);this.initialRange=e;this.finalRange=i;this.ranges=s}};var pk=10;var mk=class{constructor(t){this.actionStack=[];this.maxStackSize=t?t:pk;this.actionStack=new Array(this.maxStackSize)}pop(){return this.actionStack.pop()}push(t){const e=t.cellValueChanges&&t.cellValueChanges.length>0;if(!e){return}if(this.actionStack.length===this.maxStackSize){this.actionStack.shift()}this.actionStack.push(t)}clear(){this.actionStack=[]}getCurrentStackSize(){return this.actionStack.length}};var vk=class extends ge{constructor(){super(...arguments);this.beanName="undoRedo";this.cellValueChanges=[];this.activeCellEdit=null;this.activeRowEdit=null;this.isPasting=false;this.isRangeInAction=false;this.batchEditing=false;this.bulkEditing=false;this.onCellValueChanged=t=>{const e={column:t.column,rowIndex:t.rowIndex,rowPinned:t.rowPinned};const i=this.activeCellEdit!==null&&Zf(this.activeCellEdit,e);const s=this.activeRowEdit!==null&&Yf(this.activeRowEdit,e);const o=i||s||this.isPasting||this.isRangeInAction;if(!o){return}const{rowPinned:n,rowIndex:r,column:l,oldValue:a,value:h}=t;const c={rowPinned:n,rowIndex:r,columnId:l.getColId(),newValue:h,oldValue:a};this.cellValueChanges.push(c)};this.clearStacks=()=>{this.undoStack.clear();this.redoStack.clear()}}postConstruct(){const{gos:t,ctrlsSvc:e}=this.beans;if(!t.get("undoRedoCellEditing")){return}const i=t.get("undoRedoCellEditingLimit");if(i<=0){return}this.undoStack=new mk(i);this.redoStack=new mk(i);this.addListeners();const s=this.clearStacks.bind(this);this.addManagedEventListeners({cellValueChanged:this.onCellValueChanged.bind(this),modelUpdated:t=>{if(!t.keepUndoRedoStack){this.clearStacks()}},columnPivotModeChanged:s,newColumnsLoaded:s,columnGroupOpened:s,columnRowGroupChanged:s,columnMoved:s,columnPinned:s,columnVisible:s,rowDragEnd:s});e.whenReady(this,(t=>{this.gridBodyCtrl=t.gridBodyCtrl}))}getCurrentUndoStackSize(){return this.undoStack?.getCurrentStackSize()??0}getCurrentRedoStackSize(){return this.redoStack?.getCurrentStackSize()??0}undo(t){const{eventSvc:e,undoStack:i,redoStack:s}=this;e.dispatchEvent({type:"undoStarted",source:t});const o=this.undoRedo(i,s,"initialRange","oldValue","undo");e.dispatchEvent({type:"undoEnded",source:t,operationPerformed:o})}redo(t){const{eventSvc:e,undoStack:i,redoStack:s}=this;e.dispatchEvent({type:"redoStarted",source:t});const o=this.undoRedo(s,i,"finalRange","newValue","redo");e.dispatchEvent({type:"redoEnded",source:t,operationPerformed:o})}undoRedo(t,e,i,s,o){if(!t){return false}const n=t.pop();if(!n?.cellValueChanges){return false}this.processAction(n,(t=>t[s]),o);if(n instanceof gk){this.processRange(n.ranges||[n[i]])}else{this.processCell(n.cellValueChanges)}e.push(n);return true}processAction(t,e,i){for(const s of t.cellValueChanges){const{rowIndex:t,rowPinned:o,columnId:n}=s;const r={rowIndex:t,rowPinned:o};const l=tg(this.beans,r);if(!l.displayed){continue}l.setDataValue(n,e(s),i)}}processRange(t){let e;const i=this.beans.rangeSvc;i.removeAllCellRanges(true);t.forEach(((s,o)=>{if(!s){return}const n=s.startRow;const r=s.endRow;if(o===t.length-1){e={rowPinned:n.rowPinned,rowIndex:n.rowIndex,columnId:s.startColumn.getColId()};this.setLastFocusedCell(e)}const l={rowStartIndex:n.rowIndex,rowStartPinned:n.rowPinned,rowEndIndex:r.rowIndex,rowEndPinned:r.rowPinned,columnStart:s.startColumn,columns:s.columns};i.addCellRange(l)}))}processCell(t){const e=t[0];const{rowIndex:i,rowPinned:s}=e;const o={rowIndex:i,rowPinned:s};const n=tg(this.beans,o);const r={rowPinned:e.rowPinned,rowIndex:n.rowIndex,columnId:e.columnId};this.setLastFocusedCell(r)}setLastFocusedCell(t){const{rowIndex:e,columnId:i,rowPinned:s}=t;const{colModel:o,focusSvc:n,rangeSvc:r}=this.beans;const l=o.getCol(i);if(!l){return}const{scrollFeature:a}=this.gridBodyCtrl;a.ensureIndexVisible(e);a.ensureColumnVisible(l);const h={rowIndex:e,column:l,rowPinned:s};n.setFocusedCell({...h,forceBrowserFocus:true});r?.setRangeToCell(h)}addListeners(){this.addManagedEventListeners({rowEditingStarted:t=>{this.activeRowEdit={rowIndex:t.rowIndex,rowPinned:t.rowPinned}},rowEditingStopped:()=>{const t=new fk(this.cellValueChanges);this.pushActionsToUndoStack(t);this.activeRowEdit=null},cellEditingStarted:t=>{this.activeCellEdit={column:t.column,rowIndex:t.rowIndex,rowPinned:t.rowPinned}},cellEditingStopped:t=>{this.activeCellEdit=null;const e=t.valueChanged&&!this.activeRowEdit&&!this.isPasting&&!this.isRangeInAction;if(e){const t=new fk(this.cellValueChanges);this.pushActionsToUndoStack(t)}},pasteStart:()=>{this.isPasting=true},pasteEnd:()=>{const t=new fk(this.cellValueChanges);this.pushActionsToUndoStack(t);this.isPasting=false},fillStart:()=>{this.isRangeInAction=true},fillEnd:t=>{const e=new gk(this.cellValueChanges,t.initialRange,t.finalRange);this.pushActionsToUndoStack(e);this.isRangeInAction=false},keyShortcutChangedCellStart:()=>{this.isRangeInAction=true},keyShortcutChangedCellEnd:()=>{let t;const{rangeSvc:e,gos:i}=this.beans;if(e&&ns(i)){t=new gk(this.cellValueChanges,void 0,void 0,[...e.getCellRanges()])}else{t=new fk(this.cellValueChanges)}this.pushActionsToUndoStack(t);this.isRangeInAction=false},batchEditingStarted:()=>this.startBigChange("batchEditing"),batchEditingStopped:({changes:t})=>this.stopBigChange("batchEditing",t),bulkEditingStarted:()=>this.startBigChange("bulkEditing"),bulkEditingStopped:({changes:t})=>this.stopBigChange("bulkEditing",t)})}startBigChange(t){this.updateBigChange(t,true)}updateBigChange(t,e){if(t==="bulkEditing"){this.bulkEditing=e}else{this.batchEditing=e}}stopBigChange(t,e){if(t==="bulkEditing"&&!this.bulkEditing||t==="batchEditing"&&!this.batchEditing){return}this.updateBigChange(t,false);if(e?.length===0){return}const i=new fk(e??[]);this.pushActionsToUndoStack(i);this.cellValueChanges=[]}pushActionsToUndoStack(t){this.undoStack.push(t);this.cellValueChanges=[];this.redoStack.clear()}};var wk=`.ag-cell-inline-editing{border:var(--ag-cell-editing-border)!important;border-radius:var(--ag-border-radius);box-shadow:var(--ag-cell-editing-shadow);padding:0;z-index:1;.ag-cell-edit-wrapper,.ag-cell-editor,.ag-cell-wrapper,:where(.ag-cell-editor) .ag-input-field-input,:where(.ag-cell-editor) .ag-wrapper{height:100%;line-height:normal;min-height:100%;width:100%}&.ag-cell-editing-error{border-color:var(--ag-invalid-color)!important}}:where(.ag-popup-editor) .ag-large-text{background-color:var(--ag-background-color);border-radius:var(--ag-border-radius);box-shadow:var(--ag-dropdown-shadow);padding:0}.ag-large-text-input{display:block;height:auto;padding:var(--ag-cell-horizontal-padding)}:where(.ag-rtl .ag-large-text-input) textarea{resize:none}:where(.ag-ltr) .ag-checkbox-edit{padding-left:var(--ag-cell-horizontal-padding)}:where(.ag-rtl) .ag-checkbox-edit{padding-right:var(--ag-cell-horizontal-padding)}:where(.ag-row.ag-row-editing-invalid .ag-cell-inline-editing){opacity:.8}.ag-popup-editor{position:absolute;-webkit-user-select:none;-moz-user-select:none;user-select:none}`;var Ck={tag:"div",cls:"ag-cell-wrapper ag-cell-edit-wrapper ag-checkbox-edit",children:[{tag:"ag-checkbox",ref:"eEditor",role:"presentation"}]};var bk=class extends Yu{constructor(){super(Ck,[qr]);this.eEditor=jo}initialiseEditor(t){const e=t.value??void 0;const i=this.eEditor;i.setValue(e);const s=i.getInputElement();s.setAttribute("tabindex","-1");this.setAriaLabel(e);this.addManagedListeners(i,{fieldValueChanged:t=>this.setAriaLabel(t.selected)})}getValue(){return this.eEditor.getValue()}focusIn(){this.eEditor.getFocusableElement().focus()}afterGuiAttached(){if(this.params.cellStartedEdit){this.focusIn()}}isPopup(){return false}setAriaLabel(t){const e=this.getLocaleTextFunc();const i=st(e,t);const s=e("ariaToggleCellValue","Press SPACE to toggle cell value");this.eEditor.setInputAriaLabel(`${s} (${i})`)}getValidationElement(t){return t?this.params.eGridCell:this.eEditor.getInputElement()}getValidationErrors(){const{params:t}=this;const{getValidationErrors:e}=t;const i=this.getValue();if(!e){return null}return e({value:i,internalErrors:null,cellEditorParams:t})}};var yk=class extends Yu{constructor(t){super();this.cellEditorInput=t;this.eEditor=jo}initialiseEditor(t){const{cellEditorInput:e}=this;this.setTemplate({tag:"div",cls:"ag-cell-edit-wrapper",children:[e.getTemplate()]},e.getAgComponents());const{eEditor:i}=this;const{cellStartedEdit:s,eventKey:o,suppressPreventDefault:n}=t;i.getInputElement().setAttribute("title","");e.init(i,t);let r;let l=true;if(s){this.focusAfterAttached=true;if(o===Zn.BACKSPACE||o===Zn.DELETE){r=""}else if(o&&o.length===1){if(n){l=false}else{r=o}}else{r=e.getStartValue();if(o!==Zn.F2){this.highlightAllOnFocus=true}}}else{this.focusAfterAttached=false;r=e.getStartValue()}if(l&&r!=null){i.setStartValue(r)}this.addGuiEventListener("keydown",(t=>{const{key:e}=t;if(e===Zn.PAGE_UP||e===Zn.PAGE_DOWN){t.preventDefault()}}))}afterGuiAttached(){const t=this.getLocaleTextFunc();const e=this.eEditor;e.setInputAriaLabel(t("ariaInputEditor","Input Editor"));if(!this.focusAfterAttached){return}if(!or()){e.getFocusableElement().focus()}const i=e.getInputElement();if(this.highlightAllOnFocus){i.select()}else{this.cellEditorInput.setCaret?.()}}focusIn(){const{eEditor:t}=this;const e=t.getFocusableElement();const i=t.getInputElement();e.focus();i.select()}getValue(){return this.cellEditorInput.getValue()}isPopup(){return false}getValidationElement(){return this.eEditor.getInputElement()}getValidationErrors(){return this.cellEditorInput.getValidationErrors()}};var Sk={tag:"ag-input-date-field",ref:"eEditor",cls:"ag-cell-editor"};var xk=class{constructor(t,e){this.getDataTypeService=t;this.getLocaleTextFunc=e}getTemplate(){return Sk}getAgComponents(){return[ol]}init(t,e){this.eEditor=t;this.params=e;const{min:i,max:s,step:o,colDef:n}=e;if(i!=null){t.setMin(i)}if(s!=null){t.setMax(s)}if(o!=null){t.setStep(o)}this.includeTime=e.includeTime??this.getDataTypeService()?.getDateIncludesTimeFlag?.(n.cellDataType);if(this.includeTime!=null){t.setIncludeTime(this.includeTime)}}getValidationErrors(){const t=this.eEditor.getInputElement();const e=t.valueAsDate;const{params:i}=this;const{min:s,max:o,getValidationErrors:n}=i;let r=[];const l=this.getLocaleTextFunc();if(e instanceof Date&&!isNaN(e.getTime())){if(s){const t=s instanceof Date?s:new Date(s);if(et){const e=t.toLocaleDateString();r.push(l("maxDateValidation",`Date must be before ${e}`,[e]))}}}if(!r.length){r=null}if(n){return n({value:e,cellEditorParams:i,internalErrors:r})}return r}getValue(){const{eEditor:t,params:e}=this;const s=t.getDate();if(!i(s)&&!i(e.value)){return e.value}return s??null}getStartValue(){const{value:t}=this.params;if(!(t instanceof Date)){return void 0}return vr(t,this.includeTime??false)}};var kk=class extends yk{constructor(){super(new xk((()=>this.beans.dataTypeSvc),(()=>this.getLocaleTextFunc())))}};var Rk={tag:"ag-input-date-field",ref:"eEditor",cls:"ag-cell-editor"};var Ek=class{constructor(t,e){this.getDataTypeService=t;this.getLocaleTextFunc=e}getTemplate(){return Rk}getAgComponents(){return[ol]}init(t,e){this.eEditor=t;this.params=e;const{min:i,max:s,step:o,colDef:n}=e;if(i!=null){t.setMin(i)}if(s!=null){t.setMax(s)}if(o!=null){t.setStep(o)}this.includeTime=e.includeTime??this.getDataTypeService()?.getDateIncludesTimeFlag?.(n.cellDataType);if(this.includeTime!=null){t.setIncludeTime(this.includeTime)}}getValidationErrors(){const{eEditor:t,params:e}=this;const i=t.getInputElement().value;const s=this.formatDate(this.parseDate(i??void 0));const{min:o,max:n,getValidationErrors:r}=e;let l=[];if(s){const t=new Date(s);const e=this.getLocaleTextFunc();if(o){const i=new Date(o);if(ti){const t=i.toLocaleDateString();l.push(e("maxDateValidation",`Date must be before ${t}`,[t]))}}}if(!l.length){l=null}if(r){return r({value:this.getValue(),cellEditorParams:e,internalErrors:l})}return l}getValue(){const{params:t,eEditor:e}=this;const s=this.formatDate(e.getDate());if(!i(s)&&!i(t.value)){return t.value}return t.parseValue(s??"")}getStartValue(){return vr(this.parseDate(this.params.value??void 0)??null,this.includeTime??false)}parseDate(t){const e=this.getDataTypeService();return e?e.getDateParserFunction(this.params.column)(t):Rr(t)??void 0}formatDate(t){const e=this.getDataTypeService();return e?e.getDateFormatterFunction(this.params.column)(t):vr(t??null,this.includeTime??false)??void 0}};var Fk=class extends yk{constructor(){super(new Ek((()=>this.beans.dataTypeSvc),(()=>this.getLocaleTextFunc())))}};var Mk={tag:"div",cls:"ag-large-text",children:[{tag:"ag-input-text-area",ref:"eEditor",cls:"ag-large-text-input"}]};var Pk=class extends Yu{constructor(){super(Mk,[tl]);this.eEditor=jo}initialiseEditor(t){const{eEditor:e}=this;const{cellStartedEdit:i,eventKey:s,maxLength:o,cols:n,rows:r}=t;this.focusAfterAttached=i;e.getInputElement().setAttribute("title","");e.setMaxLength(o||200).setCols(n||60).setRows(r||10);let l;if(i){this.focusAfterAttached=true;if(s===Zn.BACKSPACE||s===Zn.DELETE){l=""}else if(s&&s.length===1){l=s}else{l=this.getStartValue(t);if(s!==Zn.F2){this.highlightAllOnFocus=true}}}else{this.focusAfterAttached=false;l=this.getStartValue(t)}if(l!=null){e.setValue(l,true)}this.addGuiEventListener("keydown",this.onKeyDown.bind(this));this.activateTabIndex()}getStartValue(t){const{value:e}=t;return e?.toString()??e}onKeyDown(t){const e=t.key;if(e===Zn.LEFT||e===Zn.UP||e===Zn.RIGHT||e===Zn.DOWN||t.shiftKey&&e===Zn.ENTER){t.stopPropagation()}}afterGuiAttached(){const{eEditor:t,focusAfterAttached:e,highlightAllOnFocus:i}=this;const s=this.getLocaleTextFunc();t.setInputAriaLabel(s("ariaInputEditor","Input Editor"));if(e){t.getFocusableElement().focus();if(i){t.getInputElement().select()}}}getValue(){const{eEditor:t,params:e}=this;const{value:s}=e;const o=t.getValue();if(!i(o)&&!i(s)){return s}return e.parseValue(o)}getValidationElement(){return this.eEditor.getInputElement()}getValidationErrors(){const{params:t}=this;const{maxLength:e,getValidationErrors:i}=t;const s=this.getLocaleTextFunc();const o=this.getValue();let n=[];if(typeof o==="string"&&e!=null&&o.length>e){n.push(s("maxLengthValidation",`Must be ${e} characters or fewer.`,[String(e)]))}if(!n.length){n=null}if(i){return i({value:o,internalErrors:n,cellEditorParams:t})}return n}};var Dk={tag:"ag-input-number-field",ref:"eEditor",cls:"ag-cell-editor"};var Tk=class{constructor(t){this.getLocaleTextFunc=t}getTemplate(){return Dk}getAgComponents(){return[il]}init(t,e){this.eEditor=t;this.params=e;const{max:i,min:s,precision:o,step:n}=e;if(i!=null){t.setMax(i)}if(s!=null){t.setMin(s)}if(o!=null){t.setPrecision(o)}if(n!=null){t.setStep(n)}const r=t.getInputElement();if(e.preventStepping){t.addManagedElementListeners(r,{keydown:this.preventStepping})}else if(e.showStepperButtons){r.classList.add("ag-number-field-input-stepper")}}getValidationErrors(){const{params:t}=this;const{min:e,max:i,getValidationErrors:s}=t;const o=this.eEditor.getInputElement();const n=o.valueAsNumber;const r=this.getLocaleTextFunc();let l=[];if(typeof n==="number"){if(e!=null&&ni){l.push(r("maxValueValidation",`Must be less than or equal to ${i}.`,[String(i)]))}}if(!l.length){l=null}if(s){return s({value:n,cellEditorParams:t,internalErrors:l})}return l}preventStepping(t){if(t.key===Zn.UP||t.key===Zn.DOWN){t.preventDefault()}}getValue(){const{eEditor:t,params:e}=this;const s=t.getValue();if(!i(s)&&!i(e.value)){return e.value}let o=e.parseValue(s);if(o==null){return o}if(typeof o==="string"){if(o===""){return null}o=Number(o)}return isNaN(o)?null:o}getStartValue(){return this.params.value}setCaret(){if(or()){this.eEditor.getInputElement().focus({preventScroll:true})}}};var Bk=class extends yk{constructor(){super(new Tk((()=>this.getLocaleTextFunc())))}};var Ak={tag:"div",cls:"ag-cell-edit-wrapper",children:[{tag:"ag-select",ref:"eEditor",cls:"ag-cell-editor"}]};var Ik=class extends Yu{constructor(){super(Ak,[pl]);this.eEditor=jo;this.startedByEnter=false}wireBeans(t){this.valueSvc=t.valueSvc}initialiseEditor(t){this.focusAfterAttached=t.cellStartedEdit;const{eEditor:e,valueSvc:i,gos:o}=this;const{values:n,value:r,eventKey:l}=t;if(s(n)){Ci(58);return}this.startedByEnter=l!=null?l===Zn.ENTER:false;let a=false;n.forEach((s=>{const o={value:s};const n=i.formatValue(t.column,null,s);const l=n!==null&&n!==void 0;o.text=l?n:s;e.addOption(o);a=a||r===s}));if(a){e.setValue(t.value,true)}else if(t.values.length){e.setValue(t.values[0],true)}const{valueListGap:h,valueListMaxWidth:c,valueListMaxHeight:u}=t;if(h!=null){e.setPickerGap(h)}if(u!=null){e.setPickerMaxHeight(u)}if(c!=null){e.setPickerMaxWidth(c)}if(o.get("editType")!=="fullRow"){this.addManagedListeners(this.eEditor,{selectedItem:()=>t.stopEditing()})}}afterGuiAttached(){if(this.focusAfterAttached){this.eEditor.getFocusableElement().focus()}if(this.startedByEnter){setTimeout((()=>{if(this.isAlive()){this.eEditor.showPicker()}}))}}focusIn(){this.eEditor.getFocusableElement().focus()}getValue(){return this.eEditor.getValue()}isPopup(){return false}getValidationElement(){return this.eEditor.getAriaElement()}getValidationErrors(){const{params:t}=this;const{values:e,getValidationErrors:i}=t;const s=this.getValue();let o=[];if(e&&!e.includes(s)){const t=this.getLocaleTextFunc();o.push(t("invalidSelectionValidation","Invalid selection."))}else{o=null}if(i){return i({value:s,internalErrors:o,cellEditorParams:t})}return o}};var zk={tag:"ag-input-text-field",ref:"eEditor",cls:"ag-cell-editor"};var Hk=class{constructor(t){this.getLocaleTextFunc=t}getTemplate(){return zk}getAgComponents(){return[Jr]}init(t,e){this.eEditor=t;this.params=e;const i=e.maxLength;if(i!=null){t.setMaxLength(i)}}getValidationErrors(){const{params:t}=this;const{maxLength:e,getValidationErrors:i}=t;const s=this.getValue();const o=this.getLocaleTextFunc();let n=[];if(e!=null&&typeof s==="string"&&s.length>e){n.push(o("maxLengthValidation",`Must be ${e} characters or fewer.`,[String(e)]))}if(!n.length){n=null}if(i){return i({value:s,cellEditorParams:t,internalErrors:n})}return n}getValue(){const{eEditor:t,params:e}=this;const s=t.getValue();if(!i(s)&&!i(e.value)){return e.value}return e.parseValue(s)}getStartValue(){const t=this.params;const e=t.useFormatter||t.column.getColDef().refData;return e?t.formatValue(t.value):t.value}setCaret(){if(or()){this.eEditor.getInputElement().focus({preventScroll:true})}const t=this.eEditor;const e=t.getValue();const s=i(e)&&e.length||0;if(s){t.getInputElement().setSelectionRange(s,s)}}};var Ok=class extends yk{constructor(){super(new Hk((()=>this.getLocaleTextFunc())))}};function Lk(t){return t.ctrlsSvc.getScrollFeature().getVScrollPosition()}function Vk(t){return t.ctrlsSvc.getScrollFeature().getHScrollPosition()}function Nk(t,e,i="auto"){t.frameworkOverrides.wrapIncoming((()=>t.ctrlsSvc.getScrollFeature().ensureColumnVisible(e,i)),"ensureVisible")}function Gk(t,e,i){t.frameworkOverrides.wrapIncoming((()=>t.ctrlsSvc.getScrollFeature().ensureIndexVisible(e,i)),"ensureVisible")}function $k(t,e,i=null){t.frameworkOverrides.wrapIncoming((()=>t.ctrlsSvc.getScrollFeature().ensureNodeVisible(e,i)),"ensureVisible")}function Wk(t){t.undoRedo?.undo("api")}function Uk(t){t.undoRedo?.redo("api")}function jk(t,e){return t.editModelSvc?.getEditRowDataValue(e,{checkSiblings:true})}function qk(t){const e=t.editModelSvc?.getEditMap();const i=[];e?.forEach(((t,e)=>{const{rowIndex:s,rowPinned:o}=e;t.forEach(((t,e)=>{const{editorValue:n,pendingValue:r,sourceValue:l,state:a}=t;const h=qC(t);let c=n??r;if(c===$C){c=void 0}const u={newValue:c,oldValue:l,state:a,column:e,colId:e.getColId(),colKey:e.getColId(),rowIndex:s,rowPinned:o};const d=a==="changed"&&h;const f=a==="editing";if(f||d){i.push(u)}}))}));return i}function Kk(t,e=false){const{editSvc:i}=t;if(i?.isBatchEditing()){if(e){for(const e of t.editModelSvc?.getEditPositions()??[]){if(e.state==="editing"){i.revertSingleCellEdit(e)}}}else{XC(t,{persist:true})}ib(t,void 0,{cancel:e})}else{i?.stopEditing(void 0,{cancel:e,source:"edit",forceStop:!e,forceCancel:e})}}function _k(t,e){const i=LC(t,e);return t.editSvc?.isEditing(i)??false}function Zk(t,e){const{key:i,colKey:s,rowIndex:o,rowPinned:n}=e;const{editSvc:r,colModel:l}=t;const a=l.getCol(s);if(!a){Ci(12,{colKey:s});return}const h={rowIndex:o,rowPinned:n||null,column:a};const c=tg(t,h);if(!c){Ci(290,{rowIndex:o,rowPinned:n});return}if(!a.isCellEditable(c)){return}const u=n==null;if(u){Gk(t,o)}Nk(t,s);r?.startEditing({rowNode:c,column:a},{event:i?new KeyboardEvent("keydown",{key:i}):void 0,source:"api"})}function Qk(t){return t.editSvc?.validateEdit()||null}function Yk(t){return t.undoRedo?.getCurrentUndoStackSize()??0}function Jk(t){return t.undoRedo?.getCurrentRedoStackSize()??0}var Xk={tag:"div",cls:"ag-popup-editor",attrs:{tabindex:"-1"}};var tR=class extends Qn{constructor(t){super(Xk);this.params=t}postConstruct(){Li(this.gos,this.getGui(),"popupEditorWrapper",true);this.addKeyDownListener()}addKeyDownListener(){const t=this.getGui();const e=this.params;const i=t=>{if(!dc(this.gos,t,e.node,e.column,true)){e.onKeyDown(t)}};this.addManagedElementListeners(t,{keydown:i})}};function eR(t,{column:e},i,s,o="ui"){if(i instanceof KeyboardEvent&&(i.key===Zn.TAB||i.key===Zn.ENTER||i.key===Zn.F2||i.key===Zn.BACKSPACE&&s)){return true}const n=i?.shiftKey&&t.rangeSvc?.getCellRanges().length!=0;if(n){return false}const r=e?.getColDef();const l=iR(t.gos,r);const a=i?.type;if(a==="click"&&i?.detail===1&&l===1){return true}if(a==="dblclick"&&i?.detail===2&&l===2){return true}if(o==="api"){return s??false}return false}function iR(t,e){if(t.get("suppressClickEdit")===true){return 0}if(t.get("singleClickEdit")===true){return 1}if(e?.singleClickEdit){return 1}return 2}function sR(t,{rowNode:e,column:i},s="ui"){const o=i.getColDef().editable;const n=t.editModelSvc;return i.isColumnFunc(e,o)||!!n&&n.hasEdits({rowNode:e,column:i},{withOpenEditor:true})}function oR(t,e,i="ui"){const s=sR(t,e,i);if(s===true||i==="ui"){return s}const o=t.colModel.getCols();return o.some((s=>sR(t,{rowNode:e.rowNode,column:s},i)))}var nR=(t,e=false)=>{if(t!==void 0){return qC(t)||e&&t.state==="editing"}};function rR(t,e,i=false){return nR(t.editModelSvc?.getEdit(e),i)}var lR=(t,e,i)=>{if(!t){return}for(let s=0,o=t.length;s{const e={rowNode:s,column:t};return rR(i,e,true)||aR(i,e)||hR(i,e)}));this.applyStyle(n,t);return}this.applyStyle(n)}applyStyle(t=false,e=false){const i=this.editSvc?.isBatchEditing()??false;const s=this.gos.get("editType")==="fullRow";this.rowCtrl?.forEachGui(void 0,(({rowComp:o})=>{o.toggleCss("ag-row-editing",s&&e);o.toggleCss("ag-row-batch-edit",s&&e&&i);o.toggleCss("ag-row-inline-editing",e);o.toggleCss("ag-row-not-inline-editing",!e);o.toggleCss("ag-row-editing-invalid",s&&e&&t)}))}};var dR=({rowModel:t,pinnedRowModel:e,editModelSvc:i},s)=>{const o=new Set;t.forEachNode((t=>s.has(t)&&o.add(t)));e?.forEachPinnedRow("top",(t=>s.has(t)&&o.add(t)));e?.forEachPinnedRow("bottom",(t=>s.has(t)&&o.add(t)));for(const t of s){if(!o.has(t)){i.removeEdits({rowNode:t})}}return o};var fR=({editModelSvc:t},e,i)=>{for(const s of e){t?.getEditRow(s)?.forEach(((e,o)=>!i.has(o)&&t.removeEdits({rowNode:s,column:o})))}};var gR=t=>()=>{const e=new Set(t.colModel.getCols());const i=t.editModelSvc.getEditMap(true);const s=new Set(i.keys());fR(t,dR(t,s),e)};var pR=new Set(["undo","redo","paste","bulk","rangeSvc"]);var mR=new Set(["ui","api"]);var vR={paste:"api",rangeSvc:"api",fillHandle:"api",cellClear:"api",bulk:"api"};var wR=new Set(Object.keys(vR));var CR=new Set(["paste","rangeSvc","renderer","cellClear","redo","undo"]);var bR={cancel:true,source:"api"};var yR={cancel:false,source:"api"};var SR={checkSiblings:true};var xR={force:true,suppressFlash:true};var kR=class extends ge{constructor(){super(...arguments);this.beanName="editSvc";this.batch=false;this.stopping=false;this.committing=false}postConstruct(){const{beans:t}=this;this.model=t.editModelSvc;this.valueSvc=t.valueSvc;this.rangeSvc=t.rangeSvc;this.addManagedPropertyListener("editType",(({currentValue:t})=>{this.stopEditing(void 0,bR);this.createStrategy(t)}));const e=gR(t);const i=()=>{const e=this.model.getCellValidationModel().getCellValidationMap().size>0;const i=this.model.getRowValidationModel().getRowValidationMap().size>0;if(e||i){this.stopEditing(void 0,bR)}else if(this.isEditing()){if(this.isBatchEditing()){ib(t,this.model.getEditPositions())}else{this.stopEditing(void 0,yR)}}return false};this.addManagedEventListeners({columnPinned:e,columnVisible:e,columnRowGroupChanged:e,rowExpansionStateChanged:e,pinnedRowsChanged:e,displayedRowsChanged:e,sortChanged:i,filterChanged:i,cellFocused:this.onCellFocused.bind(this)})}isBatchEditing(){return this.batch}setBatchEditing(t){if(t){this.batch=true;this.stopEditing(void 0,bR)}else{this.stopEditing(void 0,bR);this.batch=false}}createStrategy(t){const{beans:e,gos:i,strategy:s}=this;const o=ER(i,t);if(s){if(s.beanName===o){return s}this.destroyStrategy()}return this.strategy=this.createOptionalManagedBean(e.registry.createDynamicBean(o,true))}destroyStrategy(){if(!this.strategy){return}this.strategy.destroy();this.strategy=this.destroyBean(this.strategy)}shouldStartEditing(t,e,i,s="ui"){const o=eR(this.beans,t,e,i,s);if(o){this.strategy??(this.strategy=this.createStrategy())}return o}shouldStopEditing(t,e,i="ui"){return this.strategy?.shouldStop(t,e,i)??null}shouldCancelEditing(t,e,i="ui"){return this.strategy?.shouldCancel(t,e,i)??null}validateEdit(){return hb(this.beans)}isEditing(t,e){return this.model.hasEdits(t,e??SR)}isRowEditing(t,e){return(t&&this.model.hasRowEdits(t,e))??false}startEditing(t,e){const{startedEdit:i=true,event:s=null,source:o="ui",ignoreEventKey:n=false,silent:r}=e;this.strategy??(this.strategy=this.createStrategy());if(!this.isCellEditable(t,"api")){return}const l=LC(this.beans,t);if(l&&!l.comp){l.onCompAttachedFuncs.push((()=>this.startEditing(t,e)));return}const a=this.shouldStartEditing(t,s,i,o);if(a===false&&o!=="api"){this.isEditing(t)&&this.stopEditing();return}if(!this.batch&&this.shouldStopEditing(t,void 0,o)&&!e.continueEditing){this.stopEditing(void 0,{source:o})}if(a&&this.isBatchEditing()){this.dispatchBatchEvent("batchEditingStarted",new Map)}this.strategy.start({position:t,event:s,source:o,ignoreEventKey:n,startedEdit:i,silent:r})}stopEditing(t,e){const{event:i,cancel:s,source:o="ui",forceCancel:n,forceStop:r}=e||{};const{beans:l,model:a}=this;if(wR.has(o)){if(this.isBatchEditing()){this.bulkRefresh(t);return false}}const h=this.committing?vR[o]:o;const c=this.committing||this.isEditing(t)||this.isBatchEditing()&&a.hasEdits(t,SR);if(!c||!this.strategy||this.stopping){return false}this.stopping=true;const u=LC(l,t);if(u){u.onEditorAttachedFuncs=[]}let d=a.getEditMap(true);let f=false;const g=!s&&(!!this.shouldStopEditing(t,i,h)||this.committing&&!this.batch)||(r??false);const p=s&&!!this.shouldCancelEditing(t,i,h)||(n??false);if(g||p){XC(l,{persist:true,isCancelling:p||s,isStopping:g});const t=a.getEditMap();const e=this.processEdits(t,s,o);this.strategy?.stop(s,i);for(const t of e){a.clearEditValue(t)}this.bulkRefresh(void 0,d);for(const e of a.getEditPositions(t)){const t=LC(l,e);const i=qC(e);t?.refreshCell({force:true,suppressFlash:!i})}d=t;f||(f=g)}else if(i instanceof KeyboardEvent&&this.batch&&this.strategy?.midBatchInputsAllowed(t)&&this.isEditing(t,{withOpenEditor:true})){const{key:e}=i;const s=e===Zn.ENTER;const o=e===Zn.ESCAPE;const n=e===Zn.TAB;if(s||n||o){if(s||n){XC(l,{persist:true})}else if(o){this.revertSingleCellEdit(u)}if(this.isBatchEditing()){this.strategy?.cleanupEditors()}else{ib(l,a.getEditPositions(),{event:i,cancel:o})}i.preventDefault();this.bulkRefresh(t,d,{suppressFlash:true});d=a.getEditMap()}}else{XC(l,{persist:true});d=a.getEditMap()}if(f&&t){this.model.removeEdits(t)}this.navigateAfterEdit(e,u?.cellPosition);QC(l);if(!this.model.hasEdits()){this.model.getCellValidationModel().clearCellValidationMap();this.model.getRowValidationModel().clearRowValidationMap()}this.bulkRefresh();if(p){this.beans.rowRenderer.refreshRows({rowNodes:Array.from(d.keys())})}if(this.isBatchEditing()){this.beans.rowRenderer.refreshRows({suppressFlash:true,force:true});if(f&&g){this.dispatchBatchEvent("batchEditingStopped",d)}}this.stopping=false;return f}navigateAfterEdit(t,e){if(!t||!e){return}const{event:i,suppressNavigateAfterEdit:s}=t;const o=i instanceof KeyboardEvent;if(!o||s){return}const{key:n,shiftKey:r}=i;const l=this.gos.get("enterNavigatesVerticallyAfterEdit");if(n!==Zn.ENTER||!l){return}const a=r?Zn.UP:Zn.DOWN;this.beans.navigation?.navigateToNextCell(null,a,e,false)}processEdits(t,e=false,i){const s=Array.from(t.keys());const o=this.model.getCellValidationModel().getCellValidationMap().size>0||this.model.getRowValidationModel().getRowValidationMap().size>0;const n=[];for(const r of s){const s=t.get(r);for(const t of s.keys()){const l=s.get(t);const a={rowNode:r,column:t};const h=qC(l);if(!e&&h&&!o){const e=this.setNodeDataValue(r,t,l.pendingValue,void 0,i);if(!e){n.push(a)}}}}return n}setNodeDataValue(t,e,i,s,o="edit"){const{beans:n}=this;const r=LC(n,{rowNode:t,column:e});const l=mR.has(o)?"edit":o;if(r){r.suppressRefreshCell=true}this.commitNextEdit();const a=t.setDataValue(e,i,l);if(r){r.suppressRefreshCell=false}if(s){r?.refreshCell(xR)}return a}setEditMap(t,e){this.strategy??(this.strategy=this.createStrategy());this.strategy?.setEditMap(t,e);this.bulkRefresh();let i=xR;if(e?.forceRefreshOfEditCellsOnly){i={...RR(t),...xR}}this.beans.rowRenderer.refreshCells(i)}dispatchEditValuesChanged({rowNode:t,column:e},i={}){if(!t||!e||!i){return}const{pendingValue:s,sourceValue:o}=i;const{rowIndex:n,rowPinned:r,data:l}=t;this.beans.eventSvc.dispatchEvent({type:"cellEditValuesChanged",node:t,rowIndex:n,rowPinned:r,column:e,source:"api",data:l,newValue:s,oldValue:o,value:s,colDef:e.getColDef()})}bulkRefresh(t={},e,i={}){const{beans:s,gos:o}=this;const{editModelSvc:n,rowModel:r}=s;if(Fi(o)){if(t.rowNode&&t.column){this.refCell(t,this.model.getEdit(t),i)}else if(e){n?.getEditMap(false)?.forEach(((t,e)=>{for(const s of t.keys()){this.refCell({rowNode:e,column:s},t.get(s),i)}}))}}}refCell({rowNode:t,column:e},i,s={}){const{beans:o,gos:n}=this;const r=new Set([t]);const l=new Set;const a=t.pinnedSibling;if(a){r.add(a)}const h=t.sibling;if(h){l.add(h)}let c=t.parent;while(c){if(c.sibling?.footer&&n.get("groupTotalRow")){l.add(c.sibling)}else if(!c.parent&&c.sibling&&n.get("grandTotalRow")){l.add(c.sibling)}else{l.add(c)}c=c.parent}for(const t of r){this.dispatchEditValuesChanged({rowNode:t,column:e},i)}for(const t of r){LC(o,{rowNode:t,column:e})?.refreshCell(s)}for(const t of l){LC(o,{rowNode:t,column:e})?.refreshCell(s)}}stopAllEditing(t=false,e="ui"){if(this.isEditing()){this.stopEditing(void 0,{cancel:t,source:e})}}isCellEditable(t,e="ui"){const{rowNode:i}=t;const{gos:s,beans:o}=this;if(i.group){if(s.get("treeData")){if(!i.data&&!s.get("enableGroupEdit")){return false}}else if(!s.get("enableGroupEdit")){return false}}const n=ER(s)==="fullRow"?oR(o,t,e):sR(o,t,e);if(n){this.strategy??(this.strategy=this.createStrategy())}return n}cellEditingInvalidCommitBlocks(){return this.gos.get("invalidEditValueMode")==="block"}checkNavWithValidation(t,e,i=true){if(this.hasValidationErrors(t)){const s=LC(this.beans,t);if(this.cellEditingInvalidCommitBlocks()){e?.preventDefault?.();if(i){!s?.hasBrowserFocus()&&s?.focusCell();s?.comp?.getCellEditor()?.focusIn?.()}return"block-stop"}s&&this.revertSingleCellEdit(s);return"revert-continue"}return"continue"}revertSingleCellEdit(t,e=false){const i=LC(this.beans,t);if(!i?.comp?.getCellEditor()){return}ib(this.beans,[t],{silent:true});this.model.clearEditValue(t);KC(this.beans,t,{silent:true});lb(this.beans);i?.refreshCell(xR);if(!e){return}i?.focusCell();i?.comp?.getCellEditor()?.focusIn?.()}hasValidationErrors(t){lb(this.beans);const e=LC(this.beans,t);if(e){e.refreshCell(xR);e.rowCtrl.rowEditStyleFeature?.applyRowStyles()}let i=false;if(t?.rowNode){i||(i=this.model.getRowValidationModel().hasRowValidation({rowNode:t.rowNode}));if(t.column){i||(i=this.model.getCellValidationModel().hasCellValidation({rowNode:t.rowNode,column:t.column}))}}else{i||(i=this.model.getCellValidationModel().getCellValidationMap().size>0);i||(i=this.model.getRowValidationModel().getRowValidationMap().size>0)}return i}moveToNextCell(t,e,i,s="ui"){let o;const n=this.isEditing();const r=n&&this.checkNavWithValidation(void 0,i)==="block-stop";if(t instanceof kb&&n){o=this.strategy?.moveToNextEditingCell(t,e,i,s,r)}if(o===null){return o}o=o||!!this.beans.focusSvc.focusedHeader;if(o===false&&!r){this.stopEditing()}return o}getCellDataValue({rowNode:t,column:e},i=true){if(!t||!e){return void 0}let s=this.model.getEdit({rowNode:t,column:e});const o=t.pinnedSibling;if(o){const t=this.model.getEdit({rowNode:o,column:e});if(t){s=t}}const n=i?s?.editorValue??s?.pendingValue:s?.pendingValue;return n===$C||!s?s?.sourceValue??this.valueSvc.getValue(e,t,false,"api"):n}addStopEditingWhenGridLosesFocus(t){NC(this,this.beans,t)}createPopupEditorWrapper(t){return new tR(t)}commitNextEdit(){this.committing=true}setDataValue(t,e,i){try{if((!this.isEditing()||this.committing)&&!CR.has(i)){return}const{beans:s}=this;this.strategy??(this.strategy=this.createStrategy());const o=this.isBatchEditing()?"ui":this.committing?i??"api":"api";if(!i||pR.has(i)){tb(s,t,e,i,void 0,{persist:true});return this.setNodeDataValue(t.rowNode,t.column,e,true,i)}const n=this.model.getEdit(t);if(n){if(n.pendingValue===e){return false}if(n.sourceValue!==e){tb(s,t,e,i,void 0,{persist:true});this.stopEditing(t,{source:o,suppressNavigateAfterEdit:true});return true}if(n.sourceValue===e){s.editModelSvc?.removeEdits(t);this.dispatchEditValuesChanged(t,{...n,pendingValue:e});return true}}tb(s,t,e,i,void 0,{persist:true});this.stopEditing(t,{source:o,suppressNavigateAfterEdit:true});return true}finally{this.committing=false}}handleColDefChanged(t){YC(this.beans,t)}destroy(){this.model.clear();this.destroyStrategy();super.destroy()}prepDetailsDuringBatch(t,e){if(!this.batch){return}const i=this.model.hasRowEdits(t.rowNode,SR);if(!i){return}const{rowNode:s,column:o}=t;const{compDetails:n,valueToDisplay:r}=e;if(n){const{params:t}=n;t.data=this.model.getEditRowDataValue(s,SR);return{compDetails:n}}const l=this.model.getEditRow(t.rowNode,SR);if(r!==void 0&&l?.has(o)){return{valueToDisplay:this.valueSvc.getValue(o,s)}}}cleanupEditors(){this.strategy?.cleanupEditors()}dispatchCellEvent(t,e,i,s){this.strategy?.dispatchCellEvent(t,e,i,s)}dispatchBatchEvent(t,e){this.eventSvc.dispatchEvent(this.createBatchEditEvent(t,e))}createBatchEditEvent(t,e){return Rs(this.gos,{type:t,...t==="batchEditingStopped"?{changes:this.toEventChangeList(e)}:{}})}toEventChangeList(t){return this.model.getEditPositions(t).map((t=>({rowIndex:t.rowNode.rowIndex,rowPinned:t.rowNode.rowPinned,columnId:t.column.getColId(),newValue:t.pendingValue,oldValue:t.sourceValue})))}applyBulkEdit({rowNode:t,column:e},i){if(!i||i.length===0){return}const{beans:s,rangeSvc:o,valueSvc:n}=this;XC(s,{persist:true});const r=this.model.getEditMap(true);const l=r.get(t)?.get(e)?.pendingValue;if(!this.batch){this.eventSvc.dispatchEvent({type:"bulkEditingStarted"})}i.forEach((t=>{o?.forEachRowInRange(t,(e=>{const i=tg(s,e);if(i===void 0){return}const o=r.get(i)??new Map;for(const e of t.columns){if(!e){continue}if(this.isCellEditable({rowNode:i,column:e},"api")){const t=n.getValue(e,i,true,"api");let s=n.parseValue(e,i??null,l,t);if(Number.isNaN(s)){s=null}o.set(e,{editorValue:void 0,pendingValue:s,sourceValue:t,state:"changed",editorState:{isCancelAfterEnd:void 0,isCancelBeforeStart:void 0}})}}if(o.size>0){r.set(i,o)}}));this.setEditMap(r);if(this.batch){this.cleanupEditors();QC(s);this.bulkRefresh();return}this.commitNextEdit();this.stopEditing(void 0,{source:"bulk"});this.eventSvc.dispatchEvent({type:"bulkEditingStopped",changes:this.toEventChangeList(r)})}));this.bulkRefresh();const a=LC(s,{rowNode:t,column:e});if(a){a.focusCell(true)}}createCellStyleFeature(t,e){return new cR(t,e)}createRowStyleFeature(t,e){return new uR(t,e)}setEditingCells(t,e){const{beans:i}=this;const{colModel:s,valueSvc:o}=i;const n=new Map;for(let{colId:r,column:l,colKey:a,rowIndex:h,rowPinned:c,newValue:u,state:d}of t){const t=r?s.getCol(r):a?s.getCol(a):l;if(!t){continue}const f=tg(i,{rowIndex:h,rowPinned:c});if(!f){continue}const g=o.getValue(t,f,true,"api");if(!e?.forceRefreshOfEditCellsOnly&&!qC({pendingValue:u,sourceValue:g})&&d!=="editing"){continue}let p=n.get(f);if(!p){p=new Map;n.set(f,p)}if(u===void 0){u=$C}p.set(t,{editorValue:void 0,pendingValue:u,sourceValue:g,state:d??"changed",editorState:{isCancelAfterEnd:void 0,isCancelBeforeStart:void 0}})}this.setEditMap(n,e)}onCellFocused(t){const e=LC(this.beans,t);if(!e||!this.isEditing(e,SR)){return}const i=this.model.getEdit(e);if(!i||!qC(i)){return}const s=this.getLocaleTextFunc();const o=s("ariaPendingChange","Pending Change");this.beans.ariaAnnounce?.announceValue(o,"pendingChange")}allowedFocusTargetOnValidation(t){return LC(this.beans,t)}};function RR(t){return{rowNodes:t?Array.from(t.keys()):void 0,columns:t?[...new Set(Array.from(t.values()).flatMap((t=>Array.from(t.keys()))))]:void 0}}function ER(t,e){return e??t.get("editType")??"singleCell"}var FR=class extends ge{postConstruct(){this.model=this.beans.editModelSvc;this.editSvc=this.beans.editSvc;this.addManagedEventListeners({cellFocused:this.onCellFocusChanged?.bind(this),cellFocusCleared:this.onCellFocusChanged?.bind(this)})}clearEdits(t){this.model.clearEditValue(t)}onCellFocusChanged(t){let e;const i=t["previousParams"];const{editSvc:s,beans:o}=this;const n=t.type==="cellFocused"?t.sourceEvent:null;if(i){e=LC(o,i)}const{gos:r,editModelSvc:l}=o;const a=t.type==="cellFocusCleared";if(s.isEditing(void 0,{withOpenEditor:true})){const{column:e,rowIndex:h,rowPinned:c}=t;const u={column:e,rowNode:tg(o,{rowIndex:h,rowPinned:c})};const d=r.get("invalidEditValueMode")==="block";if(d){return}const f=!d;const g=!!l?.getCellValidationModel().hasCellValidation(u);const p=f&&g;const m=i||a?s.stopEditing(void 0,{cancel:p,source:a&&f?"api":void 0,event:n}):true;if(!m){if(s.isBatchEditing()){s.cleanupEditors()}else{s.stopEditing(void 0,{source:"api"})}}}e?.refreshCell({suppressFlash:true,force:true})}stop(t,e){const i=this.model.getEditPositions();const s={all:[],pass:[],fail:[]};for(const t of i){s.all.push(t);const e=this.model.getCellValidationModel().getCellValidation(t);if((e?.errorMessages?.length??0)>0){s.fail.push(t);continue}s.pass.push(t)}if(t){for(const e of i){sb(this.beans,e,{cancel:t});this.model.stop(e)}}else{const i=this.processValidationResults(s);if(i.destroy.length>0){for(const s of i.destroy){sb(this.beans,s,{event:e,cancel:t});this.model.stop(s)}}if(i.keep.length>0){for(const t of i.keep){const e=LC(this.beans,t);if(!this.editSvc?.cellEditingInvalidCommitBlocks()){e&&this.editSvc.revertSingleCellEdit(e)}}}}return true}cleanupEditors({rowNode:t}={},e){XC(this.beans,{persist:false});const i=this.model.getEditPositions();const s=[];if(t){for(const e of i){if(e.rowNode!==t){s.push(e)}}}else{for(const t of i){s.push(t)}}ib(this.beans,s);QC(this.beans,e)}setFocusOutOnEditor(t){t.comp?.getCellEditor()?.focusOut?.()}setFocusInOnEditor(t){const e=t.comp;const i=e?.getCellEditor();if(i?.focusIn){i.focusIn()}else{const i=this.beans.gos.get("editType")==="fullRow";t.focusCell(i);t.onEditorAttachedFuncs.push((()=>e?.getCellEditor()?.focusIn?.()))}}setupEditors(t){const{event:e,ignoreEventKey:i=false,startedEdit:s,position:o,cells:n=this.model.getEditPositions()}=t;const r=e instanceof KeyboardEvent&&!i&&e.key||void 0;jC(this.beans,n,o,r,e,s)}dispatchCellEvent(t,e,i,s){const o=LC(this.beans,t);if(o){this.eventSvc.dispatchEvent({...o.createEvent(e??null,i),...s})}}dispatchRowEvent(t,e,i){if(i){return}const s=OC(this.beans,t);if(s){this.eventSvc.dispatchEvent(s.createRowEvent(e))}}shouldStop(t,e,i="ui"){const s=this.editSvc.isBatchEditing();if(s&&i==="api"){return true}if(s&&(i==="ui"||i==="edit")){return false}if(i==="api"){return true}if(e instanceof KeyboardEvent&&!s){return e.key===Zn.ENTER}return null}shouldCancel(t,e,i="ui"){const s=this.editSvc.isBatchEditing();if(e instanceof KeyboardEvent&&!s){const t=e.key===Zn.ESCAPE;if(t){return true}}if(s&&i==="api"){return true}if(i==="api"){return true}return false}setEditMap(t,e){if(!e?.update){this.editSvc.stopEditing(void 0,{cancel:true,source:"api"})}const i=[];t.forEach(((t,e)=>{t.forEach(((t,s)=>{if(t.state==="editing"){i.push({...t,rowNode:e,column:s})}}))}));if(e?.update){t=new Map([...this.model.getEditMap(),...t])}this.model?.setEditMap(t);if(i.length>0){const t=i.at(-1);const e=t.pendingValue===$C?void 0:t.pendingValue;this.start({position:t,event:new KeyboardEvent("keydown",{key:e}),source:"api"});const s=LC(this.beans,t);if(s){this.setFocusInOnEditor(s)}}}destroy(){this.cleanupEditors();super.destroy()}};var MR=class extends FR{constructor(){super(...arguments);this.beanName="fullRow";this.startedRows=[]}shouldStop(t,e,i="ui"){const{rowNode:s}=t||{};const o=OC(this.beans,{rowNode:this.rowNode});if(!o){return true}const n=super.shouldStop({rowNode:this.rowNode},e,i);if(n!==null){return n}if(!this.rowNode){return false}return s!==this.rowNode}midBatchInputsAllowed({rowNode:t}){if(!t){return false}return this.model.hasEdits({rowNode:t})}clearEdits(t){this.model.clearEditValue(t)}start(t){const{position:e,silent:i,startedEdit:s,event:o,ignoreEventKey:n}=t;const{rowNode:r}=e;if(this.rowNode!==r){super.cleanupEditors(e)}const l=this.beans.visibleCols.allCols;const a=[];const h=[];for(const t of l){if(t.isCellEditable(r)){h.push(t)}}if(h.length==0){return}this.dispatchRowEvent({rowNode:r},"rowEditingStarted",i);this.startedRows.push(r);for(const t of h){const e={rowNode:r,column:t};a.push(e);if(!this.model.hasEdits(e)){this.model.start(e)}}this.rowNode=r;this.setupEditors({cells:a,position:e,startedEdit:s,event:o,ignoreEventKey:n})}processValidationResults(t){const e=t.fail.length>0;if(e&&this.editSvc.cellEditingInvalidCommitBlocks()){return{destroy:[],keep:t.all}}return{destroy:t.all,keep:[]}}stop(t,e){const{rowNode:i}=this;if(i&&!this.model.hasRowEdits(i)){return false}const s=[];if(!t){this.model.getEditMap().forEach(((t,e)=>{if(!t||t.size===0){return}for(const i of t.values()){if(qC(i)){s.push(e);break}}}))}lb(this.beans);if(!t&&this.editSvc?.checkNavWithValidation({rowNode:i})==="block-stop"){return false}super.stop(t,e);for(const t of s){this.dispatchRowEvent({rowNode:t},"rowValueChanged")}this.cleanupEditors({rowNode:i},true);this.rowNode=void 0;return true}onCellFocusChanged(t){const{rowIndex:e}=t;const i=t["previousParams"];if(i?.rowIndex===e||t.sourceEvent instanceof KeyboardEvent){return}const s=LC(this.beans,i);const o=this.gos.get("invalidEditValueMode")==="block";if(o&&s&&(this.model.getCellValidationModel().getCellValidation(s)||this.model.getRowValidationModel().getRowValidation(s))){return}super.onCellFocusChanged(t)}cleanupEditors(t={},e){super.cleanupEditors(t,e);for(const t of this.startedRows){this.dispatchRowEvent({rowNode:t},"rowEditingStopped")}this.startedRows.length=0}moveToNextEditingCell(t,e,i,s="ui",o=false){const n=t.cellPosition;let r;this.model.suspend(true);try{r=this.beans.navigation?.findNextCellToFocusOn(n,{backwards:e,startEditing:true,skipToNextEditableCell:false})}finally{this.model.suspend(false)}if(r===false){return null}if(r==null){return false}const l=r.cellPosition;const a=t.isCellEditable();const h=r.isCellEditable();const c=l&&n.rowIndex===l.rowIndex&&n.rowPinned===l.rowPinned;if(a){this.setFocusOutOnEditor(t)}this.restoreEditors();const u=this.gos.get("suppressStartEditOnTab");if(h&&!o){if(u){r.focusCell(true,i)}else{if(!r.comp?.getCellEditor()){KC(this.beans,r,{event:i,cellStartedEdit:true})}this.setFocusInOnEditor(r);r.focusCell(false,i)}}else{if(h&&o){this.setFocusInOnEditor(r)}r.focusCell(true,i)}if(!c&&!o){this.editSvc?.stopEditing({rowNode:t.rowNode},{event:i});this.cleanupEditors(r,true);if(u){r.focusCell(true,i)}else{this.editSvc.startEditing(r,{startedEdit:true,event:i,source:s,ignoreEventKey:true})}}t.rowCtrl?.refreshRow({suppressFlash:true,force:true});return true}restoreEditors(){this.model.getEditMap().forEach(((t,e)=>t.forEach((({state:t},i)=>{if(t!=="editing"){return}const s=LC(this.beans,{rowNode:e,column:i});if(s&&!s.comp?.getCellEditor()){KC(this.beans,s,{silent:true})}}))))}destroy(){super.destroy();this.rowNode=void 0;this.startedRows.length=0}};var PR=class extends FR{constructor(){super(...arguments);this.beanName="singleCell"}shouldStop(t,e,i="ui"){const s=super.shouldStop(t,e,i);if(s!==null){return s}const{rowNode:o,column:n}=t||{};if((!this.rowNode||!this.column)&&o&&n){return null}return this.rowNode!==o||this.column!==n}midBatchInputsAllowed(t){return this.model.hasEdits(t)}start(t){const{position:e,startedEdit:i,event:s,ignoreEventKey:o}=t;if(this.rowNode!==e.rowNode||this.column!==e.column){super.cleanupEditors()}this.rowNode=e.rowNode;this.column=e.column;this.model.start(e);this.setupEditors({cells:[e],position:e,startedEdit:i,event:s,ignoreEventKey:o})}dispatchRowEvent(t,e,i){}processValidationResults(t){const e=t.fail.length>0;if(e&&this.editSvc.cellEditingInvalidCommitBlocks()){return{destroy:[],keep:t.all}}return{destroy:t.all,keep:[]}}stop(t,e){super.stop(t,e);this.rowNode=void 0;this.column=void 0;return true}onCellFocusChanged(t){const{colModel:e,editSvc:i}=this.beans;const{rowIndex:s,column:o,rowPinned:n}=t;const r=tg(this.beans,{rowIndex:s,rowPinned:n});const l=GC(o);const a=e.getCol(l);const h=t["previousParams"];if(h){const t=GC(h.column);if(h?.rowIndex===s&&t===l&&h?.rowPinned===n){return}}if(i?.isEditing({rowNode:r,column:a},{withOpenEditor:true})&&t.type==="cellFocused"){return}super.onCellFocusChanged(t)}moveToNextEditingCell(t,e,i,s="ui",o=false){const n=this.beans.focusSvc.getFocusedCell();if(n){t=eg(this.beans,n)??t}const r=t.cellPosition;let l;const a=this.beans.gos.get("editType")==="fullRow";if(a){this.model.suspend(true)}if(!o){t.eGui.focus();this.editSvc?.stopEditing(t,{source:this.editSvc?.isBatchEditing()?"ui":"api",event:i})}try{l=this.beans.navigation?.findNextCellToFocusOn(r,{backwards:e,startEditing:true})}finally{if(a){this.model.suspend(false)}}if(l===false){return null}if(l==null){return false}const h=l.cellPosition;const c=t.isCellEditable();const u=l.isCellEditable();const d=h&&r.rowIndex===h.rowIndex&&r.rowPinned===h.rowPinned;if(c&&!o){this.setFocusOutOnEditor(t)}const f=this.gos.get("suppressStartEditOnTab");if(!d&&!o){super.cleanupEditors(l,true);if(f){l.focusCell(true,i)}else{this.editSvc.startEditing(l,{startedEdit:true,event:i,source:s,ignoreEventKey:true})}}if(u&&!o){l.focusCell(false,i);if(f){l.focusCell(true,i)}else if(!l.comp?.getCellEditor()){const t=this.editSvc?.isEditing(l,{withOpenEditor:true});KC(this.beans,l,{event:i,cellStartedEdit:true,silent:t});this.setFocusInOnEditor(l);this.cleanupEditors(l)}}else{if(u&&o){this.setFocusInOnEditor(l)}l.focusCell(true,i)}t.rowCtrl?.refreshRow({suppressFlash:true,force:true});return true}destroy(){super.destroy();this.rowNode=void 0;this.column=void 0}};var DR={moduleName:"EditCore",version:ii,beans:[IC,kR],apiFunctions:{getEditingCells:qk,getEditRowValues:jk,getCellEditorInstances:UC,startEditingCell:Zk,stopEditing:Kk,isEditing:_k,validateEdit:Qk},dynamicBeans:{singleCell:PR,fullRow:MR},dependsOn:[DS,dk],css:[wk]};var TR={moduleName:"UndoRedoEdit",version:ii,beans:[vk],apiFunctions:{undoCellEditing:Wk,redoCellEditing:Uk,getCurrentUndoSize:Yk,getCurrentRedoSize:Jk},dependsOn:[DR]};var BR={moduleName:"TextEditor",version:ii,userComponents:{agCellEditor:Ok,agTextCellEditor:Ok},dependsOn:[DR]};var AR={moduleName:"NumberEditor",version:ii,userComponents:{agNumberCellEditor:{classImp:Bk}},dependsOn:[DR]};var IR={moduleName:"DateEditor",version:ii,userComponents:{agDateCellEditor:kk,agDateStringCellEditor:Fk},dependsOn:[DR]};var zR={moduleName:"CheckboxEditor",version:ii,userComponents:{agCheckboxCellEditor:bk},dependsOn:[DR]};var HR={moduleName:"SelectEditor",version:ii,userComponents:{agSelectCellEditor:Ik},dependsOn:[DR]};var OR={moduleName:"LargeTextEditor",version:ii,userComponents:{agLargeTextCellEditor:Pk},dependsOn:[DR]};var LR={moduleName:"CustomEditor",version:ii,dependsOn:[DR]};var VR=class extends ge{constructor(){super(...arguments);this.beanName="selectionColSvc"}postConstruct(){this.addManagedPropertyListener("rowSelection",(t=>{this.onSelectionOptionsChanged(t.currentValue,t.previousValue,ro(t.source))}));this.addManagedPropertyListener("selectionColumnDef",this.updateColumns.bind(this))}addColumns(t){const e=this.columns;if(e==null){return}t.list=e.list.concat(t.list);t.tree=e.tree.concat(t.tree);no(t)}createColumns(t,e){const i=()=>{Js(this.beans,this.columns?.tree);this.columns=null};const s=t.treeDepth;const o=this.columns?.treeDepth??-1;const n=o==s;const r=this.generateSelectionCols();const l=oo(r,this.columns?.list??[]);if(l&&n){return}i();const{colGroupSvc:a}=this.beans;const h=a?.findDepth(t.tree)??0;const c=a?.balanceTreeForAutoCols(r,h)??[];this.columns={list:r,tree:c,treeDepth:h,map:{}};const u=t=>{if(!t){return null}const e=t.filter((t=>!to(t)));return[...r,...e]};e(u)}updateColumns(t){const e=ro(t.source);for(const i of this.columns?.list??[]){const s=this.createSelectionColDef(t.currentValue);i.setColDef(s,null,e);To(this.beans,{state:[{...s,colId:i.getColId()}]},e)}}getColumn(t){return this.columns?.list.find((e=>lo(e,t)))??null}getColumns(){return this.columns?.list??null}isSelectionColumnEnabled(){const{gos:t,beans:e}=this;const i=t.get("rowSelection");if(typeof i!=="object"||!Di(t)){return false}const s=(e.autoColSvc?.getColumns()?.length??0)>0;if(i.checkboxLocation==="autoGroupColumn"&&s){return false}const o=!!Ji(i);const n=Xi(i);return o||n}createSelectionColDef(t){const{gos:e}=this;const i=t??e.get("selectionColumnDef");const s=e.get("enableRtl");const{rowSpan:o,spanRows:n,...r}=i??{};return{width:50,resizable:false,suppressHeaderMenuButton:true,sortable:false,suppressMovable:true,lockPosition:s?"right":"left",comparator(t,e,i,s){const o=i.isSelected();const n=s.isSelected();return o===n?0:o?1:-1},editable:false,suppressFillHandle:true,pinned:null,...r,colId:Ks,chartDataType:"excluded"}}generateSelectionCols(){if(!this.isSelectionColumnEnabled()){return[]}const t=this.createSelectionColDef();const e=t.colId;this.gos.validateColDef(t,e,true);const i=new Bs(t,null,e,false);this.createBean(i);return[i]}onSelectionOptionsChanged(t,e,i){const s=e&&typeof e!=="string"?Ji(e):void 0;const o=t&&typeof t!=="string"?Ji(t):void 0;const n=s!==o;const r=e&&typeof e!=="string"?Xi(e):void 0;const l=t&&typeof t!=="string"?Xi(t):void 0;const a=r!==l;const h=ts(t);const c=ts(e);const u=h!==c;if(n||a||u){this.beans.colModel.refreshAll(i)}}destroy(){Js(this.beans,this.columns?.tree);super.destroy()}refreshVisibility(t,e,i){if(!this.columns?.list.length){return}const s=t.length+e.length+i.length;if(s===0){return}const o=this.columns.list[0];if(!o.isVisible()){return}const n=()=>{let s;switch(o.pinned){case"left":case true:s=t;break;case"right":s=i;break;default:s=e}s&&$s(s,o)};const r=this.beans.rowNumbersSvc?.getColumn(_s);const l=r?2:1;if(l===s){n()}}};function NR(t,e){const i=e.nodes.every((t=>{if(t.rowPinned&&!Ad(t)){Ci(59);return false}if(t.id===void 0){Ci(60);return false}return true}));if(!i){return}const{nodes:s,source:o,newValue:n}=e;t.selectionSvc?.setNodesSelected({nodes:s,source:o??"api",newValue:n})}function GR(t,e,i="apiSelectAll"){t.selectionSvc?.selectAllRowNodes({source:i,selectAll:e})}function $R(t,e,i="apiSelectAll"){t.selectionSvc?.deselectAllRowNodes({source:i,selectAll:e})}function WR(t,e="apiSelectAllFiltered"){t.selectionSvc?.selectAllRowNodes({source:e,selectAll:"filtered"})}function UR(t,e="apiSelectAllFiltered"){t.selectionSvc?.deselectAllRowNodes({source:e,selectAll:"filtered"})}function jR(t,e="apiSelectAllCurrentPage"){t.selectionSvc?.selectAllRowNodes({source:e,selectAll:"currentPage"})}function qR(t,e="apiSelectAllCurrentPage"){t.selectionSvc?.deselectAllRowNodes({source:e,selectAll:"currentPage"})}function KR(t){return t.selectionSvc?.getSelectedNodes()??[]}function _R(t){return t.selectionSvc?.getSelectedRows()??[]}var ZR=class extends Nd{constructor(){super(...arguments);this.beanName="selectionSvc";this.selectedNodes=new Map;this.detailSelection=new Map;this.masterSelectsDetail=false}postConstruct(){super.postConstruct();const{gos:t}=this;this.mode=us(t);this.groupSelectsDescendants=vs(t);this.groupSelectsFiltered=gs(t)==="filteredDescendants";this.masterSelectsDetail=ws(t)==="detail";this.addManagedPropertyListeners(["groupSelectsChildren","groupSelectsFiltered","rowSelection"],(()=>{const e=vs(t);const i=us(t);const s=gs(t)==="filteredDescendants";this.masterSelectsDetail=ws(t)==="detail";if(e!==this.groupSelectsDescendants||s!==this.groupSelectsFiltered||i!==this.mode){this.deselectAllRowNodes({source:"api"});this.groupSelectsDescendants=e;this.groupSelectsFiltered=s;this.mode=i}}));this.addManagedEventListeners({rowSelected:this.onRowSelected.bind(this)})}destroy(){super.destroy();this.resetNodes()}handleSelectionEvent(t,e,i){if(this.isRowSelectionBlocked(e)){return 0}const s=this.inferNodeSelections(e,t.shiftKey,t.metaKey||t.ctrlKey,i);if(s==null){return 0}this.selectionCtx.selectAll=false;if("select"in s){if(s.reset){this.resetNodes()}else{this.selectRange(s.deselect,false,i)}return this.selectRange(s.select,true,i)}else{const e=s.checkFilteredNodes?tE(s.node):s.newValue;return this.setNodesSelected({nodes:[s.node],newValue:e,clearSelection:s.clearSelection,keepDescendants:s.keepDescendants,event:t,source:i})}}setNodesSelected({newValue:t,clearSelection:e,suppressFinishActions:i,nodes:s,event:o,source:n,keepDescendants:r=false}){if(s.length===0){return 0}const{gos:l}=this;if(!Di(l)&&t){Ci(132);return 0}if(s.length>1&&!this.isMultiSelect()){Ci(130);return 0}let a=0;for(let e=0;e0){this.updateGroupsFromChildrenSelections(n);this.dispatchSelectionChanged(n)}}return a}selectRange(t,e,i){let s=0;t.forEach((t=>{const o=QR(t);if(o.group&&this.groupSelectsDescendants){return}const n=this.selectRowNode(o,e,void 0,i);if(n){s++}}));if(s>0){this.updateGroupsFromChildrenSelections(i);this.dispatchSelectionChanged(i)}return s}selectChildren(t,e,i){const s=this.groupSelectsFiltered?t.childrenAfterAggFilter:t.childrenAfterGroup;if(!s){return 0}return this.setNodesSelected({newValue:e,clearSelection:false,suppressFinishActions:true,source:i,nodes:s})}getSelectedNodes(){return Array.from(this.selectedNodes.values())}getSelectedRows(){const t=[];this.selectedNodes.forEach((e=>e.data&&t.push(e.data)));return t}getSelectionCount(){return this.selectedNodes.size}filterFromSelection(t){const e=new Map;this.selectedNodes.forEach(((i,s)=>{if(t(i)){e.set(s,i)}}));this.selectedNodes=e}updateGroupsFromChildrenSelections(t,e){if(!this.groupSelectsDescendants){return false}const{gos:i,rowModel:s}=this.beans;if(!Fi(i)){return false}const o=s.rootNode;if(!o){return false}if(!e){e=new ag(true,o);e.active=false}let n=false;e.forEachChangedNodeDepthFirst((e=>{if(e!==o){const i=this.calculateSelectedFromChildren(e);n=this.selectRowNode(e,i===null?false:i,void 0,t)||n}}));return n}clearOtherNodes(t,e,i){const s=new Map;let o=0;this.selectedNodes.forEach((n=>{const r=n.id==t.id;const l=e?!XR(t,n):true;if(l&&!r){const t=this.selectedNodes.get(n.id);o+=this.setNodesSelected({nodes:[t],newValue:false,clearSelection:false,suppressFinishActions:true,source:i});if(this.groupSelectsDescendants&&n.parent){s.set(n.parent.id,n.parent)}}}));s.forEach((t=>{const e=this.calculateSelectedFromChildren(t);this.selectRowNode(t,e===null?false:e,void 0,i)}));return o}onRowSelected(t){const e=t.node;if(this.groupSelectsDescendants&&e.group){return}if(e.isSelected()){this.selectedNodes.set(e.id,e)}else{this.selectedNodes.delete(e.id)}}syncInRowNode(t,e){this.syncInOldRowNode(t,e);this.syncInNewRowNode(t)}createDaemonNode(t){if(!t.id){return void 0}const e=new eh(this.beans);e.id=t.id;e.data=t.data;e.__selected=t.__selected;e.level=t.level;return e}syncInOldRowNode(t,e){if(e&&t.id!==e.id){const i=this.selectedNodes.get(e.id)==t;if(i){this.selectedNodes.set(e.id,e)}}}syncInNewRowNode(t){if(this.selectedNodes.has(t.id)){t.__selected=true;this.selectedNodes.set(t.id,t)}else{t.__selected=false}}reset(t){const e=this.getSelectionCount();this.resetNodes();if(e){this.dispatchSelectionChanged(t)}}resetNodes(){this.selectedNodes.forEach((t=>{this.selectRowNode(t,false)}));this.selectedNodes.clear()}getBestCostNodeSelection(){const{gos:t,rowModel:e}=this.beans;if(!Fi(t)){return}const i=e.getTopLevelNodes();if(i===null){return}const s=[];function o(t){for(let e=0,i=t.length;e{const i=this.selectRowNode(QR(e),false,void 0,t);s||(s=i)};if(e==="currentPage"||e==="filtered"){if(!i){bi(102);return}this.getNodesToSelect(e).forEach(o)}else{this.selectedNodes.forEach(o);this.reset(t)}this.selectionCtx.selectAll=false;if(i&&this.groupSelectsDescendants){const e=this.updateGroupsFromChildrenSelections(t);s||(s=e)}if(s){this.dispatchSelectionChanged(t)}}getSelectedCounts(t){let e=0;let i=0;this.getNodesToSelect(t).forEach((t=>{if(this.groupSelectsDescendants&&t.group){return}if(t.isSelected()){e++}else if(t.selectable){i++}}));return{selectedCount:e,notSelectedCount:i}}getSelectAllState(t){const{selectedCount:e,notSelectedCount:i}=this.getSelectedCounts(t);return JR(e,i)??null}hasNodesToSelect(t){return this.getNodesToSelect(t).filter((t=>t.selectable)).length>0}getNodesToSelect(t){if(!this.canSelectAll()){return[]}const e=[];const i=t=>e.push(t);if(t==="currentPage"){this.forEachNodeOnPage((t=>{if(!t.group){i(t);return}if(!t.expanded&&!t.footer){const e=t=>{i(t);t.childrenAfterFilter?.forEach(e)};e(t);return}if(!this.groupSelectsDescendants){i(t)}}));return e}const s=this.beans.rowModel;if(t==="filtered"){s.forEachNodeAfterFilter(i);return e}s.forEachNode(i);return e}forEachNodeOnPage(t){const{pageBounds:e,rowModel:i}=this.beans;const s=e.getFirstRow();const o=e.getLastRow();for(let e=s;e<=o;e++){const s=i.getRow(e);if(s){t(s)}}}selectAllRowNodes(t){const{gos:e,selectionCtx:i}=this;if(!Di(e)){Ci(132);return}if(is(e)&&!ds(e)){Ci(130);return}if(!this.canSelectAll()){return}const{source:s,selectAll:o}=t;let n=false;this.getNodesToSelect(o).forEach((t=>{const e=this.selectRowNode(QR(t),true,void 0,s);n||(n=e)}));i.selectAll=true;if(Fi(e)&&this.groupSelectsDescendants){const t=this.updateGroupsFromChildrenSelections(s);n||(n=t)}if(n){this.dispatchSelectionChanged(s)}}getSelectionState(){return this.isEmpty()?null:Array.from(this.selectedNodes.keys())}setSelectionState(t,e,i){if(!t){t=[]}if(!Array.isArray(t)){bi(103);return}const s=new Set(t);const o=[];this.beans.rowModel.forEachNode((t=>{if(s.has(t.id)){o.push(t)}}));if(i){this.resetNodes()}this.setNodesSelected({newValue:true,nodes:o,source:e})}canSelectAll(){return Fi(this.beans.gos)}updateSelectable(t){const{gos:e,rowModel:i}=this.beans;if(!Di(e)){return}const s="selectableChanged";const o=t!==void 0;const n=Fi(e)&&this.groupSelectsDescendants;const r=[];const l=t=>{if(o&&!t.group){return}if(n&&t.group){const e=t.childrenAfterGroup?.some((t=>t.selectable))??false;this.setRowSelectable(t,e,true);return}const e=this.updateRowSelectable(t,true);if(!e&&t.isSelected()){r.push(t)}};if(n){if(t===void 0){const e=i.rootNode;t=e?new ag(false,e):void 0}t?.forEachChangedNodeDepthFirst(l,!o,!o)}else{i.forEachNode(l)}if(r.length){this.setNodesSelected({nodes:r,newValue:false,source:s})}if(!o&&n){this.updateGroupsFromChildrenSelections?.(s)}}updateSelectableAfterGrouping(t){this.updateSelectable(t);if(this.groupSelectsDescendants){const e=this.updateGroupsFromChildrenSelections?.("rowGroupChanged",t);if(e){this.dispatchSelectionChanged("rowGroupChanged")}}}refreshMasterNodeState(t,e){if(!this.masterSelectsDetail){return}const i=t.detailNode?.detailGridInfo?.api;if(!i){return}const s=YR(i);const o=t.isSelected();if(o!==s){const i=this.selectRowNode(t,s,e,"masterDetail");if(i){this.dispatchSelectionChanged("masterDetail")}}if(!s){const e=this.detailSelection.get(t.id)??new Set;for(const t of i.getSelectedNodes()){e.add(t.id)}this.detailSelection.set(t.id,e)}}setDetailSelectionState(t,e,i){if(!this.masterSelectsDetail){return}if(!ds(e)){Ci(269);return}switch(t.isSelected()){case true:{i.selectAll();break}case false:{i.deselectAll();break}case void 0:{const e=this.detailSelection.get(t.id);if(e){const t=[];for(const s of e){const e=i.getRowNode(s);if(e){t.push(e)}}i.setNodesSelected({nodes:t,newValue:true,source:"masterDetail"})}break}}}dispatchSelectionChanged(t){this.eventSvc.dispatchEvent({type:"selectionChanged",source:t,selectedNodes:this.getSelectedNodes(),serverSideState:null})}};function QR(t){return Ad(t)?t.pinnedSibling:t.footer?t.sibling:t}function YR(t){let e=0;let i=0;t.forEachNode((t=>{if(t.isSelected()){e++}else if(t.selectable){i++}}));return JR(e,i)}function JR(t,e){if(t===0&&e===0){return false}if(t>0&&e>0){return}return t>0}function XR(t,e){let i=e.parent;while(i){if(i===t){return true}i=i.parent}return false}function tE(t){const e=t.isSelected()===false;const i=t.childrenAfterFilter?.some(tE)??false;return e||i}var eE={moduleName:"SharedRowSelection",version:ii,beans:[VR],apiFunctions:{setNodesSelected:NR,selectAll:GR,deselectAll:$R,selectAllFiltered:WR,deselectAllFiltered:UR,selectAllOnCurrentPage:jR,deselectAllOnCurrentPage:qR,getSelectedNodes:KR,getSelectedRows:_R}};var iE={moduleName:"RowSelection",version:ii,rowModels:["clientSide","infinite","viewport"],beans:[ZR],dependsOn:[eE]};function sE(t){t.expansionSvc?.expandAll(true)}function oE(t){t.expansionSvc?.expandAll(false)}function nE(t){t.rowModel?.onRowHeightChanged()}function rE(t){if(t.rowAutoHeight?.active){Ci(3);return}t.rowModel?.resetRowHeights()}function lE(t,e,i){const s=_y(t);if(s){if(t.rowGroupColsSvc?.columns.length===0){if(e<0){bi(238);return}s.setRowCount(e,i);return}bi(28);return}Ky(t)?.setRowCount(e,i)}function aE(t){if(Mi(t.gos)){const e=t.rowModel;return e.getBlockStates()}return t.rowNodeBlockLoader?.getBlockState()??{}}function hE(t){return t.rowModel.isLastRowIndexKnown()}var cE={moduleName:"CsrmSsrmSharedApi",version:ii,apiFunctions:{expandAll:sE,collapseAll:oE}};var uE={moduleName:"RowModelSharedApi",version:ii,apiFunctions:{onRowHeightChanged:nE,resetRowHeights:rE}};var dE={moduleName:"SsrmInfiniteSharedApi",version:ii,apiFunctions:{setRowCount:lE,getCacheBlockState:aE,isLastRowIndexKnown:hE}};var fE=class extends ge{constructor(){super(...arguments);this.beanName="alignedGridsSvc";this.consuming=false}getAlignedGridApis(){let t=this.gos.get("alignedGrids")??[];const e=typeof t==="function";if(typeof t==="function"){t=t()}const i=t.map((t=>{if(!t){bi(18);if(!e){bi(20)}return}if(this.isGridApi(t)){return t}const i=t;if("current"in i){return i.current?.api}if(!i.api){bi(19)}return i.api})).filter((t=>!!t&&!t.isDestroyed()));return i}isGridApi(t){return!!t&&!!t.dispatchEvent}postConstruct(){const t=this.fireColumnEvent.bind(this);this.addManagedEventListeners({columnMoved:t,columnVisible:t,columnPinned:t,columnGroupOpened:t,columnResized:t,bodyScroll:this.fireScrollEvent.bind(this),alignedGridColumn:({event:t})=>this.onColumnEvent(t),alignedGridScroll:({event:t})=>this.onScrollEvent(t)})}fireEvent(t){if(this.consuming){return}for(const e of this.getAlignedGridApis()){if(e.isDestroyed()){continue}e.dispatchEvent(t)}}onEvent(t){this.consuming=true;t();this.consuming=false}fireColumnEvent(t){this.fireEvent({type:"alignedGridColumn",event:t})}fireScrollEvent(t){if(t.direction!=="horizontal"){return}this.fireEvent({type:"alignedGridScroll",event:t})}onScrollEvent(t){this.onEvent((()=>{this.beans.ctrlsSvc.getScrollFeature().setHorizontalScrollPosition(t.left,true)}))}extractDataFromEvent(t,e){const i=[];if(t.columns){t.columns.forEach((t=>{i.push(e(t))}))}else if(t.column){i.push(e(t.column))}return i}getMasterColumns(t){return this.extractDataFromEvent(t,(t=>t))}getColumnIds(t){return this.extractDataFromEvent(t,(t=>t.getColId()))}onColumnEvent(t){this.onEvent((()=>{switch(t.type){case"columnMoved":case"columnVisible":case"columnPinned":case"columnResized":{this.processColumnEvent(t);break}case"columnGroupOpened":{this.processGroupOpenedEvent(t);break}case"columnPivotChanged":Ci(21);break}}))}processGroupOpenedEvent(t){const{colGroupSvc:e}=this.beans;if(!e){return}for(const i of t.columnGroups){let t=null;if(i){t=e.getProvidedColGroup(i.getGroupId())}if(i&&!t){continue}e.setColumnGroupOpened(t,i.isExpanded(),"alignedGridChanged")}}processColumnEvent(t){const e=t.column;let i=null;const s=this.beans;const{colResize:o,ctrlsSvc:n,colModel:r}=s;if(e){i=r.getColDefCol(e.getColId())}if(e&&!i){return}const l=this.getMasterColumns(t);switch(t.type){case"columnMoved":{const e=t.api.getColumnState();const i=e.map((t=>({colId:t.colId})));To(s,{state:i,applyOrder:true},"alignedGridChanged")}break;case"columnVisible":{const e=t.api.getColumnState();const i=e.map((t=>({colId:t.colId,hide:t.hide})));To(s,{state:i},"alignedGridChanged")}break;case"columnPinned":{const e=t.api.getColumnState();const i=e.map((t=>({colId:t.colId,pinned:t.pinned})));To(s,{state:i},"alignedGridChanged")}break;case"columnResized":{const e=t;const i={};for(const t of l){i[t.getId()]={key:t.getColId(),newWidth:t.getActualWidth()}}for(const t of e.flexColumns??[]){if(i[t.getId()]){delete i[t.getId()]}}o?.setColumnWidths(Object.values(i),false,e.finished,"alignedGridChanged");break}}const a=n.getGridBodyCtrl();const h=a.isVerticalScrollShowing();for(const t of this.getAlignedGridApis()){t.setGridOption("alwaysShowVerticalScroll",h)}}};var gE={moduleName:"AlignedGrids",version:ii,beans:[fE],dependsOn:[pm]};var pE=class extends ge{constructor(t){super();this.rootNode=t;this.nextId=0;this.allNodesMap={};vE(t)}getRowNode(t){return this.allNodesMap[t]}setNewRowData(t){const{selectionSvc:e,pinnedRowModel:i,groupStage:s}=this.beans;e?.reset("rowDataChanged");if(i?.isManual()){i.reset()}this.dispatchRowDataUpdateStarted(t);this.allNodesMap=Object.create(null);this.nextId=0;const o=vE(this.rootNode);const n=new Array(t.length);o._leafs=n;let r=0;const l=s?.getNestedDataGetter();const a=l?new Set:null;const h=(t,e)=>{const i=t.level+1;for(let s=0,o=e.length;s{if(!u&&u!==void 0){const e=t.sourceRowIndex;u=e<=d;d=e}if(t.data!==e){t.updateData(e);if(!r.has(t)){l.add(t)}if(!t.selectable&&t.isSelected()){h.push(t)}}};const p=(t,e,i)=>{for(let s=0,n=e.length;s0;if(m){const t=i._leafs??(i._leafs=[]);if(u===void 0){yE(t,a,n)}else if(bE(t,a)){n.reordered=true}}if(m||f||l.size){t.rowDataUpdated=true;this.deselect(h)}}deleteUnusedNodes(t,{removals:e},i){const s=this.rootNode._leafs;for(let o=0,n=s.length;o0}updateRowData(t,e){this.dispatchRowDataUpdateStarted(t.add);if(this.beans.groupStage?.getNestedDataGetter()){Ci(268);return{remove:[],update:[],add:[]}}const i=[];const s=_i(this.gos);const o=this.executeRemove(s,t,e,i);const n=this.executeUpdate(s,t,e,i);const r=this.executeAdd(t,e);this.deselect(i);return{remove:o,update:n,add:r}}executeRemove(t,{remove:e},{adds:i,updates:s,removals:o},n){const r=this.rootNode._leafs;const l=r?.length;const a=e?.length;if(!a||!l){return[]}let h=0;let c=l;let u=0;let d;const f=new Array(a);for(let r=0;ru){u=a}if(l.isSelected()){n.push(l)}this.deleteNode(l);if(i.delete(l)){d??(d=new Set);d.add(l)}else{s.delete(l);o.add(l)}f[h++]=l}f.length=h;if(h){CE(r,c,u,o,d)}return f}executeUpdate(t,{update:e},{adds:i,updates:s},o){const n=e?.length;if(!n){return[]}const r=new Array(n);let l=0;for(let a=0;a=a;--t){const i=s[t];i.sourceRowIndex=e;s[e--]=i}e.reordered=true}s.length=l;const h=new Array(r);const c=e.adds;for(let t=0;t=i||Number.isNaN(e)){return i}e=Math.ceil(e);const s=this.gos;if(e>0&&s.get("treeData")&&s.get("getDataPath")){e=mE(t,e)}return e}};var mE=(t,e)=>{for(let i=0,s=t.length;i{t.group=true;t.level=-1;t.id="ROOT_NODE_ID";if(t._leafs?.length!==0){t._leafs=[]}const e=[];const i=[];const s=[];const o=[];t.childrenAfterGroup=e;t.childrenAfterSort=i;t.childrenAfterAggFilter=s;t.childrenAfterFilter=o;const n=t.sibling;if(n){n.childrenAfterGroup=e;n.childrenAfterSort=i;n.childrenAfterAggFilter=s;n.childrenAfterFilter=o;n.childrenMapped=t.childrenMapped}t.updateHasChildren();return t};var wE=(t,e)=>{if(t){for(let i=0,s=t.length;i{e=Math.max(0,e);for(let n=e,r=t.length;n{const i=e.size;t.length=i;let s=0;let o=false;let n=false;for(const i of e){const e=i.sourceRowIndex;if(e===s){n||(n=o)}else{if(e>=0){n=true}else{o=true}i.sourceRowIndex=s;t[s]=i}++s}return n};var yE=(t,e,{removals:i,adds:s})=>{const o=t.length;t.length=e.size;let n=0;for(let e=0;e{const e=t.childrenAfterSort;const i=t.sibling;if(i){i.childrenAfterSort=e}if(!e){return}for(let t=0,i=e.length-1;t<=i;t++){const s=e[t];const o=t===0;const n=t===i;if(s.firstChild!==o){s.firstChild=o;s.dispatchRowEvent("firstChildChanged")}if(s.lastChild!==n){s.lastChild=n;s.dispatchRowEvent("lastChildChanged")}if(s.childIndex!==t){s.childIndex=t;s.dispatchRowEvent("childIndexChanged")}}};var xE=class extends ge{constructor(){super(...arguments);this.beanName="sortStage";this.step="sort";this.refreshProps=["postSortRows","groupDisplayType","accentedSort"]}execute(t){const e=this.beans.sortSvc.getSortOptions();const i=e.length>0&&!!t.changedRowNodes&&this.gos.get("deltaSort");this.sort(e,i,t.changedRowNodes,t.changedPath)}sort(t,e,i,s){const{gos:o,colModel:n,rowGroupColsSvc:r,rowNodeSorter:l,rowRenderer:a,showRowGroupCols:h}=this.beans;const c=o.get("groupMaintainOrder");const u=n.getCols().some((t=>t.isRowGroupActive()));const d=r?.columns;const f=n.isPivotMode();const g=o.getCallback("postSortRows");let p=false;let m;const v=o=>{const n=f&&o.leafGroup;let r=c&&u&&!o.leafGroup;if(r){m??(m=this.shouldSortContainsGroupCols(t));r&&(r=!m)}let a=null;if(r){let t=false;if(d){const e=o.level+1;if(e{const n=e.childrenAfterAggFilter;const r=e.childrenAfterSort;if(!r){return t.doFullSort(n,o)}const l=new Set;const a=[];const{updates:h,adds:c}=i;for(let t=0,e=n.length;tl.has(t))).map(((t,e)=>({currentPos:e,rowNode:t})));a.sort(((e,i)=>t.compareRowNodes(o,e,i)));return RE(t,o,a,u)};var RE=(t,e,i,s)=>{let o=0;let n=0;const r=i.length;const l=s.length;const a=new Array(r+l);let h=0;while(o{const e=t.childrenAfterSort;const i=t.childrenAfterAggFilter;const s=e?.length;const o=i?.length;if(!s||!o){return null}const n=new Array(o);const r=new Set;for(let t=0;t!!t));this.stages=i;for(let t=i.length-1;t>=0;--t){for(const s of i[t].refreshProps){e.set(s,t)}}this.addManagedPropertyListeners([...e.keys()],(t=>{const e=t.changeSet?.properties;if(e){this.onPropChange(e)}}));this.addManagedPropertyListener("rowData",(()=>this.onPropChange(["rowData"])));this.addManagedPropertyListener("rowHeight",(()=>this.resetRowHeights()))}start(){this.started=true;if(this.rowNodesCountReady){this.refreshModel({step:"group",rowDataUpdated:true,newData:true})}else{this.setInitialData()}}setInitialData(){const t=this.gos.get("rowData");if(t){this.onPropChange(["rowData"])}}ensureRowHeightsValid(t,e,i,s){let o;let n=false;do{o=false;const r=this.getRowIndexAtPixel(t);const l=this.getRowIndexAtPixel(e);const a=Math.max(r,i);const h=Math.min(l,s);for(let t=a;t<=h;t++){const e=this.getRow(t);if(e.rowHeightEstimated){const t=Ai(this.beans,e);e.setRowHeight(t.height);o=true;n=true}}if(o){this.setRowTopAndRowIndex()}}while(o);return n}onPropChange(t){const{nodeManager:e,gos:i,beans:s}=this;const o=s.groupStage;if(!e){return}const n=new Set(t);const r=o?.onPropChange(n);let l;if(n.has("rowData")){l=i.get("rowData")}else if(r){l=o?.extractData()}if(l&&!Array.isArray(l)){l=null;Ci(1)}const a={step:"nothing",changedProps:n};if(l){const t=!r&&!this.isEmpty()&&l.length>0&&i.exists("getRowId")&&!i.get("resetRowDataOnUpdate");if(t){a.keepRenderedRows=true;a.animate=!i.get("suppressAnimationFrame");a.changedRowNodes=new Kf;e.setImmutableRowData(a,l)}else{a.rowDataUpdated=true;a.newData=true;e.setNewRowData(l);this.rowNodesCountReady=true}}const h=a.rowDataUpdated?"group":this.getRefreshedStage(t);if(h){a.step=h;this.refreshModel(a)}}getRefreshedStage(t){const{stages:e,stagesRefreshProps:i}=this;const s=e.length;let o=s;for(let e=0,s=t.length;e{if(t?.id!=null&&!e.has(t.id)){t.clearRowTopAndRowIndex()}};const o=t=>{s(t);s(t.detailNode);s(t.sibling);const e=t.childrenAfterGroup;if(!t.hasChildren()||!e){return}const n=t.level==-1;const r=i&&!n&&!t.expanded;if(r){return}for(let t=0,i=e.length;t{let e=n[t];if(this.gos.get("groupHideOpenParents")){while(e.expanded&&e.childrenAfterSort&&e.childrenAfterSort.length>0){e=e.childrenAfterSort[0]}}return e.rowIndex};const l=e.footerSvc;if(l){return l?.getTopDisplayIndex(s,t,n,r)}return r(t)}getTopLevelIndexFromDisplayedIndex(t){const{rootNode:e,rowsToDisplay:i}=this;const s=!e||!i.length||i[0]===e;if(s){return t}let o=this.getRow(t);if(o.footer){o=o.sibling}let n=o.parent;while(n&&n!==e){o=n;n=o.parent}const r=e.childrenAfterSort?.indexOf(o)??-1;return r>=0?r:t}getRowBounds(t){const e=this.rowsToDisplay[t];return e?{rowTop:e.rowTop,rowHeight:e.rowHeight}:null}onRowGroupOpened(){this.refreshModel({step:"map",keepRenderedRows:true,animate:Vi(this.gos)})}onFilterChanged({afterDataChange:t,columns:e}){if(!t){const t=e.length===0||e.some((t=>t.isPrimary()));const i=t?"filter":"filter_aggregates";this.refreshModel({step:i,keepRenderedRows:true,animate:Vi(this.gos)})}}onSortChanged(){this.refreshModel({step:"sort",keepRenderedRows:true,animate:Vi(this.gos)})}getType(){return"clientSide"}onValueChanged(){this.refreshModel({step:this.beans.colModel.isPivotActive()?"pivot":"aggregate"})}createChangePath(t){const e=new ag(false,this.rootNode);e.active=t;return e}isSuppressModelUpdateAfterUpdateTransaction(t){if(!this.gos.get("suppressModelUpdateAfterUpdateTransaction")){return false}const{changedRowNodes:e,newData:i,rowDataUpdated:s}=t;if(!e||i||!s){return false}if(e.removals.size||e.adds.size){return false}return true}refreshModel(t){const{nodeManager:e,beans:i,eventSvc:s,started:o,refreshingModel:n}=this;if(!e){return}const r=!!t.rowDataUpdated;const l=t.changedPath??(t.changedPath=this.createChangePath(!t.newData&&r));if(o&&r){s.dispatchEvent({type:"rowDataUpdated"})}if(!o||n||i.colModel.changeEventsDispatching||this.isSuppressModelUpdateAfterUpdateTransaction(t)){this.rowDataUpdatedPending||(this.rowDataUpdatedPending=r);return}if(this.rowDataUpdatedPending){this.rowDataUpdatedPending=false;t.step="group"}this.refreshingModel=true;i.masterDetailSvc?.refreshModel(t);if(r&&t.step!=="group"){i.colFilter?.refreshModel()}switch(t.step){case"group":this.doGrouping(t);case"filter":this.doFilter(l);case"pivot":this.doPivot(l);case"aggregate":this.doAggregate(l);case"filter_aggregates":this.doFilterAggregates(l);case"sort":this.doSort(t.changedRowNodes,l);case"map":this.doRowsToDisplay()}const a=new Set;this.setRowTopAndRowIndex(a);this.clearRowTopAndRowIndex(l,a);this.refreshingModel=false;s.dispatchEvent({type:"modelUpdated",animate:t.animate,keepRenderedRows:t.keepRenderedRows,newData:t.newData,newPage:false,keepUndoRedoStack:t.keepUndoRedoStack})}isEmpty(){return!this.rootNode?._leafs?.length||!this.beans.colModel?.ready}isRowsToRender(){return this.rowsToDisplay.length>0}getNodesInRangeForSelection(t,e){let i=false;let s=false;const o=[];const n=vs(this.gos);this.forEachNodeAfterFilterAndSort((r=>{if(s){return}if(i){if(r===e||r===t){s=true;if(n&&r.group){ME(o,r);return}}}if(!i){if(r!==e&&r!==t){return}i=true;if(e===t){s=true}}const l=!r.group||!n;if(l){o.push(r)}}));return o}getTopLevelNodes(){return this.rootNode?.childrenAfterGroup??null}getRow(t){return this.rowsToDisplay[t]}isRowPresent(t){return this.rowsToDisplay.indexOf(t)>=0}getRowIndexAtPixel(t){const e=this.rowsToDisplay;const i=e.length;if(this.isEmpty()||i===0){return-1}let s=0;let o=i-1;if(t<=0){return 0}const n=e[o];if(n.rowTop<=t){return o}let r=-1;let l=-1;while(true){const i=Math.floor((s+o)/2);const n=e[i];if(this.isRowInPixel(n,t)){return i}if(n.rowTopt){o=i-1}const a=r===s&&l===o;if(a){return i}r=s;l=o}}isRowInPixel(t,e){const i=t.rowTop;const s=i+t.rowHeight;return i<=e&&s>e}forEachLeafNode(t){const e=this.rootNode?._leafs;if(e){for(let i=0,s=e.length;it.childrenAfterAggFilter))}forEachNodeAfterFilterAndSort(t,e=false){this.depthFirstSearchRowNodes(t,e,(t=>t.childrenAfterSort))}forEachPivotNode(t,e,i){const{colModel:s,rowGroupColsSvc:o}=this.beans;if(!s.isPivotMode()){return}if(!o?.columns.length){t(this.rootNode,0);return}const n=i?"childrenAfterSort":"childrenAfterGroup";this.depthFirstSearchRowNodes(t,e,(t=>!t.leafGroup?t[n]:null))}depthFirstSearchRowNodes(t,e=false,i=(t=>t.childrenAfterGroup),s=this.rootNode,o=0){let n=o;if(!s){return n}const r=s===this.rootNode;if(!r){t(s,n++)}if(s.hasChildren()&&!s.footer){const o=i(s);if(o){const l=this.beans.footerSvc;n=l?.addTotalRows(n,s,t,e,r,"top")??n;for(const s of o){n=this.depthFirstSearchRowNodes(t,e,i,s,n)}return l?.addTotalRows(n,s,t,e,r,"bottom")??n}}return n}doAggregate(t){const e=this.rootNode;if(e){this.beans.aggStage?.execute({rowNode:e,changedPath:t})}}doFilterAggregates(t){const e=this.rootNode;const i=this.beans.filterAggStage;if(i){i.execute({rowNode:e,changedPath:t});return}e.childrenAfterAggFilter=e.childrenAfterFilter}doSort(t,e){const i=this.beans.sortStage;if(i){i.execute({rowNode:this.rootNode,changedRowNodes:t,changedPath:e});return}e.forEachChangedNodeDepthFirst((t=>{t.childrenAfterSort=t.childrenAfterAggFilter.slice(0);SE(t)}))}doGrouping(t){const e=this.rootNode;const i=this.beans.groupStage;const s=i?.execute({rowNode:e,changedRowNodes:t.changedRowNodes,changedPath:t.changedPath,afterColumnsChanged:!!t.afterColumnsChanged});if(s===void 0){const t=e._leafs;e.childrenAfterGroup=t;e.updateHasChildren();const i=e.sibling;if(i){i.childrenAfterGroup=t}}if(s||t.rowDataUpdated){this.beans.colFilter?.refreshModel()}if(!this.rowCountReady&&this.rowNodesCountReady){this.rowCountReady=true;this.eventSvc.dispatchEventOnce({type:"rowCountReady"})}}doFilter(t){const e=this.beans.filterStage;if(e){e.execute({rowNode:this.rootNode,changedPath:t});return}t.forEachChangedNodeDepthFirst((t=>{t.childrenAfterFilter=t.childrenAfterGroup;xS(t)}),true)}doPivot(t){this.beans.pivotStage?.execute({rowNode:this.rootNode,changedPath:t})}getRowNode(t){const e=this.nodeManager?.getRowNode(t);if(typeof e==="object"){return e}const i=typeof t=="string"&&t.indexOf(Ya)===0;return i?this.beans.groupStage?.getNode(t):void 0}batchUpdateRowData(t,e){if(!this.asyncTransactionsTimer){this.asyncTransactions=[];const t=this.gos.get("asyncTransactionWaitMillis");this.asyncTransactionsTimer=setTimeout((()=>this.executeBatchUpdateRowData()),t)}this.asyncTransactions.push({rowDataTransaction:t,callback:e})}flushAsyncTransactions(){const t=this.asyncTransactionsTimer;if(t){clearTimeout(t);this.executeBatchUpdateRowData()}}executeBatchUpdateRowData(){const{nodeManager:t,beans:e,eventSvc:i,asyncTransactions:s}=this;if(!t){return}e.valueCache?.onDataChanged();const o=[];const n=[];const r=new Kf;for(const{rowDataTransaction:e,callback:i}of s??[]){this.rowNodesCountReady=true;const s=t.updateRowData(e,r);o.push(s);if(i){n.push(i.bind(null,s))}}this.commitTransactions(r);if(n.length>0){setTimeout((()=>{for(let t=0,e=n.length;t0){i.dispatchEvent({type:"asyncTransactionsFlushed",results:o})}this.asyncTransactionsTimer=0;this.asyncTransactions=null}updateRowData(t){const e=this.nodeManager;if(!e){return null}this.beans.valueCache?.onDataChanged();this.rowNodesCountReady=true;const i=new Kf;const s=e.updateRowData(t,i);this.commitTransactions(i);return s}commitTransactions(t){this.refreshModel({step:"group",rowDataUpdated:true,keepRenderedRows:true,animate:!this.gos.get("suppressAnimationFrame"),changedRowNodes:t,changedPath:this.createChangePath(true)})}doRowsToDisplay(){const{beans:t,rootNode:e}=this;const i=t.flattenStage;if(i){this.rowsToDisplay=i.execute({rowNode:e});return}const s=this.rootNode.childrenAfterSort??[];for(const t of s){t.setUiLevel(0)}this.rowsToDisplay=s}onRowHeightChanged(){this.refreshModel({step:"map",keepRenderedRows:true,keepUndoRedoStack:true})}resetRowHeights(){const t=this.rootNode;if(!t){return}const e=this.resetRowHeightsForAllRowNodes();t.setRowHeight(t.rowHeight,true);const i=t.sibling;i?.setRowHeight(i.rowHeight,true);if(e){this.onRowHeightChanged()}}resetRowHeightsForAllRowNodes(){let t=false;this.forEachNode((e=>{e.setRowHeight(e.rowHeight,true);const i=e.detailNode;i?.setRowHeight(i.rowHeight,true);const s=e.sibling;s?.setRowHeight(s.rowHeight,true);t=true}));return t}onGridStylesChanges(t){if(t.rowHeightChanged&&!this.beans.rowAutoHeight?.active){this.resetRowHeights()}}onGridReady(){if(!this.started){this.setInitialData()}}destroy(){super.destroy();this.nodeManager=this.destroyBean(this.nodeManager);this.started=false;this.rootNode=null;this.rowsToDisplay=[];this.asyncTransactions=null;clearTimeout(this.asyncTransactionsTimer)}onRowHeightChangedDebounced(){this.onRowHeightChanged_debounced()}};var ME=(t,e)=>{const i=e.childrenAfterGroup;if(i){for(let e=0,s=i.length;eqy(t)?.updateRowData(e)))}function HE(t,e,i){t.frameworkOverrides.wrapIncoming((()=>qy(t)?.batchUpdateRowData(e,i)))}function OE(t){t.frameworkOverrides.wrapIncoming((()=>qy(t)?.flushAsyncTransactions()))}function LE(t){return t.selectionSvc?.getBestCostNodeSelection()}var VE={moduleName:"ClientSideRowModel",version:ii,rowModels:["clientSide"],beans:[FE,xE],dependsOn:[ay]};var NE={moduleName:"ClientSideRowModelApi",version:ii,apiFunctions:{onGroupExpandedOrCollapsed:PE,refreshClientSideRowModel:DE,isRowDataEmpty:TE,forEachLeafNode:BE,forEachNodeAfterFilter:AE,forEachNodeAfterFilterAndSort:IE,applyTransaction:zE,applyTransactionAsync:HE,flushAsyncTransactions:OE,getBestCostNodeSelection:LE,resetRowHeights:rE,onRowHeightChanged:nE},dependsOn:[cE,uE]};var GE=class extends ge{constructor(){super(...arguments);this.beanName="gridSerializer"}wireBeans(t){this.visibleCols=t.visibleCols;this.colModel=t.colModel;this.rowModel=t.rowModel;this.pinnedRowModel=t.pinnedRowModel}serialize(t,e={}){const{allColumns:i,columnKeys:s,skipRowGroups:o,exportRowNumbers:n}=e;const r=this.getColumnsToExport({allColumns:i,skipRowGroups:o,columnKeys:s,exportRowNumbers:n});return[this.prepareSession(r),this.prependContent(e),this.exportColumnGroups(e,r),this.exportHeaders(e,r),this.processPinnedTopRows(e,r),this.processRows(e,r),this.processPinnedBottomRows(e,r),this.appendContent(e)].reduce(((t,e)=>e(t)),t).parse()}processRow(t,e,i,s){const o=e.shouldRowBeSkipped||(()=>false);const n=e.rowPositions!=null;const r=n||!!e.onlySelected;const l=this.gos.get("groupHideOpenParents")&&!r;const a=this.colModel.isPivotMode()?s.leafGroup:!s.group;const h=!!s.footer;const c=s.allChildrenCount===1&&s.childrenAfterGroup?.length===1&&Zi(this.gos,s);if(!a&&!h&&(e.skipRowGroups||c||l)||e.onlySelected&&!s.isSelected()||e.skipPinnedTop&&s.rowPinned==="top"||e.skipPinnedBottom&&s.rowPinned==="bottom"||s.stub){return}const u=s.level===-1;if(u&&!a&&!h){return}const d=o(Rs(this.gos,{node:s}));if(d){return}const f=t.onNewBodyRow(s);i.forEach(((t,e)=>{f.onColumn(t,e,s)}));if(e.getCustomContentBelowRow){const i=e.getCustomContentBelowRow(Rs(this.gos,{node:s}));if(i){t.addCustomContent(i)}}}appendContent(t){return e=>{const i=t.appendContent;if(i){e.addCustomContent(i)}return e}}prependContent(t){return e=>{const i=t.prependContent;if(i){e.addCustomContent(i)}return e}}prepareSession(t){return e=>{e.prepare(t);return e}}exportColumnGroups(t,e){return i=>{if(!t.skipColumnGroupHeaders){const s=new $o;const{colGroupSvc:o}=this.beans;const n=o?o.createColumnGroups({columns:e,idCreator:s,pinned:null,isStandaloneStructure:true}):e;this.recursivelyAddHeaderGroups(n,i,t.processGroupHeaderCallback)}return i}}exportHeaders(t,e){return i=>{if(!t.skipColumnHeaders){const t=i.onNewHeaderRow();e.forEach(((e,i)=>{t.onColumn(e,i,void 0)}))}return i}}processPinnedTopRows(t,e){return i=>{const s=this.processRow.bind(this,i,t,e);if(t.rowPositions){t.rowPositions.filter((t=>t.rowPinned==="top")).sort(((t,e)=>t.rowIndex-e.rowIndex)).map((t=>this.pinnedRowModel?.getPinnedTopRow(t.rowIndex))).forEach(s)}else if(!this.pinnedRowModel?.isManual()){this.pinnedRowModel?.forEachPinnedRow("top",s)}return i}}processRows(t,e){return i=>{const s=this.rowModel;const o=Fi(this.gos);const n=Mi(this.gos);const r=!o&&t.onlySelected;const l=this.processRow.bind(this,i,t,e);const{exportedRows:a="filteredAndSorted"}=t;if(t.rowPositions){t.rowPositions.filter((t=>t.rowPinned==null)).sort(((t,e)=>t.rowIndex-e.rowIndex)).map((t=>s.getRow(t.rowIndex))).forEach(l)}else if(this.colModel.isPivotMode()){if(o){s.forEachPivotNode(l,true,a==="filteredAndSorted")}else if(n){s.forEachNodeAfterFilterAndSort(l,true)}else{s.forEachNode(l)}}else if(t.onlySelectedAllPages||r){const t=this.beans.selectionSvc?.getSelectedNodes()??[];this.replicateSortedOrder(t);t.forEach(l)}else if(a==="all"){s.forEachNode(l)}else if(o||n){s.forEachNodeAfterFilterAndSort(l,true)}else{s.forEachNode(l)}return i}}replicateSortedOrder(t){const{sortSvc:e,rowNodeSorter:i}=this.beans;if(!e||!i){return}const s=e.getSortOptions();const o=(t,e)=>{if(t.rowIndex!=null&&e.rowIndex!=null){return t.rowIndex-e.rowIndex}if(t.level===e.level){if(t.parent?.id===e.parent?.id){return i.compareRowNodes(s,{rowNode:t,currentPos:t.rowIndex??-1},{rowNode:e,currentPos:e.rowIndex??-1})}return o(t.parent,e.parent)}if(t.level>e.level){return o(t.parent,e)}return o(t,e.parent)};t.sort(o)}processPinnedBottomRows(t,e){return i=>{const s=this.processRow.bind(this,i,t,e);if(t.rowPositions){t.rowPositions.filter((t=>t.rowPinned==="bottom")).sort(((t,e)=>t.rowIndex-e.rowIndex)).map((t=>this.pinnedRowModel?.getPinnedBottomRow(t.rowIndex))).forEach(s)}else if(!this.pinnedRowModel?.isManual()){this.pinnedRowModel?.forEachPinnedRow("bottom",s)}return i}}getColumnsToExport(t){const{allColumns:e=false,skipRowGroups:i=false,exportRowNumbers:s=false,columnKeys:o}=t;const{colModel:n,gos:r,visibleCols:l}=this;const a=n.isPivotMode();const h=t=>{if(to(t)){return false}return!eo(t)||s};if(o?.length){return n.getColsForKeys(o).filter(h)}const c=r.get("treeData");let u=[];if(e&&!a){u=n.getCols()}else{u=l.allCols}u=u.filter((t=>h(t)&&(i&&!c?!Xs(t):true)));return u}recursivelyAddHeaderGroups(t,e,i){const s=[];for(const e of t){const t=e;if(!t.getChildren){continue}for(const e of t.getChildren()??[]){s.push(e)}}if(t.length>0&&Za(t[0])){this.doAddHeaderHeader(e,t,i)}if(s&&s.length>0){this.recursivelyAddHeaderGroups(s,e,i)}}doAddHeaderHeader(t,e,i){const s=t.onNewHeaderGroupingRow();let o=0;for(const t of e){const e=t;let n;if(i){n=i(Rs(this.gos,{columnGroup:e}))}else{n=this.beans.colNames.getDisplayNameForColumnGroup(e,"header")}const r=e.isExpandable()?e.getLeafColumns():[];const l=r.reduce(((t,e,i,s)=>{let o=Vs(t);const n=e.getColumnGroupShow()==="open";if(!n){if(o&&o[1]==null){o[1]=i-1}}else if(!o||o[1]!=null){o=[i];t.push(o)}if(i===s.length-1&&o&&o[1]==null){o[1]=i}return t}),[]);s.onColumn(e,n||"",o++,e.getLeafColumns().length-1,l)}}};var $E={moduleName:"SharedExport",version:ii,beans:[GE]};var WE="\r\n";var UE=class extends rS{constructor(t){super(t);this.config=t;this.isFirstLine=true;this.result="";const{suppressQuotes:e,columnSeparator:i}=t;this.suppressQuotes=e;this.columnSeparator=i}addCustomContent(t){if(!t){return}if(typeof t==="string"){if(!/^\s*\n/.test(t)){this.beginNewLine()}t=t.replace(/\r?\n/g,WE);this.result+=t}else{t.forEach((t=>{this.beginNewLine();t.forEach(((t,e)=>{if(e!==0){this.result+=this.columnSeparator}this.result+=this.putInQuotes(t.data.value||"");if(t.mergeAcross){this.appendEmptyCells(t.mergeAcross)}}))}))}}onNewHeaderGroupingRow(){this.beginNewLine();return{onColumn:this.onNewHeaderGroupingRowColumn.bind(this)}}onNewHeaderGroupingRowColumn(t,e,i,s){if(i!=0){this.result+=this.columnSeparator}this.result+=this.putInQuotes(e);this.appendEmptyCells(s)}appendEmptyCells(t){for(let e=1;e<=t;e++){this.result+=this.columnSeparator+this.putInQuotes("")}}onNewHeaderRow(){this.beginNewLine();return{onColumn:this.onNewHeaderRowColumn.bind(this)}}onNewHeaderRowColumn(t,e){if(e!=0){this.result+=this.columnSeparator}this.result+=this.putInQuotes(this.extractHeaderValue(t))}onNewBodyRow(){this.beginNewLine();return{onColumn:this.onNewBodyRowColumn.bind(this)}}onNewBodyRowColumn(t,e,i){if(e!=0){this.result+=this.columnSeparator}const s=this.extractRowCellValue(t,e,e,"csv",i);this.result+=this.putInQuotes(s.valueFormatted??s.value)}putInQuotes(t){if(this.suppressQuotes){return t}if(t===null||t===void 0){return'""'}let e;if(typeof t==="string"){e=t}else if(typeof t.toString==="function"){e=t.toString()}else{Ci(53);e=""}const i=e.replace(/"/g,'""');return'"'+i+'"'}parse(){return this.result}beginNewLine(){if(!this.isFirstLine){this.result+=WE}this.isFirstLine=false}};var jE=class extends nS{constructor(){super(...arguments);this.beanName="csvCreator"}wireBeans(t){this.colModel=t.colModel;this.colNames=t.colNames;this.rowGroupColsSvc=t.rowGroupColsSvc;this.valueSvc=t.valueSvc}getMergedParams(t){const e=this.gos.get("defaultCsvExportParams");return Object.assign({},e,t)}export(t){if(this.isExportSuppressed()){Ci(51);return}const e=this.getMergedParams(t);const i=this.getData(e);const s=new Blob(["\ufeff",i],{type:"text/plain"});const o=typeof e.fileName==="function"?e.fileName(Rs(this.gos,{})):e.fileName;lS(this.getFileName(o),s)}exportDataAsCsv(t){this.export(t)}getDataAsCsv(t,e=false){const i=e?Object.assign({},t):this.getMergedParams(t);return this.getData(i)}getDefaultFileExtension(){return"csv"}createSerializingSession(t){const{colModel:e,colNames:i,rowGroupColsSvc:s,valueSvc:o,gos:n}=this;const{processCellCallback:r,processHeaderCallback:l,processGroupHeaderCallback:a,processRowGroupCallback:h,suppressQuotes:c,columnSeparator:u}=t;return new UE({colModel:e,colNames:i,valueSvc:o,gos:n,processCellCallback:r||void 0,processHeaderCallback:l||void 0,processGroupHeaderCallback:a||void 0,processRowGroupCallback:h||void 0,suppressQuotes:c||false,columnSeparator:u||",",rowGroupColsSvc:s})}isExportSuppressed(){return this.gos.get("suppressCsvExport")}};function qE(t,e){return t.csvCreator?.getDataAsCsv(e)}function KE(t,e){t.csvCreator?.exportDataAsCsv(e)}var _E={moduleName:"CsvExport",version:ii,beans:[jE],apiFunctions:{getDataAsCsv:qE,exportDataAsCsv:KE},dependsOn:[$E]};var ZE=class extends ge{constructor(t,e,i){super();this.id=t;this.parentCache=e;this.params=i;this.state="needsLoading";this.version=0;this.startRow=t*i.blockSize;this.endRow=this.startRow+i.blockSize}load(){this.state="loading";this.loadFromDatasource()}setStateWaitingToLoad(){this.version++;this.state="needsLoading"}pageLoadFailed(t){const e=this.isRequestMostRecentAndLive(t);if(e){this.state="failed"}this.dispatchLocalEvent({type:"loadComplete"})}pageLoaded(t,e,i){this.successCommon(t,{rowData:e,rowCount:i})}isRequestMostRecentAndLive(t){const e=t===this.version;const i=this.isAlive();return e&&i}successCommon(t,e){this.dispatchLocalEvent({type:"loadComplete"});const i=this.isRequestMostRecentAndLive(t);if(i){this.state="loaded";this.processServerResult(e)}}postConstruct(){this.rowNodes=[];const{params:{blockSize:t,rowHeight:e},startRow:i,beans:s,rowNodes:o}=this;for(let n=0;n{this.params.datasource.getRows(t)}),0)}createLoadParams(){const{startRow:t,endRow:e,version:i,params:{sortModel:s,filterModel:o},gos:n}=this;const r={startRow:t,endRow:e,successCallback:this.pageLoaded.bind(this,i),failCallback:this.pageLoadFailed.bind(this,i),sortModel:s,filterModel:o,context:Rs(n,{}).context};return r}forEachNode(t,e,i){this.rowNodes.forEach(((s,o)=>{const n=this.startRow+o;if(n{const n=t.rowData?t.rowData[o]:void 0;if(!s.id&&s.alreadyRendered&&n){e[o]=new eh(i);e[o].setRowIndex(s.rowIndex);e[o].setRowTop(s.rowTop);e[o].setRowHeight(s.rowHeight);s.clearRowTopAndRowIndex()}this.setDataAndId(e[o],n,this.startRow+o)}));const s=t.rowCount!=null&&t.rowCount>=0?t.rowCount:void 0;this.parentCache.pageLoaded(this,s)}destroy(){for(const t of this.rowNodes){t.clearRowTopAndRowIndex()}super.destroy()}};var QE=2;var YE=class extends ge{constructor(t){super();this.params=t;this.lastRowIndexKnown=false;this.blocks={};this.blockCount=0;this.rowCount=t.initialRowCount}getRow(t,e=false){const i=Math.floor(t/this.params.blockSize);let s=this.blocks[i];if(!s){if(e){return void 0}s=this.createBlock(i)}return s.getRow(t)}createBlock(t){const e=this.params;const i=this.createBean(new ZE(t,this,e));this.blocks[i.id]=i;this.blockCount++;this.purgeBlocksIfNeeded(i);e.rowNodeBlockLoader.addBlock(i);return i}refreshCache(){const t=this.blockCount==0;if(t){this.purgeCache();return}for(const t of this.getBlocksInOrder()){t.setStateWaitingToLoad()}this.params.rowNodeBlockLoader.checkBlockToLoad()}destroy(){for(const t of this.getBlocksInOrder()){this.destroyBlock(t)}super.destroy()}getRowCount(){return this.rowCount}isLastRowIndexKnown(){return this.lastRowIndexKnown}pageLoaded(t,e){if(!this.isAlive()){return}Ae(this.gos,`InfiniteCache - onPageLoaded: page = ${t.id}, lastRow = ${e}`);this.checkRowCount(t,e);this.onCacheUpdated()}purgeBlocksIfNeeded(t){const e=this.getBlocksInOrder().filter((e=>e!=t));const i=(t,e)=>e.lastAccessed-t.lastAccessed;e.sort(i);const s=this.params.maxBlocksInCache>0;const o=s?this.params.maxBlocksInCache-1:null;const n=QE-1;e.forEach(((t,e)=>{const i=t.state==="needsLoading"&&e>=n;const r=s?e>=o:false;if(i||r){if(this.isBlockCurrentlyDisplayed(t)){return}if(this.isBlockFocused(t)){return}this.removeBlockFromCache(t)}}))}isBlockFocused(t){const e=this.beans.focusSvc.getFocusCellToUseAfterRefresh();if(!e){return false}if(e.rowPinned!=null){return false}const{startRow:i,endRow:s}=t;const o=e.rowIndex>=i&&e.rowIndex=0){this.rowCount=e;this.lastRowIndexKnown=true}else if(!this.lastRowIndexKnown){const{blockSize:e,overflowSize:i}=this.params;const s=(t.id+1)*e;const o=s+i;if(this.rowCountt.id-e.id;const e=Object.values(this.blocks).sort(t);return e}destroyBlock(t){delete this.blocks[t.id];this.destroyBean(t);this.blockCount--;this.params.rowNodeBlockLoader.removeBlock(t)}onCacheUpdated(){if(this.isAlive()){this.destroyAllBlocksPastVirtualRowCount();this.eventSvc.dispatchEvent({type:"storeUpdated"})}}destroyAllBlocksPastVirtualRowCount(){const t=[];for(const e of this.getBlocksInOrder()){const i=e.id*this.params.blockSize;if(i>=this.rowCount){t.push(e)}}if(t.length>0){for(const e of t){this.destroyBlock(e)}}}purgeCache(){for(const t of this.getBlocksInOrder()){this.removeBlockFromCache(t)}this.lastRowIndexKnown=false;if(this.rowCount===0){this.rowCount=this.params.initialRowCount}this.onCacheUpdated()}getRowNodesInRange(t,e){const i=[];let s=-1;let o=false;const n={value:0};let r=false;for(const l of this.getBlocksInOrder()){if(r){continue}if(o&&s+1!==l.id){r=true;continue}s=l.id;l.forEachNode((s=>{const n=s===t||s===e;if(o||n){i.push(s)}if(n){o=!o}}),n,this.rowCount)}const l=r||o;return l?[]:i}};var JE=class extends ge{constructor(){super(...arguments);this.beanName="rowModel";this.rootNode=null}getRowBounds(t){return{rowHeight:this.rowHeight,rowTop:this.rowHeight*t}}ensureRowHeightsValid(){return false}postConstruct(){if(this.gos.get("rowModelType")!=="infinite"){return}const t=this.beans;const e=new eh(t);this.rootNode=e;e.level=-1;this.rowHeight=zi(t);this.addEventListeners();this.addDestroyFunc((()=>this.destroyCache()))}start(){this.setDatasource(this.gos.get("datasource"))}destroy(){this.destroyDatasource();super.destroy();this.rootNode=null}destroyDatasource(){if(this.datasource){this.destroyBean(this.datasource);this.beans.rowRenderer.datasourceChanged();this.datasource=null}}addEventListeners(){this.addManagedEventListeners({filterChanged:this.reset.bind(this),sortChanged:this.reset.bind(this),newColumnsLoaded:this.onColumnEverything.bind(this),storeUpdated:this.dispatchModelUpdatedEvent.bind(this)});this.addManagedPropertyListener("datasource",(()=>this.setDatasource(this.gos.get("datasource"))));this.addManagedPropertyListener("cacheBlockSize",(()=>this.resetCache()));this.addManagedPropertyListener("rowHeight",(()=>{this.rowHeight=zi(this.beans);this.cacheParams.rowHeight=this.rowHeight;this.updateRowHeights()}))}onColumnEverything(){let t;if(this.cacheParams){t=!n(this.cacheParams.sortModel,this.beans.sortSvc?.getSortModel()??[])}else{t=true}if(t){this.reset()}}getType(){return"infinite"}setDatasource(t){this.destroyDatasource();this.datasource=t;if(t){this.reset()}}isEmpty(){return!this.infiniteCache}isRowsToRender(){return!!this.infiniteCache}getNodesInRangeForSelection(t,e){return this.infiniteCache?.getRowNodesInRange(t,e)??[]}reset(){if(!this.datasource){return}const t=_i(this.gos);const e=t!=null;if(!e){this.beans.selectionSvc?.reset("rowDataChanged")}this.resetCache()}dispatchModelUpdatedEvent(){this.eventSvc.dispatchEvent({type:"modelUpdated",newPage:false,newPageSize:false,newData:false,keepRenderedRows:true,animate:false})}resetCache(){this.destroyCache();const t=this.beans;const{filterManager:e,sortSvc:i,rowNodeBlockLoader:s,eventSvc:o,gos:n}=t;this.cacheParams={datasource:this.datasource,filterModel:e?.getFilterModel()??{},sortModel:i?.getSortModel()??[],rowNodeBlockLoader:s,initialRowCount:n.get("infiniteInitialRowCount"),maxBlocksInCache:n.get("maxBlocksInCache"),rowHeight:zi(t),overflowSize:n.get("cacheOverflowSize"),blockSize:n.get("cacheBlockSize"),lastAccessedSequence:{value:0}};this.infiniteCache=this.createBean(new YE(this.cacheParams));o.dispatchEventOnce({type:"rowCountReady"});this.dispatchModelUpdatedEvent()}updateRowHeights(){this.forEachNode((t=>{t.setRowHeight(this.rowHeight);t.setRowTop(this.rowHeight*t.rowIndex)}));this.dispatchModelUpdatedEvent()}destroyCache(){this.infiniteCache=this.destroyBean(this.infiniteCache)}getRow(t){const e=this.infiniteCache;if(!e){return void 0}if(t>=e.getRowCount()){return void 0}return e.getRow(t)}getRowNode(t){let e;this.forEachNode((i=>{if(i.id===t){e=i}}));return e}forEachNode(t){this.infiniteCache?.forEachNodeDeep(t)}getTopLevelRowCount(){return this.getRowCount()}getTopLevelRowDisplayedIndex(t){return t}getRowIndexAtPixel(t){if(this.rowHeight!==0){const e=Math.floor(t/this.rowHeight);const i=this.getRowCount()-1;if(e>i){return i}return e}return 0}getRowCount(){return this.infiniteCache?this.infiniteCache.getRowCount():0}isRowPresent(t){return!!this.getRowNode(t.id)}refreshCache(){this.infiniteCache?.refreshCache()}purgeCache(){this.infiniteCache?.purgeCache()}isLastRowIndexKnown(){return this.infiniteCache?.isLastRowIndexKnown()??false}setRowCount(t,e){this.infiniteCache?.setRowCount(t,e)}resetRowHeights(){}onRowHeightChanged(){}};function XE(t){Ky(t)?.refreshCache()}function tF(t){Ky(t)?.purgeCache()}function eF(t){return Ky(t)?.getRowCount()}var iF=class extends ge{constructor(){super(...arguments);this.beanName="rowNodeBlockLoader";this.activeBlockLoadsCount=0;this.blocks=[];this.active=true}postConstruct(){this.maxConcurrentRequests=Qi(this.gos);const t=this.gos.get("blockLoadDebounceMillis");if(t&&t>0){this.checkBlockToLoadDebounce=be(this,this.performCheckBlocksToLoad.bind(this),t)}}addBlock(t){this.blocks.push(t);t.addEventListener("loadComplete",this.loadComplete.bind(this));this.checkBlockToLoad()}removeBlock(t){$s(this.blocks,t)}destroy(){super.destroy();this.active=false}loadComplete(){this.activeBlockLoadsCount--;this.checkBlockToLoad()}checkBlockToLoad(){if(this.checkBlockToLoadDebounce){this.checkBlockToLoadDebounce()}else{this.performCheckBlocksToLoad()}}performCheckBlocksToLoad(){if(!this.active){return}this.printCacheStatus();if(this.maxConcurrentRequests!=null&&this.activeBlockLoadsCount>=this.maxConcurrentRequests){Ae(this.gos,`RowNodeBlockLoader - checkBlockToLoad: max loads exceeded`);return}const t=this.maxConcurrentRequests!=null?this.maxConcurrentRequests-this.activeBlockLoadsCount:1;const e=this.blocks.filter((t=>t.state==="needsLoading")).slice(0,t);this.activeBlockLoadsCount+=e.length;for(const t of e){t.load()}this.printCacheStatus()}getBlockState(){const t={};this.blocks.forEach((e=>{const{id:i,state:s}=e.getBlockStateJson();t[i]=s}));return t}printCacheStatus(){Ae(this.gos,`RowNodeBlockLoader - printCacheStatus: activePageLoadsCount = ${this.activeBlockLoadsCount}, blocks = ${JSON.stringify(this.getBlockState())}`)}};var sF={moduleName:"InfiniteRowModelCore",version:ii,rowModels:["infinite"],beans:[JE,iF]};var oF={moduleName:"InfiniteRowModel",version:ii,apiFunctions:{refreshInfiniteCache:XE,purgeInfiniteCache:tF,getInfiniteRowCount:eF},dependsOn:[sF,dE]};var nF="↑";var rF="↓";var lF={tag:"span",children:[{tag:"span",ref:"eDelta",cls:"ag-value-change-delta"},{tag:"span",ref:"eValue",cls:"ag-value-change-value"}]};var aF=class extends Qo{constructor(){super(lF);this.eValue=jo;this.eDelta=jo;this.refreshCount=0}init(t){this.refresh(t,true)}showDelta(t,e){const s=Math.abs(e);const o=t.formatValue(s);const n=i(o)?o:s;const r=e>=0;const l=this.eDelta;if(r){l.textContent=nF+n}else{l.textContent=rF+n}l.classList.toggle("ag-value-change-delta-up",r);l.classList.toggle("ag-value-change-delta-down",!r)}setTimerToRemoveDelta(){this.refreshCount++;const t=this.refreshCount;this.beans.frameworkOverrides.wrapIncoming((()=>{window.setTimeout((()=>{if(t===this.refreshCount){this.hideDeltaValue()}}),2e3)}))}hideDeltaValue(){this.eValue.classList.remove("ag-value-change-value-highlight");bt(this.eDelta)}refresh(t,e=false){const{value:s,valueFormatted:o}=t;const{eValue:n,lastValue:r,beans:l}=this;if(s===r){return false}if(i(o)){n.textContent=o}else if(i(s)){n.textContent=s}else{bt(n)}if(l.filterManager?.isSuppressFlashingCellsBecauseFiltering()){return false}const a=s&&typeof s==="object"&&"toNumber"in s?s.toNumber():s;const h=r&&typeof r==="object"&&"toNumber"in r?r.toNumber():r;if(a===h){return false}if(typeof a==="number"&&typeof h==="number"){const e=a-h;this.showDelta(t,e)}if(r){n.classList.add("ag-value-change-value-highlight")}if(!e){this.setTimerToRemoveDelta()}this.lastValue=s;return true}};var hF=`.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}`;var cF={tag:"span",children:[{tag:"span",ref:"eCurrent",cls:"ag-value-slide-current"}]};var uF=class extends Qo{constructor(){super(cF);this.eCurrent=jo;this.refreshCount=0;this.registerCSS(hF)}init(t){this.refresh(t,true)}addSlideAnimation(){this.refreshCount++;const t=this.refreshCount;this.ePrevious?.remove();const{beans:e,eCurrent:i}=this;const s=gh({tag:"span",cls:"ag-value-slide-previous ag-value-slide-out"});this.ePrevious=s;s.textContent=i.textContent;this.getGui().insertBefore(s,i);e.frameworkOverrides.wrapIncoming((()=>{window.setTimeout((()=>{if(t!==this.refreshCount){return}this.ePrevious.classList.add("ag-value-slide-out-end")}),50);window.setTimeout((()=>{if(t!==this.refreshCount){return}this.ePrevious?.remove();this.ePrevious=null}),3e3)}))}refresh(t,e=false){let o=t.value;if(s(o)){o=""}if(o===this.lastValue){return false}if(this.beans.filterManager?.isSuppressFlashingCellsBecauseFiltering()){return false}if(!e){this.addSlideAnimation()}this.lastValue=o;const n=this.eCurrent;if(i(t.valueFormatted)){n.textContent=t.valueFormatted}else if(i(t.value)){n.textContent=o}else{bt(n)}return true}};var dF=class extends ge{constructor(){super(...arguments);this.beanName="cellFlashSvc";this.nextAnimationTime=null;this.nextAnimationCycle=null;this.animations={highlight:new Map,"data-changed":new Map}}animateCell(t,e,i=this.beans.gos.get("cellFlashDuration"),s=this.beans.gos.get("cellFadeDuration")){const o=this.animations[e];o.delete(t);const n=Date.now();const r=n+i;const l=n+i+s;const a={phase:"flash",flashEndTime:r,fadeEndTime:l};o.set(t,a);const h=`ag-cell-${e}`;const c=`${h}-animation`;const{comp:u,eGui:{style:d}}=t;u.toggleCss(h,true);u.toggleCss(c,false);d.removeProperty("transition");d.removeProperty("transition-delay");if(this.nextAnimationTime&&r+15{this.nextAnimationCycle=setTimeout(this.advanceAnimations.bind(this),i)}));this.nextAnimationTime=r}}advanceAnimations(){const t=Date.now();let e=null;for(const i of Object.keys(this.animations)){const s=this.animations[i];const o=`ag-cell-${i}`;const n=`${o}-animation`;for(const[i,r]of s){if(!i.isAlive()||!i.comp){s.delete(i);continue}const{phase:l,flashEndTime:a,fadeEndTime:h}=r;const c=l==="flash"?a:h;const u=t+15>=c;if(!u){e=Math.min(c,e??Infinity);continue}const{comp:d,eGui:{style:f}}=i;switch(l){case"flash":d.toggleCss(o,false);d.toggleCss(n,true);f.transition=`background-color ${h-a}ms`;f.transitionDelay=`${a-t}ms`;e=Math.min(h,e??Infinity);r.phase="fade";break;case"fade":d.toggleCss(o,false);d.toggleCss(n,false);f.removeProperty("transition");f.removeProperty("transition-delay");s.delete(i);break}}}if(e==null){this.nextAnimationTime=null;this.nextAnimationCycle=null}else if(e){this.nextAnimationCycle=setTimeout(this.advanceAnimations.bind(this),e-t);this.nextAnimationTime=e}}onFlashCells(t,e){if(!t.comp){return}const i=_f(t.cellPosition);const s=e.cells[i];if(s){this.animateCell(t,"highlight")}}flashCell(t,e){this.animateCell(t,"data-changed",e?.flashDuration,e?.fadeDuration)}destroy(){for(const t of Object.keys(this.animations)){const e=this.animations[t];e.clear()}}};function fF(t,e={}){const{cellFlashSvc:i}=t;if(!i){return}t.frameworkOverrides.wrapIncoming((()=>{for(const s of t.rowRenderer.getCellCtrls(e.rowNodes,e.columns)){i.flashCell(s,e)}}))}var gF={moduleName:"HighlightChanges",version:ii,beans:[dF],userComponents:{agAnimateShowChangeCellRenderer:aF,agAnimateSlideCellRenderer:uF},apiFunctions:{flashCells:fF}};function pF(t){return t.stateSvc?.getState()??{}}function mF(t,e,i){return t.stateSvc?.setState(e,i)}function vF(t){t={...t};if(!t.version){t.version="32.1.0"}if(t.version==="32.1.0"){t=wF(t)}t.version=ii;return t}function wF(t){t.cellSelection=CF(t,"rangeSelection");return t}function CF(t,e){if(t&&typeof t==="object"){return t[e]}}var bF=class extends ge{constructor(){super(...arguments);this.beanName="stateSvc";this.updateRowGroupExpansionStateTimer=0;this.suppressEvents=true;this.queuedUpdateSources=new Set;this.dispatchStateUpdateEventDebounced=be(this,(()=>this.dispatchQueuedStateUpdateEvents()),0);this.onRowGroupOpenedDebounced=be(this,(()=>{if(this.beans.gos.get("ssrmExpandAllAffectsAllRows")){this.updateCachedState("ssrmRowGroupExpansion",this.getRowGroupExpansionState());this.updateCachedState("rowGroupExpansion",void 0)}else{this.updateCachedState("rowGroupExpansion",this.getRowGroupExpansionState());this.updateCachedState("ssrmRowGroupExpansion",void 0)}}),0);this.onRowSelectedDebounced=be(this,(()=>{this.staleStateKeys.delete("rowSelection");this.updateCachedState("rowSelection",this.getRowSelectionState())}),0);this.staleStateKeys=new Set}postConstruct(){const{gos:t,ctrlsSvc:e,colDelayRenderSvc:i}=this.beans;this.isClientSideRowModel=Fi(t);const s=vF(t.get("initialState")??{});const o=s.partialColumnState;delete s.partialColumnState;this.cachedState=s;const n=this.suppressEventsAndDispatchInitEvent.bind(this);e.whenReady(this,(()=>n((()=>this.setupStateOnGridReady(s)))));if(s.columnOrder||s.columnVisibility||s.columnSizing||s.columnPinning||s.columnGroup){i?.hideColumns("columnState")}const[r,l,a]=this.addManagedEventListeners({newColumnsLoaded:({source:t})=>{if(t==="gridInitializing"){r();n((()=>{this.setupStateOnColumnsInitialised(s,!!o);i?.revealColumns("columnState")}))}},rowCountReady:()=>{l?.();n((()=>this.setupStateOnRowCountReady(s)))},firstDataRendered:()=>{a?.();n((()=>this.setupStateOnFirstDataRendered(s)))}})}destroy(){super.destroy();clearTimeout(this.updateRowGroupExpansionStateTimer);this.queuedUpdateSources.clear()}getState(){if(this.staleStateKeys.size){this.refreshStaleState()}return this.cachedState}setState(t,e){const i=vF(t);delete i.partialColumnState;this.cachedState=i;this.startSuppressEvents();const s="api";const o=e?new Set(e):void 0;this.setGridReadyState(i,s,o);this.setColumnsInitialisedState(i,s,!!o,o);this.setRowCountState(i,s,o);setTimeout((()=>{if(this.isAlive()){this.setFirstDataRenderedState(i,s,o)}this.stopSuppressEvents(s)}))}setGridReadyState(t,e,i){if(e==="api"&&!i?.has("sideBar")){this.beans.sideBar?.comp?.setState(t.sideBar)}this.updateCachedState("sideBar",this.getSideBarState())}setupStateOnGridReady(t){this.setGridReadyState(t,"gridInitializing");const e=()=>this.updateCachedState("sideBar",this.getSideBarState());this.addManagedEventListeners({toolPanelVisibleChanged:e,sideBarUpdated:e})}updateColumnAndGroupState(){this.updateColumnState(["aggregation","columnOrder","columnPinning","columnSizing","columnVisibility","pivot","rowGroup","sort"]);this.updateCachedState("columnGroup",this.getColumnGroupState())}setColumnsInitialisedState(t,e,i,s){this.setColumnState(t,e,i,s);this.setColumnGroupState(t,e,s);this.updateColumnAndGroupState()}setupStateOnColumnsInitialised(t,e){this.setColumnsInitialisedState(t,"gridInitializing",e);const i=t=>()=>this.updateColumnState([t]);this.addManagedEventListeners({columnValueChanged:i("aggregation"),columnMoved:i("columnOrder"),columnPinned:i("columnPinning"),columnResized:i("columnSizing"),columnVisible:i("columnVisibility"),columnPivotChanged:i("pivot"),columnPivotModeChanged:i("pivot"),columnRowGroupChanged:i("rowGroup"),sortChanged:i("sort"),newColumnsLoaded:this.updateColumnAndGroupState.bind(this),columnGroupOpened:()=>this.updateCachedState("columnGroup",this.getColumnGroupState())})}setRowCountState(t,e,i){const{filter:s,rowGroupExpansion:o,ssrmRowGroupExpansion:n,rowSelection:r,pagination:l}=t;const a=(t,s)=>!i?.has(t)&&(s||e==="api");if(a("filter",s)){this.setFilterState(s)}if(a("rowGroupExpansion",o)){this.setRowGroupExpansionState(n,o,e)}if(a("rowSelection",r)){this.setRowSelectionState(r,e)}if(a("pagination",l)){this.setPaginationState(l,e)}const h=this.updateCachedState.bind(this);h("filter",this.getFilterState());if(this.beans.gos.get("ssrmExpandAllAffectsAllRows")){h("ssrmRowGroupExpansion",this.getRowGroupExpansionState());h("rowGroupExpansion",void 0)}else{h("rowGroupExpansion",this.getRowGroupExpansionState());h("ssrmRowGroupExpansion",void 0)}h("rowSelection",this.getRowSelectionState());h("pagination",this.getPaginationState())}setupStateOnRowCountReady(t){this.setRowCountState(t,"gridInitializing");const e=this.updateCachedState.bind(this);const i=()=>{this.updateRowGroupExpansionStateTimer=0;if(this.beans.gos.get("ssrmExpandAllAffectsAllRows")){e("ssrmRowGroupExpansion",this.getRowGroupExpansionState());e("rowGroupExpansion",void 0)}else{e("rowGroupExpansion",this.getRowGroupExpansionState());e("ssrmRowGroupExpansion",void 0)}};const s=()=>e("filter",this.getFilterState());const{gos:o,colFilter:n}=this.beans;this.addManagedEventListeners({filterChanged:s,rowExpansionStateChanged:this.onRowGroupOpenedDebounced,expandOrCollapseAll:i,columnRowGroupChanged:i,rowDataUpdated:()=>{if(o.get("groupDefaultExpanded")!==0||o.get("isGroupOpenByDefault")){this.updateRowGroupExpansionStateTimer||(this.updateRowGroupExpansionStateTimer=setTimeout(i))}},selectionChanged:()=>{this.staleStateKeys.add("rowSelection");this.onRowSelectedDebounced()},paginationChanged:t=>{if(t.newPage||t.newPageSize){e("pagination",this.getPaginationState())}}});if(n){this.addManagedListeners(n,{filterStateChanged:s})}}setFirstDataRenderedState(t,e,i){const{scroll:s,cellSelection:o,focusedCell:n,columnOrder:r,rowPinning:l}=t;const a=(t,s)=>!i?.has(t)&&(s||e==="api");if(a("focusedCell",n)){this.setFocusedCellState(n)}if(a("cellSelection",o)){this.setCellSelectionState(o)}if(a("scroll",s)){this.setScrollState(s)}if(a("rowPinning",l)){this.setRowPinningState(l)}this.setColumnPivotState(!!r?.orderedColIds,e);const h=this.updateCachedState.bind(this);h("sideBar",this.getSideBarState());h("focusedCell",this.getFocusedCellState());const c=this.getRangeSelectionState();h("rangeSelection",c);h("cellSelection",c);h("scroll",this.getScrollState())}setupStateOnFirstDataRendered(t){this.setFirstDataRenderedState(t,"gridInitializing");const e=this.updateCachedState.bind(this);const i=()=>e("focusedCell",this.getFocusedCellState());this.addManagedEventListeners({cellFocused:i,cellFocusCleared:i,cellSelectionChanged:t=>{if(t.finished){const t=this.getRangeSelectionState();e("rangeSelection",t);e("cellSelection",t)}},bodyScrollEnd:()=>e("scroll",this.getScrollState()),pinnedRowsChanged:()=>e("rowPinning",this.getRowPinningState())})}getColumnState(){const t=this.beans;return Yy(Io(t),t.colModel.isPivotMode())}setColumnState(t,e,i,s){const{sort:o,rowGroup:n,aggregation:r,pivot:l,columnPinning:a,columnVisibility:h,columnSizing:c,columnOrder:u}=t;let d=false;const f=(t,i)=>{const o=!s?.has(t)&&!!(i||e==="api");d||(d=o);return o};const g={};const p=t=>{let e=g[t];if(e){return e}e={colId:t};g[t]=e;return e};const m={};const v=f("sort",o);if(v){o?.sortModel.forEach((({colId:t,sort:e},i)=>{const s=p(t);s.sort=e;s.sortIndex=i}))}if(v||!i){m.sort=null;m.sortIndex=null}const w=f("rowGroup",n);if(w){n?.groupColIds.forEach(((t,e)=>{const i=p(t);i.rowGroup=true;i.rowGroupIndex=e}))}if(w||!i){m.rowGroup=null;m.rowGroupIndex=null}const C=f("aggregation",r);if(C){r?.aggregationModel.forEach((({colId:t,aggFunc:e})=>{p(t).aggFunc=e}))}if(C||!i){m.aggFunc=null}const b=f("pivot",l);if(b){l?.pivotColIds.forEach(((t,e)=>{const i=p(t);i.pivot=true;i.pivotIndex=e}));this.gos.updateGridOptions({options:{pivotMode:!!l?.pivotMode},source:e})}if(b||!i){m.pivot=null;m.pivotIndex=null}const y=f("columnPinning",a);if(y){for(const t of a?.leftColIds??[]){p(t).pinned="left"}for(const t of a?.rightColIds??[]){p(t).pinned="right"}}if(y||!i){m.pinned=null}const S=f("columnVisibility",h);if(S){for(const t of h?.hiddenColIds??[]){p(t).hide=true}}if(S||!i){m.hide=null}const x=f("columnSizing",c);if(x){for(const{colId:t,flex:e,width:i}of c?.columnSizingModel??[]){const s=p(t);s.flex=e??null;s.width=i}}if(x||!i){m.flex=null}const k=u?.orderedColIds;const R=!!k?.length&&!s?.has("columnOrder");const E=R?k.map((t=>p(t))):Object.values(g);if(E.length||d){this.columnStates=E;To(this.beans,{state:E,applyOrder:R,defaultState:m},e)}}setColumnPivotState(t,e){const i=this.columnStates;this.columnStates=void 0;const s=this.columnGroupStates;this.columnGroupStates=void 0;const o=this.beans;const{pivotResultCols:n,colGroupSvc:r}=o;if(!n?.isPivotResultColsPresent()){return}if(i){const s=[];for(const t of i){if(n.getPivotResultCol(t.colId)){s.push(t)}}To(o,{state:s,applyOrder:t},e)}if(s){r?.setColumnGroupState(s,e)}}getColumnGroupState(){const t=this.beans.colGroupSvc;if(!t){return void 0}const e=t.getColumnGroupState();return Xy(e)}setColumnGroupState(t,e,i){const s=this.beans.colGroupSvc;if(!s||i?.has("columnGroup")||e!=="api"&&!Object.prototype.hasOwnProperty.call(t,"columnGroup")){return}const o=new Set(t.columnGroup?.openColumnGroupIds);const n=s.getColumnGroupState();const r=n.map((({groupId:t})=>{const e=o.has(t);if(e){o.delete(t)}return{groupId:t,open:e}}));for(const t of o){r.push({groupId:t,open:true})}if(r.length){this.columnGroupStates=r}s.setColumnGroupState(r,e)}getFilterState(){const t=this.beans.filterManager;let e=t?.getFilterModel();if(e&&Object.keys(e).length===0){e=void 0}const i=t?.getFilterState();const s=t?.getAdvFilterModel()??void 0;return e||s||i?{filterModel:e,columnFilterState:i,advancedFilterModel:s}:void 0}setFilterState(t){const e=this.beans.filterManager;const{filterModel:i,columnFilterState:s,advancedFilterModel:o}=t??{filterModel:null,columnFilterState:null,advancedFilterModel:null};if(i!==void 0||s!==void 0){e?.setFilterState(i??null,s??null,"columnFilter")}if(o!==void 0){e?.setAdvFilterModel(o??null,"advancedFilter")}}getRangeSelectionState(){const t=this.beans.rangeSvc?.getCellRanges().map((t=>{const{id:e,type:i,startRow:s,endRow:o,columns:n,startColumn:r}=t;return{id:e,type:i,startRow:s,endRow:o,colIds:n.map((t=>t.getColId())),startColId:r.getColId()}}));return t?.length?{cellRanges:t}:void 0}setCellSelectionState(t){const{gos:e,rangeSvc:i,colModel:s,visibleCols:o}=this.beans;if(!ns(e)||!i){return}const n=[];for(const e of t?.cellRanges??[]){const t=[];for(const i of e.colIds){const e=s.getCol(i);if(e){t.push(e)}}if(!t.length){continue}let i=s.getCol(e.startColId);if(!i){const e=o.allCols;const s=new Set(t);i=e.find((t=>s.has(t)))}n.push({...e,columns:t,startColumn:i})}i.setCellRanges(n)}getScrollState(){if(!this.isClientSideRowModel){return void 0}const t=this.beans.ctrlsSvc.getScrollFeature();const{left:e}=t?.getHScrollPosition()??{left:0};const{top:i}=t?.getVScrollPosition()??{top:0};return i||e?{top:i,left:e}:void 0}setScrollState(t){if(!this.isClientSideRowModel){return}const{top:e,left:i}=t??{top:0,left:0};const{frameworkOverrides:s,rowRenderer:o,animationFrameSvc:n,ctrlsSvc:r}=this.beans;s.wrapIncoming((()=>{r.get("center").setCenterViewportScrollLeft(i);r.getScrollFeature()?.setVerticalScrollPosition(e);o.redraw({afterScroll:true});n?.flushAllFrames()}))}getSideBarState(){return this.beans.sideBar?.comp?.getState()}getFocusedCellState(){if(!this.isClientSideRowModel){return void 0}const t=this.beans.focusSvc.getFocusedCell();if(t){const{column:e,rowIndex:i,rowPinned:s}=t;return{colId:e.getColId(),rowIndex:i,rowPinned:s}}return void 0}setFocusedCellState(t){if(!this.isClientSideRowModel){return}const{focusSvc:e,colModel:i}=this.beans;if(!t){e.clearFocusedCell();return}const{colId:s,rowIndex:o,rowPinned:n}=t;e.setFocusedCell({column:i.getCol(s),rowIndex:o,rowPinned:n,forceBrowserFocus:true,preventScrollOnBrowserFocus:true})}getPaginationState(){const{pagination:t,gos:e}=this.beans;if(!t){return void 0}const i=t.getCurrentPage();const s=!e.get("paginationAutoPageSize")?t.getPageSize():void 0;if(!i&&!s){return}return{page:i,pageSize:s}}setPaginationState(t,e){const{pagination:i,gos:s}=this.beans;if(!i){return}const{pageSize:o,page:n}=t??{page:0,pageSize:s.get("paginationPageSize")};const r=e==="gridInitializing";if(o&&!s.get("paginationAutoPageSize")){i.setPageSize(o,r?"initialState":"pageSizeSelector")}if(typeof n==="number"){if(r){i.setPage(n)}else{i.goToPage(n)}}}getRowSelectionState(){const t=this.beans.selectionSvc;if(!t){return void 0}const e=t.getSelectionState();const i=!e||!Array.isArray(e)&&(e.selectAll===false||e.selectAllChildren===false)&&!e?.toggledNodes?.length;return i?void 0:e}setRowSelectionState(t,e){this.beans.selectionSvc?.setSelectionState(t,e,e==="api")}getRowGroupExpansionState(){const{expansionSvc:t}=this.beans;if(!t){return void 0}return t.getExpansionState()}getRowPinningState(){return this.beans.pinnedRowModel?.getPinnedState()}setRowPinningState(t){const e=this.beans.pinnedRowModel;if(t){e?.setPinnedState(t)}else{e?.reset()}}setRowGroupExpansionState(t,e,i){const s=this.beans.expansionSvc;if(!s){return}const o=e??{expandedRowGroupIds:[],collapsedRowGroupIds:[]};s.setExpansionState(o,i)}updateColumnState(t){const e=this.getColumnState();let i=false;const s=this.cachedState;for(const t of Object.keys(e)){const o=e[t];if(!n(o,s[t])){i=true}}this.cachedState={...s,...e};if(i){this.dispatchStateUpdateEvent(t)}}updateCachedState(t,e){const i=this.cachedState[t];this.setCachedStateValue(t,e);if(!n(e,i)){this.dispatchStateUpdateEvent([t])}}setCachedStateValue(t,e){this.cachedState={...this.cachedState,[t]:e}}refreshStaleState(){const t=this.staleStateKeys;for(const e of t){if(e==="rowSelection"){this.setCachedStateValue(e,this.getRowSelectionState())}}t.clear()}dispatchStateUpdateEvent(t){if(this.suppressEvents){return}for(const e of t){this.queuedUpdateSources.add(e)}this.dispatchStateUpdateEventDebounced()}dispatchQueuedStateUpdateEvents(){const t=this.queuedUpdateSources;const e=Array.from(t);t.clear();this.eventSvc.dispatchEvent({type:"stateUpdated",sources:e,state:this.cachedState})}startSuppressEvents(){this.suppressEvents=true;this.beans.colAnimation?.setSuppressAnimation(true)}stopSuppressEvents(t){setTimeout((()=>{this.suppressEvents=false;this.queuedUpdateSources.clear();if(!this.isAlive()){return}this.beans.colAnimation?.setSuppressAnimation(false);this.dispatchStateUpdateEvent([t])}))}suppressEventsAndDispatchInitEvent(t){this.startSuppressEvents();t();this.stopSuppressEvents("gridInitializing")}};var yF={moduleName:"GridState",version:ii,beans:[bF],apiFunctions:{getState:pF,setState:mF}};function SF(t){return t.rowModel.isLastRowIndexKnown()}function xF(t){return t.pagination?.getPageSize()??100}function kF(t){return t.pagination?.getCurrentPage()??0}function RF(t){return t.pagination?.getTotalPages()??1}function EF(t){return t.pagination?t.pagination.getMasterRowCount():t.rowModel.getRowCount()}function FF(t){t.pagination?.goToNextPage()}function MF(t){t.pagination?.goToPreviousPage()}function PF(t){t.pagination?.goToFirstPage()}function DF(t){t.pagination?.goToLastPage()}function TF(t,e){t.pagination?.goToPage(e)}var BF=class extends ge{constructor(){super(...arguments);this.beanName="paginationAutoPageSizeSvc"}postConstruct(){this.beans.ctrlsSvc.whenReady(this,(t=>{this.centerRowsCtrl=t.center;const e=this.checkPageSize.bind(this);this.addManagedEventListeners({bodyHeightChanged:e,scrollVisibilityChanged:e});this.addManagedPropertyListener("paginationAutoPageSize",this.onPaginationAutoSizeChanged.bind(this));this.checkPageSize()}))}notActive(){return!this.gos.get("paginationAutoPageSize")||this.centerRowsCtrl==null}onPaginationAutoSizeChanged(){if(this.notActive()){this.beans.pagination.unsetAutoCalculatedPageSize()}else{this.checkPageSize()}}checkPageSize(){if(this.notActive()){return}const t=this.centerRowsCtrl.viewportSizeFeature.getBodyHeight();if(t>0){const e=this.beans;const i=()=>{const i=Math.max(zi(e),1);const s=Math.floor(t/i);e.pagination.setPageSize(s,"autoCalculated")};if(!this.isBodyRendered){i();this.isBodyRendered=true}else{be(this,i,50)()}}else{this.isBodyRendered=false}}};var AF="paginationPageSizeSelector";var IF={tag:"span",cls:"ag-paging-page-size"};var zF=class extends Qo{constructor(){super(IF);this.hasEmptyOption=false;this.handlePageSizeItemSelected=()=>{if(!this.selectPageSizeComp){return}const t=this.selectPageSizeComp.getValue();if(!t){return}const e=Number(t);if(isNaN(e)||e<1||e===this.pagination.getPageSize()){return}this.pagination.setPageSize(e,"pageSizeSelector");if(this.hasEmptyOption){this.toggleSelectDisplay(true)}this.selectPageSizeComp.getFocusableElement().focus()}}wireBeans(t){this.pagination=t.pagination}postConstruct(){this.addManagedPropertyListener(AF,(()=>{this.onPageSizeSelectorValuesChange()}));this.addManagedEventListeners({paginationChanged:t=>this.handlePaginationChanged(t)})}handlePaginationChanged(t){if(!this.selectPageSizeComp||!t?.newPageSize){return}const e=this.pagination.getPageSize();if(this.getPageSizeSelectorValues().includes(e)){this.selectPageSizeComp.setValue(e.toString())}else if(this.hasEmptyOption){this.selectPageSizeComp.setValue("")}else{this.toggleSelectDisplay(true)}}toggleSelectDisplay(t){if(this.selectPageSizeComp&&!t){this.reset()}if(!t){return}this.reloadPageSizesSelector();if(!this.selectPageSizeComp){return}}reset(){bt(this.getGui());if(!this.selectPageSizeComp){return}this.selectPageSizeComp=this.destroyBean(this.selectPageSizeComp)}onPageSizeSelectorValuesChange(){if(!this.selectPageSizeComp){return}if(this.shouldShowPageSizeSelector()){this.reloadPageSizesSelector()}}shouldShowPageSizeSelector(){return this.gos.get("pagination")&&!this.gos.get("suppressPaginationPanel")&&!this.gos.get("paginationAutoPageSize")&&this.gos.get(AF)!==false}reloadPageSizesSelector(){const t=this.getPageSizeSelectorValues();const e=this.pagination.getPageSize();const i=!e||!t.includes(e);if(i){const i=this.gos.exists("paginationPageSize");const s=this.gos.get(AF)!==true;Ci(94,{pageSizeSet:i,pageSizesSet:s,pageSizeOptions:t,paginationPageSizeOption:e});if(!s){Ci(95,{paginationPageSizeOption:e,paginationPageSizeSelector:AF})}t.unshift("")}const s=String(i?"":e);if(this.selectPageSizeComp){if(!Ns(this.pageSizeOptions,t)){this.selectPageSizeComp.clearOptions().addOptions(this.createPageSizeSelectOptions(t));this.pageSizeOptions=t}this.selectPageSizeComp.setValue(s,true)}else{this.createPageSizeSelectorComp(t,s)}this.hasEmptyOption=i}createPageSizeSelectOptions(t){return t.map((t=>({value:String(t)})))}createPageSizeSelectorComp(t,e){const i=this.getLocaleTextFunc();const s=i("pageSizeSelectorLabel","Page Size:");const o=i("ariaPageSizeSelectorLabel","Page Size");this.selectPageSizeComp=this.createManagedBean(new gl).addOptions(this.createPageSizeSelectOptions(t)).setValue(e).setAriaLabel(o).setLabel(s).onValueChange((()=>this.handlePageSizeItemSelected()));this.appendChild(this.selectPageSizeComp)}getPageSizeSelectorValues(){const t=[20,50,100];const e=this.gos.get(AF);if(!Array.isArray(e)||!e?.length){return t}return[...e].sort(((t,e)=>t-e))}destroy(){this.toggleSelectDisplay(false);super.destroy()}};var HF={selector:"AG-PAGE-SIZE-SELECTOR",component:zF};var OF=`.ag-paging-panel{align-items:center;border-top:var(--ag-footer-row-border);display:flex;gap:calc(var(--ag-spacing)*4);height:var(--ag-pagination-panel-height);justify-content:flex-end;padding:0 var(--ag-cell-horizontal-padding)}:where(.ag-paging-page-size) .ag-wrapper{min-width:50px}.ag-paging-page-summary-panel{align-items:center;display:flex;gap:var(--ag-cell-widget-spacing);.ag-disabled &{pointer-events:none}}.ag-paging-button{cursor:pointer;position:relative;&.ag-disabled{cursor:default;opacity:.5}}.ag-paging-number,.ag-paging-row-summary-panel-number{font-weight:500}`;var LF=class extends Ud{constructor(){super();this.btFirst=jo;this.btPrevious=jo;this.btNext=jo;this.btLast=jo;this.lbRecordCount=jo;this.lbFirstRowOnPage=jo;this.lbLastRowOnPage=jo;this.lbCurrent=jo;this.lbTotal=jo;this.pageSizeComp=jo;this.previousAndFirstButtonsDisabled=false;this.nextButtonDisabled=false;this.lastButtonDisabled=false;this.areListenersSetup=false;this.allowFocusInnerElement=false;this.registerCSS(OF)}wireBeans(t){this.rowModel=t.rowModel;this.pagination=t.pagination;this.ariaAnnounce=t.ariaAnnounce}postConstruct(){const t=this.gos.get("enableRtl");this.setTemplate(this.getTemplate(),[HF]);const{btFirst:e,btPrevious:i,btNext:s,btLast:o}=this;this.activateTabIndex([e,i,s,o]);e.insertAdjacentElement("afterbegin",od(t?"last":"first",this.beans));i.insertAdjacentElement("afterbegin",od(t?"next":"previous",this.beans));s.insertAdjacentElement("afterbegin",od(t?"previous":"next",this.beans));o.insertAdjacentElement("afterbegin",od(t?"first":"last",this.beans));this.addManagedPropertyListener("pagination",this.onPaginationChanged.bind(this));this.addManagedPropertyListener("suppressPaginationPanel",this.onPaginationChanged.bind(this));this.addManagedPropertyListeners(["paginationPageSizeSelector","paginationAutoPageSize","suppressPaginationPanel"],(()=>this.onPageSizeRelatedOptionsChange()));this.pageSizeComp.toggleSelectDisplay(this.pageSizeComp.shouldShowPageSizeSelector());this.initialiseTabGuard({onTabKeyDown:()=>{},focusInnerElement:t=>{if(this.allowFocusInnerElement){return this.tabGuardFeature.getTabGuardCtrl().focusInnerElement(t)}else{return pu(this.beans,t)}},forceFocusOutWhenTabGuardsAreEmpty:true});this.onPaginationChanged()}setAllowFocus(t){this.allowFocusInnerElement=t}onPaginationChanged(){const t=this.gos.get("pagination");const e=t&&!this.gos.get("suppressPaginationPanel");this.setDisplayed(e);if(!e){return}this.setupListeners();this.enableOrDisableButtons();this.updateLabels();this.onPageSizeRelatedOptionsChange()}onPageSizeRelatedOptionsChange(){this.pageSizeComp.toggleSelectDisplay(this.pageSizeComp.shouldShowPageSizeSelector())}setupListeners(){if(!this.areListenersSetup){this.addManagedEventListeners({paginationChanged:this.onPaginationChanged.bind(this)});for(const t of[{el:this.btFirst,fn:this.onBtFirst.bind(this)},{el:this.btPrevious,fn:this.onBtPrevious.bind(this)},{el:this.btNext,fn:this.onBtNext.bind(this)},{el:this.btLast,fn:this.onBtLast.bind(this)}]){const{el:e,fn:i}=t;this.addManagedListeners(e,{click:i,keydown:t=>{if(t.key===Zn.ENTER||t.key===Zn.SPACE){t.preventDefault();i()}}})}gu(this.beans,this,this.getGui());this.areListenersSetup=true}}onBtFirst(){if(!this.previousAndFirstButtonsDisabled){this.pagination.goToFirstPage()}}formatNumber(t){const e=this.gos.getCallback("paginationNumberFormatter");if(e){const i={value:t};return e(i)}return oS(t,this.getLocaleTextFunc.bind(this))}getTemplate(){const t=this.getLocaleTextFunc();const e=`ag-${this.getCompId()}`;return{tag:"div",cls:"ag-paging-panel ag-unselectable",attrs:{id:`${e}`},children:[{tag:"ag-page-size-selector",ref:"pageSizeComp"},{tag:"span",cls:"ag-paging-row-summary-panel",children:[{tag:"span",ref:"lbFirstRowOnPage",cls:"ag-paging-row-summary-panel-number",attrs:{id:`${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`}}]},{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":t("firstPage","First Page")}},{tag:"div",ref:"btPrevious",cls:"ag-button ag-paging-button",role:"button",attrs:{"aria-label":t("previousPage","Previous Page")}},{tag:"span",cls:"ag-paging-description",children:[{tag:"span",attrs:{id:`${e}-start-page`},children:t("page","Page")},{tag:"span",ref:"lbCurrent",cls:"ag-paging-number",attrs:{id:`${e}-start-page-number`}},{tag:"span",attrs:{id:`${e}-of-page`},children:t("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":t("nextPage","Next Page")}},{tag:"div",ref:"btLast",cls:"ag-button ag-paging-button",role:"button",attrs:{"aria-label":t("lastPage","Last Page")}}]}]}}onBtNext(){if(!this.nextButtonDisabled){this.pagination.goToNextPage()}}onBtPrevious(){if(!this.previousAndFirstButtonsDisabled){this.pagination.goToPreviousPage()}}onBtLast(){if(!this.lastButtonDisabled){this.pagination.goToLastPage()}}enableOrDisableButtons(){const t=this.pagination.getCurrentPage();const e=this.rowModel.isLastRowIndexKnown();const i=this.pagination.getTotalPages();this.previousAndFirstButtonsDisabled=t===0;this.toggleButtonDisabled(this.btFirst,this.previousAndFirstButtonsDisabled);this.toggleButtonDisabled(this.btPrevious,this.previousAndFirstButtonsDisabled);const s=this.isZeroPagesToDisplay();const o=t===i-1;this.nextButtonDisabled=o||s;this.lastButtonDisabled=!e||s||t===i-1;this.toggleButtonDisabled(this.btNext,this.nextButtonDisabled);this.toggleButtonDisabled(this.btLast,this.lastButtonDisabled)}toggleButtonDisabled(t,e){z(t,e);t.classList.toggle("ag-disabled",e)}isZeroPagesToDisplay(){const t=this.rowModel.isLastRowIndexKnown();const e=this.pagination.getTotalPages();return t&&e===0}updateLabels(){const t=this.rowModel.isLastRowIndexKnown();const e=this.pagination.getTotalPages();const i=this.pagination.getMasterRowCount();const s=t?i:null;const o=this.pagination.getCurrentPage();const n=this.pagination.getPageSize();let r;let l;if(this.isZeroPagesToDisplay()){r=l=0}else{r=n*o+1;l=r+n-1;if(t&&l>s){l=s}}const a=r+n-1;const h=!t&&i0;const g=f?o+1:0;const p=this.formatNumber(g);this.lbCurrent.textContent=p;let m;let v;if(t){m=this.formatNumber(e);v=this.formatNumber(s)}else{const t=d("more","more");m=t;v=t}this.lbTotal.textContent=m;this.lbRecordCount.textContent=v;this.announceAriaStatus(c,u,v,p,m)}announceAriaStatus(t,e,i,s,o){const n=this.getLocaleTextFunc();const r=n("page","Page");const l=n("to","to");const a=n("of","of");const h=`${t} ${l} ${e} ${a} ${i}`;const c=`${r} ${s} ${a} ${o}`;if(h!==this.ariaRowStatus){this.ariaRowStatus=h;this.ariaAnnounce?.announceValue(h,"paginationRow")}if(c!==this.ariaPageStatus){this.ariaPageStatus=c;this.ariaAnnounce?.announceValue(c,"paginationPage")}}};var VF={selector:"AG-PAGINATION",component:LF};var NF=class extends ge{constructor(){super(...arguments);this.beanName="pagination";this.currentPage=0;this.topDisplayedRowIndex=0;this.bottomDisplayedRowIndex=0;this.masterRowCount=0}postConstruct(){const t=this.gos;this.active=t.get("pagination");this.pageSizeFromGridOptions=t.get("paginationPageSize");this.paginateChildRows=this.isPaginateChildRows();this.addManagedPropertyListener("pagination",this.onPaginationGridOptionChanged.bind(this));this.addManagedPropertyListener("paginationPageSize",this.onPageSizeGridOptionChanged.bind(this))}getPaginationSelector(){return VF}isPaginateChildRows(){const t=this.gos;const e=t.get("groupHideParentOfSingleChild")||t.get("groupRemoveSingleChildren")||t.get("groupRemoveLowestSingleChildren");if(e){return true}return t.get("paginateChildRows")}onPaginationGridOptionChanged(){this.active=this.gos.get("pagination");this.calculatePages();this.dispatchPaginationChangedEvent({keepRenderedRows:true})}onPageSizeGridOptionChanged(){this.setPageSize(this.gos.get("paginationPageSize"),"gridOptions")}goToPage(t){const e=this.currentPage;if(!this.active||e===t||typeof e!=="number"){return}const{editSvc:i}=this.beans;if(i?.isEditing()){if(i.isBatchEditing()){i.cleanupEditors()}else{i.stopEditing(void 0,{source:"api"})}}this.currentPage=t;this.calculatePages();this.dispatchPaginationChangedEvent({newPage:true})}goToPageWithIndex(t){if(!this.active){return}let e=t;if(!this.paginateChildRows){e=this.beans.rowModel.getTopLevelIndexFromDisplayedIndex?.(t)??t}this.goToPage(Math.floor(e/this.pageSize))}isRowInPage(t){if(!this.active){return true}return t>=this.topDisplayedRowIndex&&t<=this.bottomDisplayedRowIndex}getCurrentPage(){return this.currentPage}goToNextPage(){this.goToPage(this.currentPage+1)}goToPreviousPage(){this.goToPage(this.currentPage-1)}goToFirstPage(){this.goToPage(0)}goToLastPage(){const t=this.beans.rowModel.getRowCount();const e=Math.floor(t/this.pageSize);this.goToPage(e)}getPageSize(){return this.pageSize}getTotalPages(){return this.totalPages}setPage(t){this.currentPage=t}get pageSize(){if(i(this.pageSizeAutoCalculated)&&this.gos.get("paginationAutoPageSize")){return this.pageSizeAutoCalculated}if(i(this.pageSizeFromPageSizeSelector)){return this.pageSizeFromPageSizeSelector}if(i(this.pageSizeFromInitialState)){return this.pageSizeFromInitialState}if(i(this.pageSizeFromGridOptions)){return this.pageSizeFromGridOptions}return this.defaultPageSize}calculatePages(){if(this.active){if(this.paginateChildRows){this.calculatePagesAllRows()}else{this.calculatePagesMasterRowsOnly()}}else{this.calculatedPagesNotActive()}this.beans.pageBounds.calculateBounds(this.topDisplayedRowIndex,this.bottomDisplayedRowIndex)}unsetAutoCalculatedPageSize(){if(this.pageSizeAutoCalculated===void 0){return}const t=this.pageSizeAutoCalculated;this.pageSizeAutoCalculated=void 0;if(this.pageSize===t){return}this.calculatePages();this.dispatchPaginationChangedEvent({newPageSize:true})}setPageSize(t,e){const i=this.pageSize;switch(e){case"autoCalculated":this.pageSizeAutoCalculated=t;break;case"pageSizeSelector":this.pageSizeFromPageSizeSelector=t;if(this.currentPage!==0){this.goToFirstPage()}break;case"initialState":this.pageSizeFromInitialState=t;break;case"gridOptions":this.pageSizeFromGridOptions=t;this.pageSizeFromInitialState=void 0;this.pageSizeFromPageSizeSelector=void 0;if(this.currentPage!==0){this.goToFirstPage()}break}if(i!==this.pageSize){this.calculatePages();this.dispatchPaginationChangedEvent({newPageSize:true,keepRenderedRows:true})}}setZeroRows(){this.masterRowCount=0;this.topDisplayedRowIndex=0;this.bottomDisplayedRowIndex=-1;this.currentPage=0;this.totalPages=0}adjustCurrentPageIfInvalid(){const t=this.totalPages;if(this.currentPage>=t){this.currentPage=t-1}const e=this.currentPage;if(!isFinite(e)||isNaN(e)||e<0){this.currentPage=0}}calculatePagesMasterRowsOnly(){const t=this.beans.rowModel;const e=t.getTopLevelRowCount();this.masterRowCount=e;if(e<=0){this.setZeroRows();return}const i=this.pageSize;const s=e-1;this.totalPages=Math.floor(s/i)+1;this.adjustCurrentPageIfInvalid();const o=this.currentPage;const n=i*o;let r=i*(o+1)-1;if(r>s){r=s}this.topDisplayedRowIndex=t.getTopLevelRowDisplayedIndex(n);if(r===s){this.bottomDisplayedRowIndex=t.getRowCount()-1}else{const e=t.getTopLevelRowDisplayedIndex(r+1);this.bottomDisplayedRowIndex=e-1}}getMasterRowCount(){return this.masterRowCount}calculatePagesAllRows(){const t=this.beans.rowModel.getRowCount();this.masterRowCount=t;if(t===0){this.setZeroRows();return}const{pageSize:e,currentPage:i}=this;const s=t-1;this.totalPages=Math.floor(s/e)+1;this.adjustCurrentPageIfInvalid();this.topDisplayedRowIndex=e*i;this.bottomDisplayedRowIndex=e*(i+1)-1;if(this.bottomDisplayedRowIndex>s){this.bottomDisplayedRowIndex=s}}calculatedPagesNotActive(){this.setPageSize(void 0,"autoCalculated");this.totalPages=1;this.currentPage=0;this.topDisplayedRowIndex=0;this.bottomDisplayedRowIndex=this.beans.rowModel.getRowCount()-1}dispatchPaginationChangedEvent(t){const{keepRenderedRows:e=false,newPage:i=false,newPageSize:s=false}=t;this.eventSvc.dispatchEvent({type:"paginationChanged",animate:false,newData:false,newPage:i,newPageSize:s,keepRenderedRows:e})}};var GF={moduleName:"Pagination",version:ii,beans:[NF,BF],icons:{first:"first",previous:"previous",next:"next",last:"last"},apiFunctions:{paginationIsLastPageFound:SF,paginationGetPageSize:xF,paginationGetCurrentPage:kF,paginationGetTotalPages:RF,paginationGetRowCount:EF,paginationGoToNextPage:FF,paginationGoToPreviousPage:MF,paginationGoToFirstPage:PF,paginationGoToLastPage:DF,paginationGoToPage:TF},dependsOn:[DS]};function $F(t,e={}){const i=e?e.rowNodes:void 0;t.frameworkOverrides.wrapIncoming((()=>t.rowRenderer.redrawRows(i)))}function WF(t,e,i,s,o){if(e){if(s&&e.parent&&e.parent.level!==-1){WF(t,e.parent,i,s,o)}e.setExpanded(i,void 0,o)}}function UF(t,e){return t.rowModel.getRowNode(e)}function jF(t,e,i,s){t.rowRenderer.addRenderedRowListener(e,i,s)}function qF(t){return t.rowRenderer.getRenderedNodes()}function KF(t,e,i){t.rowModel.forEachNode(e,i)}function _F(t){return t.rowRenderer.firstRenderedRow}function ZF(t){return t.rowRenderer.lastRenderedRow}function QF(t,e){return t.rowModel.getRow(e)}function YF(t){return t.rowModel.getRowCount()}var JF={moduleName:"RowApi",version:ii,apiFunctions:{redrawRows:$F,setRowNodeExpanded:WF,getRowNode:UF,addRenderedRowListener:jF,getRenderedNodes:qF,forEachNode:KF,getFirstDisplayedRowIndex:_F,getLastDisplayedRowIndex:ZF,getDisplayedRowAtIndex:QF,getDisplayedRowCount:YF}};var XF={moduleName:"ScrollApi",version:ii,apiFunctions:{getVerticalPixelRange:Lk,getHorizontalPixelRange:Vk,ensureColumnVisible:Nk,ensureIndexVisible:Gk,ensureNodeVisible:$k}};function tM(t,e,i){if(!e){return}const s=t.ctrlsSvc.getGridBodyCtrl().eGridBody;const o=`aria-${e}`;if(i===null){s.removeAttribute(o)}else{s.setAttribute(o,i)}}function eM(t,e={}){t.frameworkOverrides.wrapIncoming((()=>t.rowRenderer.refreshCells(e)))}function iM(t){t.frameworkOverrides.wrapIncoming((()=>{for(const e of t.ctrlsSvc.getHeaderRowContainerCtrls()){e.refresh()}}))}function sM(t){return t.animationFrameSvc?.isQueueEmpty()??true}function oM(t){t.animationFrameSvc?.flushAllFrames()}function nM(t){return{rowHeight:zi(t),headerHeight:ku(t)}}function rM(t,e={}){const i=[];for(const s of t.rowRenderer.getCellCtrls(e.rowNodes,e.columns)){const t=s.getCellRenderer();if(t!=null){i.push(Kn(t))}}if(e.columns?.length){return i}const s=[];const o=oy(e.rowNodes);for(const e of t.rowRenderer.getAllRowCtrls()){if(o&&!ny(e.rowNode,o)){continue}if(!e.isFullWidth()){continue}const t=e.getFullWidthCellRenderers();for(let e=0;ethis.onFirstDataRendered(e)});const s=t.get("rowData");i=s!=null&&s.length>0&&Fi(t)}if(i){this.beans.colDelayRenderSvc?.hideColumns(s)}}}autoSizeCols(t){const{eventSvc:e,visibleCols:i}=this.beans;this.innerAutoSizeCols(t).then((s=>{const o=t=>Do(e,Array.from(t),true,"autosizeColumns");if(!t.scaleUpToFitGridWidth){return o(s)}const n=fM(this.beans);const r=t=>i.leftCols.some((e=>lo(e,t)));const l=t=>i.rightCols.some((e=>lo(e,t)));const a=t.colKeys.filter((t=>!to(t)&&!eo(t)&&!r(t)&&!l(t)));this.sizeColumnsToFit(n,t.source,true,{defaultMaxWidth:t.defaultMaxWidth,defaultMinWidth:t.defaultMinWidth,columnLimits:t.columnLimits?.map((t=>({...t,key:t.colId}))),colKeys:a,onlyScaleUp:true});o(s)}))}innerAutoSizeCols(t){return new Promise(((e,i)=>{if(this.shouldQueueResizeOperations){return this.pushResizeOperation((()=>this.innerAutoSizeCols(t).then(e,i)))}const{colKeys:s,skipHeader:o,skipHeaderGroups:n,stopAtGroup:r,defaultMaxWidth:l,defaultMinWidth:a,columnLimits:h=[],source:c="api"}=t;const{animationFrameSvc:u,renderStatus:d,colModel:f,autoWidthCalc:g,visibleCols:p}=this.beans;u?.flushAllFrames();if(this.timesDelayed<5&&d&&(!d.areHeaderCellsRendered()||!d.areCellsRendered())){this.timesDelayed++;setTimeout((()=>{if(this.isAlive()){this.innerAutoSizeCols(t).then(e,i)}}));return}this.timesDelayed=0;const m=new Set;let v=-1;const w=Object.fromEntries(h.map((({colId:t,...e})=>[t,e])));const C=o??this.gos.get("skipHeaderOnAutoSize");const b=n??C;while(v!==0){v=0;const t=[];for(const e of s){if(!e||io(e)){continue}const i=f.getCol(e);if(!i||m.has(i)){continue}const s=g.getPreferredWidthForColumn(i,C);if(s>0){const t=w[i.colId]??{};t.minWidth??(t.minWidth=a);t.maxWidth??(t.maxWidth=l);const e=dM(i,s,t);i.setActualWidth(e,c);m.add(i);v++}t.push(i)}if(t.length){p.refresh(c)}}if(!b){this.autoSizeColumnGroupsByColumns(s,c,r)}e(m)}))}autoSizeColumn(t,e,i){this.autoSizeCols({colKeys:[t],skipHeader:i,skipHeaderGroups:true,source:e})}autoSizeColumnGroupsByColumns(t,e,i){const{colModel:s,ctrlsSvc:o}=this.beans;const n=new Set;const r=s.getColsForKeys(t);for(const t of r){let e=t.getParent();while(e&&e!=i){if(!e.isPadding()){n.add(e)}e=e.getParent()}}let l;for(const t of n){for(const e of o.getHeaderRowContainerCtrls()){l=e.getHeaderCtrlForColumn(t);if(l){break}}l?.resizeLeafColumnsToFit(e)}}autoSizeAllColumns(t){if(this.shouldQueueResizeOperations){this.pushResizeOperation((()=>this.autoSizeAllColumns(t)));return}this.autoSizeCols({colKeys:this.beans.visibleCols.allCols,...t})}addColumnAutosizeListeners(t,e){const i=this.gos.get("skipHeaderOnAutoSize");const s=()=>{this.autoSizeColumn(e,"uiColumnResized",i)};t.addEventListener("dblclick",s);const o=new Zd(t);o.addEventListener("doubleTap",s);return()=>{t.removeEventListener("dblclick",s);o.destroy()}}addColumnGroupResize(t,e,i){const s=this.gos.get("skipHeaderOnAutoSize");const o=()=>{const t=[];const o=e.getDisplayedLeafColumns();for(const e of o){if(!e.getColDef().suppressAutoSize){t.push(e.getColId())}}if(t.length>0){this.autoSizeCols({colKeys:t,skipHeader:s,stopAtGroup:e,source:"uiColumnResized"})}i()};t.addEventListener("dblclick",o);return()=>t.removeEventListener("dblclick",o)}sizeColumnsToFitGridBody(t,e){if(!this.isAlive()){return}const i=fM(this.beans);if(i>0){this.sizeColumnsToFit(i,"sizeColumnsToFit",false,t);return}if(e===void 0){window.setTimeout((()=>{this.sizeColumnsToFitGridBody(t,100)}),0)}else if(e===100){window.setTimeout((()=>{this.sizeColumnsToFitGridBody(t,500)}),100)}else if(e===500){window.setTimeout((()=>{this.sizeColumnsToFitGridBody(t,-1)}),500)}else{Ci(29)}}sizeColumnsToFit(t,e="sizeColumnsToFit",i,s){if(this.shouldQueueResizeOperations){this.pushResizeOperation((()=>this.sizeColumnsToFit(t,e,i,s)));return}const o={};for(const{key:t,...e}of s?.columnLimits??[]){o[typeof t==="string"?t:t.getColId()]=e}const n=this.beans.visibleCols.allCols;if(t<=0||!n.length){return}const r=Ys(n);if(s?.onlyScaleUp&&r>t){return}const l=t===r;if(l){const t=n.every((t=>{if(t.colDef.suppressSizeToFit){return true}const e=o?.[t.getId()];const i=e?.minWidth??s?.defaultMinWidth;const n=e?.maxWidth??s?.defaultMaxWidth;const r=t.getActualWidth();return(i==null||r>=i)&&(n==null||r<=n)}));if(t){return}}const a=[];const h=[];for(const t of n){const e=s?.colKeys?.some((e=>lo(t,e)))??true;if(t.getColDef().suppressSizeToFit||!e){h.push(t)}else{a.push(t)}}const c=a.slice(0);let u=false;const d=t=>{$s(a,t);h.push(t)};for(const t of a){t.resetActualWidth(e);const i=o?.[t.getId()];const n=i?.minWidth??s?.defaultMinWidth;const r=i?.maxWidth??s?.defaultMaxWidth;const l=t.getActualWidth();if(typeof n==="number"&&lr){t.setActualWidth(r,e,true)}}while(!u){u=true;const i=t-Ys(h);if(i<=0){for(const t of a){const i=o?.[t.getId()]?.minWidth??s?.defaultMinWidth??t.minWidth;t.setActualWidth(i,e,true)}}else{const t=i/Ys(a);let n=i;for(let i=a.length-1;i>=0;i--){const r=a[i];const l=o?.[r.getId()];const h=l?.minWidth??s?.defaultMinWidth;const c=l?.maxWidth??s?.defaultMaxWidth;const f=r.getMinWidth();const g=r.getMaxWidth();const p=typeof h==="number"&&h>f?h:f;const m=typeof c==="number"&&cm){v=m;d(r);u=false}else if(i===0){v=n}r.setActualWidth(v,e,true);n-=v}}}for(const t of c){t.fireColumnWidthChangedEvent(e)}const f=this.beans.visibleCols;f.setLeftValues(e);f.updateBodyWidths();if(i){return}Do(this.eventSvc,c,true,e)}applyAutosizeStrategy(){const{gos:t,colDelayRenderSvc:e}=this.beans;const i=t.get("autoSizeStrategy");if(i?.type!=="fitGridWidth"&&i?.type!=="fitProvidedWidth"){return}setTimeout((()=>{if(!this.isAlive()){return}const t=i.type;if(t==="fitGridWidth"){const{columnLimits:t,defaultMinWidth:e,defaultMaxWidth:s}=i;const o=t?.map((({colId:t,minWidth:e,maxWidth:i})=>({key:t,minWidth:e,maxWidth:i})));this.sizeColumnsToFitGridBody({defaultMinWidth:e,defaultMaxWidth:s,columnLimits:o})}else if(t==="fitProvidedWidth"){this.sizeColumnsToFit(i.width,"sizeColumnsToFit")}e?.revealColumns(t)}))}onFirstDataRendered({colIds:t,...e}){setTimeout((()=>{if(!this.isAlive()){return}const i="autosizeColumns";if(t){this.autoSizeCols({...e,source:i,colKeys:t})}else{this.autoSizeAllColumns({...e,source:i})}this.beans.colDelayRenderSvc?.revealColumns(e.type)}))}processResizeOperations(){this.shouldQueueResizeOperations=false;for(const t of this.resizeOperationQueue){t()}this.resizeOperationQueue=[]}pushResizeOperation(t){this.resizeOperationQueue.push(t)}destroy(){this.resizeOperationQueue.length=0;super.destroy()}};function dM(t,e,i={}){const s=i.minWidth??t.getMinWidth();if(eo){e=o}return e}function fM({ctrlsSvc:t,scrollVisibleSvc:e}){const i=t.getGridBodyCtrl();const s=i.isVerticalScrollShowing();const o=s?e.getScrollbarWidth():0;const n=gt(i.eGridBody);return n-o}var gM={moduleName:"ColumnAutoSize",version:ii,beans:[uM],apiFunctions:{sizeColumnsToFit:aM,autoSizeColumns:hM,autoSizeAllColumns:cM},dependsOn:[op]};var pM=`.ag-row-pinned-source{background-color:var(--ag-pinned-source-row-background-color);color:var(--ag-pinned-source-row-text-color);font-weight:var(--ag-pinned-source-row-font-weight)}.ag-row-pinned-manual{background-color:var(--ag-pinned-row-background-color);color:var(--ag-pinned-row-text-color);font-weight:var(--ag-pinned-row-font-weight)}`;function mM(t){return t.pinnedRowModel?.getPinnedTopRowCount()??0}function vM(t){return t.pinnedRowModel?.getPinnedBottomRowCount()??0}function wM(t,e){return t.pinnedRowModel?.getPinnedTopRow(e)}function CM(t,e){return t.pinnedRowModel?.getPinnedBottomRow(e)}function bM(t,e,i){return t.pinnedRowModel?.forEachPinnedRow(e,i)}var yM={moduleName:"PinnedRow",version:ii,beans:[Td],css:[pM],apiFunctions:{getPinnedTopRowCount:mM,getPinnedBottomRowCount:vM,getPinnedTopRow:wM,getPinnedBottomRow:CM,forEachPinnedRow:bM},icons:{rowPin:"pin",rowPinTop:"pinned-top",rowPinBottom:"pinned-bottom",rowUnpin:"un-pin"}};var SM=class{constructor(t,e){this.col=t;this.firstNode=e;this.cellSpan=true;this.spannedNodes=new Set;this.addSpannedNode(e)}reset(){this.spannedNodes.clear();this.addSpannedNode(this.firstNode)}addSpannedNode(t){this.spannedNodes.add(t);this.lastNode=t}getLastNode(){return this.lastNode}getCellHeight(){return this.lastNode.rowTop+this.lastNode.rowHeight-this.firstNode.rowTop-1}doesSpanContain(t){if(t.column!==this.col){return false}if(t.rowPinned!=this.firstNode.rowPinned){return false}return this.firstNode.rowIndex<=t.rowIndex&&t.rowIndex<=this.lastNode.rowIndex}getLastNodeAutoHeight(){const t=this.firstNode.__autoHeights?.[this.col.getColId()];if(t==null){return void 0}let e=0;for(const t of this.spannedNodes){if(t===this.lastNode){continue}e+=t.rowHeight}return t-e}};var xM=class extends ge{constructor(t){super();this.column=t}buildCache(t){const{column:e,beans:{gos:i,pinnedRowModel:s,rowModel:o,valueSvc:n,pagination:r}}=this;const{colDef:l}=e;const a=this.getNodeMap(t);const h=new Map;const c=i.getCallback("isFullWidthRow");const u=l.equals;const d=l.spanRows;const f=typeof d==="function";let g=null;let p=null;let m;const v=(t,e)=>{g=t;p=null;m=e};const w=t=>{const s=!t.isExpandable()&&!t.group&&!t.detail&&(c?!c({rowNode:t}):true);if(t.rowIndex==null||!s){v(null,null);return}if(g==null||t.level!==g.level||t.footer||p&&t.rowIndex-1!==p?.getLastNode().rowIndex){v(t,n.getValue(e,t));return}const o=n.getValue(e,t);if(f){const s=Rs(i,{valueA:m,nodeA:g,valueB:o,nodeB:t,column:e,colDef:l});if(!d(s)){v(t,o);return}}else if(u?!u(m,o):m!==o){v(t,o);return}if(!p){const t=a?.get(g);if(t?.firstNode===g){t.reset();p=t}else{p=new SM(e,g)}h.set(g,p)}p.addSpannedNode(t);h.set(t,p)};switch(t){case"center":o.forEachDisplayedNode?.((t=>{const e=!r||r.isRowInPage(t.rowIndex);if(!e){return}w(t)}));this.centerValueNodeMap=h;break;case"top":s?.forEachPinnedRow("top",w);this.topValueNodeMap=h;break;case"bottom":s?.forEachPinnedRow("bottom",w);this.bottomValueNodeMap=h;break}}isCellSpanning(t){return!!this.getCellSpan(t)}getCellSpan(t){return this.getNodeMap(t.rowPinned).get(t)}getNodeMap(t){switch(t){case"top":return this.topValueNodeMap;case"bottom":return this.bottomValueNodeMap;default:return this.centerValueNodeMap}}};var kM=class extends ge{constructor(){super(...arguments);this.beanName="rowSpanSvc";this.spanningColumns=new Map;this.debouncePinnedEvent=be(this,this.dispatchCellsUpdatedEvent.bind(this,true),0);this.debounceModelEvent=be(this,this.dispatchCellsUpdatedEvent.bind(this,false),0);this.pinnedTimeout=null;this.modelTimeout=null}postConstruct(){const t=this.onRowDataUpdated.bind(this);const e=this.buildPinnedCaches.bind(this);this.addManagedEventListeners({paginationChanged:this.buildModelCaches.bind(this),pinnedRowDataChanged:e,pinnedRowsChanged:e,rowNodeDataChanged:t,cellValueChanged:t})}register(t){const{gos:e}=this.beans;if(!e.get("enableCellSpan")){return}if(this.spanningColumns.has(t)){return}const i=this.createManagedBean(new xM(t));this.spanningColumns.set(t,i);i.buildCache("top");i.buildCache("bottom");i.buildCache("center");this.debouncePinnedEvent();this.debounceModelEvent()}dispatchCellsUpdatedEvent(t){this.dispatchLocalEvent({type:"spannedCellsUpdated",pinned:t})}deregister(t){this.spanningColumns.delete(t)}onRowDataUpdated({node:t}){const{spannedRowRenderer:e}=this.beans;if(t.rowPinned){if(this.pinnedTimeout!=null){return}this.pinnedTimeout=window.setTimeout((()=>{this.pinnedTimeout=null;this.buildPinnedCaches();e?.createCtrls("top");e?.createCtrls("bottom")}),0);return}if(this.modelTimeout!=null){return}this.modelTimeout=window.setTimeout((()=>{this.modelTimeout=null;this.buildModelCaches();e?.createCtrls("center")}),0)}buildModelCaches(){if(this.modelTimeout!=null){clearTimeout(this.modelTimeout)}this.spanningColumns.forEach((t=>t.buildCache("center")));this.debounceModelEvent()}buildPinnedCaches(){if(this.pinnedTimeout!=null){clearTimeout(this.pinnedTimeout)}this.spanningColumns.forEach((t=>{t.buildCache("top");t.buildCache("bottom")}));this.debouncePinnedEvent()}isCellSpanning(t,e){const i=this.spanningColumns.get(t);if(!i){return false}return i.isCellSpanning(e)}getCellSpanByPosition(t){const{pinnedRowModel:e,rowModel:i}=this.beans;const s=t.column;const o=t.rowIndex;const n=this.spanningColumns.get(s);if(!n){return void 0}let r;switch(t.rowPinned){case"top":r=e?.getPinnedTopRow(o);break;case"bottom":r=e?.getPinnedBottomRow(o);break;default:r=i.getRow(o)}if(!r){return void 0}return n.getCellSpan(r)}getCellStart(t){const e=this.getCellSpanByPosition(t);if(!e){return t}return{...t,rowIndex:e.firstNode.rowIndex}}getCellEnd(t){const e=this.getCellSpanByPosition(t);if(!e){return t}return{...t,rowIndex:e.getLastNode().rowIndex}}getCellSpan(t,e){const i=this.spanningColumns.get(t);if(!i){return void 0}return i.getCellSpan(e)}forEachSpannedColumn(t,e){for(const[i,s]of this.spanningColumns){if(s.isCellSpanning(t)){const o=s.getCellSpan(t);e(i,o)}}}destroy(){super.destroy();this.spanningColumns.clear()}};var RM=class extends kb{constructor(t,e,i){super(t.col,t.firstNode,i,e);this.cellSpan=t;this.SPANNED_CELL_CSS_CLASS="ag-spanned-cell"}setComp(t,e,i,s,o,n,r){this.eWrapper=i;super.setComp(t,e,i,s,o,n,r);this.setAriaRowSpan();this.refreshAriaRowIndex()}isCellSpanning(){return true}getCellSpan(){return this.cellSpan}refreshAriaRowIndex(){const{eGui:t,rowNode:e}=this;if(!t||e.rowIndex==null){return}U(t,e.rowIndex)}setAriaRowSpan(){j(this.eGui,this.cellSpan.spannedNodes.size)}setFocusedCellPosition(t){this.focusedCellPosition=t}getFocusedCellPosition(){return this.focusedCellPosition??this.cellPosition}checkCellFocused(){const t=this.beans.focusSvc.getFocusedCell();return!!t&&this.cellSpan.doesSpanContain(t)}applyStaticCssClasses(){super.applyStaticCssClasses();this.comp.toggleCss(this.SPANNED_CELL_CSS_CLASS,true)}onCellFocused(t){const{beans:e}=this;if(vu(e)){this.focusedCellPosition=void 0;return}const i=this.isCellFocused();if(!i){this.focusedCellPosition=void 0}if(t&&i){this.focusedCellPosition={rowIndex:t.rowIndex,rowPinned:t.rowPinned,column:t.column}}super.onCellFocused(t)}getRootElement(){return this.eWrapper}};var EM=class extends Pb{onRowIndexChanged(){super.onRowIndexChanged();for(const t of this.getAllCellCtrls()){t.refreshAriaRowIndex()}}getInitialRowClasses(t){return["ag-spanned-row"]}getNewCellCtrl(t){const e=this.beans.rowSpanSvc?.getCellSpan(t,this.rowNode);if(!e){return}const i=e.firstNode!==this.rowNode;if(i){return}return new RM(e,this,this.beans)}isCorrectCtrlForSpan(t){const e=this.beans.rowSpanSvc?.getCellSpan(t.column,this.rowNode);if(!e){return false}const i=e.firstNode!==this.rowNode;if(i){return false}return t.getCellSpan()===e}onRowHeightChanged(){}refreshFirstAndLastRowStyles(){}addHoverFunctionality(){}resetHoveredStatus(){}};var FM=class extends ge{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(t){const{rowSpanSvc:e}=this.beans;const i=this.getCtrlsMap(t);const s=i.size;const o=this.getAllRelevantRowControls(t);const n=new Map;let r=false;for(const t of o){if(!t.isAlive()){continue}e?.forEachSpannedColumn(t.rowNode,((t,e)=>{if(n.has(e.firstNode)){return}const s=i.get(e.firstNode);if(s){n.set(e.firstNode,s);i.delete(e.firstNode);return}r=true;const o=new EM(e.firstNode,this.beans,false,false,false);n.set(e.firstNode,o)}))}this.setCtrlsMap(t,n);const l=n.size===s;if(!r&&l){return}for(const t of i.values()){t.destroyFirstPass(true);t.destroySecondPass()}this.dispatchLocalEvent({type:`spannedRowsUpdated`,ctrlsKey:t})}getAllRelevantRowControls(t){const{rowRenderer:e}=this.beans;switch(t){case"top":return e.topRowCtrls;case"bottom":return e.bottomRowCtrls;case"center":return e.allRowCtrls}}getCellByPosition(t){const{rowSpanSvc:e}=this.beans;const i=e?.getCellSpanByPosition(t);if(!i){return void 0}const s=this.getCtrlsMap(t.rowPinned).get(i.firstNode);if(!s){return void 0}return s.getAllCellCtrls().find((e=>e.column===t.column))}getCtrls(t){return[...this.getCtrlsMap(t).values()]}destroyRowCtrls(t){for(const e of this.getCtrlsMap(t).values()){e.destroyFirstPass(true);e.destroySecondPass()}this.setCtrlsMap(t,new Map)}getCtrlsMap(t){switch(t){case"top":return this.topCtrls;case"bottom":return this.bottomCtrls;default:return this.centerCtrls}}setCtrlsMap(t,e){switch(t){case"top":this.topCtrls=e;break;case"bottom":this.bottomCtrls=e;break;default:this.centerCtrls=e;break}}destroy(){super.destroy();this.destroyRowCtrls("top");this.destroyRowCtrls("bottom");this.destroyRowCtrls("center")}};var MM={moduleName:"CellSpan",version:ii,beans:[kM,FM]};var PM=class extends ge{constructor(t,e){super();this.cellCtrl=t;this.staticClasses=[];this.beans=e;this.column=t.column}setComp(t){this.cellComp=t;this.applyUserStyles();this.applyCellClassRules();this.applyClassesFromColDef()}applyCellClassRules(){const{column:t,cellComp:e}=this;const i=t.colDef;const s=i.cellClassRules;const o=this.getCellClassParams(t,i);Rb(this.beans.expressionSvc,s===this.cellClassRules?void 0:this.cellClassRules,s,o,(t=>e.toggleCss(t,true)),(t=>e.toggleCss(t,false)));this.cellClassRules=s}applyUserStyles(){const t=this.column;const e=t.colDef;const i=e.cellStyle;if(!i){return}let s;if(typeof i==="function"){const o=this.getCellClassParams(t,e);s=i(o)}else{s=i}if(s){this.cellComp.setUserStyles(s)}}applyClassesFromColDef(){const{column:t,cellComp:e}=this;const i=t.colDef;const s=this.getCellClassParams(t,i);for(const t of this.staticClasses){e.toggleCss(t,false)}const o=this.beans.cellStyles.getStaticCellClasses(i,s);this.staticClasses=o;for(const t of o){e.toggleCss(t,true)}}getCellClassParams(t,e){const{value:i,rowNode:s}=this.cellCtrl;return Rs(this.beans.gos,{value:i,data:s.data,node:s,colDef:e,column:t,rowIndex:s.rowIndex})}};var DM=class extends ge{constructor(){super(...arguments);this.beanName="cellStyles"}processAllCellClasses(t,e,i,s){Rb(this.beans.expressionSvc,void 0,t.cellClassRules,e,i,s);this.processStaticCellClasses(t,e,i)}getStaticCellClasses(t,e){const{cellClass:i}=t;if(!i){return[]}let s;if(typeof i==="function"){const t=i;s=t(e)}else{s=i}if(typeof s==="string"){s=[s]}return s||[]}createCellCustomStyleFeature(t,e){return new PM(t,e)}processStaticCellClasses(t,e,i){const s=this.getStaticCellClasses(t,e);s.forEach((t=>{i(t)}))}};var TM={moduleName:"CellStyle",version:ii,beans:[DM]};var BM={moduleName:"RowStyle",version:ii,beans:[Fb]};function AM(t,e){return!!t.colHover?.isHovered(e)}var IM=class extends ge{constructor(t,e){super();this.columns=t;this.element=e;this.destroyManagedListeners=[];this.enableFeature=t=>{const{beans:e,gos:i,element:s,columns:o}=this;const n=e.colHover;const r=t??!!i.get("columnHoverHighlight");if(r){this.destroyManagedListeners=this.addManagedElementListeners(s,{mouseover:n.setMouseOver.bind(n,o),mouseout:n.clearMouseOver.bind(n)})}else{for(const t of this.destroyManagedListeners){t()}this.destroyManagedListeners=[]}}}postConstruct(){this.addManagedPropertyListener("columnHoverHighlight",(({currentValue:t})=>{this.enableFeature(t)}));this.enableFeature()}destroy(){super.destroy();this.destroyManagedListeners=null}};var zM="ag-column-hover";var HM=class extends ge{constructor(){super(...arguments);this.beanName="colHover"}postConstruct(){this.addManagedPropertyListener("columnHoverHighlight",(({currentValue:t})=>{if(!t){this.clearMouseOver()}}))}setMouseOver(t){this.updateState(t)}clearMouseOver(){this.updateState(null)}isHovered(t){if(!this.gos.get("columnHoverHighlight")){return false}const e=this.selectedColumns;return!!e&&e.indexOf(t)>=0}addHeaderColumnHoverListener(t,e,i){const s=()=>{const t=this.isHovered(i);e.toggleCss("ag-column-hover",t)};t.addManagedEventListeners({columnHoverChanged:s});s()}onCellColumnHover(t,e){if(!e){return}const i=this.isHovered(t);e.toggleCss(zM,i)}addHeaderFilterColumnHoverListener(t,e,i,s){this.createHoverFeature(t,[i],s);const o=()=>{const t=this.isHovered(i);e.toggleCss("ag-column-hover",t)};t.addManagedEventListeners({columnHoverChanged:o});o()}createHoverFeature(t,e,i){t.createManagedBean(new IM(e,i))}updateState(t){this.selectedColumns=t;this.eventSvc.dispatchEvent({type:"columnHoverChanged"})}};var OM={moduleName:"ColumnHover",version:ii,beans:[HM],apiFunctions:{isColumnHovered:AM}};var LM=class extends ge{constructor(){super(...arguments);this.beanName="apiEventSvc";this.syncListeners=new Map;this.asyncListeners=new Map;this.syncGlobalListeners=new Set;this.globalListenerPairs=new Map}postConstruct(){this.wrapSvc=this.beans.frameworkOverrides.createGlobalEventListenerWrapper?.()}addListener(t,e){const i=this.wrapSvc?.wrap(t,e)??e;const s=!Dw.has(t);const o=s?this.asyncListeners:this.syncListeners;if(!o.has(t)){o.set(t,new Set)}o.get(t).add(i);this.eventSvc.addListener(t,i,s)}removeListener(t,e){const i=this.wrapSvc?.unwrap(t,e)??e;const s=this.asyncListeners.get(t);const o=!!s?.delete(i);if(!o){this.syncListeners.get(t)?.delete(i)}this.eventSvc.removeListener(t,i,o)}addGlobalListener(t){const e=this.wrapSvc?.wrapGlobal(t)??t;const i=(t,i)=>{if(Dw.has(t)){e(t,i)}};const s=(t,i)=>{if(!Dw.has(t)){e(t,i)}};this.globalListenerPairs.set(t,{syncListener:i,asyncListener:s});const o=this.eventSvc;o.addGlobalListener(i,false);o.addGlobalListener(s,true)}removeGlobalListener(t){const{eventSvc:e,wrapSvc:i,globalListenerPairs:s}=this;const o=i?.unwrapGlobal(t)??t;const n=s.has(o);if(n){const{syncListener:i,asyncListener:n}=s.get(o);e.removeGlobalListener(i,false);e.removeGlobalListener(n,true);s.delete(t)}else{this.syncGlobalListeners.delete(o);e.removeGlobalListener(o,false)}}destroyEventListeners(t,e){t.forEach(((t,i)=>{t.forEach((t=>this.eventSvc.removeListener(i,t,e)));t.clear()}));t.clear()}destroyGlobalListeners(t,e){for(const i of t){this.eventSvc.removeGlobalListener(i,e)}t.clear()}destroy(){super.destroy();this.destroyEventListeners(this.syncListeners,false);this.destroyEventListeners(this.asyncListeners,true);this.destroyGlobalListeners(this.syncGlobalListeners,false);const{globalListenerPairs:t,eventSvc:e}=this;t.forEach((({syncListener:t,asyncListener:i})=>{e.removeGlobalListener(t,false);e.removeGlobalListener(i,true)}));t.clear()}};function VM(t,e,i){t.apiEventSvc?.addListener(e,i)}function NM(t,e,i){t.apiEventSvc?.removeListener(e,i)}function GM(t,e){t.apiEventSvc?.addGlobalListener(e)}function $M(t,e){t.apiEventSvc?.removeGlobalListener(e)}var WM={moduleName:"EventApi",version:ii,apiFunctions:{addEventListener:VM,addGlobalListener:GM,removeEventListener:NM,removeGlobalListener:$M},beans:[LM]};var UM={moduleName:"Locale",version:ii,beans:[Qy]};var jM=class extends ge{constructor(){super(...arguments);this.beanName="rowAutoHeight";this.wasEverActive=false;this._debouncedCalculateRowHeights=be(this,this.calculateRowHeights.bind(this),1)}requestCheckAutoHeight(){if(!this.wasEverActive){return}this._debouncedCalculateRowHeights()}calculateRowHeights(){const{visibleCols:t,rowModel:e,rowSpanSvc:i,pinnedRowModel:s}=this.beans;const o=t.autoHeightCols;let n=false;const r=t=>{const e=t.__autoHeights;let s=Ai(this.beans,t).height;for(const n of o){let o=e?.[n.getColId()];const r=i?.getCellSpan(n,t);if(r){if(r.getLastNode()!==t){continue}o=i?.getCellSpan(n,t)?.getLastNodeAutoHeight();if(!o){return}}if(o==null){if(this.colSpanSkipCell(n,t)){continue}return}s=Math.max(o,s)}if(s!==t.rowHeight){t.setRowHeight(s);n=true}};s?.forEachPinnedRow?.("top",r);s?.forEachPinnedRow?.("bottom",r);e.forEachDisplayedNode?.(r);if(n){e.onRowHeightChanged?.()}}setRowAutoHeight(t,e,i){t.__autoHeights??(t.__autoHeights={});if(e==void 0){delete t.__autoHeights[i.getId()];return}const s=t.__autoHeights[i.getId()];t.__autoHeights[i.getId()]=e;if(s!==e){this.requestCheckAutoHeight()}}colSpanSkipCell(t,e){const{colModel:i,colViewport:s,visibleCols:o}=this.beans;if(!i.colSpanActive){return false}let n=[];switch(t.getPinned()){case"left":n=o.getLeftColsForRow(e);break;case"right":n=o.getRightColsForRow(e);break;case null:n=s.getColsWithinViewport(e);break}return!n.includes(t)}setupCellAutoHeight(t,e,i){if(!t.column.isAutoHeight()||!e){return false}this.wasEverActive=true;const s=e.parentElement;const{rowNode:o,column:n}=t;const r=this.beans;const l=a=>{if(this.beans.editSvc?.isEditing(t)){return}if(!t.isAlive()||!i.isAlive()){return}const{paddingTop:h,paddingBottom:c,borderBottomWidth:u,borderTopWidth:d}=dt(s);const g=h+c+u+d;const p=e.offsetHeight;const m=p+g;if(a<5){const t=f(r);const i=!t?.contains(e);const s=m==0;if(i||s){window.setTimeout((()=>l(a+1)),0);return}}this.setRowAutoHeight(o,m,n)};const a=()=>l(0);a();const h=Lt(r,e,a);i.addDestroyFunc((()=>{h();this.setRowAutoHeight(o,void 0,n)}));return true}setAutoHeightActive(t){this.active=t.list.some((t=>t.isVisible()&&t.isAutoHeight()))}areRowsMeasured(){if(!this.active){return true}const t=this.beans.rowRenderer.getAllRowCtrls();let e=null;for(const{rowNode:i}of t){if(!e||this.beans.colModel.colSpanActive){const t=this.beans.colViewport.getColsWithinViewport(i);e=t.filter((t=>t.isAutoHeight()))}if(e.length===0){continue}if(!i.__autoHeights){return false}for(const t of e){const e=i.__autoHeights[t.getColId()];if(!e||i.rowHeight{const i=e[t];return i!=null?`${t}=${i}`:null})).filter(Boolean).join(";");return[t,i].filter((t=>t.length>0)).join(":")}var ZM={grid(t){return _M("ag-grid-root",{gridId:t})},headerGroupCell(t){return _M("ag-header-group-cell",{colId:t})},headerCell(t){return _M("ag-header-cell",{colId:t})},headerCheckbox(t){return _M("ag-header-selection-checkbox",{colId:t})},headerFilterButton(t){return _M("ag-header-cell-filter-button",{colId:t})},floatingFilter(t){return _M("ag-floating-filter",{colId:t})},floatingFilterButton(t){return _M("ag-floating-filter-button",{colId:t})},headerCellMenuButton(t){return _M("ag-header-cell-menu-button",{colId:t})},headerResizeHandle(t){return _M("ag-header-cell-resize",{colId:t})},filterInstancePickerDisplay(t){return _M(`ag-${t.source}-picker-display`,t.source==="filter-toolpanel"?{label:t.colLabel}:{colId:t.colId})},numberFilterInstanceInput(t){return _M(`ag-${t.source}-number-input`,t.source==="filter-toolpanel"?{label:t.colLabel}:{colId:t.colId})},textFilterInstanceInput(t){return _M(`ag-${t.source}-text-input`,t.source==="filter-toolpanel"?{label:t.colLabel}:{colId:t.colId})},dateFilterInstanceInput(t){return _M(`ag-${t.source}-date-input`,t.source==="filter-toolpanel"?{label:t.colLabel}:{colId:t.colId})},setFilterInstanceMiniFilterInput(t){return _M(`ag-${t.source}-set-filter-mini-filter-input`,t.source==="filter-toolpanel"?{label:t.colLabel}:{colId:t.colId})},setFilterInstanceItem(t,e){return _M(`ag-${t.source}-set-filter-item`,t.source==="filter-toolpanel"?{colLabel:t.colLabel,itemLabel:e}:{colId:t.colId,itemLabel:e})},setFilterApplyPanelButton(t,e){return _M(`ag-${t.source}-set-filter-apply-panel-button`,t.source==="filter-toolpanel"?{colLabel:t.colLabel,buttonLabel:e}:{colId:t.colId,buttonLabel:e})},filterConditionRadioButton(t,e){return _M(`ag-${t.source}-filter-condition-radio-button`,t.source==="filter-toolpanel"?{colLabel:t.colLabel,buttonLabel:e}:{colId:t.colId,buttonLabel:e})},advancedFilterInput(){return _M("ag-advanced-filter-input")},advancedFilterButton(t){return _M("ag-advanced-filter-button",{label:t})},advancedFilterBuilderButton(){return _M("ag-advanced-filter-builder-button")},advancedFilterPanelMaximiseButton(){return _M("ag-advanced-filter-builder-panel-maximise")},advancedFilterPanelCloseButton(){return _M("ag-advanced-filter-builder-panel-close")},advancedFilterPill(t){return _M("ag-advanced-filter-builder-pill",{label:t})},advancedFilterBuilderAddItemButton(){return _M("ag-advanced-filter-builder-add-item-button")},rowNode(t){return _M("ag-row",{["row-id"]:t})},cell(t,e){return _M("ag-cell",{["row-id"]:t,colId:e})},autoGroupCell(t){return ZM.cell(t,qs)},checkbox(t,e){return _M("ag-selection-checkbox",{["row-id"]:t,colId:e})},selectionColumnCheckbox(t){return ZM.checkbox(t,Ks)},autoGroupColumnCheckbox(t){return ZM.checkbox(t,qs)},dragHandle(t,e){return _M("ag-drag-handle",{["row-id"]:t,colId:e})},groupContracted(t,e){return _M("ag-group-contracted",{["row-id"]:t,colId:e})},groupExpanded(t,e){return _M("ag-group-expanded",{["row-id"]:t,colId:e})},autoGroupContracted(t){return ZM.groupContracted(t,qs)},autoGroupExpanded(t){return ZM.groupExpanded(t,qs)},rowNumber(t){return ZM.cell(t,_s)},menu(){return _M("ag-menu")},menuOption(t){return _M("ag-menu-option",{["option"]:t})},sideBar(){return _M("ag-side-bar")},sideBarButton(t){return _M("ag-side-button",{label:t})},columnToolPanel(){return _M("ag-column-panel")},pivotModeSelect(){return _M("ag-pivot-mode-select")},columnPanelSelectHeaderCheckbox(){return _M("ag-column-panel-select-header-checkbox")},columnPanelSelectHeaderFilter(){return _M("ag-column-panel-select-header-filter")},columnSelectListItemGroupClosedIcon(t){return _M("ag-column-select-list-item-group-closed-icon",{label:t})},columnSelectListItemCheckbox(t){return _M("ag-column-select-list-item-checkbox",{label:t})},columnSelectListItemDragHandle(t){return _M("ag-column-select-list-item-drag-handle",{label:t})},columnDropCellDragHandle(t,e,i){return _M("ag-column-drop-cell-drag-handle",{source:t,area:e,label:i})},columnDropCellCancelButton(t,e,i){return _M("ag-column-drop-cell-cancel",{source:t,area:e,label:i})},columnDropArea(t,e){return _M("ag-column-drop-area",{source:t,name:e})},filterToolPanel(){return _M("ag-filter-panel")},filterToolPanelAddFilterButton(){return _M("ag-filter-panel-add-filter-button")},filterToolPanelFilterTypeSelector(t){return _M("ag-filter-panel-filter-type-selector",{colLabel:t})},filterToolPanelSearchInput(){return _M("ag-filter-toolpanel-search-input")},filterToolPanelGroup(t){return _M("ag-filter-toolpanel-group",{title:t})},filterToolPanelGroupCollapsedIcon(t){return _M("ag-filter-toolpanel-group-collapsed-icon",{title:t})},statusBarTotalAndFilteredRowCount(){return _M("ag-status-bar-total-and-filtered-row-count")},statusBarTotalRowCount(){return _M("ag-status-bar-total-row-count")},statusBarFilteredRowCount(){return _M("ag-status-bar-filtered-row-count")},statusBarSelectedRowCount(){return _M("ag-status-bar-selected-row-count")},statusBarAggregations(){return _M("ag-status-bar-aggregations")},paginationPanelSizePickerDisplay(t){return _M("ag-pagination-page-size-picker-field-display",{value:t})},paginationPanelFirstRowOnPage(t){return _M("ag-paging-row-summary-panel-first-row-on-page",{value:t})},paginationPanelLastRowOnPage(t){return _M("ag-paging-row-summary-panel-last-row-on-page",{value:t})},paginationPanelRecordCount(t){return _M("ag-paging-row-summary-panel-record-count",{value:t})},paginationSummaryPanelButton(t){return _M("ag-paging-page-summary-panel-btn",{label:t})},paginationSummaryPanelCurrentPage(t){return _M("ag-paging-page-summary-panel-current-page",{value:t})},paginationSummaryPanelTotalPage(t){return _M("ag-paging-page-summary-panel-total-page",{value:t})},fillHandle(){return _M("ag-fill-handle")},columnChooserCloseButton(){return _M("ag-column-chooser-close-button")},columnChooserSearchBarCheckbox(){return _M("ag-column-chooser-header-checkbox")},columnChooserSearchBarFilter(){return _M("ag-column-chooser-searchbar-filter")},columnChooserListItemGroupClosedIcon(t){return _M("ag-column-chooser-list-item-group-closed-icon",{label:t})},columnChooserListItemCheckbox(t){return _M("ag-column-chooser-list-item-checkbox",{label:t})},columnChooserListItemDragHandle(t){return _M("ag-column-chooser-list-item-drag-handle",{label:t})},overlay(){return _M("ag-overlay")}};var QM=t=>{const e={};const i=Object.keys(ZM);for(const s of i){e[s]=(...e)=>t(ZM[s](...e))}return e};var YM="data-testid";function JM(t,e){t?.setAttribute(YM,e)}function XM(t){YM=t}var tP=class extends ge{constructor(){super(...arguments);this.beanName="testIdSvc"}postConstruct(){const t=be(this,(()=>this.setupAllTestIds()),500);const e=be(this,(()=>{this.setupAllTestIds();t()}),0);this.addManagedEventListeners({firstDataRendered:e,displayedRowsChanged:e,displayedColumnsChanged:e,displayedColumnsWidthChanged:e,virtualColumnsChanged:e,columnMenuVisibleChanged:e,contextMenuVisibleChanged:e,advancedFilterBuilderVisibleChanged:e,fieldPickerValueSelected:e,modelUpdated:e,sideBarUpdated:e,pinnedHeightChanged:e,gridReady:e,overlayExclusiveChanged:e,rowGroupOpened:e,scrollVisibilityChanged:e,gridSizeChanged:e,filterOpened:e,filterChanged:e,cellSelectionChanged:e})}setupAllTestIds(){const t=u(this.beans);const e=Pf(this.beans);const i=t.querySelector(`[grid-id="${e}"]`);JM(i,ZM.grid(e));t.querySelectorAll(".ag-header-group-cell").forEach((t=>{JM(t,ZM.headerGroupCell(t.getAttribute("col-id")))}));t.querySelectorAll(".ag-header-cell").forEach((t=>{const e=t.getAttribute("col-id");const i=t.classList.contains("ag-floating-filter");const s=i?ZM.floatingFilter(e):ZM.headerCell(e);JM(t,s);JM(t.querySelector(".ag-header-cell-filter-button"),ZM.headerFilterButton(e));JM(t.querySelector(".ag-header-cell-menu-button"),ZM.headerCellMenuButton(e));JM(t.querySelector(".ag-header-cell-resize"),ZM.headerResizeHandle(e));JM(t.querySelector(".ag-checkbox input[type=checkbox]"),ZM.headerCheckbox(e));JM(t.querySelector(".ag-floating-filter-button button"),ZM.floatingFilterButton(e));this.setupFilterInstance(t.querySelector(".ag-floating-filter-body"),{source:"floating-filter",colId:e})}));const s=t.querySelector(".ag-filter-menu");this.setupFilterInstance(s,{source:"column-filter"});JM(t.querySelector(".ag-advanced-filter input[type=text]"),ZM.advancedFilterInput());t.querySelectorAll(".ag-advanced-filter-buttons button").forEach((t=>{JM(t,ZM.advancedFilterButton(t.textContent))}));JM(t.querySelector("button.ag-advanced-filter-builder-button"),ZM.advancedFilterBuilderButton());t.querySelectorAll('.ag-panel[aria-label="Advanced Filter"] .ag-panel-title-bar-button').forEach(((t,e)=>{JM(t,e===0?ZM.advancedFilterPanelMaximiseButton():ZM.advancedFilterPanelCloseButton())}));t.querySelectorAll('.ag-panel[aria-lable="Advanced Filter"] .ag-advanced-filter-builder-pill').forEach((t=>{JM(t,ZM.advancedFilterPill(t.querySelector(".ag-picker-field-display")?.textContent))}));JM(t.querySelector('.ag-panel[aria-label="Advanced Filter"] .ag-advanced-filter-builder-item-button'),ZM.advancedFilterBuilderAddItemButton());t.querySelectorAll(".ag-row").forEach((t=>{const e=t.getAttribute("row-id");JM(t,ZM.rowNode(e));t.querySelectorAll(".ag-cell").forEach((t=>{const i=t.getAttribute("col-id");JM(t,ZM.cell(e,i));JM(t.querySelector(".ag-selection-checkbox input[type=checkbox]"),ZM.checkbox(e,i));JM(t.querySelector(".ag-drag-handle"),ZM.dragHandle(e,i));JM(t.querySelector(".ag-group-contracted"),ZM.groupContracted(e,i));JM(t.querySelector(".ag-group-expanded"),ZM.groupExpanded(e,i))}))}));t.querySelectorAll(".ag-menu-list").forEach((t=>{JM(t,ZM.menu());t.querySelectorAll(".ag-menu-option").forEach((t=>{JM(t,ZM.menuOption(t.querySelector(".ag-menu-option-text")?.textContent))}))}));t.querySelectorAll(".ag-side-bar").forEach((t=>{JM(t,ZM.sideBar());t.querySelectorAll(".ag-side-button button").forEach((t=>{JM(t,ZM.sideBarButton(t.querySelector(".ag-side-button-label")?.textContent))}));t.querySelectorAll(".ag-column-panel").forEach((t=>{JM(t,ZM.columnToolPanel());JM(t.querySelector(".ag-pivot-mode-select input[type=checkbox]"),ZM.pivotModeSelect());JM(t.querySelector(".ag-column-select-header-checkbox input[type=checkbox]"),ZM.columnPanelSelectHeaderCheckbox());JM(t.querySelector(".ag-column-select-header-filter-wrapper input[type=text]"),ZM.columnPanelSelectHeaderFilter());t.querySelectorAll(".ag-column-select-list").forEach((t=>{t.querySelectorAll(".ag-column-select-virtual-list-item").forEach((t=>{const e=t.getAttribute("aria-label");JM(t.querySelector(".ag-column-group-closed-icon"),ZM.columnSelectListItemGroupClosedIcon(e));JM(t.querySelector(".ag-column-select-checkbox input[type=checkbox]"),ZM.columnSelectListItemCheckbox(e));JM(t.querySelector(".ag-drag-handle"),ZM.columnSelectListItemDragHandle(e))}))}));this.setupColumnDropArea(t,"toolbar")}));t.querySelectorAll(".ag-filter-panel").forEach((t=>{JM(t,ZM.filterToolPanel());JM(t.querySelector("button.ag-filter-add-button"),ZM.filterToolPanelAddFilterButton());t.querySelectorAll(".ag-filter-card").forEach((t=>{const e=t.querySelector(".ag-filter-card-title")?.textContent;const i=t.querySelector(".ag-filter-type-select");JM(i,ZM.filterToolPanelFilterTypeSelector(e));t.querySelectorAll(".ag-filter").forEach((t=>this.setupFilterInstance(t,{source:"filter-toolpanel",colLabel:e})))}))}));t.querySelectorAll(".ag-filter-toolpanel").forEach((t=>{JM(t.querySelector(".ag-filter-toolpanel-search-input input[type=text]"),ZM.filterToolPanelSearchInput());t.querySelectorAll(".ag-filter-toolpanel-group").forEach((t=>{const e=t.querySelector(".ag-filter-toolpanel-group-title")?.textContent;JM(t,ZM.filterToolPanelGroup(e));JM(t.querySelector(".ag-filter-toolpanel-group-title-bar-icon .ag-icon-tree-closed"),ZM.filterToolPanelGroupCollapsedIcon(e));const i=t.querySelector(".ag-filter-toolpanel-instance-filter");if(i){this.setupFilterInstance(i,{source:"filter-toolpanel",colLabel:e})}}))}))}));JM(t.querySelector(".ag-status-bar .ag-status-panel-total-and-filtered-row-count"),ZM.statusBarTotalAndFilteredRowCount());JM(t.querySelector(".ag-status-bar .ag-status-panel-total-row-count"),ZM.statusBarTotalRowCount());JM(t.querySelector(".ag-status-bar .ag-status-panel-filtered-row-count"),ZM.statusBarFilteredRowCount());JM(t.querySelector(".ag-status-bar .ag-status-panel-selected-row-count"),ZM.statusBarSelectedRowCount());JM(t.querySelector(".ag-status-bar .ag-status-panel-filtered-row-count"),ZM.statusBarAggregations());t.querySelectorAll(".ag-paging-panel").forEach((t=>{JM(t.querySelector(".ag-paging-page-size .ag-picker-field-display"),ZM.paginationPanelSizePickerDisplay(t.querySelector(".ag-paging-page-size .ag-picker-field-display")?.textContent));t.querySelectorAll(".ag-paging-row-summary-panel-number").forEach((t=>{const e=t.getAttribute("data-ref");switch(e){case"lbFirstRowOnPage":JM(t,ZM.paginationPanelFirstRowOnPage(t.textContent));break;case"lbLastRowOnPage":JM(t,ZM.paginationPanelLastRowOnPage(t.textContent));break;case"lbRecordCount":JM(t,ZM.paginationPanelRecordCount(t.textContent));break}}));t.querySelectorAll(".ag-paging-page-summary-panel .ag-button").forEach((t=>{JM(t,ZM.paginationSummaryPanelButton(t.getAttribute("aria-label")?.toLowerCase()))}));t.querySelectorAll(".ag-paging-page-summary-panel .ag-paging-number").forEach((t=>{const e=t.getAttribute("data-ref");switch(e){case"lbCurrent":JM(t,ZM.paginationSummaryPanelCurrentPage(t.textContent));break;case"lbTotal":JM(t,ZM.paginationSummaryPanelTotalPage(t.textContent));break}}))}));JM(t.querySelector(".ag-fill-handle"),ZM.fillHandle());t.querySelectorAll('.ag-panel[aria-label="Choose Columns"]').forEach((t=>{JM(t.querySelector(".ag-panel-title-bar-button-icon"),ZM.columnChooserCloseButton());JM(t.querySelector('.ag-column-select-header-checkbox input[type="checkbox"]'),ZM.columnChooserSearchBarCheckbox());JM(t.querySelector('.ag-column-select-header-filter-wrapper input[type="text"]'),ZM.columnChooserSearchBarFilter());t.querySelectorAll(".ag-column-select-list").forEach((t=>{t.querySelectorAll(".ag-column-select-virtual-list-item").forEach((t=>{const e=t.getAttribute("aria-label");JM(t.querySelector(".ag-column-group-closed-icon"),ZM.columnChooserListItemGroupClosedIcon(e));JM(t.querySelector(".ag-column-select-checkbox input[type=checkbox]"),ZM.columnChooserListItemCheckbox(e));JM(t.querySelector(".ag-drag-handle"),ZM.columnChooserListItemDragHandle(e))}))}))}));JM(t.querySelector(".ag-overlay-wrapper"),ZM.overlay());const o=t.querySelector(".ag-column-drop-wrapper");if(o){this.setupColumnDropArea(o,"panel")}}setupFilterInstance(t,e){if(!t){return}t.querySelectorAll(".ag-filter-select .ag-picker-field-display").forEach((t=>{JM(t,ZM.filterInstancePickerDisplay(e))}));const i=t.querySelector('.ag-filter-body input[type="number"]');JM(i,ZM.numberFilterInstanceInput(e));const s=t.querySelector('.ag-filter-body input[type="text"]');JM(s,ZM.textFilterInstanceInput(e));const o=t.querySelector('.ag-filter-body input[type="date"]');JM(o,ZM.dateFilterInstanceInput(e));const n=t.querySelector('.ag-mini-filter input[type="text"]');JM(n,ZM.setFilterInstanceMiniFilterInput(e));t.querySelectorAll(".ag-set-filter-list .ag-set-filter-item").forEach((t=>{const i=t.querySelector(".ag-checkbox-label")?.textContent;const s=t.querySelector('input[type="checkbox"]');JM(s,ZM.setFilterInstanceItem(e,i))}));t.querySelectorAll(".ag-filter-apply-panel button").forEach((t=>{JM(t,ZM.setFilterApplyPanelButton(e,t.textContent))}));t.querySelectorAll(".ag-filter-condition .ag-radio-button").forEach((t=>{const i=t.querySelector(".ag-radio-button-label")?.textContent;JM(t.querySelector("input[type=radio]"),ZM.filterConditionRadioButton(e,i))}))}setupColumnDropArea(t,e){t.querySelectorAll(".ag-column-drop").forEach((t=>{const i=t.querySelector(".ag-column-drop-list")?.getAttribute("aria-label");JM(t,ZM.columnDropArea(e,i));t.querySelectorAll(".ag-column-drop-cell").forEach((t=>{const s=t.querySelector(".ag-column-drop-cell-text")?.textContent;JM(t.querySelector(".ag-drag-handle"),ZM.columnDropCellDragHandle(e,i,s));JM(t.querySelector(".ag-column-drop-cell-button .ag-icon-cancel"),ZM.columnDropCellCancelButton(e,i,s))}))}))}};var eP={moduleName:"Testing",version:ii,beans:[tP]};function iP({testIdAttribute:t}={}){if(t){XM(t)}ei.registerModules([eP])}export{Dw as ALWAYS_SYNC_GLOBAL_EVENTS,Yu as AgAbstractCellEditor,Ur as AgAbstractInputField,Gr as AgAbstractLabel,jr as AgCheckbox,qr as AgCheckboxSelector,Bs as AgColumn,Qa as AgColumnGroup,vh as AgFilterButtonSelector,sl as AgInputDateField,el as AgInputNumberField,il as AgInputNumberFieldSelector,Xr as AgInputTextArea,Yr as AgInputTextField,Jr as AgInputTextFieldSelector,dl as AgPickerField,Qn as AgPopupComponent,tn as AgPromise,Is as AgProvidedColumnGroup,Kr as AgRadioButton,gl as AgSelect,pl as AgSelectSelector,Zr as AgToggleButton,Qr as AgToggleButtonSelector,gE as AlignedGridsModule,KM as AllCommunityModule,Yd as AutoScrollService,Go as BaseColsService,eS as BaseComponentWrapper,nS as BaseCreator,rS as BaseGridSerializingSession,Nd as BaseSelectionService,ge as BeanStub,Cy as CellApiModule,Qd as CellRangeType,MM as CellSpanModule,TM as CellStyleModule,ag as ChangedPath,zR as CheckboxEditorModule,NE as ClientSideRowModelApiModule,VE as ClientSideRowModelModule,pm as ColumnApiModule,gM as ColumnAutoSizeModule,OM as ColumnHoverModule,Os as ColumnKeyCreator,Qo as Component,Ko as CssClassManager,_E as CsvExportModule,LR as CustomEditorModule,ek as CustomFilterModule,IR as DateEditorModule,ok as DateFilterModule,ml as Direction,xg as DragAndDropModule,qa as DragSourceType,WM as EventApiModule,lk as ExternalFilterModule,iu as FakeHScrollComp,nu as FakeVScrollComp,mh as FilterButtonComp,kh as FilterComp,Sh as FilterWrapperComp,qs as GROUP_AUTO_COLUMN_ID,Zs as GROUP_HIERARCHY_COLUMN_ID_PREFIX,Yc as GridBodyCtrl,$y as GridCoreCreator,yf as GridCtrl,Du as GridHeaderCtrl,yF as GridStateModule,$o as GroupInstanceIdCreator,Ku as HeaderRowContainerCtrl,gF as HighlightChangesModule,oF as InfiniteRowModelModule,Zn as KeyCode,OR as LargeTextEditorModule,t as LocalEventService,UM as LocaleModule,Qy as LocaleService,Wh as ManagedFocusFeature,ei as ModuleRegistry,AR as NumberEditorModule,sk as NumberFilterModule,GF as PaginationModule,Td as PinnedRowModel,yM as PinnedRowModule,Lh as PositionableFeature,Uh as ProvidedFilter,rk as QuickFilterModule,_s as ROW_NUMBERS_COLUMN_ID,jo as RefPlaceholder,lM as RenderApiModule,JF as RowApiModule,qM as RowAutoHeightModule,Kc as RowContainerCtrl,Rg as RowDragModule,eh as RowNode,iE as RowSelectionModule,BM as RowStyleModule,Ks as SELECTION_COLUMN_ID,Kh as STRUCTURED_SCHEMA_FEATURES,XF as ScrollApiModule,HR as SelectEditorModule,Bd as ServerSideTransactionResultStatus,Gd as TabGuardClassNames,Ud as TabGuardComp,$d as TabGuardCtrl,Wd as TabGuardFeature,BR as TextEditorModule,ik as TextFilterModule,dk as TooltipModule,Zd as TouchListener,TR as UndoRedoEditModule,SS as ValidationModule,my as ValueCacheModule,Jd as VanillaFrameworkOverrides,ue as _AgBeanStub,Zo as _AgComponentStub,ma as _AgContext,Ba as _AgTooltipComponent,ya as _AgTooltipFeature,tC as _BOOLEAN_MIXED_GRID_OPTIONS,ja as _BaseDragAndDropService,Ga as _BaseDragService,wa as _BaseEnvironment,ba as _BaseEventService,Ta as _BasePopupService,Ca as _BaseRegistry,Fa as _BaseTooltipStateManager,tk as _ColumnFilterModule,Pp as _ColumnGroupModule,ip as _ColumnMoveModule,cE as _CsrmSsrmSharedApiModule,Sg as _DragModule,DR as _EditCoreModule,Ls as _EmptyArray,Wo as _EmptyBean,$h as _FOCUS_MANAGED_CLASS,Jx as _FilterCoreModule,Xx as _FilterValueModule,Aw as _GET_ALL_EVENTS,sC as _GET_ALL_GRID_OPTIONS,vC as _HeaderComp,Eg as _HorizontalResizeModule,Bb as _KeyboardNavigationModule,br as _MONTHS,Tw as _PUBLIC_EVENTS,Iw as _PUBLIC_EVENT_HANDLERS_MAP,DS as _PopupModule,Xa as _ROW_ID_PREFIX_BOTTOM_PINNED,Ya as _ROW_ID_PREFIX_ROW_GROUP,Ja as _ROW_ID_PREFIX_TOP_PINNED,uE as _RowModelSharedApiModule,kg as _SharedDragAndDropModule,$E as _SharedExportModule,MS as _SharedMenuModule,eE as _SharedRowSelectionModule,ay as _SortModule,dE as _SsrmInfiniteSharedApiModule,Cw as _addAdditionalCss,Co as _addColumnDefaultAndTypes,gu as _addFocusableContainerListener,Rs as _addGridCommonParams,ie as _anchorElementToMouseMoveEvent,To as _applyColumnState,Zf as _areCellsEqual,oo as _areColIdsEqual,Ns as _areEqual,ra as _asThemeImpl,Ce as _batchCall,Zi as _canSkipShowingRowGroup,bt as _clearElement,lo as _columnsMatch,xs as _combineAttributesAndGridOptions,ro as _convertColumnEventSourceType,Wt as _createAgElement,_f as _createCellId,uo as _createColumnTree,co as _createColumnTreeWithIds,gh as _createElement,ih as _createGlobalRowEvent,sd as _createIcon,od as _createIconNoSpan,oh as _createRowNodeSibling,be as _debounce,r as _defaultComparator,Js as _destroyColumnTree,me as _doOnce,lS as _downloadFile,ki as _errMsg,bi as _error,c as _escapeString,i as _exists,Hr as _findFocusableElements,Lr as _findNextFocusableElement,Vr as _findTabbableParent,nh as _firstLeaf,js as _flatten,pu as _focusGridInnerElement,Or as _focusInto,wu as _focusNextGridCoreContainer,oS as _formatNumberCommas,Er as _fuzzySuggestions,pt as _getAbsoluteHeight,og as _getAbsoluteRowIndex,mt as _getAbsoluteWidth,d as _getActiveDomElement,R as _getAriaPosInSet,Ss as _getCallbackForEvent,eg as _getCellByPosition,hc as _getCellCtrlForEventTarget,Jc as _getCellPositionForEvent,zn as _getCellRendererDetails,ts as _getCheckboxLocation,Ji as _getCheckboxes,qy as _getClientSideRowModel,Io as _getColumnState,Qs as _getColumnsFromTree,wr as _getDateParts,qh as _getDefaultFloatingFilterType,Ih as _getDefaultSimpleFilter,f as _getDocument,Hn as _getEditorRendererDetails,rs as _getFillHandle,Vn as _getFilterDetails,fh as _getFilterModel,Th as _getFilterParamsForDataType,Jf as _getFirstRow,Un as _getFloatingFilterCompDetails,Ru as _getFloatingFiltersHeight,De as _getGlobalGridOption,Wi as _getGrandTotalRow,Es as _getGridOption,Ye as _getGridRegisteredModules,$i as _getGroupAggFiltering,gs as _getGroupSelection,vs as _getGroupSelectsDescendants,Ui as _getGroupTotalRowCallback,Xi as _getHeaderCheckbox,hu as _getHeaderClassesFromColDef,Cu as _getHeaderRowCount,En as _getInnerCellRendererDetails,ft as _getInnerHeight,gt as _getInnerWidth,cs as _getIsRowSelectable,Xf as _getLastRow,he as _getLocaleTextFromFunc,ce as _getLocaleTextFromMap,le as _getLocaleTextFunc,Qi as _getMaxConcurrentDatasourceRequests,Xc as _getNormalisedMousePosition,m as _getPageBody,u as _getRootNode,sg as _getRowAbove,ng as _getRowBelow,Ac as _getRowContainerClass,zc as _getRowContainerOptions,uc as _getRowCtrlForEventTarget,zi as _getRowHeightAsNumber,Ai as _getRowHeightForNode,_i as _getRowIdCallback,tg as _getRowNode,us as _getRowSelectionMode,Ic as _getRowSpanContainerClass,Bc as _getRowViewportClass,_y as _getServerSideRowModel,sS as _getShouldDisplayTooltip,os as _getSuppressMultiRanges,cu as _getToolPanelClassesFromColDef,Zy as _getViewportRowModel,Fs as _interpretAsRightClick,Vi as _isAnimateRows,nr as _isBrowserFirefox,or as _isBrowserSafari,ns as _isCellSelectionEnabled,Fi as _isClientSideRowModel,ys as _isColumnMenuAnchoringEnabled,Gi as _isColumnsSortingCoupledToGroup,qo as _isComponent,Pi as _isDomLayout,_t as _isElementInEventPath,Pt as _isElementOverflowingCallback,Mr as _isEventFromPrintableCharacter,Ki as _isFullWidthGroupRow,Ti as _isGetRowHeightFunction,ji as _isGroupMultiAutoColumn,Ni as _isGroupRowsSticky,qi as _isGroupUseEntireRow,lr as _isIOSUserAgent,zr as _isKeyboardMode,bs as _isLegacyMenuEnabled,ds as _isMultiRowSelection,Ht as _isNodeOrElement,g as _isNothingFocused,Jo as _isPromise,Qf as _isRowBefore,Di as _isRowSelection,Yf as _isSameRow,Mi as _isServerSideRowModel,Cs as _isSetFilterByDefault,iS as _isShowTooltipWhenTruncated,Gh as _isStopPropagationForAgGrid,yh as _isUseApplyButton,ss as _isUsingNewCellSelectionAPI,is as _isUsingNewRowSelectionAPI,xt as _isVisible,n as _jsonEquals,Vs as _last,kt as _loadTemplate,Si as _logPreInitWarn,e as _makeNull,Re as _mergeDeep,s as _missing,Lt as _observeResize,Rr as _parseDateTimeFromString,Ri as _preInitErrMsg,ks as _processOnChange,ot as _radioCssClass,ch as _refreshFilterUi,hh as _refreshHandlerAndUi,je as _registerModule,Ws as _removeAllFromArray,V as _removeAriaExpanded,Q as _removeAriaSort,$s as _removeFromArray,yt as _removeFromParent,Vt as _requestAnimationFrame,Bo as _resetColumnState,fc as _selectAllCells,vr as _serialiseDate,O as _setAriaActiveDescendant,J as _setAriaChecked,q as _setAriaColCount,K as _setAriaColIndex,_ as _setAriaColSpan,X as _setAriaControls,tt as _setAriaControlsAndLabel,P as _setAriaDescribedBy,z as _setAriaDisabled,L as _setAriaExpanded,it as _setAriaHasPopup,H as _setAriaHidden,A as _setAriaInvalid,F as _setAriaLabel,M as _setAriaLabelledBy,I as _setAriaLevel,G as _setAriaPosInSet,x as _setAriaRole,W as _setAriaRowCount,U as _setAriaRowIndex,Y as _setAriaSelected,N as _setAriaSetSize,Z as _setAriaSort,Zu as _setColMenuVisible,ct as _setDisabled,at as _setDisplayed,At as _setFixedWidth,ti as _setUmd,ht as _setVisible,Yi as _shouldUpdateColVisibilityAfterGroup,Nh as _stopPropagationForAgGrid,oc as _suppressCellMouseEvent,h as _toString,o as _toStringOrNull,ae as _translate,Ch as _translateForFilter,Kn as _unwrapUserComp,no as _updateColsMap,vo as _updateColumnState,dh as _updateFilterModel,Se as _waitUntil,Ci as _warn,Ie as _warnOnce,ZM as agTestIdFor,Vm as buttonStyleAlpine,Gm as buttonStyleBalham,zm as buttonStyleBase,Om as buttonStyleQuartz,Jm as checkboxStyleDefault,lv as colorSchemeDark,dv as colorSchemeDarkBlue,cv as colorSchemeDarkWarm,tv as colorSchemeLight,ov as colorSchemeLightCold,iv as colorSchemeLightWarm,gv as colorSchemeVariable,jm as columnDropStyleBordered,Km as columnDropStylePlain,tS as convertColumnGroupState,Yy as convertColumnState,Ny as createGrid,Rl as createPart,Zm as createTheme,Uy as getGridApi,jy as getGridElement,yv as iconOverrides,wv as iconSetAlpine,bv as iconSetMaterial,Fv as iconSetQuartz,Dv as iconSetQuartzBold,Mv as iconSetQuartzLight,Pv as iconSetQuartzRegular,Hv as inputStyleBase,Lv as inputStyleBordered,Nv as inputStyleUnderlined,Ts as isColumn,Za as isColumnGroup,Xs as isColumnGroupAutoCol,to as isColumnSelectionCol,jh as isCombinedFilterModel,As as isProvidedColumnGroup,eo as isRowNumberCol,io as isSpecialCol,nE as onRowHeightChanged,Pe as provideGlobalGridOptions,rE as resetRowHeights,iP as setupAgTestIds,aw as styleMaterial,Yv as tabStyleAlpine,jv as tabStyleBase,Zv as tabStyleMaterial,Kv as tabStyleQuartz,Xv as tabStyleRolodex,ow as themeAlpine,rw as themeBalham,cw as themeMaterial,iw as themeQuartz,QM as wrapAgTestIdFor};
+{"version":3,"names":["LocalEventService","constructor","this","allSyncListeners","Map","allAsyncListeners","globalSyncListeners","Set","globalAsyncListeners","asyncFunctionsQueue","scheduled","firedEvents","setFrameworkOverrides","frameworkOverrides","getListeners","eventType","async","autoCreateListenerCollection","listenerMap","listeners","get","set","noRegisteredListenersExist","size","addEventListener","listener","add","removeEventListener","delete","addGlobalListener","getGlobalListeners","removeGlobalListener","dispatchEvent","event","dispatchToListeners","type","dispatchEventOnce","browserEvent","Event","eventPath","composedPath","runCallback","func","callback","wrapIncoming","dispatchAsync","originalListeners","has","globalListenersSrc","globalListeners","push","flush","window","setTimeout","flushAsyncQueue","bind","queueCopy","slice","_makeNull","value","_exists","_missing","_toStringOrNull","toString","_jsonEquals","val1","val2","val1Json","JSON","stringify","val2Json","_defaultComparator","valueA","valueB","accentedCompare","valueAMissing","valueBMissing","toNumber","doQuickCompare","a","b","localeCompare","e","reUnescapedHtml","HTML_ESCAPES","_toString","toEscape","_escapeString","replace","chr","_getRootNode","beans","eRootDiv","getRootNode","_getActiveDomElement","activeElement","_getDocument","gos","result","optionsGetDocument","ownerDocument","document","_isNothingFocused","activeEl","body","_getWindow","eDocument","defaultView","_getPageBody","rootNode","targetEl","fullscreenElement","querySelector","ShadowRoot","Document","documentElement","_getBodyWidth","clientWidth","innerWidth","_getBodyHeight","clientHeight","innerHeight","_toggleAriaAttribute","element","attribute","_removeAriaAttribute","_setAriaAttribute","setAttribute","_ariaAttributeName","removeAttribute","_setAriaRole","role","_getAriaSortState","sortDirection","sort","_getAriaPosInSet","Number","parseInt","getAttribute","_getAriaLabel","_setAriaLabel","label","_setAriaLabelledBy","labelledBy","_setAriaDescribedBy","describedby","_setAriaLive","live","_setAriaAtomic","atomic","_setAriaRelevant","relevant","_setAriaInvalid","invalid","_setAriaLevel","level","_setAriaDisabled","disabled","_setAriaHidden","hidden","_setAriaActiveDescendant","descendantId","_setAriaExpanded","expanded","_removeAriaExpanded","_setAriaSetSize","setsize","_setAriaPosInSet","position","_setAriaMultiSelectable","multiSelectable","_setAriaRowCount","rowCount","_setAriaRowIndex","rowIndex","_setAriaRowSpan","spanCount","_setAriaColCount","colCount","_setAriaColIndex","colIndex","_setAriaColSpan","colSpan","_setAriaSort","_removeAriaSort","_setAriaSelected","selected","_setAriaChecked","checked","_setAriaControls","controllerElement","controlledId","_setAriaControlsAndLabel","controlledElement","id","_setAriaOwns","ownerElement","ownedId","_setAriaHasPopup","hasPopup","_getAriaCheckboxStateName","translate","state","_radioCssClass","elementClass","otherElementClass","parent","parentElement","sibling","firstChild","classList","toggle","nextSibling","FOCUSABLE_SELECTOR","FOCUSABLE_EXCLUDE","_isFocusableFormField","isFocusable","matches","isNotFocusable","_isVisible","_setDisplayed","displayed","options","skipAriaHidden","_setVisible","visible","_setDisabled","attributeName","addOrRemoveDisabledAttribute","inputs","querySelectorAll","input","_isElementChildOfClass","cls","maxNest","counter","contains","_getElementSize","el","height","width","borderTopWidth","borderRightWidth","borderBottomWidth","borderLeftWidth","paddingTop","paddingRight","paddingBottom","paddingLeft","marginTop","marginRight","marginBottom","marginLeft","boxSizing","getComputedStyle","pf","parseFloat","_getInnerHeight","_getInnerWidth","_getAbsoluteHeight","Math","floor","_getAbsoluteWidth","_getElementRectWithOffset","offsetElementRect","getBoundingClientRect","top","left","right","bottom","_getScrollLeft","rtl","scrollLeft","abs","_setScrollLeft","_clearElement","remove","_removeFromParent","node","parentNode","_isInDOM","offsetParent","checkVisibility","checkVisibilityCSS","isHidden","visibility","_loadTemplate","template","tempDiv","createElement","innerHTML","trim","_ensureDomOrder","eContainer","eChild","eChildBefore","appendChild","insertBefore","insertAdjacentElement","_setDomChildOrder","orderedChildren","i","length","correctCellAtIndex","actualCellAtIndex","children","_camelCaseToHyphenated","camelCase","s","toLocaleLowerCase","_addStylesToElement","eElement","styles","key","Object","keys","parsedKey","valueAsString","parsedValue","priority","style","setProperty","_isElementOverflowingCallback","getElement2","_isHorizontalScrollShowing","_isVerticalScrollShowing","scrollWidth","scrollHeight","_setElementWidth","removeProperty","flex","_setFixedWidth","_formatSize","maxWidth","minWidth","_setFixedHeight","maxHeight","minHeight","_isNodeOrElement","o","Node","HTMLElement","_addOrRemoveAttribute","name","_observeResize","win","ResizeObserverImpl","ResizeObserver","resizeObserver","observe","disconnect","_requestAnimationFrame","requestAnimationFrame","webkitRequestAnimationFrame","DataRefAttribute","whitespaceNode","getWhitespaceNode","createTextNode","cloneNode","_createAgElement","params","attrs","ref","tag","className","textContent","addFirstWhitespace","child","append","PASSIVE_EVENTS","NON_PASSIVE_EVENTS","supports","_isEventSupported","tags","select","change","submit","reset","error","load","abort","eventChecker","eventName","_isElementInEventPath","_getEventPath","indexOf","_createEventPath","res","pointer","target","eventNoType","path","_addSafePassiveEventListener","passive","getPassiveStateForEvent","isPassive","includes","isNonPassive","_areEventsNear","e1","e2","pixelCount","diffX","clientX","diffY","clientY","max","_getFirstActiveTouch","touch","touchList","identifier","len","item","_isEventFromThisInstance","isElementInThisInstance","_anchorElementToMouseMoveEvent","mouseMoveEvent","eRect","browserWidth","browserHeight","offsetParentSize","windowScrollY","pageYOffset","scrollTop","windowScrollX","pageXOffset","addTempEventHandlers","list","handlers","handler","eventListener","clearTempEventHandlers","preventEventDefault","cancelable","preventDefault","defaultLocaleTextFunc","_key","defaultValue","_getLocaleTextFunc","localeSvc","getLocaleTextFunc","_translate","bean","localeValues","variableValues","_getLocaleTextFromFunc","getLocaleText","_getLocaleTextFromMap","localeText","localisedText","found","idx","AgBeanStub","destroyFunctions","destroyed","__v_skip","propertyListenerId","lastChangeSetIdLookup","isAlive","preWireBeans","stubContext","context","eventSvc","destroy","dispatchLocalEvent","localEventService","addManagedElementListeners","object","_setupListeners","addManagedEventListeners","addManagedListeners","destroyFuncs","k","_setupListener","destroyFunc","isAgEventEmitter","__addEventListener","__removeEventListener","objIsEventService","isEventService","addListener","removeListener","filter","fn","setupPropertyListener","addPropertyEventListener","removePropertyEventListener","addManagedPropertyListener","addManagedPropertyListeners","events","eventsKey","join","wrappedListener","changeSet","propertiesChangeEvent","source","addDestroyFunc","createOptionalManagedBean","createManagedBean","createBean","destroyBean","afterPreCreateCallback","destroyBeans","eventServiceType","BeanStub","doOnceFlags","_doOnce","batchedCallsSetTimeout","pending","funcs","batchedCallsRaf","_batchCall","mode","batch","runBatch","funcsCopy","func2","_debounce","delay","timeout","args","clearTimeout","apply","_throttle","wait","previousCall","currentCall","Date","now","_waitUntil","condition","timeStamp","interval","executed","clearWait","clearInterval","internalCallback","reachedTimeout","setInterval","SKIP_JS_BUILTINS","_iterateObject","Array","isArray","key2","_mergeDeep","dest","copyUndefined","makeCopyOfSimpleObjects","sourceValue","destValue","objectIsDueToBeCopied","doNotCopyAsSourceIsSimpleObject","_isNonNullObject","_GlobalGridOptions","applyGlobalGridOptions","providedOptions","gridOptions","mergedGridOps","mergeStrategy","applyGlobalGridOption","optionKey","providedValue","globalValue","_getGlobalGridOption","GlobalGridOptions","provideGlobalGridOptions","gridOption","GRID_OPTION_DEFAULTS","suppressContextMenu","preventDefaultOnContextMenu","allowContextMenuWithControlKey","suppressMenuHide","enableBrowserTooltips","tooltipTrigger","tooltipShowDelay","tooltipHideDelay","tooltipMouseTrack","tooltipShowMode","tooltipInteraction","copyHeadersToClipboard","copyGroupHeadersToClipboard","clipboardDelimiter","suppressCopyRowsToClipboard","suppressCopySingleCellRanges","suppressLastEmptyLineOnPaste","suppressClipboardPaste","suppressClipboardApi","suppressCutToClipboard","maintainColumnOrder","enableStrictPivotColumnOrder","suppressFieldDotNotation","allowDragFromColumnsToolPanel","suppressMovableColumns","suppressColumnMoveAnimation","suppressMoveWhenColumnDragging","suppressDragLeaveHidesColumns","suppressRowGroupHidesColumns","suppressAutoSize","autoSizePadding","skipHeaderOnAutoSize","singleClickEdit","suppressClickEdit","readOnlyEdit","stopEditingWhenCellsLoseFocus","enterNavigatesVertically","enterNavigatesVerticallyAfterEdit","enableCellEditingOnBackspace","undoRedoCellEditing","undoRedoCellEditingLimit","suppressCsvExport","suppressExcelExport","cacheQuickFilter","includeHiddenColumnsInQuickFilter","excludeChildrenWhenTreeDataFiltering","enableAdvancedFilter","includeHiddenColumnsInAdvancedFilter","enableCharts","masterDetail","keepDetailRows","keepDetailRowsCount","detailRowAutoHeight","tabIndex","rowBuffer","valueCache","valueCacheNeverExpires","enableCellExpressions","suppressTouch","suppressFocusAfterRefresh","suppressBrowserResizeObserver","suppressPropertyNamesCheck","suppressChangeDetection","debug","suppressLoadingOverlay","suppressNoRowsOverlay","pagination","paginationPageSize","paginationPageSizeSelector","paginationAutoPageSize","paginateChildRows","suppressPaginationPanel","pivotMode","pivotPanelShow","pivotDefaultExpanded","pivotSuppressAutoColumn","suppressExpandablePivotGroups","functionsReadOnly","suppressAggFuncInHeader","alwaysAggregateAtRootLevel","aggregateOnlyChangedColumns","suppressAggFilteredOnly","removePivotHeaderRowWhenSingleValueColumn","animateRows","cellFlashDuration","cellFadeDuration","allowShowChangeAfterFilter","domLayout","ensureDomOrder","enableRtl","suppressColumnVirtualisation","suppressMaxRenderedRowRestriction","suppressRowVirtualisation","rowDragManaged","rowDragInsertDelay","suppressRowDrag","suppressMoveWhenRowDragging","rowDragEntireRow","rowDragMultiRow","embedFullWidthRows","groupDisplayType","groupDefaultExpanded","groupMaintainOrder","groupSelectsChildren","groupSuppressBlankHeader","groupSelectsFiltered","showOpenedGroup","groupRemoveSingleChildren","groupRemoveLowestSingleChildren","groupHideOpenParents","groupAllowUnbalanced","rowGroupPanelShow","suppressMakeColumnVisibleAfterUnGroup","treeData","rowGroupPanelSuppressSort","suppressGroupRowsSticky","rowModelType","asyncTransactionWaitMillis","suppressModelUpdateAfterUpdateTransaction","cacheOverflowSize","infiniteInitialRowCount","serverSideInitialRowCount","cacheBlockSize","maxBlocksInCache","maxConcurrentDatasourceRequests","blockLoadDebounceMillis","purgeClosedRowNodes","serverSideSortAllLevels","serverSideOnlyRefreshFilteredGroups","serverSidePivotResultFieldSeparator","viewportRowModelPageSize","viewportRowModelBufferSize","alwaysShowHorizontalScroll","alwaysShowVerticalScroll","debounceVerticalScrollbar","suppressHorizontalScroll","suppressScrollOnNewData","suppressScrollWhenPopupsAreOpen","suppressAnimationFrame","suppressMiddleClickScrolls","suppressPreventDefaultOnMouseWheel","rowMultiSelectWithClick","suppressRowDeselection","suppressRowClickSelection","suppressCellFocus","suppressHeaderFocus","suppressMultiRangeSelection","enableCellTextSelection","enableRangeSelection","enableRangeHandle","enableFillHandle","fillHandleDirection","suppressClearOnFillReduction","accentedSort","unSortIcon","suppressMultiSort","alwaysMultiSort","suppressMaintainUnsortedOrder","suppressRowHoverHighlight","suppressRowTransform","columnHoverHighlight","deltaSort","enableGroupEdit","groupLockGroupColumns","serverSideEnableClientSideSort","suppressServerSideFullWidthLoadingRow","pivotMaxGeneratedColumns","columnMenu","reactiveCustomComponents","suppressSetFilterByDefault","rowNumbers","enableFilterHandlers","BASE_URL","_logIfDebug","message","console","log","_warnOnce","msg","warn","_errorOnce","allRegisteredModules","globalModulesMap","gridModulesMap","currentModuleVersion","userHasRegistered","areGridScopedModules","isUmd","isValidModuleVersion","module","moduleMajor","moduleMinor","version","split","currentModuleMajor","currentModuleMinor","runVersionChecks","errorMsg","details","moduleName","validate","isValid","_registerModule","gridId","isInternalRegistration","rowModels","moduleStore","rowModel","dependsOn","dependency","_unRegisterGridModules","_isModuleRegistered","isRegisteredForRowModel","model","_areModulesGridScoped","_getRegisteredModules","gridModules","values","_getAllRegisteredModules","_getGridRegisteredModules","_hasUserRegistered","_isUmd","_setUmd","ModuleRegistry","register","registerModules","modules","VERSION","MAX_URL_LENGTH","MIN_PARAM_LENGTH","VERSION_PARAM_NAME","getConsoleMessage","baseDocLink","provideValidationServiceLogger","logger","setValidationDocLink","docLink","getErrorParts","defaultMessage","minifiedLog","getMsgOrDefault","isWarning","stringifyObject","inputObj","String","prop","stringifyValue","output","Error","toStringWithNullUndefined","str","getParamsUrl","baseUrl","truncateUrl","maxLength","sortedParams","from","entries","url","excessLength","ellipse","truncateAmount","truncatedValue","getErrorLink","errorNum","URLSearchParams","errorLink","prefix","_warn","_error","_logPreInitErr","_logPreInitWarn","getErrMsg","_errMsg","_preInitErrMsg","isRowModelType","_isClientSideRowModel","_isServerSideRowModel","_isDomLayout","_isRowSelection","_getRowSelectionMode","_isGetRowHeightFunction","_shouldMaintainColumnOrder","isPivotColumns","_getRowHeightForNode","rowNode","allowEstimate","defaultRowHeight","environment","getDefaultRowHeight","estimated","data","getCallback","isNumeric","detail","getMasterDetailRowHeight","gridOptionsRowHeight","rowHeight","_getRowHeightAsNumber","refreshRowHeightVariable","isNaN","isFinite","_getDomData","domData","getDomDataKey","_setDomData","domDataKey","_isAnimateRows","_isGroupRowsSticky","_isColumnsSortingCoupledToGroup","autoGroupColumnDef","comparator","_getGroupAggFiltering","userValue","_getGrandTotalRow","_getGroupTotalRowCallback","_isGroupMultiAutoColumn","isHideOpenParents","_isGroupUseEntireRow","_isFullWidthGroupRow","group","footer","_getRowIdCallback","getRowId","_canSkipShowingRowGroup","isSkippingGroups","leafGroup","_getMaxConcurrentDatasourceRequests","_shouldUpdateColVisibilityAfterGroup","isGrouped","preventVisibilityChanges","legacySuppressOnGroup","legacySuppressOnUngroup","_getCheckboxes","selection","checkboxes","_getHeaderCheckbox","headerCheckbox","_getCheckboxLocation","rowSelection","checkboxLocation","_getHideDisabledCheckboxes","hideDisabledCheckboxes","_isUsingNewRowSelectionAPI","_isUsingNewCellSelectionAPI","_getSuppressMultiRanges","useNewAPI","suppressMultiRanges","_isCellSelectionEnabled","_getFillHandle","setFillValue","direction","handle","_getEnableClickSelection","enableClickSelection","_getEnableSelection","_getEnableDeselection","_getIsRowSelectable","isRowSelectable","arg","beanName","_isMultiRowSelection","_getEnableSelectionWithoutKeys","enableSelectionWithoutKeys","_getGroupSelection","groupSelects","_getSelectAll","selectAll","_getCtrlASelectsRows","ctrlASelectsRows","_getGroupSelectsDescendants","groupSelection","_getMasterSelects","masterSelects","_isSetFilterByDefault","isModuleRegistered","_isLegacyMenuEnabled","_isColumnMenuAnchoringEnabled","_getCallbackForEvent","toUpperCase","substring","_combineAttributesAndGridOptions","component","gridOptionsKeys","mergedOptions","_processOnChange","changes","api","gridChanges","hasChanges","internalUpdateEvent","_addGridCommonParams","addCommon","_getGridOption","providedGridOptions","_interpretAsRightClick","button","ctrlKey","COL_DEF_DEFAULTS","resizable","sortable","instanceIdSequence","getNextColInstanceId","isColumn","col","AgColumn","colDef","userProvidedColDef","colId","primary","super","instanceId","autoHeaderHeight","moving","resizing","menuVisible","lastLeftPinned","firstRightPinned","filterActive","colEventSvc","tooltipEnabled","rowGroupActive","pivotActive","aggregationActive","colIdSanitised","rowSpanSvc","deregister","getInstanceId","setState","sortSvc","pinnedCols","colFlex","initCol","hide","initialHide","setColDef","colSpanChanged","spanRows","initMinAndMaxWidths","initDotNotation","initTooltip","initRowSpan","dispatchColEvent","getUserProvidedColDef","getParent","getOriginalParent","originalParent","postConstruct","resetActualWidth","addPivotListener","field","tooltipField","suppressDotNotation","fieldContainsDots","tooltipFieldContainsDots","getDefaultColumnMinWidth","MAX_SAFE_INTEGER","tooltipSvc","pivotColDefSvc","pivotValueColumn","colDefChanged","evt","recreateColDef","initialWidth","calculateColInitialWidth","setActualWidth","colDefWidth","colDefInitialWidth","min","isEmptyGroup","isRowGroupDisplayed","showRowGroupCols","isPrimary","isFilterAllowed","filterDefined","isFieldContainsDots","isTooltipEnabled","isTooltipFieldContainsDots","getHighlighted","highlighted","userListener","frameworkEventListenerService","createLocalEventListenerWrapper","wrap","unwrap","createColumnFunctionCallbackParams","column","isSuppressNavigable","cellNavigation","isCellEditable","editSvc","isSuppressFillHandle","suppressFillHandle","isAutoHeight","autoHeight","isAutoHeaderHeight","isRowDrag","isColumnFunc","rowDrag","isDndSource","dndSource","isCellCheckboxSelection","selectionSvc","isSuppressPaste","suppressPaste","isResizable","getColDefValue","editableFunc","createColumnEvent","columns","isMoving","getSort","isSortable","isSortAscending","isSortDescending","isSortNone","isSorting","getSortIndex","sortIndex","isMenuVisible","getAggFunc","aggFunc","getLeft","getOldLeft","oldLeft","getRight","actualWidth","setLeft","isFilterActive","isHovered","colHover","setFirstRightPinned","setLastLeftPinned","isFirstRightPinned","isLastLeftPinned","isPinned","pinned","isPinnedLeft","isPinnedRight","getPinned","setVisible","newValue","dispatchStateUpdatedEvent","isVisible","isSpanHeaderHeight","getColDef","suppressSpanHeaderHeight","getFirstRealParent","isPadding","getColumnGroupPaddingInfo","numberOfParents","isSpanningTotal","getPaddingLevel","getDefinition","getColumnGroupShow","columnGroupShow","getColId","getId","getUniqueId","getActualWidth","getAutoHeaderHeight","setAutoHeaderHeight","changed","createBaseColDefParams","getColSpan","getRowSpan","rowSpan","silent","fireColumnWidthChangedEvent","isGreaterThanMax","getMinWidth","getMaxWidth","getFlex","isRowGroupActive","isPivotActive","isAnyFunctionActive","isValueActive","isAnyFunctionAllowed","isAllowPivot","isAllowRowGroup","isAllowValue","enablePivot","enableValue","enableRowGroup","additionalEventAttributes","colEvent","isProvidedColumnGroup","AgProvidedColumnGroup","colGroupDef","groupId","padding","expandable","expandableListenerRemoveCallback","openByDefault","getLevel","some","setExpanded","isExpandable","isExpanded","getGroupId","setChildren","getChildren","getColGroupDef","getLeafColumns","addLeafColumns","forEachLeafColumn","leafColumns","setupExpandable","setExpandable","onColumnVisibilityChanged","atLeastOneShowingWhenOpen","atLeastOneShowingWhenClosed","atLeastOneChangeable","findChildrenRemovingPadding","j","abstractColumn","headerGroupShow","process","items","skipBecausePadding","DefaultColumnTypes","numericColumn","headerClass","cellClass","rightAligned","createMergedColGroupDef","colGroupDefMerged","assign","validateColDef","ColumnKeyCreator","existingKeys","addExistingKeys","getUniqueKey","colField","count","idToTry","usedId","providedId","_EmptyArray","freeze","_last","arr","_areEqual","_forAll","array","_removeFromArray","index","splice","_removeAllFromArray","elementsToRemove","pop","_moveInArray","objectsToMove","toIndex","_flatten","arrays","concat","GROUP_AUTO_COLUMN_ID","SELECTION_COLUMN_ID","ROW_NUMBERS_COLUMN_ID","GROUP_HIERARCHY_COLUMN_ID_PREFIX","_getColumnsFromTree","rootColumns","recursiveFindColumns","childColumns","getWidthOfColsInList","columnList","reduce","_destroyColumnTree","oldTree","newTree","oldObjectsById","depthFirstOriginalTreeSearch","colsToDestroy","isColumnGroupAutoCol","startsWith","isColumnSelectionCol","isRowNumberCol","isSpecialCol","convertColumnTypes","typeKeys","_areColIdsEqual","colsA","colsB","_updateColsMap","cols","map","_convertColumnEventSourceType","_columnsMatch","columnMatches","colDefMatches","idMatches","getValueFactory","stateItem","defaultState","key1","obj","value1","value2","calculated","depthFirstCallback","_createColumnTreeWithIds","defs","primaryColumns","existingTree","existingCols","existingGroups","extractExistingTreeData","colIdMap","colGroupIdMap","maxDepth","recursivelyProcessColDef","def","isColumnGroupDef","colGroupSvc","newGroup","colDefMerged","_addColumnDefaultAndTypes","_updateColumnState","dataTypeSvc","addColumnListeners","root","keyCreator","_colId","_field","columnTree","balanceColumnTree","treeDepth","_createColumnTree","columnKeyCreator","existingColKeys","unbalancedTree","_recursivelyCreateColumns","findMaxDepth","existingColsCopy","createProvidedColumnGroup","createColumn","existingColAndIndex","findExistingColumn","updateSomeColumnState","updateColSort","setColSortIndex","setColPinned","setColFlex","widthBeforeUpdate","newColDef","newHasId","newHasField","isAutoCol","defaultColDef","columnType","updateColDefAndGetColumnType","assignColumnTypes","cellDataType","autoGroupColDef","isSortingCoupled","rowGroup","initialSort","postProcess","userColDef","dataTypeDefinitionColumnType","columnTypes","allColumnTypes","userTypes","colType","t","typeColDef","abstractColDef","tree","placeLockedColumns","normal","forEach","lockPosition","isRtl","doesMovePassMarryChildren","allColumnsCopy","gridBalancedTree","rulePassed","columnGroup","marryChildren","newIndexes","newColIndex","maxIndex","minIndex","spread","maxSpread","getCommonValue","valueGetter","firstValue","dispatchColumnPinnedEvent","changedColumns","dispatchColumnVisibleEvent","dispatchColumnChangedEvent","dispatchColumnResizedEvent","finished","flexColumns","_applyColumnState","colModel","rowGroupColsSvc","pivotColsSvc","autoColSvc","selectionColSvc","colAnimation","visibleCols","pivotResultCols","valueColsSvc","providedCols","getColDefCols","selectionCols","getColumns","syncColumnWithStateItem","rowGroupIndexes","pivotIndexes","autoCol","getValue","minColWidth","syncColumnWithState","applyStates","states","existingColumns","getById2","dispatchEventsFunc","_compareColumnStatesAndDispatchEvents","columnsWithNoState","autoColStates","selectionColStates","unmatchedAndAutoStates2","unmatchedCount2","previousRowGroupCols","previousPivotCols","isAutoGroupColumn","applyDefaultsFunc","sortColumns","comparatorByIndex","refreshCols","syncColStates","getCol","colStates","getColumn","orderLiveColsLikeState","refresh","unmatchedAndAutoStates","unmatchedCount","start","getColDefCol","pivotResultColsList","getPivotResultCols","getPivotResultCol","finish","_resetColumnState","primaryCols","primaryColumnTree","getColDefColTree","columnStates","letRowGroupIndex","letPivotIndex","addColState","getColumnStateFromColDef","rowGroupIndex","pivotIndex","pivot","autoCols","orderedCols","orderedColState","applyOrder","startState","rowGroupColumns","pivotColumns","valueColumns","columnStateBefore","_getColumnState","columnStateBeforeMap","dispatchWhenListsDifferent","colsBefore","colsAfter","idMapper","beforeList","afterList","unchanged","changesArr","getChangedColumns","changedPredicate","changedColumns2","forAllCols","colStateBefore","columnIdMapper","c","valueChangePredicate","cs","oldActive","activeChanged","aggFuncChanged","changedValues","resizeChangePredicate","pinnedChangePredicate","visibilityChangePredicate","sortChangePredicate","dispatchSortChangedEvents","colStateAfter","normaliseColumnMovedEventForColumnState","createStateItemFromColumn","colIdToGridIndexMap","getCols","itemA","itemB","posA","posB","getValueOrNull","initialSortIndex","initialPinned","initialFlex","initialRowGroupIndex","initialRowGroup","initialPivotIndex","initialPivot","initialAggFunc","colIds","sortColsLikeKeys","newOrder","processedColIds","autoGroupInsertIndex","alreadyProcessed","isAutoGroupCol","getColTree","colStateAfterMapped","colsIntersectIds","beforeFiltered","afterFiltered","movedColumns","csAfter","csBefore","gridCol","indexes","oldList","colA","colB","indexA","indexB","aHasIndex","bHasIndex","oldIndexA","oldIndexB","aHasOldIndex","bHasOldIndex","ColumnModel","arguments","ready","changeEventsDispatching","refreshAll","recreateColumnDefs","setPivotMode","createColsFromColDefs","colAutosize","groupHierarchyColSvc","colDefs","expire","oldCols","colDefCols","createColumnsForService","extractCols","applyAutosizeStrategy","newColDefs","prevColTree","saveColOrder","rowNumbersSvc","quickFilter","rowAutoHeight","colViewport","selectCols","shouldSortNewColDefs","showingPivotResult","restoreColOrder","positionLockedCols","setColSpanActive","setAutoHeightActive","clear","dispatchChangedEvent","services","service","createColumns","updateOrder","lastOrder","lastPivotOrder","addColumns","pivotResultColsSvc","hasSameColumns","getColsToShow","showAutoGroupAndValuesOnly","isPivotMode","showSelectionColumn","isSelectionColumnEnabled","showRowNumbers","isValueCol","setColsVisible","preservedOrder","hasSiblings","ancestor","preservedOrderSet","colPositionMap","additionalCols","getPreviousSibling","highestIdx","highestSibling","colIdx","leafCol","noSiblingsAvailable","previousSiblingPosMap","prevSiblingIdx","prev","resultPointer","nextCol","extraCols","x","getColumnDefs","sorted","colDefFactory","colSpanActive","updateColumns","setColumnDefs","columnDefs","getColsForKeys","getColFromCollection","getColById","BaseColsService","columnIndexMap","updateIndexMap","wireBeans","aggFuncSvc","groupHierarchCols","compareFn","compareVirtualColumns","setColumns","colKeys","setColList","columnProcessors","updateColList","removeColumns","getColumnIndex","masterList","detectOrderChange","autoGroupsNeedBuilding","columnCallback","gridColumns","oldIndex","added","actionIsAdd","atLeastOne","updatedCols","columnToAdd","currentIndex","eventColumns","oldProvidedCols","previousCols","colsWithIndex","colsWithValue","setFlagFunc","getIndexFunc","getInitialIndexFunc","getValueFunc","getInitialValueFunc","columnExtractors","colIsNew","initialValue","initialIndex","include","valuePresent","indexPresent","initialValuePresent","initialIndexPresent","useIndex","getIndexForCol","addCol","expandColumnInto","restoreColumnOrder","columnStateAccumulator","incomingColumnState","colList","updatedColIdArray","updatedColIds","newColIds","allColIds","colIdsInOriginalOrder","originalOrderMap","orderIndex","hasAddedNewCols","lastIndex","enableProp","columnOrdering","initialEnableProp","indexProp","initialIndexProp","processPrecedingNewCols","originalOrderIndex","newColId","missingIndex","propEnabled","GroupInstanceIdCreator","existingIds","getInstanceIdForKey","lastResult","EmptyBean","setupCompBean","ctrl","ctx","compBean","RefPlaceholder","_isComponent","getGui","CssClassManager","cssClassStates","toggleCss","addOrRemove","updateNeeded","compIdSequence","AgComponentStub","templateOrParams","componentSelectors","suppressDataRefValidation","compId","cssManager","eGui","comp","selector","setTemplate","preConstruct","wireTemplate","debugId","getPrototypeOf","css","addGlobalCSS","paramsMap","applyElementsToComponent","createChildComponentsFromTags","getCompId","getDataRefAttribute","elementRef","newComponent","current","usedAsParamRef","childNodeList","childNode","childNodes","childComp","createComponentFromElement","childComp2","childGui","attr","attributes","addItems","prototype","call","swapComponentForNode","nodeName","isAgGridComponent","componentSelector","componentParams","setParentComponent","eComponent","replaceChild","createComment","activateTabIndex","elements","setTemplateFromElement","components","getFocusableElement","getAriaElement","parentComponent","getParentComponent","setGui","queryForHtmlElement","cssSelector","getContainerAndElement","newChild","container","prependChild","isDisplayed","setDisplayed","addGuiEventListener","addCss","removeCss","registerCSS","Component","isColumnFilterComp","_isPromise","then","_wrapInterval","action","AgPromise","resolve","_AgPromise","status","resolution","waiters","onDone","onReject","all","promises","remainingToResolve","combinedValues","promise","waiter","_","doesImplementIComponent","candidate","_getUserCompKeys","defObject","compName","jsComp","fwComp","paramsFromSelector","popupFromSelector","popupPositionFromSelector","defObjectAny","selectorFunc","selectorRes","assignComp","providedJsComp","isFwkComp","isFrameworkComponent","popup","popupPosition","UserComponentFactory","agCompUtils","registry","frameworkCompWrapper","getCompDetailsFromGridOptions","defaultName","mandatory","getCompDetails","cellRenderer","defaultCompParams","defaultCompProcessParams","lookupFromRegistry","getUserComponent","componentFromFramework","processParams","adaptFunction","validation","isProvidedUserComp","getModuleErrorParams","propName","paramsMerged","mergeParams","componentClass","newAgStackInstance","ComponentClass","jsComponent","instance","mandatoryMethods","optionalMethods","deferredInit","init","paramsFromGrid","userParams","userParamsFromFunc","DateComponent","DragAndDropImageComponent","HeaderComponent","InnerHeaderComponent","InnerHeaderGroupComponent","HeaderGroupComponent","InnerCellRendererComponent","CellRendererComponent","EditorRendererComponent","LoadingCellRendererComponent","CellEditorComponent","LoadingOverlayComponent","NoRowsOverlayComponent","TooltipComponent","FilterComponent","FloatingFilterComponent","FullWidth","FullWidthLoading","FullWidthGroup","FullWidthDetail","_getDragAndDropImageCompDetails","userCompFactory","_getInnerCellRendererDetails","_getHeaderCompDetails","_getInnerHeaderCompDetails","headerCompParams","_getHeaderGroupCompDetails","_getInnerHeaderGroupCompDetails","headerGroupCompParams","_getFullWidthCellRendererDetails","_getFullWidthLoadingCellRendererDetails","_getFullWidthGroupCellRendererDetails","_getFullWidthDetailCellRendererDetails","_getCellRendererDetails","_getEditorRendererDetails","_getLoadingCellRendererDetails","_getCellEditorDetails","_getFilterDetails","defaultFilter","filterParams","_getDateCompDetails","_getLoadingOverlayCompDetails","_getNoRowsOverlayCompDetails","_getTooltipCompDetails","_getFloatingFilterCompDetails","defaultFloatingFilter","_getFilterCompKeys","_mergeFilterParamsWithApplicationProvidedParams","_unwrapUserComp","compAsAny","isProxy","getFrameworkComponentInstance","isComponentMetaFunc","componentMeta","getComp","KeyCode","BACKSPACE","TAB","ENTER","ESCAPE","SPACE","LEFT","UP","RIGHT","DOWN","DELETE","F2","PAGE_UP","PAGE_DOWN","PAGE_HOME","PAGE_END","A","C","D","V","X","Y","Z","AgPopupComponent","isPopup","parentComp","hasParent","isSafari","isFirefox","isMacOs","isIOS","invisibleScrollbar","browserScrollbarWidth","maxDivHeight","_isBrowserSafari","test","navigator","userAgent","_isBrowserFirefox","_isMacOsUserAgent","platform","_isIOSUserAgent","maxTouchPoints","_getTabIndex","numberTabIndex","_getMaxDivHeight","testUpTo","div","_getScrollbarWidth","initScrollbarWidthAndVisibility","opacity","overflow","msOverflowStyle","offsetWidth","_isInvisibleScrollbar","DATE_TIME_SEPARATOR","DATE_TIME_SEPARATOR_REGEXP","RegExp","DATE_TIME_REGEXP","_padStartWidthZeros","totalStringSize","padStart","_serialiseDate","date","includeTime","separator","serialised","getFullYear","getMonth","getDate","part","getHours","getMinutes","getSeconds","_getDateParts","d","calculateOrdinal","remainder","MONTHS","DAYS","_dateToFormattedString","format","fullYear","YYYY","YY","MMMM","MMM","MM","Mo","M","Do","DD","dddd","getDay","ddd","dd","do","regexp","match","_isValidDate","bailIfInvalidTime","_parseDateTimeFromString","_isValidDateTime","skipValidation","dateStr","timeStr","fields","f","year","month","day","hours","minutes","seconds","setHours","setMinutes","setSeconds","_fuzzySuggestions","inputValue","allSuggestions","hideIrrelevant","filterByPercentageOfBestMatch","thisSuggestions","text","relevance","_getLevenshteinSimilarityDistance","suggestion","bestMatch","limit","indices","inputText","previousRow","currentRow","sourceLength","targetLength","secondaryScore","sourceChar","targetChar","insertCost","deleteCost","replaceCost","_isEventFromPrintableCharacter","altKey","metaKey","printableCharacter","keyboardModeActive","instanceCount","addKeyboardModeEvents","doc","toggleKeyboardMode","removeKeyboardModeEvents","isKeyboardActive","isKeyboardEvent","_registerKeyboardFocusEvents","_isKeyboardMode","_findFocusableElements","exclude","onlyUnmanaged","focusableString","excludeString","nodes","excludeNodes","diff","_focusInto","up","excludeTabGuards","focusableElements","toFocus","focus","preventScroll","_findNextFocusableElement","onlyManaged","backwards","focusable","findIndex","nextIndex","_findTabbableParent","agAbstractLabelCSS","AgAbstractLabel","config","labelSeparator","labelAlignment","eLabel","labelWidth","setDisabled","setLabelSeparator","setLabel","setLabelWidth","setLabelAlignment","refreshLabel","innerText","getLabelId","getLabel","alignment","eGuiClassList","setLabelEllipsis","hasEllipsis","isDisabled","AgAbstractField","onValueChange","setWidth","setValue","refreshAriaLabelledBy","ariaEl","labelId","setAriaLabel","callbackFn","fieldValueChanged","getWidth","getPreviousValue","previousValue","buildTemplate","displayFieldTag","AgAbstractInputField","inputType","eWrapper","eInput","setInputType","inputName","inputWidth","setInputName","setInputWidth","addInputListeners","getInputElement","setMaxLength","setInputPlaceholder","placeholder","setInputAriaLabel","setAutoComplete","autoCompleteValue","AgCheckbox","readOnly","setReadOnly","setPassive","click","onCheckboxClick","getNextValue","isReadOnly","isSelected","nextValue","dispatchChange","refreshSelectedClass","setSelected","setName","indeterminate","AgCheckboxSelector","AgRadioButton","checkboxChanged","onChange","agToggleButtonCSS","AgToggleButton","AgToggleButtonSelector","AgInputTextField","allowedCharPattern","preventDisallowedCharacters","setStartValue","pattern","preventCharacters","keydown","paste","clipboardData","getData","AgInputTextFieldSelector","AgInputTextArea","ret","setCols","setRows","rows","AgInputTextAreaSelector","AgInputNumberField","blur","floatedValue","normalizeValue","wheel","onWheel","step","precision","setPrecision","setMin","setMax","setStep","adjustPrecision","isScientificNotation","floatString","toFixed","parts","setValueOrInputValue","v","setValueFunc","setInputValueOnlyFunc","setInputValueOnly","validity","valid","normalizedValue","AgInputNumberFieldSelector","AgInputDateField","usingSafari","mousedown","minDate","maxDate","setIncludeTime","setDate","AgInputDateFieldSelector","agListCSS","ACTIVE_CLASS","getAgListElement","cssIdentifier","AgListItem","eText","createTooltip","addEventListeners","setHighlighted","getHeight","setIndex","setSize","tooltipCtrl","getTooltipValue","getLocation","shouldDisplayTooltip","tooltipFeature","createDynamicBean","highlightItem","stopPropagation","AgList","listItems","highlightedItem","mouseleave","clearHighlighted","handleKeyDown","pos","setValueByIndex","navigate","navigateToPage","addOptions","listOptions","listOption","addOption","valueToRender","renderOption","updateIndices","clearOptions","refreshAriaRole","fireItemSelected","option","displayValue","fireChangeEvent","getDisplayValue","refreshHighlighted","itemEl","offsetTop","offsetHeight","scrollIntoView","block","hideItemTooltip","attemptToHideTooltip","listItem","isDown","itemToHighlight","currentIdx","nextPos","itemHeight","pageSize","newIndex","agPickerFieldCSS","AgPickerFieldElement","AgPickerField","agComponents","isPickerDisplayed","skipClick","pickerGap","hideCurrentPicker","eDisplayField","eIcon","ariaRole","onPickerFocusIn","onPickerFocusOut","maxPickerHeight","variableWidth","minPickerWidth","maxPickerWidth","setPickerMaxHeight","setPickerMinWidth","setPickerMaxWidth","setupAria","displayId","onKeyDown","onLabelOrWrapperMouseDown","pickerIcon","icon","iconSvc","createIconNoSpan","focusableEl","hidePicker","showPicker","pickerComponent","createPickerComponent","pickerGui","renderAndPositionPicker","toggleExpandedStyles","ePicker","destroyMouseWheelFunc","bodyScroll","pickerAriaLabelKey","pickerAriaLabelValue","modalPicker","popupParams","modal","closeOnEsc","closedCallback","shouldRestoreFocus","beforeHidePicker","ariaLabel","anchorToElement","popupSvc","addPopupRes","addPopup","getPopupParent","alignPickerToComponent","hideFunc","pickerType","alignSide","positionPopupByComponent","eventSource","ePopup","keepWithinBounds","nudgeY","togglePickerHasFocus","relatedTarget","focused","setPickerGap","gap","agSelectCSS","AgSelect","createListComponent","focusout","onWrapperFocusOut","listComponent","eListAriaEl","listId","selectedItem","fromPicker","setTooltipAndRefresh","AgSelectSelector","Direction","Direction2","sharedCSS","IS_SSR","fonts","_injectGlobalCSS","styleContainer","layer","nonce","CSS","escape","injections","injectionState","dataset","agGlobalCss","newInjection","insertAfter","injection","_injectCoreAndModuleCSS","moduleCss","singleCss","_registerInstanceUsingThemingAPI","grids","_unregisterInstanceUsingThemingAPI","WeakMap","head","_a","agStyleInjectionState","createPart","PartImpl","defaultModeName","partCounter","feature","modeParams","cssImports","use","inject","_inject","cssImport","class","kebabCase","m","toLowerCase","paramToVariableName","paramName","paramToVariableExpression","clamp","memoize","accentMix","mix","foregroundMix","foregroundBackgroundMix","onto","foregroundHeaderBackgroundMix","backgroundColor","foregroundColor","accentColor","defaultLightColorSchemeParams","borderColor","chromeBackgroundColor","browserColorScheme","sharedDefaults","textColor","invalidColor","fontFamily","subtleTextColor","borderWidth","borderRadius","spacing","fontSize","focusShadow","color","focusErrorShadow","popupShadow","cardShadow","dropdownShadow","listItemHeight","calc","dragAndDropImageBackgroundColor","dragAndDropImageBorder","dragAndDropImageNotAllowedBorder","dragAndDropImageShadow","iconSize","iconColor","toggleButtonWidth","toggleButtonHeight","toggleButtonOnBackgroundColor","toggleButtonOffBackgroundColor","toggleButtonSwitchBackgroundColor","toggleButtonSwitchInset","tooltipBackgroundColor","tooltipErrorBackgroundColor","tooltipTextColor","tooltipErrorTextColor","tooltipBorder","tooltipErrorBorder","paramTypes","getParamType","param","find","endsWith","literalToCSS","colorValueToCss","colorExpr","backgroundExpr","colorSchemeValueToCss","lengthValueToCss","valueWithSpaces","p","scaleValueToCss","borderValueToCss","borderStyleValueToCss","shadowValueToCss","offsetX","offsetY","radius","fontFamilyValueToCss","quoteUnsafeChars","googleFont","font","fontWeightValueToCss","imageValueToCss","encodeURIComponent","svg","durationValueToCss","themeLogger","paramValidators","colorScheme","scale","border","borderStyle","shadow","image","fontWeight","duration","paramValueToCss","_asThemeImpl","theme","ThemeImpl","createSharedTheme","_ThemeImpl","withPart","preInitErr","withoutPart","withParams","_startUse","cssLayer","loadThemeGoogleFonts","uninstallLegacyCSS","googleFontsUsed","getGoogleFontsUsed","loadGoogleFont","_getCssClass","_cssClassCache","deduplicatePartsByFeature","Boolean","_getModeParams","paramsCache","_paramsCache","mergedModeParams","partMode","partParams","mergedParams","partParamNames","partParamName","partParamValue","mergedMode","mergedParams2","_getPerInstanceCss","selectorPlaceholder","innerParamsCss","_paramsCssCache","variablesCss","inheritanceCss","escapedMode","wrapPrefix","cssValue","cssName","inheritedName","replaceAll","lastPartByFeature","visitParamValue","paramValue","allModeValues","allValues","flatMap","mv","uninstalledLegacyCSS","googleFontsDomain","contextId","AgContext","createdBeans","beanClasses","beanDestroyComparator","destroyCallback","providedBeanInstances","BeanClass","beanFunc","derivedBeans","beanInitComparator","initBeans","getBeanInstances","beanInstances","getBeans","getBean","isDestroyed","paramsId","BaseEnvironment","paramsClass","globalCSS","setInstanceDomData","eStyleContainer","styleNonce","handleThemeChange","initVariables","mutationObserver","MutationObserver","fireStylesChangedEvent","applyThemeClasses","extraClasses","themeClass","applyLegacyThemeClasses","oldClass","isThemeEl","attributeFilter","oldTheme","themeProperty","newTheme","themeOrDefault","getDefaultTheme","themeError","handleNewTheme","postProcessThemeChange","additionalCss","getAdditionalCss","eParamsStyle","BaseRegistry","registerDynamicBeans","dynamicBeans","getDynamicError","BaseEventService","globalSvc","AgTooltipFeature","refreshTooltip","setBrowserTooltip","tooltip","allowEmptyString","updateTooltipText","createTooltipFeatureIfNeeded","tooltipManager","attemptToShowTooltip","prepareToShowTooltip","hideTooltip","clearWithEmptyString","browserTooltips","SHOW_QUICK_TOOLTIP_DIFF","FADE_OUT_TOOLTIP_TIMEOUT","INTERACTIVE_HIDE_DELAY","lastTooltipHideTime","isLocked","BaseTooltipStateManager","interactionEnabled","isInteractingWithTooltip","tooltipInstanceCount","getTooltipTrigger","mouseenter","onMouseEnter","onMouseLeave","focusin","onFocusIn","onFocusOut","mousemove","onMouseMove","onMouseDown","getGridOptionsTooltipDelay","delayOption","getTooltipDelay","getTooltipShowDelayOverride","getTooltipHideDelayOverride","setToDoNothing","trigger","interactiveTooltipTimeoutId","unlockService","startHideTimeout","showTooltipTimeoutId","lastMouseEvent","tooltipComp","positionTooltip","lockService","parentCompGui","tooltipGui","mouseEvent","isLastTooltipHiddenRecently","showTooltip","fromHideTooltip","onBodyScrollEventCallback","clearEventHandlers","onDocumentKeyDownCallback","clearTimeouts","location","hideTooltipCallback","getAdditionalParams","newTooltipComponentCallback","createTooltipComp","forceHide","destroyTooltipComp","parentGui","tooltipInstanceCopy","compNoLongerNeeded","tooltipPopupDestroyFunc","setEventHandlers","tooltipMouseEnterListener","tooltipMouseLeaveListener","onTooltipMouseEnter","onTooltipMouseLeave","tooltipFocusInListener","tooltipFocusOutListener","onTooltipFocusIn","onTooltipFocusOut","isTooltipFocused","skipObserver","positionPopupUnderMouseEvent","clearTooltipListeners","clearInteractiveTimeout","clearHideTimeout","hideTooltipTimeoutId","clearShowTimeout","AgHighlightTooltipFeature","highlightTracker","onHighlight","wireHighlightListeners","currentValue","setTooltipMode","tooltipMode","tooltipTriggerMode","instanceIdSeq","WAIT_FOR_POPUP_CONTENT_RESIZE","BasePopupService","popupList","ePopupParent","getDefaultPopupParent","nudgeX","positionPopup","updatePosition","calculatePointerAlign","postProcessCallback","callPostProcessPopup","parentRect","getParentRect","y","sourceRect","setAlignedTo","setAlignedStyles","alignSide2","shouldRenderUnderOrAbove","targetCompRect","spaceAvailableUnder","spaceAvailableAbove","spaceRequired","positioned","popupIdx","getPopupIndex","alignedToElement","positions","lastSize","updatePopupPosition","fromResizeObserver","keepXYWithinBounds","resizeObserverDestroyFunc","popupParent","isVertical","sizeProperty","anchorProperty","offsetProperty","scrollPositionProperty","docElement","popupRect","documentRect","isBody","offsetSize","ceil","getSize2","sizeOfParent","ariaOwns","alwaysOnTop","positionCallback","initialisePopupPosition","wrapperEl","createPopupWrapper","removeListeners","addEventListenersToPopup","addPopupToPopupList","ePopupParentRect","hasAttribute","setAlwaysOnTop","bringPopupToFront","popupEl","afterGuiAttached","popupHidden","hidePopupOnKeyboardEvent","isStopPropagation","keyboardEvent","hidePopupOnMouseEvent","hidePopupOnTouchEvent","touchEvent","isEventFromCurrentPopup","removePopupFromPopupList","hidePopup","wrapper","isAnchored","setPopupPositionRelatedToElement","relativeElement","popupIndex","stopAnchoringPromise","destroyPositionTracker","keepPopupPositionedRelativeTo","eParent","extractFromPixelValue","pxSize","createPosition","initialDiff","initial","lastDiff","last","topPosition","leftPosition","fwOverrides","pRect","sRect","elementNotInDom","calculateNewPosition","currentDiff","intervalId","indexOfThisChild","isElementWithinCustomPopup","getWrapper","popupLen","standardPopupList","alwaysOnTopList","innerElsScrollMap","onTopLength","isPopupAlwaysOnTop","shouldBeLast","targetList","currentPopup","innerEls","currentEl","AgTooltipComponent","locationKebabCase","tryPointerCapture","pointerId","setPointerCapture","hasPointerCapture","capturePointer","PointerEvent","capture","onLost","pointerEvent","pointerLostHandler","releasePointerCapture","removeLostHandler","activePointerDrags","handledDragEvents","addHandledDragEvent","WeakSet","BaseDragService","dragging","drag","dragSources","startTarget","isPointer","pointerCapture","cancelDrag","entry","destroyDragSourceEntry","removeDragSource","addDragSource","includeTouch","oldTouchAction","touchAction","dragSource","pointerDownListener","onPointerDown","mouseListener","touchListener","onTouchStart","onDragCancel","destroyDrag","shouldPreventMouseEvent","isMouseMove","getEventTargetElement","initDrag","onScroll","keydownEvent","ev","rootEl","pointerType","stopPropagationForTouch","pointerDrag","Dragging","onPointerMove","onMouseOrPointerMove","onUp","onMouseOrPointerUp","onCancel","dragStartPixels","touchDrag","touches","touchMoveEvent","onTouchMove","touchEndEvent","onTouchUp","onMove","mouseDrag","mouseUpEvent","lastDrag","onDragging","getSelection","removeAllRanges","currentEvent","requiredPixelDiff","onDragStart","changedTouches","eventOrTouch","onDragStop","Element","BaseDragAndDropService","dragSourceAndParamsList","dragItem","dragInitialSourcePointerOffsetX","dragInitialSourcePointerOffsetY","lastDraggingEvent","dragImageParent","dragImageCompPromise","dragImageComp","dragImageLastIcon","dragImageLastLabel","dropTargets","lastDropTarget","allowTouch","dragSvc","setDragImageCompIcon","iconName","shake","setIcon","sourceAndParams","clearDragAndDropProperties","nudge","getDragItem","rect","onDragStarted","createAndUpdateDragImageComp","onDragStopped","dragEndEvent","dropTargetEvent","onDragCancelled","dragCancelEvent","fromNudge","positionDragImageComp","dropTarget","findCurrentDropTarget","needUpdate","dragLeaveEvent","onDragLeave","handleExit","handleEnter","dragEnterEvent","onDragEnter","dragMoveEvent","updateDragImageComp","removeDragImageComp","getAllContainersFromDropTarget","secondaryContainers","getSecondaryContainers","containers","getContainer","isMouseOnDropTarget","allContainersFromDropTarget","mouseOverTarget","allContainersIntersect","mouseEvent2","horizontalFit","verticalFit","currentContainers","targetContainsSource","isInterestedIn","validDropTargets","elementStack","elementsFromPoint","addDropTarget","removeDropTarget","hasExternalDropZones","zones","external","findExternalZone","zone","dropZoneTarget","xDir","yDir","draggingEvent","createEvent","vDirection","hDirection","initialSourcePointerOffsetX","initialSourcePointerOffsetY","gui","createDragImageComp","oldDragImageComp","appendDragImageComp","zIndex","pointerEvents","warnNoBody","getIconName","dragItemName","DragSourceType","DragSourceType2","DragAndDropService","userCompDetails","onGridEnter","onGridExit","isDropZoneWithinThisGrid","ctrlsSvc","getGridBodyCtrl","eGridBody","registerGridDropTarget","elementFn","createUniqueColumnGroupId","isColumnGroup","AgColumnGroup","providedColumnGroup","partId","displayedChildren","allLeafColumns","getProvidedColumnGroup","every","checkLeft","lastChild","lastChildLeft","firstChildLeft","getPartId","groupActualWidth","groupChild","addChild","getDisplayedChildren","getDisplayedLeafColumns","addDisplayedLeafColumns","calculateDisplayedColumns","parentWithExpansion","emptyGroup","ROW_ID_PREFIX_ROW_GROUP","ROW_ID_PREFIX_TOP_PINNED","ROW_ID_PREFIX_BOTTOM_PINNED","OBJECT_ID_SEQUENCE","RowNode","master","sourceRowIndex","_leafs","childrenMapped","treeParent","treeNodeFlags","rowTop","oldRowTop","selectable","__objectId","alreadyRendered","hovered","__selected","allLeafChildren","leafs","groupStage","loadLeafs","setData","setDataCommon","updateData","update","oldData","onDataChanged","updateDataOnDetailNode","resetQuickFilterAggregateText","createDataChangedEvent","__localEventService","event2","pinnedSibling","detailNode","newData","getRowIndexString","rowPinned","setDataAndId","oldNode","createDaemonNode","setId","updateRowSelectable","syncInRowNode","getRowIdFunc","parentKeys","getRoute","groupPrefix","setRowTop","dispatchRowEvent","clearRowTopAndRowIndex","setRowIndex","setHovered","setRowHeight","rowHeightEstimated","forceSync","expansionSvc","setDataValue","colKey","valueSvc","oldValue","getValueForDisplay","committing","valueChanged","dispatchCellChangedEvent","updateHasChildren","childrenAfterGroup","rowChildrenSvc","getHasChildrenValue","__hasChildren","hasChildren","cellChangedEvent","quickFilterAggregateText","depthFirstSearch","clearSelection","setNodesSelected","isRowPinned","removeLocalListener","checkRowEvents","isFullWidthCell","isFullWidthCellFunc","reverse","setAllChildrenCount","allChildrenCount","setUiLevel","uiLevel","getFirstChild","childStore","getFirstNode","childrenAfterSort","_createGlobalRowEvent","IGNORED_SIBLING_PROPERTIES","_createRowNodeSibling","_firstLeaf","FILTER_HANDLER_MAP","agSetColumnFilter","agMultiColumnFilter","agGroupColumnFilter","agNumberColumnFilter","agDateColumnFilter","agTextColumnFilter","FILTER_HANDLERS","getFilterUiFromWrapper","filterWrapper","skipCreate","filterUi","created","create","refreshed","createdFilterUi","_refreshHandlerAndUi","getFilterUi","handlerParams","_refreshFilterUi","getAndRefreshFilterUi","getModel","getState2","_updateFilterModel","updateState","updateModel","processModelToApply","shouldUpdateModel","oldState","_getFilterModel","_createElement","getElement","FilterButtonComp","validationMessage","updateButtons","buttons","useForm","oldButtons","eApplyButton","destroyListeners","fragment","createDocumentFragment","addButton","clickListener","isApply","buttonType","keydownListener","eApply","validationTooltipFeature","getApplyButton","updateValidity","AgFilterButtonSelector","FILTER_LOCALE_TEXT","applyFilter","clearFilter","resetFilter","cancelFilter","textFilter","numberFilter","dateFilter","setFilter","filterOoo","empty","equals","notEqual","lessThan","greaterThan","inRange","inRangeStart","inRangeEnd","lessThanOrEqual","greaterThanOrEqual","notContains","blank","notBlank","before","after","andCondition","orCondition","dateFormatOoo","filterSummaryInactive","filterSummaryContains","filterSummaryNotContains","filterSummaryTextEquals","filterSummaryTextNotEqual","filterSummaryStartsWith","filterSummaryEndsWith","filterSummaryBlank","filterSummaryNotBlank","filterSummaryEquals","filterSummaryNotEqual","filterSummaryGreaterThan","filterSummaryGreaterThanOrEqual","filterSummaryLessThan","filterSummaryLessThanOrEqual","filterSummaryInRange","filterSummaryInRangeValues","filterSummaryTextQuote","translateForFilter","getDebounceMs","debounceDefault","debounceMs","_isUseApplyButton","FilterWrapperComp","eventParent","isGlobalButtons","enableGlobalButtonCheck","applyActive","originalParams","resetButtonsPanel","filterParamsChanged","eventParams","filterStateChanged","eButtons","filterAction","afterAction","filterGlobalButtons","isGlobal","currentParams","newParams","oldParams","forceUpdate","oldReadOnly","newButtons","hasButtons","eButtonsPanel","localeKey","getListener","fromButtons","cancel","close","closeOnApply","defaultPrevented","FilterElement","FilterComp","colFilter","activeFilterComps","createFilter","filterDestroyed","onFilterDestroyed","hasFilter","getFilter","afterInit","afterGuiAttachedParams","afterGuiDetached","filterPromise","getFilterUiForDisplay","isHandler","filterGui","displayComp","guiFromFilter","MONTH_LOCALE_TEXT","january","february","march","april","may","june","july","august","september","october","november","december","MONTH_KEYS","setFilterNumberComparator","isValidDate","getTime","filterParamsForEachDataType","number","boolean","maxNumConditions","filterOptions","displayKey","displayName","predicate","_filterValues","cellValue","numberOfInputs","dateString","dataTypeDefinition","filterDate","cellAsDate","dateParser","dateTime","dateTimeString","setFilterParamsForEachDataType","valueFormatter","formatValue","valueFormatted","treeList","treeListFormatter","pathKey","monthKey","treeListPathGetter","convertToDate","_getFilterParamsForDataType","existingFilterParams","existingFilterValueGetter","filterValueGetter","usingSetFilter","baseDataType","filterParamsMap","filterParamsGetter","newFilterParams","defaultFilters","defaultFloatingFilters","_getDefaultSimpleFilter","isFloating","filterSet","RESIZE_CONTAINER_STYLE","makeDiv","dataRefPrefix","classSuffix","RESIZE_TEMPLATE","PositionableFeature","dragStartPosition","resizersAdded","resizeListeners","boundaryEl","isResizing","movable","currentResizer","center","offsetElement","initialisePosition","centered","forcePopupParentAsOffsetParent","setOffsetParent","computedMinHeight","computedMinWidth","isElementVisible","findBoundaryElement","offsetParentComputedStyles","paddingWidth","paddingHeight","setHeight","refreshSize","initialisedDuringPositioning","setPosition","isPositioned","getPosition","setMovable","moveElement","moveElementDragListener","onMoveStart","onMoveEnd","setResizable","clearResizeListeners","addResizers","removeResizers","topLeft","topRight","bottomRight","bottomLeft","side","resizableStructure","isSideResizable","resizerEl","getResizerElement","onResizeStart","onResize","onResizeEnd","removeSizeFromEl","restoreLastSize","isPercent","availableHeight","getAvailableHeight","elRect","offsetParentRect","yPosition","parentTop","additionalHeight","parentEl","xPosition","constrainSizeToAvailableHeight","constrain","applyMaxHeightToElement","resizeObserverSubscriber","updateDragStartPosition","calculateMouseMovement","isLeft","isTop","anywhereWithin","topBuffer","xDiff","yDiff","movementX","shouldSkipX","movementY","shouldSkipY","boundaryElRect","skipX","skipY","createResizeMap","resizerMap","isRight","isBottom","applySizeToSiblings","getSiblings","getMinSizeOfSiblings","siblings","isFlex","nextHeight","nextWidth","computedStyle","vertical","containerToFlex","isHorizontal","offsetLeft","oldWidth","newWidth","skipWidth","oldHeight","newHeight","skipHeight","calculateTopBuffer","AG_GRID_STOP_PROPAGATION","_stopPropagationForAgGrid","_isStopPropagationForAgGrid","FOCUS_MANAGED_CLASS","ManagedFocusFeature","eFocusable","callbacks","shouldStopEventPropagation","onTabKeyDown","nextRoot","shiftKey","addKeyDownListeners","ProvidedFilter","filterNameKey","debouncePending","defaultDebounceMs","createBodyTemplate","getAgComponents","positionableFeature","getPositionableElement","_e","legacyParams","setParams","setModelIntoUi","updateUiVisibility","legacyNewParams","updateParams","newState","commonUpdateParams","_oldParams","setupApplyDebounced","doesFilterPass","getHandler","getHandlerParams","getFilterTitle","debounceFunc","checkApplyDebounce","applyDebounced","doApplyModel","setModel","setModelForColumnLegacy","applyModel","_source","canApply","_model","areModelsEqual","onAction","onNewRowsLoaded","onUiChanged","afterFloatingFilter","getModelFromUi","getState","onStateChange","onUiChange","getUiChangeEventParams","filterInstance","afterDataChange","lastContainerType","refreshFilterResizer","containerType","areNonNullModelsEqual","isCombinedFilterModel","operator","_getDefaultFloatingFilterType","getFromDefault","defaultFloatingFilterType","floatingFilterTypeMap","usingDefaultFilter","STRUCTURED_SCHEMA_FEATURES","LayoutCssClasses","AUTO_HEIGHT","NORMAL","PRINT","LayoutFeature","view","updateLayoutClasses","print","cssClass","VIEWPORT","FAKE_V_SCROLLBAR","HORIZONTAL_SOURCES","SCROLL_DEBOUNCE_TIMEOUT","SCROLL_END_TIMEOUT","GridBodyScrollFeature","eBodyViewport","clearRetryListenerFncs","lastScrollSource","nextScrollTop","lastOffsetHeight","lastScrollTop","lastIsHorizontalScrollShowing","scrollTimer","isScrollActive","isVerticalPositionInvalidated","isHorizontalPositionInvalidated","resetLastHScrollDebounced","resetLastVScrollDebounced","animationFrameSvc","invalidateVerticalScroll","invalidateHorizontalScroll","displayedColumnsWidthChanged","onDisplayedColumnsWidthChanged","bodyHeightChanged","scrollGapChanged","scroll","whenReady","centerRowsCtrl","addScrollListener","addHorizontalScrollListeners","addVerticalScrollListeners","eViewport","onHScroll","scrollPartner","registerScrollPartner","fakeVScrollComp","isDebounce","onVScroll","onFakeVScroll","onScrollCallback","horizontallyScrollHeaderCenterAndFloatingCenter","notYetInitialised","getCenterViewportScrollLeft","setScrollLeftForAllContainersExceptCurrent","viewport","getViewportForSource","isControllingScroll","centerContainerViewport","shouldBlockScrollUpdate","newScrollLeft","doHorizontalScroll","getScrollPosition","setScrollTop","setScrollPosition","active","schedule","scrollGridIfNeeded","fakeScrollLeft","fireScrollEvent","onHorizontalViewportChanged","isScrolling","bodyScrollEvent","scrollTo","touchOnly","shouldBlockVerticalScroll","shouldBlockHorizontalScroll","getCenterWidth","redrawRowsAfterScroll","checkScrollLeft","hasHorizontalScrollersOutOfSync","suppressedAnimationFrame","frameNeeded","setHorizontalScrollPosition","hScrollPosition","fromAlignedGridsService","minScrollLeft","maxScrollLeft","setVerticalScrollPosition","vScrollPosition","getVScrollPosition","getApproximateVScollPosition","getHScrollPosition","isHorizontalScrollShowing","scrollHorizontally","pixels","oldScrollPosition","scrollToTop","ensureNodeVisible","getRowCount","indexToSelect","getRow","ensureIndexVisible","retry","clearRetryListeners","pageBounds","rowContainerHeight","heightScaler","rowRenderer","gridBodyCtrl","rowGotShiftedDuringOperation","stickyHeightsChanged","attempt","stickyTopHeight","stickyBottomHeight","startingRowTop","startingRowHeight","paginationOffset","getPixelOffset","rowTopPixel","rowBottomPixel","scrollPosition","heightOffset","divStretchOffset","vScrollTop","vScrollBottom","viewportHeight","pxTop","getScrollPositionForPixel","pxBottom","pxMiddle","rowAboveViewport","rowBelowViewport","newScrollPosition","redraw","afterScroll","flushAllFrames","stub","areRowsMeasured","newScrollTop","modelUpdated","ensureColumnVisible","isColDisplayed","newHorizontalScroll","getPositionedHorizontalScroll","setCenterViewportScrollLeft","columnBeforeStart","columnAfterEnd","isColumnOutsideViewport","viewportTooSmallForColumn","viewportWidth","alignColToStart","alignColToEnd","isMiddle","colLeft","colMiddle","colRight","getColumnBounds","viewportStart","end","viewportEnd","getViewportBounds","bodyWidth","colWidth","multiplier","colLeftPixel","colRightPixel","colMidPixel","viewportStartPixel","viewportEndPixel","CenterWidthFeature","addSpacer","columnContainerWidthChanged","displayedColumnsChanged","leftPinnedWidthChanged","rightPinnedWidthChanged","scrollVisibilityChanged","scrollbarWidthChanged","printLayout","scrollVisibleSvc","centerWidth","leftWidth","getColsLeftWidth","rightWidth","getDisplayedColumnsRightWidth","totalWidth","relevantWidth","verticalScrollShowing","getScrollbarWidth","ViewportSizeFeature","centerContainerCtrl","listenForResize","onScrollbarWidthChanged","checkViewportAndScrolls","onCenterViewportResized","registerViewportResizeListener","registerBodyViewportResizeListener","updateScrollGap","isViewportInTheDOMTree","keepPinnedColumnsNarrowerThanViewport","refreshFlexedColumns","updateBodyWidths","fireResizedEvent","bodyHeight","updateScrollVisibleService","checkBodyHeight","scrollFeature","getBodyHeight","updateScrollVisibleServiceImpl","horizontalScrollShowing","isVerticalScrollShowing","setScrollsVisible","getViewportScrollLeft","_suppressCellMouseEvent","suppressMouseEventHandling","cellRendererParams","suppressMouseEvent","_suppressFullWidthMouseEvent","_getCtrlForEventTarget","eventTarget","sourceElement","renderedComp","DOM_DATA_KEY_CELL_CTRL","_getCellCtrlForEventTarget","DOM_DATA_KEY_ROW_CTRL","_getRowCtrlForEventTarget","_isUserSuppressingKeyboardEvent","editing","colDefFunc","suppressKeyboardEvent","colDefFuncResult","_selectAllCells","pinnedRowModel","isEmptyPinnedTop","isEmptyPinnedBottom","isEmpty","floatingStart","floatingEnd","rowEnd","getPinnedBottomRowCount","rangeSvc","allDisplayedColumns","allCols","setCellRange","rowStartIndex","rowStartPinned","rowEndIndex","rowEndPinned","A_KEYCODE","C_KEYCODE","V_KEYCODE","D_KEYCODE","Z_KEYCODE","Y_KEYCODE","_normaliseQwertyAzerty","keyCode","code","RowContainerEventsFeature","addKeyboardListeners","addMouseListeners","touchSvc","mockRowContextMenu","processKeyboardEvent","mouseDownEvent","eventNames","processMouseEvent","cellCtrl","rowCtrl","getControlsForEventTarget","dispatchCellContextMenuEvent","contextMenuSvc","handleContextMenuMouseEvent","onMouseEvent","processCellKeyboardEvent","isFullWidth","processFullWidthRowKeyboardEvent","isEditing","withOpenEditor","gridProcessingAllowed","wasScrollKey","navigation","handlePageScrollingKey","doGridOperations","processCharacter","focusSvc","focusedCell","getFocusedCell","onKeyboardNavigate","createRowEvent","clipboardSvc","undoRedo","onCtrlAndA","onCtrlAndC","onCtrlAndD","onCtrlAndV","onCtrlAndX","onCtrlAndY","onCtrlAndZ","isRowsToRender","selectAllRowNodes","copyToClipboard","cutToClipboard","pasteFromClipboard","copyRangeDown","redo","undo","SetHeightFeature","rowContainerHeightChanged","onHeightChanged","maxDivHeightScaler","uiContainerHeight","heightString","getTopRowCtrls","r","topRowCtrls","getStickyTopRowCtrls","getStickyBottomRowCtrls","getBottomRowCtrls","bottomRowCtrls","getCentreRowCtrls","allRowCtrls","getSpannedTopRowCtrls","getCtrls","getSpannedCenterRowCtrls","getSpannedBottomRowCtrls","ContainerCssClasses","getRowCtrls","getSpannedRowCtrls","pinnedType","fullWidth","topCenter","topFullWidth","stickyTopCenter","stickyTopLeft","stickyTopRight","stickyTopFullWidth","stickyBottomCenter","stickyBottomLeft","stickyBottomRight","stickyBottomFullWidth","bottomCenter","bottomFullWidth","_getRowViewportClass","_getRowContainerOptions","_getRowContainerClass","_getRowSpanContainerClass","allTopNoFW","allBottomNoFW","allMiddleNoFW","allMiddle","allCenter","allLeft","allRight","allStickyTopNoFW","allStickyBottomNoFW","allStickyContainers","allNoFW","RowContainerCtrl","EMPTY_CTRLS","forContainers","viewportSizeFeature","stickyTopOffsetChanged","onStickyTopOffsetChanged","setOffsetTop","offset","registerWithCtrlsService","names","setComp","eSpannedContainer","addPreventScrollWhileDragging","listenOnDomOrder","pinnedWidthChanged","onPinnedWidthChanged","pinnedWidthFeature","createPinnedWidthFeature","createDragListenerFeature","setContainerWidth","isContainerVisible","addListeners","spannedRowRenderer","onDisplayedColumnsChanged","displayedRowsChanged","onDisplayedRowsChanged","spannedRowsUpdated","spannedCtrls","setSpannedRowCtrls","isStickContainer","setDomOrder","isEnsureDomOrder","isPrintLayout","hasHorizontalScrollGap","hasVerticalScrollGap","unsubscribeFromResize","isAlwaysShowHorizontalScroll","setHorizontalScroll","setRowCtrls","rowCtrls","embedFW","rowsThisContainer","fullWidthRow","useFlushSync","CSS_CLASS_FORCE_VERTICAL_SCROLL","CSS_CLASS_CELL_SELECTABLE","CSS_CLASS_COLUMN_MOVING","GridBodyCtrl","filterManager","eTop","eBottom","eStickyTop","eStickyBottom","eCenterColsViewport","eFullWidthContainer","eStickyTopFullWidthContainer","eStickyBottomFullWidthContainer","setCellTextSelection","props","rowDragSvc","setupRowDrag","setupRowAnimationCssClass","addFocusListeners","setGridRootRole","onGridColumnsChanged","addBodyViewportListener","setFloatingHeights","disableBrowserDragging","addStopEditingWhenGridLosesFocus","updateScrollingClasses","setupAdvFilterHeaderComp","toggleRowResizeStyle","toggleRowResizeStyles","gridColumnsChanged","onScrollVisibilityChanged","pinnedRowDataChanged","pinnedHeightChanged","pinnedRowsChanged","headerHeightChanged","setStickyTopOffsetTop","columnRowGroupChanged","columnPivotChanged","rowResizeStarted","rowResizeEnded","isResizingRow","setColumnCount","setVerticalScrollPaddingVisible","setStickyWidth","setStickyBottomOffsetBottom","scrollbarWidth","pad","setBodyViewportWidth","isTreeGrid","rowGroupColumnLen","columnsNeededForGrouping","isFocusedElementNested","gridContainRelatedTarget","isNestedRelatedTarget","isNestedTarget","setColumnMovingCss","setCellSelectableCss","verticalScrollGap","horizontalScrollGap","dragstart","HTMLImageElement","updateRowCount","headerCount","getHeaderRowContainerCtrl","getHeaderRowCount","isLastRowIndexKnown","total","setRowCount","overflowY","setPinnedTopBottomOverflowY","show","allowVerticalScroll","setAlwaysVerticalScrollClass","initialSizeMeasurementComplete","sizesMeasured","updateAnimationClass","stretching","animateRowsCssClass","setRowAnimationCssOnBodyViewport","heightScaleChanged","gridStylesChanged","onBodyViewportContextMenu","contextmenu","mockBodyContextMenu","onBodyViewportWheel","onStickyWheel","onHorizontalWheel","addFullWidthContainerWheelListener","onFullWidthContainerWheel","deltaX","deltaY","isHorizontalScroll","scrollGridBodyToMatchEvent","scrolled","scrollVertically","scrollBy","showContextMenu","hasAnchoredPopup","floatingTopHeight","getPinnedTopTotalHeight","floatingBottomHeight","getPinnedBottomTotalHeight","pinnedBorderWidth","getPinnedRowBorderWidth","rowBorderWidth","getRowBorderWidth","normalisedFloatingTopHeight","normalisedFloatingBottomHeight","setTopHeight","setBottomHeight","setTopInvisible","setBottomInvisible","setStickyTopHeight","setStickyBottomHeight","vScrollVisible","setStickyTopWidth","setStickyBottomWidth","headerCtrl","headerHeight","getHeaderHeight","pinnedTopHeight","setStickyTopTop","pinnedBottomHeight","hScrollShowing","setStickyBottomBottom","_getCellPositionForEvent","getFocusedCellPosition","_getNormalisedMousePosition","gridPanelHasScrolls","pageFirstPixel","getCurrentPagePixelRange","getScrollFeature","vRange","hRange","AbstractFakeScrollComp","hideTimeout","initialiseInvisibleScrollbar","hideAndShowInvisibleScrollAsNeeded","addActiveListenerToggles","onActivate","onDeactivate","touchstart","touchend","setScrollVisible","bodyScrollEnd","attemptSettingScrollPosition","FakeHScrollElement","FakeHScrollComp","eLeftSpacer","eRightSpacer","setScrollVisibleDebounce","spacerWidthsListener","setFakeHScrollSpacerWidths","refreshCompBottom","bottomPinnedHeight","vScrollShowing","rightSpacing","scrollOnRight","leftSpacing","scrollOnLeft","invisibleScrollbar2","isSuppressHorizontalScroll","adjustedScrollbarWidth","scrollContainerSize","FakeHScrollSelector","FakeVScrollElement","FakeVScrollComp","onRowContainerHeightChanged","gridBodyViewportEl","eViewportScrollTop","gridBodyViewportScrollTop","force","FakeVScrollSelector","CSS_FIRST_COLUMN","CSS_LAST_COLUMN","_getHeaderClassesFromColDef","getColumnClassesFromCollDef","_getToolPanelClassesFromColDef","toolPanelClass","refreshFirstAndLastStyles","presentedColsService","isColAtEdge","getClassParams","classesOrFunc","classToUse","_addFocusableContainerListener","_focusNextGridCoreContainer","_focusGridInnerElement","fromBottom","focusInnerElement","_isHeaderFocusSuppressed","overlays","isExclusive","_isCellFocusSuppressed","forceOut","gridCtrl","focusNextInnerContainer","isDetailGrid","forceFocusOutOfContainer","getFocusHeaderRowCount","getGroupRowsHeight","heights","headerRowContainerCtrls","getHeaderRowContainerCtrls","headerRowContainerCtrl","groupRowCount","getGroupRowCount","headerRowCtrl","getGroupRowCtrlAtIndex","currentHeightAtPos","getColumnGroupHeaderRowHeight","defaultHeight","getPivotGroupHeaderHeight","getGroupHeaderHeight","maxDisplayedHeight","headerRowCellCtrls","getHeaderCellCtrls","headerCellCtrl","getColumnHeaderRowHeight","getPivotHeaderHeight","getDefaultHeaderHeight","getFloatingFiltersHeight","isHeaderPositionEqual","headerPosA","headerPosB","headerRowIndex","GridHeaderCtrl","eFocusableElement","headerNavigation","columnPivotModeChanged","onPivotModeChanged","setupHeaderHeight","onHeaderContextMenu","mockHeaderContextMenu","setHeaderHeight","headerRowsChanged","columnHeaderHeightChanged","columnGroupHeaderHeightChanged","advancedFilterEnabledChanged","totalHeaderHeight","groupHeight","curr","hasFloatingFilters","px","setHeightAndMinHeight","shouldAllowOverflow","navigateHorizontally","focusOverlay","navigateVertically","focusedHeader","menuSvc","isHeaderContextMenuEnabled","showHeaderContextMenu","AbstractHeaderCellComp","getCtrl","HeaderCellElement","HeaderCellComp","eResize","eHeaderCompWrapper","headerCompVersion","refreshSelectAllGui","selectAllGui","getSelectAllGui","compProxy","cssClassName","on","setUserStyles","setAriaSort","setUserCompDetails","compDetails","getUserCompInstance","headerComp","removeSelectAllGui","destroyHeaderComp","headerCompGui","versionCopy","afterCompCreated","setDragSource","HeaderGroupCellCompElement","HeaderGroupCellComp","setHeaderWrapperHidden","setHeaderWrapperMaxHeight","setResizableDisplayed","setAriaExpanded","headerGroupComp","afterHeaderCompCreated","eHeaderGroupGui","HeaderFilterCellCompElement","tabindex","HeaderFilterCellComp","eFloatingFilterBody","eButtonWrapper","eButtonShowMainFilter","addOrRemoveBodyCssClass","setButtonWrapperDisplayed","setCompDetails","getFloatingFilterComp","compPromise","setMenuIcon","destroyFloatingFilterComp","floatingFilterComp","HeaderRowComp","headerRowClass","headerComps","getAriaRowIndex","setTop","setHeaderCtrls","ctrls","forceOrder","oldComps","createHeaderComp","comps","leftA","leftB","elementsInOrder","SetLeftFeature","columnOrGroup","eCell","colsSpanning","setColsSpanning","onLeftChanged","getColumnOrGroup","leftChanged","setLeftFirstTime","suppressMoveAnimation","oldLeftExists","animateColumnMove","isActive","animateInLeft","colOrGroup","oldActualLeft","modifyLeftForPrintLayout","actualLeft","executeNextVMTurn","instanceIdSequence2","DOM_DATA_KEY_HEADER_CTRL","AbstractHeaderCellCtrl","resizeToggleTimeout","resizeMultiplier","resizeFeature","lastFocusEvent","reAttemptToFocus","refreshTabIndex","overlayExclusiveChanged","wireComp","suppressHeaderKeyboardEvent","getWrapperHasFocus","addDomData","onGuiFocus","refreshHeaderStyles","headerStyle","cellStyleParams","getHeaderClassParams","setupAutoHeight","wrapperElement","checkMeasuringCallback","measureHeight","timesCalled","extraHeight","wrapperHeight","notYetInDom","possiblyNoContentYet","setColHeaderHeight","isMeasuring","stopResizeObserver","checkMeasuring","startMeasuring","stopMeasuring","widthChanged","sortChanged","getAriaColIndex","addResizeAndMoveKeyboardListeners","onGuiKeyDown","keyup","onGuiKeyUp","isLeftOrRight","stopImmediatePropagation","getViewportAdjustedResizeDiff","resizeHeader","toggleColumnResizing","moveHeader","colMoves","getResizeDiff","getHeaderResizeDiff","wrapperHasFocus","focusThis","dragAndDrop","dispatchColumnMouseEvent","clearComponent","HeaderCellCtrl","refreshFunctions","userHeaderClasses","ariaDescriptionProperties","compBeanInput","colResize","setupWidth","setupMovingCss","setupMenuClass","setupSortableClass","setupWrapTextClass","refreshSpanHeaderHeight","setRefreshFunction","addColumnHoverListener","setupFilterClass","setupStylesFromColDef","setupClassesFromColDef","setupTooltip","addActiveHeaderMouseListeners","setupSelectAll","setupUserComp","refreshAria","createResizeFeature","createHoverFeature","createRangeHighlightFeature","headerHighlightChanged","onHeaderHighlightChanged","checkDisplayName","columnValueChanged","onHeaderHeightChanged","selectAllFeature","dragSourceElement","delta","floatingFilter","lookupUserCompDetails","createParams","enableSorting","enableMenu","menuEnabled","enableFilterButton","openFilterEnabled","isHeaderFilterButtonEnabled","enableFilterIcon","showColumnMenu","buttonElement","onClosedCallback","positionBy","showColumnMenuAfterMouseClick","showFilter","showFilterMenu","progressSort","multiSort","setSort","setSortForColumn","eGridHeader","setTooltip","assertModuleRegistered","createSelectAllFeature","getCheckboxGui","onSpaceKeyDown","onEnterKeyDown","showMenuOnKeyPress","isFilterShortcut","isHeaderComp","onMenuKeyboardShortcut","announceAriaDescription","setActiveHeader","setupHeaderTooltip","refreshHeaderClasses","classes","oldClasses","eSource","draggable","setDragSourceForHeader","isColumnMenuInHeaderEnabled","isFilterMenuInHeaderEnabled","calculateDisplayName","workOutDraggable","refreshHeaderComp","newCompDetails","compInstance","attemptRefresh","headerCompRefreshed","attemptHeaderCompRefresh","colNames","getDisplayNameForColumn","isSuppressMovableColumns","colCanMove","suppressMovable","columnWidth","movingChanged","menuVisibleChanged","updateSortableCssClass","refreshAriaSort","filterActiveChanged","wrapText","wrapHeaderText","beforeOn","afterOn","groupHeaderHeight","isZeroGroupHeight","next","indexToStartSpanning","rowsToSpan","getDisplaySortForColumn","setAriaDescriptionProperty","refreshAriaMenu","refreshAriaFilterButton","refreshAriaFiltered","property","ariaDescription","charCodeAt","ariaAnnounce","announceValue","addHeaderColumnHoverListener","handleMouseOverChange","contextMenuListener","isMouseOver","getAnchorElementForMenu","isFilter","instanceIdSequence3","HeaderRowCtrl","allCtrls","typeClass","onRowHeightChanged","areCellsRendered","initCompState","onVirtualColumnsChanged","columnResized","virtualColumnsChanged","getWidthForRow","getContainerWidth","topOffset","getTopAndHeight","groupHeadersHeight","filterHeight","ctrlsToDisplay","getUpdatedHeaderCtrls","oldCtrls","ctrlsById","getColumnsInViewport","recycleAndCreateHeaderCtrls","isFocusedAndDisplayed","isFocused","isHeaderWrapperFocused","oldCtrl","keepCtrl","headerColumn","currCtrls","idOfChild","forOldColumn","getComponentsToRender","viewportColumns","getHeadersToRender","getColumnHeadersToRender","focusHeader","ctrl2","HeaderRowContainerCtrl","includeFloatingFilter","groupsRowCtrls","setupCenterWidth","setupHeaderPinnedWidth","setupDragAndDrop","onDisplayedColsChanged","headerType","getAllCtrls","columnsRowCtrl","filtersRowCtrl","keepColumns","sequence","focusedHeaderPosition","getFocusHeaderToUseAfterRefresh","refreshColumnGroups","headerGroupRowCount","currentGroupCount","refreshColumns","refreshFilters","destroyPreviousComp","rowIndexMismatch","setCtrls","restoreFocusOnHeader","getHeaderCtrlForColumn","findCtrl","getHtmlElementForColumnHeader","getRowType","setViewportScrollLeft","dropContainer","bodyDropTarget","createBodyDropTarget","focusHeaderPosition","headerPosition","setCenterWidth","MenuService","enterpriseMenuFactory","filterMenuFactory","activeMenuFactory","showColumnMenuCommon","getFilterMenuFactory","showMenuAfterContextMenuEvent","hidePopupMenu","hideActiveMenu","hideFilterMenu","suppressHeaderMenuButton","isMenuEnabled","suppressHeaderFilterButton","suppressHeaderContextMenu","isHeaderMenuButtonAlwaysShowEnabled","isSuppressMenuHide","isHeaderMenuButtonEnabled","menuHides","onIpadAndMenuHides","isFloatingFilterButtonDisplayed","isFilterMenuItemEnabled","isFloatingFilterButtonEnabled","suppressFloatingFilterButton","exists","menuFactory","filtersOnly","showMenuAfterButtonClick","showMenuAfterMouseEvent","_setColMenuVisible","AgAbstractCellEditor","errorMessages","initialiseEditor","eEditor","OverlayComponent","LoadingOverlayElement","LoadingOverlayComponent2","customTemplate","localeTextFunc","loadingText","NoRowsOverlayElement","NoRowsOverlayComponent2","noRowsText","_createIcon","iconContents","_createIconNoSpan","eResult","userProvidedIcon","icons","optionsIcons","rendererResult","iconValue","getIcon","validateIcon","unselectable","dragAndDropImageComponentCSS","DragAndDropElement","DragAndDropImageComponent2","eGhost","dropIconMap","move","aggregate","notAllowed","eIconChild","getDefaultIconName","checkboxCellRendererCSS","CheckboxCellRendererElement","CheckboxCellRenderer","eCheckbox","inputEl","onCheckboxChanged","dblclick","eGridCell","updateCheckbox","aggData","stateName","setEditingCells","forceRefreshOfEditCellsOnly","stopEditing","isBatchEditing","PinnedRows","floating","order","queued","getByIndex","getById","rowNodeSorter","sortOptions","getSortOptions","grandTotalNode","_removeGrandTotalRow","doFullSort","grandTotalRow","unshift","shouldHide","queue","unqueue","forEachQueued","_isDisplayedAfterFilterCSRM","_shouldHidePinnedRows","getRowNode","isAnyFilterPresent","_isNodeGrandTotal","_isPinnedNodeGrandTotal","ManualPinnedRowModel","runIsRowPinned","forEachNode","pinRow","refreshRowPositions","dispatchRowPinnedEvents","onGridStylesChanges","keepRenderedRows","tryToEmptyQueues","pinGrandTotalRow","positionsChanged","removeGroupRows","rowNodeDataChanged","isRowPinnable","pinnable","firstDataRendered","_grandTotalPinned","dispatch","nodesToUnpin","n","float","refreshCSRM","currentFloat","switching","spannedRows","getSpannedRows","findPinnedRowNode","_destroyRowNodeSibling","_createPinnedSibling","isManual","ensureRowHeightsValid","anyChange","updateRowHeight","getTotalHeight","getPinnedTopRowCount","getPinnedTopRow","getPinnedBottomRow","getPinnedRowById","forEachPinnedRow","getPinnedState","buildState","setPinnedState","getGrandTotalPinned","setGrandTotalPinned","nodesToPin","newPinnedSibling","rowHeightChanged","updated","mainNode","rowsToRemove","isCellSpanning","getCellSpan","spannedNodes","refreshModel","StaticPinnedRowModel","nextId","pinnedTopRows","cache","pinnedBottomRows","setPinnedRowData","getCache","_node","_container","estimateRowHeight","rowData","updateNodesFromRowData","allData","idPrefix","nodesToRemove","dataIds","nextRowTop","existingNode","setRowTopAndRowIndex","getTotalHeight2","getSize","rowNodes","PinnedRowModel","initialiseRowModel","enableRowPinning","isGrandTotalRowPinned","useManualPinnedRowModel","shouldDestroy","inner","ServerSideTransactionResultStatus","ServerSideTransactionResultStatus2","_isManualPinnedRow","_getNodesInRangeForSelection","started","range","CheckboxSelectionComponentElement","CheckboxSelectionComponent","onSelectionChanged","onSelectableChanged","showOrHideSelect","ariaKey","translatedLabel","overrides","handleSelectionEvent","rowSelected","dataChanged","selectableChanged","isRowSelectableFunc","checkboxVisibleIsDynamic","getIsVisible","showOrHideSelectListener","cellChanged","extraParams","callbackParams","so","showDisabledCheckboxes","removeHidden","checkboxSelection","RowRangeSelectionContext","rootId","endId","cachedRange","setRoot","setEndRange","getRange","getRoot","getEnd","getNodesInRange","isInRange","nodeInRange","fallback","truncate","keep","discard","discardAfter","above","below","extend","node2","newRange","newRangeNode","getNodesInRangeForSelection","pinnedRange","lastMain","first","SelectAllFeature","cbSelectAllVisible","processingEventFromCheckbox","checkbox","cbSelectAll","showOrHideSelectAll","updateStateOfCheckbox","newColumnsLoaded","selectionChanged","paginationChanged","getSelectAll","onCbSelectAll","refreshSelectAllLabel","fromColumnMoved","isCheckboxSelection","checkRightRowModelType","checkSelectionType","selectAllMode","getSelectAllMode","allSelected","getSelectAllState","hasNodesToSelect","ariaStatus","isMultiSelect","rowModelMatches","getType","selectAll2","deselectAllRowNodes","newHeaderCheckbox","featureName","headerCheckboxSelectionCurrentPageOnly","headerCheckboxSelectionFilteredOnly","headerCheckboxSelection","isSelectionCol","BaseSelectionService","selectionCtx","updateSelectable","cellValueChanged","createCheckboxSelectionComponent","onRowCtrlSelected","hasFocusFunc","forEachGui","gui2","rowComp","hasFocus","announceAriaRowSelection","isRowSelectionBlocked","isEditing2","suppressSelectionUpdate","setRowSelectable","newVal","isGroupSelectsChildren","calculateSelectedFromChildren","atLeastOneSelected","atLeastOneDeSelected","childState","selectRowNode","selectionNotAllowed","selectionNotChanged","inferNodeSelections","currentSelection","groupSelectsDescendants","enableDeselection","isRowClicked","partition","deselect","selectingWhenDisabled","deselectingWhenDisabled","shouldClear","checkFilteredNodes","wouldStateBeUnchanged","keepDescendants","TabGuardClassNames","TAB_GUARD","TAB_GUARD_TOP","TAB_GUARD_BOTTOM","TabGuardCtrl","skipTabGuardFocus","forcingFocusOut","allowFocus","eTopGuard","eBottomGuard","focusTrapActive","forceFocusOutWhenTabGuardsAreEmpty","isFocusableContainer","providedFocusInnerElement","providedFocusIn","providedFocusOut","providedShouldStopEventPropagation","providedOnTabKeyDown","providedHandleKeyDown","providedIsEmpty","activateTabGuards","guard","onFocus","tabGuardsAreActive","setTabIndex","deactivateTabGuards","findNextElementOutsideAndFocus","hasFocusedInnerElement","focusableEls","focusableRange","targetTabIndex","getNextFocusableElement","tabGuardToFocus","isTabGuard","setAllowFocus","TabGuardFeature","initialiseTabGuard","createTabGuard","tabGuards","tabGuard","addTabGuards","tabGuardCtrl","getTabGuardCtrl","topTabGuard","bottomTabGuard","removeAllChildrenExceptTabGuards","TabGuardComp","tabGuardFeature","DOUBLE_TAP_MILLISECONDS","LONG_PRESS_MILLISECONDS","handledTouchEvents","addHandledTouchEvent","TouchListener","preventClick","startListener","touchStart","lastTapTime","longPressTimer","moved","touchMove","touchEnd","onTouchEnd","touchCancel","onTouchCancel","passiveTrue","passiveFalse","clearLongPress","eventIsFarAway","checkDoubleTap","CellRangeType","CellRangeType2","AutoScrollService","tickingInterval","scrollContainer","scrollAxis","scrollByTick","getVerticalPosition","setVerticalPosition","getHorizontalPosition","setHorizontalPosition","shouldSkipVerticalScroll","shouldSkipHorizontalScroll","scrolling","check","forceSkipVerticalScroll","skipVerticalScroll","scrollTick","tickLeft","tickRight","tickUp","tickDown","ensureTickingStarted","ensureCleared","doTick","tickCount","tickAmount","VanillaFrameworkOverrides","frameworkName","renderingEngine","batchFrameworkComps","wrapOutgoing","frameworkComponent","getDocLink","createGridApi","orderedCoreBeans","beanNamePosition","fromEntries","gridBeanInitComparator","bean1","bean2","index1","index2","gridBeanDestroyComparator","PinnedLeftElement","PinnedRightElement","CenterElement","HeaderRowContainerComp","eCenterContainer","headerRowComps","rowCompsList","selectAndSetTemplate","setPinnedContainerWidth","pinnedLeft","pinnedRight","eRowContainer","destroyRowComp","oldRowComps","prevGui","appendEnsuringDomOrder","notAlreadyIn","ctrlId","existingComp","GridHeaderElement","GridHeaderComp","addContainer","GridHeaderSelector","CellComp","eRow","editingCell","rendererVersion","editorVersion","cellDiv","getCellAriaRole","wrapperDiv","cellCssManager","forceWrapper","isForceWrapper","refreshWrapper","setIncludeSelection","includeSelection","setIncludeRowDrag","includeRowDrag","setIncludeDndSource","includeDndSource","setRenderDetails","valueToDisplay","setEditDetails","getCellEditor","cellEditor","getCellRenderer","getParentOfValue","refreshEditStyles","eCellWrapper","eCellValue","forceNewCellRendererInstance","isInlineEditing","cellEditorPopupWrapper","firstRender","controlWrapperChanged","neverRefresh","cellRendererRefreshSuccessful","refreshCellRenderer","destroyRenderer","createCellRendererInstance","insertValueWithoutCellRenderer","rowDraggingComp","refreshVisibility","createCellEditorInstance","destroyEditor","removeControls","checkboxSelectionComp","dndSourceComp","providingControls","usingWrapper","putWrapperIn","takeWrapperOut","usingCellValue","putCellValueIn","getCellValueClass","takeCellValueOut","templateChanged","addControls","createRowDragComp","createDndSource","createSelectionCheckbox","cellEditorPromise","afterCellEditorCreated","cellEditorAsync","cellStartedEdit","focusCell","escapedValue","cellRendererGui","recoverFocus","hasBrowserFocus","hideEditorPopup","cellEditorGui","disableEditorTooltipFeature","compClassAndParams","cellRendererClass","displayComponentVersionCopy","createCellRendererFunc","staleTask","componentPromise","afterCellRendererCreated","createTask","isDeferred","deferRender","loadingComp","onReady","getDeferLoadingCellRenderer","cellRendererVersion","cellGui","requestVersion","staleComp","editingCancelledByUserComp","isCancelBeforeStart","cellEditorInPopup","addPopupCellEditor","addInCellEditor","enableEditorTooltipFeature","cellEditorAttached","createPopupEditorWrapper","ePopupGui","useModelPopup","positionToUse","getPopupPosition","positionParams","onPopupEditorClosed","detach","RowComp","cellComps","rowDiv","setInitialStyle","domOrder","getDomOrder","setCellCtrls","cellCtrls","showFullWidth","getFullWidthCellRenderer","fullWidthCellRenderer","getFullWidthCellRendererParams","fullWidthCellRendererParams","setTransform","transform","setRowId","rowId","setRowBusinessKey","businessKey","refreshFullWidth","getUpdatedParams","unsetComp","getInitialTransform","getInitialRowTop","setupDetailRowAutoHeight","setFullWidthRowComp","cellsToRemove","newCellComp","destroyCells","cellComp","fullWidthRowComponent","getElementParams","eContainerElement","eSpannedContainerElement","RowContainerComp","rowCompsNoSpan","rowCompsWithSpan","setViewportHeight","lastPlacedElement","spanContainer","oldRows","newComps","orderedRows","existingRowComp","removeOldRows","addRowNodes","isNew","rowComps","oldRowComp","RowContainerSelector","makeRowContainers","refName","getGridBodyTemplate","includeOverlay","elementParams","GridBodyComp","eGridRoot","eBody","overlaySelector","getOverlayWrapperSelector","animate","invisible","flag","classLists","ct","bodyViewportClassList","GridBodySelector","GridCtrl","additionalFocusableContainers","eGridDiv","eGridHostDiv","setRtlClass","onGridSizeChanged","getOptionalSelectors","paginationSelector","getPaginationSelector","gridHeaderDropZonesSelector","getSelector","sideBarSelector","sideBar","statusBarSelector","watermarkSelector","licenseManager","getWatermarkSelector","destroyGridUi","setResizeCursor","setCursor","cursor","disableUserSelect","setUserSelect","focusableContainers","getFocusableContainers","indexWithFocus","getNextFocusableIndex","allColumns","lastColumn","focusGridView","focusContainer","userCallbackFunction","focusFirstHeader","addFocusableContainer","removeFocusableContainer","allowFocusForNextCoreContainer","coreContainers","GridComp","gridBody","rootWrapperBody","userSelect","webkitUserSelect","createTemplate","requiredComps","insertGridIntoDom","eRootWrapperBodyClassList","dropZones","statusBar","watermark","mod","gridApiFunctionsMap","getGridId","getGridOption","setGridOption","updateGridOptions","deselectAll","selectAllFiltered","deselectAllFiltered","selectAllOnCurrentPage","deselectAllOnCurrentPage","getSelectedNodes","getSelectedRows","redrawRows","setRowNodeExpanded","addRenderedRowListener","getRenderedNodes","getFirstDisplayedRowIndex","getLastDisplayedRowIndex","getDisplayedRowAtIndex","getDisplayedRowCount","getVerticalPixelRange","getHorizontalPixelRange","clearFocusedCell","setFocusedCell","tabToNextCell","tabToPreviousCell","setFocusedHeader","expireValueCache","getCellValue","onSortChanged","showLoadingOverlay","showNoRowsOverlay","hideOverlay","setGridAriaProperty","refreshCells","refreshHeader","isAnimationFrameQueueEmpty","flushAllAnimationFrames","getSizesForCurrentTheme","getCellRendererInstances","flashCells","addRowDropZone","removeRowDropZone","getRowDropZoneParams","getRowDropPositionIndicator","setRowDropPositionIndicator","getColumnDef","applyColumnState","getColumnState","resetColumnState","isPinning","isPinningLeft","isPinningRight","getDisplayedColAfter","getDisplayedColBefore","setColumnsVisible","setColumnsPinned","getAllGridColumns","getDisplayedLeftColumns","getDisplayedCenterColumns","getDisplayedRightColumns","getAllDisplayedColumns","getAllDisplayedVirtualColumns","sizeColumnsToFit","autoSizeColumns","autoSizeAllColumns","setColumnGroupOpened","getColumnGroup","getDisplayNameForColumnGroup","getColumnGroupState","setColumnGroupState","resetColumnGroupState","getLeftDisplayedColumnGroups","getCenterDisplayedColumnGroups","getRightDisplayedColumnGroups","getAllDisplayedColumnGroups","moveColumnByIndex","moveColumns","setColumnWidths","isColumnHovered","getCellEditorInstances","getEditingCells","getEditRowValues","startEditingCell","validateEdit","startBatchEdit","cancelBatchEdit","commitBatchEdit","undoCellEditing","redoCellEditing","getCurrentUndoSize","getCurrentRedoSize","onFilterChanged","isColumnFilterPresent","getColumnFilterInstance","destroyFilter","setFilterModel","getFilterModel","getColumnFilterModel","setColumnFilterModel","showColumnFilter","hideColumnFilter","getColumnFilterHandler","doFilterAction","isQuickFilterPresent","getQuickFilter","resetQuickFilter","findGetActiveMatch","findGetTotalMatches","findGoTo","findNext","findPrevious","findGetNumMatches","findGetParts","findClearActive","findRefresh","paginationIsLastPageFound","paginationGetPageSize","paginationGetCurrentPage","paginationGetTotalPages","paginationGetRowCount","paginationGoToNextPage","paginationGoToPreviousPage","paginationGoToFirstPage","paginationGoToLastPage","paginationGoToPage","expandAll","collapseAll","getCacheBlockState","onGroupExpandedOrCollapsed","refreshClientSideRowModel","isRowDataEmpty","forEachLeafNode","forEachNodeAfterFilter","forEachNodeAfterFilterAndSort","applyTransaction","applyTransactionAsync","flushAsyncTransactions","getBestCostNodeSelection","resetRowHeights","getDataAsCsv","exportDataAsCsv","refreshInfiniteCache","purgeInfiniteCache","getInfiniteRowCount","getAdvancedFilterModel","setAdvancedFilterModel","showAdvancedFilterBuilder","hideAdvancedFilterBuilder","getChartModels","getChartRef","getChartImageDataURL","downloadChart","openChartToolPanel","closeChartToolPanel","createRangeChart","createPivotChart","createCrossFilterChart","updateChart","restoreChart","copySelectedRowsToClipboard","copySelectedRangeToClipboard","copySelectedRangeDown","getDataAsExcel","exportDataAsExcel","getSheetDataForExcel","getMultipleSheetsAsExcel","exportMultipleSheetsAsExcel","addDetailGridInfo","removeDetailGridInfo","getDetailGridInfo","forEachDetailGridInfo","showColumnChooser","hideColumnChooser","getCellRanges","addCellRange","clearRangeSelection","clearCellSelection","setRowGroupColumns","removeRowGroupColumns","addRowGroupColumns","getRowGroupColumns","moveRowGroupColumn","addAggFuncs","clearAggFuncs","setColumnAggFunc","getPivotResultColumn","setValueColumns","getValueColumns","removeValueColumns","addValueColumns","setPivotColumns","removePivotColumns","addPivotColumns","getPivotColumns","setPivotResultColumns","getPivotResultColumns","getServerSideSelectionState","setServerSideSelectionState","applyServerSideTransaction","applyServerSideTransactionAsync","applyServerSideRowData","retryServerSideLoads","flushServerSideAsyncTransactions","refreshServerSide","getServerSideGroupLevelState","isSideBarVisible","setSideBarVisible","setSideBarPosition","openToolPanel","closeToolPanel","getOpenedToolPanel","refreshToolPanel","isToolPanelShowing","getToolPanelInstance","getSideBar","getStatusPanel","getStructuredSchema","defaultFns","GridApiClass","Reflect","defineProperty","ApiFunctionService","fns","preDestroyLink","makeApi","addFunction","functionName","validateApiFunction","apiName","apiNotFound","fnName","gridDestroySvc","destroyCalled","withoutSuffix","DndSourceElement","DndSourceComp","dragEvent","providedOnRowDrag","dndSourceOnRowDrag","dataTransfer","setDragImage","jsonData","rowDragFeature","activeDropTarget","getRowDropZone","rowDropHighlightSvc","row","dropIndicatorPosition","DragService","isEnableCellTextSelect","HorizontalResizeService","addResizeBar","eResizeBar","finishedWithResizeFunc","dragStartX","setResizeIcons","MouseEvent","resizeAmount","resetIcons","onResizing","RowDragElement","RowDragComp","cellValueFn","customGui","alwaysVisible","isCustomGui","setDragElement","initCellDrag","filterChanged","dragElement","displayedOptions","isNeverDisplayed","shownSometimes","shouldPreventRowMove","isRowDragMultiRow","defaultTextValue","getRowDragText","rowDragText","removeMouseDownListener","mouseDownListener","dragItemCount","dragSourceDomDataKey","ChangedRowNodes","reordered","removals","updates","adds","_createCellId","cellPosition","_areCellsEqual","cellA","cellB","colsMatch","floatingMatch","indexMatch","_isRowBefore","rowA","rowB","_isSameRow","_getFirstRow","getFirstRow","_getLastRow","pinnedBottomCount","pinnedTopCount","getLastRow","_getRowNode","gridRow","_getCellByPosition","spannedCellCtrl","getCellByPosition","getRowByPosition","getCellCtrl","_getRowById","rm","prm","_getRowAbove","rowPosition","checkSticky","getNextStickyPosition","_getAbsoluteRowIndex","pinnedTopRowCount","unpinnedRowCount","_getRowBelow","isLastRowInContainer","sticky","stickyTopCtrls","stickyBottomCtrls","isStickyTop","stickyRowCtrls","increment","nextCtrl","lastTopIndex","lastBottomIndex","lastBodyIndex","ChangedPath","keepingColumns","nodeIdsToColumns","mapToItems","pathRoot","depthFirstSearchChangedPath","pathItem","depthFirstSearchEverything","traverseEverything","forEachChangedNodeDepthFirst","traverseLeafNodes","includeUnchangedNodes","executeFromRootNode","createPathItems","newEntryCount","newEntry","populateColumnsMap","linkPathItems","thisItem","parentItem","addParentNode","canSkip","getValueColumnsForNode","colsForThisNode","getNotValueColumnsForNode","RowDragFeatureNudger","groupThrottled","scrollChanged","scrollChanging","oldVScroll","groupTimer","groupTarget","onGroupThrottle","getScrollY","autoScroll","newVScroll","updateGroup","canExpand","clearGroup","startGroup","timer","RowDragFeature","nudger","allowed","rowGroupCols","isFilterPresent","isSortActive","getRowNodes","isFromThisGrid","currentNode","selectedNodes","compareRowIndex","enter","setRowNodesDragging","rowsDrop","makeRowsDrop","fromDrag","dispatchGridEvent","sameGrid","dropRows","dropping","newRowsDrop","canSetParent","newParent","getPrevOrNext","yDelta","newTarget","deltaDraggingTarget","targetShouldBeParent","inside","firstRow","aboveOrBelow","validateRowsDrop","rowsDropChanged","withinGrid","overNode","getOverNode","gridApi","overIndex","highlight","isRowValidDropPosition","rowsHaveSameParent","canDropResult","filterRows","targetRowIndex","INSIDE_THRESHOLD","nextRow","nextRowIndex","rowsSet","processedParams","fromGrid","rowDragEvent","mouseIsPastLastRow","pageLastPixel","getRowIndexAtPixel","withRowsDrop","stopDragging","csrmMoveRows","csrmAddRows","clientSideRowModel","addIndex","getLeafSourceRowIndex","updateRowData","filtered","wouldFormCycle","getLeafRow","leafRow","reorderLeafChildren","getMoveRowsBounds","changedRowNodes","changedPath","totalRows","targetPositionIdx","firstAffectedLeafIdx","lastAffectedLeafIndex","orderChanged","allLeafs","writeIdxLeft","readIdx","writeIdxRight","leaf","bestTarget","RowDragService","createRowDragCompForRow","createRowDragCompForCell","rowDragComp","RowDropHighlightService","onModelUpdated","oldDragging","nodeChanged","highlightChanged","uiLevelChanged","DragModule","DragAndDropModule","SharedDragAndDropModule","userComponents","agDragAndDropImage","columnMovePin","columnMoveHide","columnMoveMove","columnMoveLeft","columnMoveRight","columnMoveGroup","columnMoveValue","columnMovePivot","dropNotAllowed","RowDragModule","apiFunctions","HorizontalResizeModule","columnMovingCSS","ColumnAnimationService","executeNextFuncs","executeLaterFuncs","activeNext","suppressAnimation","animationThreadCount","setSuppressAnimation","suppress","ensureAnimationCssClassPresent","executeLaterVMTurn","animationThreadCountCopy","callbackNext","callbackLater","runFuncs","fromIndex","columnsToMoveKeys","BodyDropPivotTarget","columnsToAggregate","columnsToGroup","columnsToPivot","clearColumnsList","dragColumns","totalColumns","sortColsLikeCols","colsList","notAllColsPresent","getColsToMove","allMovingColumns","newCols","movingGroup","isMarryChildren","columnsToMove","newCol","getLowestFragMove","validMoves","allMovingColumnsOrdered","displayedCols","lowestFragMove","targetOrder","getProposedColumnOrder","doesOrderPassRules","displayedOrder","fragCount","groupFragCount","getBestColumnMoveIndexFromXPosition","isFromHeader","fromLeft","fromEnter","fakeEvent","calculateValidMoves","movingCols","draggingRight","calculateOldIndex","firstValidMove","constrainDirection","attemptMoveColumns","gridCols","firstIndex","gapsExist","parents","getDisplayedColumns","leftCols","rightCols","centerCols","isMoveBlocked","allDisplayedCols","allGridCols","movingDisplayedCols","otherDisplayedCols","otherGridCols","displayIndex","availableWidth","widthOfMovingDisplayedCols","leftColumn","numberComparator","displacedCol","firstDisplayIndex","normaliseX","fromKeyboard","useHeaderRow","skipScrollPadding","setColumnsMoving","MOVE_FAIL_THRESHOLD","SCROLL_MOVE_WIDTH","SCROLL_GAP_NEEDED_BEFORE_MOVE","SCROLL_ACCELERATION_RATE","SCROLL_TIME_INTERVAL","MoveColumnFeature","needToMoveLeft","needToMoveRight","lastMovedInfo","isCenterContainer","gridBodyCon","colPinned","lockPinned","initialPinnedState","dragCameFromToolPanel","visibleState","visibleColumns","attemptToPinColumns","isSuppressMoveWhenDragging","finishColumnMoving","mouseX","checkCenterForScrolling","handleColumnDragWhileSuppressingMovement","handleColumnDragWhileAllowingMovement","ensureIntervalCleared","updateDragItemContainerType","allowedCols","lockVisible","getAllMovingColumns","isAttemptingToPin","getNormalisedXPositionInfo","moveColumnsAfterHighlight","highlightHoveredColumn","normaliseDirection","getMoveColumnParams","useSplit","columnsInSplit","conditionCallback","movingColumns","consideredColumns","targetColumn","getNormalisedColumnLeft","currentColumn","leafDisplayedCols","lastHighlightedColumn","setColumnHighlighted","firstMovingCol","getColumnMoveAndTargetInfo","movingColIndex","targetIndex","isBefore","lastMovingCol","findFirstAndLastMovingColumns","getPinDirection","isMovingHorizontally","isFailedMoreThanThreshold","failedMoveAttempts","columnMoveParams","xAdjustedForScroll","centerCtrl","firstVisiblePixel","lastVisiblePixel","ensureIntervalStarted","movingIntervalId","intervalCount","moveInterval","pixelsToMove","pixelsMoved","fromMoving","setColsPinned","moveLen","leftCol","rightCol","BodyDropTarget","eSecondaryContainers","moveColumnFeature","bodyDropPivotTarget","currentDropListener","isDropColumnInPivotMode","ColumnMoveService","doesMovePassRules","proposedColumnOrder","gridOrder","doesMovePassLockedPositions","lockPositionToPlacement","lastPlacement","placement","isGroup","displayedLeafColumns","restoreFocusColumn","leafCols","findGroupWidthId","hideColumnOnExit","createDragItemForGroup","createDragItem","columns2","hasVisibleState","unlockedColumns","allColumnsOriginalOrder","allColumnsCurrentOrder","columnGroupColumns","ColumnMoveModule","AutoWidthCalculator","centerRowContainerCtrl","getPreferredWidthForColumn","skipHeader","eHeaderCell","getHeaderCellForColumn","getAllCellsNotSpanningForColumn","getPreferredWidthForElements","getPreferredWidthForColumnGroup","extraPadding","eDummyContainer","eBodyContainer","cloneItemIntoDummy","dummyContainerWidth","eCellClone","eCloneParent","eCloneParentClassList","isHeader","isRow","AutoWidthModule","columnWidths","GroupResizeFeature","horizontalResizeSvc","addColumnGroupResize","resizeLeafColumnsToFit","columnsToResize","resizeStartWidth","resizeRatios","groupAfterColumns","groupAfterStartWidth","groupAfterRatios","getInitialValues","resizeCols","resizeTakeFromCols","resizeTakeFromStartWidth","resizeTakeFromRatios","resizeAmountNormalised","normaliseDragChange","resizeColumnsFromLocalValues","getInitialSizeOfColumns","getSizeRatiosOfColumns","initialSizeOfColumns","getColumnsToResize","columnSizeAndRatios","groupAfter","getGroupAtDirection","takeFromLeafCols","preferredSize","autoWidthCalc","initialValues","resizeColumns","resizeSets","ratios","resizeColumnSets","dragChange","ResizeFeature","destroyResizeFuncs","canResize","canAutosize","addResize","addColumnAutosizeListeners","removeResize","resize","autoSize","propertyChange","lastResizeAmount","normaliseResizeAmount","resizeWithShiftKey","notPinningLeft","pinningRight","ColumnResizeService","sets","defaultIsShift","otherCol","getColAfter","widthDiff","otherColWidth","passMinMaxCheck","columnResizeSet","checkMinAndMaxWidthsForSet","changedCols","allResizedCols","newWidths","finishedCols","finishedColsGrew","loopCount","subsetCols","subsetRatioTotal","pixelsToDistribute","thisColFinished","ratioThisCol","ratioScale","lastCol","colNewWidth","round","atLeastOneColChanged","flexedCols","resizingCols","skipSetLeft","setLeftValues","checkViewportColumns","colsForEvent","createGroupResizeFeature","minWidthAccumulated","maxWidthAccumulated","maxWidthActive","minWidthPasses","maxWidthPasses","ColumnResizeModule","GroupWidthFeature","removeChildListenersFuncs","addListenersToChildrenColumns","displayedChildrenChanged","onDisplayedChildrenChanged","onWidthChanged","removeListenersOnChildrenColumns","widthChangedListener","HeaderGroupCellCtrl","onSuppressColMoveChange","isSuppressMoving","addClasses","addHeaderMouseListeners","refreshMaxHeaderHeight","addHighlightListeners","onLeafColumnHighlightChanged","displayedColumns","isFirst","isLast","isColumnMoveAtThisLevel","isHighlightAfter","isHighlightBefore","setupHeaderGroupTooltip","providedColGroup","refreshExpanded","expandedChanged","expandableChanged","newExpandedValue","eHeaderGroup","getProvidedColGroup","stateItems","treeLeft","treeCenter","treeRight","getAllTrees","_removeAllFromUnorderedArray","toRemove","VisibleColsService","colsAndGroupsMap","isBodyWidthDirty","skipTreeBuild","buildTrees","updateOpenClosedVisibility","pickDisplayedCols","joinColsAriaOrder","joinCols","autoHeightCols","setFirstRightAndLastLeftPinned","newBodyWidth","newLeftWidth","newRightWidth","atLeastOneChanged","setLeftValuesOfCols","setLeftValuesOfGroups","lastLeft","firstRight","columnGroupSvc","idCreator","createGroups","createColumnGroups","oldDisplayedGroups","updateColsAndGroupsMap","ariaOrderColumns","doingRtl","getLeftColsForRow","getColsForRow","getRightColsForRow","filterCallback","emptySpaceBeforeColumn","lastConsideredCol","maxAllowedColSpan","columnsToCheckFilter","colsToRemove","filterPasses","colForFilter","gapBeforeColumn","getColBefore","depthFirstAllColumnTreeSearch","fromMap","getFirstColumn","queryOrder","edge","columnToCompare","useDisplayedChildren","childTree","ColumnGroupService","columnGroupState","open","groupState","impactedGroups","groupKey","columnGroups","keyAsString","requiredLevel","colGroupLeafColumns","getDisplayColMethod","groupPointer","getColGroupAtLevel","originalGroupLevel","groupPointerLevel","groupPointerProvidedColumnGroup","allColumnGroups","checkPartId","matched","isStandaloneStructure","oldColumnsMapped","mapOldGroupsById","topLevelResultCols","groupsOrColsAtCurrentLevel","currentlyIterating","lastGroupedColIdx","createGroupToIndex","to","previousNode","previousNodeProvided","previousNodeParent","createColumnGroup","thisNode","thisNodeProvided","thisNodeParent","setupParentsIntoCols","providedGroup","existingGroupAndIndex","findExistingGroup","existingGroup","currentDepth","columnDepth","originalGroup","newChildren","firstPaddedGroup","currentPaddedGroup","paddedGroup","hasGroups","findDepth","balancedColumnTree","depth","treeChildren","maxDepthThisLevel","newDepth","balanceTreeForAutoCols","nextChild","autoGroup","newGroupDef","existingDef","groupInstanceIdCreator","uniqueId","displayedGroups","recursive","columnsOrGroups","columnsOrGroup","colsWithinViewportHash","ColumnGroupModule","headerGroupCellCtrl","SkeletonCellRendererElement","SkeletonCellRenderer","eParentOfValue","setupLoading","failedLoad","setupFailed","ariaFailed","skeletonEffect","sin","cos","ariaLoading","_params","CheckboxCellRendererModule","agCheckboxCellRenderer","SkeletonCellRendererModule","agSkeletonCellRenderer","getViewportColumns","_deepCloneDefinition","keysToSkip","sourceIsSimpleObject","ColumnDefFactory","colDefColsList","buildColumnDefs","colGroupDefs","createDefFromColumn","addToResult","childDef","lastPointer","parentDef","existingParentDef","createDefFromGroup","defCloned","colDefCloned","ColumnFlexService","columnsHidden","flexViewportWidth","totalSpace","colDelayRenderSvc","visibleCenterCols","flexAfterDisplayIndex","allResizingCols","hasFlexItems","initialSize","targetSize","hideColumns","revealColumns","unfrozenItemCount","unfrozenFlex","acc","unfrozenSpace","frozenSize","isFrozen","spaceToFill","lastUnfrozenItem","idealRight","idealSize","roundedSize","totalViolation","unclampedSize","clampedSize","violationType","freezeType","unconstrainedFlexColumns","flexingColumns","_getValueUsingField","currentObject","SORTED_CELL_DATA_TYPES_FOR_MATCHING","DataTypeService","dataTypeDefinitions","isPendingInference","isColumnTypeOverrideInDataTypeDefinitions","columnStateUpdatesPendingInference","columnStateUpdateListenerDestroyFuncs","columnDefinitionPropsPerDataType","getFindText","editable","cellEditorParams","useFormatter","valA","valB","processDataTypeDefinitions","defaultDataTypes","getDefaultDataTypes","newDataTypeDefinitions","newFormatValueFuncs","generateFormatValueFunc","groupSafeValueFormatter","defaultDataTypeDef","mergedDataTypeDefinition","createGroupSafeValueFormatter","userDataTypeDefs","newDataTypeMatchers","userDataTypeDef","processDataTypeDefinition","dataTypeMatcher","valueParser","defaultValueParser","defaultValueFormatter","userValueParser","userValueFormatter","hasObjectValueParser","hasObjectValueFormatter","formatValueFuncs","dataTypeMatchers","sortKeysInMatchers","matchers","dataTypes","sortedMatchers","alreadyProcessedDataTypes","extendsCellDataType","extendsDataType","baseDataTypeDefinition","overriddenBaseDataTypeDefinition","validateDataTypeDefinition","mergeDataTypeDefinitions","extendedDataTypeDefinition","mergedExtendedDataTypeDefinition","canInferCellDataType","inferCellDataType","suppressDefaultProperties","setColDefPropertiesForBaseDataType","columnStateUpdates","columnListener","propsToCheckForInference","refData","doColDefPropsPreventInference","columnTypeDefs","hasPropsPreventingInference","columnTypeDef","initialData","getInitialData","initWaitForRowData","matchedType","_cellDataType","columnTypeOverridesExist","shouldQueueResizeOperations","rowDataUpdateStarted","firstRowData","processColumnsPendingInference","processResizeOperations","destroyColumnStateUpdateListeners","newRowGroupColumnStateWithoutIndex","newPivotColumnStateWithoutIndex","oldColDef","resetColDefIntoCol","updatedColumnState","getUpdatedColumnState","generateColumnStateForRowGroupAndPivotIndexes","updatedRowGroupColumnState","updatedPivotColumnState","existingColumnStateUpdates","getDateStringTypeDefinition","getDataTypeDefinition","getDateParserFunction","getDateFormatterFunction","dateFormatter","getDateIncludesTimeFlag","getBaseDataType","checkType","warning","setColDefPropsForDataType","getFormatValue","isColPendingInference","partialColDef","getDateObjectTypeDef","getDateStringTypeDef","parentDataTypeDefinition","childDataTypeDefinition","appendColumnTypes","parentCellDataType","doesColDefPropPreventInference","checkProps","comparisonValue","columnState","DataTypeModule","ColumnFlexModule","ColumnApiModule","_camelCaseToHumanText","rex","rexCaps","words","word","ColumnNameService","includeAggFunc","headerName","getHeaderName","aggColNameSvc","getDisplayNameForProvidedColumnGroup","headerValueGetter","expressionSvc","evaluate","ColumnViewportService","colsWithinViewport","headerColsWithinViewport","rowsOfHeadersToRenderLeft","rowsOfHeadersToRenderRight","rowsOfHeadersToRenderCenter","columnsToRenderLeft","columnsToRenderRight","columnsToRenderCenter","bodyWidthDirty","noChange","viewportLeft","viewportRight","extractViewportColumns","displayedColumnsCenter","isColumnVirtualisationSuppressed","isColumnInRowViewport","isColumnInHeaderViewport","isAnyParentAutoHeaderHeight","columnLeft","columnRight","leftBounds","rightBounds","columnToMuchLeft","columnToMuchRight","getColsWithinViewport","inViewportCallback","viewportColumnsChanged","extractViewport","calculateHeaderRows","workOutGroupsToRender","groupsToRenderSet","groupsToRender","skipFillers","skipFillerGroup","hashColumn","newHash","AgComponentUtils","jsCompFunc","Adapter","callbackResult","type2","CellRendererFunctionModule","Registry","agGridDefaults","agGridDefaultOverrides","jsComps","selectors","registerModule","registerUserComponent","classImp","propertyName","createResult","registeredViaFrameworkComp","defaultComponent","missingUserComponent","missingDynamicBean","NUM_CTRLS","CtrlsService","readyCallbacks","updateReady","runWhenReadyAsync","caller","ctrlType","leftHeader","centerHeader","rightHeader","coreCSS","coreDefaults","wrapperBorder","rowBorder","headerRowBorder","footerRowBorder","columnBorder","headerColumnBorder","headerColumnBorderHeight","pinnedColumnBorder","pinnedRowBorder","sidePanelBorder","sideBarPanelWidth","sideBarBackgroundColor","sideButtonBarBackgroundColor","sideButtonBarTopPadding","sideButtonSelectedUnderlineWidth","sideButtonSelectedUnderlineColor","sideButtonSelectedUnderlineTransitionDuration","sideButtonBackgroundColor","sideButtonTextColor","sideButtonHoverBackgroundColor","sideButtonHoverTextColor","sideButtonSelectedBackgroundColor","sideButtonSelectedTextColor","sideButtonBorder","sideButtonSelectedBorder","sideButtonLeftPadding","sideButtonRightPadding","sideButtonVerticalPadding","headerBackgroundColor","headerFontFamily","cellFontFamily","headerFontWeight","headerFontSize","dataFontSize","headerTextColor","headerCellHoverBackgroundColor","headerCellMovingBackgroundColor","headerCellBackgroundTransitionDuration","cellTextColor","rangeSelectionBorderStyle","rangeSelectionBorderColor","rangeSelectionBackgroundColor","rangeSelectionChartBackgroundColor","rangeSelectionChartCategoryBackgroundColor","rangeSelectionHighlightColor","rangeHeaderHighlightColor","rowNumbersSelectedColor","rowHoverColor","columnHoverColor","selectedRowBackgroundColor","modalOverlayBackgroundColor","dataBackgroundColor","oddRowBackgroundColor","wrapperBorderRadius","cellHorizontalPadding","cellWidgetSpacing","cellHorizontalPaddingScale","rowGroupIndentSize","valueChangeDeltaUpColor","valueChangeDeltaDownColor","valueChangeValueHighlightBackgroundColor","rowVerticalPaddingScale","headerVerticalPaddingScale","paginationPanelHeight","dragHandleColor","headerColumnResizeHandleHeight","headerColumnResizeHandleWidth","headerColumnResizeHandleColor","widgetContainerHorizontalPadding","widgetContainerVerticalPadding","widgetHorizontalSpacing","widgetVerticalSpacing","iconButtonColor","iconButtonBackgroundColor","iconButtonBackgroundSpread","iconButtonBorderRadius","iconButtonHoverColor","iconButtonHoverBackgroundColor","iconButtonActiveColor","iconButtonActiveBackgroundColor","iconButtonActiveIndicatorColor","menuBorder","menuBackgroundColor","menuTextColor","menuShadow","menuSeparatorColor","setFilterIndentSize","chartMenuPanelWidth","chartMenuLabelColor","dialogShadow","cellEditingBorder","cellEditingShadow","fullRowEditInvalidBackgroundColor","dialogBorder","panelBackgroundColor","panelTitleBarHeight","panelTitleBarBackgroundColor","panelTitleBarIconColor","panelTitleBarTextColor","panelTitleBarFontWeight","panelTitleBarBorder","columnSelectIndentSize","toolPanelSeparatorBorder","columnDropCellBackgroundColor","columnDropCellTextColor","columnDropCellDragHandleColor","columnDropCellBorder","selectCellBackgroundColor","selectCellBorder","advancedFilterBuilderButtonBarBorder","advancedFilterBuilderIndentSize","advancedFilterBuilderJoinPillColor","advancedFilterBuilderColumnPillColor","advancedFilterBuilderOptionPillColor","advancedFilterBuilderValuePillColor","filterPanelApplyButtonColor","filterPanelApplyButtonBackgroundColor","filterPanelCardSubtleColor","filterPanelCardSubtleHoverColor","findMatchColor","findMatchBackgroundColor","findActiveMatchColor","findActiveMatchBackgroundColor","filterToolPanelGroupIndent","rowLoadingSkeletonEffectColor","statusBarLabelColor","statusBarLabelFontWeight","statusBarValueColor","statusBarValueFontWeight","pinnedSourceRowTextColor","pinnedSourceRowBackgroundColor","pinnedSourceRowFontWeight","pinnedRowFontWeight","pinnedRowBackgroundColor","pinnedRowTextColor","batchEditStyleDefaultCSS","baseParams","cellBatchEditBackgroundColor","cellBatchEditTextColor","rowBatchEditBackgroundColor","rowBatchEditTextColor","baseDarkBatchEditParams","makeBatchEditStyleBaseTreeShakeable","batchEditStyleBase","buttonStyleBaseCSS","baseParams2","buttonTextColor","buttonFontWeight","buttonBackgroundColor","buttonBorder","buttonBorderRadius","buttonHorizontalPadding","buttonVerticalPadding","buttonHoverTextColor","buttonHoverBackgroundColor","buttonHoverBorder","buttonActiveTextColor","buttonActiveBackgroundColor","buttonActiveBorder","buttonDisabledTextColor","buttonDisabledBackgroundColor","buttonDisabledBorder","makeButtonStyleBaseTreeShakeable","buttonStyleBase","makeButtonStyleQuartzTreeShakeable","buttonStyleQuartz","makeButtonStyleAlpineTreeShakeable","buttonStyleAlpine","makeButtonStyleBalhamTreeShakeable","buttonStyleBalham","columnDropStyleBorderedCSS","columnDropStylePlainCSS","makeColumnDropStyleBorderedTreeShakeable","columnDropStyleBordered","makeColumnDropStylePlainTreeShakeable","columnDropStylePlain","gridThemeLogger","createTheme","checkboxStyleDefaultCSS","makeCheckboxStyleDefaultTreeShakeable","checkboxBorderWidth","checkboxBorderRadius","checkboxUncheckedBackgroundColor","checkboxUncheckedBorderColor","checkboxCheckedBackgroundColor","checkboxCheckedBorderColor","checkboxCheckedShapeImage","checkboxCheckedShapeColor","checkboxIndeterminateBackgroundColor","checkboxIndeterminateBorderColor","checkboxIndeterminateShapeImage","checkboxIndeterminateShapeColor","radioCheckedShapeImage","checkboxStyleDefault","makeColorSchemeLightTreeShakeable","colorSchemeLight","makeColorSchemeLightWarmTreeShakeable","colorSchemeLightWarm","makeColorSchemeLightColdTreeShakeable","colorSchemeLightCold","darkParams","makeColorSchemeDarkTreeShakeable","colorSchemeDark","makeColorSchemeDarkWarmTreeShakeable","darkBlueParams","colorSchemeDarkWarm","makeColorSchemeDarkBlueTreeShakeable","colorSchemeDarkBlue","makeColorSchemeVariableTreeShakeable","light","dark","colorSchemeVariable","iconSetBalhamCSS","iconSetBalham","iconSetAlpineCSS","iconSetAlpine","iconSetMaterialCSS","iconSetMaterial","iconOverrides","cssParts","mask","imageCssValue","unsetMaskIcon","family","weight","properties","iconNameToSvgFragment","aggregation","arrows","asc","chart","contracted","copy","cross","csv","cut","desc","down","excel","eye","linked","loading","maximize","menu","minimize","minus","none","pin","plus","previous","save","tick","unlinked","grip","settings","iconNameToFullSvg","edit","getQuartzIconsCss","iconSvg","quartzIconSvg","strokeWidth","fullSVG","svgFragment","iconSetQuartz","iconSetQuartzLight","iconSetQuartzRegular","iconSetQuartzBold","inputStyleBaseCSS","inputStyleBorderedCSS","inputStyleUnderlinedCSS","baseParams3","inputBackgroundColor","inputBorder","inputBorderRadius","inputTextColor","inputPlaceholderTextColor","inputPaddingStart","inputHeight","inputFocusBackgroundColor","inputFocusBorder","inputFocusShadow","inputFocusTextColor","inputDisabledBackgroundColor","inputDisabledBorder","inputDisabledTextColor","inputInvalidBackgroundColor","inputInvalidBorder","inputInvalidTextColor","inputIconColor","pickerButtonBorder","pickerButtonFocusBorder","pickerButtonBackgroundColor","pickerButtonFocusBackgroundColor","pickerListBorder","pickerListBackgroundColor","colorPickerThumbSize","colorPickerTrackSize","colorPickerThumbBorderWidth","colorPickerTrackBorderRadius","colorPickerColorBorderRadius","makeInputStyleBaseTreeShakeable","inputStyleBase","makeInputStyleBorderedTreeShakeable","inputStyleBordered","makeInputStyleUnderlinedTreeShakeable","inputStyleUnderlined","tabStyleBaseCSS","tabStyleRolodexCSS","baseParams4","tabBarBackgroundColor","tabBarHorizontalPadding","tabBarTopPadding","tabBackgroundColor","tabTextColor","tabHorizontalPadding","tabTopPadding","tabBottomPadding","tabSpacing","tabHoverBackgroundColor","tabHoverTextColor","tabSelectedBackgroundColor","tabSelectedTextColor","tabSelectedBorderWidth","tabSelectedBorderColor","tabSelectedUnderlineColor","tabSelectedUnderlineWidth","tabSelectedUnderlineTransitionDuration","tabBarBorder","makeTabStyleBaseTreeShakeable","tabStyleBase","makeTabStyleQuartzTreeShakeable","tabStyleQuartz","makeTabStyleMaterialTreeShakeable","tabStyleMaterial","makeTabStyleAlpineTreeShakeable","tabStyleAlpine","makeTabStyleRolodexTreeShakeable","tabStyleRolodex","materialAdjustmentsCSS","makeThemeQuartzTreeShakeable","themeQuartz","makeThemeAlpineTreeShakeable","themeAlpine","makeThemeBalhamTreeShakeable","themeBalham","makeStyleMaterialTreeShakeable","sharedParams","lightParams","primaryColor","darkParams2","styleMaterial","makeThemeMaterialTreeShakeable","themeMaterial","CELL_HORIZONTAL_PADDING","changeKey","INDENTATION_LEVEL","noWarn","cacheDefault","ROW_GROUP_INDENT_SIZE","ROW_HEIGHT","HEADER_HEIGHT","LIST_ITEM_HEIGHT","ROW_BORDER_WIDTH","PINNED_BORDER_WIDTH","_addAdditionalCss","cssMap","Environment","sizeEls","lastKnownValues","getSizeEl","refreshRowBorderWidthVariable","getCSSVariablePixelValue","getDefaultCellHorizontalPadding","getCellPaddingLeft","indentationLevel","getCellPadding","cellPaddingRight","getDefaultListItemHeight","oldRowHeight","getPropertyValue","newRowHeight","variable","cached","measurement","measureSizeEl","sizeEl","newSize","NO_VALUE_SENTINEL","getMeasurementContainer","eMeasurementContainer","lastMeasurement","unsubscribe","newMeasurement","newGridTheme","themeGridOption","EventService","globalListener","globalSyncListener","getHeaderIndexToFocus","columnRowIndex","isColSpanning","HeaderNavigationService","currentHeaderRowWithoutSpan","getHeaderPositionForColumn","centerHeaderContainer","isFloatingFilterVisible","headerRowCount","rowLen","currentRowType","getHeaderRowType","columnHeaderRowIndex","nextFocusColumn","headerRowIndexWithoutSpan","getColumnVisibleParent","getColumnVisibleChild","skipColumn","allowUserOverride","fromTab","nextHeader","normalisedDirection","findHeader","userFunc","wasFocusedFromUserFunc","focusHeaderPositionFromUserFunc","focusNextHeaderRow","nextFocusedCol","allVisibleCols","scrollToColumn","columnToScrollTo","currentFocusedColumn","leafChildren","headerGroupRowIndex","groupAtLevel","isSpanningCol","optimisticNextIndex","nextVisibleParent","firstCol","FocusService","focusFallbackTimeout","needsFocusRestored","clearFocusedCellListener","onColumnEverythingChanged","columnGroupOpened","attemptToRecoverFocus","setFocusRecovered","shouldTakeFocus","doesRowOrCellHaveBrowserFocus","colFromColumnModel","getFocusCellToUseAfterRefresh","isDomDataPresentInHierarchy","eBrowserCell","ePointer","getFocusEventParams","focusedCellPosition","focusEventParams","forceBrowserFocus","preventScrollOnBrowserFocus","sourceEvent","gridColumn","previousCellFocusParams","previousParams","isCellFocused","focusedColumn","focusedHeaderRowIndex","fromCell","rowWithoutSpanValue","isAdvFilterHeaderActive","focusAdvancedFilter","currentPosition","getHeaderPositionFromUserFunc","params2","previousHeaderPosition","nextHeaderPosition","focusProvidedHeaderPosition","newHeaderPosition","userFuncParams","userResult","focusSuccess","firstColumn","focusLastHeader","focusPreviousFromFirstCell","isAnyCellFocused","isRowFocused","rowPinnedType","overlayGui","canFocusOverlay","navigateToNextCell","ensureCellVisible","tryToFocusFullWidthRow","setRangeToCell","advFilterFocusColumn","advancedFilter","focusHeaderComp","focusNextFromAdvancedFilter","forceFirstColumn","clearAdvancedFilterColumn","ScrollVisibleService","updateScrollVisible","updateScrollVisibleImpl","centerRowCtrl","horizontalGap","verticalGap","atLeastOneDifferent","gridOptionsScrollbarWidth","useGridOptions","GridDestroyService","stateSvc","ALWAYS_SYNC_GLOBAL_EVENTS","_PUBLIC_EVENTS","_INTERNAL_EVENTS","_GET_ALL_EVENTS","_PUBLIC_EVENT_HANDLERS_MAP","mem","makeIconParams","dataRefSuffix","SortIndicatorElement","SortIndicatorComp","skipTemplate","eSortOrder","eSortAsc","eSortDesc","eSortMixed","eSortNone","attachCustomElements","setupSort","suppressOrder","setupMultiSortIndicator","showRowGroup","addInIcon","updateIcons","sortUpdated","updateSortOrder","isAscending","isDescending","alwaysHideNoSort","isNone","isColumnShowingRowGroup","areGroupsCoupled","updateMultiSortIndicator","isMixedSort","allColumnsWithSorting","getColumnsWithSortingOrdered","indexThisCol","getDisplaySortIndexForColumn","moreThanOneColSorting","showIndex","SortIndicatorSelector","DEFAULT_SORTING_ORDER","SortService","nextDirection","getNextSortDirection","progressSortFromEvent","sortUsingCtrl","isColumnsSortingCoupledToGroup","columnsToUpdate","getSourceColumnsForGroupColumn","sortableRowGroupColumns","setColSort","doingMultiSort","updatedColumns","clearedColumns","clearSortBarTheseColumns","updateSortIndex","lastColToChange","isCoupled","groupParent","getShowRowGroupCol","lastSortIndexCol","allSortedCols","allSortedColsWithoutChangesOrGroups","sortedColsWithIndices","columnsToSkip","columnToClear","sortingOrder","notInArray","lastItemInArray","getIndexedSortMap","isSortingLinked","isAggregated","isSecondary","sortedRowGroupCols","allColsIndexes","iA","iB","isSortLinked","indexMap","groupDisplayCol","idx1","idx2","getSortModel","canColumnDisplayMixedSort","isColumnSortCouplingActive","isGroupDisplayColumn","linkedColumns","columnHasUniqueData","sortableColumns","firstSort","allMatch","setupHeader","clickElement","lastMovingChanged","nowTime","movedRecently","columnMoving","onSortingChanged","sourceColumns","sortDirectionsMatch","sourceCol","isMultiSorting","sortOrder","createSortIndicator","getSortIndicatorSelector","USER_COMP_MODULES","agSetColumnFloatingFilter","agMultiColumnFloatingFilter","agGroupColumnFloatingFilter","agGroupCellRenderer","agGroupRowRenderer","agRichSelect","agRichSelectCellEditor","agDetailCellRenderer","agSparklineCellRenderer","agColumnHeader","agColumnGroupHeader","agSortIndicator","agAnimateShowChangeCellRenderer","agAnimateSlideCellRenderer","agLoadingCellRenderer","agLoadingOverlay","agNoRowsOverlay","agTooltipComponent","agReadOnlyFloatingFilter","agDateInput","agTextColumnFloatingFilter","agNumberColumnFloatingFilter","agDateColumnFloatingFilter","agCellEditor","agSelectCellEditor","agTextCellEditor","agNumberCellEditor","agDateCellEditor","agDateStringCellEditor","agCheckboxCellEditor","agLargeTextCellEditor","agMenuItem","agColumnsToolPanel","agFiltersToolPanel","agNewFiltersToolPanel","agAggregationComponent","agSelectedRowCountComponent","agTotalRowCountComponent","agFilteredRowCountComponent","agTotalAndFilteredRowCountComponent","agFindCellRenderer","quote","COLUMN_DEFINITION_DEPRECATIONS","rowGroupingHierarchy","COLUMN_DEFINITION_MOD_VALIDATIONS","cellClassRules","cellStyle","columnChooserParams","contextMenuItems","enableCellChangeFlash","getQuickFilterText","headerTooltip","headerTooltipValueGetter","mainMenuItems","menuTabs","enterpriseMenuTabs","tab","tooltipValueGetter","tooltipComponentSelector","groupHierarchy","COLUMN_DEFINITION_VALIDATIONS","validations","supportedRowModels","_colDef","groupColumn","_options","autoSizeStrategy","invalidItems","invalidArray","dependencies","required","cellSelection","enableCellSpan","groupHierarchyConfig","GROUP_HIERARCHY_PARTS","unrecognisedParts","suggestions","colDefPropertyMap","pivotKeys","tooltipComponent","defaultAggFunc","chartDataType","cellAriaRole","cellEditorPopupPosition","headerGroupComponent","headerGroupComponentParams","headerComponent","headerComponentParams","floatingFilterComponent","floatingFilterComponentParams","tooltipComponentParams","allowedAggFuncs","pivotTotalColumnIds","suppressColumnsToolPanel","suppressFiltersToolPanel","suppressStickyLabel","suppressSizeToFit","suppressNavigable","cellEditorPopup","valueSetter","pivotComparator","onCellValueChanged","onCellClicked","onCellDoubleClicked","onCellContextMenu","cellRendererSelector","cellEditorSelector","useValueFormatterForExport","useValueParserForImport","loadingCellRenderer","loadingCellRendererParams","loadingCellRendererSelector","dateComponent","dateComponentParams","ALL_PROPERTIES","COL_DEF_VALIDATORS","objectName","allProperties","docsUrl","deprecations","STRING_GRID_OPTIONS","OBJECT_GRID_OPTIONS","ARRAY_GRID_OPTIONS","_NUMBER_GRID_OPTIONS","OTHER_GRID_OPTIONS","_BOOLEAN_MIXED_GRID_OPTIONS","_BOOLEAN_GRID_OPTIONS","_FUNCTION_GRID_OPTIONS","_GET_ALL_GRID_OPTIONS","GRID_OPTION_DEPRECATIONS","fillOperation","onRangeSelectionChanged","onRangeDeleteStart","onRangeDeleteEnd","suppressAdvancedFilterEval","toConstrainedNum","GRID_OPTIONS_MODULES","alignedGrids","datasource","doesExternalFilterPass","editType","invalidEditValueMode","findSearchValue","getFullRowEditValidationErrors","getContextMenuItems","getMainMenuItems","getRowClass","getRowStyle","groupTotalRow","initialState","isExternalFilterPresent","pinnedBottomRowData","pinnedTopRowData","quickFilterText","rowClass","rowClassRules","rowStyle","serverSideDatasource","viewportDatasource","GRID_OPTION_VALIDATIONS","definedValidations","validLayouts","reason","groupHideParentOfSingleChild","initialGroupOrderComparator","ssrmExpandAllAffectsAllRows","treeDataChildrenField","treeDataParentIdField","getDataPath","ssrmWarning","isServerSideGroup","getServerSideGroupKey","renderingMode","validModes","expectedType","GRID_OPTIONS_VALIDATORS","propertyExceptions","changeSetId","gridInstanceSequence","GRID_DOM_KEY","GridOptionsService","random","gridReadyFired","queueEvents","propEventSvc","globalEventHandlerFactory","restrictToSyncOnly","alwaysSync","isPublicEventHandler","fireEvent","eventHandlerName","eventHandler","q","gridOptionsContext","validateGridOptions","gridOptionsChanged","mergeGridCommonParams","wrapped","warnOnInitialPropertyUpdate","shouldForce","validateOptions","modValidations","moduleToCheck","processGridOptions","skipInferenceCheck","reasonOrId","registered","modName","gridScoped","eventFromThisGrid","getHeaderCompElementParams","includeSortIndicator","hiddenAttrs","HeaderCompElement","HeaderCompElementNoSort","HeaderComp","eFilter","eFilterButton","eSortIndicator","eMenu","isLoadingInnerComponent","workOutTemplate","currentTemplate","workOutShowMenu","currentShowMenu","currentSort","currentSuppressMenuHide","shouldSuppressMenuHide","innerHeaderComponent","innerHeaderComponentParams","setDisplayName","paramsTemplate","sortComp","setupForHeader","setMenu","setupFilterIcon","setupFilterButton","workOutInnerHeaderComponent","oldDisplayName","currentDisplayName","isLegacyMenu","toggleMenuAlwaysShow","alwaysShow","isLegacyMenuEnabled","onFilterChangedIcon","filterPresent","configureFilter","configured","onFilterChangedButton","enabled","filterChangedCallback","HeaderGroupCompElement","HeaderGroupComp","agOpened","agClosed","agLabel","checkWarnings","workOutInnerHeaderGroupComponent","setupLabel","addGroupExpandIcon","setupExpandIcons","setupForHeaderGroup","paramsAny","innerHeaderGroupComponent","expandAction","addTouchAndClickListeners","stopPropagationAction","updateIconVisibility","updateIcon","setupForHeaderGroupElement","hasInnerComponent","ColumnHeaderCompModule","menuAlt","ColumnGroupHeaderCompModule","columnGroupClosed","AnimationFrameService","p1","p2","f1","destroyTasks","ticking","scrollGoingDown","taskCount","verify","task","isFramework","taskList","taskItem","createOrder","deferred","addTaskToList","sortTaskList","addDestroyTask","executeFrame","millis","p1Tasks","p2Tasks","f1Tasks","frameStart","noMaxMillis","gridBodyDidSomething","gridBodyDidSomething2","requestFrame","isQueueEmpty","AnimationFrameModule","IconService","TouchService","mockContextMenu","handleCellDoubleClick","isDoubleClickOnIPad","nowMillis","lastIPadMouseClickEvent","tapMenuButton","menuTouchListener","showMenuFn","longTap","tapListener","tap","filterButtonTouchListener","longTapListener","TouchModule","CellNavigationService","getNextCellToFocus","ctrlPressed","getNextCellToFocusWithCtrlPressed","getNextCellToFocusWithoutCtrlPressed","upKey","downKey","leftKey","isCellGoodToFocusOn","getCellAbove","getCellBelow","getCellToLeft","getCellToRight","gridCell","lastCell","colToLeft","colToRight","adjustedLastCell","getCellEnd","rowBelow","getCellStart","rowAbove","getNextTabbedCell","getNextTabbedCellBackwards","getNextTabbedCellForwards","newRowIndex","newFloating","newColumn","isRowInPage","EditModelService","edits","cellValidations","EditCellValidationModel","rowValidations","EditRowValidationModel","suspendEdits","suspend","removeEdits","hasEdits","editRow","getEditRow","checkSiblings","getEditRowDataValue","siblingRow","applyEdits","data2","pendingValue","UNEDITED","getEdit","_getEdit","getEditMap","newEditRow","editorState","cellData","setEditMap","newEdits","newRow","setEdit","currentEdit","updatedEdit","isCancelAfterEnd","clearEditValue","editorValue","getEditPositions","editMap","rest","hasRowEdits","rowEdits","stop","pendingRowEdits","getCellValidationModel","getRowValidationModel","setCellValidationModel","setRowValidationModel","getCellValidation","hasCellValidation","setCellValidation","clearCellValidation","setCellValidationMap","validationMap","getCellValidationMap","clearCellValidationMap","getRowValidation","hasRowValidation","setRowValidation","rowValidation","clearRowValidation","setRowValidationMap","getRowValidationMap","clearRowValidationMap","_getRowCtrl","_getCellCtrl","columnId","actualColumn","_getColId","getCellCtrls","_stopEditing","_destroyEditors","_addStopEditingWhenGridLosesFocus","viewports","focusOutListener","elementWithFocus","clickInsideGrid","getActivePopups","Symbol","getCellEditorInstanceMap","editor","_setupEditors","editingCells","_setupEditor","editModelSvc","cellRowNode","cellColumn","curCellCtrl","isNewValueCell","cellStartValue","getCellDataValue","shouldStartEditing2","_sourceAndPendingDiffer","enableGroupEditing","editorComp","editorParams","_createEditorParams","previousEdit","popupLocation","checkAndPreventDefault","editCompDetails","onEditorAttachedFuncs","rangeFeature","refreshRow","suppressFlash","cellStartedEditing","dispatchCellEvent","_valueFromEditor","noValueResult","editorValueExists","_hasValidationRules","validationErrors","getValidationErrors","isCancelling","isStopping","batchEdit","agColumn","cellDataValue","initialNewValue","eventKey","suppressNavigateAfterEdit","_destroyEditor","parseValue","_purgeUnchangedEdits","includeEditing","_refreshEditorOnColDefChanged","KeyboardEvent","suppressPreventDefault","_syncFromEditors","cellId","_syncFromEditor","valueSameAsSource","persist","_persistEditorValue","refreshCell","groupEditOverrides","dispatchEditingStopped","cellValidationModel","latest","cellStoppedEditing","columnsHaveRules","minLength","editorsHaveRules","getValidationElement","_populateModelValidationErrors","mappedEditors","includeRows","ariaValidationErrorPrefix","mappedEditor","isInvalid","invalidMessage","HTMLInputElement","setCustomValidity","rowCtrlSet","_generateRowValidationErrors","rowEditStyleFeature","applyRowStyles","getAllCellCtrls","editorTooltipFeature","editStyleFeature","applyCellStyles","rowValidationModel","rowEditMap","editorsState","editValue","_validateEdit","messages","_createCellEvent","domEvent","_isDeleteKey","alwaysReturnFalseOnBackspace","CellKeyboardListenerFeature","onF2KeyDown","onEscapeKeyDown","onBackspaceOrDeleteKeyDown","onNavigationKeyDown","isRangeSelectionEnabled","onShiftRangeSelect","currentCellPosition","endCell","extendLatestRangeInDirection","ensureRowVisible","clearCellRangeCellValues","dispatchWrapperEvents","wrapperEventSource","emptyValue","getDeleteValue","startEditing","startedEdit","cellEditing","rowEditing","isRowEditing","startEditingAction","cellCtrl2","isCtrlEnter","applyBulkEdit","checkNavWithValidation","hasValidationErrors","revertSingleCellEdit","eventOnChildComponent","shouldPreventDefault","CellMouseListenerFeature","onMouseOut","onMouseOver","isMultiKey","suppressMouseEvent2","getCellRangeCount","intersectLastRange","cellClickedEvent","isEventHandlingSuppressed","shouldStartEditing","shouldStopEditing","cellDoubleClickedEvent","fireMouseDownEvent","cellMouseDownEvent","isRightClickInExistingRange","hasRanges","containsWidget","isRowNumberColumn","handleMouseDownOnCell","isEnableCellTextSelection","shouldFocus","column2","hasRightClickedOnRowNumber","extendLatestRangeToCell","cellInRange","isCellInAnyRange","isRightClick","mouseStayingInsideCell","clearMouseOver","setMouseOver","cellContainsTarget","cellContainsRelatedTarget","CellPositionFeature","setupRowSpan","onNewColumnsLoaded","eSetLeft","getRootElement","eContent","cellSpan","setupColSpan","_legacyApplyRowSpan","refreshSpanHeight","recalculateRowBounds","spanHeight","getCellHeight","onDisplayColumnsChanged","getColSpanningList","getCellWidth","getCellLeft","mostLeftCol","singleRowHeight","totalRowHeight","CSS_CELL","CSS_AUTO_HEIGHT","CSS_NORMAL_HEIGHT","CSS_CELL_FOCUS","CSS_CELL_FIRST_RIGHT_PINNED","CSS_CELL_LAST_LEFT_PINNED","CSS_CELL_NOT_INLINE_EDITING","CSS_CELL_WRAP_TEXT","instanceIdSequence4","CellCtrl","rowResizeFeature","positionFeature","customStyleFeature","keyboardListener","suppressRefreshCell","onCompAttachedFuncs","focusEventWhileNotReady","hasBeenFocused","hasEdit","createCellPosition","updateAndFormatValue","addFeatures","cellStyles","createCellCustomStyleFeature","createCellStyleFeature","enableTooltipFeature","cellSelectionEnabled","createCellRangeFeature","createRowNumbersRowResizerFeature","removeFeatures","disableTooltipFeature","enableCellTooltipFeature","setupCellEditorTooltip","_eWrapper","onSuppressCellFocusChanged","setupFocus","applyStaticCssClasses","setWrapText","onFirstRightPinnedChanged","onLastLeftPinnedChanged","onColumnHover","setupControlComps","refreshAriaColIndex","refreshRowResizer","continueEditing","showValue","setupCellAutoHeight","isCellRenderer","getValueToDisplay","createCellRendererParams","loadingDetails","resolver","removeBodyScrollEnd","skipRangeHandleRefresh","isSsrmLoading","groupData","findSvc","isMatch","prepDetailsDuringBatch","customRowDragComp","refreshHandle","isIncludeControl","isCheckboxRenderer","suffix","allowManuallyPinned","rowUnpinned","isSelectionColumn","refreshShouldDestroy","rowDragChanged","dndSourceChanged","autoHeightChanged","registerRowDragger","rowDraggerElement","suppressVisibilityChange","onCellChanged","eventImpactsThisCell","refreshOrDestroyCell","recreateCell","cellFlashSvc","noValueProvided","forceRefresh","isCellCompReady","valuesDifferent","dataNeedsUpdating","processingFilterChange","isSuppressFlashingCellsBecauseFiltering","flashCell","applyUserStyles","applyClassesFromColDef","applyCellClassRules","callValueFormatter","compareValues","oldValueFormatted","valuesAreEqual","getRowPosition","updateRangeBordersIfRangeCount","onCellSelectionChanged","allowedTarget","allowedFocusTargetOnValidation","restoreFocus","waitForRender","focusableElement","onRowIndexChanged","onCellFocused","checkCellFocused","cellFocused","focusEl","announceDescription","onCellColumnHover","onColDefChanged","handleColDefChanged","cellContextMenuEvent","cbSelectionComponent","customElement","newComp","setFocusedCellPosition","_cellPosition","refreshAriaRowIndex","processClassRules","previousClassRules","classRules","onApplicableClass","onNotApplicableClass","classesToApply","classesToRemove","forEachSingleClass","singleClass","classNames","rule","resultOfRule","calculateRowLevel","RowStyleService","processClassesFromGridOptions","rowCls","rowClassFunc","rowClassFuncResult","preProcessRowClassRules","processRowClassRules","rowClassParams","processStylesFromGridOptions","rowStyleFunc","rowStyleFuncResult","instanceIdSequence5","RowCtrl","animateIn","useAnimationFrameForCreate","allRowGuis","centerCellCtrls","leftCellCtrls","rightCellCtrls","slideInAnimation","fadeInAnimation","rowDragComps","lastMouseDownOnDragger","emptyStyle","updateColumnListsPending","paginationPage","getCurrentPage","initRowBusinessKey","rowFocused","rowLevel","setRowType","setAnimateFlags","rowStyles","createRowStyleFeature","businessKeyForNodeFunc","updateRowBusinessKey","updateGui","leftGui","rightGui","fullWidthGui","centerGui","initialiseRowComp","isSsrmLoadingRow","rowType","isIrmLoadingRow","dispatchFirstDataRenderedEvent","rowGui","isCacheable","setCached","rg","display","updateRowIndexes","setFocusedClasses","setStylesFromGridOptions","onRowSelected","updateColumnLists","initialRowClasses","getInitialRowClasses","executeSlideAndFadeAnimations","setRowCompRowId","setRowCompRowBusinessKey","addHoverFunctionality","setupFullWidth","addRowDraggerToRow","executeProcessRowPostCreateFunc","shouldSlide","onTopChanged","shouldFade","rowDragBean","getPinnedForContainer","createFullWidthCompDetails","getFullWidthCellRenderers","areAllContainersReady","ePinnedLeftRow","ePinnedRightRow","isLeftReady","isCenterReady","isRightReady","isNodeFullWidthCell","isStub","isDetailCell","isFullWidthGroup","noAnimation","updateColumnListsImpl","getNewCellCtrl","isCellSpan","isCorrectCtrlForSpan","cell","createCellCtrls","addCell","colInstanceId","colsFromPrev","prevCellCtrl","cellInResult","keepCell","isCellEligibleToBeRemoved","normalisedIndex","focusedColInstanceId","focusedCellCtrl","createFocusedCellCtrl","focusedSpan","firstNode","doesSpanContain","createAllCellCtrls","cellControls","getCellCtrlsForContainer","nextContainerPinned","REMOVE_CELL","KEEP_CELL","mightWantToKeepCell","cellStillDisplayed","oldRowTopExists","pinningLeft","tryRefresh","fullWidthSuccess","centerSuccess","leftSuccess","rightSuccess","allFullWidthRowsRefreshed","heightChanged","rowIndexChanged","topChanged","getRowExpandedListeners","onRowNodeDataChanged","postProcessCss","rowHighlightChanged","onRowNodeHighlightChanged","draggingChanged","postProcessRowDragging","onUiLevelChanged","onRowPinned","paginationPixelOffsetChanged","onPaginationPixelOffsetChanged","onCellFocusChanged","cellFocusCleared","onPaginationChanged","refreshFirstAndLastRowStyles","columnMoved","spannedCellsUpdated","useRowDragEntireRow","addListenersForCellComps","fullWidthChanged","redrawRow","postProcessClassesFromGridOptions","postProcessRowClassRules","aboveOn","insideOn","belowOn","indented","requestCheckAutoHeight","groupInfo","findFullWidthInfoForEvent","currentFullWidthContainer","isFullWidthContainerFocused","lastFocusedCell","currentFullWidthComp","isDetailGridCellFocused","nextEl","getFullWidthElement","getRowYPosition","displayedEl","onFullWidthRowFocused","removeCellCtrl","cellCtrlToRemove","onRowDblClick","onRowClick","onRowMouseDown","createRowEventWithSource","rowEvent","isSuppressMouseEvent","findFullWidthRowGui","getColumnForFullWidth","fullWidthRowGui","removeAllCellRanges","eDetailGui","masterDetailSvc","addFullWidthRowDragging","setupFullWidthRowTooltip","compFactory","newLevel","classToAdd","classToRemove","isFirstRowOnPage","isLastRowOnPage","newFirst","newLast","firstRowOnPage","lastRowOnPage","cssClasses","rowStyleSvc","classStr","updateStyles","rowContainerType","addExpandedCss","pointerenter","pointerleave","mouseEnter","mouseLeave","resetHoveredStatus","roundRowTopToBounds","minPixel","applyPaginationOffset","maxPixel","isRowRendered","isHeightFromFunc","heightFromFunc","lineHeight","destroyFirstPass","rowStillVisibleJustNotInViewport","destroySecondPass","destroyCellCtrls","currentPage","topPx","pixelOffset","afterPaginationPixels","skipScaling","afterScalingPixels","getRealPixelPosition","setRowTopStyle","getInitialRowTopShared","stickyRowTop","skipColSpanSearch","rowIndexStr","rowIsEven","ariaRowIndex","NavigationService","onPageDown","onPageUp","fromFullWidth","alt","rangeServiceShouldHandleShift","currentCell","processed","onHomeOrEndKey","onCtrlUpDownLeftRight","handlePageUpDown","navigateTo","scrollIndex","scrollType","scrollColumn","focusIndex","focusColumn","isAsync","getVScroll","pixelsInOnePage","getViewportHeight","pagingPixelOffset","currentPageBottomPixel","currentPageBottomRow","navigateToNextPageWithAutoHeight","navigateToNextPage","currentPageTopPixel","currentPageTopRow","lastRow","currentRowNode","rowPixelDiff","nextCellPixel","isRowTallerThanView","getNextFocusIndexForAutoHeight","lastRowIndex","pixelSum","currentCellHeight","cellToFocus","normalisedPosition","getNormalisedPosition","homeKey","columnToSelect","movedToNextCell","tabToNextCellCommon","cellOrRow","moveToNextCell","moveToNextCellNotEditing","previousCell","cellPos","focusedContainer","nextCell","findNextCellToFocusOn","previousPosition","skipToNextEditableCell","nextPosition","getLastCellOfColSpan","previousCellPosition","nextCellPosition","headerLen","fullRowEdit","cellIsEditable","lookupRowNodeForCell","hitEdgeOfGrid","isValidNavigateCell","userCell","focusPosition","isSpannedCell","currentCellFocused","fromBelow","colSpanningList","isGroupStickyEnabled","skipScrollToRow","KeyboardNavigationModule","PageBoundsListener","calculatePages","modelUpdatedEvent","newPage","newPageSize","calculateBounds","PageBoundsService","topRowBounds","bottomRowBounds","getCurrentPageHeight","topDisplayedRowIndex","bottomDisplayedRowIndex","getRowBounds","calculatePixelOffset","pinnedColumnModuleCSS","SetPinnedWidthFeature","PinnedColumnService","checkContainerWidths","processedColumnsToRemove","getPinnedColumnsOverflowingViewport","processUnpinnedColumns","hasLockedPinned","columnsToRemove","actualPinned","hiddenChanged","addPaddingForScrollbar","widthWithPadding","pinnedRightWidth","pinnedLeftWidth","totalPinnedWidth","pinnedLeftColumns","pinnedRightColumns","indexRight","indexLeft","totalWidthRemoved","spaceNecessary","PinnedColumnModule","AriaAnnouncementService","descriptionContainer","pendingAnnouncements","lastAnnouncement","updateAnnouncement","handleAnnouncementUpdate","valueToAnnounce","AriaModule","columnDelayRenderCSS","HideClass","ColumnDelayRenderService","hideRequested","alreadyRevealed","timesRetried","requesters","renderStatus","areHeaderCellsRendered","ColumnDelayRenderModule","overlayWrapperComponentCSS","OverlayWrapperElement","OverlayWrapperComponent","eOverlayWrapper","activePromise","activeOverlay","updateListenerDestroyFunc","activeCssClass","elToFocusAfter","overlayWrapperClassList","setOverlayWrapperComp","setWrapperTypeClass","overlayWrapperCssClass","showOverlay","overlayComponentPromise","exclusive","destroyActiveOverlay","isGridFocused","updateOverlayWrapperPaddingTop","elementToFocus","OverlayWrapperSelector","OverlayService","showInitialOverlay","wrapperPadding","isClientSide","isServerSide","updateOverlayVisibility","rowDataUpdated","gridSizeChanged","refreshWrapperPadding","rowCountReady","overlayWrapperComp","doShowLoadingOverlay","doShowNoRowsOverlay","doHideOverlay","getOverlayWrapperCompClass","updateExclusive","wrapperCssClass","wasExclusive","newPadding","OverlayModule","RowContainerHeightService","scrollY","uiBodyHeight","updateOffset","newScrollY","newBodyHeight","getUiBodyHeight","calculateOffset","setUiContainerHeight","pixelsToShave","modelHeight","maxScrollY","scrollPercent","setDivStretchOffset","clearOffset","newOffset","newOffsetFloor","setModelHeight","modelPixel","modelMaxScroll","scrollPixel","ROW_ANIMATION_TIMEOUT","RowRenderer","destroyFuncsForColumnListeners","rowCtrlsByRowIndex","zombieRowCtrls","refreshInProgress","dataFirstRenderedFired","setupRangeSelectionListeners","onColumnMovedPinnedVisible","addCellSelectionListeners","removeCellSelectionListeners","isEnabled","initialise","onPageLoaded","onPinnedRowDataChanged","onPinnedRowsChanged","onBodyScroll","onDomLayoutChanged","stickyRowSvc","getShowRowGroupCols","stickyRowFeature","createStickyRowFeature","createRowCon","destroyRowCtrls","registerCellEventListeners","initialiseCache","redrawAfterModelUpdate","countProp","getKeepDetailRowsCount","cachedRowCtrls","RowCtrlCache","stickyTopRowCtrls","stickyBottomRowCtrls","updateAllRowCtrls","liveList","zombieList","cachedList","getEntries","isCellBeingRendered","spannedCell","updateCellFocus","getFullWidthRowCtrls","onFlashCells","columnHoverChanged","refreshListenersToColumnsForCellComps","removeGridColumnListeners","forEachCellWithThisCol","leftChangedListener","firstRightPinnedChangedListener","lastLeftPinnedChangedListener","colDefChangedListener","destroyRows","domLayoutChanged","datasourceChanged","firstRenderedRow","lastRenderedRow","rowIndexesToRemove","removeRowCtrls","recycleRows","onlyBody","getAllRowCtrls","refreshFloatingRowComps","refreshFloatingRows","rowCtrlMap","rowCtrlDoesNotExist","rowNodeCount","suppressEvent","refreshStickyNode","removeRow","destroyAndRecreateCtrl","dataStruct","dispatchDisplayedRowsChanged","cleanupEditors","partialRefresh","getLockOnRefresh","updateContainerHeights","scrollToTopIfNewData","rowsToRecycle","getRowsToRecycle","removeAllRowComps","workOutFirstAndLastRowsToRender","checkStickyRows","extraTopHeight","extraBottomHeight","restoreFocusedCell","releaseLockOnRefresh","suppressScrollToTop","resetOffsets","containerHeight","isRefreshInProgress","findPositionToFocus","rowCtrlsLength","cellCtrlsLength","refreshCellParams","refreshRows","rowRedrawn","rowIdsMap","mapRowNodes","isRowInMap","colIdsMap","excludeColFromRefresh","destroyStickyCtrls","stubNodeIndexes","stubNode","ctrlsByIdMap","indexToRemove","oldFirstRow","oldLastRow","hasStickyRowChanges","rangeChanged","newFocusedCell","removeRowCompsNotToDraw","indexesToDraw","indexesToDrawMap","existingIndexes","indexesNotToDraw","calculateIndexesToDraw","focusedRowIndex","checkRowToDraw","doNotUnVirtualiseRow","currRow","createOrUpdateRowCtrl","useAnimationFrame","redrawFullWidthEmbeddedRows","fullWidthCtrl","rowNodesMap","creatingNewRowCtrl","rowCtrlsMap","executeInAWhileFuncs","addRow","getRowBuffer","getRowBufferInPixels","rowsToBuffer","bufferPixels","rowHeightsChanged","firstPixel","lastPixel","bodyVRange","bodyTopPixel","bodyBottomPixel","firstVisibleVPixel","lastVisibleVPixel","ensureAllRowsInRangeHaveHeightsCalculated","firstRowIndex","pageFirstRow","pageLastRow","rowLayoutNormal","suppressRowCountRestriction","rowBufferMaxSize","firstDiffers","lastDiffers","topPixel","bottomPixel","pinnedRowHeightsChanged","rowModelHeightsChanged","REMOVE_ROW","KEEP_ROW","rowHasFocus","rowIsEditing","rowIsDetail","mightWantToKeepRow","rowNodePresent","isRowPresent","rowCtrlFromCache","viewportRows","stickyTopRows","stickyBottomRows","isRangeInRenderedViewport","startIndex","endIndex","parentClosed","blockAfterViewport","blockBeforeViewport","blockInsideViewport","maxCount","entriesMap","entriesList","rowCtrlToDestroy","removeFromCache","rowNodeMismatch","rowNodeId","RowNodeSorter","isAccentedSort","primaryColumnsSortGroups","propChange","sortedRowNodes","currentPos","compareRowNodes","sortedNodeA","sortedNodeB","nodeA","nodeB","sortOption","comparatorResult","providedComparator","getComparator","validResult","comparatorOnCol","groupLeafField","primaryColumn","isNodeGroupedAtLevel","rowGroupColumn","isGroupRows","leafChild","displayCol","SortModule","sortAscending","sortDescending","sortUnSort","SyncService","waitingForColumns","setColumnsAndData","gridReady","SOURCE_PASTE","ChangeDetectionService","nodesToRefresh","onlyChangedColumns","doAggregate","rowNode2","ExpressionService","expression","evaluateExpression","javaScriptFunction","createExpressionFunction","expressionToFunctionCache","functionBody","createFunctionBody","theFunction","Function","ValueCache","cacheVersion","neverExpires","__cacheVersion","__cacheData","ValueCacheModule","ExpressionModule","ChangeDetectionModule","CellApiModule","ValueService","hasEditSvc","initialised","isSsrm","executeValueGetter","executeValueGetterWithValueCache","executeValueGetterWithoutValueCache","cellExpressions","isTreeData","callColumnCellValueChangedHandler","includeValueFormatted","exporting","showRowGroupColValueSvc","isGroupCol","processTreeDataAsGroup","groupValue","getGroupValue","formatAndPrefixGroupColValue","isPivotLeaf","isOpenedGroup","groupShowsAggData","ignoreAggData","rowGroupColId","colRowGroupIndex","allowUserValuesForCell","groupDataExists","aggDataExists","ignoreSsrmAggData","ssrmFooterGroupCol","cellValueGetter","suppliedFormatter","useFormatterFromColumn","formatter","valueWasDifferent","setValueUsingField","savedValue","dispatchCellValueChangedEvent","valuesAreSame","fieldPieces","fieldPiece","shift","valueFromCache","getValueCallback","otherColumn","getKeyForNode","keyParams","CommunityCoreModule","selectOpen","smallDown","colorPicker","smallUp","checkboxChecked","checkboxIndeterminate","checkboxUnchecked","radioButtonOn","radioButtonOff","smallLeft","smallRight","ENTERPRISE_MODULE_NAMES","AdvancedFilter","AiToolkit","AllEnterprise","BatchEdit","CellSelection","Clipboard","ColumnMenu","ColumnsToolPanel","ContextMenu","ExcelExport","FiltersToolPanel","Find","GridCharts","IntegratedCharts","GroupFilter","MasterDetail","Menu","MultiFilter","NewFiltersToolPanel","Pivot","RangeSelection","RichSelect","RowNumbers","RowGrouping","RowGroupingPanel","ServerSideRowModelApi","ServerSideRowModel","SetFilter","SideBar","Sparklines","StatusBar","TreeData","ViewportRowModel","ALL_COLUMN_FILTERS","RESOLVABLE_MODULE_NAMES","EditCore","ClientSideRowModelHierarchy","ColumnFilter","ColumnGroupHeaderComp","ColumnGroup","ColumnHeaderComp","ColumnMove","ColumnResize","CommunityCore","CsrmSsrmSharedApi","RowModelSharedApi","EnterpriseCore","FilterCore","GroupCellRenderer","KeyboardNavigation","LoadingCellRenderer","MenuCore","MenuItem","Overlay","PinnedColumn","SharedAggregation","SharedDragAndDrop","SharedMasterDetail","SharedMenu","SharedPivot","SharedRowGrouping","SharedRowSelection","Sort","SsrmInfiniteSharedApi","SharedTreeData","MODULES_FOR_ROW_MODELS","InfiniteRowModel","ClientSideRowModelApi","ClientSideRowModel","resolveModuleNames","resolvedModuleNames","resolved","resolvedModName","rowModelForModule","NoModulesRegisteredError","moduleImportMsg","moduleNames","imports","convertToUserModuleName","includeCharts","chartImport","inModuleRegistration","umdMissingModule","chartModules","agChartsDynamic","globalThis","agCharts","missingRowModelTypeError","missingModule","additionalText","isUmd2","MISSING_MODULE_REASONS","chartImportRequired","explanation","missingChartsWithModule","gridModule","clipboardApiError","method","AG_GRID_ERRORS","nodeId","methodName","newFilter","filterModelType","paginationPageSizeOption","pageSizeSet","pageSizesSet","pageSizeOptions","paginationPageSizeSelector2","componentName","textOutput","validComponents","chartId","allRange","currentChartType","chartType","customThemeName","panel","unrecognisedGroupIds","dataType","unrecognisedColIds","providedStrategy","menuTabName","itemsToConsider","parentGroupData","childNodeData","duplicateRowsData","firstData","secondData","startRow","rowGroupId","justCurrentPage","duplicateIdText","defaultByKey","invalidColIds","defaultOffset","lineDash","menuItemOrString","point","parentId","getError","errorId","msgOrFunc","errorBody","errorSuffix","_gridApiCache","_gridElementCache","createGrid","gridParams","setThemeOnGridDiv","newGridDiv","GridCoreCreator","gridComp","nextGridId","createUi","acceptChanges","_destroyCallback","registeredModules","getRegisteredModules","createBeansList","createProvidedBeans","contextParams","registerModuleFeatures","getDefaultRowModelType","apiFunctionSvc","seed","userProvidedRowModelType","rowModelModuleNames","clientSide","infinite","serverSide","rowModuleModelName","registeredRowModelModules","rowModelType2","userRowModelType","passedRowModelType","getGridApi","gridElement","firstElementChild","getElementById","getGridElement","_getClientSideRowModel","_getInfiniteRowModel","_getServerSideRowModel","_getViewportRowModel","LocaleService","convertColumnState","enablePivotMode","groupColIds","aggregationColumns","pivotColIds","leftColIds","rightColIds","hiddenColIds","columnSizes","defaultSortIndex","sortModel","_removeEmptyValues","aggregationModel","columnPinning","columnVisibility","columnSizing","columnSizingModel","columnOrder","orderedColIds","_convertColumnGroupState","openColumnGroups","openColumnGroupIds","convertColumnGroupState","BaseComponentWrapper","OriginalConstructor","componentType","createWrapper","createMethod","addMethod","createMethodProxy","hasMethod","callMethod","_isShowTooltipWhenTruncated","_getShouldDisplayTooltip","_formatNumberCommas","thousandSeparator","decimalSeparator","BaseCreator","getFileName","fileName","extension","getDefaultFileExtension","getDefaultFileName","serializingSession","createSerializingSession","gridSerializer","serialize","BaseGridSerializingSession","processCellCallback","processHeaderCallback","processGroupHeaderCallback","processRowGroupCallback","prepare","_columnsToExport","extractHeaderValue","extractRowCellValue","currentColumnIndex","accumulatedRowIndex","valueToParse","valueToFormat","valueService","isGrandTotalRow","isMultiAutoCol","concatenatedGroupValue","valueFormatted2","_downloadFile","content","URL","createObjectURL","bubbles","revokeObjectURL","INITIAL_GRID_OPTION_KEYS","defaultColGroupDef","excelStyles","customChartThemes","chartThemeOverrides","chartToolPanelsDef","detailRowHeight","dragAndDropImageComponent","loadingOverlayComponent","noRowsOverlayComponent","aggFuncs","createChartContainer","filterHandlers","functionRowModels","deprecatedFunctions","old","new","apiFunction","deprecation","replacement","apiMethod","replacementMessage","DYNAMIC_BEAN_MODULES","detailCellRendererCtrl","fillHandle","groupCellRendererCtrl","headerFilterCellCtrl","rangeHandle","highlightTooltipFeature","tooltipStateManager","groupStrategy","treeGroupStrategy","rowNumberRowResizer","singleCell","fullRow","agSetColumnFilterHandler","agMultiColumnFilterHandler","agGroupColumnFilterHandler","agNumberColumnFilterHandler","agDateColumnFilterHandler","agTextColumnFilterHandler","ICON_VALUES","ICON_MODULES","loadingMenuItems","legacyMenu","filterAdd","filterCardCollapse","filterCardExpand","filterCardEditing","filterTab","filtersToolPanel","columnsToolPanel","accordionOpen","accordionClosed","accordionIndeterminate","columnSelectClosed","columnSelectOpen","columnSelectIndeterminate","groupContracted","groupExpanded","setFilterGroupClosed","setFilterGroupOpen","setFilterGroupIndeterminate","setFilterLoading","groupLoading","menuPin","menuValue","menuAddRowGroup","menuRemoveRowGroup","clipboardCopy","clipboardCut","clipboardPaste","pivotPanel","rowGroupPanel","valuePanel","columnDrag","csvExport","excelExport","richSelectOpen","richSelectRemove","subMenuOpen","subMenuOpenRtl","panelDelimiter","panelDelimiterRtl","advancedFilterBuilder","advancedFilterBuilderDrag","advancedFilterBuilderInvalid","advancedFilterBuilderMoveUp","advancedFilterBuilderMoveDown","advancedFilterBuilderAdd","advancedFilterBuilderRemove","advancedFilterBuilderSelectOpen","chartsMenu","chartsMenuEdit","chartsMenuAdvancedSettings","chartsMenuAdd","chartsColorPicker","chartsThemePrevious","chartsThemeNext","chartsDownload","rowPin","rowUnpin","rowPinBottom","rowPinTop","DEPRECATED_ICONS_V33","ValidationService","processOptions","moduleForComponent","DEPRECATED_ROW_NODE_EVENTS","validator","checkProperties","warnings","optionKeys","rules","actualType","checkForRequiredDependencies","optionEntries","failedOptions","gridOptionValue","failedKey","possibleOptions","exceptions","validProperties","containerName","VUE_FRAMEWORK_PROPS","invalidProperties","_fuzzyCheckStrings","getOwnPropertyNames","invalidPropertiesKeys","inputValues","validValues","fuzzyMatches","invalidInputs","validValue","invalidInput","ValidationModule","updateRowNodeAfterFilter","childrenAfterFilter","FilterStage","refreshProps","execute","isChildFilterPresent","filterNodes","includeChildNodes","passBecauseChildren","passBecauseDataPasses","doesRowPassFilter","doingTreeDataFiltering","treeDataDepthFirstFilter","alreadyFoundInParent","foundInParent","treeDataFilterCallback","defaultFilterCallback","HeaderFilterCellCtrl","iconCreated","setupActive","setupLeft","setupHover","setupSyncWithFilter","setupUi","showParentFilter","setupFilterChangedListener","filterSwitched","filterExists","floatingFilterExists","suppressFilterButton","eMenuIcon","nextFocusableEl","nextFocusableColumn","findNextColumnWithFloatingFilter","isRelatedWithin","notFromHeaderWrapper","fromWithinHeader","shouldFocusLast","addHeaderFilterColumnHoverListener","setLeftFeature","highlightFilterButtonWhenActive","getFloatingFilterCompDetails","syncWithFilter","eventWithParams","updateFloatingFilterParams","parentModel","getCurrentFloatingFilterParentModel","filterChangedEvent","onParentModelChanged","destroySyncListener","destroyFilterChangedListener","updateFilterButton","wasActive","becomeActive","updateCompDetails","areFilterCompsDifferent","SharedMenuModule","PopupService","positionPopupForMenu","minWidthSet","widthOfParent","maxX","xLeftPosition","xRightPosition","postProcessParams","themeChanged","PopupModule","columnFiltersCSS","isAggregateFilterPresent","Promise","useUnapplied","getModelForColumn","updateAllModels","DUMMY_HANDLER","filterHandler","ColumnFilterService","allColumnFilters","allColumnListeners","activeAggregateFilters","activeColumnFilters","modelUpdates","columnModelUpdates","handlerMap","onColumnsChanged","dataTypesInferred","processFilterModelUpdateQueue","initialFilterModel","filterModel","initialModel","forceUpdateActive","allPromises","previousModel","modelKeys","newModel","setModelOnFilterWrapper","getOrCreateFilterWrapper","currentModel","updateActive","excludeInitialState","getModelFromFilterWrapper","hasNewState","colState","actualState","isAggFilterPresent","disableFilters","disposeFilterWrapper","updateActiveFilters","groupFilterEnabled","isAggFilter","isShowingPrimaryColumns","addFilter","doesFilterPassWrapper","isHandlerActive","updateFilterFlagInColumns","setColFilterActive","groupFilter","updateFilterFlags","doFiltersPass","colIdToSkip","targetAggregates","targetedFilters","targetedData","callOnFilterChangedOutsideRenderCycle","updateBeforeFilterChanged","filterColumn","onAnyFilterChanged","updateAfterFilterChanged","createGetValue","filterValueGetterOverride","filterValueSvc","columnToUse","cachedFilter","isGroupFilter","getOrCreateFilterUi","createIfMissing","createFilterWrapper","setColumnFilterWrapper","getDefaultFilter","getDefaultFilterFromDataType","getCellDataType","getDefaultFloatingFilter","createFilterComp","filterDef","getFilterParams","createFilterCompDetails","createFilterCompParams","updatedParams","createFilterUi","createFilterInstance","selectableFilter","isSelectable","getFilterDef","handlerGenerator","createHandler","filterCompDetails","hasLocalButtons","createBaseFilterParams","forFloatingFilter","doesRowPassOtherFilter","doesRowPassOtherFilters","useHandler","filterChangedCallbackFactory","filterModifiedCallback","filterModified","displayParams","onModelChange","model2","updateStoredModel","refreshHandlerAndUi","updateOrRefreshFilterUi","filterUiChanged","createFilterUiForHandler","createFilterUiLegacy","updateInstanceCallback","filterComp","createHandlerFunc","getFilterHandlerFromDef","filterDef2","providedFilterHandler","resolveProvidedFilterHandler","handlerName2","handlerName","userFilterHandler","filterName","handlerNameOrCallback","handlerFunc","createHandlerFromFunc","createHandlerParams","disposeColumnListener","allFiltersAreGroupFilters","parentFilterInstance","filterComponent","isReactive","currentParentModel","floatingFilterUiChanged","destroyFilterUi","newFilterUi","removeFilter","wasHandler","existingModel","oldHandler","shouldRefreshFilter","oldCompDetails","oldComponentClass","newComponentClass","isSameComponentClass","render","getFilterInstance","setModelForColumn","getStateForColumn","providedFilter","colDefFilterParams","colDefFilterValueGetter","multiFilter","getParamsForDataType","justCreated","uiPromise","canApplyAll","hasUnappliedModel","setGlobalButtons","shouldKeepStateOnDetach","filterPanelSvc","FilterManager","advFilterModelUpdateQueue","refreshFiltersForAggregations","updateAdvFilterColumns","columnVisible","onAdvFilterEnabledChanged","externalFilterPresent","isExternalFilterPresentCallback","updateAggFiltering","quickFilterChanged","alwaysPassFilter","setFilterState","isAdvFilterEnabled","skipWarning","warnAdvFilters","getFilterState","isAdvFilterPresent","isHeaderActive","aggFiltering","isAggregateQuickFilterPresent","shouldApplyQuickFilterAfterAgg","isNonAggregateQuickFilterPresent","doesRowPassAggregateFilters","doesRowPass","getAdvFilterModel","setAdvFilterModel","toggleAdvFilterBuilder","toggleFilterBuilder","eCompToInsertBefore","setupHeaderComp","FilterMenuFactory","showPopup","activeMenu","tabListener","trapFocusWithin","dispatchVisibleChangedEvent","switchingTab","FilterValueService","getFilterValueGetter","executeFilterValueGetter","ReadOnlyFloatingFilterElement","ReadOnlyFloatingFilter","eFloatingFilterText","reactiveParams","getModelAsString","modelAsString","OptionsFactory","customFilterOptions","defaultOptions","mapCustomOptions","defaultOption","getDefaultItem","filterOption","requiredProperties","propertyCheck","firstFilterOption","getCustomOption","removeItems","startPosition","deleteCount","isBlank","getDefaultJoinOperator","defaultJoinOperator","evaluateCustomFilter","customFilterOption","validateAndUpdateConditions","conditions","numConditions","getNumberOfInputs","optionsFactory","customOpts","zeroInputTypes","SimpleFilter","mapValuesFromModel","eTypes","eJoinPanels","eJoinAnds","eJoinOrs","eConditionBodies","lastUiCompletePosition","joinOperatorId","commonUpdateSimpleParams","createOption","createMissingConditionsAndOperators","setNumConditions","filterPlaceholder","createFilterListOptions","onFloatingFilterChanged","setTypeFromFloatingFilter","setValueFromFloatingFilter","eType","getUiCompleteConditions","filterType","getJoinOperator","getConditionTypes","getConditionType","eJoinOperatorsOr","aIsSimple","bIsSimple","oneSimpleOneCombined","aSimple","bSimple","areSimpleModelsEqual","aCombined","bCombined","aModel","bModel","isInitialLoad","resetUiToDefaults","isCombined","combinedModel","numPrevConditions","getNumConditions","removeConditionsAndOperators","createJoinOperatorPanel","orChecked","eJoinOperatorAnd","eJoinOperatorOr","setConditionIntoUi","simpleModel","numAlwaysVisibleConditions","eConditionBody","createEValue","putOptionsIntoDropdown","resetType","forEachPositionInput","resetInput","addChangedListeners","eJoinOperatorPanel","createJoinOperator","uniqueGroupId","resetJoinOperatorAnd","resetJoinOperatorOr","eJoinOperators","andOr","eJoinOperator","baseClass","filterListOptions","createBoilerplateListOption","createCustomListOption","customOption","joinOperator","updateNumConditions","updateConditionStatusesAndValues","areAllConditionsUiComplete","isConditionUiComplete","shouldAddNewConditionAtEnd","activePosition","removeStartPosition","numConditionsToRemove","isConditionDisabled","isConditionBodyVisible","forEachInput","setElementDisplayed","setElementDisabled","resetPlaceholder","eJoinOperatorPanels","eJoinOperatorsAnd","removeComponents","removeElements","removeEValues","joinOperatorIndex","removedElements","removedComponents","suppressFocus","firstInput","getInputs","updatedLastUiCompletePosition","conditionsRemoved","shouldRemovePositionAtEnd","positionBeforeLastUiCompletePosition","shouldUpdateConditionStatusesAndValues","updateJoinOperatorsDisabled","getPlaceholderText","defaultPlaceholder","filterOptionKey","globalTranslate","setElementValue","fromFloatingFilter","attachElementOnChange","cb","forEachPositionTypeInput","getValues","createCondition","filteringLabel","resetJoinOperator","updateJoinOperatorDisabled","updater","elPosition","hasInvalidInputs","DateCompWrapper","alive","dateComp","tempValue","DEFAULT_DATE_FILTER_OPTIONS","mapValuesFromDateFilterModel","dateFrom","dateTo","DEFAULT_MIN_YEAR","DEFAULT_MAX_YEAR","Infinity","DateFilter","eConditionPanelsFrom","eConditionPanelsTo","dateConditionFromComps","dateConditionToComps","minValidYear","maxValidYear","minValidDate","maxValidDate","yearParser","parsedMinValidDate","parsedMaxValidDate","createDateCompWrapper","dateCompWrapper","onDateChanged","eCondition","createFromToElement","eConditionPanels","dateConditionComps","fromTo","eConditionPanel","removeDateComps","isValidDateValue","getUTCFullYear","useIsoSeparator","_elPosition","SimpleFilterHandler","filterModelFormatter","FilterModelFormatterClass","validateModel","models","combineFunction","individualConditionPasses","newOptionsList","allConditionsExistInNewOptionsList","needsUpdate","updatedModel","customFilterResult","evaluateNullValue","evaluateNonNullValue","ScalarFilterHandler","includeBlanksInEquals","includeBlanksInNotEqual","includeBlanksInGreaterThan","includeBlanksInLessThan","includeBlanksInRange","compareResult","compareToResult","inRangeInclusive","SCALAR_FILTER_TYPE_KEYS","TEXT_FILTER_TYPE_KEYS","SimpleFilterModelFormatter","forToolPanel","customOptions","joinOperatorTranslateKey","conditionToString","conditionForToolPanel","isRange","getFilterTo","customDisplayKey","customDisplayName","typeValue","typeKey","getTypeKey","filterTypeKeys","DateFilterModelFormatter","dateFormatFn","inRangeFloatingFilterDateFormat","formatDate","formattedFrom","formattedTo","valueForToolPanel","defaultDateComparator","DateFilterHandler","isValidDate2","SimpleFloatingFilter","setLastTypeFromModel","lastType","canWeEditAfterModelFromParentFilter","isTypeEditable","reactive","setSimpleParams","setEditable","hasSingleInput","uneditableTypes","getAriaLabel","DateFloatingFilterElement","DateFloatingFilter","eReadOnlyText","eDateWrapper","createDateComponent","getDateComponentParams","updateCompOnModelChange","allowEditing","dateModel","filterValueDate","filterValueText","DefaultDateElement","DefaultDateComponent","eDateInput","applyOnFocusOut","inputElement","mouseDown","usingSafariDatePicker","handleInput","handleFocusOut","isChange","shouldUseBrowserDatePicker","shouldUseDateTimeLocal","browserDatePicker","DEFAULT_NUMBER_FILTER_OPTIONS","getAllowedCharPattern","processNumberFilterValue","mapValuesFromNumberFilterModel","filterTo","NumberFilter","eValuesFrom","eValuesTo","numberFormatter","valueToSet","eValues","eValue","removeComps","stringToFloat","filterText","numberParser","NumberFilterModelFormatter","NumberFilterHandler","FloatingFilterTextInputService","onValueChanged","setupGui","setValueChangedListener","autoComplete","trimInputForFilter","trimmedInput","mapValuesFromTextFilterModel","TextInputFloatingFilterElement","TextInputFloatingFilter","eFloatingFilterInputContainer","inputSvc","setupFloatingFilterInputService","setTextInputParams","createFloatingFilterInputService","browserAutoComplete","toDebounce","syncUpWithParentFilter","recreateFloatingFilterInputService","isEnterKey","trimInput","convertValue","FloatingFilterNumberInputService","numberInputActive","eNumberInput","eTextInput","setupListeners","getActiveInputElement","NumberFloatingFilter","DEFAULT_TEXT_FILTER_OPTIONS","TextFilter","TextFilterModelFormatter","defaultMatcher","lastIndexOf","defaultFormatter","defaultLowercaseFormatter","TextFilterHandler","matcher","textMatcher","textFormatter","caseSensitive","filterTypesAllowNulls","formattedValues","cellValueFormatted","matcherParams","processCondition","newCondition","TextFloatingFilter","getText","resetCache","QuickFilterService","quickFilterParts","resetListener","onColumnConfigChanged","parseFilter","parser","setFilterParts","setParserAndMatcher","groupAutoCols","columnsForQuickFilter","colsToUse","usingCache","doesRowPassMatcher","doesRowPassCache","doesRowPassNoCache","parsedFilter","hasChanged","filterPart","getTextForColumn","checkGenerateAggText","getAggText","stringParts","ClientSideRowModelFilterModule","FilterCoreModule","FilterValueModule","ColumnFilterModule","CustomFilterModule","TextFilterModule","NumberFilterModule","DateFilterModule","QuickFilterCoreModule","QuickFilterModule","ExternalFilterModule","tooltipCSS","getEditErrorsForPosition","cellValidationErrors","rowValidationErrors","errors","TooltipService","existingTooltipFeature","passedValue","isTooltipWhenTruncated","headerLocation","createTooltipFeature","additionalParams","isElementOverflowing","tooltipParams","rowValidationMap","cellValidationMap","hasRowValidationErrors","hasCellValidationErrors","TooltipStateManager","userDetails","onColumnMovedEventCallback","TooltipModule","UndoRedoAction","cellValueChanges","RangeUndoRedoAction","initialRange","finalRange","ranges","DEFAULT_STACK_SIZE","UndoRedoStack","maxStackSize","actionStack","shouldAddActions","getCurrentStackSize","UndoRedoService","activeCellEdit","activeRowEdit","isPasting","isRangeInAction","batchEditing","bulkEditing","eventCell","isCellEditing","shouldCaptureAction","cellValueChange","clearStacks","undoStack","redoStack","undoRedoLimit","keepUndoRedoStack","columnPinned","rowDragEnd","getCurrentUndoStackSize","getCurrentRedoStackSize","operationPerformed","undoRedoStack","opposingUndoRedoStack","rangeProperty","cellValueChangeProperty","undoRedoAction","processAction","processRange","processCell","valueExtractor","endRow","startColumn","setLastFocusedCell","cellRangeParams","columnStart","rowEditingStarted","rowEditingStopped","pushActionsToUndoStack","cellEditingStarted","cellEditingStopped","shouldPushAction","pasteStart","pasteEnd","fillStart","fillEnd","keyShortcutChangedCellStart","keyShortcutChangedCellEnd","batchEditingStarted","startBigChange","batchEditingStopped","stopBigChange","bulkEditingStarted","bulkEditingStopped","updateBigChange","cellEditingCSS","CheckboxCellEditorElement","CheckboxCellEditor","focusIn","internalErrors","SimpleCellEditor","cellEditorInput","getTemplate","startValue","shouldSetStartValue","focusAfterAttached","getStartValue","highlightAllOnFocus","setCaret","DateCellElement","DateCellEditorInput","getDataTypeService","valueAsDate","minValue","minDateString","toLocaleDateString","maxValue","maxDateString","DateCellEditor","DateStringCellElement","DateStringCellEditorInput","raw","parseDate","DateStringCellEditor","LargeTextCellElement","LargeTextCellEditor","NumberCellElement","NumberCellEditorInput","editorEl","preventStepping","showStepperButtons","valueAsNumber","NumberCellEditor","SelectCellElement","SelectCellEditor","startedByEnter","hasValue","valueFormattedExits","valueListGap","valueListMaxWidth","valueListMaxHeight","TextCellEditorElement","TextCellEditorInput","setSelectionRange","TextCellEditor","nodeSelector","forceStop","forceCancel","notPinned","PopupEditorElement","PopupEditorWrapper","addKeyDownListener","extendingRange","clickCount","deriveClickCount","isFullRowCellEditable","editHighlightFn","_hasEdits","nodeHasLeafEdit","_hasLeafEdits","_hasPinnedEdits","CellEditStyleFeature","applyBatchingStyle","hasErrors","RowEditStyleFeature","applyStyle","purgeRows","purgeCells","_refreshEditCells","KEEP_EDITOR_SOURCES","INTERNAL_EDITOR_SOURCES","STOP_EDIT_SOURCE_TRANSFORM","cellClear","bulk","STOP_EDIT_SOURCE_TRANSFORM_KEYS","SET_DATA_SOURCE_AS_API","CANCEL_PARAMS","COMMIT_PARAMS","CHECK_SIBLING","FORCE_REFRESH","EditService","stopping","createStrategy","stopInvalidEdits","rowExpansionStateChanged","setBatchEditing","strategy","getEditType","destroyStrategy","shouldStart","shouldStop","shouldCancelEditing","shouldCancel","ignoreEventKey","dispatchBatchEvent","bulkRefresh","treatAsSource","isEditingOrBatchWithEdits","willStop","willCancel","freshEdits","editsToDelete","processEdits","position2","midBatchInputsAllowed","isEnter","isEscape","isTab","navigateAfterEdit","isKeyBoardEvent","navAfterEdit","success","setNodeDataValue","originalSource","translatedSource","commitNextEdit","refreshParams","getRowColumnsFromMap","dispatchEditValuesChanged","refCell","updatedNodes","refreshNodes","stopAllEditing","isEditable","cellEditingInvalidCommitBlocks","preventNavigation","moveToNextEditingCell","preferEditor","siblingEdit","existing","payload","createBatchEditEvent","toEventChangeList","forEachRowInRange","cells","er","BaseEditStrategy","clearEdits","isFocusCleared","cellPositionFromEvent","isBlock","shouldRevert","hasError","results","pass","fail","actions","processValidationResults","setFocusOutOnEditor","focusOut","setFocusInOnEditor","isFullRow","setupEditors","_position","at","FullRowEditStrategy","startedRows","oldRowCtrl","editableColumns","anyFailed","changedRows","prevCell","prevPos","prevEditable","nextEditable","rowsMatch","restoreEditors","suppressStartEditOnTab","SingleCellEditStrategy","_type","_silent","curColId","curCol","prevColId","shouldSuspend","alreadyEditing","EditCoreModule","UndoRedoEditModule","TextEditorModule","NumberEditorModule","DateEditorModule","CheckboxEditorModule","SelectEditorModule","LargeTextEditorModule","CustomEditorModule","SelectionColService","onSelectionOptionsChanged","updateOrders","destroyCollection","newTreeDepth","oldTreeDepth","treeDepthSame","generateSelectionCols","areSame","putSelectionColsFirstInList","cols2","colsFiltered","createSelectionColDef","hasAutoCols","selectionColumnDef","enableRTL","__","filteredSelColDef","aSelected","bSelected","prevCheckbox","currCheckbox","checkboxHasChanged","prevHeaderCheckbox","currHeaderCheckbox","headerCheckboxHasChanged","currLocation","prevLocation","locationChanged","numVisibleCols","hideSelectionCol","rowNumbersCol","expectedNumCols","allNodesValid","SelectionService","detailSelection","masterSelectsDetail","selectionMode","resetNodes","selectRange","recursiveCanNodesBeSelected","suppressFinishActions","updatedCount","_normaliseSiblingRef","skipThisNode","thisNodeWasSelected","selectChildren","clearOtherNodes","updateGroupsFromChildrenSelections","dispatchSelectionChanged","nodesToSelect","nodeWasSelected","childrenAfterAggFilter","selectedRows","getSelectionCount","filterFromSelection","newSelectedNodes","rowNodeToKeepSelected","groupsToRefresh","otherRowNode","isNodeToKeep","shouldClearDescendant","isDescendantOf","syncInOldRowNode","syncInNewRowNode","oldNodeSelected","selectionCount","topLevelNodes","getTopLevelNodes","traverse","l","rowModelClientSide","getNodesToSelect","getSelectedCounts","selectedCount","notSelectedCount","_calculateSelectAllState","canSelectAll","forEachNodeOnPage","recursivelyAddChildren","getSelectionState","setSelectionState","rowIds","skipLeafNodes","isCSRMGroupSelectsDescendants","nodesToDeselect","nodeCallback","hasSelectableChild","rowSelectable","updateSelectableAfterGrouping","refreshMasterNodeState","detailApi","detailGridInfo","isSelectAll","_isAllSelected","detailSelected","setDetailSelectionState","masterNode","detailGridOptions","selectedIds","serverSideState","notSelected","rootCanBeSelected","childrenCanBeSelected","SharedRowSelectionModule","RowSelectionModule","maxRowFound","serverSideRowModel","ssrm","getBlockStates","rowNodeBlockLoader","getBlockState","CsrmSsrmSharedApiModule","RowModelSharedApiModule","SsrmInfiniteSharedApiModule","AlignedGridsService","consuming","getAlignedGridApis","isCallbackConfig","apis","alignedGrid","isGridApi","refOrComp","fireColumnEvent","alignedGridColumn","onColumnEvent","alignedGridScroll","onScrollEvent","onEvent","columnEvent","scrollEvent","extractDataFromEvent","getMasterColumns","getColumnIds","processColumnEvent","processGroupOpenedEvent","groupOpenedEvent","masterGroup","otherColumnGroup","masterColumn","masterColumns","srcColState","destColState","resizedEvent","AlignedGridsModule","ClientSideNodeManager","allNodesMap","initRootNode","setNewRowData","dispatchRowDataUpdateStarted","writeIdx","nestedDataGetter","getNestedDataGetter","processedNested","processChildren","childrenData","createRowNode","setImmutableRowData","processedNodes","nodesToUnselect","reorder","prevIndex","treeUpdated","updateNode","deleteUnusedNodes","updateRootLeafsKeepOrder","updateRootLeafsOrdered","deleteNode","rowDataTran","executeRemove","executeUpdate","executeAdd","allLeafsLen","removeLen","removeCount","filterIdx","filterEndIdx","nodesNeverAdded","removedResult","lookupNode","filterRemovedRowNodes","updateLen","updateResult","_a2","addLength","newLen","sanitizeAddIndex","addedNodes","lookupNodeByData","adjustAddIndexForDataPath","updateRowNodeAfterSort","lastIdx","childIndex","SortStage","useDeltaSort","groupColumnsPresent","groupCols","postSortFunc","hasAnyFirstChildChanged","sortContainsGroupColumns","skipSortingPivotLeafs","skipSortingGroups","shouldSortContainsGroupCols","newChildrenAfterSort","wasSortExplicitlyRemoved","nextGroupIndex","preserveGroupOrder","doDeltaSort","sortOptionsLen","unsortedRows","oldSortedRows","untouchedRows","touchedRows","sortedUntouchedRows","mergeSortedArrays","arr1","arr2","arr1Length","arr2Length","childrenAfterSortLen","childrenAfterAggFilterLen","newNode","nodeManager","rowsToDisplay","rowDataUpdatedPending","asyncTransactions","asyncTransactionsTimer","refreshingModel","rowNodesCountReady","stages","stagesRefreshProps","onRowHeightChanged_debounced","refreshEverythingFunc","refreshEverythingAfterColsChangedFunc","afterColumnsChanged","onGridReady","onRowGroupOpened","addPropertyListeners","orderedStages","filterStage","pivotStage","aggStage","sortStage","filterAggStage","flattenStage","stage","onPropChange","setInitialData","startPixel","endPixel","startLimitIndex","endLimitIndex","atLeastOneChange","rowAtStartPixel","rowAtEndPixel","changedProps","extractData","newRowData","immutable","getRefreshedStage","stagesLen","outputDisplayedRowsMapped","displayedRowsMapped","changedPathActive","clearIfNotDisplayed","recurse","isRootNode","skipChildren","getTopLevelRowCount","showingRootNode","totalFooterInc","getTopLevelRowDisplayedIndex","topLevelIndex","getDefaultIndex","adjustedIndex","footerSvc","getTopDisplayIndex","getTopLevelIndexFromDisplayedIndex","displayedIndex","primaryOrQuickFilterChanged","createChangePath","isSuppressModelUpdateAfterUpdateTransaction","doGrouping","doFilter","doPivot","doFilterAggregates","doSort","doRowsToDisplay","displayedNodesMapped","firstInRange","lastInRange","groupsSelectChildren","addAllLeafs","includeThisNode","pixelToMatch","rowsToDisplayLen","bottomPointer","topPointer","lastNode","oldBottomPointer","oldTopPointer","midPointer","isRowInPixel","caughtInInfiniteLoop","includeFooterNodes","depthFirstSearchRowNodes","forEachDisplayedNode","forEachPivotNode","afterSort","childrenField","addTotalRows","groupingChanged","idIsGroup","getNode","batchUpdateRowData","rowDataTransaction","waitMilliseconds","executeBatchUpdateRowData","rowNodeTrans","callbackFuncsBound","rowNodeTransaction","commitTransactions","resetRowHeightsForAllRowNodes","onRowHeightChangedDebounced","ClientSideRowModelModule","ClientSideRowModelApiModule","GridSerializer","gridSerializingSession","columnKeys","skipRowGroups","exportRowNumbers","columnsToExport","getColumnsToExport","prepareSession","prependContent","exportColumnGroups","exportHeaders","processPinnedTopRows","processRows","processPinnedBottomRows","appendContent","composed","parse","processRow","rowSkipper","shouldRowBeSkipped","isClipboardExport","rowPositions","isExplicitExportSelection","onlySelected","hideOpenParents","isLeafNode","isFooter","shouldSkipCurrentGroup","skipPinnedTop","skipPinnedBottom","nodeIsRootNode","rowAccumulator","onNewBodyRow","onColumn","getCustomContentBelowRow","addCustomContent","skipColumnGroupHeaders","recursivelyAddHeaderGroups","skipColumnHeaders","gridRowIterator","onNewHeaderRow","usingCsrm","usingSsrm","onlySelectedNonStandardModel","exportedRows","onlySelectedAllPages","replicateSortedOrder","compareNodes","filterSpecialColumns","directChildrenHeaderGroups","columnGroupChild","it","doAddHeaderHeader","onNewHeaderGroupingRow","columnIndex","columnsToCalculateRange","collapsibleGroupRanges","collapsibleGroups","lastGroup","groupShow","SharedExportModule","LINE_SEPARATOR","CsvSerializingSession","isFirstLine","suppressQuotes","columnSeparator","beginNewLine","putInQuotes","mergeAcross","appendEmptyCells","onNewHeaderGroupingRowColumn","header","span","onNewHeaderRowColumn","onNewBodyRowColumn","rowCellValue","stringValue","valueEscaped","CsvCreator","getMergedParams","baseParams5","isExportSuppressed","packagedFile","Blob","export","skipDefaultParams","csvCreator","CsvExportModule","InfiniteBlock","parentCache","blockSize","loadFromDatasource","setStateWaitingToLoad","pageLoadFailed","requestMostRecentAndLive","isRequestMostRecentAndLive","pageLoaded","successCommon","thisIsMostRecentRequest","weAreNotDestroyed","processServerResult","getBlockStateJson","pageStatus","blockNumber","createLoadParams","getRows","successCallback","failCallback","dontTouchLastAccessed","lastAccessed","lastAccessedSequence","localIndex","finalRowCount","MAX_EMPTY_BLOCKS_TO_KEEP","InfiniteCache","lastRowIndexKnown","blocks","blockCount","initialRowCount","dontCreatePage","blockId","createBlock","newBlock","purgeBlocksIfNeeded","addBlock","refreshCache","nothingToRefresh","purgeCache","getBlocksInOrder","checkBlockToLoad","destroyBlock","checkRowCount","onCacheUpdated","blockToExclude","blocksForPurging","lastAccessedComparator","maxBlocksProvided","blocksToKeep","emptyBlocksToKeep","purgeBecauseBlockEmpty","purgeBecauseCacheFull","isBlockCurrentlyDisplayed","isBlockFocused","removeBlockFromCache","blockToRemove","overflowSize","lastRowIndexPlusOverflow","forEachNodeDeep","blockComparator","removeBlock","destroyAllBlocksPastVirtualRowCount","blocksToDestroy","getRowNodesInRange","lastBlockId","inActiveRange","numberSequence","foundGapInSelection","hitFirstOrLast","invalidRange","destroyCache","setDatasource","destroyDatasource","onColumnEverything","storeUpdated","dispatchModelUpdatedEvent","cacheParams","updateRowHeights","resetRequired","infiniteCache","userGeneratingIds","pixel","rowIndexForPixel","RowNodeBlockLoader","activeBlockLoadsCount","maxConcurrentRequests","checkBlockToLoadDebounce","performCheckBlocksToLoad","loadComplete","printCacheStatus","loadAvailability","blocksToLoad","InfiniteRowModelCoreModule","InfiniteRowModelModule","ARROW_UP","ARROW_DOWN","AnimateShowChangeCellRendererElement","AnimateShowChangeCellRenderer","eDelta","refreshCount","showDelta","absDelta","valueToUse","deltaUp","setTimerToRemoveDelta","refreshCountCopy","hideDeltaValue","isInitialRender","lastValue","numericValue","numericLastValue","animateSlideCellRendererCSS","AnimateSlideCellRendererElement","AnimateSlideCellRenderer","eCurrent","addSlideAnimation","ePrevious","prevElement","CellFlashService","nextAnimationTime","nextAnimationCycle","animations","animateCell","flashDuration","fadeDuration","time","flashEndTime","fadeEndTime","animState","phase","cssBase","cssAnimation","advanceAnimations","nextActionableTime","requiresAction","transition","transitionDelay","shouldFlash","delays","HighlightChangesModule","propertiesToIgnore","migrateGridStateModel","migrateV32_1","jsonGet","json","StateService","updateRowGroupExpansionStateTimer","suppressEvents","queuedUpdateSources","dispatchStateUpdateEventDebounced","dispatchQueuedStateUpdateEvents","onRowGroupOpenedDebounced","updateCachedState","getRowGroupExpansionState","onRowSelectedDebounced","staleStateKeys","getRowSelectionState","isClientSideRowModel","partialColumnState","cachedState","suppressEventsAndDispatchInitEvent","setupStateOnGridReady","newColumnsLoadedDestroyFunc","rowCountReadyDestroyFunc","firstDataRenderedDestroyFunc","setupStateOnColumnsInitialised","setupStateOnRowCountReady","setupStateOnFirstDataRendered","refreshStaleState","providedState","startSuppressEvents","ignoreSet","setGridReadyState","setColumnsInitialisedState","setRowCountState","setFirstDataRenderedState","stopSuppressEvents","getSideBarState","stateUpdater","toolPanelVisibleChanged","sideBarUpdated","updateColumnAndGroupState","updateColumnState","setColumnState","onUpdate","filterState","rowGroupExpansion","rowGroupExpansionState","ssrmRowGroupExpansion","rowSelectionState","paginationState","shouldSetState","propState","setRowGroupExpansionState","setRowSelectionState","setPaginationState","getPaginationState","updateRowGroupExpansionState","updateFilterState","expandOrCollapseAll","scrollState","cellSelectionState","focusedCellState","columnOrderState","rowPinning","setFocusedCellState","setCellSelectionState","setScrollState","setRowPinningState","setColumnPivotState","getFocusedCellState","getRangeSelectionState","getScrollState","updateFocusState","cellSelectionChanged","getRowPinningState","sortState","aggregationState","pivotState","columnPinningState","columnVisibilityState","columnSizingState","forceSetState","shouldSet","columnStateMap","getColumnState2","shouldSetSortState","shouldSetGroupState","shouldSetAggregationState","shouldSetPivotState","shouldSetColumnPinningState","shouldSetColumnVisibilityState","shouldSetColumnSizingState","columnGroupStates","isPivotResultColsPresent","secondaryColumnStates","hasOwnProperty","existingColumnGroupState","columnFilterState","advancedFilterModel","cellRanges","cellRange","startColId","columnSet","setCellRanges","page","getPageSize","isInit","setPageSize","setPage","goToPage","selectionState","noSelections","selectAllChildren","toggledNodes","getExpansionState","ssrmRowGroupExpansionState","newExpansionState","expandedRowGroupIds","collapsedRowGroupIds","setExpansionState","features","newColumnState","dispatchStateUpdateEvent","existingValue","setCachedStateValue","sources","updateFunc","GridStateModule","getTotalPages","getMasterRowCount","goToNextPage","goToPreviousPage","goToFirstPage","goToLastPage","PaginationAutoPageSizeService","checkPageSize","onPaginationAutoSizeChanged","notActive","unsetAutoCalculatedPageSize","isBodyRendered","PageSizeSelectorCompElement","PageSizeSelectorComp","hasEmptyOption","handlePageSizeItemSelected","selectPageSizeComp","toggleSelectDisplay","onPageSizeSelectorValuesChange","handlePaginationChanged","paginationChangedEvent","getPageSizeSelectorValues","reloadPageSizesSelector","shouldShowPageSizeSelector","shouldAddAndSelectEmptyOption","createPageSizeSelectOptions","createPageSizeSelectorComp","localisedLabel","localisedAriaLabel","defaultValues","paginationPageSizeSelectorValues","PageSizeSelectorSelector","paginationCompCSS","PaginationComp","btFirst","btPrevious","btNext","btLast","lbRecordCount","lbFirstRowOnPage","lbLastRowOnPage","lbCurrent","lbTotal","pageSizeComp","previousAndFirstButtonsDisabled","nextButtonDisabled","lastButtonDisabled","areListenersSetup","allowFocusInnerElement","onPageSizeRelatedOptionsChange","isPaging","paginationPanelEnabled","enableOrDisableButtons","updateLabels","onBtFirst","onBtPrevious","onBtNext","onBtLast","formatNumber","totalPages","toggleButtonDisabled","zeroPagesToDisplay","isZeroPagesToDisplay","onLastPage","lastPageFound","masterRowCount","theoreticalEndRow","isLoadingPageSize","pagesExist","toDisplay","moreText","announceAriaStatus","strPage","strTo","strOf","ariaRowStatus","ariaPageStatus","PaginationSelector","PaginationService","pageSizeFromGridOptions","isPaginateChildRows","onPaginationGridOptionChanged","onPageSizeGridOptionChanged","shouldPaginate","dispatchPaginationChangedEvent","goToPageWithIndex","lastPage","pageSizeAutoCalculated","pageSizeFromPageSizeSelector","pageSizeFromInitialState","defaultPageSize","calculatePagesAllRows","calculatePagesMasterRowsOnly","calculatedPagesNotActive","oldPageSize","currentSize","setZeroRows","adjustCurrentPageIfInvalid","masterLastRowIndex","masterPageStartIndex","masterPageEndIndex","firstIndexNotToShow","maxRowIndex","PaginationModule","expandParents","RowApiModule","ScrollApiModule","eGrid","ariaProperty","cellRenderers","fullWidthRenderers","rowIdMap","renderers","renderer","RenderApiModule","paramsOrGridWidth","sizeColumnsToFitGridBody","keysOrParams","autoSizeCols","paramsOrSkipHeader","ColumnAutosizeService","timesDelayed","resizeOperationQueue","shouldHideColumns","onFirstDataRendered","innerAutoSizeCols","columnsAutoSized","scaleUpToFitGridWidth","availableGridWidth","getAvailableWidth","isLeftCol","isRightCol","defaultMaxWidth","defaultMinWidth","columnLimits","onlyScaleUp","reject","pushResizeOperation","skipHeaderGroups","stopAtGroup","changesThisTimeAround","columnLimitsIndex","dimensions","shouldSkipHeader","shouldSkipHeaderGroups","preferredWidth","columnLimit","normaliseColumnWidth","autoSizeColumnGroupsByColumns","autoSizeColumn","headerGroupCtrl","headerContainerCtrl","autoSizeColListener","nextTimeout","gridWidth","limitsMap","currentTotalColumnWidth","doColumnsAlreadyFit","doAllColumnsSatisfyConstraints","widthOverride","colsToSpread","colsToNotSpread","isIncluded","colsToDispatchEventFor","finishedResizing","moveToNotSpread","minOverride","maxOverride","availablePixels","pixelsForLastCol","colMinWidth","colMaxWidth","propColumnLimits","resizeOperation","limits","removeScrollWidth","scrollWidthToRemove","bodyViewportWidth","ColumnAutoSizeModule","manualPinnedRowCSS","PinnedRowModule","CellSpan","addSpannedNode","getLastNode","getLastNodeAutoHeight","__autoHeights","allButLastHeights","RowSpanCache","buildCache","oldMap","getNodeMap","newMap","equalsFnc","customCompare","isCustomCompare","spanData","setNewHead","checkNodeForCache","doesNodeSupportSpanning","oldSpan","isNodeInPage","centerValueNodeMap","topValueNodeMap","bottomValueNodeMap","RowSpanService","spanningColumns","debouncePinnedEvent","dispatchCellsUpdatedEvent","debounceModelEvent","pinnedTimeout","modelTimeout","onRowDataUpdated","buildPinnedCaches","buildModelCaches","createCtrls","getCellSpanByPosition","forEachSpannedColumn","spanningNode","SpannedCellCtrl","SPANNED_CELL_CSS_CLASS","setAriaRowSpan","SpannedRowCtrl","_rowContainerType","firstRowOfSpan","SpannedRowRenderer","topCtrls","bottomCtrls","centerCtrls","createAllCtrls","ctrlsKey","previousCtrls","getCtrlsMap","previousCtrlsSize","getAllRelevantRowControls","newRowCtrls","hasNewSpans","existingCtrl","newCtrl","setCtrlsMap","sameCount","CellSpanModule","CellCustomStyleFeature","staticClasses","cellClassParams","getCellClassParams","newStaticClasses","getStaticCellClasses","CellStyleService","processAllCellClasses","processStaticCellClasses","classOrClasses","cellClassFunc","cssClassItem","CellStyleModule","RowStyleModule","HoverFeature","destroyManagedListeners","enableFeature","mouseover","mouseout","CSS_COLUMN_HOVER","ColumnHoverService","selectedColumns","ColumnHoverModule","ApiEventService","syncListeners","asyncListeners","syncGlobalListeners","globalListenerPairs","wrapSvc","createGlobalEventListenerWrapper","hasAsync","wrapGlobal","syncListener","asyncListener","unwrapGlobal","destroyEventListeners","destroyGlobalListeners","apiEventSvc","EventApiModule","LocaleModule","RowAutoHeightService","wasEverActive","_debouncedCalculateRowHeights","calculateRowHeights","displayedAutoHeightCols","anyNodeChanged","updateDisplayedRowHeights","autoHeights","cellHeight","colSpanSkipCell","setRowAutoHeight","previousCellHeight","activeColsForRow","eParentCell","destroyResizeObserver","renderedAutoHeightCols","renderedCols","RowAutoHeightModule","AllCommunityModule","formatTestId","agTestIdFor","grid","headerGroupCell","headerCell","headerFilterButton","floatingFilterButton","headerCellMenuButton","headerResizeHandle","filterInstancePickerDisplay","spec","colLabel","numberFilterInstanceInput","textFilterInstanceInput","dateFilterInstanceInput","setFilterInstanceMiniFilterInput","setFilterInstanceItem","itemLabel","setFilterApplyPanelButton","buttonLabel","filterConditionRadioButton","advancedFilterInput","advancedFilterButton","advancedFilterBuilderButton","advancedFilterPanelMaximiseButton","advancedFilterPanelCloseButton","advancedFilterPill","advancedFilterBuilderAddItemButton","autoGroupCell","selectionColumnCheckbox","autoGroupColumnCheckbox","dragHandle","autoGroupContracted","autoGroupExpanded","rowNumber","menuOption","sideBarButton","columnToolPanel","pivotModeSelect","columnPanelSelectHeaderCheckbox","columnPanelSelectHeaderFilter","columnSelectListItemGroupClosedIcon","columnSelectListItemCheckbox","columnSelectListItemDragHandle","columnDropCellDragHandle","area","columnDropCellCancelButton","columnDropArea","filterToolPanel","filterToolPanelAddFilterButton","filterToolPanelFilterTypeSelector","filterToolPanelSearchInput","filterToolPanelGroup","title","filterToolPanelGroupCollapsedIcon","statusBarTotalAndFilteredRowCount","statusBarTotalRowCount","statusBarFilteredRowCount","statusBarSelectedRowCount","statusBarAggregations","paginationPanelSizePickerDisplay","paginationPanelFirstRowOnPage","paginationPanelLastRowOnPage","paginationPanelRecordCount","paginationSummaryPanelButton","paginationSummaryPanelCurrentPage","paginationSummaryPanelTotalPage","columnChooserCloseButton","columnChooserSearchBarCheckbox","columnChooserSearchBarFilter","columnChooserListItemGroupClosedIcon","columnChooserListItemCheckbox","columnChooserListItemDragHandle","overlay","wrapAgTestIdFor","locators","TEST_ID_ATTR","setTestId","testId","setTestIdAttribute","TestIdService","delayedDebounce","setupAllTestIds","setup","columnMenuVisibleChanged","contextMenuVisibleChanged","advancedFilterBuilderVisibleChanged","fieldPickerValueSelected","rowGroupOpened","filterOpened","gridWrapper","groupCell","isFloatingFilter","headerCellId","setupFilterInstance","filterMenu","pill","setupColumnDropArea","filterCard","typeSelector","filterRoot","pagingPanel","panelNumber","dataRef","pagingButton","pagingNumber","rowGroupPanelWrapper","fieldDisplay","numberInput","textInput","dateInput","setMiniFilterInput","radioButton","columnDrop","dropAreaName","columnDropCell","TestingModule","setupAgTestIds","testIdAttribute"],"sources":["../../node_modules/.pnpm/ag-grid-community@34.3.1/node_modules/ag-grid-community/dist/package/main.esm.mjs"],"sourcesContent":["// packages/ag-grid-community/src/agStack/events/localEventService.ts\nvar LocalEventService = class {\n constructor() {\n this.allSyncListeners = /* @__PURE__ */ new Map();\n this.allAsyncListeners = /* @__PURE__ */ new Map();\n this.globalSyncListeners = /* @__PURE__ */ new Set();\n this.globalAsyncListeners = /* @__PURE__ */ new Set();\n this.asyncFunctionsQueue = [];\n this.scheduled = false;\n // using an object performs better than a Set for the number of different events we have\n this.firedEvents = {};\n }\n setFrameworkOverrides(frameworkOverrides) {\n this.frameworkOverrides = frameworkOverrides;\n }\n getListeners(eventType, async, autoCreateListenerCollection) {\n const listenerMap = async ? this.allAsyncListeners : this.allSyncListeners;\n let listeners = listenerMap.get(eventType);\n if (!listeners && autoCreateListenerCollection) {\n listeners = /* @__PURE__ */ new Set();\n listenerMap.set(eventType, listeners);\n }\n return listeners;\n }\n noRegisteredListenersExist() {\n return this.allSyncListeners.size === 0 && this.allAsyncListeners.size === 0 && this.globalSyncListeners.size === 0 && this.globalAsyncListeners.size === 0;\n }\n addEventListener(eventType, listener, async = false) {\n this.getListeners(eventType, async, true).add(listener);\n }\n removeEventListener(eventType, listener, async = false) {\n const listeners = this.getListeners(eventType, async, false);\n if (!listeners) {\n return;\n }\n listeners.delete(listener);\n if (listeners.size === 0) {\n (async ? this.allAsyncListeners : this.allSyncListeners).delete(eventType);\n }\n }\n addGlobalListener(listener, async = false) {\n this.getGlobalListeners(async).add(listener);\n }\n removeGlobalListener(listener, async = false) {\n this.getGlobalListeners(async).delete(listener);\n }\n dispatchEvent(event) {\n this.dispatchToListeners(event, true);\n this.dispatchToListeners(event, false);\n this.firedEvents[event.type] = true;\n }\n dispatchEventOnce(event) {\n if (!this.firedEvents[event.type]) {\n this.dispatchEvent(event);\n }\n }\n dispatchToListeners(event, async) {\n const eventType = event.type;\n if (async && \"event\" in event) {\n const browserEvent = event.event;\n if (browserEvent instanceof Event) {\n event.eventPath = browserEvent.composedPath();\n }\n }\n const { frameworkOverrides } = this;\n const runCallback = (func) => {\n const callback = frameworkOverrides ? () => frameworkOverrides.wrapIncoming(func) : func;\n if (async) {\n this.dispatchAsync(callback);\n } else {\n callback();\n }\n };\n const originalListeners = this.getListeners(eventType, async, false);\n if ((originalListeners?.size ?? 0) > 0) {\n const listeners = new Set(originalListeners);\n for (const listener of listeners) {\n if (!originalListeners?.has(listener)) {\n continue;\n }\n runCallback(() => listener(event));\n }\n }\n const globalListenersSrc = this.getGlobalListeners(async);\n if (globalListenersSrc.size > 0) {\n const globalListeners = new Set(globalListenersSrc);\n for (const listener of globalListeners) {\n runCallback(() => listener(eventType, event));\n }\n }\n }\n getGlobalListeners(async) {\n return async ? this.globalAsyncListeners : this.globalSyncListeners;\n }\n // this gets called inside the grid's thread, for each event that it\n // wants to set async. the grid then batches the events into one setTimeout()\n // because setTimeout() is an expensive operation. ideally we would have\n // each event in it's own setTimeout(), but we batch for performance.\n dispatchAsync(func) {\n this.asyncFunctionsQueue.push(func);\n if (!this.scheduled) {\n const flush = () => {\n window.setTimeout(this.flushAsyncQueue.bind(this), 0);\n };\n this.frameworkOverrides ? this.frameworkOverrides.wrapIncoming(flush) : flush();\n this.scheduled = true;\n }\n }\n // this happens in the next VM turn only, and empties the queue of events\n flushAsyncQueue() {\n this.scheduled = false;\n const queueCopy = this.asyncFunctionsQueue.slice();\n this.asyncFunctionsQueue = [];\n for (const func of queueCopy) {\n func();\n }\n }\n};\n\n// packages/ag-grid-community/src/agStack/utils/generic.ts\nfunction _makeNull(value) {\n if (value == null || value === \"\") {\n return null;\n }\n return value;\n}\nfunction _exists(value) {\n return value != null && value !== \"\";\n}\nfunction _missing(value) {\n return !_exists(value);\n}\nfunction _toStringOrNull(value) {\n return value != null && typeof value.toString === \"function\" ? value.toString() : null;\n}\nfunction _jsonEquals(val1, val2) {\n const val1Json = val1 ? JSON.stringify(val1) : null;\n const val2Json = val2 ? JSON.stringify(val2) : null;\n return val1Json === val2Json;\n}\nfunction _defaultComparator(valueA, valueB, accentedCompare = false) {\n const valueAMissing = valueA == null;\n const valueBMissing = valueB == null;\n if (valueA?.toNumber) {\n valueA = valueA.toNumber();\n }\n if (valueB?.toNumber) {\n valueB = valueB.toNumber();\n }\n if (valueAMissing && valueBMissing) {\n return 0;\n }\n if (valueAMissing) {\n return -1;\n }\n if (valueBMissing) {\n return 1;\n }\n function doQuickCompare(a, b) {\n return a > b ? 1 : a < b ? -1 : 0;\n }\n if (typeof valueA !== \"string\") {\n return doQuickCompare(valueA, valueB);\n }\n if (!accentedCompare) {\n return doQuickCompare(valueA, valueB);\n }\n try {\n return valueA.localeCompare(valueB);\n } catch (e) {\n return doQuickCompare(valueA, valueB);\n }\n}\n\n// packages/ag-grid-community/src/agStack/utils/string.ts\nvar reUnescapedHtml = /[&<>\"']/g;\nvar HTML_ESCAPES = {\n \"&\": \"&\",\n \"<\": \"<\",\n \">\": \">\",\n '\"': \""\",\n \"'\": \"'\"\n};\nfunction _toString(toEscape) {\n return toEscape?.toString().toString() ?? null;\n}\nfunction _escapeString(toEscape) {\n return _toString(toEscape)?.replace(reUnescapedHtml, (chr) => HTML_ESCAPES[chr]) ?? null;\n}\n\n// packages/ag-grid-community/src/agStack/utils/document.ts\nfunction _getRootNode(beans) {\n return beans.eRootDiv.getRootNode();\n}\nfunction _getActiveDomElement(beans) {\n return _getRootNode(beans).activeElement;\n}\nfunction _getDocument(beans) {\n const { gos, eRootDiv } = beans;\n let result = null;\n const optionsGetDocument = gos.get(\"getDocument\");\n if (optionsGetDocument && _exists(optionsGetDocument)) {\n result = optionsGetDocument();\n } else if (eRootDiv) {\n result = eRootDiv.ownerDocument;\n }\n if (result && _exists(result)) {\n return result;\n }\n return document;\n}\nfunction _isNothingFocused(beans) {\n const activeEl = _getActiveDomElement(beans);\n return activeEl === null || activeEl === _getDocument(beans).body;\n}\nfunction _getWindow(beans) {\n const eDocument = _getDocument(beans);\n return eDocument.defaultView || window;\n}\nfunction _getPageBody(beans) {\n let rootNode = null;\n let targetEl = null;\n try {\n rootNode = _getDocument(beans).fullscreenElement;\n } catch (e) {\n } finally {\n if (!rootNode) {\n rootNode = _getRootNode(beans);\n }\n const body = rootNode.querySelector(\"body\");\n if (body) {\n targetEl = body;\n } else if (rootNode instanceof ShadowRoot) {\n targetEl = rootNode;\n } else if (rootNode instanceof Document) {\n targetEl = rootNode?.documentElement;\n } else {\n targetEl = rootNode;\n }\n }\n return targetEl;\n}\nfunction _getBodyWidth(beans) {\n const body = _getPageBody(beans);\n return body?.clientWidth ?? (window.innerWidth || -1);\n}\nfunction _getBodyHeight(beans) {\n const body = _getPageBody(beans);\n return body?.clientHeight ?? (window.innerHeight || -1);\n}\n\n// packages/ag-grid-community/src/agStack/utils/aria.ts\nfunction _toggleAriaAttribute(element, attribute, value) {\n if (value == null || typeof value === \"string\" && value == \"\") {\n _removeAriaAttribute(element, attribute);\n } else {\n _setAriaAttribute(element, attribute, value);\n }\n}\nfunction _setAriaAttribute(element, attribute, value) {\n element.setAttribute(_ariaAttributeName(attribute), value.toString());\n}\nfunction _removeAriaAttribute(element, attribute) {\n element.removeAttribute(_ariaAttributeName(attribute));\n}\nfunction _ariaAttributeName(attribute) {\n return `aria-${attribute}`;\n}\nfunction _setAriaRole(element, role) {\n if (role) {\n element.setAttribute(\"role\", role);\n } else {\n element.removeAttribute(\"role\");\n }\n}\nfunction _getAriaSortState(sortDirection) {\n let sort;\n if (sortDirection === \"asc\") {\n sort = \"ascending\";\n } else if (sortDirection === \"desc\") {\n sort = \"descending\";\n } else if (sortDirection === \"mixed\") {\n sort = \"other\";\n } else {\n sort = \"none\";\n }\n return sort;\n}\nfunction _getAriaPosInSet(element) {\n return Number.parseInt(element.getAttribute(\"aria-posinset\"), 10);\n}\nfunction _getAriaLabel(element) {\n return element.getAttribute(\"aria-label\");\n}\nfunction _setAriaLabel(element, label) {\n _toggleAriaAttribute(element, \"label\", label);\n}\nfunction _setAriaLabelledBy(element, labelledBy) {\n _toggleAriaAttribute(element, \"labelledby\", labelledBy);\n}\nfunction _setAriaDescribedBy(element, describedby) {\n _toggleAriaAttribute(element, \"describedby\", describedby);\n}\nfunction _setAriaLive(element, live) {\n _toggleAriaAttribute(element, \"live\", live);\n}\nfunction _setAriaAtomic(element, atomic) {\n _toggleAriaAttribute(element, \"atomic\", atomic);\n}\nfunction _setAriaRelevant(element, relevant) {\n _toggleAriaAttribute(element, \"relevant\", relevant);\n}\nfunction _setAriaInvalid(element, invalid) {\n _toggleAriaAttribute(element, \"invalid\", invalid);\n}\nfunction _setAriaLevel(element, level) {\n _toggleAriaAttribute(element, \"level\", level);\n}\nfunction _setAriaDisabled(element, disabled) {\n _toggleAriaAttribute(element, \"disabled\", disabled);\n}\nfunction _setAriaHidden(element, hidden) {\n _toggleAriaAttribute(element, \"hidden\", hidden);\n}\nfunction _setAriaActiveDescendant(element, descendantId) {\n _toggleAriaAttribute(element, \"activedescendant\", descendantId);\n}\nfunction _setAriaExpanded(element, expanded) {\n _setAriaAttribute(element, \"expanded\", expanded);\n}\nfunction _removeAriaExpanded(element) {\n _removeAriaAttribute(element, \"expanded\");\n}\nfunction _setAriaSetSize(element, setsize) {\n _setAriaAttribute(element, \"setsize\", setsize);\n}\nfunction _setAriaPosInSet(element, position) {\n _setAriaAttribute(element, \"posinset\", position);\n}\nfunction _setAriaMultiSelectable(element, multiSelectable) {\n _setAriaAttribute(element, \"multiselectable\", multiSelectable);\n}\nfunction _setAriaRowCount(element, rowCount) {\n _setAriaAttribute(element, \"rowcount\", rowCount);\n}\nfunction _setAriaRowIndex(element, rowIndex) {\n _setAriaAttribute(element, \"rowindex\", rowIndex);\n}\nfunction _setAriaRowSpan(element, spanCount) {\n _setAriaAttribute(element, \"rowspan\", spanCount);\n}\nfunction _setAriaColCount(element, colCount) {\n _setAriaAttribute(element, \"colcount\", colCount);\n}\nfunction _setAriaColIndex(element, colIndex) {\n _setAriaAttribute(element, \"colindex\", colIndex);\n}\nfunction _setAriaColSpan(element, colSpan) {\n _setAriaAttribute(element, \"colspan\", colSpan);\n}\nfunction _setAriaSort(element, sort) {\n _setAriaAttribute(element, \"sort\", sort);\n}\nfunction _removeAriaSort(element) {\n _removeAriaAttribute(element, \"sort\");\n}\nfunction _setAriaSelected(element, selected) {\n _toggleAriaAttribute(element, \"selected\", selected);\n}\nfunction _setAriaChecked(element, checked) {\n _setAriaAttribute(element, \"checked\", checked === void 0 ? \"mixed\" : checked);\n}\nfunction _setAriaControls(controllerElement, controlledId) {\n _toggleAriaAttribute(controllerElement, \"controls\", controlledId);\n}\nfunction _setAriaControlsAndLabel(controllerElement, controlledElement) {\n _setAriaControls(controllerElement, controlledElement.id);\n _setAriaLabelledBy(controlledElement, controllerElement.id);\n}\nfunction _setAriaOwns(ownerElement, ownedId) {\n _toggleAriaAttribute(ownerElement, \"owns\", ownedId);\n}\nfunction _setAriaHasPopup(element, hasPopup) {\n _toggleAriaAttribute(element, \"haspopup\", hasPopup === false ? null : hasPopup);\n}\nfunction _getAriaCheckboxStateName(translate, state) {\n return state === void 0 ? translate(\"ariaIndeterminate\", \"indeterminate\") : state === true ? translate(\"ariaChecked\", \"checked\") : translate(\"ariaUnchecked\", \"unchecked\");\n}\n\n// packages/ag-grid-community/src/agStack/utils/dom.ts\nfunction _radioCssClass(element, elementClass, otherElementClass) {\n const parent = element.parentElement;\n let sibling = parent && parent.firstChild;\n while (sibling) {\n if (elementClass) {\n sibling.classList.toggle(elementClass, sibling === element);\n }\n if (otherElementClass) {\n sibling.classList.toggle(otherElementClass, sibling !== element);\n }\n sibling = sibling.nextSibling;\n }\n}\nvar FOCUSABLE_SELECTOR = \"[tabindex], input, select, button, textarea, [href]\";\nvar FOCUSABLE_EXCLUDE = \"[disabled], .ag-disabled:not(.ag-button), .ag-disabled *\";\nfunction _isFocusableFormField(element) {\n if (!element) {\n return false;\n }\n const isFocusable = element.matches(\"input, select, button, textarea\");\n if (!isFocusable) {\n return false;\n }\n const isNotFocusable = element.matches(FOCUSABLE_EXCLUDE);\n if (!isNotFocusable) {\n return false;\n }\n return _isVisible(element);\n}\nfunction _setDisplayed(element, displayed, options = {}) {\n const { skipAriaHidden } = options;\n element.classList.toggle(\"ag-hidden\", !displayed);\n if (!skipAriaHidden) {\n _setAriaHidden(element, !displayed);\n }\n}\nfunction _setVisible(element, visible, options = {}) {\n const { skipAriaHidden } = options;\n element.classList.toggle(\"ag-invisible\", !visible);\n if (!skipAriaHidden) {\n _setAriaHidden(element, !visible);\n }\n}\nfunction _setDisabled(element, disabled) {\n const attributeName = \"disabled\";\n const addOrRemoveDisabledAttribute = disabled ? (e) => e.setAttribute(attributeName, \"\") : (e) => e.removeAttribute(attributeName);\n addOrRemoveDisabledAttribute(element);\n const inputs = element.querySelectorAll(\"input\") ?? [];\n for (const input of inputs) {\n addOrRemoveDisabledAttribute(input);\n }\n}\nfunction _isElementChildOfClass(element, cls, maxNest) {\n let counter = 0;\n while (element) {\n if (element.classList.contains(cls)) {\n return true;\n }\n element = element.parentElement;\n if (typeof maxNest == \"number\") {\n if (++counter > maxNest) {\n break;\n }\n } else if (element === maxNest) {\n break;\n }\n }\n return false;\n}\nfunction _getElementSize(el) {\n const {\n height,\n width,\n borderTopWidth,\n borderRightWidth,\n borderBottomWidth,\n borderLeftWidth,\n paddingTop,\n paddingRight,\n paddingBottom,\n paddingLeft,\n marginTop,\n marginRight,\n marginBottom,\n marginLeft,\n boxSizing\n } = window.getComputedStyle(el);\n const pf = Number.parseFloat;\n return {\n height: pf(height || \"0\"),\n width: pf(width || \"0\"),\n borderTopWidth: pf(borderTopWidth || \"0\"),\n borderRightWidth: pf(borderRightWidth || \"0\"),\n borderBottomWidth: pf(borderBottomWidth || \"0\"),\n borderLeftWidth: pf(borderLeftWidth || \"0\"),\n paddingTop: pf(paddingTop || \"0\"),\n paddingRight: pf(paddingRight || \"0\"),\n paddingBottom: pf(paddingBottom || \"0\"),\n paddingLeft: pf(paddingLeft || \"0\"),\n marginTop: pf(marginTop || \"0\"),\n marginRight: pf(marginRight || \"0\"),\n marginBottom: pf(marginBottom || \"0\"),\n marginLeft: pf(marginLeft || \"0\"),\n boxSizing\n };\n}\nfunction _getInnerHeight(el) {\n const size = _getElementSize(el);\n if (size.boxSizing === \"border-box\") {\n return size.height - size.paddingTop - size.paddingBottom - size.borderTopWidth - size.borderBottomWidth;\n }\n return size.height;\n}\nfunction _getInnerWidth(el) {\n const size = _getElementSize(el);\n if (size.boxSizing === \"border-box\") {\n return size.width - size.paddingLeft - size.paddingRight - size.borderLeftWidth - size.borderRightWidth;\n }\n return size.width;\n}\nfunction _getAbsoluteHeight(el) {\n const { height, marginBottom, marginTop } = _getElementSize(el);\n return Math.floor(height + marginBottom + marginTop);\n}\nfunction _getAbsoluteWidth(el) {\n const { width, marginLeft, marginRight } = _getElementSize(el);\n return Math.floor(width + marginLeft + marginRight);\n}\nfunction _getElementRectWithOffset(el) {\n const offsetElementRect = el.getBoundingClientRect();\n const { borderTopWidth, borderLeftWidth, borderRightWidth, borderBottomWidth } = _getElementSize(el);\n return {\n top: offsetElementRect.top + (borderTopWidth || 0),\n left: offsetElementRect.left + (borderLeftWidth || 0),\n right: offsetElementRect.right + (borderRightWidth || 0),\n bottom: offsetElementRect.bottom + (borderBottomWidth || 0)\n };\n}\nfunction _getScrollLeft(element, rtl) {\n let scrollLeft = element.scrollLeft;\n if (rtl) {\n scrollLeft = Math.abs(scrollLeft);\n }\n return scrollLeft;\n}\nfunction _setScrollLeft(element, value, rtl) {\n if (rtl) {\n value *= -1;\n }\n element.scrollLeft = value;\n}\nfunction _clearElement(el) {\n while (el?.firstChild) {\n el.firstChild.remove();\n }\n}\nfunction _removeFromParent(node) {\n if (node?.parentNode) {\n node.remove();\n }\n}\nfunction _isInDOM(element) {\n return !!element.offsetParent;\n}\nfunction _isVisible(element) {\n if (element.checkVisibility) {\n return element.checkVisibility({ checkVisibilityCSS: true });\n }\n const isHidden = !_isInDOM(element) || window.getComputedStyle(element).visibility !== \"visible\";\n return !isHidden;\n}\nfunction _loadTemplate(template) {\n const tempDiv = document.createElement(\"div\");\n tempDiv.innerHTML = (template || \"\").trim();\n return tempDiv.firstChild;\n}\nfunction _ensureDomOrder(eContainer, eChild, eChildBefore) {\n if (eChildBefore && eChildBefore.nextSibling === eChild) {\n return;\n }\n if (!eContainer.firstChild) {\n eContainer.appendChild(eChild);\n } else if (eChildBefore) {\n if (eChildBefore.nextSibling) {\n eContainer.insertBefore(eChild, eChildBefore.nextSibling);\n } else {\n eContainer.appendChild(eChild);\n }\n } else if (eContainer.firstChild && eContainer.firstChild !== eChild) {\n eContainer.insertAdjacentElement(\"afterbegin\", eChild);\n }\n}\nfunction _setDomChildOrder(eContainer, orderedChildren) {\n for (let i = 0; i < orderedChildren.length; i++) {\n const correctCellAtIndex = orderedChildren[i];\n const actualCellAtIndex = eContainer.children[i];\n if (actualCellAtIndex !== correctCellAtIndex) {\n eContainer.insertBefore(correctCellAtIndex, actualCellAtIndex);\n }\n }\n}\nfunction _camelCaseToHyphenated(camelCase) {\n return camelCase.replace(/[A-Z]/g, (s) => `-${s.toLocaleLowerCase()}`);\n}\nfunction _addStylesToElement(eElement, styles) {\n if (!styles) {\n return;\n }\n for (const key of Object.keys(styles)) {\n const value = styles[key];\n if (!key?.length || value == null) {\n continue;\n }\n const parsedKey = _camelCaseToHyphenated(key);\n const valueAsString = value.toString();\n const parsedValue = valueAsString.replace(/\\s*!important/g, \"\");\n const priority = parsedValue.length != valueAsString.length ? \"important\" : void 0;\n eElement.style.setProperty(parsedKey, parsedValue, priority);\n }\n}\nfunction _isElementOverflowingCallback(getElement2) {\n return () => {\n const element = getElement2();\n if (!element) {\n return true;\n }\n return _isHorizontalScrollShowing(element) || _isVerticalScrollShowing(element);\n };\n}\nfunction _isHorizontalScrollShowing(element) {\n return element.clientWidth < element.scrollWidth;\n}\nfunction _isVerticalScrollShowing(element) {\n return element.clientHeight < element.scrollHeight;\n}\nfunction _setElementWidth(element, width) {\n if (width === \"flex\") {\n element.style.removeProperty(\"width\");\n element.style.removeProperty(\"minWidth\");\n element.style.removeProperty(\"maxWidth\");\n element.style.flex = \"1 1 auto\";\n } else {\n _setFixedWidth(element, width);\n }\n}\nfunction _setFixedWidth(element, width) {\n width = _formatSize(width);\n element.style.width = width;\n element.style.maxWidth = width;\n element.style.minWidth = width;\n}\nfunction _setFixedHeight(element, height) {\n height = _formatSize(height);\n element.style.height = height;\n element.style.maxHeight = height;\n element.style.minHeight = height;\n}\nfunction _formatSize(size) {\n return typeof size === \"number\" ? `${size}px` : size;\n}\nfunction _isNodeOrElement(o) {\n return o instanceof Node || o instanceof HTMLElement;\n}\nfunction _addOrRemoveAttribute(element, name, value) {\n if (value == null || value === \"\") {\n element.removeAttribute(name);\n } else {\n element.setAttribute(name, value.toString());\n }\n}\nfunction _observeResize(beans, element, callback) {\n const win = _getWindow(beans);\n const ResizeObserverImpl = win.ResizeObserver;\n const resizeObserver = ResizeObserverImpl ? new ResizeObserverImpl(callback) : null;\n resizeObserver?.observe(element);\n return () => resizeObserver?.disconnect();\n}\nfunction _requestAnimationFrame(beans, callback) {\n const win = _getWindow(beans);\n if (win.requestAnimationFrame) {\n win.requestAnimationFrame(callback);\n } else if (win.webkitRequestAnimationFrame) {\n win.webkitRequestAnimationFrame(callback);\n } else {\n win.setTimeout(callback, 0);\n }\n}\nvar DataRefAttribute = \"data-ref\";\nvar whitespaceNode;\nfunction getWhitespaceNode() {\n whitespaceNode ?? (whitespaceNode = document.createTextNode(\" \"));\n return whitespaceNode.cloneNode();\n}\nfunction _createAgElement(params) {\n const { attrs, children, cls, ref, role, tag } = params;\n const element = document.createElement(tag);\n if (cls) {\n element.className = cls;\n }\n if (ref) {\n element.setAttribute(DataRefAttribute, ref);\n }\n if (role) {\n element.setAttribute(\"role\", role);\n }\n if (attrs) {\n for (const key of Object.keys(attrs)) {\n element.setAttribute(key, attrs[key]);\n }\n }\n if (children) {\n if (typeof children === \"string\") {\n element.textContent = children;\n } else {\n let addFirstWhitespace = true;\n for (const child of children) {\n if (child) {\n if (typeof child === \"string\") {\n element.appendChild(document.createTextNode(child));\n addFirstWhitespace = false;\n } else if (typeof child === \"function\") {\n element.appendChild(child());\n } else {\n if (addFirstWhitespace) {\n element.appendChild(getWhitespaceNode());\n addFirstWhitespace = false;\n }\n element.append(_createAgElement(child));\n element.appendChild(getWhitespaceNode());\n }\n }\n }\n }\n }\n return element;\n}\n\n// packages/ag-grid-community/src/agStack/utils/event.ts\nvar PASSIVE_EVENTS = [\"touchstart\", \"touchend\", \"touchmove\", \"touchcancel\", \"scroll\"];\nvar NON_PASSIVE_EVENTS = [\"wheel\"];\nvar supports = {};\nvar _isEventSupported = /* @__PURE__ */ (() => {\n const tags = {\n select: \"input\",\n change: \"input\",\n submit: \"form\",\n reset: \"form\",\n error: \"img\",\n load: \"img\",\n abort: \"img\"\n };\n const eventChecker = (eventName) => {\n if (typeof supports[eventName] === \"boolean\") {\n return supports[eventName];\n }\n const el = document.createElement(tags[eventName] || \"div\");\n eventName = \"on\" + eventName;\n return supports[eventName] = eventName in el;\n };\n return eventChecker;\n})();\nfunction _isElementInEventPath(element, event) {\n if (!event || !element) {\n return false;\n }\n return _getEventPath(event).indexOf(element) >= 0;\n}\nfunction _createEventPath(event) {\n const res = [];\n let pointer = event.target;\n while (pointer) {\n res.push(pointer);\n pointer = pointer.parentElement;\n }\n return res;\n}\nfunction _getEventPath(event) {\n const eventNoType = event;\n if (eventNoType.path) {\n return eventNoType.path;\n }\n if (eventNoType.composedPath) {\n return eventNoType.composedPath();\n }\n return _createEventPath(eventNoType);\n}\nfunction _addSafePassiveEventListener(eElement, event, listener) {\n const passive = getPassiveStateForEvent(event);\n let options;\n if (passive != null) {\n options = { passive };\n }\n eElement.addEventListener(event, listener, options);\n}\nvar getPassiveStateForEvent = (event) => {\n const isPassive = PASSIVE_EVENTS.includes(event);\n const isNonPassive = NON_PASSIVE_EVENTS.includes(event);\n if (isPassive) {\n return true;\n }\n if (isNonPassive) {\n return false;\n }\n};\nfunction _areEventsNear(e1, e2, pixelCount) {\n if (pixelCount === 0) {\n return false;\n }\n const diffX = Math.abs(e1.clientX - e2.clientX);\n const diffY = Math.abs(e1.clientY - e2.clientY);\n return Math.max(diffX, diffY) <= pixelCount;\n}\nvar _getFirstActiveTouch = (touch, touchList) => {\n const identifier = touch.identifier;\n for (let i = 0, len = touchList.length; i < len; ++i) {\n const item = touchList[i];\n if (item.identifier === identifier) {\n return item;\n }\n }\n return null;\n};\nfunction _isEventFromThisInstance(beans, event) {\n return beans.gos.isElementInThisInstance(event.target);\n}\nfunction _anchorElementToMouseMoveEvent(element, mouseMoveEvent, beans) {\n const eRect = element.getBoundingClientRect();\n const height = eRect.height;\n const browserWidth = _getBodyWidth(beans) - 2;\n const browserHeight = _getBodyHeight(beans) - 2;\n const offsetParent = element.offsetParent;\n if (!offsetParent) {\n return;\n }\n const offsetParentSize = _getElementRectWithOffset(element.offsetParent);\n const { clientY, clientX } = mouseMoveEvent;\n let top = clientY - offsetParentSize.top - height / 2;\n let left = clientX - offsetParentSize.left - 10;\n const eDocument = _getDocument(beans);\n const win = eDocument.defaultView || window;\n const windowScrollY = win.pageYOffset || eDocument.documentElement.scrollTop;\n const windowScrollX = win.pageXOffset || eDocument.documentElement.scrollLeft;\n if (browserWidth > 0 && left + element.clientWidth > browserWidth + windowScrollX) {\n left = browserWidth + windowScrollX - element.clientWidth;\n }\n if (left < 0) {\n left = 0;\n }\n if (browserHeight > 0 && top + element.clientHeight > browserHeight + windowScrollY) {\n top = browserHeight + windowScrollY - element.clientHeight;\n }\n if (top < 0) {\n top = 0;\n }\n element.style.left = `${left}px`;\n element.style.top = `${top}px`;\n}\nvar addTempEventHandlers = (list, ...handlers) => {\n for (const handler of handlers) {\n const [target, type, eventListener, options] = handler;\n target.addEventListener(type, eventListener, options);\n list.push(handler);\n }\n};\nvar clearTempEventHandlers = (list) => {\n if (list) {\n for (const [target, type, listener, options] of list) {\n target.removeEventListener(type, listener, options);\n }\n list.length = 0;\n }\n};\nvar preventEventDefault = (event) => {\n if (event.cancelable) {\n event.preventDefault();\n }\n};\n\n// packages/ag-grid-community/src/agStack/utils/locale.ts\nfunction defaultLocaleTextFunc(_key, defaultValue) {\n return defaultValue;\n}\nfunction _getLocaleTextFunc(localeSvc) {\n return localeSvc?.getLocaleTextFunc() ?? defaultLocaleTextFunc;\n}\nfunction _translate(bean, localeValues, key, variableValues) {\n const defaultValue = localeValues[key];\n return bean.getLocaleTextFunc()(\n key,\n typeof defaultValue === \"function\" ? defaultValue(variableValues) : defaultValue,\n variableValues\n );\n}\nfunction _getLocaleTextFromFunc(getLocaleText) {\n return (key, defaultValue, variableValues) => {\n return getLocaleText({\n key,\n defaultValue,\n variableValues\n });\n };\n}\nfunction _getLocaleTextFromMap(localeText) {\n return (key, defaultValue, variableValues) => {\n let localisedText = localeText?.[key];\n if (localisedText && variableValues?.length) {\n let found = 0;\n while (true) {\n if (found >= variableValues.length) {\n break;\n }\n const idx = localisedText.indexOf(\"${variable}\");\n if (idx === -1) {\n break;\n }\n localisedText = localisedText.replace(\"${variable}\", variableValues[found++]);\n }\n }\n return localisedText ?? defaultValue;\n };\n}\n\n// packages/ag-grid-community/src/agStack/core/agBeanStub.ts\nvar AgBeanStub = class {\n constructor() {\n // not named context to allow children to use 'context' as a variable name\n this.destroyFunctions = [];\n this.destroyed = false;\n // for vue 3 - prevents Vue from trying to make this (and obviously any sub classes) from being reactive\n // prevents vue from creating proxies for created objects and prevents identity related issues\n this.__v_skip = true;\n this.propertyListenerId = 0;\n // Enable multiple grid properties to be updated together by the user but only trigger shared logic once.\n // Closely related to logic in GridOptionsUtils.ts _processOnChange\n this.lastChangeSetIdLookup = {};\n this.isAlive = () => !this.destroyed;\n }\n preWireBeans(beans) {\n this.beans = beans;\n this.stubContext = beans.context;\n this.eventSvc = beans.eventSvc;\n this.gos = beans.gos;\n }\n // this was a test constructor niall built, when active, it prints after 5 seconds all beans/components that are\n // not destroyed. to use, create a new grid, then api.destroy() before 5 seconds. then anything that gets printed\n // points to a bean or component that was not properly disposed of.\n // constructor() {\n // setTimeout(()=> {\n // if (this.isAlive()) {\n // let prototype: any = Object.getPrototypeOf(this);\n // const constructor: any = prototype.constructor;\n // const constructorString = constructor.toString();\n // const beanName = constructorString.substring(9, constructorString.indexOf(\"(\"));\n // console.log('is alive ' + beanName);\n // }\n // }, 5000);\n // }\n destroy() {\n const { destroyFunctions } = this;\n for (let i = 0; i < destroyFunctions.length; i++) {\n destroyFunctions[i]();\n }\n destroyFunctions.length = 0;\n this.destroyed = true;\n this.dispatchLocalEvent({ type: \"destroyed\" });\n }\n /** Add a local event listener against this BeanStub */\n addEventListener(eventType, listener, async) {\n if (!this.localEventService) {\n this.localEventService = new LocalEventService();\n }\n this.localEventService.addEventListener(eventType, listener, async);\n }\n /** Remove a local event listener from this BeanStub */\n removeEventListener(eventType, listener, async) {\n this.localEventService?.removeEventListener(eventType, listener, async);\n }\n dispatchLocalEvent(event) {\n this.localEventService?.dispatchEvent(event);\n }\n addManagedElementListeners(object, handlers) {\n return this._setupListeners(object, handlers);\n }\n addManagedEventListeners(handlers) {\n return this._setupListeners(this.eventSvc, handlers);\n }\n addManagedListeners(object, handlers) {\n return this._setupListeners(object, handlers);\n }\n _setupListeners(object, handlers) {\n const destroyFuncs = [];\n for (const k of Object.keys(handlers)) {\n const handler = handlers[k];\n if (handler) {\n destroyFuncs.push(this._setupListener(object, k, handler));\n }\n }\n return destroyFuncs;\n }\n _setupListener(object, event, listener) {\n if (this.destroyed) {\n return () => null;\n }\n let destroyFunc;\n if (isAgEventEmitter(object)) {\n object.__addEventListener(event, listener);\n destroyFunc = () => {\n object.__removeEventListener(event, listener);\n return null;\n };\n } else {\n const objIsEventService = isEventService(object);\n if (object instanceof HTMLElement) {\n _addSafePassiveEventListener(object, event, listener);\n } else if (objIsEventService) {\n object.addListener(event, listener);\n } else {\n object.addEventListener(event, listener);\n }\n destroyFunc = objIsEventService ? () => {\n object.removeListener(event, listener);\n return null;\n } : () => {\n object.removeEventListener(event, listener);\n return null;\n };\n }\n this.destroyFunctions.push(destroyFunc);\n return () => {\n destroyFunc();\n this.destroyFunctions = this.destroyFunctions.filter((fn) => fn !== destroyFunc);\n return null;\n };\n }\n /**\n * Setup a managed property listener for the given property.\n * However, stores the destroy function in the beanStub so that if this bean\n * is a component the destroy function will be called when the component is destroyed\n * as opposed to being cleaned up only when the properties service is destroyed.\n */\n setupPropertyListener(event, listener) {\n const { gos } = this;\n gos.addPropertyEventListener(event, listener);\n const destroyFunc = () => {\n gos.removePropertyEventListener(event, listener);\n return null;\n };\n this.destroyFunctions.push(destroyFunc);\n return () => {\n destroyFunc();\n this.destroyFunctions = this.destroyFunctions.filter((fn) => fn !== destroyFunc);\n return null;\n };\n }\n /**\n * Setup a managed property listener for the given GridOption property.\n * @param event GridOption property to listen to changes for.\n * @param listener Listener to run when property value changes\n */\n addManagedPropertyListener(event, listener) {\n if (this.destroyed) {\n return () => null;\n }\n return this.setupPropertyListener(event, listener);\n }\n /**\n * Setup managed property listeners for the given set of GridOption properties.\n * The listener will be run if any of the property changes but will only run once if\n * multiple of the properties change within the same framework lifecycle event.\n * Works on the basis that GridOptionsService updates all properties *before* any property change events are fired.\n * @param events Array of GridOption properties to listen for changes too.\n * @param listener Shared listener to run if any of the properties change\n */\n addManagedPropertyListeners(events, listener) {\n if (this.destroyed) {\n return;\n }\n const eventsKey = events.join(\"-\") + this.propertyListenerId++;\n const wrappedListener = (event) => {\n if (event.changeSet) {\n if (event.changeSet && event.changeSet.id === this.lastChangeSetIdLookup[eventsKey]) {\n return;\n }\n this.lastChangeSetIdLookup[eventsKey] = event.changeSet.id;\n }\n const propertiesChangeEvent = {\n type: \"propertyChanged\",\n changeSet: event.changeSet,\n source: event.source\n };\n listener(propertiesChangeEvent);\n };\n for (const event of events) {\n this.setupPropertyListener(event, wrappedListener);\n }\n }\n getLocaleTextFunc() {\n return _getLocaleTextFunc(this.beans.localeSvc);\n }\n addDestroyFunc(func) {\n if (this.isAlive()) {\n this.destroyFunctions.push(func);\n } else {\n func();\n }\n }\n /** doesn't throw an error if `bean` is undefined */\n createOptionalManagedBean(bean, context) {\n return bean ? this.createManagedBean(bean, context) : void 0;\n }\n createManagedBean(bean, context) {\n const res = this.createBean(bean, context);\n this.addDestroyFunc(this.destroyBean.bind(this, bean, context));\n return res;\n }\n createBean(bean, context, afterPreCreateCallback) {\n return (context || this.stubContext).createBean(bean, afterPreCreateCallback);\n }\n /**\n * Destroys a bean and returns undefined to support destruction and clean up in a single line.\n * this.dateComp = this.context.destroyBean(this.dateComp);\n */\n destroyBean(bean, context) {\n return (context || this.stubContext).destroyBean(bean);\n }\n /**\n * Destroys an array of beans and returns an empty array to support destruction and clean up in a single line.\n * this.dateComps = this.context.destroyBeans(this.dateComps);\n */\n destroyBeans(beans, context) {\n return (context || this.stubContext).destroyBeans(beans);\n }\n};\nfunction isAgEventEmitter(object) {\n return object.__addEventListener !== void 0;\n}\nfunction isEventService(object) {\n return object.eventServiceType === \"global\";\n}\n\n// packages/ag-grid-community/src/context/beanStub.ts\nvar BeanStub = class extends AgBeanStub {\n};\n\n// packages/ag-grid-community/src/agStack/utils/function.ts\nvar doOnceFlags = {};\nfunction _doOnce(func, key) {\n if (doOnceFlags[key]) {\n return;\n }\n func();\n doOnceFlags[key] = true;\n}\nvar batchedCallsSetTimeout = {\n pending: false,\n funcs: []\n};\nvar batchedCallsRaf = {\n pending: false,\n funcs: []\n};\nfunction _batchCall(func, mode = \"setTimeout\", beans) {\n const batch = mode === \"raf\" ? batchedCallsRaf : batchedCallsSetTimeout;\n batch.funcs.push(func);\n if (batch.pending) {\n return;\n }\n batch.pending = true;\n const runBatch = () => {\n const funcsCopy = batch.funcs.slice();\n batch.funcs.length = 0;\n batch.pending = false;\n for (const func2 of funcsCopy) {\n func2();\n }\n };\n if (mode === \"raf\") {\n _requestAnimationFrame(beans, runBatch);\n } else {\n window.setTimeout(runBatch, 0);\n }\n}\nfunction _debounce(bean, func, delay) {\n let timeout;\n return function(...args) {\n const context = this;\n window.clearTimeout(timeout);\n timeout = window.setTimeout(function() {\n if (bean.isAlive()) {\n func.apply(context, args);\n }\n }, delay);\n };\n}\nfunction _throttle(func, wait) {\n let previousCall = 0;\n return function(...args) {\n const context = this;\n const currentCall = Date.now();\n if (currentCall - previousCall < wait) {\n return;\n }\n previousCall = currentCall;\n func.apply(context, args);\n };\n}\nfunction _waitUntil(bean, condition, callback, timeout = 100) {\n const timeStamp = Date.now();\n let interval = null;\n let executed = false;\n const clearWait = () => {\n if (interval != null) {\n window.clearInterval(interval);\n interval = null;\n }\n };\n bean.addDestroyFunc(clearWait);\n const internalCallback = () => {\n const reachedTimeout = Date.now() - timeStamp > timeout;\n if (condition() || reachedTimeout) {\n callback();\n executed = true;\n clearWait();\n }\n };\n internalCallback();\n if (!executed) {\n interval = window.setInterval(internalCallback, 10);\n }\n}\n\n// packages/ag-grid-community/src/utils/mergeDeep.ts\nvar SKIP_JS_BUILTINS = /* @__PURE__ */ new Set([\"__proto__\", \"constructor\", \"prototype\"]);\nfunction _iterateObject(object, callback) {\n if (object == null) {\n return;\n }\n if (Array.isArray(object)) {\n for (let i = 0; i < object.length; i++) {\n callback(i.toString(), object[i]);\n }\n return;\n }\n for (const key of Object.keys(object).filter((key2) => !SKIP_JS_BUILTINS.has(key2))) {\n callback(key, object[key]);\n }\n}\nfunction _mergeDeep(dest, source, copyUndefined = true, makeCopyOfSimpleObjects = false) {\n if (!_exists(source)) {\n return;\n }\n _iterateObject(source, (key, sourceValue) => {\n let destValue = dest[key];\n if (destValue === sourceValue) {\n return;\n }\n if (makeCopyOfSimpleObjects) {\n const objectIsDueToBeCopied = destValue == null && sourceValue != null;\n if (objectIsDueToBeCopied) {\n const doNotCopyAsSourceIsSimpleObject = typeof sourceValue === \"object\" && sourceValue.constructor === Object;\n if (doNotCopyAsSourceIsSimpleObject) {\n destValue = {};\n dest[key] = destValue;\n }\n }\n }\n if (_isNonNullObject(sourceValue) && _isNonNullObject(destValue) && !Array.isArray(destValue)) {\n _mergeDeep(destValue, sourceValue, copyUndefined, makeCopyOfSimpleObjects);\n } else if (copyUndefined || sourceValue !== void 0) {\n dest[key] = sourceValue;\n }\n });\n}\nfunction _isNonNullObject(value) {\n return typeof value === \"object\" && value !== null;\n}\n\n// packages/ag-grid-community/src/globalGridOptions.ts\nvar _GlobalGridOptions = class _GlobalGridOptions {\n /**\n * @param providedOptions\n * @returns Shallow copy of the provided options with global options merged in.\n */\n static applyGlobalGridOptions(providedOptions) {\n if (!_GlobalGridOptions.gridOptions) {\n return { ...providedOptions };\n }\n let mergedGridOps = {};\n _mergeDeep(mergedGridOps, _GlobalGridOptions.gridOptions, true, true);\n if (_GlobalGridOptions.mergeStrategy === \"deep\") {\n _mergeDeep(mergedGridOps, providedOptions, true, true);\n } else {\n mergedGridOps = { ...mergedGridOps, ...providedOptions };\n }\n if (_GlobalGridOptions.gridOptions.context) {\n mergedGridOps.context = _GlobalGridOptions.gridOptions.context;\n }\n if (providedOptions.context) {\n if (_GlobalGridOptions.mergeStrategy === \"deep\" && mergedGridOps.context) {\n _mergeDeep(providedOptions.context, mergedGridOps.context, true, true);\n }\n mergedGridOps.context = providedOptions.context;\n }\n return mergedGridOps;\n }\n /**\n * Apply global grid option for a specific option key.\n * If the merge strategy is 'deep' and both global and provided values are objects, they will be merged deeply.\n * Otherwise, the provided value is returned as is.\n * @param optionKey - The key of the grid option to apply.\n * @param providedValue - The value provided to the grid instance.\n * @returns The merged value if applicable, otherwise the provided value.\n */\n static applyGlobalGridOption(optionKey, providedValue) {\n if (_GlobalGridOptions.mergeStrategy === \"deep\") {\n const globalValue = _getGlobalGridOption(optionKey);\n if (globalValue && typeof globalValue === \"object\" && typeof providedValue === \"object\") {\n return _GlobalGridOptions.applyGlobalGridOptions({ [optionKey]: providedValue })[optionKey];\n }\n }\n return providedValue;\n }\n};\n_GlobalGridOptions.gridOptions = void 0;\n_GlobalGridOptions.mergeStrategy = \"shallow\";\nvar GlobalGridOptions = _GlobalGridOptions;\nfunction provideGlobalGridOptions(gridOptions, mergeStrategy = \"shallow\") {\n GlobalGridOptions.gridOptions = gridOptions;\n GlobalGridOptions.mergeStrategy = mergeStrategy;\n}\nfunction _getGlobalGridOption(gridOption) {\n return GlobalGridOptions.gridOptions?.[gridOption];\n}\n\n// packages/ag-grid-community/src/gridOptionsDefault.ts\nvar GRID_OPTION_DEFAULTS = {\n suppressContextMenu: false,\n preventDefaultOnContextMenu: false,\n allowContextMenuWithControlKey: false,\n suppressMenuHide: true,\n enableBrowserTooltips: false,\n tooltipTrigger: \"hover\",\n tooltipShowDelay: 2e3,\n tooltipHideDelay: 1e4,\n tooltipMouseTrack: false,\n tooltipShowMode: \"standard\",\n tooltipInteraction: false,\n copyHeadersToClipboard: false,\n copyGroupHeadersToClipboard: false,\n clipboardDelimiter: \"\t\",\n suppressCopyRowsToClipboard: false,\n suppressCopySingleCellRanges: false,\n suppressLastEmptyLineOnPaste: false,\n suppressClipboardPaste: false,\n suppressClipboardApi: false,\n suppressCutToClipboard: false,\n maintainColumnOrder: false,\n enableStrictPivotColumnOrder: false,\n suppressFieldDotNotation: false,\n allowDragFromColumnsToolPanel: false,\n suppressMovableColumns: false,\n suppressColumnMoveAnimation: false,\n suppressMoveWhenColumnDragging: false,\n suppressDragLeaveHidesColumns: false,\n suppressRowGroupHidesColumns: false,\n suppressAutoSize: false,\n autoSizePadding: 20,\n skipHeaderOnAutoSize: false,\n singleClickEdit: false,\n suppressClickEdit: false,\n readOnlyEdit: false,\n stopEditingWhenCellsLoseFocus: false,\n enterNavigatesVertically: false,\n enterNavigatesVerticallyAfterEdit: false,\n enableCellEditingOnBackspace: false,\n undoRedoCellEditing: false,\n undoRedoCellEditingLimit: 10,\n suppressCsvExport: false,\n suppressExcelExport: false,\n cacheQuickFilter: false,\n includeHiddenColumnsInQuickFilter: false,\n excludeChildrenWhenTreeDataFiltering: false,\n enableAdvancedFilter: false,\n includeHiddenColumnsInAdvancedFilter: false,\n enableCharts: false,\n masterDetail: false,\n keepDetailRows: false,\n keepDetailRowsCount: 10,\n detailRowAutoHeight: false,\n tabIndex: 0,\n rowBuffer: 10,\n valueCache: false,\n valueCacheNeverExpires: false,\n enableCellExpressions: false,\n suppressTouch: false,\n suppressFocusAfterRefresh: false,\n suppressBrowserResizeObserver: false,\n suppressPropertyNamesCheck: false,\n suppressChangeDetection: false,\n debug: false,\n suppressLoadingOverlay: false,\n suppressNoRowsOverlay: false,\n pagination: false,\n paginationPageSize: 100,\n paginationPageSizeSelector: true,\n paginationAutoPageSize: false,\n paginateChildRows: false,\n suppressPaginationPanel: false,\n pivotMode: false,\n pivotPanelShow: \"never\",\n pivotDefaultExpanded: 0,\n pivotSuppressAutoColumn: false,\n suppressExpandablePivotGroups: false,\n functionsReadOnly: false,\n suppressAggFuncInHeader: false,\n alwaysAggregateAtRootLevel: false,\n aggregateOnlyChangedColumns: false,\n suppressAggFilteredOnly: false,\n removePivotHeaderRowWhenSingleValueColumn: false,\n animateRows: true,\n cellFlashDuration: 500,\n cellFadeDuration: 1e3,\n allowShowChangeAfterFilter: false,\n domLayout: \"normal\",\n ensureDomOrder: false,\n enableRtl: false,\n suppressColumnVirtualisation: false,\n suppressMaxRenderedRowRestriction: false,\n suppressRowVirtualisation: false,\n rowDragManaged: false,\n rowDragInsertDelay: 500,\n suppressRowDrag: false,\n suppressMoveWhenRowDragging: false,\n rowDragEntireRow: false,\n rowDragMultiRow: false,\n embedFullWidthRows: false,\n groupDisplayType: \"singleColumn\",\n groupDefaultExpanded: 0,\n groupMaintainOrder: false,\n groupSelectsChildren: false,\n groupSuppressBlankHeader: false,\n groupSelectsFiltered: false,\n showOpenedGroup: false,\n groupRemoveSingleChildren: false,\n groupRemoveLowestSingleChildren: false,\n groupHideOpenParents: false,\n groupAllowUnbalanced: false,\n rowGroupPanelShow: \"never\",\n suppressMakeColumnVisibleAfterUnGroup: false,\n treeData: false,\n rowGroupPanelSuppressSort: false,\n suppressGroupRowsSticky: false,\n rowModelType: \"clientSide\",\n asyncTransactionWaitMillis: 50,\n suppressModelUpdateAfterUpdateTransaction: false,\n cacheOverflowSize: 1,\n infiniteInitialRowCount: 1,\n serverSideInitialRowCount: 1,\n cacheBlockSize: 100,\n maxBlocksInCache: -1,\n maxConcurrentDatasourceRequests: 2,\n blockLoadDebounceMillis: 0,\n purgeClosedRowNodes: false,\n serverSideSortAllLevels: false,\n serverSideOnlyRefreshFilteredGroups: false,\n serverSidePivotResultFieldSeparator: \"_\",\n viewportRowModelPageSize: 5,\n viewportRowModelBufferSize: 5,\n alwaysShowHorizontalScroll: false,\n alwaysShowVerticalScroll: false,\n debounceVerticalScrollbar: false,\n suppressHorizontalScroll: false,\n suppressScrollOnNewData: false,\n suppressScrollWhenPopupsAreOpen: false,\n suppressAnimationFrame: false,\n suppressMiddleClickScrolls: false,\n suppressPreventDefaultOnMouseWheel: false,\n rowMultiSelectWithClick: false,\n suppressRowDeselection: false,\n suppressRowClickSelection: false,\n suppressCellFocus: false,\n suppressHeaderFocus: false,\n suppressMultiRangeSelection: false,\n enableCellTextSelection: false,\n enableRangeSelection: false,\n enableRangeHandle: false,\n enableFillHandle: false,\n fillHandleDirection: \"xy\",\n suppressClearOnFillReduction: false,\n accentedSort: false,\n unSortIcon: false,\n suppressMultiSort: false,\n alwaysMultiSort: false,\n suppressMaintainUnsortedOrder: false,\n suppressRowHoverHighlight: false,\n suppressRowTransform: false,\n columnHoverHighlight: false,\n deltaSort: false,\n enableGroupEdit: false,\n groupLockGroupColumns: 0,\n serverSideEnableClientSideSort: false,\n suppressServerSideFullWidthLoadingRow: false,\n pivotMaxGeneratedColumns: -1,\n columnMenu: \"new\",\n reactiveCustomComponents: true,\n suppressSetFilterByDefault: false,\n rowNumbers: false,\n enableFilterHandlers: false\n};\n\n// packages/ag-grid-community/src/baseUrl.ts\nvar BASE_URL = \"https://www.ag-grid.com\";\n\n// packages/ag-grid-community/src/utils/log.ts\nfunction _logIfDebug(gos, message, ...args) {\n if (gos.get(\"debug\")) {\n console.log(\"AG Grid: \" + message, ...args);\n }\n}\nfunction _warnOnce(msg, ...args) {\n _doOnce(() => console.warn(\"AG Grid: \" + msg, ...args), msg + args?.join(\"\"));\n}\nfunction _errorOnce(msg, ...args) {\n _doOnce(() => console.error(\"AG Grid: \" + msg, ...args), msg + args?.join(\"\"));\n}\n\n// packages/ag-grid-community/src/modules/moduleRegistry.ts\nvar allRegisteredModules = /* @__PURE__ */ new Set();\nvar globalModulesMap = {};\nvar gridModulesMap = {};\nvar currentModuleVersion;\nvar userHasRegistered = false;\nvar areGridScopedModules = false;\nvar isUmd = false;\nfunction isValidModuleVersion(module) {\n const [moduleMajor, moduleMinor] = module.version.split(\".\") || [];\n const [currentModuleMajor, currentModuleMinor] = currentModuleVersion.split(\".\") || [];\n return moduleMajor === currentModuleMajor && moduleMinor === currentModuleMinor;\n}\nfunction runVersionChecks(module) {\n if (!currentModuleVersion) {\n currentModuleVersion = module.version;\n }\n const errorMsg = (details) => `You are using incompatible versions of AG Grid modules. Major and minor versions should always match across modules. ${details} Please update all modules to the same version.`;\n if (!module.version) {\n _errorOnce(errorMsg(`'${module.moduleName}' is incompatible.`));\n } else if (!isValidModuleVersion(module)) {\n _errorOnce(\n errorMsg(\n `'${module.moduleName}' is version ${module.version} but the other modules are version ${currentModuleVersion}.`\n )\n );\n }\n const result = module.validate?.();\n if (result && !result.isValid) {\n _errorOnce(`${result.message}`);\n }\n}\nfunction _registerModule(module, gridId, isInternalRegistration = false) {\n if (!isInternalRegistration) {\n userHasRegistered = true;\n }\n runVersionChecks(module);\n const rowModels = module.rowModels ?? [\"all\"];\n allRegisteredModules.add(module);\n let moduleStore;\n if (gridId !== void 0) {\n areGridScopedModules = true;\n if (gridModulesMap[gridId] === void 0) {\n gridModulesMap[gridId] = {};\n }\n moduleStore = gridModulesMap[gridId];\n } else {\n moduleStore = globalModulesMap;\n }\n for (const rowModel of rowModels) {\n if (moduleStore[rowModel] === void 0) {\n moduleStore[rowModel] = {};\n }\n moduleStore[rowModel][module.moduleName] = module;\n }\n if (module.dependsOn) {\n for (const dependency of module.dependsOn) {\n _registerModule(dependency, gridId, isInternalRegistration);\n }\n }\n}\nfunction _unRegisterGridModules(gridId) {\n delete gridModulesMap[gridId];\n}\nfunction _isModuleRegistered(moduleName, gridId, rowModel) {\n const isRegisteredForRowModel = (model) => !!globalModulesMap[model]?.[moduleName] || !!gridModulesMap[gridId]?.[model]?.[moduleName];\n return isRegisteredForRowModel(rowModel) || isRegisteredForRowModel(\"all\");\n}\nfunction _areModulesGridScoped() {\n return areGridScopedModules;\n}\nfunction _getRegisteredModules(gridId, rowModel) {\n const gridModules = gridModulesMap[gridId] ?? {};\n return [\n ...Object.values(globalModulesMap[\"all\"] ?? {}),\n ...Object.values(gridModules[\"all\"] ?? {}),\n ...Object.values(globalModulesMap[rowModel] ?? {}),\n ...Object.values(gridModules[rowModel] ?? {})\n ];\n}\nfunction _getAllRegisteredModules() {\n return new Set(allRegisteredModules);\n}\nfunction _getGridRegisteredModules(gridId, rowModel) {\n const gridModules = gridModulesMap[gridId] ?? {};\n return [...Object.values(gridModules[\"all\"] ?? {}), ...Object.values(gridModules[rowModel] ?? {})];\n}\nfunction _hasUserRegistered() {\n return userHasRegistered;\n}\nfunction _isUmd() {\n return isUmd;\n}\nfunction _setUmd() {\n isUmd = true;\n}\nvar ModuleRegistry = class {\n /**\n * @deprecated v33 Use `registerModules([module])` instead.\n */\n static register(module) {\n _registerModule(module, void 0);\n }\n /**\n * Globally register the given modules for all grids.\n * @param modules - modules to register\n */\n static registerModules(modules) {\n for (const module of modules) {\n _registerModule(module, void 0);\n }\n }\n};\n\n// packages/ag-grid-community/src/version.ts\nvar VERSION = \"34.3.1\";\n\n// packages/ag-grid-community/src/validation/logging.ts\nvar MAX_URL_LENGTH = 2e3;\nvar MIN_PARAM_LENGTH = 100;\nvar VERSION_PARAM_NAME = \"_version_\";\nvar getConsoleMessage = null;\nvar baseDocLink = `${BASE_URL}/javascript-data-grid`;\nfunction provideValidationServiceLogger(logger) {\n getConsoleMessage = logger;\n}\nfunction setValidationDocLink(docLink) {\n baseDocLink = docLink;\n}\nfunction getErrorParts(id, args, defaultMessage) {\n return getConsoleMessage?.(id, args) ?? [minifiedLog(id, args, defaultMessage)];\n}\nfunction getMsgOrDefault(logger, id, args, isWarning, defaultMessage) {\n logger(`${isWarning ? \"warning\" : \"error\"} #${id}`, ...getErrorParts(id, args, defaultMessage));\n}\nfunction stringifyObject(inputObj) {\n if (!inputObj) {\n return String(inputObj);\n }\n const object = {};\n for (const prop of Object.keys(inputObj)) {\n if (typeof inputObj[prop] !== \"object\" && typeof inputObj[prop] !== \"function\") {\n object[prop] = inputObj[prop];\n }\n }\n return JSON.stringify(object);\n}\nfunction stringifyValue(value) {\n let output = value;\n if (value instanceof Error) {\n output = value.toString();\n } else if (typeof value === \"object\") {\n output = stringifyObject(value);\n }\n return output;\n}\nfunction toStringWithNullUndefined(str) {\n return str === void 0 ? \"undefined\" : str === null ? \"null\" : str;\n}\nfunction getParamsUrl(baseUrl, params) {\n return `${baseUrl}?${params.toString()}`;\n}\nfunction truncateUrl(baseUrl, params, maxLength) {\n const sortedParams = Array.from(params.entries()).sort((a, b) => b[1].length - a[1].length);\n let url = getParamsUrl(baseUrl, params);\n for (const [key, value] of sortedParams) {\n if (key === VERSION_PARAM_NAME) {\n continue;\n }\n const excessLength = url.length - maxLength;\n if (excessLength <= 0) {\n break;\n }\n const ellipse = \"...\";\n const truncateAmount = excessLength + ellipse.length;\n const truncatedValue = value.length - truncateAmount > MIN_PARAM_LENGTH ? value.slice(0, value.length - truncateAmount) + ellipse : value.slice(0, MIN_PARAM_LENGTH) + ellipse;\n params.set(key, truncatedValue);\n url = getParamsUrl(baseUrl, params);\n }\n return url;\n}\nfunction getErrorLink(errorNum, args) {\n const params = new URLSearchParams();\n params.append(VERSION_PARAM_NAME, VERSION);\n if (args) {\n for (const key of Object.keys(args)) {\n params.append(key, stringifyValue(args[key]));\n }\n }\n const baseUrl = `${baseDocLink}/errors/${errorNum}`;\n const url = getParamsUrl(baseUrl, params);\n return url.length <= MAX_URL_LENGTH ? url : truncateUrl(baseUrl, params, MAX_URL_LENGTH);\n}\nvar minifiedLog = (errorNum, args, defaultMessage) => {\n const errorLink = getErrorLink(errorNum, args);\n const prefix = `${defaultMessage ? defaultMessage + \" \\n\" : \"\"}Visit ${errorLink}`;\n if (_isUmd()) {\n return prefix;\n }\n return `${prefix}${defaultMessage ? \"\" : \" \\n Alternatively register the ValidationModule to see the full message in the console.\"}`;\n};\nfunction _warn(...args) {\n getMsgOrDefault(_warnOnce, args[0], args[1], true);\n}\nfunction _error(...args) {\n getMsgOrDefault(_errorOnce, args[0], args[1], false);\n}\nfunction _logPreInitErr(id, args, defaultMessage) {\n getMsgOrDefault(_errorOnce, id, args, false, defaultMessage);\n}\nfunction _logPreInitWarn(id, args, defaultMessage) {\n getMsgOrDefault(_warnOnce, id, args, true, defaultMessage);\n}\nfunction getErrMsg(defaultMessage, args) {\n const id = args[0];\n return `error #${id} ` + getErrorParts(id, args[1], defaultMessage).join(\" \");\n}\nfunction _errMsg(...args) {\n return getErrMsg(void 0, args);\n}\nfunction _preInitErrMsg(...args) {\n return getErrMsg(\"\\n\", args);\n}\n\n// packages/ag-grid-community/src/gridOptionsUtils.ts\nfunction isRowModelType(gos, rowModelType) {\n return gos.get(\"rowModelType\") === rowModelType;\n}\nfunction _isClientSideRowModel(gos, rowModel) {\n return isRowModelType(gos, \"clientSide\");\n}\nfunction _isServerSideRowModel(gos, rowModel) {\n return isRowModelType(gos, \"serverSide\");\n}\nfunction _isDomLayout(gos, domLayout) {\n return gos.get(\"domLayout\") === domLayout;\n}\nfunction _isRowSelection(gos) {\n return _getRowSelectionMode(gos) !== void 0;\n}\nfunction _isGetRowHeightFunction(gos) {\n return typeof gos.get(\"getRowHeight\") === \"function\";\n}\nfunction _shouldMaintainColumnOrder(gos, isPivotColumns) {\n if (isPivotColumns) {\n return !gos.get(\"enableStrictPivotColumnOrder\");\n }\n return gos.get(\"maintainColumnOrder\");\n}\nfunction _getRowHeightForNode(beans, rowNode, allowEstimate = false, defaultRowHeight) {\n const { gos, environment } = beans;\n if (defaultRowHeight == null) {\n defaultRowHeight = environment.getDefaultRowHeight();\n }\n if (_isGetRowHeightFunction(gos)) {\n if (allowEstimate) {\n return { height: defaultRowHeight, estimated: true };\n }\n const params = {\n node: rowNode,\n data: rowNode.data\n };\n const height = gos.getCallback(\"getRowHeight\")(params);\n if (isNumeric(height)) {\n if (height === 0) {\n _warn(23);\n }\n return { height: Math.max(1, height), estimated: false };\n }\n }\n if (rowNode.detail && gos.get(\"masterDetail\")) {\n return getMasterDetailRowHeight(gos);\n }\n const gridOptionsRowHeight = gos.get(\"rowHeight\");\n const rowHeight = gridOptionsRowHeight && isNumeric(gridOptionsRowHeight) ? gridOptionsRowHeight : defaultRowHeight;\n return { height: rowHeight, estimated: false };\n}\nfunction getMasterDetailRowHeight(gos) {\n if (gos.get(\"detailRowAutoHeight\")) {\n return { height: 1, estimated: false };\n }\n const defaultRowHeight = gos.get(\"detailRowHeight\");\n if (isNumeric(defaultRowHeight)) {\n return { height: defaultRowHeight, estimated: false };\n }\n return { height: 300, estimated: false };\n}\nfunction _getRowHeightAsNumber(beans) {\n const { environment, gos } = beans;\n const gridOptionsRowHeight = gos.get(\"rowHeight\");\n if (!gridOptionsRowHeight || _missing(gridOptionsRowHeight)) {\n return environment.getDefaultRowHeight();\n }\n const rowHeight = environment.refreshRowHeightVariable();\n if (rowHeight !== -1) {\n return rowHeight;\n }\n _warn(24);\n return environment.getDefaultRowHeight();\n}\nfunction isNumeric(value) {\n return !isNaN(value) && typeof value === \"number\" && isFinite(value);\n}\nfunction _getDomData(gos, element, key) {\n const domData = element[gos.getDomDataKey()];\n return domData ? domData[key] : void 0;\n}\nfunction _setDomData(gos, element, key, value) {\n const domDataKey = gos.getDomDataKey();\n let domData = element[domDataKey];\n if (_missing(domData)) {\n domData = {};\n element[domDataKey] = domData;\n }\n domData[key] = value;\n}\nfunction _isAnimateRows(gos) {\n if (gos.get(\"ensureDomOrder\")) {\n return false;\n }\n return gos.get(\"animateRows\");\n}\nfunction _isGroupRowsSticky(gos) {\n return !(gos.get(\"paginateChildRows\") || gos.get(\"groupHideOpenParents\") || _isDomLayout(gos, \"print\"));\n}\nfunction _isColumnsSortingCoupledToGroup(gos) {\n const autoGroupColumnDef = gos.get(\"autoGroupColumnDef\");\n return !autoGroupColumnDef?.comparator && !gos.get(\"treeData\");\n}\nfunction _getGroupAggFiltering(gos) {\n const userValue = gos.get(\"groupAggFiltering\");\n if (typeof userValue === \"function\") {\n return gos.getCallback(\"groupAggFiltering\");\n }\n if (userValue === true) {\n return () => true;\n }\n return void 0;\n}\nfunction _getGrandTotalRow(gos) {\n return gos.get(\"grandTotalRow\");\n}\nfunction _getGroupTotalRowCallback(gos) {\n const userValue = gos.get(\"groupTotalRow\");\n if (typeof userValue === \"function\") {\n return gos.getCallback(\"groupTotalRow\");\n }\n return () => userValue ?? void 0;\n}\nfunction _isGroupMultiAutoColumn(gos) {\n const isHideOpenParents = !!gos.get(\"groupHideOpenParents\");\n if (isHideOpenParents) {\n return true;\n }\n return gos.get(\"groupDisplayType\") === \"multipleColumns\";\n}\nfunction _isGroupUseEntireRow(gos, pivotMode) {\n if (pivotMode) {\n return false;\n }\n return gos.get(\"groupDisplayType\") === \"groupRows\";\n}\nfunction _isFullWidthGroupRow(gos, node, pivotMode) {\n return !!node.group && !node.footer && _isGroupUseEntireRow(gos, pivotMode);\n}\nfunction _getRowIdCallback(gos) {\n const getRowId = gos.getCallback(\"getRowId\");\n if (getRowId === void 0) {\n return getRowId;\n }\n return (params) => {\n let id = getRowId(params);\n if (typeof id !== \"string\") {\n _doOnce(() => _warn(25, { id }), \"getRowIdString\");\n id = String(id);\n }\n return id;\n };\n}\nfunction _canSkipShowingRowGroup(gos, node) {\n const isSkippingGroups = gos.get(\"groupHideParentOfSingleChild\");\n if (isSkippingGroups === true) {\n return true;\n }\n if (isSkippingGroups === \"leafGroupsOnly\" && node.leafGroup) {\n return true;\n }\n if (gos.get(\"groupRemoveSingleChildren\")) {\n return true;\n }\n if (gos.get(\"groupRemoveLowestSingleChildren\") && node.leafGroup) {\n return true;\n }\n return false;\n}\nfunction _getMaxConcurrentDatasourceRequests(gos) {\n const res = gos.get(\"maxConcurrentDatasourceRequests\");\n return res > 0 ? res : void 0;\n}\nfunction _shouldUpdateColVisibilityAfterGroup(gos, isGrouped) {\n const preventVisibilityChanges = gos.get(\"suppressGroupChangesColumnVisibility\");\n if (preventVisibilityChanges === true) {\n return false;\n }\n if (isGrouped && preventVisibilityChanges === \"suppressHideOnGroup\") {\n return false;\n }\n if (!isGrouped && preventVisibilityChanges === \"suppressShowOnUngroup\") {\n return false;\n }\n const legacySuppressOnGroup = gos.get(\"suppressRowGroupHidesColumns\");\n if (isGrouped && legacySuppressOnGroup === true) {\n return false;\n }\n const legacySuppressOnUngroup = gos.get(\"suppressMakeColumnVisibleAfterUnGroup\");\n if (!isGrouped && legacySuppressOnUngroup === true) {\n return false;\n }\n return true;\n}\nfunction _getCheckboxes(selection) {\n return selection?.checkboxes ?? true;\n}\nfunction _getHeaderCheckbox(selection) {\n return selection?.mode === \"multiRow\" && (selection.headerCheckbox ?? true);\n}\nfunction _getCheckboxLocation(rowSelection) {\n if (typeof rowSelection !== \"object\") {\n return void 0;\n }\n return rowSelection.checkboxLocation ?? \"selectionColumn\";\n}\nfunction _getHideDisabledCheckboxes(selection) {\n return selection?.hideDisabledCheckboxes ?? false;\n}\nfunction _isUsingNewRowSelectionAPI(gos) {\n const rowSelection = gos.get(\"rowSelection\");\n return typeof rowSelection !== \"string\";\n}\nfunction _isUsingNewCellSelectionAPI(gos) {\n return gos.get(\"cellSelection\") !== void 0;\n}\nfunction _getSuppressMultiRanges(gos) {\n const selection = gos.get(\"cellSelection\");\n const useNewAPI = selection !== void 0;\n if (!useNewAPI) {\n return gos.get(\"suppressMultiRangeSelection\");\n }\n return typeof selection !== \"boolean\" ? selection?.suppressMultiRanges ?? false : false;\n}\nfunction _isCellSelectionEnabled(gos) {\n const selection = gos.get(\"cellSelection\");\n const useNewAPI = selection !== void 0;\n return useNewAPI ? !!selection : gos.get(\"enableRangeSelection\");\n}\nfunction _getFillHandle(gos) {\n const selection = gos.get(\"cellSelection\");\n const useNewAPI = selection !== void 0;\n if (!useNewAPI) {\n return {\n mode: \"fill\",\n setFillValue: gos.get(\"fillOperation\"),\n direction: gos.get(\"fillHandleDirection\"),\n suppressClearOnFillReduction: gos.get(\"suppressClearOnFillReduction\")\n };\n }\n return typeof selection !== \"boolean\" && selection.handle?.mode === \"fill\" ? selection.handle : void 0;\n}\nfunction _getEnableClickSelection(gos) {\n const selection = gos.get(\"rowSelection\") ?? \"single\";\n if (typeof selection === \"string\") {\n const suppressRowClickSelection = gos.get(\"suppressRowClickSelection\");\n const suppressRowDeselection = gos.get(\"suppressRowDeselection\");\n if (suppressRowClickSelection && suppressRowDeselection) {\n return false;\n } else if (suppressRowClickSelection) {\n return \"enableDeselection\";\n } else if (suppressRowDeselection) {\n return \"enableSelection\";\n } else {\n return true;\n }\n }\n return selection.mode === \"singleRow\" || selection.mode === \"multiRow\" ? selection.enableClickSelection ?? false : false;\n}\nfunction _getEnableSelection(gos) {\n const enableClickSelection = _getEnableClickSelection(gos);\n return enableClickSelection === true || enableClickSelection === \"enableSelection\";\n}\nfunction _getEnableDeselection(gos) {\n const enableClickSelection = _getEnableClickSelection(gos);\n return enableClickSelection === true || enableClickSelection === \"enableDeselection\";\n}\nfunction _getIsRowSelectable(gos) {\n const selection = gos.get(\"rowSelection\");\n if (typeof selection === \"string\") {\n return gos.get(\"isRowSelectable\");\n }\n return selection?.isRowSelectable;\n}\nfunction _getRowSelectionMode(arg) {\n const selection = \"beanName\" in arg && arg.beanName === \"gos\" ? arg.get(\"rowSelection\") : arg.rowSelection;\n if (typeof selection === \"string\") {\n switch (selection) {\n case \"multiple\":\n return \"multiRow\";\n case \"single\":\n return \"singleRow\";\n default:\n return;\n }\n }\n switch (selection?.mode) {\n case \"multiRow\":\n case \"singleRow\":\n return selection.mode;\n default:\n return;\n }\n}\nfunction _isMultiRowSelection(arg) {\n const mode = _getRowSelectionMode(arg);\n return mode === \"multiRow\";\n}\nfunction _getEnableSelectionWithoutKeys(gos) {\n const selection = gos.get(\"rowSelection\");\n if (typeof selection === \"string\") {\n return gos.get(\"rowMultiSelectWithClick\");\n }\n return selection?.enableSelectionWithoutKeys ?? false;\n}\nfunction _getGroupSelection(gos) {\n const selection = gos.get(\"rowSelection\");\n if (typeof selection === \"string\") {\n const groupSelectsChildren = gos.get(\"groupSelectsChildren\");\n const groupSelectsFiltered = gos.get(\"groupSelectsFiltered\");\n if (groupSelectsChildren && groupSelectsFiltered) {\n return \"filteredDescendants\";\n } else if (groupSelectsChildren) {\n return \"descendants\";\n } else {\n return \"self\";\n }\n }\n return selection?.mode === \"multiRow\" ? selection.groupSelects : void 0;\n}\nfunction _getSelectAll(gos, defaultValue = true) {\n const rowSelection = gos.get(\"rowSelection\");\n if (typeof rowSelection !== \"object\") {\n return defaultValue ? \"all\" : void 0;\n }\n return rowSelection.mode === \"multiRow\" ? rowSelection.selectAll : \"all\";\n}\nfunction _getCtrlASelectsRows(gos) {\n const rowSelection = gos.get(\"rowSelection\");\n if (typeof rowSelection === \"string\") {\n return false;\n }\n return rowSelection?.mode === \"multiRow\" ? rowSelection.ctrlASelectsRows ?? false : false;\n}\nfunction _getGroupSelectsDescendants(gos) {\n const groupSelection = _getGroupSelection(gos);\n return groupSelection === \"descendants\" || groupSelection === \"filteredDescendants\";\n}\nfunction _getMasterSelects(gos) {\n const rowSelection = gos.get(\"rowSelection\");\n return typeof rowSelection === \"object\" && rowSelection.masterSelects || \"self\";\n}\nfunction _isSetFilterByDefault(gos) {\n return gos.isModuleRegistered(\"SetFilter\") && !gos.get(\"suppressSetFilterByDefault\");\n}\nfunction _isLegacyMenuEnabled(gos) {\n return gos.get(\"columnMenu\") === \"legacy\";\n}\nfunction _isColumnMenuAnchoringEnabled(gos) {\n return !_isLegacyMenuEnabled(gos);\n}\nfunction _getCallbackForEvent(eventName) {\n if (!eventName || eventName.length < 2) {\n return eventName;\n }\n return \"on\" + eventName[0].toUpperCase() + eventName.substring(1);\n}\nfunction _combineAttributesAndGridOptions(gridOptions, component, gridOptionsKeys) {\n if (typeof gridOptions !== \"object\") {\n gridOptions = {};\n }\n const mergedOptions = { ...gridOptions };\n for (const key of gridOptionsKeys) {\n const value = component[key];\n if (typeof value !== \"undefined\") {\n mergedOptions[key] = value;\n }\n }\n return mergedOptions;\n}\nfunction _processOnChange(changes, api) {\n if (!changes) {\n return;\n }\n const gridChanges = {};\n let hasChanges = false;\n for (const key of Object.keys(changes)) {\n gridChanges[key] = changes[key];\n hasChanges = true;\n }\n if (!hasChanges) {\n return;\n }\n const internalUpdateEvent = {\n type: \"gridOptionsChanged\",\n options: gridChanges\n };\n api.dispatchEvent(internalUpdateEvent);\n const event = {\n type: \"componentStateChanged\",\n ...gridChanges\n };\n api.dispatchEvent(event);\n}\nfunction _addGridCommonParams(gos, params) {\n return gos.addCommon(params);\n}\nfunction _getGridOption(providedGridOptions, gridOption) {\n return providedGridOptions[gridOption] ?? providedGridOptions[`gridOptions`]?.[gridOption] ?? _getGlobalGridOption(gridOption) ?? GRID_OPTION_DEFAULTS[gridOption];\n}\nfunction _interpretAsRightClick({ gos }, event) {\n return event.button === 2 || event.ctrlKey && gos.get(\"allowContextMenuWithControlKey\");\n}\n\n// packages/ag-grid-community/src/entities/agColumn.ts\nvar COL_DEF_DEFAULTS = {\n resizable: true,\n sortable: true\n};\nvar instanceIdSequence = 0;\nfunction getNextColInstanceId() {\n return instanceIdSequence++;\n}\nfunction isColumn(col) {\n return col instanceof AgColumn;\n}\nvar AgColumn = class extends BeanStub {\n constructor(colDef, userProvidedColDef, colId, primary) {\n super();\n this.colDef = colDef;\n this.userProvidedColDef = userProvidedColDef;\n this.colId = colId;\n this.primary = primary;\n this.isColumn = true;\n // used by React (and possibly other frameworks) as key for rendering. also used to\n // identify old vs new columns for destroying cols when no longer used.\n this.instanceId = getNextColInstanceId();\n // The measured height of this column's header when autoHeaderHeight is enabled\n this.autoHeaderHeight = null;\n this.moving = false;\n this.resizing = false;\n this.menuVisible = false;\n this.lastLeftPinned = false;\n this.firstRightPinned = false;\n this.filterActive = false;\n this.colEventSvc = new LocalEventService();\n this.tooltipEnabled = false;\n this.rowGroupActive = false;\n this.pivotActive = false;\n this.aggregationActive = false;\n this.flex = null;\n this.colIdSanitised = _escapeString(colId);\n }\n destroy() {\n super.destroy();\n this.beans.rowSpanSvc?.deregister(this);\n }\n getInstanceId() {\n return this.instanceId;\n }\n setState() {\n const {\n colDef,\n beans: { sortSvc, pinnedCols, colFlex }\n } = this;\n sortSvc?.initCol(this);\n const hide = colDef.hide;\n if (hide !== void 0) {\n this.visible = !hide;\n } else {\n this.visible = !colDef.initialHide;\n }\n pinnedCols?.initCol(this);\n colFlex?.initCol(this);\n }\n // gets called when user provides an alternative colDef, eg\n setColDef(colDef, userProvidedColDef, source) {\n const colSpanChanged = colDef.spanRows !== this.colDef.spanRows;\n this.colDef = colDef;\n this.userProvidedColDef = userProvidedColDef;\n this.initMinAndMaxWidths();\n this.initDotNotation();\n this.initTooltip();\n if (colSpanChanged) {\n this.beans.rowSpanSvc?.deregister(this);\n this.initRowSpan();\n }\n this.dispatchColEvent(\"colDefChanged\", source);\n }\n getUserProvidedColDef() {\n return this.userProvidedColDef;\n }\n getParent() {\n return this.parent;\n }\n getOriginalParent() {\n return this.originalParent;\n }\n // this is done after constructor as it uses gridOptionsService\n postConstruct() {\n this.setState();\n this.initMinAndMaxWidths();\n this.resetActualWidth(\"gridInitializing\");\n this.initDotNotation();\n this.initTooltip();\n this.initRowSpan();\n this.addPivotListener();\n }\n initDotNotation() {\n const {\n gos,\n colDef: { field, tooltipField }\n } = this;\n const suppressDotNotation = gos.get(\"suppressFieldDotNotation\");\n this.fieldContainsDots = _exists(field) && field.includes(\".\") && !suppressDotNotation;\n this.tooltipFieldContainsDots = _exists(tooltipField) && tooltipField.includes(\".\") && !suppressDotNotation;\n }\n initMinAndMaxWidths() {\n const colDef = this.colDef;\n this.minWidth = colDef.minWidth ?? this.beans.environment.getDefaultColumnMinWidth();\n this.maxWidth = colDef.maxWidth ?? Number.MAX_SAFE_INTEGER;\n }\n initTooltip() {\n this.beans.tooltipSvc?.initCol(this);\n }\n initRowSpan() {\n if (this.colDef.spanRows) {\n this.beans.rowSpanSvc?.register(this);\n }\n }\n addPivotListener() {\n const pivotColDefSvc = this.beans.pivotColDefSvc;\n const pivotValueColumn = this.colDef.pivotValueColumn;\n if (!pivotColDefSvc || !pivotValueColumn) {\n return;\n }\n this.addManagedListeners(pivotValueColumn, {\n colDefChanged: (evt) => {\n const colDef = pivotColDefSvc.recreateColDef(this.colDef);\n this.setColDef(colDef, colDef, evt.source);\n }\n });\n }\n resetActualWidth(source) {\n const initialWidth = this.calculateColInitialWidth(this.colDef);\n this.setActualWidth(initialWidth, source, true);\n }\n calculateColInitialWidth(colDef) {\n let width;\n const colDefWidth = colDef.width;\n const colDefInitialWidth = colDef.initialWidth;\n if (colDefWidth != null) {\n width = colDefWidth;\n } else if (colDefInitialWidth != null) {\n width = colDefInitialWidth;\n } else {\n width = 200;\n }\n return Math.max(Math.min(width, this.maxWidth), this.minWidth);\n }\n isEmptyGroup() {\n return false;\n }\n isRowGroupDisplayed(colId) {\n return this.beans.showRowGroupCols?.isRowGroupDisplayed(this, colId) ?? false;\n }\n isPrimary() {\n return this.primary;\n }\n isFilterAllowed() {\n const filterDefined = !!this.colDef.filter;\n return filterDefined;\n }\n isFieldContainsDots() {\n return this.fieldContainsDots;\n }\n isTooltipEnabled() {\n return this.tooltipEnabled;\n }\n isTooltipFieldContainsDots() {\n return this.tooltipFieldContainsDots;\n }\n getHighlighted() {\n return this.highlighted;\n }\n __addEventListener(eventType, listener) {\n this.colEventSvc.addEventListener(eventType, listener);\n }\n __removeEventListener(eventType, listener) {\n this.colEventSvc.removeEventListener(eventType, listener);\n }\n /**\n * PUBLIC USE ONLY: for internal use within AG Grid use the `__addEventListener` and `__removeEventListener` methods.\n */\n addEventListener(eventType, userListener) {\n this.frameworkEventListenerService = this.beans.frameworkOverrides.createLocalEventListenerWrapper?.(\n this.frameworkEventListenerService,\n this.colEventSvc\n );\n const listener = this.frameworkEventListenerService?.wrap(eventType, userListener) ?? userListener;\n this.colEventSvc.addEventListener(eventType, listener);\n }\n /**\n * PUBLIC USE ONLY: for internal use within AG Grid use the `__addEventListener` and `__removeEventListener` methods.\n */\n removeEventListener(eventType, userListener) {\n const listener = this.frameworkEventListenerService?.unwrap(eventType, userListener) ?? userListener;\n this.colEventSvc.removeEventListener(eventType, listener);\n }\n createColumnFunctionCallbackParams(rowNode) {\n return _addGridCommonParams(this.gos, {\n node: rowNode,\n data: rowNode.data,\n column: this,\n colDef: this.colDef\n });\n }\n isSuppressNavigable(rowNode) {\n return this.beans.cellNavigation?.isSuppressNavigable(this, rowNode) ?? false;\n }\n isCellEditable(rowNode) {\n return this.beans.editSvc?.isCellEditable({ rowNode, column: this }) ?? false;\n }\n isSuppressFillHandle() {\n return !!this.colDef.suppressFillHandle;\n }\n isAutoHeight() {\n return !!this.colDef.autoHeight;\n }\n isAutoHeaderHeight() {\n return !!this.colDef.autoHeaderHeight;\n }\n isRowDrag(rowNode) {\n return this.isColumnFunc(rowNode, this.colDef.rowDrag);\n }\n isDndSource(rowNode) {\n return this.isColumnFunc(rowNode, this.colDef.dndSource);\n }\n isCellCheckboxSelection(rowNode) {\n return this.beans.selectionSvc?.isCellCheckboxSelection(this, rowNode) ?? false;\n }\n isSuppressPaste(rowNode) {\n return this.isColumnFunc(rowNode, this.colDef?.suppressPaste ?? null);\n }\n isResizable() {\n return !!this.getColDefValue(\"resizable\");\n }\n /** Get value from ColDef or default if it exists. */\n getColDefValue(key) {\n return this.colDef[key] ?? COL_DEF_DEFAULTS[key];\n }\n isColumnFunc(rowNode, value) {\n if (typeof value === \"boolean\") {\n return value;\n }\n if (typeof value === \"function\") {\n const params = this.createColumnFunctionCallbackParams(rowNode);\n const editableFunc = value;\n return editableFunc(params);\n }\n return false;\n }\n createColumnEvent(type, source) {\n return _addGridCommonParams(this.gos, {\n type,\n column: this,\n columns: [this],\n source\n });\n }\n isMoving() {\n return this.moving;\n }\n getSort() {\n return this.sort;\n }\n isSortable() {\n return !!this.getColDefValue(\"sortable\");\n }\n /** @deprecated v32 use col.getSort() === 'asc */\n isSortAscending() {\n return this.sort === \"asc\";\n }\n /** @deprecated v32 use col.getSort() === 'desc */\n isSortDescending() {\n return this.sort === \"desc\";\n }\n /** @deprecated v32 use col.getSort() === undefined */\n isSortNone() {\n return _missing(this.sort);\n }\n /** @deprecated v32 use col.getSort() !== undefined */\n isSorting() {\n return _exists(this.sort);\n }\n getSortIndex() {\n return this.sortIndex;\n }\n isMenuVisible() {\n return this.menuVisible;\n }\n getAggFunc() {\n return this.aggFunc;\n }\n getLeft() {\n return this.left;\n }\n getOldLeft() {\n return this.oldLeft;\n }\n getRight() {\n return this.left + this.actualWidth;\n }\n setLeft(left, source) {\n this.oldLeft = this.left;\n if (this.left !== left) {\n this.left = left;\n this.dispatchColEvent(\"leftChanged\", source);\n }\n }\n isFilterActive() {\n return this.filterActive;\n }\n /** @deprecated v33 Use `api.isColumnHovered(column)` instead. */\n isHovered() {\n _warn(261);\n return !!this.beans.colHover?.isHovered(this);\n }\n setFirstRightPinned(firstRightPinned, source) {\n if (this.firstRightPinned !== firstRightPinned) {\n this.firstRightPinned = firstRightPinned;\n this.dispatchColEvent(\"firstRightPinnedChanged\", source);\n }\n }\n setLastLeftPinned(lastLeftPinned, source) {\n if (this.lastLeftPinned !== lastLeftPinned) {\n this.lastLeftPinned = lastLeftPinned;\n this.dispatchColEvent(\"lastLeftPinnedChanged\", source);\n }\n }\n isFirstRightPinned() {\n return this.firstRightPinned;\n }\n isLastLeftPinned() {\n return this.lastLeftPinned;\n }\n isPinned() {\n return this.pinned === \"left\" || this.pinned === \"right\";\n }\n isPinnedLeft() {\n return this.pinned === \"left\";\n }\n isPinnedRight() {\n return this.pinned === \"right\";\n }\n getPinned() {\n return this.pinned;\n }\n setVisible(visible, source) {\n const newValue = visible === true;\n if (this.visible !== newValue) {\n this.visible = newValue;\n this.dispatchColEvent(\"visibleChanged\", source);\n }\n this.dispatchStateUpdatedEvent(\"hide\");\n }\n isVisible() {\n return this.visible;\n }\n isSpanHeaderHeight() {\n const colDef = this.getColDef();\n return !colDef.suppressSpanHeaderHeight;\n }\n /**\n * Returns the first parent that is not a padding group.\n */\n getFirstRealParent() {\n let parent = this.getOriginalParent();\n while (parent?.isPadding()) {\n parent = parent.getOriginalParent();\n }\n return parent;\n }\n getColumnGroupPaddingInfo() {\n let parent = this.getParent();\n if (!parent?.isPadding()) {\n return { numberOfParents: 0, isSpanningTotal: false };\n }\n const numberOfParents = parent.getPaddingLevel() + 1;\n let isSpanningTotal = true;\n while (parent) {\n if (!parent.isPadding()) {\n isSpanningTotal = false;\n break;\n }\n parent = parent.getParent();\n }\n return { numberOfParents, isSpanningTotal };\n }\n getColDef() {\n return this.colDef;\n }\n getDefinition() {\n return this.colDef;\n }\n getColumnGroupShow() {\n return this.colDef.columnGroupShow;\n }\n getColId() {\n return this.colId;\n }\n getId() {\n return this.colId;\n }\n getUniqueId() {\n return this.colId;\n }\n getActualWidth() {\n return this.actualWidth;\n }\n getAutoHeaderHeight() {\n return this.autoHeaderHeight;\n }\n /** Returns true if the header height has changed */\n setAutoHeaderHeight(height) {\n const changed = height !== this.autoHeaderHeight;\n this.autoHeaderHeight = height;\n return changed;\n }\n createBaseColDefParams(rowNode) {\n const params = _addGridCommonParams(this.gos, {\n node: rowNode,\n data: rowNode.data,\n colDef: this.colDef,\n column: this\n });\n return params;\n }\n getColSpan(rowNode) {\n if (_missing(this.colDef.colSpan)) {\n return 1;\n }\n const params = this.createBaseColDefParams(rowNode);\n const colSpan = this.colDef.colSpan(params);\n return Math.max(colSpan, 1);\n }\n getRowSpan(rowNode) {\n if (_missing(this.colDef.rowSpan)) {\n return 1;\n }\n const params = this.createBaseColDefParams(rowNode);\n const rowSpan = this.colDef.rowSpan(params);\n return Math.max(rowSpan, 1);\n }\n setActualWidth(actualWidth, source, silent = false) {\n actualWidth = Math.max(actualWidth, this.minWidth);\n actualWidth = Math.min(actualWidth, this.maxWidth);\n if (this.actualWidth !== actualWidth) {\n this.actualWidth = actualWidth;\n if (this.flex != null && source !== \"flex\" && source !== \"gridInitializing\") {\n this.flex = null;\n }\n if (!silent) {\n this.fireColumnWidthChangedEvent(source);\n }\n }\n this.dispatchStateUpdatedEvent(\"width\");\n }\n fireColumnWidthChangedEvent(source) {\n this.dispatchColEvent(\"widthChanged\", source);\n }\n isGreaterThanMax(width) {\n return width > this.maxWidth;\n }\n getMinWidth() {\n return this.minWidth;\n }\n getMaxWidth() {\n return this.maxWidth;\n }\n getFlex() {\n return this.flex;\n }\n isRowGroupActive() {\n return this.rowGroupActive;\n }\n isPivotActive() {\n return this.pivotActive;\n }\n isAnyFunctionActive() {\n return this.isPivotActive() || this.isRowGroupActive() || this.isValueActive();\n }\n isAnyFunctionAllowed() {\n return this.isAllowPivot() || this.isAllowRowGroup() || this.isAllowValue();\n }\n isValueActive() {\n return this.aggregationActive;\n }\n isAllowPivot() {\n return this.colDef.enablePivot === true;\n }\n isAllowValue() {\n return this.colDef.enableValue === true;\n }\n isAllowRowGroup() {\n return this.colDef.enableRowGroup === true;\n }\n dispatchColEvent(type, source, additionalEventAttributes) {\n const colEvent = this.createColumnEvent(type, source);\n if (additionalEventAttributes) {\n _mergeDeep(colEvent, additionalEventAttributes);\n }\n this.colEventSvc.dispatchEvent(colEvent);\n }\n dispatchStateUpdatedEvent(key) {\n this.colEventSvc.dispatchEvent({\n type: \"columnStateUpdated\",\n key\n });\n }\n};\n\n// packages/ag-grid-community/src/entities/agProvidedColumnGroup.ts\nfunction isProvidedColumnGroup(col) {\n return col instanceof AgProvidedColumnGroup;\n}\nvar AgProvidedColumnGroup = class extends BeanStub {\n constructor(colGroupDef, groupId, padding, level) {\n super();\n this.colGroupDef = colGroupDef;\n this.groupId = groupId;\n this.padding = padding;\n this.level = level;\n this.isColumn = false;\n this.expandable = false;\n // used by React (and possibly other frameworks) as key for rendering. also used to\n // identify old vs new columns for destroying cols when no longer used.\n this.instanceId = getNextColInstanceId();\n this.expandableListenerRemoveCallback = null;\n this.expanded = !!colGroupDef?.openByDefault;\n }\n destroy() {\n if (this.expandableListenerRemoveCallback) {\n this.reset(null, void 0);\n }\n super.destroy();\n }\n reset(colGroupDef, level) {\n this.colGroupDef = colGroupDef;\n this.level = level;\n this.originalParent = null;\n if (this.expandableListenerRemoveCallback) {\n this.expandableListenerRemoveCallback();\n }\n this.children = void 0;\n this.expandable = void 0;\n }\n getInstanceId() {\n return this.instanceId;\n }\n getOriginalParent() {\n return this.originalParent;\n }\n getLevel() {\n return this.level;\n }\n isVisible() {\n if (this.children) {\n return this.children.some((child) => child.isVisible());\n }\n return false;\n }\n isPadding() {\n return this.padding;\n }\n setExpanded(expanded) {\n this.expanded = expanded === void 0 ? false : expanded;\n this.dispatchLocalEvent({ type: \"expandedChanged\" });\n }\n isExpandable() {\n return this.expandable;\n }\n isExpanded() {\n return this.expanded;\n }\n getGroupId() {\n return this.groupId;\n }\n getId() {\n return this.getGroupId();\n }\n setChildren(children) {\n this.children = children;\n }\n getChildren() {\n return this.children;\n }\n getColGroupDef() {\n return this.colGroupDef;\n }\n getLeafColumns() {\n const result = [];\n this.addLeafColumns(result);\n return result;\n }\n forEachLeafColumn(callback) {\n if (!this.children) {\n return;\n }\n for (const child of this.children) {\n if (isColumn(child)) {\n callback(child);\n } else if (isProvidedColumnGroup(child)) {\n child.forEachLeafColumn(callback);\n }\n }\n }\n addLeafColumns(leafColumns) {\n if (!this.children) {\n return;\n }\n for (const child of this.children) {\n if (isColumn(child)) {\n leafColumns.push(child);\n } else if (isProvidedColumnGroup(child)) {\n child.addLeafColumns(leafColumns);\n }\n }\n }\n getColumnGroupShow() {\n const colGroupDef = this.colGroupDef;\n if (!colGroupDef) {\n return;\n }\n return colGroupDef.columnGroupShow;\n }\n // need to check that this group has at least one col showing when both expanded and contracted.\n // if not, then we don't allow expanding and contracting on this group\n setupExpandable() {\n this.setExpandable();\n if (this.expandableListenerRemoveCallback) {\n this.expandableListenerRemoveCallback();\n }\n const listener = this.onColumnVisibilityChanged.bind(this);\n for (const col of this.getLeafColumns()) {\n col.__addEventListener(\"visibleChanged\", listener);\n }\n this.expandableListenerRemoveCallback = () => {\n for (const col of this.getLeafColumns()) {\n col.__removeEventListener(\"visibleChanged\", listener);\n }\n this.expandableListenerRemoveCallback = null;\n };\n }\n setExpandable() {\n if (this.isPadding()) {\n return;\n }\n let atLeastOneShowingWhenOpen = false;\n let atLeastOneShowingWhenClosed = false;\n let atLeastOneChangeable = false;\n const children = this.findChildrenRemovingPadding();\n for (let i = 0, j = children.length; i < j; i++) {\n const abstractColumn = children[i];\n if (!abstractColumn.isVisible()) {\n continue;\n }\n const headerGroupShow = abstractColumn.getColumnGroupShow();\n if (headerGroupShow === \"open\") {\n atLeastOneShowingWhenOpen = true;\n atLeastOneChangeable = true;\n } else if (headerGroupShow === \"closed\") {\n atLeastOneShowingWhenClosed = true;\n atLeastOneChangeable = true;\n } else {\n atLeastOneShowingWhenOpen = true;\n atLeastOneShowingWhenClosed = true;\n }\n }\n const expandable = atLeastOneShowingWhenOpen && atLeastOneShowingWhenClosed && atLeastOneChangeable;\n if (this.expandable !== expandable) {\n this.expandable = expandable;\n this.dispatchLocalEvent({ type: \"expandableChanged\" });\n }\n }\n findChildrenRemovingPadding() {\n const res = [];\n const process = (items) => {\n for (const item of items) {\n const skipBecausePadding = isProvidedColumnGroup(item) && item.isPadding();\n if (skipBecausePadding) {\n process(item.children);\n } else {\n res.push(item);\n }\n }\n };\n process(this.children);\n return res;\n }\n onColumnVisibilityChanged() {\n this.setExpandable();\n }\n};\n\n// packages/ag-grid-community/src/entities/defaultColumnTypes.ts\nvar DefaultColumnTypes = {\n numericColumn: {\n headerClass: \"ag-right-aligned-header\",\n cellClass: \"ag-right-aligned-cell\"\n },\n rightAligned: {\n headerClass: \"ag-right-aligned-header\",\n cellClass: \"ag-right-aligned-cell\"\n }\n};\n\n// packages/ag-grid-community/src/columns/columnGroups/columnGroupUtils.ts\nfunction createMergedColGroupDef(beans, colGroupDef, groupId) {\n const colGroupDefMerged = {};\n const gos = beans.gos;\n Object.assign(colGroupDefMerged, gos.get(\"defaultColGroupDef\"));\n Object.assign(colGroupDefMerged, colGroupDef);\n gos.validateColDef(colGroupDefMerged, groupId);\n return colGroupDefMerged;\n}\n\n// packages/ag-grid-community/src/columns/columnKeyCreator.ts\nvar ColumnKeyCreator = class {\n constructor() {\n this.existingKeys = {};\n }\n addExistingKeys(keys) {\n for (let i = 0; i < keys.length; i++) {\n this.existingKeys[keys[i]] = true;\n }\n }\n getUniqueKey(colId, colField) {\n colId = _toStringOrNull(colId);\n let count = 0;\n while (true) {\n let idToTry = colId ?? colField;\n if (idToTry) {\n if (count !== 0) {\n idToTry += \"_\" + count;\n }\n } else {\n idToTry = count;\n }\n if (!this.existingKeys[idToTry]) {\n const usedId = String(idToTry);\n if (colId && count > 0) {\n _warn(273, { providedId: colId, usedId });\n }\n this.existingKeys[usedId] = true;\n return usedId;\n }\n count++;\n }\n }\n};\n\n// packages/ag-grid-community/src/agStack/utils/array.ts\nvar _EmptyArray = Object.freeze([]);\nfunction _last(arr) {\n if (!arr?.length) {\n return;\n }\n return arr[arr.length - 1];\n}\nfunction _areEqual(a, b, comparator) {\n if (a === b) {\n return true;\n }\n if (!a || !b) {\n return a == null && b == null;\n }\n const len = a.length;\n if (len !== b.length) {\n return false;\n }\n for (let i = 0; i < len; i++) {\n if (a[i] !== b[i] && !comparator?.(a[i], b[i])) {\n return false;\n }\n }\n return true;\n}\nfunction _forAll(array, callback) {\n if (!array) {\n return;\n }\n for (const value of array) {\n callback(value);\n }\n}\nfunction _removeFromArray(array, object) {\n const index = array.indexOf(object);\n if (index >= 0) {\n array.splice(index, 1);\n }\n}\nfunction _removeAllFromArray(array, elementsToRemove) {\n let i = 0;\n let j = 0;\n for (; i < array.length; i++) {\n if (!elementsToRemove.includes(array[i])) {\n array[j] = array[i];\n j++;\n }\n }\n while (j < array.length) {\n array.pop();\n }\n}\nfunction _moveInArray(array, objectsToMove, toIndex) {\n for (let i = 0; i < objectsToMove.length; i++) {\n _removeFromArray(array, objectsToMove[i]);\n }\n for (let i = objectsToMove.length - 1; i >= 0; i--) {\n array.splice(toIndex, 0, objectsToMove[i]);\n }\n}\nfunction _flatten(arrays) {\n return [].concat.apply([], arrays);\n}\n\n// packages/ag-grid-community/src/columns/columnUtils.ts\nvar GROUP_AUTO_COLUMN_ID = \"ag-Grid-AutoColumn\";\nvar SELECTION_COLUMN_ID = \"ag-Grid-SelectionColumn\";\nvar ROW_NUMBERS_COLUMN_ID = \"ag-Grid-RowNumbersColumn\";\nvar GROUP_HIERARCHY_COLUMN_ID_PREFIX = \"ag-Grid-HierarchyColumn\";\nfunction _getColumnsFromTree(rootColumns) {\n const result = [];\n const recursiveFindColumns = (childColumns) => {\n for (let i = 0; i < childColumns.length; i++) {\n const child = childColumns[i];\n if (isColumn(child)) {\n result.push(child);\n } else if (isProvidedColumnGroup(child)) {\n recursiveFindColumns(child.getChildren());\n }\n }\n };\n recursiveFindColumns(rootColumns);\n return result;\n}\nfunction getWidthOfColsInList(columnList) {\n return columnList.reduce((width, col) => width + col.getActualWidth(), 0);\n}\nfunction _destroyColumnTree(beans, oldTree, newTree) {\n const oldObjectsById = {};\n if (!oldTree) {\n return;\n }\n depthFirstOriginalTreeSearch(null, oldTree, (child) => {\n oldObjectsById[child.getInstanceId()] = child;\n });\n if (newTree) {\n depthFirstOriginalTreeSearch(null, newTree, (child) => {\n oldObjectsById[child.getInstanceId()] = null;\n });\n }\n const colsToDestroy = Object.values(oldObjectsById).filter((item) => item != null);\n beans.context.destroyBeans(colsToDestroy);\n}\nfunction isColumnGroupAutoCol(col) {\n const colId = col.getId();\n return colId.startsWith(GROUP_AUTO_COLUMN_ID);\n}\nfunction isColumnSelectionCol(col) {\n const id = typeof col === \"string\" ? col : \"getColId\" in col ? col.getColId() : col.colId;\n return id?.startsWith(SELECTION_COLUMN_ID) ?? false;\n}\nfunction isRowNumberCol(col) {\n const id = typeof col === \"string\" ? col : \"getColId\" in col ? col.getColId() : col.colId;\n return id?.startsWith(ROW_NUMBERS_COLUMN_ID) ?? false;\n}\nfunction isSpecialCol(col) {\n return isColumnSelectionCol(col) || isRowNumberCol(col);\n}\nfunction convertColumnTypes(type) {\n let typeKeys = [];\n if (type instanceof Array) {\n typeKeys = type;\n } else if (typeof type === \"string\") {\n typeKeys = type.split(\",\");\n }\n return typeKeys;\n}\nfunction _areColIdsEqual(colsA, colsB) {\n return _areEqual(colsA, colsB, (a, b) => a.getColId() === b.getColId());\n}\nfunction _updateColsMap(cols) {\n cols.map = {};\n for (const col of cols.list) {\n cols.map[col.getId()] = col;\n }\n}\nfunction _convertColumnEventSourceType(source) {\n return source === \"optionsUpdated\" ? \"gridOptionsChanged\" : source;\n}\nfunction _columnsMatch(column, key) {\n const columnMatches = column === key;\n const colDefMatches = column.getColDef() === key;\n const idMatches = column.getColId() == key;\n return columnMatches || colDefMatches || idMatches;\n}\nvar getValueFactory = (stateItem, defaultState) => (key1, key2) => {\n const obj = {\n value1: void 0,\n value2: void 0\n };\n let calculated = false;\n if (stateItem) {\n if (stateItem[key1] !== void 0) {\n obj.value1 = stateItem[key1];\n calculated = true;\n }\n if (_exists(key2) && stateItem[key2] !== void 0) {\n obj.value2 = stateItem[key2];\n calculated = true;\n }\n }\n if (!calculated && defaultState) {\n if (defaultState[key1] !== void 0) {\n obj.value1 = defaultState[key1];\n }\n if (_exists(key2) && defaultState[key2] !== void 0) {\n obj.value2 = defaultState[key2];\n }\n }\n return obj;\n};\n\n// packages/ag-grid-community/src/columns/columnFactoryUtils.ts\nvar depthFirstCallback = (child, parent) => {\n if (isProvidedColumnGroup(child)) {\n child.setupExpandable();\n }\n child.originalParent = parent;\n};\nfunction _createColumnTreeWithIds(beans, defs = null, primaryColumns, existingTree, source) {\n const { existingCols, existingGroups } = extractExistingTreeData(existingTree);\n const colIdMap = new Map(existingCols.map((col) => [col.getId(), col]));\n const colGroupIdMap = new Map(existingGroups.map((group) => [group.getId(), group]));\n let maxDepth = 0;\n const recursivelyProcessColDef = (def, level) => {\n maxDepth = Math.max(maxDepth, level);\n if (isColumnGroupDef(def)) {\n if (!beans.colGroupSvc) {\n return null;\n }\n const groupId = def.groupId;\n const group = colGroupIdMap.get(groupId);\n const colGroupDef = createMergedColGroupDef(beans, def, groupId);\n const newGroup = new AgProvidedColumnGroup(colGroupDef, groupId, false, level);\n beans.context.createBean(newGroup);\n if (group) {\n newGroup.setExpanded(group.isExpanded());\n }\n newGroup.setChildren(def.children.map((child) => recursivelyProcessColDef(child, level + 1)));\n return newGroup;\n }\n const colId = def.colId;\n let column = colIdMap.get(colId);\n const colDefMerged = _addColumnDefaultAndTypes(beans, def, column?.getColId() ?? colId);\n if (!column) {\n column = new AgColumn(colDefMerged, def, colId, primaryColumns);\n beans.context.createBean(column);\n } else {\n column.setColDef(colDefMerged, def, source);\n _updateColumnState(beans, column, colDefMerged, source);\n }\n beans.dataTypeSvc?.addColumnListeners(column);\n return column;\n };\n const root = defs?.map((def) => recursivelyProcessColDef(def, 0)) ?? [];\n let counter = 0;\n const keyCreator = {\n getUniqueKey: (_colId, _field) => String(++counter)\n };\n const columnTree = beans.colGroupSvc ? beans.colGroupSvc.balanceColumnTree(root, 0, maxDepth, keyCreator) : root;\n depthFirstOriginalTreeSearch(null, columnTree, depthFirstCallback);\n return {\n columnTree,\n treeDepth: maxDepth\n };\n}\nfunction _createColumnTree(beans, defs = null, primaryColumns, existingTree, source) {\n const columnKeyCreator = new ColumnKeyCreator();\n const { existingCols, existingGroups, existingColKeys } = extractExistingTreeData(existingTree);\n columnKeyCreator.addExistingKeys(existingColKeys);\n const unbalancedTree = _recursivelyCreateColumns(\n beans,\n defs,\n 0,\n primaryColumns,\n existingCols,\n columnKeyCreator,\n existingGroups,\n source\n );\n const { colGroupSvc } = beans;\n const treeDepth = colGroupSvc?.findMaxDepth(unbalancedTree, 0) ?? 0;\n const columnTree = colGroupSvc ? colGroupSvc.balanceColumnTree(unbalancedTree, 0, treeDepth, columnKeyCreator) : unbalancedTree;\n depthFirstOriginalTreeSearch(null, columnTree, depthFirstCallback);\n return {\n columnTree,\n treeDepth\n };\n}\nfunction extractExistingTreeData(existingTree) {\n const existingCols = [];\n const existingGroups = [];\n const existingColKeys = [];\n if (existingTree) {\n depthFirstOriginalTreeSearch(null, existingTree, (item) => {\n if (isProvidedColumnGroup(item)) {\n const group = item;\n existingGroups.push(group);\n } else {\n const col = item;\n existingColKeys.push(col.getId());\n existingCols.push(col);\n }\n });\n }\n return { existingCols, existingGroups, existingColKeys };\n}\nfunction _recursivelyCreateColumns(beans, defs, level, primaryColumns, existingColsCopy, columnKeyCreator, existingGroups, source) {\n if (!defs) {\n return [];\n }\n const { colGroupSvc } = beans;\n const result = new Array(defs.length);\n for (let i = 0; i < result.length; i++) {\n const def = defs[i];\n if (colGroupSvc && isColumnGroupDef(def)) {\n result[i] = colGroupSvc.createProvidedColumnGroup(\n primaryColumns,\n def,\n level,\n existingColsCopy,\n columnKeyCreator,\n existingGroups,\n source\n );\n } else {\n result[i] = createColumn(beans, primaryColumns, def, existingColsCopy, columnKeyCreator, source);\n }\n }\n return result;\n}\nfunction createColumn(beans, primaryColumns, colDef, existingColsCopy, columnKeyCreator, source) {\n const existingColAndIndex = findExistingColumn(colDef, existingColsCopy);\n if (existingColAndIndex) {\n existingColsCopy?.splice(existingColAndIndex.idx, 1);\n }\n let column = existingColAndIndex?.column;\n if (!column) {\n const colId = columnKeyCreator.getUniqueKey(colDef.colId, colDef.field);\n const colDefMerged = _addColumnDefaultAndTypes(beans, colDef, colId);\n column = new AgColumn(colDefMerged, colDef, colId, primaryColumns);\n beans.context.createBean(column);\n } else {\n const colDefMerged = _addColumnDefaultAndTypes(beans, colDef, column.getColId());\n column.setColDef(colDefMerged, colDef, source);\n _updateColumnState(beans, column, colDefMerged, source);\n }\n beans.dataTypeSvc?.addColumnListeners(column);\n return column;\n}\nfunction updateSomeColumnState(beans, column, hide, sort, sortIndex, pinned, flex, source) {\n const { sortSvc, pinnedCols, colFlex } = beans;\n if (hide !== void 0) {\n column.setVisible(!hide, source);\n }\n if (sortSvc) {\n sortSvc.updateColSort(column, sort, source);\n if (sortIndex !== void 0) {\n sortSvc.setColSortIndex(column, sortIndex);\n }\n }\n if (pinned !== void 0) {\n pinnedCols?.setColPinned(column, pinned);\n }\n if (flex !== void 0) {\n colFlex?.setColFlex(column, flex);\n }\n}\nfunction _updateColumnState(beans, column, colDef, source) {\n updateSomeColumnState(\n beans,\n column,\n colDef.hide,\n colDef.sort,\n colDef.sortIndex,\n colDef.pinned,\n colDef.flex,\n source\n );\n const colFlex = column.getFlex();\n if (colFlex != null && colFlex > 0) {\n return;\n }\n if (colDef.width != null) {\n column.setActualWidth(colDef.width, source);\n } else {\n const widthBeforeUpdate = column.getActualWidth();\n column.setActualWidth(widthBeforeUpdate, source);\n }\n}\nfunction findExistingColumn(newColDef, existingColsCopy) {\n if (!existingColsCopy) {\n return void 0;\n }\n for (let i = 0; i < existingColsCopy.length; i++) {\n const def = existingColsCopy[i].getUserProvidedColDef();\n if (!def) {\n continue;\n }\n const newHasId = newColDef.colId != null;\n if (newHasId) {\n if (existingColsCopy[i].getId() === newColDef.colId) {\n return { idx: i, column: existingColsCopy[i] };\n }\n continue;\n }\n const newHasField = newColDef.field != null;\n if (newHasField) {\n if (def.field === newColDef.field) {\n return { idx: i, column: existingColsCopy[i] };\n }\n continue;\n }\n if (def === newColDef) {\n return { idx: i, column: existingColsCopy[i] };\n }\n }\n return void 0;\n}\nfunction _addColumnDefaultAndTypes(beans, colDef, colId, isAutoCol) {\n const { gos, dataTypeSvc } = beans;\n const res = {};\n const defaultColDef = gos.get(\"defaultColDef\");\n _mergeDeep(res, defaultColDef, false, true);\n const columnType = updateColDefAndGetColumnType(beans, res, colDef, colId);\n if (columnType) {\n assignColumnTypes(beans, columnType, res);\n }\n const cellDataType = res.cellDataType;\n _mergeDeep(res, colDef, false, true);\n if (cellDataType !== void 0) {\n res.cellDataType = cellDataType;\n }\n const autoGroupColDef = gos.get(\"autoGroupColumnDef\");\n const isSortingCoupled = _isColumnsSortingCoupledToGroup(gos);\n if (colDef.rowGroup && autoGroupColDef && isSortingCoupled) {\n _mergeDeep(\n res,\n { sort: autoGroupColDef.sort, initialSort: autoGroupColDef.initialSort },\n false,\n true\n );\n }\n if (dataTypeSvc) {\n dataTypeSvc.postProcess(res);\n dataTypeSvc.validateColDef(res);\n }\n gos.validateColDef(res, colId, isAutoCol);\n return res;\n}\nfunction updateColDefAndGetColumnType(beans, colDef, userColDef, colId) {\n const dataTypeDefinitionColumnType = beans.dataTypeSvc?.updateColDefAndGetColumnType(colDef, userColDef, colId);\n const columnTypes = userColDef.type ?? dataTypeDefinitionColumnType ?? colDef.type;\n colDef.type = columnTypes;\n return columnTypes ? convertColumnTypes(columnTypes) : void 0;\n}\nfunction assignColumnTypes(beans, typeKeys, colDefMerged) {\n if (!typeKeys.length) {\n return;\n }\n const allColumnTypes = Object.assign({}, DefaultColumnTypes);\n const userTypes = beans.gos.get(\"columnTypes\") || {};\n for (const key of Object.keys(userTypes)) {\n const value = userTypes[key];\n if (key in allColumnTypes) {\n _warn(34, { key });\n } else {\n const colType = value;\n if (colType.type) {\n _warn(35);\n }\n allColumnTypes[key] = value;\n }\n }\n for (const t of typeKeys) {\n const typeColDef = allColumnTypes[t.trim()];\n if (typeColDef) {\n _mergeDeep(colDefMerged, typeColDef, false, true);\n } else {\n _warn(36, { t });\n }\n }\n}\nfunction isColumnGroupDef(abstractColDef) {\n return abstractColDef.children !== void 0;\n}\nfunction depthFirstOriginalTreeSearch(parent, tree, callback) {\n if (!tree) {\n return;\n }\n for (let i = 0; i < tree.length; i++) {\n const child = tree[i];\n if (isProvidedColumnGroup(child)) {\n depthFirstOriginalTreeSearch(child, child.getChildren(), callback);\n }\n callback(child, parent);\n }\n}\n\n// packages/ag-grid-community/src/columnMove/columnMoveUtils.ts\nfunction placeLockedColumns(cols, gos) {\n const left = [];\n const normal = [];\n const right = [];\n cols.forEach((col) => {\n const position = col.getColDef().lockPosition;\n if (position === \"right\") {\n right.push(col);\n } else if (position === \"left\" || position === true) {\n left.push(col);\n } else {\n normal.push(col);\n }\n });\n const isRtl = gos.get(\"enableRtl\");\n if (isRtl) {\n return [...right, ...normal, ...left];\n }\n return [...left, ...normal, ...right];\n}\nfunction doesMovePassMarryChildren(allColumnsCopy, gridBalancedTree) {\n let rulePassed = true;\n depthFirstOriginalTreeSearch(null, gridBalancedTree, (child) => {\n if (!isProvidedColumnGroup(child)) {\n return;\n }\n const columnGroup = child;\n const colGroupDef = columnGroup.getColGroupDef();\n const marryChildren = colGroupDef?.marryChildren;\n if (!marryChildren) {\n return;\n }\n const newIndexes = [];\n for (const col of columnGroup.getLeafColumns()) {\n const newColIndex = allColumnsCopy.indexOf(col);\n newIndexes.push(newColIndex);\n }\n const maxIndex = Math.max.apply(Math, newIndexes);\n const minIndex = Math.min.apply(Math, newIndexes);\n const spread = maxIndex - minIndex;\n const maxSpread = columnGroup.getLeafColumns().length - 1;\n if (spread > maxSpread) {\n rulePassed = false;\n }\n });\n return rulePassed;\n}\n\n// packages/ag-grid-community/src/columns/columnEventUtils.ts\nfunction getCommonValue(cols, valueGetter) {\n if (!cols || cols.length == 0) {\n return void 0;\n }\n const firstValue = valueGetter(cols[0]);\n for (let i = 1; i < cols.length; i++) {\n if (firstValue !== valueGetter(cols[i])) {\n return void 0;\n }\n }\n return firstValue;\n}\nfunction dispatchColumnPinnedEvent(eventSvc, changedColumns, source) {\n if (!changedColumns.length) {\n return;\n }\n const column = changedColumns.length === 1 ? changedColumns[0] : null;\n const pinned = getCommonValue(changedColumns, (col) => col.getPinned());\n eventSvc.dispatchEvent({\n type: \"columnPinned\",\n // mistake in typing, 'undefined' should be allowed, as 'null' means 'not pinned'\n pinned: pinned != null ? pinned : null,\n columns: changedColumns,\n column,\n source\n });\n}\nfunction dispatchColumnVisibleEvent(eventSvc, changedColumns, source) {\n if (!changedColumns.length) {\n return;\n }\n const column = changedColumns.length === 1 ? changedColumns[0] : null;\n const visible = getCommonValue(changedColumns, (col) => col.isVisible());\n eventSvc.dispatchEvent({\n type: \"columnVisible\",\n visible,\n columns: changedColumns,\n column,\n source\n });\n}\nfunction dispatchColumnChangedEvent(eventSvc, type, columns, source) {\n eventSvc.dispatchEvent({\n type,\n columns,\n column: columns && columns.length == 1 ? columns[0] : null,\n source\n });\n}\nfunction dispatchColumnResizedEvent(eventSvc, columns, finished, source, flexColumns = null) {\n if (columns?.length) {\n eventSvc.dispatchEvent({\n type: \"columnResized\",\n columns,\n column: columns.length === 1 ? columns[0] : null,\n flexColumns,\n finished,\n source\n });\n }\n}\n\n// packages/ag-grid-community/src/columns/columnStateUtils.ts\nfunction _applyColumnState(beans, params, source) {\n const {\n colModel,\n rowGroupColsSvc,\n pivotColsSvc,\n autoColSvc,\n selectionColSvc,\n colAnimation,\n visibleCols,\n pivotResultCols,\n environment,\n valueColsSvc,\n eventSvc,\n gos\n } = beans;\n const providedCols = colModel.getColDefCols() ?? [];\n const selectionCols = selectionColSvc?.getColumns();\n if (!providedCols.length && !selectionCols?.length) {\n return false;\n }\n if (params?.state && !params.state.forEach) {\n _warn(32);\n return false;\n }\n const syncColumnWithStateItem = (column, stateItem, rowGroupIndexes, pivotIndexes, autoCol) => {\n if (!column) {\n return;\n }\n const getValue = getValueFactory(stateItem, params.defaultState);\n const flex = getValue(\"flex\").value1;\n updateSomeColumnState(\n beans,\n column,\n getValue(\"hide\").value1,\n getValue(\"sort\").value1,\n getValue(\"sortIndex\").value1,\n getValue(\"pinned\").value1,\n flex,\n source\n );\n if (flex == null) {\n const width = getValue(\"width\").value1;\n if (width != null) {\n const minColWidth = column.getColDef().minWidth ?? environment.getDefaultColumnMinWidth();\n if (minColWidth != null && width >= minColWidth) {\n column.setActualWidth(width, source);\n }\n }\n }\n if (autoCol || !column.isPrimary()) {\n return;\n }\n valueColsSvc?.syncColumnWithState(column, source, getValue);\n rowGroupColsSvc?.syncColumnWithState(column, source, getValue, rowGroupIndexes);\n pivotColsSvc?.syncColumnWithState(column, source, getValue, pivotIndexes);\n };\n const applyStates = (states, existingColumns, getById2) => {\n const dispatchEventsFunc = _compareColumnStatesAndDispatchEvents(beans, source);\n const columnsWithNoState = existingColumns.slice();\n const rowGroupIndexes = {};\n const pivotIndexes = {};\n const autoColStates = [];\n const selectionColStates = [];\n const unmatchedAndAutoStates2 = [];\n let unmatchedCount2 = 0;\n const previousRowGroupCols = rowGroupColsSvc?.columns.slice() ?? [];\n const previousPivotCols = pivotColsSvc?.columns.slice() ?? [];\n for (const state of states) {\n const colId = state.colId;\n const isAutoGroupColumn = colId.startsWith(GROUP_AUTO_COLUMN_ID);\n if (isAutoGroupColumn) {\n autoColStates.push(state);\n unmatchedAndAutoStates2.push(state);\n continue;\n }\n if (isColumnSelectionCol(colId)) {\n selectionColStates.push(state);\n unmatchedAndAutoStates2.push(state);\n continue;\n }\n const column = getById2(colId);\n if (!column) {\n unmatchedAndAutoStates2.push(state);\n unmatchedCount2 += 1;\n } else {\n syncColumnWithStateItem(column, state, rowGroupIndexes, pivotIndexes, false);\n _removeFromArray(columnsWithNoState, column);\n }\n }\n const applyDefaultsFunc = (col) => syncColumnWithStateItem(col, null, rowGroupIndexes, pivotIndexes, false);\n columnsWithNoState.forEach(applyDefaultsFunc);\n rowGroupColsSvc?.sortColumns(comparatorByIndex.bind(rowGroupColsSvc, rowGroupIndexes, previousRowGroupCols));\n pivotColsSvc?.sortColumns(comparatorByIndex.bind(pivotColsSvc, pivotIndexes, previousPivotCols));\n colModel.refreshCols(false, source);\n const syncColStates = (getCol, colStates, columns = []) => {\n for (const stateItem of colStates) {\n const col = getCol(stateItem.colId);\n _removeFromArray(columns, col);\n syncColumnWithStateItem(col, stateItem, null, null, true);\n }\n columns.forEach(applyDefaultsFunc);\n };\n syncColStates(\n (colId) => autoColSvc?.getColumn(colId) ?? null,\n autoColStates,\n autoColSvc?.getColumns()?.slice()\n );\n syncColStates(\n (colId) => selectionColSvc?.getColumn(colId) ?? null,\n selectionColStates,\n selectionColSvc?.getColumns()?.slice()\n );\n orderLiveColsLikeState(params, colModel, gos);\n visibleCols.refresh(source);\n eventSvc.dispatchEvent({\n type: \"columnEverythingChanged\",\n source\n });\n dispatchEventsFunc();\n return { unmatchedAndAutoStates: unmatchedAndAutoStates2, unmatchedCount: unmatchedCount2 };\n };\n colAnimation?.start();\n let { unmatchedAndAutoStates, unmatchedCount } = applyStates(\n params.state || [],\n providedCols,\n (id) => colModel.getColDefCol(id)\n );\n if (unmatchedAndAutoStates.length > 0 || _exists(params.defaultState)) {\n const pivotResultColsList = pivotResultCols?.getPivotResultCols()?.list ?? [];\n unmatchedCount = applyStates(\n unmatchedAndAutoStates,\n pivotResultColsList,\n (id) => pivotResultCols?.getPivotResultCol(id) ?? null\n ).unmatchedCount;\n }\n colAnimation?.finish();\n return unmatchedCount === 0;\n}\nfunction _resetColumnState(beans, source) {\n const { colModel, autoColSvc, selectionColSvc, eventSvc, gos } = beans;\n const primaryCols = colModel.getColDefCols();\n if (!primaryCols?.length) {\n return;\n }\n const primaryColumnTree = colModel.getColDefColTree();\n const primaryColumns = _getColumnsFromTree(primaryColumnTree);\n const columnStates = [];\n let letRowGroupIndex = 1e3;\n let letPivotIndex = 1e3;\n const addColState = (col) => {\n const stateItem = getColumnStateFromColDef(col);\n if (_missing(stateItem.rowGroupIndex) && stateItem.rowGroup) {\n stateItem.rowGroupIndex = letRowGroupIndex++;\n }\n if (_missing(stateItem.pivotIndex) && stateItem.pivot) {\n stateItem.pivotIndex = letPivotIndex++;\n }\n columnStates.push(stateItem);\n };\n autoColSvc?.getColumns()?.forEach(addColState);\n selectionColSvc?.getColumns()?.forEach(addColState);\n primaryColumns?.forEach(addColState);\n _applyColumnState(beans, { state: columnStates }, source);\n const autoCols = autoColSvc?.getColumns() ?? [];\n const selectionCols = selectionColSvc?.getColumns() ?? [];\n const orderedCols = [...selectionCols, ...autoCols, ...primaryCols];\n const orderedColState = orderedCols.map((col) => ({ colId: col.colId }));\n _applyColumnState(beans, { state: orderedColState, applyOrder: true }, source);\n eventSvc.dispatchEvent(_addGridCommonParams(gos, { type: \"columnsReset\", source }));\n}\nfunction _compareColumnStatesAndDispatchEvents(beans, source) {\n const { rowGroupColsSvc, pivotColsSvc, valueColsSvc, colModel, sortSvc, eventSvc } = beans;\n const startState = {\n rowGroupColumns: rowGroupColsSvc?.columns.slice() ?? [],\n pivotColumns: pivotColsSvc?.columns.slice() ?? [],\n valueColumns: valueColsSvc?.columns.slice() ?? []\n };\n const columnStateBefore = _getColumnState(beans);\n const columnStateBeforeMap = {};\n for (const col of columnStateBefore) {\n columnStateBeforeMap[col.colId] = col;\n }\n return () => {\n const dispatchWhenListsDifferent = (eventType, colsBefore, colsAfter, idMapper) => {\n const beforeList = colsBefore.map(idMapper);\n const afterList = colsAfter.map(idMapper);\n const unchanged = _areEqual(beforeList, afterList);\n if (unchanged) {\n return;\n }\n const changes = new Set(colsBefore);\n for (const id of colsAfter) {\n if (!changes.delete(id)) {\n changes.add(id);\n }\n }\n const changesArr = [...changes];\n eventSvc.dispatchEvent({\n type: eventType,\n columns: changesArr,\n column: changesArr.length === 1 ? changesArr[0] : null,\n source\n });\n };\n const getChangedColumns = (changedPredicate) => {\n const changedColumns2 = [];\n colModel.forAllCols((column) => {\n const colStateBefore = columnStateBeforeMap[column.getColId()];\n if (colStateBefore && changedPredicate(colStateBefore, column)) {\n changedColumns2.push(column);\n }\n });\n return changedColumns2;\n };\n const columnIdMapper = (c) => c.getColId();\n dispatchWhenListsDifferent(\n \"columnRowGroupChanged\",\n startState.rowGroupColumns,\n rowGroupColsSvc?.columns ?? [],\n columnIdMapper\n );\n dispatchWhenListsDifferent(\n \"columnPivotChanged\",\n startState.pivotColumns,\n pivotColsSvc?.columns ?? [],\n columnIdMapper\n );\n const valueChangePredicate = (cs, c) => {\n const oldActive = cs.aggFunc != null;\n const activeChanged = oldActive != c.isValueActive();\n const aggFuncChanged = oldActive && cs.aggFunc != c.getAggFunc();\n return activeChanged || aggFuncChanged;\n };\n const changedValues = getChangedColumns(valueChangePredicate);\n if (changedValues.length > 0) {\n dispatchColumnChangedEvent(eventSvc, \"columnValueChanged\", changedValues, source);\n }\n const resizeChangePredicate = (cs, c) => cs.width != c.getActualWidth();\n dispatchColumnResizedEvent(eventSvc, getChangedColumns(resizeChangePredicate), true, source);\n const pinnedChangePredicate = (cs, c) => cs.pinned != c.getPinned();\n dispatchColumnPinnedEvent(eventSvc, getChangedColumns(pinnedChangePredicate), source);\n const visibilityChangePredicate = (cs, c) => cs.hide == c.isVisible();\n dispatchColumnVisibleEvent(eventSvc, getChangedColumns(visibilityChangePredicate), source);\n const sortChangePredicate = (cs, c) => cs.sort != c.getSort() || cs.sortIndex != c.getSortIndex();\n const changedColumns = getChangedColumns(sortChangePredicate);\n if (changedColumns.length > 0) {\n sortSvc?.dispatchSortChangedEvents(source, changedColumns);\n }\n const colStateAfter = _getColumnState(beans);\n normaliseColumnMovedEventForColumnState(columnStateBefore, colStateAfter, source, colModel, eventSvc);\n };\n}\nfunction _getColumnState(beans) {\n const { colModel, rowGroupColsSvc, pivotColsSvc } = beans;\n const primaryCols = colModel.getColDefCols();\n if (_missing(primaryCols) || !colModel.isAlive()) {\n return [];\n }\n const rowGroupColumns = rowGroupColsSvc?.columns;\n const pivotColumns = pivotColsSvc?.columns;\n const res = [];\n const createStateItemFromColumn = (column) => {\n const rowGroupIndex = column.isRowGroupActive() && rowGroupColumns ? rowGroupColumns.indexOf(column) : null;\n const pivotIndex = column.isPivotActive() && pivotColumns ? pivotColumns.indexOf(column) : null;\n const aggFunc = column.isValueActive() ? column.getAggFunc() : null;\n const sort = column.getSort() != null ? column.getSort() : null;\n const sortIndex = column.getSortIndex() != null ? column.getSortIndex() : null;\n res.push({\n colId: column.getColId(),\n width: column.getActualWidth(),\n hide: !column.isVisible(),\n pinned: column.getPinned(),\n sort,\n sortIndex,\n aggFunc,\n rowGroup: column.isRowGroupActive(),\n rowGroupIndex,\n pivot: column.isPivotActive(),\n pivotIndex,\n flex: column.getFlex() ?? null\n });\n };\n colModel.forAllCols((col) => createStateItemFromColumn(col));\n const colIdToGridIndexMap = new Map(\n colModel.getCols().map((col, index) => [col.getColId(), index])\n );\n res.sort((itemA, itemB) => {\n const posA = colIdToGridIndexMap.has(itemA.colId) ? colIdToGridIndexMap.get(itemA.colId) : -1;\n const posB = colIdToGridIndexMap.has(itemB.colId) ? colIdToGridIndexMap.get(itemB.colId) : -1;\n return posA - posB;\n });\n return res;\n}\nfunction getColumnStateFromColDef(column) {\n const getValueOrNull = (a, b) => a != null ? a : b != null ? b : null;\n const colDef = column.getColDef();\n const sort = getValueOrNull(colDef.sort, colDef.initialSort);\n const sortIndex = getValueOrNull(colDef.sortIndex, colDef.initialSortIndex);\n const hide = getValueOrNull(colDef.hide, colDef.initialHide);\n const pinned = getValueOrNull(colDef.pinned, colDef.initialPinned);\n const width = getValueOrNull(colDef.width, colDef.initialWidth);\n const flex = getValueOrNull(colDef.flex, colDef.initialFlex);\n let rowGroupIndex = getValueOrNull(colDef.rowGroupIndex, colDef.initialRowGroupIndex);\n let rowGroup = getValueOrNull(colDef.rowGroup, colDef.initialRowGroup);\n if (rowGroupIndex == null && !rowGroup) {\n rowGroupIndex = null;\n rowGroup = null;\n }\n let pivotIndex = getValueOrNull(colDef.pivotIndex, colDef.initialPivotIndex);\n let pivot = getValueOrNull(colDef.pivot, colDef.initialPivot);\n if (pivotIndex == null && !pivot) {\n pivotIndex = null;\n pivot = null;\n }\n const aggFunc = getValueOrNull(colDef.aggFunc, colDef.initialAggFunc);\n return {\n colId: column.getColId(),\n sort,\n sortIndex,\n hide,\n pinned,\n width,\n flex,\n rowGroup,\n rowGroupIndex,\n pivot,\n pivotIndex,\n aggFunc\n };\n}\nfunction orderLiveColsLikeState(params, colModel, gos) {\n if (!params.applyOrder || !params.state) {\n return;\n }\n const colIds = [];\n for (const item of params.state) {\n if (item.colId != null) {\n colIds.push(item.colId);\n }\n }\n sortColsLikeKeys(colModel.cols, colIds, colModel, gos);\n}\nfunction sortColsLikeKeys(cols, colIds, colModel, gos) {\n if (cols == null) {\n return;\n }\n let newOrder = [];\n const processedColIds = {};\n for (const colId of colIds) {\n if (processedColIds[colId]) {\n continue;\n }\n const col = cols.map[colId];\n if (col) {\n newOrder.push(col);\n processedColIds[colId] = true;\n }\n }\n let autoGroupInsertIndex = 0;\n for (const col of cols.list) {\n const colId = col.getColId();\n const alreadyProcessed = processedColIds[colId] != null;\n if (alreadyProcessed) {\n continue;\n }\n const isAutoGroupCol = colId.startsWith(GROUP_AUTO_COLUMN_ID);\n if (isAutoGroupCol) {\n newOrder.splice(autoGroupInsertIndex++, 0, col);\n } else {\n newOrder.push(col);\n }\n }\n newOrder = placeLockedColumns(newOrder, gos);\n if (!doesMovePassMarryChildren(newOrder, colModel.getColTree())) {\n _warn(39);\n return;\n }\n cols.list = newOrder;\n}\nfunction normaliseColumnMovedEventForColumnState(colStateBefore, colStateAfter, source, colModel, eventSvc) {\n const colStateAfterMapped = {};\n for (const s of colStateAfter) {\n colStateAfterMapped[s.colId] = s;\n }\n const colsIntersectIds = {};\n for (const s of colStateBefore) {\n if (colStateAfterMapped[s.colId]) {\n colsIntersectIds[s.colId] = true;\n }\n }\n const beforeFiltered = colStateBefore.filter((c) => colsIntersectIds[c.colId]);\n const afterFiltered = colStateAfter.filter((c) => colsIntersectIds[c.colId]);\n const movedColumns = [];\n afterFiltered.forEach((csAfter, index) => {\n const csBefore = beforeFiltered?.[index];\n if (csBefore && csBefore.colId !== csAfter.colId) {\n const gridCol = colModel.getCol(csBefore.colId);\n if (gridCol) {\n movedColumns.push(gridCol);\n }\n }\n });\n if (!movedColumns.length) {\n return;\n }\n eventSvc.dispatchEvent({\n type: \"columnMoved\",\n columns: movedColumns,\n column: movedColumns.length === 1 ? movedColumns[0] : null,\n finished: true,\n source\n });\n}\nvar comparatorByIndex = (indexes, oldList, colA, colB) => {\n const indexA = indexes[colA.getId()];\n const indexB = indexes[colB.getId()];\n const aHasIndex = indexA != null;\n const bHasIndex = indexB != null;\n if (aHasIndex && bHasIndex) {\n return indexA - indexB;\n }\n if (aHasIndex) {\n return -1;\n }\n if (bHasIndex) {\n return 1;\n }\n const oldIndexA = oldList.indexOf(colA);\n const oldIndexB = oldList.indexOf(colB);\n const aHasOldIndex = oldIndexA >= 0;\n const bHasOldIndex = oldIndexB >= 0;\n if (aHasOldIndex && bHasOldIndex) {\n return oldIndexA - oldIndexB;\n }\n if (aHasOldIndex) {\n return -1;\n }\n return 1;\n};\n\n// packages/ag-grid-community/src/columns/columnModel.ts\nvar ColumnModel = class extends BeanStub {\n constructor() {\n super(...arguments);\n this.beanName = \"colModel\";\n // if pivotMode is on, however pivot results are NOT shown if no pivot columns are set\n this.pivotMode = false;\n this.ready = false;\n this.changeEventsDispatching = false;\n }\n postConstruct() {\n this.pivotMode = this.gos.get(\"pivotMode\");\n this.addManagedPropertyListeners(\n [\n \"groupDisplayType\",\n \"treeData\",\n \"treeDataDisplayType\",\n \"groupHideOpenParents\",\n \"rowNumbers\",\n \"hidePaddedHeaderRows\"\n ],\n (event) => this.refreshAll(_convertColumnEventSourceType(event.source))\n );\n this.addManagedPropertyListeners(\n [\"defaultColDef\", \"defaultColGroupDef\", \"columnTypes\", \"suppressFieldDotNotation\"],\n this.recreateColumnDefs.bind(this)\n );\n this.addManagedPropertyListener(\n \"pivotMode\",\n (event) => this.setPivotMode(this.gos.get(\"pivotMode\"), _convertColumnEventSourceType(event.source))\n );\n }\n // called from SyncService, when grid has finished initialising\n createColsFromColDefs(source) {\n const { beans } = this;\n const {\n valueCache,\n colAutosize,\n rowGroupColsSvc,\n pivotColsSvc,\n valueColsSvc,\n visibleCols,\n eventSvc,\n groupHierarchyColSvc\n } = beans;\n const dispatchEventsFunc = this.colDefs ? _compareColumnStatesAndDispatchEvents(beans, source) : void 0;\n valueCache?.expire();\n const oldCols = this.colDefCols?.list;\n const oldTree = this.colDefCols?.tree;\n const newTree = _createColumnTree(beans, this.colDefs, true, oldTree, source);\n _destroyColumnTree(beans, this.colDefCols?.tree, newTree.columnTree);\n const tree = newTree.columnTree;\n const treeDepth = newTree.treeDepth;\n const list = _getColumnsFromTree(tree);\n const map = {};\n for (const col of list) {\n map[col.getId()] = col;\n }\n this.colDefCols = { tree, treeDepth, list, map };\n this.createColumnsForService([groupHierarchyColSvc], this.colDefCols, source);\n rowGroupColsSvc?.extractCols(source, oldCols);\n pivotColsSvc?.extractCols(source, oldCols);\n valueColsSvc?.extractCols(source, oldCols);\n this.ready = true;\n this.refreshCols(true, source);\n visibleCols.refresh(source);\n eventSvc.dispatchEvent({\n type: \"columnEverythingChanged\",\n source\n });\n if (dispatchEventsFunc) {\n this.changeEventsDispatching = true;\n dispatchEventsFunc();\n this.changeEventsDispatching = false;\n }\n eventSvc.dispatchEvent({\n type: \"newColumnsLoaded\",\n source\n });\n if (source === \"gridInitializing\") {\n colAutosize?.applyAutosizeStrategy();\n }\n }\n // called from: buildAutoGroupColumns (events 'groupDisplayType', 'treeData', 'treeDataDisplayType', 'groupHideOpenParents')\n // createColsFromColDefs (recreateColumnDefs, setColumnsDefs),\n // setPivotMode, applyColumnState,\n // functionColsService.setPrimaryColList, functionColsService.updatePrimaryColList,\n // pivotResultCols.setPivotResultCols\n refreshCols(newColDefs, source) {\n if (!this.colDefCols) {\n return;\n }\n const prevColTree = this.cols?.tree;\n this.saveColOrder();\n const {\n autoColSvc,\n selectionColSvc,\n rowNumbersSvc,\n quickFilter,\n pivotResultCols,\n showRowGroupCols,\n rowAutoHeight,\n visibleCols,\n colViewport,\n eventSvc\n } = this.beans;\n const cols = this.selectCols(pivotResultCols, this.colDefCols);\n this.createColumnsForService([autoColSvc, selectionColSvc, rowNumbersSvc], cols, source);\n const shouldSortNewColDefs = _shouldMaintainColumnOrder(this.gos, this.showingPivotResult);\n if (!newColDefs || shouldSortNewColDefs) {\n this.restoreColOrder(cols);\n }\n this.positionLockedCols(cols);\n showRowGroupCols?.refresh();\n quickFilter?.refreshCols();\n this.setColSpanActive();\n rowAutoHeight?.setAutoHeightActive(cols);\n visibleCols.clear();\n colViewport.clear();\n const dispatchChangedEvent = !_areEqual(prevColTree, this.cols.tree);\n if (dispatchChangedEvent) {\n eventSvc.dispatchEvent({\n type: \"gridColumnsChanged\"\n });\n }\n }\n createColumnsForService(services, cols, source) {\n for (const service of services) {\n if (!service) {\n continue;\n }\n service.createColumns(\n cols,\n (updateOrder) => {\n this.lastOrder = updateOrder(this.lastOrder);\n this.lastPivotOrder = updateOrder(this.lastPivotOrder);\n },\n source\n );\n service.addColumns(cols);\n }\n }\n selectCols(pivotResultColsSvc, colDefCols) {\n const pivotResultCols = pivotResultColsSvc?.getPivotResultCols() ?? null;\n this.showingPivotResult = pivotResultCols != null;\n const { map, list, tree, treeDepth } = pivotResultCols ?? colDefCols;\n this.cols = {\n list: list.slice(),\n map: { ...map },\n tree: tree.slice(),\n treeDepth\n };\n if (pivotResultCols) {\n const hasSameColumns = pivotResultCols.list.some((col) => this.cols?.map[col.getColId()] !== void 0);\n if (!hasSameColumns) {\n this.lastPivotOrder = null;\n }\n }\n return this.cols;\n }\n getColsToShow() {\n if (!this.cols) {\n return [];\n }\n const { valueColsSvc, selectionColSvc, gos } = this.beans;\n const showAutoGroupAndValuesOnly = this.isPivotMode() && !this.showingPivotResult;\n const showSelectionColumn = selectionColSvc?.isSelectionColumnEnabled();\n const showRowNumbers = gos.get(\"rowNumbers\");\n const valueColumns = valueColsSvc?.columns;\n const res = this.cols.list.filter((col) => {\n const isAutoGroupCol = isColumnGroupAutoCol(col);\n if (showAutoGroupAndValuesOnly) {\n const isValueCol = valueColumns?.includes(col);\n return isAutoGroupCol || isValueCol || showSelectionColumn && isColumnSelectionCol(col) || showRowNumbers && isRowNumberCol(col);\n } else {\n return isAutoGroupCol || col.isVisible();\n }\n });\n return res;\n }\n // on events 'groupDisplayType', 'treeData', 'treeDataDisplayType', 'groupHideOpenParents'\n refreshAll(source) {\n if (!this.ready) {\n return;\n }\n this.refreshCols(false, source);\n this.beans.visibleCols.refresh(source);\n }\n setColsVisible(keys, visible = false, source) {\n _applyColumnState(\n this.beans,\n {\n state: keys.map((key) => ({\n colId: typeof key === \"string\" ? key : key.getColId(),\n hide: !visible\n }))\n },\n source\n );\n }\n /**\n * Restores provided columns order to the previous order in this.lastPivotOrder / this.lastOrder\n * If columns are not in the last order:\n * - Check column groups, and apply column after the last column in the lowest shared group\n * - If no sibling is found, apply the column at the end of the cols\n */\n restoreColOrder(cols) {\n const lastOrder = this.showingPivotResult ? this.lastPivotOrder : this.lastOrder;\n if (!lastOrder) {\n return;\n }\n const preservedOrder = lastOrder.filter((col) => cols.map[col.getId()] != null);\n if (preservedOrder.length === 0) {\n return;\n }\n if (preservedOrder.length === cols.list.length) {\n cols.list = preservedOrder;\n return;\n }\n const hasSiblings = (col) => {\n const ancestor = col.getOriginalParent();\n if (!ancestor) {\n return false;\n }\n const children = ancestor.getChildren();\n if (children.length > 1) {\n return true;\n }\n return hasSiblings(ancestor);\n };\n if (!preservedOrder.some((col) => hasSiblings(col))) {\n const preservedOrderSet = new Set(preservedOrder);\n for (const col of cols.list) {\n if (!preservedOrderSet.has(col)) {\n preservedOrder.push(col);\n }\n }\n cols.list = preservedOrder;\n return;\n }\n const colPositionMap = /* @__PURE__ */ new Map();\n for (let i = 0; i < preservedOrder.length; i++) {\n const col = preservedOrder[i];\n colPositionMap.set(col, i);\n }\n const additionalCols = cols.list.filter((col) => !colPositionMap.has(col));\n if (additionalCols.length === 0) {\n cols.list = preservedOrder;\n return;\n }\n const getPreviousSibling = (col, group) => {\n const parent = group ? group.getOriginalParent() : col.getOriginalParent();\n if (!parent) {\n return null;\n }\n let highestIdx = null;\n let highestSibling = null;\n for (const child of parent.getChildren()) {\n if (child === group || child === col) {\n continue;\n }\n if (child instanceof AgColumn) {\n const colIdx = colPositionMap.get(child);\n if (colIdx == null) {\n continue;\n }\n if (highestIdx == null || highestIdx < colIdx) {\n highestIdx = colIdx;\n highestSibling = child;\n }\n continue;\n }\n child.forEachLeafColumn((leafCol) => {\n const colIdx = colPositionMap.get(leafCol);\n if (colIdx == null) {\n return;\n }\n if (highestIdx == null || highestIdx < colIdx) {\n highestIdx = colIdx;\n highestSibling = leafCol;\n }\n });\n }\n if (highestSibling == null) {\n return getPreviousSibling(col, parent);\n }\n return highestSibling;\n };\n const noSiblingsAvailable = [];\n const previousSiblingPosMap = /* @__PURE__ */ new Map();\n for (const col of additionalCols) {\n const prevSiblingIdx = getPreviousSibling(col, null);\n if (prevSiblingIdx == null) {\n noSiblingsAvailable.push(col);\n continue;\n }\n const prev = previousSiblingPosMap.get(prevSiblingIdx);\n if (prev === void 0) {\n previousSiblingPosMap.set(prevSiblingIdx, col);\n } else if (Array.isArray(prev)) {\n prev.push(col);\n } else {\n previousSiblingPosMap.set(prevSiblingIdx, [prev, col]);\n }\n }\n const result = new Array(cols.list.length);\n let resultPointer = result.length - 1;\n for (let i = noSiblingsAvailable.length - 1; i >= 0; i--) {\n result[resultPointer--] = noSiblingsAvailable[i];\n }\n for (let i = preservedOrder.length - 1; i >= 0; i--) {\n const nextCol = preservedOrder[i];\n const extraCols = previousSiblingPosMap.get(nextCol);\n if (extraCols) {\n if (Array.isArray(extraCols)) {\n for (let x = extraCols.length - 1; x >= 0; x--) {\n const col = extraCols[x];\n result[resultPointer--] = col;\n }\n } else {\n result[resultPointer--] = extraCols;\n }\n }\n result[resultPointer--] = nextCol;\n }\n cols.list = result;\n }\n positionLockedCols(cols) {\n cols.list = placeLockedColumns(cols.list, this.gos);\n }\n saveColOrder() {\n if (this.showingPivotResult) {\n this.lastPivotOrder = this.cols?.list ?? null;\n } else {\n this.lastOrder = this.cols?.list ?? null;\n }\n }\n getColumnDefs(sorted) {\n return this.colDefCols && this.beans.colDefFactory?.getColumnDefs(\n this.colDefCols.list,\n this.showingPivotResult,\n this.lastOrder,\n this.cols?.list ?? [],\n sorted\n );\n }\n setColSpanActive() {\n this.colSpanActive = !!this.cols?.list.some((col) => col.getColDef().colSpan != null);\n }\n isPivotMode() {\n return this.pivotMode;\n }\n setPivotMode(pivotMode, source) {\n if (pivotMode === this.pivotMode) {\n return;\n }\n this.pivotMode = pivotMode;\n if (!this.ready) {\n return;\n }\n this.refreshCols(false, source);\n const { visibleCols, eventSvc } = this.beans;\n visibleCols.refresh(source);\n eventSvc.dispatchEvent({\n type: \"columnPivotModeChanged\"\n });\n }\n // + clientSideRowModel\n isPivotActive() {\n const pivotColumns = this.beans.pivotColsSvc?.columns;\n return this.pivotMode && !!pivotColumns?.length;\n }\n // called when dataTypes change\n recreateColumnDefs(e) {\n if (!this.cols) {\n return;\n }\n this.beans.autoColSvc?.updateColumns(e);\n const source = _convertColumnEventSourceType(e.source);\n this.createColsFromColDefs(source);\n }\n setColumnDefs(columnDefs, source) {\n this.colDefs = columnDefs;\n this.createColsFromColDefs(source);\n }\n destroy() {\n _destroyColumnTree(this.beans, this.colDefCols?.tree);\n super.destroy();\n }\n getColTree() {\n return this.cols?.tree ?? [];\n }\n // + columnSelectPanel\n getColDefColTree() {\n return this.colDefCols?.tree ?? [];\n }\n // + clientSideRowController -> sorting, building quick filter text\n // + headerRenderer -> sorting (clearing icon)\n getColDefCols() {\n return this.colDefCols?.list ?? null;\n }\n // + moveColumnController\n getCols() {\n return this.cols?.list ?? [];\n }\n forAllCols(callback) {\n const { pivotResultCols, autoColSvc, selectionColSvc, groupHierarchyColSvc } = this.beans;\n _forAll(this.colDefCols?.list, callback);\n _forAll(autoColSvc?.columns?.list, callback);\n _forAll(selectionColSvc?.columns?.list, callback);\n _forAll(groupHierarchyColSvc?.columns?.list, callback);\n _forAll(pivotResultCols?.getPivotResultCols()?.list, callback);\n }\n getColsForKeys(keys) {\n if (!keys) {\n return [];\n }\n return keys.map((key) => this.getCol(key)).filter((col) => col != null);\n }\n getColDefCol(key) {\n if (!this.colDefCols?.list) {\n return null;\n }\n return this.getColFromCollection(key, this.colDefCols);\n }\n getCol(key) {\n if (key == null) {\n return null;\n }\n return this.getColFromCollection(key, this.cols);\n }\n /**\n * Get column exclusively by ID.\n *\n * Note getCol/getColFromCollection have poor performance when col has been removed.\n */\n getColById(key) {\n return this.cols?.map[key] ?? null;\n }\n getColFromCollection(key, cols) {\n if (cols == null) {\n return null;\n }\n const { map, list } = cols;\n if (typeof key == \"string\" && map[key]) {\n return map[key];\n }\n for (let i = 0; i < list.length; i++) {\n if (_columnsMatch(list[i], key)) {\n return list[i];\n }\n }\n const { autoColSvc, selectionColSvc, groupHierarchyColSvc } = this.beans;\n return autoColSvc?.getColumn(key) ?? selectionColSvc?.getColumn(key) ?? groupHierarchyColSvc?.getColumn(key) ?? null;\n }\n};\n\n// packages/ag-grid-community/src/columns/baseColsService.ts\nvar BaseColsService = class extends BeanStub {\n constructor() {\n super(...arguments);\n this.dispatchColumnChangedEvent = dispatchColumnChangedEvent;\n this.columns = [];\n this.columnIndexMap = {};\n this.updateIndexMap = () => {\n this.columnIndexMap = {};\n this.columns.forEach((col, index) => this.columnIndexMap[col.getId()] = index);\n };\n }\n wireBeans(beans) {\n this.colModel = beans.colModel;\n this.aggFuncSvc = beans.aggFuncSvc;\n this.visibleCols = beans.visibleCols;\n this.groupHierarchCols = beans.groupHierarchyColSvc;\n }\n sortColumns(compareFn) {\n const { groupHierarchCols } = this;\n this.columns.sort((a, b) => groupHierarchCols?.compareVirtualColumns(a, b) ?? compareFn(a, b));\n this.updateIndexMap();\n }\n setColumns(colKeys, source) {\n this.setColList(colKeys, this.columns, this.eventName, true, true, this.columnProcessors.set, source);\n }\n addColumns(colKeys, source) {\n this.updateColList(colKeys, this.columns, true, true, this.columnProcessors.add, this.eventName, source);\n }\n removeColumns(colKeys, source) {\n this.updateColList(colKeys, this.columns, false, true, this.columnProcessors.remove, this.eventName, source);\n }\n getColumnIndex(colId) {\n return this.columnIndexMap[colId];\n }\n setColList(colKeys = [], masterList, eventName, detectOrderChange, autoGroupsNeedBuilding, columnCallback, source) {\n const gridColumns = this.colModel.getCols();\n if (!gridColumns || gridColumns.length === 0) {\n return;\n }\n const changes = /* @__PURE__ */ new Map();\n masterList.forEach((col, idx) => changes.set(col, idx));\n masterList.length = 0;\n for (const key of colKeys) {\n const column = this.colModel.getColDefCol(key);\n if (column) {\n masterList.push(column);\n }\n }\n masterList.forEach((col, idx) => {\n const oldIndex = changes.get(col);\n if (oldIndex === void 0) {\n changes.set(col, 0);\n return;\n }\n if (detectOrderChange && oldIndex !== idx) {\n return;\n }\n changes.delete(col);\n });\n this.updateIndexMap();\n const primaryCols = this.colModel.getColDefCols();\n for (const column of primaryCols ?? []) {\n const added = masterList.indexOf(column) >= 0;\n columnCallback(column, added, source);\n }\n autoGroupsNeedBuilding && this.colModel.refreshCols(false, source);\n this.visibleCols.refresh(source);\n this.dispatchColumnChangedEvent(this.eventSvc, eventName, [...changes.keys()], source);\n }\n updateColList(keys = [], masterList, actionIsAdd, autoGroupsNeedBuilding, columnCallback, eventType, source) {\n if (!keys || keys.length === 0) {\n return;\n }\n let atLeastOne = false;\n const updatedCols = /* @__PURE__ */ new Set();\n for (const key of keys) {\n if (!key) {\n continue;\n }\n const columnToAdd = this.colModel.getColDefCol(key);\n if (!columnToAdd) {\n continue;\n }\n updatedCols.add(columnToAdd);\n if (actionIsAdd) {\n if (masterList.indexOf(columnToAdd) >= 0) {\n continue;\n }\n masterList.push(columnToAdd);\n } else {\n const currentIndex = masterList.indexOf(columnToAdd);\n if (currentIndex < 0) {\n continue;\n }\n for (let i = currentIndex + 1; i < masterList.length; i++) {\n updatedCols.add(masterList[i]);\n }\n _removeFromArray(masterList, columnToAdd);\n }\n columnCallback(columnToAdd, actionIsAdd, source);\n atLeastOne = true;\n }\n if (!atLeastOne) {\n return;\n }\n this.updateIndexMap();\n if (autoGroupsNeedBuilding) {\n this.colModel.refreshCols(false, source);\n }\n this.visibleCols.refresh(source);\n const eventColumns = Array.from(updatedCols);\n this.eventSvc.dispatchEvent({\n type: eventType,\n columns: eventColumns,\n column: eventColumns.length === 1 ? eventColumns[0] : null,\n source\n });\n }\n extractCols(source, oldProvidedCols = []) {\n const previousCols = this.columns;\n const colsWithIndex = [];\n const colsWithValue = [];\n const { setFlagFunc, getIndexFunc, getInitialIndexFunc, getValueFunc, getInitialValueFunc } = this.columnExtractors;\n const primaryCols = this.colModel.getColDefCols();\n for (const col of primaryCols ?? []) {\n const colIsNew = !oldProvidedCols.includes(col);\n const colDef = col.getColDef();\n const value = getValueFunc(colDef);\n const initialValue = getInitialValueFunc(colDef);\n const index = getIndexFunc(colDef);\n const initialIndex = getInitialIndexFunc(colDef);\n let include;\n const valuePresent = value !== void 0;\n const indexPresent = index !== void 0;\n const initialValuePresent = initialValue !== void 0;\n const initialIndexPresent = initialIndex !== void 0;\n if (valuePresent) {\n include = value;\n } else if (indexPresent) {\n if (index === null) {\n include = false;\n } else {\n include = index >= 0;\n }\n } else if (colIsNew) {\n if (initialValuePresent) {\n include = initialValue;\n } else if (initialIndexPresent) {\n include = initialIndex != null && initialIndex >= 0;\n } else {\n include = false;\n }\n } else {\n include = previousCols.indexOf(col) >= 0;\n }\n if (include) {\n const useIndex = colIsNew ? index != null || initialIndex != null : index != null;\n useIndex ? colsWithIndex.push(col) : colsWithValue.push(col);\n }\n }\n const getIndexForCol = (col) => {\n const colDef = col.getColDef();\n return getIndexFunc(colDef) ?? getInitialIndexFunc(colDef);\n };\n colsWithIndex.sort((colA, colB) => getIndexForCol(colA) - getIndexForCol(colB));\n const res = [];\n const groupHierarchCols = this.groupHierarchCols;\n const addCol = (col) => {\n if (groupHierarchCols) {\n groupHierarchCols.expandColumnInto(res, col);\n } else {\n res.push(col);\n }\n };\n colsWithIndex.forEach(addCol);\n for (const col of previousCols) {\n if (colsWithValue.indexOf(col) >= 0) {\n addCol(col);\n }\n }\n for (const col of colsWithValue) {\n if (res.indexOf(col) < 0) {\n addCol(col);\n }\n }\n for (const col of previousCols) {\n if (res.indexOf(col) < 0) {\n setFlagFunc(col, false, source);\n }\n }\n for (const col of res) {\n if (previousCols.indexOf(col) < 0) {\n setFlagFunc(col, true, source);\n }\n }\n this.columns = res;\n this.updateIndexMap();\n return this.columns;\n }\n restoreColumnOrder(columnStateAccumulator, incomingColumnState) {\n const colList = this.columns;\n const primaryCols = this.colModel.getColDefCols();\n if (!colList.length || !primaryCols) {\n return columnStateAccumulator;\n }\n const updatedColIdArray = Object.keys(incomingColumnState);\n const updatedColIds = new Set(updatedColIdArray);\n const newColIds = new Set(updatedColIdArray);\n const allColIds = new Set(\n colList.map((column) => {\n const colId = column.getColId();\n newColIds.delete(colId);\n return colId;\n }).concat(updatedColIdArray)\n );\n const colIdsInOriginalOrder = [];\n const originalOrderMap = {};\n let orderIndex = 0;\n for (let i = 0; i < primaryCols.length; i++) {\n const colId = primaryCols[i].getColId();\n if (allColIds.has(colId)) {\n colIdsInOriginalOrder.push(colId);\n originalOrderMap[colId] = orderIndex++;\n }\n }\n let index = 1e3;\n let hasAddedNewCols = false;\n let lastIndex = 0;\n const enableProp = this.columnOrdering.enableProp;\n const initialEnableProp = this.columnOrdering.initialEnableProp;\n const indexProp = this.columnOrdering.indexProp;\n const initialIndexProp = this.columnOrdering.initialIndexProp;\n const processPrecedingNewCols = (colId) => {\n const originalOrderIndex = originalOrderMap[colId];\n for (let i = lastIndex; i < originalOrderIndex; i++) {\n const newColId = colIdsInOriginalOrder[i];\n if (newColIds.has(newColId)) {\n incomingColumnState[newColId][indexProp] = index++;\n newColIds.delete(newColId);\n }\n }\n lastIndex = originalOrderIndex;\n };\n for (const column of colList) {\n const colId = column.getColId();\n if (updatedColIds.has(colId)) {\n processPrecedingNewCols(colId);\n incomingColumnState[colId][indexProp] = index++;\n } else {\n const colDef = column.getColDef();\n const missingIndex = colDef[indexProp] === null || colDef[indexProp] === void 0 && colDef[initialIndexProp] == null;\n if (missingIndex) {\n if (!hasAddedNewCols) {\n const propEnabled = colDef[enableProp] || colDef[enableProp] === void 0 && colDef[initialEnableProp];\n if (propEnabled) {\n processPrecedingNewCols(colId);\n } else {\n for (const newColId of newColIds) {\n incomingColumnState[newColId][indexProp] = index + originalOrderMap[newColId];\n }\n index += colIdsInOriginalOrder.length;\n hasAddedNewCols = true;\n }\n }\n if (!columnStateAccumulator[colId]) {\n columnStateAccumulator[colId] = { colId };\n }\n columnStateAccumulator[colId][indexProp] = index++;\n }\n }\n }\n return columnStateAccumulator;\n }\n};\n\n// packages/ag-grid-community/src/columns/groupInstanceIdCreator.ts\nvar GroupInstanceIdCreator = class {\n constructor() {\n // this map contains keys to numbers, so we remember what the last call was\n this.existingIds = {};\n }\n getInstanceIdForKey(key) {\n const lastResult = this.existingIds[key];\n let result;\n if (typeof lastResult !== \"number\") {\n result = 0;\n } else {\n result = lastResult + 1;\n }\n this.existingIds[key] = result;\n return result;\n }\n};\n\n// packages/ag-grid-community/src/components/emptyBean.ts\nvar EmptyBean = class extends BeanStub {\n};\nfunction setupCompBean(ctrl, ctx, compBean) {\n if (compBean) {\n ctrl.addDestroyFunc(() => ctx.destroyBean(compBean));\n }\n return compBean ?? ctrl;\n}\n\n// packages/ag-grid-community/src/agStack/interfaces/agComponent.ts\nvar RefPlaceholder = null;\nfunction _isComponent(item) {\n return typeof item?.getGui === \"function\";\n}\n\n// packages/ag-grid-community/src/agStack/core/cssClassManager.ts\nvar CssClassManager = class {\n constructor(getGui) {\n // to minimise DOM hits, we only apply CSS classes if they have changed. as adding a CSS class that is already\n // there, or removing one that wasn't present, all takes CPU.\n this.cssClassStates = {};\n this.getGui = getGui;\n }\n toggleCss(className, addOrRemove) {\n if (!className) {\n return;\n }\n if (className.indexOf(\" \") >= 0) {\n const list = (className || \"\").split(\" \");\n if (list.length > 1) {\n for (const cls of list) {\n this.toggleCss(cls, addOrRemove);\n }\n return;\n }\n }\n const updateNeeded = this.cssClassStates[className] !== addOrRemove;\n if (updateNeeded && className.length) {\n this.getGui()?.classList.toggle(className, addOrRemove);\n this.cssClassStates[className] = addOrRemove;\n }\n }\n};\n\n// packages/ag-grid-community/src/agStack/core/agComponentStub.ts\nvar compIdSequence = 0;\nvar AgComponentStub = class extends AgBeanStub {\n constructor(templateOrParams, componentSelectors) {\n super();\n this.suppressDataRefValidation = false;\n // if false, then CSS class \"ag-hidden\" is applied, which sets \"display: none\"\n this.displayed = true;\n // if false, then CSS class \"ag-invisible\" is applied, which sets \"visibility: hidden\"\n this.visible = true;\n // unique id for this row component. this is used for getting a reference to the HTML dom.\n // we cannot use the RowNode id as this is not unique (due to animation, old rows can be lying\n // around as we create a new rowComp instance for the same row node).\n this.compId = compIdSequence++;\n this.cssManager = new CssClassManager(() => this.eGui);\n this.componentSelectors = new Map((componentSelectors ?? []).map((comp) => [comp.selector, comp]));\n if (templateOrParams) {\n this.setTemplate(templateOrParams);\n }\n }\n preConstruct() {\n this.wireTemplate(this.getGui());\n const debugId = \"component-\" + Object.getPrototypeOf(this)?.constructor?.name;\n for (const css of this.css ?? []) {\n this.beans.environment.addGlobalCSS(css, debugId);\n }\n }\n wireTemplate(element, paramsMap) {\n if (element && this.gos) {\n this.applyElementsToComponent(element);\n this.createChildComponentsFromTags(element, paramsMap);\n }\n }\n getCompId() {\n return this.compId;\n }\n getDataRefAttribute(element) {\n if (element.getAttribute) {\n return element.getAttribute(DataRefAttribute);\n }\n return null;\n }\n applyElementsToComponent(element, elementRef, paramsMap, newComponent = null) {\n if (elementRef === void 0) {\n elementRef = this.getDataRefAttribute(element);\n }\n if (elementRef) {\n const current = this[elementRef];\n if (current === RefPlaceholder) {\n this[elementRef] = newComponent ?? element;\n } else {\n const usedAsParamRef = paramsMap?.[elementRef];\n if (!this.suppressDataRefValidation && !usedAsParamRef) {\n throw new Error(`data-ref: ${elementRef} on ${this.constructor.name} with ${current}`);\n }\n }\n }\n }\n // for registered components only, eg creates AgCheckbox instance from ag-checkbox HTML tag\n createChildComponentsFromTags(parentNode, paramsMap) {\n const childNodeList = [];\n for (const childNode of parentNode.childNodes ?? []) {\n childNodeList.push(childNode);\n }\n for (const childNode of childNodeList) {\n if (!(childNode instanceof HTMLElement)) {\n continue;\n }\n const childComp = this.createComponentFromElement(\n childNode,\n (childComp2) => {\n const childGui = childComp2.getGui();\n if (childGui) {\n for (const attr of childNode.attributes ?? []) {\n childGui.setAttribute(attr.name, attr.value);\n }\n }\n },\n paramsMap\n );\n if (childComp) {\n if (childComp.addItems && childNode.children.length) {\n this.createChildComponentsFromTags(childNode, paramsMap);\n const items = Array.prototype.slice.call(childNode.children);\n childComp.addItems(items);\n }\n this.swapComponentForNode(childComp, parentNode, childNode);\n } else if (childNode.childNodes) {\n this.createChildComponentsFromTags(childNode, paramsMap);\n }\n }\n }\n createComponentFromElement(element, afterPreCreateCallback, paramsMap) {\n const key = element.nodeName;\n const elementRef = this.getDataRefAttribute(element);\n const isAgGridComponent = key.indexOf(\"AG-\") === 0;\n const componentSelector = isAgGridComponent ? this.componentSelectors.get(key) : null;\n let newComponent = null;\n if (componentSelector) {\n const componentParams = paramsMap && elementRef ? paramsMap[elementRef] : void 0;\n newComponent = new componentSelector.component(componentParams);\n newComponent.setParentComponent(\n this\n );\n this.createBean(newComponent, null, afterPreCreateCallback);\n } else if (isAgGridComponent) {\n throw new Error(`selector: ${key}`);\n }\n this.applyElementsToComponent(element, elementRef, paramsMap, newComponent);\n return newComponent;\n }\n swapComponentForNode(newComponent, parentNode, childNode) {\n const eComponent = newComponent.getGui();\n parentNode.replaceChild(eComponent, childNode);\n parentNode.insertBefore(document.createComment(childNode.nodeName), eComponent);\n this.addDestroyFunc(this.destroyBean.bind(this, newComponent));\n }\n activateTabIndex(elements) {\n const tabIndex = this.gos.get(\"tabIndex\");\n if (!elements) {\n elements = [];\n }\n if (!elements.length) {\n elements.push(this.getGui());\n }\n for (const el of elements) {\n el.setAttribute(\"tabindex\", tabIndex.toString());\n }\n }\n setTemplate(templateOrParams, componentSelectors, paramsMap) {\n let eGui;\n if (typeof templateOrParams === \"string\" || templateOrParams == null) {\n eGui = _loadTemplate(templateOrParams);\n } else {\n eGui = _createAgElement(templateOrParams);\n }\n this.setTemplateFromElement(eGui, componentSelectors, paramsMap);\n }\n setTemplateFromElement(element, components, paramsMap, suppressDataRefValidation = false) {\n this.eGui = element;\n this.suppressDataRefValidation = suppressDataRefValidation;\n if (components) {\n for (let i = 0; i < components.length; i++) {\n const component = components[i];\n this.componentSelectors.set(component.selector, component);\n }\n }\n this.wireTemplate(element, paramsMap);\n }\n getGui() {\n return this.eGui;\n }\n getFocusableElement() {\n return this.eGui;\n }\n getAriaElement() {\n return this.getFocusableElement();\n }\n setParentComponent(component) {\n this.parentComponent = component;\n }\n getParentComponent() {\n return this.parentComponent;\n }\n // this method is for older code, that wants to provide the gui element,\n // it is not intended for this to be in ag-Stack\n setGui(eGui) {\n this.eGui = eGui;\n }\n queryForHtmlElement(cssSelector) {\n return this.eGui.querySelector(cssSelector);\n }\n getContainerAndElement(newChild, container) {\n let parent = container;\n if (newChild == null) {\n return null;\n }\n if (!parent) {\n parent = this.eGui;\n }\n if (_isNodeOrElement(newChild)) {\n return {\n element: newChild,\n parent\n };\n }\n return {\n element: newChild.getGui(),\n parent\n };\n }\n prependChild(newChild, container) {\n const { element, parent } = this.getContainerAndElement(newChild, container) || {};\n if (!element || !parent) {\n return;\n }\n parent.insertAdjacentElement(\"afterbegin\", element);\n }\n appendChild(newChild, container) {\n const { element, parent } = this.getContainerAndElement(newChild, container) || {};\n if (!element || !parent) {\n return;\n }\n parent.appendChild(element);\n }\n isDisplayed() {\n return this.displayed;\n }\n setVisible(visible, options = {}) {\n if (visible !== this.visible) {\n this.visible = visible;\n const { skipAriaHidden } = options;\n _setVisible(this.eGui, visible, { skipAriaHidden });\n }\n }\n setDisplayed(displayed, options = {}) {\n if (displayed !== this.displayed) {\n this.displayed = displayed;\n const { skipAriaHidden } = options;\n _setDisplayed(this.eGui, displayed, { skipAriaHidden });\n const event = {\n type: \"displayChanged\",\n visible: this.displayed\n };\n this.dispatchLocalEvent(event);\n }\n }\n destroy() {\n if (this.parentComponent) {\n this.parentComponent = void 0;\n }\n super.destroy();\n }\n addGuiEventListener(event, listener, options) {\n this.eGui.addEventListener(event, listener, options);\n this.addDestroyFunc(() => this.eGui.removeEventListener(event, listener));\n }\n addCss(className) {\n this.cssManager.toggleCss(className, true);\n }\n removeCss(className) {\n this.cssManager.toggleCss(className, false);\n }\n toggleCss(className, addOrRemove) {\n this.cssManager.toggleCss(className, addOrRemove);\n }\n registerCSS(css) {\n this.css || (this.css = []);\n this.css.push(css);\n }\n};\n\n// packages/ag-grid-community/src/widgets/component.ts\nvar Component = class extends AgComponentStub {\n};\n\n// packages/ag-grid-community/src/interfaces/iFilter.ts\nfunction isColumnFilterComp(filter) {\n return typeof filter === \"object\" && !!filter.component;\n}\n\n// packages/ag-grid-community/src/agStack/utils/promise.ts\nfunction _isPromise(fn) {\n return typeof fn.then === \"function\";\n}\nfunction _wrapInterval(action, timeout) {\n return new AgPromise((resolve) => {\n resolve(window.setInterval(action, timeout));\n });\n}\nvar AgPromise = class _AgPromise {\n constructor(callback) {\n this.status = 0 /* IN_PROGRESS */;\n this.resolution = null;\n this.waiters = [];\n callback(\n (value) => this.onDone(value),\n (params) => this.onReject(params)\n );\n }\n static all(promises) {\n return promises.length ? new _AgPromise((resolve) => {\n let remainingToResolve = promises.length;\n const combinedValues = new Array(remainingToResolve);\n promises.forEach((promise, index) => {\n promise.then((value) => {\n combinedValues[index] = value;\n remainingToResolve--;\n if (remainingToResolve === 0) {\n resolve(combinedValues);\n }\n });\n });\n }) : _AgPromise.resolve();\n }\n static resolve(value = null) {\n return new _AgPromise((resolve) => resolve(value));\n }\n then(func) {\n return new _AgPromise((resolve) => {\n if (this.status === 1 /* RESOLVED */) {\n resolve(func(this.resolution));\n } else {\n this.waiters.push((value) => resolve(func(value)));\n }\n });\n }\n onDone(value) {\n this.status = 1 /* RESOLVED */;\n this.resolution = value;\n for (const waiter of this.waiters) {\n waiter(value);\n }\n }\n onReject(_) {\n }\n};\n\n// packages/ag-grid-community/src/components/framework/userComponentFactory.ts\nfunction doesImplementIComponent(candidate) {\n if (!candidate) {\n return false;\n }\n return candidate.prototype && \"getGui\" in candidate.prototype;\n}\nfunction _getUserCompKeys(frameworkOverrides, defObject, type, params) {\n const { name } = type;\n let compName;\n let jsComp;\n let fwComp;\n let paramsFromSelector;\n let popupFromSelector;\n let popupPositionFromSelector;\n if (defObject) {\n const defObjectAny = defObject;\n const selectorFunc = defObjectAny[name + \"Selector\"];\n const selectorRes = selectorFunc ? selectorFunc(params) : null;\n const assignComp = (providedJsComp) => {\n if (typeof providedJsComp === \"string\") {\n compName = providedJsComp;\n } else if (providedJsComp != null && providedJsComp !== true) {\n const isFwkComp = frameworkOverrides.isFrameworkComponent(providedJsComp);\n if (isFwkComp) {\n fwComp = providedJsComp;\n } else {\n jsComp = providedJsComp;\n }\n }\n };\n if (selectorRes) {\n assignComp(selectorRes.component);\n paramsFromSelector = selectorRes.params;\n popupFromSelector = selectorRes.popup;\n popupPositionFromSelector = selectorRes.popupPosition;\n } else {\n assignComp(defObjectAny[name]);\n }\n }\n return { compName, jsComp, fwComp, paramsFromSelector, popupFromSelector, popupPositionFromSelector };\n}\nvar UserComponentFactory = class extends BeanStub {\n constructor() {\n super(...arguments);\n this.beanName = \"userCompFactory\";\n }\n wireBeans(beans) {\n this.agCompUtils = beans.agCompUtils;\n this.registry = beans.registry;\n this.frameworkCompWrapper = beans.frameworkCompWrapper;\n this.gridOptions = beans.gridOptions;\n }\n getCompDetailsFromGridOptions(type, defaultName, params, mandatory = false) {\n return this.getCompDetails(this.gridOptions, type, defaultName, params, mandatory);\n }\n getCompDetails(defObject, type, defaultName, params, mandatory = false) {\n const { name, cellRenderer } = type;\n let { compName, jsComp, fwComp, paramsFromSelector, popupFromSelector, popupPositionFromSelector } = _getUserCompKeys(this.beans.frameworkOverrides, defObject, type, params);\n let defaultCompParams;\n let defaultCompProcessParams;\n const lookupFromRegistry = (key) => {\n const item = this.registry.getUserComponent(name, key);\n if (item) {\n jsComp = !item.componentFromFramework ? item.component : void 0;\n fwComp = item.componentFromFramework ? item.component : void 0;\n defaultCompParams = item.params;\n defaultCompProcessParams = item.processParams;\n }\n };\n if (compName != null) {\n lookupFromRegistry(compName);\n }\n if (jsComp == null && fwComp == null && defaultName != null) {\n lookupFromRegistry(defaultName);\n }\n if (jsComp && cellRenderer && !doesImplementIComponent(jsComp)) {\n jsComp = this.agCompUtils?.adaptFunction(type, jsComp);\n }\n if (!jsComp && !fwComp) {\n const { validation } = this.beans;\n if (mandatory && (compName !== defaultName || !defaultName)) {\n if (compName) {\n if (!validation?.isProvidedUserComp(compName)) {\n _error(50, { compName });\n }\n } else if (defaultName) {\n if (!validation) {\n _error(260, {\n ...this.gos.getModuleErrorParams(),\n propName: name,\n compName: defaultName\n });\n }\n } else {\n _error(216, { name });\n }\n } else if (defaultName && !validation) {\n _error(146, { comp: defaultName });\n }\n return;\n }\n const paramsMerged = this.mergeParams(\n defObject,\n type,\n params,\n paramsFromSelector,\n defaultCompParams,\n defaultCompProcessParams\n );\n const componentFromFramework = jsComp == null;\n const componentClass = jsComp ?? fwComp;\n return {\n componentFromFramework,\n componentClass,\n params: paramsMerged,\n type,\n popupFromSelector,\n popupPositionFromSelector,\n newAgStackInstance: () => this.newAgStackInstance(componentClass, componentFromFramework, paramsMerged, type)\n };\n }\n newAgStackInstance(ComponentClass, componentFromFramework, params, type) {\n const jsComponent = !componentFromFramework;\n let instance;\n if (jsComponent) {\n instance = new ComponentClass();\n } else {\n instance = this.frameworkCompWrapper.wrap(\n ComponentClass,\n type.mandatoryMethods,\n type.optionalMethods,\n type\n );\n }\n this.createBean(instance);\n const deferredInit = instance.init?.(params);\n if (deferredInit == null) {\n return AgPromise.resolve(instance);\n }\n return deferredInit.then(() => instance);\n }\n /**\n * merges params with application provided params\n * used by Floating Filter\n */\n mergeParams(defObject, type, paramsFromGrid, paramsFromSelector = null, defaultCompParams, defaultCompProcessParams) {\n const params = { ...paramsFromGrid, ...defaultCompParams };\n const defObjectAny = defObject;\n const userParams = defObjectAny?.[type.name + \"Params\"];\n if (typeof userParams === \"function\") {\n const userParamsFromFunc = userParams(paramsFromGrid);\n _mergeDeep(params, userParamsFromFunc);\n } else if (typeof userParams === \"object\") {\n _mergeDeep(params, userParams);\n }\n _mergeDeep(params, paramsFromSelector);\n return defaultCompProcessParams ? defaultCompProcessParams(params) : params;\n }\n};\n\n// packages/ag-grid-community/src/components/framework/userCompUtils.ts\nvar DateComponent = {\n name: \"dateComponent\",\n mandatoryMethods: [\"getDate\", \"setDate\"],\n optionalMethods: [\"afterGuiAttached\", \"setInputPlaceholder\", \"setInputAriaLabel\", \"setDisabled\", \"refresh\"]\n};\nvar DragAndDropImageComponent = {\n name: \"dragAndDropImageComponent\",\n mandatoryMethods: [\"setIcon\", \"setLabel\"]\n};\nvar HeaderComponent = { name: \"headerComponent\", optionalMethods: [\"refresh\"] };\nvar InnerHeaderComponent = { name: \"innerHeaderComponent\" };\nvar InnerHeaderGroupComponent = { name: \"innerHeaderGroupComponent\" };\nvar HeaderGroupComponent = { name: \"headerGroupComponent\" };\nvar InnerCellRendererComponent = {\n name: \"innerRenderer\",\n cellRenderer: true,\n optionalMethods: [\"afterGuiAttached\"]\n};\nvar CellRendererComponent = {\n name: \"cellRenderer\",\n optionalMethods: [\"refresh\", \"afterGuiAttached\"],\n cellRenderer: true\n};\nvar EditorRendererComponent = {\n name: \"cellRenderer\",\n optionalMethods: [\"refresh\", \"afterGuiAttached\"]\n};\nvar LoadingCellRendererComponent = { name: \"loadingCellRenderer\", cellRenderer: true };\nvar CellEditorComponent = {\n name: \"cellEditor\",\n mandatoryMethods: [\"getValue\"],\n optionalMethods: [\n \"isPopup\",\n \"isCancelBeforeStart\",\n \"isCancelAfterEnd\",\n \"getPopupPosition\",\n \"focusIn\",\n \"focusOut\",\n \"afterGuiAttached\",\n \"refresh\"\n ]\n};\nvar LoadingOverlayComponent = { name: \"loadingOverlayComponent\", optionalMethods: [\"refresh\"] };\nvar NoRowsOverlayComponent = { name: \"noRowsOverlayComponent\", optionalMethods: [\"refresh\"] };\nvar TooltipComponent = { name: \"tooltipComponent\" };\nvar FilterComponent = {\n name: \"filter\",\n mandatoryMethods: [\"isFilterActive\", \"doesFilterPass\", \"getModel\", \"setModel\"],\n optionalMethods: [\n \"afterGuiAttached\",\n \"afterGuiDetached\",\n \"onNewRowsLoaded\",\n \"getModelAsString\",\n \"onFloatingFilterChanged\",\n \"onAnyFilterChanged\",\n \"refresh\"\n ]\n};\nvar FloatingFilterComponent = {\n name: \"floatingFilterComponent\",\n mandatoryMethods: [\"onParentModelChanged\"],\n optionalMethods: [\"afterGuiAttached\", \"refresh\"]\n};\nvar FullWidth = {\n name: \"fullWidthCellRenderer\",\n optionalMethods: [\"refresh\", \"afterGuiAttached\"],\n cellRenderer: true\n};\nvar FullWidthLoading = { name: \"loadingCellRenderer\", cellRenderer: true };\nvar FullWidthGroup = {\n name: \"groupRowRenderer\",\n optionalMethods: [\"afterGuiAttached\"],\n cellRenderer: true\n};\nvar FullWidthDetail = { name: \"detailCellRenderer\", optionalMethods: [\"refresh\"], cellRenderer: true };\nfunction _getDragAndDropImageCompDetails(userCompFactory, params) {\n return userCompFactory.getCompDetailsFromGridOptions(DragAndDropImageComponent, \"agDragAndDropImage\", params, true);\n}\nfunction _getInnerCellRendererDetails(userCompFactory, def, params) {\n return userCompFactory.getCompDetails(def, InnerCellRendererComponent, void 0, params);\n}\nfunction _getHeaderCompDetails(userCompFactory, colDef, params) {\n return userCompFactory.getCompDetails(colDef, HeaderComponent, \"agColumnHeader\", params);\n}\nfunction _getInnerHeaderCompDetails(userCompFactory, headerCompParams, params) {\n return userCompFactory.getCompDetails(headerCompParams, InnerHeaderComponent, void 0, params);\n}\nfunction _getHeaderGroupCompDetails(userCompFactory, params) {\n const colGroupDef = params.columnGroup.getColGroupDef();\n return userCompFactory.getCompDetails(colGroupDef, HeaderGroupComponent, \"agColumnGroupHeader\", params);\n}\nfunction _getInnerHeaderGroupCompDetails(userCompFactory, headerGroupCompParams, params) {\n return userCompFactory.getCompDetails(headerGroupCompParams, InnerHeaderGroupComponent, void 0, params);\n}\nfunction _getFullWidthCellRendererDetails(userCompFactory, params) {\n return userCompFactory.getCompDetailsFromGridOptions(FullWidth, void 0, params, true);\n}\nfunction _getFullWidthLoadingCellRendererDetails(userCompFactory, params) {\n return userCompFactory.getCompDetailsFromGridOptions(FullWidthLoading, \"agLoadingCellRenderer\", params, true);\n}\nfunction _getFullWidthGroupCellRendererDetails(userCompFactory, params) {\n return userCompFactory.getCompDetailsFromGridOptions(FullWidthGroup, \"agGroupRowRenderer\", params, true);\n}\nfunction _getFullWidthDetailCellRendererDetails(userCompFactory, params) {\n return userCompFactory.getCompDetailsFromGridOptions(FullWidthDetail, \"agDetailCellRenderer\", params, true);\n}\nfunction _getCellRendererDetails(userCompFactory, def, params) {\n return userCompFactory.getCompDetails(def, CellRendererComponent, void 0, params);\n}\nfunction _getEditorRendererDetails(userCompFactory, def, params) {\n return userCompFactory.getCompDetails(\n def,\n EditorRendererComponent,\n void 0,\n params\n );\n}\nfunction _getLoadingCellRendererDetails(userCompFactory, def, params) {\n return userCompFactory.getCompDetails(def, LoadingCellRendererComponent, \"agSkeletonCellRenderer\", params, true);\n}\nfunction _getCellEditorDetails(userCompFactory, def, params) {\n return userCompFactory.getCompDetails(def, CellEditorComponent, \"agCellEditor\", params, true);\n}\nfunction _getFilterDetails(userCompFactory, def, params, defaultFilter) {\n const filter = def.filter;\n if (isColumnFilterComp(filter)) {\n def = {\n filter: filter.component,\n filterParams: def.filterParams\n };\n }\n return userCompFactory.getCompDetails(def, FilterComponent, defaultFilter, params, true);\n}\nfunction _getDateCompDetails(userCompFactory, def, params) {\n return userCompFactory.getCompDetails(def, DateComponent, \"agDateInput\", params, true);\n}\nfunction _getLoadingOverlayCompDetails(userCompFactory, params) {\n return userCompFactory.getCompDetailsFromGridOptions(LoadingOverlayComponent, \"agLoadingOverlay\", params, true);\n}\nfunction _getNoRowsOverlayCompDetails(userCompFactory, params) {\n return userCompFactory.getCompDetailsFromGridOptions(NoRowsOverlayComponent, \"agNoRowsOverlay\", params, true);\n}\nfunction _getTooltipCompDetails(userCompFactory, params) {\n return userCompFactory.getCompDetails(params.colDef, TooltipComponent, \"agTooltipComponent\", params, true);\n}\nfunction _getFloatingFilterCompDetails(userCompFactory, def, params, defaultFloatingFilter) {\n return userCompFactory.getCompDetails(def, FloatingFilterComponent, defaultFloatingFilter, params);\n}\nfunction _getFilterCompKeys(frameworkOverrides, def) {\n return _getUserCompKeys(frameworkOverrides, def, FilterComponent);\n}\nfunction _mergeFilterParamsWithApplicationProvidedParams(userCompFactory, defObject, paramsFromGrid) {\n return userCompFactory.mergeParams(defObject, FilterComponent, paramsFromGrid);\n}\n\n// packages/ag-grid-community/src/components/framework/unwrapUserComp.ts\nfunction _unwrapUserComp(comp) {\n const compAsAny = comp;\n const isProxy = compAsAny?.getFrameworkComponentInstance != null;\n return isProxy ? compAsAny.getFrameworkComponentInstance() : comp;\n}\n\n// packages/ag-grid-community/src/context/context.ts\nfunction isComponentMetaFunc(componentMeta) {\n return typeof componentMeta === \"object\" && !!componentMeta.getComp;\n}\n\n// packages/ag-grid-community/src/agStack/constants/keyCode.ts\nvar KeyCode = {\n BACKSPACE: \"Backspace\",\n TAB: \"Tab\",\n ENTER: \"Enter\",\n ESCAPE: \"Escape\",\n SPACE: \" \",\n LEFT: \"ArrowLeft\",\n UP: \"ArrowUp\",\n RIGHT: \"ArrowRight\",\n DOWN: \"ArrowDown\",\n DELETE: \"Delete\",\n F2: \"F2\",\n PAGE_UP: \"PageUp\",\n PAGE_DOWN: \"PageDown\",\n PAGE_HOME: \"Home\",\n PAGE_END: \"End\",\n // these should be used with `event.code` instead of `event.key`\n // as `event.key` changes when non-latin keyboards are used\n A: \"KeyA\",\n C: \"KeyC\",\n D: \"KeyD\",\n V: \"KeyV\",\n X: \"KeyX\",\n Y: \"KeyY\",\n Z: \"KeyZ\"\n};\n\n// packages/ag-grid-community/src/agStack/popup/agPopupComponent.ts\nvar AgPopupComponent = class extends AgComponentStub {\n isPopup() {\n return true;\n }\n setParentComponent(container) {\n container.addCss(\"ag-has-popup\");\n super.setParentComponent(container);\n }\n destroy() {\n const parentComp = this.parentComponent;\n const hasParent = parentComp?.isAlive();\n if (hasParent) {\n parentComp.getGui().classList.remove(\"ag-has-popup\");\n }\n super.destroy();\n }\n};\n\n// packages/ag-grid-community/src/agStack/utils/browser.ts\nvar isSafari;\nvar isFirefox;\nvar isMacOs;\nvar isIOS;\nvar invisibleScrollbar;\nvar browserScrollbarWidth;\nvar maxDivHeight;\nfunction _isBrowserSafari() {\n if (isSafari === void 0) {\n isSafari = /^((?!chrome|android).)*safari/i.test(navigator.userAgent);\n }\n return isSafari;\n}\nfunction _isBrowserFirefox() {\n if (isFirefox === void 0) {\n isFirefox = /(firefox)/i.test(navigator.userAgent);\n }\n return isFirefox;\n}\nfunction _isMacOsUserAgent() {\n if (isMacOs === void 0) {\n isMacOs = /(Mac|iPhone|iPod|iPad)/i.test(navigator.platform);\n }\n return isMacOs;\n}\nfunction _isIOSUserAgent() {\n if (isIOS === void 0) {\n isIOS = /iPad|iPhone|iPod/.test(navigator.platform) || navigator.platform === \"MacIntel\" && navigator.maxTouchPoints > 1;\n }\n return isIOS;\n}\nfunction _getTabIndex(el) {\n if (!el) {\n return null;\n }\n const numberTabIndex = el.tabIndex;\n const tabIndex = el.getAttribute(\"tabIndex\");\n if (numberTabIndex === -1 && (tabIndex === null || tabIndex === \"\" && !_isBrowserFirefox())) {\n return null;\n }\n return numberTabIndex.toString();\n}\nfunction _getMaxDivHeight() {\n if (maxDivHeight !== void 0) {\n return maxDivHeight;\n }\n if (!document.body) {\n return -1;\n }\n let res = 1e6;\n const testUpTo = _isBrowserFirefox() ? 6e6 : 1e9;\n const div = document.createElement(\"div\");\n document.body.appendChild(div);\n while (true) {\n const test = res * 2;\n div.style.height = test + \"px\";\n if (test > testUpTo || div.clientHeight !== test) {\n break;\n } else {\n res = test;\n }\n }\n div.remove();\n maxDivHeight = res;\n return res;\n}\nfunction _getScrollbarWidth() {\n if (browserScrollbarWidth == null) {\n initScrollbarWidthAndVisibility();\n }\n return browserScrollbarWidth;\n}\nfunction initScrollbarWidthAndVisibility() {\n const body = document.body;\n const div = document.createElement(\"div\");\n div.style.width = div.style.height = \"100px\";\n div.style.opacity = \"0\";\n div.style.overflow = \"scroll\";\n div.style.msOverflowStyle = \"scrollbar\";\n div.style.position = \"absolute\";\n body.appendChild(div);\n let width = div.offsetWidth - div.clientWidth;\n if (width === 0 && div.clientWidth === 0) {\n width = null;\n }\n if (div.parentNode) {\n div.remove();\n }\n if (width != null) {\n browserScrollbarWidth = width;\n invisibleScrollbar = width === 0;\n }\n}\nfunction _isInvisibleScrollbar() {\n if (invisibleScrollbar == null) {\n initScrollbarWidthAndVisibility();\n }\n return invisibleScrollbar;\n}\n\n// packages/ag-grid-community/src/agStack/utils/date.ts\nvar DATE_TIME_SEPARATOR = \"T\";\nvar DATE_TIME_SEPARATOR_REGEXP = new RegExp(`[${DATE_TIME_SEPARATOR} ]`);\nvar DATE_TIME_REGEXP = new RegExp(`^\\\\d{4}-\\\\d{2}-\\\\d{2}(${DATE_TIME_SEPARATOR}\\\\d{2}:\\\\d{2}:\\\\d{2}\\\\D?)?`);\nfunction _padStartWidthZeros(value, totalStringSize) {\n return value.toString().padStart(totalStringSize, \"0\");\n}\nfunction _serialiseDate(date, includeTime = true, separator = DATE_TIME_SEPARATOR) {\n if (!date) {\n return null;\n }\n let serialised = [date.getFullYear(), date.getMonth() + 1, date.getDate()].map((part) => _padStartWidthZeros(part, 2)).join(\"-\");\n if (includeTime) {\n serialised += separator + [date.getHours(), date.getMinutes(), date.getSeconds()].map((part) => _padStartWidthZeros(part, 2)).join(\":\");\n }\n return serialised;\n}\nfunction _getDateParts(d, includeTime = true) {\n if (!d) {\n return null;\n }\n if (includeTime) {\n return [\n String(d.getFullYear()),\n String(d.getMonth() + 1),\n _padStartWidthZeros(d.getDate(), 2),\n _padStartWidthZeros(d.getHours(), 2),\n `:${_padStartWidthZeros(d.getMinutes(), 2)}`,\n `:${_padStartWidthZeros(d.getSeconds(), 2)}`\n ];\n }\n return [d.getFullYear(), d.getMonth() + 1, _padStartWidthZeros(d.getDate(), 2)].map(String);\n}\nvar calculateOrdinal = (value) => {\n if (value > 3 && value < 21) {\n return \"th\";\n }\n const remainder = value % 10;\n switch (remainder) {\n case 1:\n return \"st\";\n case 2:\n return \"nd\";\n case 3:\n return \"rd\";\n }\n return \"th\";\n};\nvar MONTHS = [\n \"January\",\n \"February\",\n \"March\",\n \"April\",\n \"May\",\n \"June\",\n \"July\",\n \"August\",\n \"September\",\n \"October\",\n \"November\",\n \"December\"\n];\nvar DAYS = [\"Sunday\", \"Monday\", \"Tuesday\", \"Wednesday\", \"Thursday\", \"Friday\", \"Saturday\"];\nfunction _dateToFormattedString(date, format) {\n if (format == null) {\n return _serialiseDate(date, false);\n }\n const fullYear = _padStartWidthZeros(date.getFullYear(), 4);\n const replace = {\n YYYY: () => fullYear.slice(fullYear.length - 4, fullYear.length),\n YY: () => fullYear.slice(fullYear.length - 2, fullYear.length),\n Y: () => `${date.getFullYear()}`,\n MMMM: () => MONTHS[date.getMonth()],\n MMM: () => MONTHS[date.getMonth()].slice(0, 3),\n MM: () => _padStartWidthZeros(date.getMonth() + 1, 2),\n Mo: () => `${date.getMonth() + 1}${calculateOrdinal(date.getMonth() + 1)}`,\n M: () => `${date.getMonth() + 1}`,\n Do: () => `${date.getDate()}${calculateOrdinal(date.getDate())}`,\n DD: () => _padStartWidthZeros(date.getDate(), 2),\n D: () => `${date.getDate()}`,\n dddd: () => DAYS[date.getDay()],\n ddd: () => DAYS[date.getDay()].slice(0, 3),\n dd: () => DAYS[date.getDay()].slice(0, 2),\n do: () => `${date.getDay()}${calculateOrdinal(date.getDay())}`,\n d: () => `${date.getDay()}`\n };\n const regexp = new RegExp(Object.keys(replace).join(\"|\"), \"g\");\n return format.replace(regexp, (match) => {\n if (match in replace) {\n return replace[match]();\n }\n return match;\n });\n}\nfunction _isValidDate(value, bailIfInvalidTime = false) {\n return !!_parseDateTimeFromString(value, bailIfInvalidTime);\n}\nfunction _isValidDateTime(value) {\n return _isValidDate(value, true);\n}\nfunction _parseDateTimeFromString(value, bailIfInvalidTime = false, skipValidation) {\n if (!value) {\n return null;\n }\n if (!skipValidation && !DATE_TIME_REGEXP.test(value)) {\n return null;\n }\n const [dateStr, timeStr] = value.split(DATE_TIME_SEPARATOR_REGEXP);\n if (!dateStr) {\n return null;\n }\n const fields = dateStr.split(\"-\").map((f) => Number.parseInt(f, 10));\n if (fields.filter((f) => !isNaN(f)).length !== 3) {\n return null;\n }\n const [year, month, day] = fields;\n const date = new Date(year, month - 1, day);\n if (date.getFullYear() !== year || date.getMonth() !== month - 1 || date.getDate() !== day) {\n return null;\n }\n if (!timeStr && bailIfInvalidTime) {\n return null;\n }\n if (!timeStr || timeStr === \"00:00:00\") {\n return date;\n }\n const [hours, minutes, seconds] = timeStr.split(\":\").map((part) => Number.parseInt(part, 10));\n if (hours >= 0 && hours < 24) {\n date.setHours(hours);\n } else if (bailIfInvalidTime) {\n return null;\n }\n if (minutes >= 0 && minutes < 60) {\n date.setMinutes(minutes);\n } else if (bailIfInvalidTime) {\n return null;\n }\n if (seconds >= 0 && seconds < 60) {\n date.setSeconds(seconds);\n } else if (bailIfInvalidTime) {\n return null;\n }\n return date;\n}\n\n// packages/ag-grid-community/src/agStack/utils/fuzzyMatch.ts\nfunction _fuzzySuggestions(params) {\n const { inputValue, allSuggestions, hideIrrelevant, filterByPercentageOfBestMatch } = params;\n let thisSuggestions = (allSuggestions ?? []).map(\n (text, idx) => ({\n value: text,\n relevance: _getLevenshteinSimilarityDistance(inputValue, text),\n idx\n })\n );\n thisSuggestions.sort((a, b) => a.relevance - b.relevance);\n if (hideIrrelevant) {\n thisSuggestions = thisSuggestions.filter(\n (suggestion) => suggestion.relevance < Math.max(suggestion.value.length, inputValue.length)\n );\n }\n if (thisSuggestions.length > 0 && filterByPercentageOfBestMatch && filterByPercentageOfBestMatch > 0) {\n const bestMatch = thisSuggestions[0].relevance;\n const limit = bestMatch * filterByPercentageOfBestMatch;\n thisSuggestions = thisSuggestions.filter((suggestion) => limit - suggestion.relevance < 0);\n }\n const values = [];\n const indices = [];\n for (const suggestion of thisSuggestions) {\n values.push(suggestion.value);\n indices.push(suggestion.idx);\n }\n return { values, indices };\n}\nfunction _getLevenshteinSimilarityDistance(inputText, suggestion) {\n if (inputText.length < suggestion.length) {\n [inputText, suggestion] = [suggestion, inputText];\n }\n let previousRow = [];\n let currentRow = [];\n const sourceLength = inputText.length;\n const targetLength = suggestion.length;\n for (let j = 0; j <= targetLength; j++) {\n previousRow[j] = j;\n }\n let secondaryScore = 0;\n for (let i = 1; i <= sourceLength; i++) {\n currentRow[0] = i;\n for (let j = 1; j <= targetLength; j++) {\n const sourceChar = inputText[i - 1];\n const targetChar = suggestion[j - 1];\n if (sourceChar.toLocaleLowerCase() === targetChar.toLocaleLowerCase()) {\n ++secondaryScore;\n if (sourceChar === targetChar) {\n ++secondaryScore;\n }\n if (i > 1 && j > 1) {\n if (inputText[i - 2].toLocaleLowerCase() === suggestion[j - 2].toLocaleLowerCase()) {\n ++secondaryScore;\n if (inputText[i - 2] === suggestion[j - 2]) {\n ++secondaryScore;\n }\n }\n }\n if (i < sourceLength / 2 - 10) {\n ++secondaryScore;\n }\n currentRow[j] = previousRow[j - 1];\n } else {\n const insertCost = currentRow[j - 1];\n const deleteCost = previousRow[j];\n const replaceCost = previousRow[j - 1];\n currentRow[j] = 1 + Math.min(insertCost, deleteCost, replaceCost);\n }\n }\n [previousRow, currentRow] = [currentRow, previousRow];\n }\n return previousRow[targetLength] / (secondaryScore + 1);\n}\n\n// packages/ag-grid-community/src/agStack/utils/keyboard.ts\nfunction _isEventFromPrintableCharacter(event) {\n if (event.altKey || event.ctrlKey || event.metaKey) {\n return false;\n }\n const printableCharacter = event.key?.length === 1;\n return printableCharacter;\n}\n\n// packages/ag-grid-community/src/agStack/utils/focus.ts\nvar keyboardModeActive = false;\nvar instanceCount = 0;\nfunction addKeyboardModeEvents(doc) {\n if (instanceCount > 0) {\n return;\n }\n doc.addEventListener(\"keydown\", toggleKeyboardMode);\n doc.addEventListener(\"mousedown\", toggleKeyboardMode);\n}\nfunction removeKeyboardModeEvents(doc) {\n if (instanceCount > 0) {\n return;\n }\n doc.removeEventListener(\"keydown\", toggleKeyboardMode);\n doc.removeEventListener(\"mousedown\", toggleKeyboardMode);\n}\nfunction toggleKeyboardMode(event) {\n const isKeyboardActive = keyboardModeActive;\n const isKeyboardEvent = event.type === \"keydown\";\n if (isKeyboardEvent) {\n if (event.ctrlKey || event.metaKey || event.altKey) {\n return;\n }\n }\n if (isKeyboardActive === isKeyboardEvent) {\n return;\n }\n keyboardModeActive = isKeyboardEvent;\n}\nfunction _registerKeyboardFocusEvents(beans) {\n const eDocument = _getDocument(beans);\n addKeyboardModeEvents(eDocument);\n instanceCount++;\n return () => {\n instanceCount--;\n removeKeyboardModeEvents(eDocument);\n };\n}\nfunction _isKeyboardMode() {\n return keyboardModeActive;\n}\nfunction _findFocusableElements(rootNode, exclude, onlyUnmanaged = false) {\n const focusableString = FOCUSABLE_SELECTOR;\n let excludeString = FOCUSABLE_EXCLUDE;\n if (exclude) {\n excludeString += \", \" + exclude;\n }\n if (onlyUnmanaged) {\n excludeString += ', [tabindex=\"-1\"]';\n }\n const nodes = Array.prototype.slice.apply(rootNode.querySelectorAll(focusableString)).filter((node) => {\n return _isVisible(node);\n });\n const excludeNodes = Array.prototype.slice.apply(rootNode.querySelectorAll(excludeString));\n if (!excludeNodes.length) {\n return nodes;\n }\n const diff = (a, b) => a.filter((element) => b.indexOf(element) === -1);\n return diff(nodes, excludeNodes);\n}\nfunction _focusInto(rootNode, up = false, onlyUnmanaged = false, excludeTabGuards = false) {\n const focusableElements = _findFocusableElements(\n rootNode,\n excludeTabGuards ? \".ag-tab-guard\" : null,\n onlyUnmanaged\n );\n const toFocus = up ? _last(focusableElements) : focusableElements[0];\n if (toFocus) {\n toFocus.focus({ preventScroll: true });\n return true;\n }\n return false;\n}\nfunction _findNextFocusableElement(beans, rootNode, onlyManaged, backwards) {\n const focusable = _findFocusableElements(rootNode, onlyManaged ? ':not([tabindex=\"-1\"])' : null);\n const activeEl = _getActiveDomElement(beans);\n let currentIndex;\n if (onlyManaged) {\n currentIndex = focusable.findIndex((el) => el.contains(activeEl));\n } else {\n currentIndex = focusable.indexOf(activeEl);\n }\n const nextIndex = currentIndex + (backwards ? -1 : 1);\n if (nextIndex < 0 || nextIndex >= focusable.length) {\n return null;\n }\n return focusable[nextIndex];\n}\nfunction _findTabbableParent(node, limit = 5) {\n let counter = 0;\n while (node && _getTabIndex(node) === null && ++counter <= limit) {\n node = node.parentElement;\n }\n if (_getTabIndex(node) === null) {\n return null;\n }\n return node;\n}\n\n// packages/ag-grid-community/src/agStack/widgets/agAbstractLabel.css-GENERATED.ts\nvar agAbstractLabelCSS = (\n /*css*/\n `.ag-label{white-space:nowrap}:where(.ag-ltr) .ag-label{margin-right:var(--ag-spacing)}:where(.ag-rtl) .ag-label{margin-left:var(--ag-spacing)}:where(.ag-label-align-right) .ag-label{order:1}:where(.ag-ltr) :where(.ag-label-align-right) .ag-label{margin-left:var(--ag-spacing)}:where(.ag-rtl) :where(.ag-label-align-right) .ag-label{margin-right:var(--ag-spacing)}.ag-label-align-right>*{flex:none}.ag-label-align-top{align-items:flex-start;flex-direction:column;>*{align-self:stretch}}.ag-label-ellipsis{flex:1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}:where(.ag-label-align-top) .ag-label{margin-bottom:calc(var(--ag-spacing)*.5)}`\n);\n\n// packages/ag-grid-community/src/agStack/widgets/agAbstractLabel.ts\nvar AgAbstractLabel = class extends AgComponentStub {\n constructor(config, template, components) {\n super(template, components);\n this.labelSeparator = \"\";\n this.labelAlignment = \"left\";\n this.disabled = false;\n this.label = \"\";\n this.config = config || {};\n this.registerCSS(agAbstractLabelCSS);\n }\n postConstruct() {\n this.addCss(\"ag-labeled\");\n this.eLabel.classList.add(\"ag-label\");\n const { labelSeparator, label, labelWidth, labelAlignment, disabled } = this.config;\n if (disabled != null) {\n this.setDisabled(disabled);\n }\n if (labelSeparator != null) {\n this.setLabelSeparator(labelSeparator);\n }\n if (label != null) {\n this.setLabel(label);\n }\n if (labelWidth != null) {\n this.setLabelWidth(labelWidth);\n }\n this.setLabelAlignment(labelAlignment || this.labelAlignment);\n this.refreshLabel();\n }\n refreshLabel() {\n const { label, eLabel } = this;\n _clearElement(eLabel);\n if (typeof label === \"string\") {\n eLabel.innerText = label + this.labelSeparator;\n } else if (label) {\n eLabel.appendChild(label);\n }\n if (label === \"\") {\n _setDisplayed(eLabel, false);\n _setAriaRole(eLabel, \"presentation\");\n } else {\n _setDisplayed(eLabel, true);\n _setAriaRole(eLabel, null);\n }\n }\n setLabelSeparator(labelSeparator) {\n if (this.labelSeparator === labelSeparator) {\n return this;\n }\n this.labelSeparator = labelSeparator;\n if (this.label != null) {\n this.refreshLabel();\n }\n return this;\n }\n getLabelId() {\n const eLabel = this.eLabel;\n eLabel.id = eLabel.id || `ag-${this.getCompId()}-label`;\n return eLabel.id;\n }\n getLabel() {\n return this.label;\n }\n setLabel(label) {\n if (this.label === label) {\n return this;\n }\n this.label = label;\n this.refreshLabel();\n return this;\n }\n setLabelAlignment(alignment) {\n const eGui = this.getGui();\n const eGuiClassList = eGui.classList;\n eGuiClassList.toggle(\"ag-label-align-left\", alignment === \"left\");\n eGuiClassList.toggle(\"ag-label-align-right\", alignment === \"right\");\n eGuiClassList.toggle(\"ag-label-align-top\", alignment === \"top\");\n return this;\n }\n setLabelEllipsis(hasEllipsis) {\n this.eLabel.classList.toggle(\"ag-label-ellipsis\", hasEllipsis);\n return this;\n }\n setLabelWidth(width) {\n if (this.label == null) {\n return this;\n }\n _setElementWidth(this.eLabel, width);\n return this;\n }\n setDisabled(disabled) {\n disabled = !!disabled;\n const element = this.getGui();\n _setDisabled(element, disabled);\n element.classList.toggle(\"ag-disabled\", disabled);\n this.disabled = disabled;\n return this;\n }\n isDisabled() {\n return !!this.disabled;\n }\n};\n\n// packages/ag-grid-community/src/agStack/widgets/agAbstractField.ts\nvar AgAbstractField = class extends AgAbstractLabel {\n constructor(config, template, components, className) {\n super(config, template, components);\n this.className = className;\n }\n postConstruct() {\n super.postConstruct();\n const { width, value, onValueChange } = this.config;\n if (width != null) {\n this.setWidth(width);\n }\n if (value != null) {\n this.setValue(value);\n }\n if (onValueChange != null) {\n this.onValueChange(onValueChange);\n }\n if (this.className) {\n this.addCss(this.className);\n }\n this.refreshAriaLabelledBy();\n }\n setLabel(label) {\n super.setLabel(label);\n this.refreshAriaLabelledBy();\n return this;\n }\n refreshAriaLabelledBy() {\n const ariaEl = this.getAriaElement();\n const labelId = this.getLabelId();\n const label = this.getLabel();\n if (label == null || label == \"\" || _getAriaLabel(ariaEl) !== null) {\n _setAriaLabelledBy(ariaEl, \"\");\n } else {\n _setAriaLabelledBy(ariaEl, labelId ?? \"\");\n }\n }\n setAriaLabel(label) {\n _setAriaLabel(this.getAriaElement(), label);\n this.refreshAriaLabelledBy();\n return this;\n }\n onValueChange(callbackFn) {\n this.addManagedListeners(this, { fieldValueChanged: () => callbackFn(this.getValue()) });\n return this;\n }\n getWidth() {\n return this.getGui().clientWidth;\n }\n setWidth(width) {\n _setFixedWidth(this.getGui(), width);\n return this;\n }\n getPreviousValue() {\n return this.previousValue;\n }\n getValue() {\n return this.value;\n }\n setValue(value, silent) {\n if (this.value === value) {\n return this;\n }\n this.previousValue = this.value;\n this.value = value;\n if (!silent) {\n this.dispatchLocalEvent({ type: \"fieldValueChanged\" });\n }\n return this;\n }\n};\n\n// packages/ag-grid-community/src/agStack/widgets/agAbstractInputField.ts\nfunction buildTemplate(displayFieldTag) {\n return {\n tag: \"div\",\n role: \"presentation\",\n children: [\n { tag: \"div\", ref: \"eLabel\", cls: \"ag-input-field-label\" },\n {\n tag: \"div\",\n ref: \"eWrapper\",\n cls: \"ag-wrapper ag-input-wrapper\",\n role: \"presentation\",\n children: [{ tag: displayFieldTag, ref: \"eInput\", cls: \"ag-input-field-input\" }]\n }\n ]\n };\n}\nvar AgAbstractInputField = class extends AgAbstractField {\n constructor(config, className, inputType = \"text\", displayFieldTag = \"input\") {\n super(config, config?.template ?? buildTemplate(displayFieldTag), [], className);\n this.inputType = inputType;\n this.displayFieldTag = displayFieldTag;\n this.eLabel = RefPlaceholder;\n this.eWrapper = RefPlaceholder;\n this.eInput = RefPlaceholder;\n }\n postConstruct() {\n super.postConstruct();\n this.setInputType(this.inputType);\n const { eLabel, eWrapper, eInput, className } = this;\n eLabel.classList.add(`${className}-label`);\n eWrapper.classList.add(`${className}-input-wrapper`);\n eInput.classList.add(`${className}-input`);\n this.addCss(\"ag-input-field\");\n eInput.id = eInput.id || `ag-${this.getCompId()}-input`;\n const { inputName, inputWidth } = this.config;\n if (inputName != null) {\n this.setInputName(inputName);\n }\n if (inputWidth != null) {\n this.setInputWidth(inputWidth);\n }\n this.addInputListeners();\n this.activateTabIndex([eInput]);\n }\n addInputListeners() {\n this.addManagedElementListeners(this.eInput, {\n input: (e) => this.setValue(e.target.value)\n });\n }\n setInputType(inputType) {\n if (this.displayFieldTag === \"input\") {\n this.inputType = inputType;\n _addOrRemoveAttribute(this.eInput, \"type\", inputType);\n }\n }\n getInputElement() {\n return this.eInput;\n }\n setInputWidth(width) {\n _setElementWidth(this.eWrapper, width);\n return this;\n }\n setInputName(name) {\n this.getInputElement().setAttribute(\"name\", name);\n return this;\n }\n getFocusableElement() {\n return this.eInput;\n }\n setMaxLength(length) {\n const eInput = this.eInput;\n eInput.maxLength = length;\n return this;\n }\n setInputPlaceholder(placeholder) {\n _addOrRemoveAttribute(this.eInput, \"placeholder\", placeholder);\n return this;\n }\n setInputAriaLabel(label) {\n _setAriaLabel(this.eInput, label);\n this.refreshAriaLabelledBy();\n return this;\n }\n setDisabled(disabled) {\n _setDisabled(this.eInput, disabled);\n return super.setDisabled(disabled);\n }\n setAutoComplete(value) {\n if (value === true) {\n _addOrRemoveAttribute(this.eInput, \"autocomplete\", null);\n } else {\n const autoCompleteValue = typeof value === \"string\" ? value : \"off\";\n _addOrRemoveAttribute(this.eInput, \"autocomplete\", autoCompleteValue);\n }\n return this;\n }\n};\n\n// packages/ag-grid-community/src/agStack/widgets/agCheckbox.ts\nvar AgCheckbox = class extends AgAbstractInputField {\n constructor(config, className = \"ag-checkbox\", inputType = \"checkbox\") {\n super(config, className, inputType);\n this.labelAlignment = \"right\";\n this.selected = false;\n this.readOnly = false;\n this.passive = false;\n }\n postConstruct() {\n super.postConstruct();\n const { readOnly, passive } = this.config;\n if (typeof readOnly === \"boolean\") {\n this.setReadOnly(readOnly);\n }\n if (typeof passive === \"boolean\") {\n this.setPassive(passive);\n }\n }\n addInputListeners() {\n this.addManagedElementListeners(this.eInput, { click: this.onCheckboxClick.bind(this) });\n this.addManagedElementListeners(this.eLabel, { click: this.toggle.bind(this) });\n }\n getNextValue() {\n return this.selected === void 0 ? true : !this.selected;\n }\n setPassive(passive) {\n this.passive = passive;\n }\n isReadOnly() {\n return this.readOnly;\n }\n setReadOnly(readOnly) {\n this.eWrapper.classList.toggle(\"ag-disabled\", readOnly);\n this.eInput.disabled = readOnly;\n this.readOnly = readOnly;\n }\n setDisabled(disabled) {\n this.eWrapper.classList.toggle(\"ag-disabled\", disabled);\n return super.setDisabled(disabled);\n }\n toggle() {\n if (this.eInput.disabled) {\n return;\n }\n const previousValue = this.isSelected();\n const nextValue = this.getNextValue();\n if (this.passive) {\n this.dispatchChange(nextValue, previousValue);\n } else {\n this.setValue(nextValue);\n }\n }\n getValue() {\n return this.isSelected();\n }\n setValue(value, silent) {\n this.refreshSelectedClass(value);\n this.setSelected(value, silent);\n return this;\n }\n setName(name) {\n const input = this.getInputElement();\n input.name = name;\n return this;\n }\n isSelected() {\n return this.selected;\n }\n setSelected(selected, silent) {\n if (this.isSelected() === selected) {\n return;\n }\n this.previousValue = this.isSelected();\n selected = this.selected = typeof selected === \"boolean\" ? selected : void 0;\n const eInput = this.eInput;\n eInput.checked = selected;\n eInput.indeterminate = selected === void 0;\n if (!silent) {\n this.dispatchChange(this.selected, this.previousValue);\n }\n }\n dispatchChange(selected, previousValue, event) {\n this.dispatchLocalEvent({ type: \"fieldValueChanged\", selected, previousValue, event });\n const input = this.getInputElement();\n this.eventSvc.dispatchEvent({\n type: \"checkboxChanged\",\n id: input.id,\n name: input.name,\n selected,\n previousValue\n });\n }\n onCheckboxClick(e) {\n if (this.passive || this.eInput.disabled) {\n return;\n }\n const previousValue = this.isSelected();\n const selected = this.selected = e.target.checked;\n this.refreshSelectedClass(selected);\n this.dispatchChange(selected, previousValue, e);\n }\n refreshSelectedClass(value) {\n const classList = this.eWrapper.classList;\n classList.toggle(\"ag-checked\", value === true);\n classList.toggle(\"ag-indeterminate\", value == null);\n }\n};\nvar AgCheckboxSelector = {\n selector: \"AG-CHECKBOX\",\n component: AgCheckbox\n};\n\n// packages/ag-grid-community/src/agStack/widgets/agRadioButton.ts\nvar AgRadioButton = class extends AgCheckbox {\n constructor(config) {\n super(config, \"ag-radio-button\", \"radio\");\n }\n isSelected() {\n return this.eInput.checked;\n }\n toggle() {\n if (this.eInput.disabled) {\n return;\n }\n if (!this.isSelected()) {\n this.setValue(true);\n }\n }\n addInputListeners() {\n super.addInputListeners();\n this.addManagedEventListeners({ checkboxChanged: this.onChange.bind(this) });\n }\n /**\n * This ensures that if another radio button in the same named group is selected, we deselect this radio button.\n * By default the browser does this for you, but we are managing classes ourselves in order to ensure input\n * elements are styled correctly in IE11, and the DOM 'changed' event is only fired when a button is selected,\n * not deselected, so we need to use our own event.\n */\n onChange(event) {\n const eInput = this.eInput;\n if (event.selected && event.name && eInput.name && eInput.name === event.name && event.id && eInput.id !== event.id) {\n this.setValue(false, true);\n }\n }\n};\n\n// packages/ag-grid-community/src/agStack/widgets/agToggleButton.css-GENERATED.ts\nvar agToggleButtonCSS = (\n /*css*/\n `.ag-toggle-button{flex:none;min-width:unset;width:unset}.ag-toggle-button-input-wrapper{background-color:var(--ag-toggle-button-off-background-color);border-radius:calc(var(--ag-toggle-button-height)*.5);flex:none;height:var(--ag-toggle-button-height);max-width:var(--ag-toggle-button-width);min-width:var(--ag-toggle-button-width);position:relative;transition:background-color .1s;:where(.ag-toggle-button-input){-webkit-appearance:none;-moz-appearance:none;appearance:none;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);opacity:0}&: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-checked{background-color:var(--ag-toggle-button-on-background-color);&:before{left:calc(100% - var(--ag-toggle-button-height) + var(--ag-toggle-button-switch-inset))}}&:focus-within{box-shadow:var(--ag-focus-shadow)}&.ag-disabled{opacity:.5}}`\n);\n\n// packages/ag-grid-community/src/agStack/widgets/agToggleButton.ts\nvar AgToggleButton = class extends AgCheckbox {\n constructor(config) {\n super(config, \"ag-toggle-button\");\n this.registerCSS(agToggleButtonCSS);\n }\n setValue(value, silent) {\n super.setValue(value, silent);\n this.toggleCss(\"ag-selected\", this.getValue());\n return this;\n }\n};\nvar AgToggleButtonSelector = {\n selector: \"AG-TOGGLE-BUTTON\",\n component: AgToggleButton\n};\n\n// packages/ag-grid-community/src/agStack/widgets/agInputTextField.ts\nvar AgInputTextField = class extends AgAbstractInputField {\n constructor(config, className = \"ag-text-field\", inputType = \"text\") {\n super(config, className, inputType);\n }\n postConstruct() {\n super.postConstruct();\n if (this.config.allowedCharPattern) {\n this.preventDisallowedCharacters();\n }\n }\n setValue(value, silent) {\n const eInput = this.eInput;\n if (eInput.value !== value) {\n eInput.value = _exists(value) ? value : \"\";\n }\n return super.setValue(value, silent);\n }\n /** Used to set an initial value into the input without necessarily setting `this.value` or triggering events (e.g. to set an invalid value) */\n setStartValue(value) {\n this.setValue(value, true);\n }\n preventDisallowedCharacters() {\n const pattern = new RegExp(`[${this.config.allowedCharPattern}]`);\n const preventCharacters = (event) => {\n if (!_isEventFromPrintableCharacter(event)) {\n return;\n }\n if (event.key && !pattern.test(event.key)) {\n event.preventDefault();\n }\n };\n this.addManagedListeners(this.eInput, {\n keydown: preventCharacters,\n paste: (e) => {\n const text = e.clipboardData?.getData(\"text\");\n if (text?.split(\"\").some((c) => !pattern.test(c))) {\n e.preventDefault();\n }\n }\n });\n }\n};\nvar AgInputTextFieldSelector = {\n selector: \"AG-INPUT-TEXT-FIELD\",\n component: AgInputTextField\n};\n\n// packages/ag-grid-community/src/agStack/widgets/agInputTextArea.ts\nvar AgInputTextArea = class extends AgAbstractInputField {\n constructor(config) {\n super(config, \"ag-text-area\", null, \"textarea\");\n }\n setValue(value, silent) {\n const ret = super.setValue(value, silent);\n this.eInput.value = value;\n return ret;\n }\n setCols(cols) {\n this.eInput.cols = cols;\n return this;\n }\n setRows(rows) {\n this.eInput.rows = rows;\n return this;\n }\n};\nvar AgInputTextAreaSelector = {\n selector: \"AG-INPUT-TEXT-AREA\",\n component: AgInputTextArea\n};\n\n// packages/ag-grid-community/src/agStack/widgets/agInputNumberField.ts\nvar AgInputNumberField = class extends AgInputTextField {\n constructor(config) {\n super(config, \"ag-number-field\", \"number\");\n }\n postConstruct() {\n super.postConstruct();\n const eInput = this.eInput;\n this.addManagedListeners(eInput, {\n blur: () => {\n const floatedValue = Number.parseFloat(eInput.value);\n const value = isNaN(floatedValue) ? \"\" : this.normalizeValue(floatedValue.toString());\n if (this.value !== value) {\n this.setValue(value);\n }\n },\n wheel: this.onWheel.bind(this)\n });\n eInput.step = \"any\";\n const { precision, min, max, step } = this.config;\n if (typeof precision === \"number\") {\n this.setPrecision(precision);\n }\n if (typeof min === \"number\") {\n this.setMin(min);\n }\n if (typeof max === \"number\") {\n this.setMax(max);\n }\n if (typeof step === \"number\") {\n this.setStep(step);\n }\n }\n onWheel(e) {\n if (_getActiveDomElement(this.beans) === this.eInput) {\n e.preventDefault();\n }\n }\n normalizeValue(value) {\n if (value === \"\") {\n return \"\";\n }\n if (this.precision != null) {\n value = this.adjustPrecision(value);\n }\n return value;\n }\n adjustPrecision(value, isScientificNotation) {\n const precision = this.precision;\n if (precision == null) {\n return value;\n }\n if (isScientificNotation) {\n const floatString = Number.parseFloat(value).toFixed(precision);\n return Number.parseFloat(floatString).toString();\n }\n const parts = String(value).split(\".\");\n if (parts.length > 1) {\n if (parts[1].length <= precision) {\n return value;\n } else if (precision > 0) {\n return `${parts[0]}.${parts[1].slice(0, precision)}`;\n }\n }\n return parts[0];\n }\n setMin(min) {\n if (this.min === min) {\n return this;\n }\n this.min = min;\n _addOrRemoveAttribute(this.eInput, \"min\", min);\n return this;\n }\n setMax(max) {\n if (this.max === max) {\n return this;\n }\n this.max = max;\n _addOrRemoveAttribute(this.eInput, \"max\", max);\n return this;\n }\n setPrecision(precision) {\n this.precision = precision;\n return this;\n }\n setStep(step) {\n if (this.step === step) {\n return this;\n }\n this.step = step;\n _addOrRemoveAttribute(this.eInput, \"step\", step);\n return this;\n }\n setValue(value, silent) {\n return this.setValueOrInputValue(\n (v) => super.setValue(v, silent),\n () => this,\n value\n );\n }\n setStartValue(value) {\n return this.setValueOrInputValue(\n (v) => super.setValue(v, true),\n (v) => {\n this.eInput.value = v;\n },\n value\n );\n }\n setValueOrInputValue(setValueFunc, setInputValueOnlyFunc, value) {\n if (_exists(value)) {\n let setInputValueOnly = this.isScientificNotation(value);\n if (setInputValueOnly && this.eInput.validity.valid) {\n return setValueFunc(value);\n }\n if (!setInputValueOnly) {\n value = this.adjustPrecision(value);\n const normalizedValue = this.normalizeValue(value);\n setInputValueOnly = value != normalizedValue;\n }\n if (setInputValueOnly) {\n return setInputValueOnlyFunc(value);\n }\n }\n return setValueFunc(value);\n }\n getValue() {\n const eInput = this.eInput;\n if (!eInput.validity.valid) {\n return void 0;\n }\n const inputValue = eInput.value;\n if (this.isScientificNotation(inputValue)) {\n return this.adjustPrecision(inputValue, true);\n }\n return super.getValue();\n }\n isScientificNotation(value) {\n return typeof value === \"string\" && value.includes(\"e\");\n }\n};\nvar AgInputNumberFieldSelector = {\n selector: \"AG-INPUT-NUMBER-FIELD\",\n component: AgInputNumberField\n};\n\n// packages/ag-grid-community/src/agStack/widgets/agInputDateField.ts\nvar AgInputDateField = class extends AgInputTextField {\n constructor(config) {\n super(config, \"ag-date-field\", \"date\");\n }\n postConstruct() {\n super.postConstruct();\n const usingSafari = _isBrowserSafari();\n this.addManagedListeners(this.eInput, {\n wheel: this.onWheel.bind(this),\n mousedown: () => {\n if (this.isDisabled() || usingSafari) {\n return;\n }\n this.eInput.focus();\n }\n });\n this.eInput.step = \"any\";\n }\n onWheel(e) {\n if (_getActiveDomElement(this.beans) === this.eInput) {\n e.preventDefault();\n }\n }\n setMin(minDate) {\n const min = minDate instanceof Date ? _serialiseDate(minDate ?? null, !!this.includeTime) ?? void 0 : minDate;\n if (this.min === min) {\n return this;\n }\n this.min = min;\n _addOrRemoveAttribute(this.eInput, \"min\", min);\n return this;\n }\n setMax(maxDate) {\n const max = maxDate instanceof Date ? _serialiseDate(maxDate ?? null, !!this.includeTime) ?? void 0 : maxDate;\n if (this.max === max) {\n return this;\n }\n this.max = max;\n _addOrRemoveAttribute(this.eInput, \"max\", max);\n return this;\n }\n setStep(step) {\n if (this.step === step) {\n return this;\n }\n this.step = step;\n _addOrRemoveAttribute(this.eInput, \"step\", step);\n return this;\n }\n setIncludeTime(includeTime) {\n if (this.includeTime === includeTime) {\n return this;\n }\n this.includeTime = includeTime;\n super.setInputType(includeTime ? \"datetime-local\" : \"date\");\n if (includeTime) {\n this.setStep(1);\n }\n return this;\n }\n getDate() {\n if (!this.eInput.validity.valid) {\n return void 0;\n }\n return _parseDateTimeFromString(this.getValue()) ?? void 0;\n }\n setDate(date, silent) {\n this.setValue(_serialiseDate(date ?? null, this.includeTime), silent);\n }\n};\nvar AgInputDateFieldSelector = {\n selector: \"AG-INPUT-DATE-FIELD\",\n component: AgInputDateField\n};\n\n// packages/ag-grid-community/src/agStack/widgets/agList.css-GENERATED.ts\nvar agListCSS = (\n /*css*/\n `.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)}}`\n);\n\n// packages/ag-grid-community/src/agStack/widgets/agListItem.ts\nvar ACTIVE_CLASS = \"ag-active-item\";\nvar getAgListElement = (cssIdentifier, label) => ({\n tag: \"div\",\n cls: `ag-list-item ag-${cssIdentifier}-list-item`,\n attrs: { role: \"option\" },\n children: [\n {\n tag: \"span\",\n ref: \"eText\",\n children: label\n }\n ]\n});\nvar AgListItem = class extends AgComponentStub {\n constructor(cssIdentifier, label, value) {\n super(getAgListElement(cssIdentifier, label));\n this.label = label;\n this.value = value;\n this.eText = RefPlaceholder;\n }\n postConstruct() {\n this.createTooltip();\n this.addEventListeners();\n }\n setHighlighted(highlighted) {\n const eGui = this.getGui();\n eGui.classList.toggle(ACTIVE_CLASS, highlighted);\n _setAriaSelected(eGui, highlighted);\n this.dispatchLocalEvent({\n type: \"itemHighlighted\",\n highlighted\n });\n }\n getHeight() {\n return this.getGui().clientHeight;\n }\n setIndex(idx, setSize) {\n const eGui = this.getGui();\n _setAriaPosInSet(eGui, idx);\n _setAriaSetSize(eGui, setSize);\n }\n createTooltip() {\n const tooltipCtrl = {\n getTooltipValue: () => this.label,\n getGui: () => this.getGui(),\n getLocation: () => \"UNKNOWN\",\n // only show tooltips for items where the text cannot be fully displayed\n shouldDisplayTooltip: () => _isHorizontalScrollShowing(this.eText)\n };\n const tooltipFeature = this.createOptionalManagedBean(\n this.beans.registry.createDynamicBean(\n \"highlightTooltipFeature\",\n false,\n tooltipCtrl,\n this\n )\n );\n if (tooltipFeature) {\n this.tooltipFeature = tooltipFeature;\n }\n }\n addEventListeners() {\n const parentComponent = this.getParentComponent();\n if (!parentComponent) {\n return;\n }\n this.addGuiEventListener(\"mouseover\", () => {\n parentComponent.highlightItem(this);\n });\n this.addGuiEventListener(\"mousedown\", (e) => {\n e.preventDefault();\n e.stopPropagation();\n parentComponent.setValue(this.value);\n });\n }\n};\n\n// packages/ag-grid-community/src/agStack/widgets/agList.ts\nvar AgList = class extends AgComponentStub {\n constructor(cssIdentifier = \"default\") {\n super({ tag: \"div\", cls: `ag-list ag-${cssIdentifier}-list` });\n this.cssIdentifier = cssIdentifier;\n this.options = [];\n this.listItems = [];\n this.highlightedItem = null;\n this.registerCSS(agListCSS);\n }\n postConstruct() {\n const eGui = this.getGui();\n this.addManagedElementListeners(eGui, { mouseleave: () => this.clearHighlighted() });\n }\n handleKeyDown(e) {\n const key = e.key;\n switch (key) {\n case KeyCode.ENTER:\n if (!this.highlightedItem) {\n this.setValue(this.getValue());\n } else {\n const pos = this.listItems.indexOf(this.highlightedItem);\n this.setValueByIndex(pos);\n }\n break;\n case KeyCode.DOWN:\n case KeyCode.UP:\n e.preventDefault();\n this.navigate(key);\n break;\n case KeyCode.PAGE_DOWN:\n case KeyCode.PAGE_UP:\n case KeyCode.PAGE_HOME:\n case KeyCode.PAGE_END:\n e.preventDefault();\n this.navigateToPage(key);\n break;\n }\n }\n addOptions(listOptions) {\n for (const listOption of listOptions) {\n this.addOption(listOption);\n }\n return this;\n }\n addOption(listOption) {\n const { value, text } = listOption;\n const valueToRender = text ?? value;\n this.options.push({ value, text: valueToRender });\n this.renderOption(value, valueToRender);\n this.updateIndices();\n return this;\n }\n clearOptions() {\n this.options = [];\n this.reset(true);\n for (const item of this.listItems) {\n item.destroy();\n }\n _clearElement(this.getGui());\n this.listItems = [];\n this.refreshAriaRole();\n }\n setValue(value, silent) {\n if (this.value === value) {\n this.fireItemSelected();\n return this;\n }\n if (value == null) {\n this.reset(silent);\n return this;\n }\n const idx = this.options.findIndex((option) => option.value === value);\n if (idx !== -1) {\n const option = this.options[idx];\n this.value = option.value;\n this.displayValue = option.text;\n this.highlightItem(this.listItems[idx]);\n if (!silent) {\n this.fireChangeEvent();\n }\n }\n return this;\n }\n setValueByIndex(idx) {\n return this.setValue(this.options[idx].value);\n }\n getValue() {\n return this.value;\n }\n getDisplayValue() {\n return this.displayValue;\n }\n refreshHighlighted() {\n this.clearHighlighted();\n const idx = this.options.findIndex((option) => option.value === this.value);\n if (idx !== -1) {\n this.highlightItem(this.listItems[idx]);\n }\n }\n highlightItem(item) {\n const itemEl = item.getGui();\n if (!_isVisible(itemEl)) {\n return;\n }\n this.clearHighlighted();\n item.setHighlighted(true);\n this.highlightedItem = item;\n const eGui = this.getGui();\n const { scrollTop, clientHeight } = eGui;\n const { offsetTop, offsetHeight } = itemEl;\n if (offsetTop + offsetHeight > scrollTop + clientHeight || offsetTop < scrollTop) {\n itemEl.scrollIntoView({ block: \"nearest\" });\n }\n }\n hideItemTooltip() {\n this.highlightedItem?.tooltipFeature?.attemptToHideTooltip();\n }\n destroy() {\n this.hideItemTooltip();\n super.destroy();\n }\n reset(silent) {\n this.value = null;\n this.displayValue = null;\n this.clearHighlighted();\n if (!silent) {\n this.fireChangeEvent();\n }\n }\n clearHighlighted() {\n this.highlightedItem?.setHighlighted(false);\n this.highlightedItem = null;\n }\n renderOption(value, text) {\n const item = new AgListItem(this.cssIdentifier, text, value);\n item.setParentComponent(this);\n const listItem = this.createManagedBean(item);\n this.listItems.push(listItem);\n this.getGui().appendChild(listItem.getGui());\n }\n navigate(key) {\n const isDown = key === KeyCode.DOWN;\n let itemToHighlight;\n const { listItems, highlightedItem } = this;\n if (!highlightedItem) {\n itemToHighlight = isDown ? listItems[0] : _last(listItems);\n } else {\n const currentIdx = listItems.indexOf(highlightedItem);\n let nextPos = currentIdx + (isDown ? 1 : -1);\n nextPos = Math.min(Math.max(nextPos, 0), listItems.length - 1);\n itemToHighlight = listItems[nextPos];\n }\n this.highlightItem(itemToHighlight);\n }\n navigateToPage(key) {\n const { listItems, highlightedItem } = this;\n if (!highlightedItem || listItems.length === 0) {\n return;\n }\n const currentIdx = listItems.indexOf(highlightedItem);\n const rowCount = this.options.length - 1;\n const itemHeight = listItems[0].getHeight();\n const pageSize = Math.floor(this.getGui().clientHeight / itemHeight);\n let newIndex = -1;\n if (key === KeyCode.PAGE_HOME) {\n newIndex = 0;\n } else if (key === KeyCode.PAGE_END) {\n newIndex = rowCount;\n } else if (key === KeyCode.PAGE_DOWN) {\n newIndex = Math.min(currentIdx + pageSize, rowCount);\n } else if (key === KeyCode.PAGE_UP) {\n newIndex = Math.max(currentIdx - pageSize, 0);\n }\n if (newIndex === -1) {\n return;\n }\n this.highlightItem(listItems[newIndex]);\n }\n refreshAriaRole() {\n _setAriaRole(this.getGui(), this.options.length === 0 ? \"presentation\" : \"listbox\");\n }\n updateIndices() {\n this.refreshAriaRole();\n const listItems = this.listItems;\n const len = listItems.length;\n listItems.forEach((item, idx) => {\n item.setIndex(idx + 1, len);\n });\n }\n fireChangeEvent() {\n this.dispatchLocalEvent({ type: \"fieldValueChanged\" });\n this.fireItemSelected();\n }\n fireItemSelected() {\n this.dispatchLocalEvent({ type: \"selectedItem\" });\n }\n};\n\n// packages/ag-grid-community/src/agStack/widgets/agPickerField.css-GENERATED.ts\nvar agPickerFieldCSS = (\n /*css*/\n `.ag-picker-field-display{flex:1 1 auto}.ag-picker-field{align-items:center;display:flex}.ag-picker-field-icon{border:0;cursor:pointer;display:flex;margin:0;padding:0}.ag-picker-field-wrapper{background-color:var(--ag-picker-button-background-color);border:var(--ag-picker-button-border);border-radius:5px;min-height:max(var(--ag-list-item-height),calc(var(--ag-spacing)*4));overflow:hidden;&:where(.ag-picker-has-focus),&:where(:focus-within){background-color:var(--ag-picker-button-focus-background-color);border:var(--ag-picker-button-focus-border);box-shadow:var(--ag-focus-shadow);&:where(.invalid){box-shadow:var(--ag-focus-error-shadow)}}&:where(.invalid){background-color:var(--ag-input-invalid-background-color);border:var(--ag-input-invalid-border);color:var(--ag-input-invalid-text-color)}&:disabled{opacity:.5}}`\n);\n\n// packages/ag-grid-community/src/agStack/widgets/agPickerField.ts\nvar AgPickerFieldElement = {\n tag: \"div\",\n cls: \"ag-picker-field\",\n role: \"presentation\",\n children: [\n { tag: \"div\", ref: \"eLabel\" },\n {\n tag: \"div\",\n ref: \"eWrapper\",\n cls: \"ag-wrapper ag-picker-field-wrapper ag-picker-collapsed\",\n children: [\n { tag: \"div\", ref: \"eDisplayField\", cls: \"ag-picker-field-display\" },\n { tag: \"div\", ref: \"eIcon\", cls: \"ag-picker-field-icon\", attrs: { \"aria-hidden\": \"true\" } }\n ]\n }\n ]\n};\nvar AgPickerField = class extends AgAbstractField {\n constructor(config) {\n super(config, config?.template || AgPickerFieldElement, config?.agComponents || [], config?.className);\n this.isPickerDisplayed = false;\n this.skipClick = false;\n this.pickerGap = 4;\n this.hideCurrentPicker = null;\n this.eLabel = RefPlaceholder;\n this.eWrapper = RefPlaceholder;\n this.eDisplayField = RefPlaceholder;\n this.eIcon = RefPlaceholder;\n this.registerCSS(agPickerFieldCSS);\n this.ariaRole = config?.ariaRole;\n this.onPickerFocusIn = this.onPickerFocusIn.bind(this);\n this.onPickerFocusOut = this.onPickerFocusOut.bind(this);\n if (!config) {\n return;\n }\n const { pickerGap, maxPickerHeight, variableWidth, minPickerWidth, maxPickerWidth } = config;\n if (pickerGap != null) {\n this.pickerGap = pickerGap;\n }\n this.variableWidth = !!variableWidth;\n if (maxPickerHeight != null) {\n this.setPickerMaxHeight(maxPickerHeight);\n }\n if (minPickerWidth != null) {\n this.setPickerMinWidth(minPickerWidth);\n }\n if (maxPickerWidth != null) {\n this.setPickerMaxWidth(maxPickerWidth);\n }\n }\n postConstruct() {\n super.postConstruct();\n this.setupAria();\n const displayId = `ag-${this.getCompId()}-display`;\n this.eDisplayField.setAttribute(\"id\", displayId);\n const ariaEl = this.getAriaElement();\n this.addManagedElementListeners(ariaEl, { keydown: this.onKeyDown.bind(this) });\n this.addManagedElementListeners(this.eLabel, { mousedown: this.onLabelOrWrapperMouseDown.bind(this) });\n this.addManagedElementListeners(this.eWrapper, { mousedown: this.onLabelOrWrapperMouseDown.bind(this) });\n const { pickerIcon, inputWidth } = this.config;\n if (pickerIcon) {\n const icon = this.beans.iconSvc.createIconNoSpan(pickerIcon);\n if (icon) {\n this.eIcon.appendChild(icon);\n }\n }\n if (inputWidth != null) {\n this.setInputWidth(inputWidth);\n }\n }\n setupAria() {\n const ariaEl = this.getAriaElement();\n ariaEl.setAttribute(\"tabindex\", this.gos.get(\"tabIndex\").toString());\n _setAriaExpanded(ariaEl, false);\n if (this.ariaRole) {\n _setAriaRole(ariaEl, this.ariaRole);\n }\n }\n onLabelOrWrapperMouseDown(e) {\n if (e) {\n const focusableEl = this.getFocusableElement();\n if (focusableEl !== this.eWrapper && e?.target === focusableEl) {\n return;\n }\n e.preventDefault();\n this.getFocusableElement().focus();\n }\n if (this.skipClick) {\n this.skipClick = false;\n return;\n }\n if (this.isDisabled()) {\n return;\n }\n if (this.isPickerDisplayed) {\n this.hidePicker();\n } else {\n this.showPicker();\n }\n }\n onKeyDown(e) {\n switch (e.key) {\n case KeyCode.UP:\n case KeyCode.DOWN:\n case KeyCode.ENTER:\n case KeyCode.SPACE:\n e.preventDefault();\n this.onLabelOrWrapperMouseDown();\n break;\n case KeyCode.ESCAPE:\n if (this.isPickerDisplayed) {\n e.preventDefault();\n e.stopPropagation();\n if (this.hideCurrentPicker) {\n this.hideCurrentPicker();\n }\n }\n break;\n }\n }\n showPicker() {\n this.isPickerDisplayed = true;\n if (!this.pickerComponent) {\n this.pickerComponent = this.createPickerComponent();\n }\n const pickerGui = this.pickerComponent.getGui();\n pickerGui.addEventListener(\"focusin\", this.onPickerFocusIn);\n pickerGui.addEventListener(\"focusout\", this.onPickerFocusOut);\n this.hideCurrentPicker = this.renderAndPositionPicker();\n this.toggleExpandedStyles(true);\n }\n renderAndPositionPicker() {\n const ePicker = this.pickerComponent.getGui();\n if (!this.gos.get(\"suppressScrollWhenPopupsAreOpen\")) {\n [this.destroyMouseWheelFunc] = this.addManagedEventListeners({\n bodyScroll: () => {\n this.hidePicker();\n }\n });\n }\n const translate = this.getLocaleTextFunc();\n const {\n config: { pickerAriaLabelKey, pickerAriaLabelValue, modalPicker = true },\n maxPickerHeight,\n minPickerWidth,\n maxPickerWidth,\n variableWidth,\n beans,\n eWrapper\n } = this;\n const popupParams = {\n modal: modalPicker,\n eChild: ePicker,\n closeOnEsc: true,\n closedCallback: () => {\n const shouldRestoreFocus = _isNothingFocused(beans);\n this.beforeHidePicker();\n if (shouldRestoreFocus && this.isAlive()) {\n this.getFocusableElement().focus();\n }\n },\n ariaLabel: translate(pickerAriaLabelKey, pickerAriaLabelValue),\n anchorToElement: eWrapper\n };\n ePicker.style.position = \"absolute\";\n const popupSvc = beans.popupSvc;\n const addPopupRes = popupSvc.addPopup(popupParams);\n if (variableWidth) {\n if (minPickerWidth) {\n ePicker.style.minWidth = minPickerWidth;\n }\n ePicker.style.width = _formatSize(_getAbsoluteWidth(eWrapper));\n if (maxPickerWidth) {\n ePicker.style.maxWidth = maxPickerWidth;\n }\n } else {\n _setElementWidth(ePicker, maxPickerWidth ?? _getAbsoluteWidth(eWrapper));\n }\n const maxHeight = maxPickerHeight ?? `${_getInnerHeight(popupSvc.getPopupParent())}px`;\n ePicker.style.setProperty(\"max-height\", maxHeight);\n this.alignPickerToComponent();\n return addPopupRes.hideFunc;\n }\n alignPickerToComponent() {\n if (!this.pickerComponent) {\n return;\n }\n const {\n pickerGap,\n config: { pickerType },\n beans: { popupSvc, gos },\n eWrapper,\n pickerComponent\n } = this;\n const alignSide = gos.get(\"enableRtl\") ? \"right\" : \"left\";\n popupSvc.positionPopupByComponent({\n type: pickerType,\n eventSource: eWrapper,\n ePopup: pickerComponent.getGui(),\n position: \"under\",\n alignSide,\n keepWithinBounds: true,\n nudgeY: pickerGap\n });\n }\n beforeHidePicker() {\n if (this.destroyMouseWheelFunc) {\n this.destroyMouseWheelFunc();\n this.destroyMouseWheelFunc = void 0;\n }\n this.toggleExpandedStyles(false);\n const pickerGui = this.pickerComponent.getGui();\n pickerGui.removeEventListener(\"focusin\", this.onPickerFocusIn);\n pickerGui.removeEventListener(\"focusout\", this.onPickerFocusOut);\n this.isPickerDisplayed = false;\n this.pickerComponent = void 0;\n this.hideCurrentPicker = null;\n }\n toggleExpandedStyles(expanded) {\n if (!this.isAlive()) {\n return;\n }\n const ariaEl = this.getAriaElement();\n _setAriaExpanded(ariaEl, expanded);\n const classList = this.eWrapper.classList;\n classList.toggle(\"ag-picker-expanded\", expanded);\n classList.toggle(\"ag-picker-collapsed\", !expanded);\n }\n onPickerFocusIn() {\n this.togglePickerHasFocus(true);\n }\n onPickerFocusOut(e) {\n if (!this.pickerComponent?.getGui().contains(e.relatedTarget)) {\n this.togglePickerHasFocus(false);\n }\n }\n togglePickerHasFocus(focused) {\n if (!this.pickerComponent) {\n return;\n }\n this.eWrapper.classList.toggle(\"ag-picker-has-focus\", focused);\n }\n hidePicker() {\n if (this.hideCurrentPicker) {\n this.hideCurrentPicker();\n this.dispatchLocalEvent({\n type: \"pickerHidden\"\n });\n }\n }\n setInputWidth(width) {\n _setElementWidth(this.eWrapper, width);\n return this;\n }\n getFocusableElement() {\n return this.eWrapper;\n }\n setPickerGap(gap) {\n this.pickerGap = gap;\n return this;\n }\n setPickerMinWidth(width) {\n if (typeof width === \"number\") {\n width = `${width}px`;\n }\n this.minPickerWidth = width == null ? void 0 : width;\n return this;\n }\n setPickerMaxWidth(width) {\n if (typeof width === \"number\") {\n width = `${width}px`;\n }\n this.maxPickerWidth = width == null ? void 0 : width;\n return this;\n }\n setPickerMaxHeight(height) {\n if (typeof height === \"number\") {\n height = `${height}px`;\n }\n this.maxPickerHeight = height == null ? void 0 : height;\n return this;\n }\n destroy() {\n this.hidePicker();\n super.destroy();\n }\n};\n\n// packages/ag-grid-community/src/agStack/widgets/agSelect.css-GENERATED.ts\nvar agSelectCSS = (\n /*css*/\n `.ag-select{align-items:center;display:flex;&.ag-disabled{opacity:.5}}:where(.ag-select){.ag-picker-field-wrapper{cursor:default}&.ag-disabled .ag-picker-field-wrapper:focus{box-shadow:none}&:not(.ag-cell-editor,.ag-label-align-top){min-height:var(--ag-list-item-height)}.ag-picker-field-display{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.ag-picker-field-icon{align-items:center;display:flex}}:where(.ag-ltr) :where(.ag-select){.ag-picker-field-wrapper{padding-left:calc(var(--ag-cell-horizontal-padding)/2);padding-right:var(--ag-spacing)}}:where(.ag-rtl) :where(.ag-select){.ag-picker-field-wrapper{padding-left:var(--ag-spacing);padding-right:calc(var(--ag-cell-horizontal-padding)/2)}}.ag-select-list{background-color:var(--ag-picker-list-background-color);border:var(--ag-picker-list-border);border-radius:var(--ag-border-radius);box-shadow:var(--ag-dropdown-shadow);overflow:hidden auto}.ag-select-list-item{cursor:default;-webkit-user-select:none;-moz-user-select:none;user-select:none;:where(span){overflow:hidden;text-overflow:ellipsis;white-space:nowrap}}:where(.ag-ltr) .ag-select-list-item{padding-left:calc(var(--ag-cell-horizontal-padding)/2)}:where(.ag-rtl) .ag-select-list-item{padding-right:calc(var(--ag-cell-horizontal-padding)/2)}`\n);\n\n// packages/ag-grid-community/src/agStack/widgets/agSelect.ts\nvar AgSelect = class extends AgPickerField {\n constructor(config) {\n super({\n pickerAriaLabelKey: \"ariaLabelSelectField\",\n pickerAriaLabelValue: \"Select Field\",\n pickerType: \"ag-list\",\n className: \"ag-select\",\n pickerIcon: \"selectOpen\",\n ariaRole: \"combobox\",\n ...config\n });\n this.registerCSS(agSelectCSS);\n }\n postConstruct() {\n this.tooltipFeature = this.createOptionalManagedBean(\n this.beans.registry.createDynamicBean(\n \"tooltipFeature\",\n false,\n {\n shouldDisplayTooltip: _isElementOverflowingCallback(() => this.eDisplayField),\n getGui: () => this.getGui()\n }\n )\n );\n super.postConstruct();\n this.createListComponent();\n this.eWrapper.tabIndex = this.gos.get(\"tabIndex\");\n const { options, value, placeholder } = this.config;\n if (options != null) {\n this.addOptions(options);\n }\n if (value != null) {\n this.setValue(value, true);\n }\n if (placeholder && value == null) {\n this.eDisplayField.textContent = placeholder;\n }\n this.addManagedElementListeners(this.eWrapper, { focusout: this.onWrapperFocusOut.bind(this) });\n }\n onWrapperFocusOut(e) {\n if (!this.eWrapper.contains(e.relatedTarget)) {\n this.hidePicker();\n }\n }\n createListComponent() {\n const listComponent = this.createBean(\n new AgList(\"select\")\n );\n this.listComponent = listComponent;\n listComponent.setParentComponent(this);\n const eListAriaEl = listComponent.getAriaElement();\n const listId = `ag-select-list-${listComponent.getCompId()}`;\n eListAriaEl.setAttribute(\"id\", listId);\n _setAriaControlsAndLabel(this.getAriaElement(), eListAriaEl);\n listComponent.addManagedElementListeners(listComponent.getGui(), {\n mousedown: (e) => {\n e?.preventDefault();\n }\n });\n listComponent.addManagedListeners(listComponent, {\n selectedItem: () => {\n this.hidePicker();\n this.dispatchLocalEvent({ type: \"selectedItem\" });\n },\n fieldValueChanged: () => {\n if (!this.listComponent) {\n return;\n }\n this.setValue(this.listComponent.getValue(), false, true);\n this.hidePicker();\n }\n });\n }\n createPickerComponent() {\n return this.listComponent;\n }\n beforeHidePicker() {\n this.listComponent?.hideItemTooltip();\n super.beforeHidePicker();\n }\n onKeyDown(e) {\n const { key } = e;\n if (key === KeyCode.TAB) {\n this.hidePicker();\n }\n switch (key) {\n case KeyCode.ENTER:\n case KeyCode.UP:\n case KeyCode.DOWN:\n case KeyCode.PAGE_UP:\n case KeyCode.PAGE_DOWN:\n case KeyCode.PAGE_HOME:\n case KeyCode.PAGE_END:\n e.preventDefault();\n if (this.isPickerDisplayed) {\n this.listComponent?.handleKeyDown(e);\n } else {\n super.onKeyDown(e);\n }\n break;\n case KeyCode.ESCAPE:\n super.onKeyDown(e);\n break;\n case KeyCode.SPACE:\n if (this.isPickerDisplayed) {\n e.preventDefault();\n } else {\n super.onKeyDown(e);\n }\n break;\n }\n }\n showPicker() {\n const listComponent = this.listComponent;\n if (!listComponent) {\n return;\n }\n super.showPicker();\n listComponent.refreshHighlighted();\n }\n addOptions(options) {\n for (const option of options) {\n this.addOption(option);\n }\n return this;\n }\n addOption(option) {\n this.listComponent.addOption(option);\n return this;\n }\n clearOptions() {\n this.listComponent?.clearOptions();\n this.setValue(void 0, true);\n return this;\n }\n setValue(value, silent, fromPicker) {\n const {\n listComponent,\n config: { placeholder },\n eDisplayField,\n tooltipFeature\n } = this;\n if (this.value === value || !listComponent) {\n return this;\n }\n if (!fromPicker) {\n listComponent.setValue(value, true);\n }\n const newValue = listComponent.getValue();\n if (newValue === this.getValue()) {\n return this;\n }\n let displayValue = listComponent.getDisplayValue();\n if (displayValue == null && placeholder) {\n displayValue = placeholder;\n }\n eDisplayField.textContent = displayValue;\n tooltipFeature?.setTooltipAndRefresh(displayValue ?? null);\n return super.setValue(value, silent);\n }\n destroy() {\n this.listComponent = this.destroyBean(this.listComponent);\n super.destroy();\n }\n};\nvar AgSelectSelector = {\n selector: \"AG-SELECT\",\n component: AgSelect\n};\n\n// packages/ag-grid-community/src/agStack/constants/direction.ts\nvar Direction = /* @__PURE__ */ ((Direction2) => {\n Direction2[Direction2[\"Vertical\"] = 0] = \"Vertical\";\n Direction2[Direction2[\"Horizontal\"] = 1] = \"Horizontal\";\n return Direction2;\n})(Direction || {});\n\n// packages/ag-grid-community/src/agStack/theming/shared/shared.css-GENERATED.ts\nvar sharedCSS = (\n /*css*/\n `:where(.ag-root-wrapper,.ag-external,.ag-popup,.ag-dnd-ghost,.ag-chart),:where(.ag-root-wrapper,.ag-external,.ag-popup,.ag-dnd-ghost,.ag-chart) :where([class^=ag-]){box-sizing:border-box;&:after,&:before{box-sizing:border-box}&:where(div,span,label):focus-visible{box-shadow:inset var(--ag-focus-shadow);outline:none;&:where(.invalid){box-shadow:inset var(--ag-focus-error-shadow)}}&:where(button){color:inherit}}:where(.ag-root-wrapper,ag-external,.ag-popup,.ag-dnd-ghost,.ag-chart) :where([class^=ag-]) ::-ms-clear{display:none}.ag-hidden{display:none!important}.ag-invisible{visibility:hidden!important}.ag-popup-child{top:0;z-index:5;&:where(:not(.ag-tooltip-custom)){box-shadow:var(--ag-popup-shadow)}}.ag-input-wrapper,.ag-picker-field-wrapper{align-items:center;display:flex;flex:1 1 auto;line-height:normal;position:relative}.ag-input-field{align-items:center;display:flex;flex-direction:row}.ag-input-field-input:where(:not([type=checkbox],[type=radio])){flex:1 1 auto;min-width:0;width:100%}.ag-chart,.ag-dnd-ghost,.ag-external,.ag-popup,.ag-root-wrapper{cursor:default;line-height:normal;white-space:normal;-webkit-font-smoothing:antialiased;background-color:var(--ag-background-color);color:var(--ag-text-color);color-scheme:var(--ag-browser-color-scheme);font-family:var(--ag-font-family);font-size:var(--ag-font-size);--ag-indentation-level:0}:where(.ag-icon):before{align-items:center;background-color:currentcolor;color:inherit;content:\"\";display:flex;font-family:inherit;font-size:var(--ag-icon-size);font-style:normal;font-variant:normal;height:var(--ag-icon-size);justify-content:center;line-height:var(--ag-icon-size);-webkit-mask-size:contain;mask-size:contain;text-transform:none;width:var(--ag-icon-size)}.ag-icon{background-position:50%;background-repeat:no-repeat;background-size:contain;color:var(--ag-icon-color);display:block;height:var(--ag-icon-size);position:relative;-webkit-user-select:none;-moz-user-select:none;user-select:none;width:var(--ag-icon-size)}.ag-disabled,[disabled]{.ag-icon{opacity:.5}&.ag-icon-grip{opacity:.35}}.ag-resizer{pointer-events:none;position:absolute;-webkit-user-select:none;-moz-user-select:none;user-select:none;z-index:1}:where(.ag-resizer){&.ag-resizer-topLeft{cursor:nwse-resize;height:5px;left:0;top:0;width:5px}&.ag-resizer-top{cursor:ns-resize;height:5px;left:5px;right:5px;top:0}&.ag-resizer-topRight{cursor:nesw-resize;height:5px;right:0;top:0;width:5px}&.ag-resizer-right{bottom:5px;cursor:ew-resize;right:0;top:5px;width:5px}&.ag-resizer-bottomRight{bottom:0;cursor:nwse-resize;height:5px;right:0;width:5px}&.ag-resizer-bottom{bottom:0;cursor:ns-resize;height:5px;left:5px;right:5px}&.ag-resizer-bottomLeft{bottom:0;cursor:nesw-resize;height:5px;left:0;width:5px}&.ag-resizer-left{bottom:5px;cursor:ew-resize;left:0;top:5px;width:5px}}`\n);\n\n// packages/ag-grid-community/src/agStack/theming/inject.ts\nvar IS_SSR = typeof window !== \"object\" || !window?.document?.fonts?.forEach;\nvar FORCE_LEGACY_THEMES = false;\nvar _injectGlobalCSS = (css, styleContainer, debugId, layer, priority, nonce) => {\n if (IS_SSR) {\n return;\n }\n if (FORCE_LEGACY_THEMES) {\n return;\n }\n if (layer) {\n css = `@layer ${CSS.escape(layer)} { ${css} }`;\n }\n let injections = injectionState.map.get(styleContainer);\n if (!injections) {\n injections = [];\n injectionState.map.set(styleContainer, injections);\n }\n if (injections.some((i) => i.css === css)) {\n return;\n }\n const el = document.createElement(\"style\");\n if (nonce) {\n el.setAttribute(\"nonce\", nonce);\n }\n el.dataset.agGlobalCss = debugId;\n el.textContent = css;\n const newInjection = { css, el, priority };\n let insertAfter;\n for (const injection of injections) {\n if (injection.priority > priority) {\n break;\n }\n insertAfter = injection;\n }\n if (insertAfter) {\n insertAfter.el.insertAdjacentElement(\"afterend\", el);\n const index = injections.indexOf(insertAfter);\n injections.splice(index + 1, 0, newInjection);\n } else {\n styleContainer.insertBefore(el, styleContainer.querySelector(\":not(title, meta)\"));\n injections.push(newInjection);\n }\n};\nvar _injectCoreAndModuleCSS = (styleContainer, layer, nonce, moduleCss) => {\n _injectGlobalCSS(sharedCSS, styleContainer, \"shared\", layer, 0, nonce);\n moduleCss?.forEach(\n (css, debugId) => css.forEach((singleCss) => _injectGlobalCSS(singleCss, styleContainer, debugId, layer, 0, nonce))\n );\n};\nvar _registerInstanceUsingThemingAPI = (environment) => {\n injectionState.grids.add(environment);\n};\nvar _unregisterInstanceUsingThemingAPI = (environment) => {\n injectionState.grids.delete(environment);\n if (injectionState.grids.size === 0) {\n injectionState.map = /* @__PURE__ */ new WeakMap();\n for (const style of document.head.querySelectorAll(\"style[data-ag-global-css]\")) {\n style.remove();\n }\n }\n};\nvar _a;\nvar injectionState = (_a = typeof window === \"object\" ? window : {}).agStyleInjectionState ?? (_a.agStyleInjectionState = {\n map: /* @__PURE__ */ new WeakMap(),\n grids: /* @__PURE__ */ new Set()\n});\n\n// packages/ag-grid-community/src/agStack/theming/partImpl.ts\nvar createPart = (args) => {\n return new PartImpl(args);\n};\nvar defaultModeName = \"$default\";\nvar partCounter = 0;\nvar PartImpl = class {\n constructor({ feature, params, modeParams = {}, css, cssImports }) {\n this.feature = feature;\n this.css = css;\n this.cssImports = cssImports;\n this.modeParams = {\n // NOTE: it's important that default is defined first, putting it\n // first in iteration order, because when merging params the default\n // params override any prior modal params, so modal params in this\n // part need to come after default params to prevent them from being\n // immediately overridden.\n [defaultModeName]: {\n ...modeParams[defaultModeName] ?? {},\n ...params ?? {}\n },\n ...modeParams\n };\n }\n use(styleContainer, layer, nonce) {\n let inject = this._inject;\n if (inject == null) {\n let { css } = this;\n if (css) {\n const className = `ag-theme-${this.feature ?? \"part\"}-${++partCounter}`;\n if (typeof css === \"function\") {\n css = css();\n }\n css = `:where(.${className}) {\n${css}\n}\n`;\n for (const cssImport of this.cssImports ?? []) {\n css = `@import url(${JSON.stringify(cssImport)});\n${css}`;\n }\n inject = { css, class: className };\n } else {\n inject = false;\n }\n this._inject = inject;\n }\n if (inject && styleContainer) {\n _injectGlobalCSS(inject.css, styleContainer, inject.class, layer, 1, nonce);\n }\n return inject ? inject.class : false;\n }\n};\n\n// packages/ag-grid-community/src/agStack/theming/themeUtils.ts\nvar kebabCase = (str) => str.replace(/[A-Z]/g, (m) => `-${m}`).toLowerCase();\nvar paramToVariableName = (paramName) => `--ag-${kebabCase(paramName)}`;\nvar paramToVariableExpression = (paramName) => `var(${paramToVariableName(paramName)})`;\nvar clamp = (value, min, max) => Math.max(min, Math.min(max, value));\nvar memoize = (fn) => {\n const values = /* @__PURE__ */ new Map();\n return (a) => {\n const key = a;\n if (!values.has(key)) {\n values.set(key, fn(a));\n }\n return values.get(key);\n };\n};\nvar accentMix = (mix) => ({ ref: \"accentColor\", mix });\nvar foregroundMix = (mix) => ({ ref: \"foregroundColor\", mix });\nvar foregroundBackgroundMix = (mix) => ({\n ref: \"foregroundColor\",\n mix,\n onto: \"backgroundColor\"\n});\nvar foregroundHeaderBackgroundMix = (mix) => ({\n ref: \"foregroundColor\",\n mix,\n onto: \"headerBackgroundColor\"\n});\nvar backgroundColor = { ref: \"backgroundColor\" };\nvar foregroundColor = { ref: \"foregroundColor\" };\nvar accentColor = { ref: \"accentColor\" };\n\n// packages/ag-grid-community/src/agStack/theming/shared/shared-css.ts\nvar defaultLightColorSchemeParams = {\n backgroundColor: \"#fff\",\n foregroundColor: \"#181d1f\",\n borderColor: foregroundMix(0.15),\n chromeBackgroundColor: foregroundBackgroundMix(0.02),\n browserColorScheme: \"light\"\n};\nvar sharedDefaults = {\n ...defaultLightColorSchemeParams,\n textColor: foregroundColor,\n accentColor: \"#2196f3\",\n invalidColor: \"#e02525\",\n fontFamily: [\n \"-apple-system\",\n \"BlinkMacSystemFont\",\n \"Segoe UI\",\n \"Roboto\",\n \"Oxygen-Sans\",\n \"Ubuntu\",\n \"Cantarell\",\n \"Helvetica Neue\",\n \"sans-serif\"\n ],\n subtleTextColor: {\n ref: \"textColor\",\n mix: 0.5\n },\n borderWidth: 1,\n borderRadius: 4,\n spacing: 8,\n fontSize: 14,\n focusShadow: {\n spread: 3,\n color: accentMix(0.5)\n },\n focusErrorShadow: {\n spread: 3,\n color: {\n ref: \"invalidColor\",\n onto: \"backgroundColor\",\n mix: 0.5\n }\n },\n popupShadow: \"0 0 16px #00000026\",\n cardShadow: \"0 1px 4px 1px #00000018\",\n dropdownShadow: { ref: \"cardShadow\" },\n listItemHeight: {\n calc: \"max(iconSize, dataFontSize) + widgetVerticalSpacing\"\n },\n dragAndDropImageBackgroundColor: backgroundColor,\n dragAndDropImageBorder: true,\n dragAndDropImageNotAllowedBorder: {\n color: {\n ref: \"invalidColor\",\n onto: \"dragAndDropImageBackgroundColor\",\n mix: 0.5\n }\n },\n dragAndDropImageShadow: {\n ref: \"popupShadow\"\n },\n iconSize: 16,\n iconColor: \"inherit\",\n toggleButtonWidth: 28,\n toggleButtonHeight: 18,\n toggleButtonOnBackgroundColor: accentColor,\n toggleButtonOffBackgroundColor: foregroundBackgroundMix(0.3),\n toggleButtonSwitchBackgroundColor: backgroundColor,\n toggleButtonSwitchInset: 2,\n tooltipBackgroundColor: {\n ref: \"chromeBackgroundColor\"\n },\n tooltipErrorBackgroundColor: {\n ref: \"invalidColor\",\n onto: \"backgroundColor\",\n mix: 0.1\n },\n tooltipTextColor: {\n ref: \"textColor\"\n },\n tooltipErrorTextColor: {\n ref: \"invalidColor\"\n },\n tooltipBorder: true,\n tooltipErrorBorder: {\n color: {\n ref: \"invalidColor\",\n onto: \"backgroundColor\",\n mix: 0.25\n }\n }\n};\n\n// packages/ag-grid-community/src/agStack/theming/themeTypeUtils.ts\nvar paramTypes = [\n \"colorScheme\",\n \"color\",\n \"length\",\n \"scale\",\n \"borderStyle\",\n \"border\",\n \"shadow\",\n \"image\",\n \"fontFamily\",\n \"fontWeight\",\n \"duration\"\n];\nvar getParamType = memoize((param) => {\n param = param.toLowerCase();\n return paramTypes.find((type) => param.endsWith(type.toLowerCase())) ?? \"length\";\n});\nvar literalToCSS = (value) => {\n if (typeof value === \"object\" && value?.ref) {\n return paramToVariableExpression(value.ref);\n }\n if (typeof value === \"string\") {\n return value;\n }\n if (typeof value === \"number\") {\n return String(value);\n }\n return false;\n};\nvar colorValueToCss = (value) => {\n if (typeof value === \"string\") {\n return value;\n }\n if (value && \"ref\" in value) {\n const colorExpr = paramToVariableExpression(value.ref);\n if (value.mix == null) {\n return colorExpr;\n }\n const backgroundExpr = value.onto ? paramToVariableExpression(value.onto) : \"transparent\";\n return `color-mix(in srgb, ${backgroundExpr}, ${colorExpr} ${clamp(value.mix * 100, 0, 100)}%)`;\n }\n return false;\n};\nvar colorSchemeValueToCss = literalToCSS;\nvar lengthValueToCss = (value) => {\n if (typeof value === \"string\") {\n return value;\n }\n if (typeof value === \"number\") {\n return `${value}px`;\n }\n if (value && \"calc\" in value) {\n const valueWithSpaces = value.calc.replace(/ ?[*/+] ?/g, \" $& \");\n return `calc(${valueWithSpaces.replace(/-?\\b[a-z][a-z0-9]*\\b(?![-(])/gi, (p) => p[0] === \"-\" ? p : \" \" + paramToVariableExpression(p) + \" \")})`;\n }\n if (value && \"ref\" in value) {\n return paramToVariableExpression(value.ref);\n }\n return false;\n};\nvar scaleValueToCss = literalToCSS;\nvar borderValueToCss = (value, param) => {\n if (typeof value === \"string\") {\n return value;\n }\n if (value === true) {\n return borderValueToCss({}, param);\n }\n if (value === false) {\n return param === \"columnBorder\" ? borderValueToCss({ color: \"transparent\" }, param) : \"none\";\n }\n if (value && \"ref\" in value) {\n return paramToVariableExpression(value.ref);\n }\n return borderStyleValueToCss(value.style ?? \"solid\") + \" \" + lengthValueToCss(value.width ?? { ref: \"borderWidth\" }) + \" \" + colorValueToCss(value.color ?? { ref: \"borderColor\" });\n};\nvar shadowValueToCss = (value) => {\n if (typeof value === \"string\") {\n return value;\n }\n if (value === false) {\n return \"none\";\n }\n if (value && \"ref\" in value) {\n return paramToVariableExpression(value.ref);\n }\n return [\n lengthValueToCss(value.offsetX ?? 0),\n lengthValueToCss(value.offsetY ?? 0),\n lengthValueToCss(value.radius ?? 0),\n lengthValueToCss(value.spread ?? 0),\n colorValueToCss(value.color ?? { ref: \"foregroundColor\" })\n ].join(\" \");\n};\nvar borderStyleValueToCss = literalToCSS;\nvar fontFamilyValueToCss = (value) => {\n if (typeof value === \"string\") {\n return value.includes(\",\") ? value : quoteUnsafeChars(value);\n }\n if (value && \"googleFont\" in value) {\n return fontFamilyValueToCss(value.googleFont);\n }\n if (value && \"ref\" in value) {\n return paramToVariableExpression(value.ref);\n }\n if (Array.isArray(value)) {\n return value.map((font) => {\n if (typeof font === \"object\" && \"googleFont\" in font) {\n font = font.googleFont;\n }\n return quoteUnsafeChars(font);\n }).join(\", \");\n }\n return false;\n};\nvar quoteUnsafeChars = (font) => (\n // don't quote var() expressions or quote safe identifier names, so that\n // people can specify fonts like sans-serif which are keywords not strings,\n // or var(--my-var)\n /^[\\w-]+$|\\w\\(/.test(font) ? font : JSON.stringify(font)\n);\nvar fontWeightValueToCss = literalToCSS;\nvar imageValueToCss = (value) => {\n if (typeof value === \"string\") {\n return value;\n }\n if (value && \"url\" in value) {\n return `url(${JSON.stringify(value.url)})`;\n }\n if (value && \"svg\" in value) {\n return imageValueToCss({ url: `data:image/svg+xml,${encodeURIComponent(value.svg)}` });\n }\n if (value && \"ref\" in value) {\n return paramToVariableExpression(value.ref);\n }\n return false;\n};\nvar durationValueToCss = (value, param, themeLogger) => {\n if (typeof value === \"string\") {\n return value;\n }\n if (typeof value === \"number\") {\n if (value >= 10) {\n themeLogger.warn(104, { value, param });\n }\n return `${value}s`;\n }\n if (value && \"ref\" in value) {\n return paramToVariableExpression(value.ref);\n }\n return false;\n};\nvar paramValidators = {\n color: colorValueToCss,\n colorScheme: colorSchemeValueToCss,\n length: lengthValueToCss,\n scale: scaleValueToCss,\n border: borderValueToCss,\n borderStyle: borderStyleValueToCss,\n shadow: shadowValueToCss,\n image: imageValueToCss,\n fontFamily: fontFamilyValueToCss,\n fontWeight: fontWeightValueToCss,\n duration: durationValueToCss\n};\nvar paramValueToCss = (param, value, themeLogger) => {\n const type = getParamType(param);\n return paramValidators[type](value, param, themeLogger);\n};\n\n// packages/ag-grid-community/src/agStack/theming/themeImpl.ts\nvar _asThemeImpl = (theme) => {\n if (!(theme instanceof ThemeImpl)) {\n throw new Error(\"theme is not an object created by createTheme\");\n }\n return theme;\n};\nvar createSharedTheme = (themeLogger) => new ThemeImpl(themeLogger);\nvar ThemeImpl = class _ThemeImpl {\n constructor(themeLogger, parts = []) {\n this.themeLogger = themeLogger;\n this.parts = parts;\n }\n withPart(part) {\n if (typeof part === \"function\") {\n part = part();\n }\n if (!(part instanceof PartImpl)) {\n this.themeLogger.preInitErr(259, \"Invalid part\", { part });\n return this;\n }\n return new _ThemeImpl(this.themeLogger, [...this.parts, part]);\n }\n withoutPart(feature) {\n return this.withPart(createPart({ feature }));\n }\n withParams(params, mode = defaultModeName) {\n return this.withPart(\n createPart({\n modeParams: { [mode]: params }\n })\n );\n }\n /**\n * Called by a grid instance when it starts using the theme. This installs\n * the theme's parts into document head, or the shadow DOM if the provided\n * container is within a shadow root.\n */\n _startUse({ styleContainer, cssLayer, nonce, loadThemeGoogleFonts, moduleCss }) {\n if (IS_SSR) {\n return;\n }\n if (FORCE_LEGACY_THEMES) {\n return;\n }\n uninstallLegacyCSS();\n _injectCoreAndModuleCSS(styleContainer, cssLayer, nonce, moduleCss);\n const googleFontsUsed = getGoogleFontsUsed(this);\n if (googleFontsUsed.length > 0) {\n for (const googleFont of googleFontsUsed) {\n if (loadThemeGoogleFonts) {\n loadGoogleFont(googleFont, nonce);\n }\n }\n }\n for (const part of this.parts) {\n part.use(styleContainer, cssLayer, nonce);\n }\n }\n /**\n * Return CSS that that applies the params of this theme to elements with\n * the provided class name\n */\n _getCssClass() {\n if (FORCE_LEGACY_THEMES) {\n return \"ag-theme-quartz\";\n }\n return this._cssClassCache ?? (this._cssClassCache = deduplicatePartsByFeature(this.parts).map((part) => part.use(void 0, void 0, void 0)).filter(Boolean).join(\" \"));\n }\n _getModeParams() {\n let paramsCache = this._paramsCache;\n if (!paramsCache) {\n const mergedModeParams = {\n // NOTE: defining the default mode here is important, it ensures\n // that the default mode is first in iteration order, which puts\n // it first in outputted CSS, allowing other modes to override it\n [defaultModeName]: { ...sharedDefaults }\n };\n for (const part of deduplicatePartsByFeature(this.parts)) {\n for (const partMode of Object.keys(part.modeParams)) {\n const partParams = part.modeParams[partMode];\n if (partParams) {\n const mergedParams = mergedModeParams[partMode] ?? (mergedModeParams[partMode] = {});\n const partParamNames = /* @__PURE__ */ new Set();\n for (const partParamName of Object.keys(partParams)) {\n const partParamValue = partParams[partParamName];\n if (partParamValue !== void 0) {\n mergedParams[partParamName] = partParamValue;\n partParamNames.add(partParamName);\n }\n }\n if (partMode === defaultModeName) {\n for (const mergedMode of Object.keys(mergedModeParams)) {\n const mergedParams2 = mergedModeParams[mergedMode];\n if (mergedMode !== defaultModeName) {\n for (const partParamName of partParamNames) {\n delete mergedParams2[partParamName];\n }\n }\n }\n }\n }\n }\n }\n this._paramsCache = paramsCache = mergedModeParams;\n }\n return paramsCache;\n }\n /**\n * Return the CSS chunk that is inserted into the grid DOM, and will\n * therefore be removed automatically when the grid is destroyed or it\n * starts to use a new theme.\n *\n * @param className a unique class name on the grid wrapper used to scope the returned CSS to the grid instance\n */\n _getPerInstanceCss(className) {\n const selectorPlaceholder = \"##SELECTOR##\";\n let innerParamsCss = this._paramsCssCache;\n if (!innerParamsCss) {\n let variablesCss = \"\";\n let inheritanceCss = \"\";\n const modeParams = this._getModeParams();\n for (const mode of Object.keys(modeParams)) {\n const params = modeParams[mode];\n if (mode !== defaultModeName) {\n const escapedMode = typeof CSS === \"object\" ? CSS.escape(mode) : mode;\n const wrapPrefix = `:where([data-ag-theme-mode=\"${escapedMode}\"]) & {\n`;\n variablesCss += wrapPrefix;\n inheritanceCss += wrapPrefix;\n }\n for (const key of Object.keys(params).sort()) {\n const value = params[key];\n const cssValue = paramValueToCss(key, value, this.themeLogger);\n if (cssValue === false) {\n this.themeLogger.error(107, { key, value });\n } else {\n const cssName = paramToVariableName(key);\n const inheritedName = cssName.replace(\"--ag-\", \"--ag-inherited-\");\n variablesCss += `\t${cssName}: var(${inheritedName}, ${cssValue});\n`;\n inheritanceCss += `\t${inheritedName}: var(${cssName});\n`;\n }\n }\n if (mode !== defaultModeName) {\n variablesCss += \"}\\n\";\n inheritanceCss += \"}\\n\";\n }\n }\n let css = `${selectorPlaceholder} {\n${variablesCss}}\n`;\n css += `:has(> ${selectorPlaceholder}):not(${selectorPlaceholder}) {\n${inheritanceCss}}\n`;\n this._paramsCssCache = innerParamsCss = css;\n }\n return innerParamsCss.replaceAll(selectorPlaceholder, `:where(.${className})`);\n }\n};\nvar deduplicatePartsByFeature = (parts) => {\n const lastPartByFeature = /* @__PURE__ */ new Map();\n for (const part of parts) {\n lastPartByFeature.set(part.feature, part);\n }\n const result = [];\n for (const part of parts) {\n if (!part.feature || lastPartByFeature.get(part.feature) === part) {\n result.push(part);\n }\n }\n return result;\n};\nvar getGoogleFontsUsed = (theme) => {\n const googleFontsUsed = /* @__PURE__ */ new Set();\n const visitParamValue = (paramValue) => {\n if (Array.isArray(paramValue)) {\n paramValue.forEach(visitParamValue);\n } else {\n const googleFont = paramValue?.googleFont;\n if (typeof googleFont === \"string\") {\n googleFontsUsed.add(googleFont);\n }\n }\n };\n const allModeValues = Object.values(theme._getModeParams());\n const allValues = allModeValues.flatMap((mv) => Object.values(mv));\n allValues.forEach(visitParamValue);\n return Array.from(googleFontsUsed).sort();\n};\nvar uninstalledLegacyCSS = false;\nvar uninstallLegacyCSS = () => {\n if (uninstalledLegacyCSS) {\n return;\n }\n uninstalledLegacyCSS = true;\n for (const style of Array.from(document.head.querySelectorAll('style[data-ag-scope=\"legacy\"]'))) {\n style.remove();\n }\n};\nvar loadGoogleFont = async (font, nonce) => {\n const css = `@import url('https://${googleFontsDomain}/css2?family=${encodeURIComponent(font)}:wght@100;200;300;400;500;600;700;800;900&display=swap');\n`;\n _injectGlobalCSS(css, document.head, `googleFont:${font}`, void 0, 0, nonce);\n};\nvar googleFontsDomain = \"fonts.googleapis.com\";\n\n// packages/ag-grid-community/src/agStack/core/agContext.ts\nvar contextId = 1;\nvar AgContext = class {\n constructor(params) {\n this.beans = {};\n this.createdBeans = [];\n this.destroyed = false;\n this.instanceId = contextId++;\n if (!params?.beanClasses) {\n return;\n }\n this.beanDestroyComparator = params.beanDestroyComparator;\n this.init(params);\n }\n init(params) {\n this.id = params.id;\n this.beans.context = this;\n this.destroyCallback = params.destroyCallback;\n for (const beanName of Object.keys(params.providedBeanInstances)) {\n this.beans[beanName] = params.providedBeanInstances[beanName];\n }\n for (const BeanClass of params.beanClasses) {\n const instance = new BeanClass();\n if (instance.beanName) {\n this.beans[instance.beanName] = instance;\n } else {\n console.error(`Bean ${BeanClass.name} is missing beanName`);\n }\n this.createdBeans.push(instance);\n }\n for (const beanFunc of params.derivedBeans ?? []) {\n const { beanName, bean } = beanFunc(this);\n this.beans[beanName] = bean;\n this.createdBeans.push(bean);\n }\n if (params.beanInitComparator) {\n this.createdBeans.sort(params.beanInitComparator);\n }\n this.initBeans(this.createdBeans);\n }\n getBeanInstances() {\n return Object.values(this.beans);\n }\n createBean(bean, afterPreCreateCallback) {\n this.initBeans([bean], afterPreCreateCallback);\n return bean;\n }\n initBeans(beanInstances, afterPreCreateCallback) {\n const beans = this.beans;\n for (const instance of beanInstances) {\n instance.preWireBeans?.(beans);\n instance.wireBeans?.(beans);\n }\n for (const instance of beanInstances) {\n instance.preConstruct?.();\n }\n if (afterPreCreateCallback) {\n beanInstances.forEach(afterPreCreateCallback);\n }\n for (const instance of beanInstances) {\n instance.postConstruct?.();\n }\n }\n getBeans() {\n return this.beans;\n }\n getBean(name) {\n return this.beans[name];\n }\n getId() {\n return this.id;\n }\n destroy() {\n if (this.destroyed) {\n return;\n }\n this.destroyed = true;\n const beanInstances = this.getBeanInstances();\n if (this.beanDestroyComparator) {\n beanInstances.sort(this.beanDestroyComparator);\n }\n this.destroyBeans(beanInstances);\n this.beans = {};\n this.createdBeans = [];\n this.destroyCallback?.();\n }\n /**\n * Destroys a bean and returns undefined to support destruction and clean up in a single line.\n * this.dateComp = this.context.destroyBean(this.dateComp);\n */\n destroyBean(bean) {\n bean?.destroy?.();\n }\n /**\n * Destroys an array of beans and returns an empty array to support destruction and clean up in a single line.\n * this.dateComps = this.context.destroyBeans(this.dateComps);\n */\n destroyBeans(beans) {\n if (beans) {\n for (let i = 0; i < beans.length; i++) {\n this.destroyBean(beans[i]);\n }\n }\n return [];\n }\n isDestroyed() {\n return this.destroyed;\n }\n};\n\n// packages/ag-grid-community/src/agStack/core/baseEnvironment.ts\nvar paramsId = 0;\nvar BaseEnvironment = class extends AgBeanStub {\n constructor() {\n super(...arguments);\n this.beanName = \"environment\";\n this.paramsClass = `ag-theme-params-${++paramsId}`;\n this.globalCSS = [];\n }\n wireBeans(beans) {\n this.eRootDiv = beans.eRootDiv;\n }\n postConstruct() {\n const { gos, eRootDiv } = this;\n gos.setInstanceDomData(eRootDiv);\n this.eStyleContainer = gos.get(\"themeStyleContainer\") ?? (eRootDiv.getRootNode() === document ? document.head : eRootDiv);\n this.cssLayer = gos.get(\"themeCssLayer\");\n this.styleNonce = gos.get(\"styleNonce\");\n this.addManagedPropertyListener(\"theme\", () => this.handleThemeChange());\n this.handleThemeChange();\n this.initVariables();\n this.addDestroyFunc(() => _unregisterInstanceUsingThemingAPI(this));\n this.mutationObserver = new MutationObserver(() => {\n this.fireStylesChangedEvent(\"themeChanged\");\n });\n this.addDestroyFunc(() => this.mutationObserver.disconnect());\n }\n applyThemeClasses(el, extraClasses = []) {\n const { theme } = this;\n let themeClass;\n if (theme) {\n themeClass = `${this.paramsClass} ${theme._getCssClass()}`;\n } else {\n themeClass = this.applyLegacyThemeClasses();\n }\n for (const className of Array.from(el.classList)) {\n if (className.startsWith(\"ag-theme-\")) {\n el.classList.remove(className);\n }\n }\n if (themeClass) {\n const oldClass = el.className;\n el.className = `${oldClass}${oldClass ? \" \" : \"\"}${themeClass}${extraClasses?.length ? \" \" + extraClasses.join(\" \") : \"\"}`;\n }\n }\n applyLegacyThemeClasses() {\n let themeClass = \"\";\n this.mutationObserver.disconnect();\n let node = this.eRootDiv;\n while (node) {\n let isThemeEl = false;\n for (const className of Array.from(node.classList)) {\n if (className.startsWith(\"ag-theme-\")) {\n isThemeEl = true;\n themeClass = themeClass ? `${themeClass} ${className}` : className;\n }\n }\n if (isThemeEl) {\n this.mutationObserver.observe(node, {\n attributes: true,\n attributeFilter: [\"class\"]\n });\n }\n node = node.parentElement;\n }\n return themeClass;\n }\n addGlobalCSS(css, debugId) {\n if (this.theme) {\n _injectGlobalCSS(css, this.eStyleContainer, debugId, this.cssLayer, 0, this.styleNonce);\n } else {\n this.globalCSS.push([css, debugId]);\n }\n }\n handleThemeChange() {\n const { gos, theme: oldTheme } = this;\n const themeProperty = gos.get(\"theme\");\n let newTheme;\n if (themeProperty === \"legacy\") {\n newTheme = void 0;\n } else {\n const themeOrDefault = themeProperty ?? this.getDefaultTheme();\n if (themeOrDefault instanceof ThemeImpl) {\n newTheme = themeOrDefault;\n } else {\n this.themeError(themeOrDefault);\n }\n }\n if (newTheme !== oldTheme) {\n this.handleNewTheme(newTheme);\n }\n this.postProcessThemeChange(newTheme, themeProperty);\n }\n handleNewTheme(newTheme) {\n const { gos, eRootDiv, globalCSS } = this;\n const additionalCss = this.getAdditionalCss();\n if (newTheme) {\n _registerInstanceUsingThemingAPI(this);\n _injectCoreAndModuleCSS(this.eStyleContainer, this.cssLayer, this.styleNonce, additionalCss);\n for (const [css, debugId] of globalCSS) {\n _injectGlobalCSS(css, this.eStyleContainer, debugId, this.cssLayer, 0, this.styleNonce);\n }\n globalCSS.length = 0;\n }\n this.theme = newTheme;\n newTheme?._startUse({\n loadThemeGoogleFonts: gos.get(\"loadThemeGoogleFonts\"),\n styleContainer: this.eStyleContainer,\n cssLayer: this.cssLayer,\n nonce: this.styleNonce,\n moduleCss: additionalCss\n });\n let eParamsStyle = this.eParamsStyle;\n if (!eParamsStyle) {\n eParamsStyle = this.eParamsStyle = _createAgElement({ tag: \"style\" });\n const styleNonce = gos.get(\"styleNonce\");\n if (styleNonce) {\n eParamsStyle.setAttribute(\"nonce\", styleNonce);\n }\n eRootDiv.appendChild(eParamsStyle);\n }\n if (!IS_SSR) {\n eParamsStyle.textContent = newTheme?._getPerInstanceCss(this.paramsClass) || \"\";\n }\n this.applyThemeClasses(eRootDiv);\n this.fireStylesChangedEvent(\"themeChanged\");\n }\n};\n\n// packages/ag-grid-community/src/agStack/core/baseRegistry.ts\nvar BaseRegistry = class extends AgBeanStub {\n constructor() {\n super(...arguments);\n this.beanName = \"registry\";\n }\n registerDynamicBeans(dynamicBeans) {\n if (dynamicBeans) {\n this.dynamicBeans ?? (this.dynamicBeans = {});\n for (const name of Object.keys(dynamicBeans)) {\n this.dynamicBeans[name] = dynamicBeans[name];\n }\n }\n }\n createDynamicBean(name, mandatory, ...args) {\n if (!this.dynamicBeans) {\n throw new Error(this.getDynamicError(name, true));\n }\n const BeanClass = this.dynamicBeans[name];\n if (BeanClass == null) {\n if (mandatory) {\n throw new Error(this.getDynamicError(name, false));\n }\n return void 0;\n }\n return new BeanClass(...args);\n }\n};\n\n// packages/ag-grid-community/src/agStack/events/baseEventService.ts\nvar BaseEventService = class extends AgBeanStub {\n constructor() {\n super(...arguments);\n this.beanName = \"eventSvc\";\n this.eventServiceType = \"global\";\n this.globalSvc = new LocalEventService();\n }\n addListener(eventType, listener, async) {\n this.globalSvc.addEventListener(eventType, listener, async);\n }\n removeListener(eventType, listener, async) {\n this.globalSvc.removeEventListener(eventType, listener, async);\n }\n addGlobalListener(listener, async = false) {\n this.globalSvc.addGlobalListener(listener, async);\n }\n removeGlobalListener(listener, async = false) {\n this.globalSvc.removeGlobalListener(listener, async);\n }\n dispatchEvent(event) {\n this.globalSvc.dispatchEvent(this.gos.addCommon(event));\n }\n dispatchEventOnce(event) {\n this.globalSvc.dispatchEventOnce(this.gos.addCommon(event));\n }\n};\n\n// packages/ag-grid-community/src/agStack/tooltip/agTooltipFeature.ts\nvar AgTooltipFeature = class extends AgBeanStub {\n constructor(ctrl, beans) {\n super();\n this.ctrl = ctrl;\n if (beans) {\n this.beans = beans;\n }\n }\n postConstruct() {\n this.refreshTooltip();\n }\n /**\n *\n * @param tooltip The tooltip value\n * @param allowEmptyString Set it to true to allow the title to be set to `''`. This is necessary\n * when the browser adds a default tooltip the element and the tooltip service will be displayed\n * next to a browser tooltip causing confusion.\n */\n setBrowserTooltip(tooltip, allowEmptyString) {\n const name = \"title\";\n const eGui = this.ctrl.getGui();\n if (!eGui) {\n return;\n }\n if (tooltip != null && (tooltip != \"\" || allowEmptyString)) {\n eGui.setAttribute(name, tooltip);\n } else {\n eGui.removeAttribute(name);\n }\n }\n updateTooltipText() {\n const { getTooltipValue } = this.ctrl;\n if (getTooltipValue) {\n this.tooltip = getTooltipValue();\n }\n }\n createTooltipFeatureIfNeeded() {\n if (this.tooltipManager == null) {\n const tooltipManager = this.beans.registry.createDynamicBean(\"tooltipStateManager\", true, this.ctrl, () => this.tooltip);\n if (tooltipManager) {\n this.tooltipManager = this.createBean(tooltipManager, this.beans.context);\n }\n }\n }\n attemptToShowTooltip() {\n this.tooltipManager?.prepareToShowTooltip();\n }\n attemptToHideTooltip() {\n this.tooltipManager?.hideTooltip();\n }\n setTooltipAndRefresh(tooltip) {\n this.tooltip = tooltip;\n this.refreshTooltip();\n }\n refreshTooltip(clearWithEmptyString) {\n this.browserTooltips = this.beans.gos.get(\"enableBrowserTooltips\");\n this.updateTooltipText();\n if (this.browserTooltips) {\n this.setBrowserTooltip(this.tooltip);\n this.tooltipManager = this.destroyBean(this.tooltipManager, this.beans.context);\n } else {\n this.setBrowserTooltip(clearWithEmptyString ? \"\" : null, clearWithEmptyString);\n this.createTooltipFeatureIfNeeded();\n }\n }\n destroy() {\n this.tooltipManager = this.destroyBean(this.tooltipManager, this.beans.context);\n super.destroy();\n }\n};\n\n// packages/ag-grid-community/src/agStack/tooltip/baseTooltipStateManager.ts\nvar SHOW_QUICK_TOOLTIP_DIFF = 1e3;\nvar FADE_OUT_TOOLTIP_TIMEOUT = 1e3;\nvar INTERACTIVE_HIDE_DELAY = 100;\nvar lastTooltipHideTime;\nvar isLocked = false;\nvar BaseTooltipStateManager = class extends AgBeanStub {\n constructor(tooltipCtrl, getTooltipValue) {\n super();\n this.tooltipCtrl = tooltipCtrl;\n this.getTooltipValue = getTooltipValue;\n this.interactionEnabled = false;\n this.isInteractingWithTooltip = false;\n this.state = 0 /* NOTHING */;\n // when showing the tooltip, we need to make sure it's the most recent instance we request, as due to\n // async we could request two tooltips before the first instance returns, in which case we should\n // disregard the second instance.\n this.tooltipInstanceCount = 0;\n this.tooltipMouseTrack = false;\n }\n wireBeans(beans) {\n this.popupSvc = beans.popupSvc;\n }\n postConstruct() {\n if (this.gos.get(\"tooltipInteraction\")) {\n this.interactionEnabled = true;\n }\n this.tooltipTrigger = this.getTooltipTrigger();\n this.tooltipMouseTrack = this.gos.get(\"tooltipMouseTrack\");\n const el = this.tooltipCtrl.getGui();\n if (this.tooltipTrigger === 0 /* HOVER */) {\n this.addManagedListeners(el, {\n mouseenter: this.onMouseEnter.bind(this),\n mouseleave: this.onMouseLeave.bind(this)\n });\n }\n if (this.tooltipTrigger === 1 /* FOCUS */) {\n this.addManagedListeners(el, {\n focusin: this.onFocusIn.bind(this),\n focusout: this.onFocusOut.bind(this)\n });\n }\n this.addManagedListeners(el, { mousemove: this.onMouseMove.bind(this) });\n if (!this.interactionEnabled) {\n this.addManagedListeners(el, {\n mousedown: this.onMouseDown.bind(this),\n keydown: this.onKeyDown.bind(this)\n });\n }\n }\n getGridOptionsTooltipDelay(delayOption) {\n const delay = this.gos.get(delayOption);\n return Math.max(200, delay);\n }\n getTooltipDelay(type) {\n if (type === \"show\") {\n return this.tooltipCtrl.getTooltipShowDelayOverride?.() ?? this.getGridOptionsTooltipDelay(\"tooltipShowDelay\");\n }\n return this.tooltipCtrl.getTooltipHideDelayOverride?.() ?? this.getGridOptionsTooltipDelay(\"tooltipHideDelay\");\n }\n destroy() {\n this.setToDoNothing();\n super.destroy();\n }\n getTooltipTrigger() {\n const trigger = this.gos.get(\"tooltipTrigger\");\n if (!trigger || trigger === \"hover\") {\n return 0 /* HOVER */;\n }\n return 1 /* FOCUS */;\n }\n onMouseEnter(e) {\n if (this.interactionEnabled && this.interactiveTooltipTimeoutId) {\n this.unlockService();\n this.startHideTimeout();\n }\n if (_isIOSUserAgent()) {\n return;\n }\n if (isLocked) {\n this.showTooltipTimeoutId = window.setTimeout(() => {\n this.prepareToShowTooltip(e);\n }, INTERACTIVE_HIDE_DELAY);\n } else {\n this.prepareToShowTooltip(e);\n }\n }\n onMouseMove(e) {\n if (this.lastMouseEvent) {\n this.lastMouseEvent = e;\n }\n if (this.tooltipMouseTrack && this.state === 2 /* SHOWING */ && this.tooltipComp) {\n this.positionTooltip();\n }\n }\n onMouseDown() {\n this.setToDoNothing();\n }\n onMouseLeave() {\n if (this.interactionEnabled) {\n this.lockService();\n } else {\n this.setToDoNothing();\n }\n }\n onFocusIn() {\n this.prepareToShowTooltip();\n }\n onFocusOut(e) {\n const relatedTarget = e.relatedTarget;\n const parentCompGui = this.tooltipCtrl.getGui();\n const tooltipGui = this.tooltipComp?.getGui();\n if (this.isInteractingWithTooltip || parentCompGui.contains(relatedTarget) || this.interactionEnabled && tooltipGui?.contains(relatedTarget)) {\n return;\n }\n this.setToDoNothing();\n }\n onKeyDown() {\n if (this.isInteractingWithTooltip) {\n this.isInteractingWithTooltip = false;\n }\n this.setToDoNothing();\n }\n prepareToShowTooltip(mouseEvent) {\n if (this.state != 0 /* NOTHING */ || isLocked) {\n return;\n }\n let delay = 0;\n if (mouseEvent) {\n delay = this.isLastTooltipHiddenRecently() ? 200 : this.getTooltipDelay(\"show\");\n }\n this.lastMouseEvent = mouseEvent || null;\n this.showTooltipTimeoutId = window.setTimeout(this.showTooltip.bind(this), delay);\n this.state = 1 /* WAITING_TO_SHOW */;\n }\n isLastTooltipHiddenRecently() {\n const now = Date.now();\n const then = lastTooltipHideTime;\n return now - then < SHOW_QUICK_TOOLTIP_DIFF;\n }\n setToDoNothing(fromHideTooltip) {\n if (!fromHideTooltip && this.state === 2 /* SHOWING */) {\n this.hideTooltip();\n }\n if (this.onBodyScrollEventCallback) {\n this.onBodyScrollEventCallback();\n this.onBodyScrollEventCallback = void 0;\n }\n this.clearEventHandlers();\n if (this.onDocumentKeyDownCallback) {\n this.onDocumentKeyDownCallback();\n this.onDocumentKeyDownCallback = void 0;\n }\n this.clearTimeouts();\n this.state = 0 /* NOTHING */;\n this.lastMouseEvent = null;\n }\n showTooltip() {\n const value = this.getTooltipValue();\n const ctrl = this.tooltipCtrl;\n if (!_exists(value) || ctrl.shouldDisplayTooltip && !ctrl.shouldDisplayTooltip()) {\n this.setToDoNothing();\n return;\n }\n const params = this.gos.addCommon({\n location: ctrl.getLocation?.() ?? \"UNKNOWN\",\n value,\n hideTooltipCallback: () => this.hideTooltip(true),\n ...ctrl.getAdditionalParams?.()\n });\n this.state = 2 /* SHOWING */;\n this.tooltipInstanceCount++;\n const callback = this.newTooltipComponentCallback.bind(this, this.tooltipInstanceCount);\n this.createTooltipComp(params, callback);\n }\n hideTooltip(forceHide) {\n if (!forceHide && this.isInteractingWithTooltip) {\n return;\n }\n if (this.tooltipComp) {\n this.destroyTooltipComp();\n lastTooltipHideTime = Date.now();\n }\n this.eventSvc.dispatchEvent({\n type: \"tooltipHide\",\n parentGui: this.tooltipCtrl.getGui()\n });\n if (forceHide) {\n this.isInteractingWithTooltip = false;\n }\n this.setToDoNothing(true);\n }\n newTooltipComponentCallback(tooltipInstanceCopy, tooltipComp) {\n const compNoLongerNeeded = this.state !== 2 /* SHOWING */ || this.tooltipInstanceCount !== tooltipInstanceCopy;\n if (compNoLongerNeeded) {\n this.destroyBean(tooltipComp);\n return;\n }\n const eGui = tooltipComp.getGui();\n this.tooltipComp = tooltipComp;\n if (!eGui.classList.contains(\"ag-tooltip\")) {\n eGui.classList.add(\"ag-tooltip-custom\");\n }\n if (this.tooltipTrigger === 0 /* HOVER */) {\n eGui.classList.add(\"ag-tooltip-animate\");\n }\n if (this.interactionEnabled) {\n eGui.classList.add(\"ag-tooltip-interactive\");\n }\n const translate = this.getLocaleTextFunc();\n const addPopupRes = this.popupSvc?.addPopup({\n eChild: eGui,\n ariaLabel: translate(\"ariaLabelTooltip\", \"Tooltip\")\n });\n if (addPopupRes) {\n this.tooltipPopupDestroyFunc = addPopupRes.hideFunc;\n }\n this.positionTooltip();\n if (this.tooltipTrigger === 1 /* FOCUS */) {\n const listener = () => this.setToDoNothing();\n [this.onBodyScrollEventCallback] = this.addManagedEventListeners({\n bodyScroll: listener\n });\n this.setEventHandlers(listener);\n }\n if (this.interactionEnabled) {\n [this.tooltipMouseEnterListener, this.tooltipMouseLeaveListener] = this.addManagedElementListeners(eGui, {\n mouseenter: this.onTooltipMouseEnter.bind(this),\n mouseleave: this.onTooltipMouseLeave.bind(this)\n });\n [this.onDocumentKeyDownCallback] = this.addManagedElementListeners(_getDocument(this.beans), {\n keydown: (e) => {\n if (!eGui.contains(e?.target)) {\n this.onKeyDown();\n }\n }\n });\n if (this.tooltipTrigger === 1 /* FOCUS */) {\n [this.tooltipFocusInListener, this.tooltipFocusOutListener] = this.addManagedElementListeners(eGui, {\n focusin: this.onTooltipFocusIn.bind(this),\n focusout: this.onTooltipFocusOut.bind(this)\n });\n }\n }\n this.eventSvc.dispatchEvent({\n type: \"tooltipShow\",\n tooltipGui: eGui,\n parentGui: this.tooltipCtrl.getGui()\n });\n this.startHideTimeout();\n }\n onTooltipMouseEnter() {\n this.isInteractingWithTooltip = true;\n this.unlockService();\n }\n onTooltipMouseLeave() {\n if (this.isTooltipFocused()) {\n return;\n }\n this.isInteractingWithTooltip = false;\n this.lockService();\n }\n onTooltipFocusIn() {\n this.isInteractingWithTooltip = true;\n }\n isTooltipFocused() {\n const tooltipGui = this.tooltipComp?.getGui();\n const activeEl = _getActiveDomElement(this.beans);\n return !!tooltipGui && tooltipGui.contains(activeEl);\n }\n onTooltipFocusOut(e) {\n const parentGui = this.tooltipCtrl.getGui();\n if (this.isTooltipFocused()) {\n return;\n }\n this.isInteractingWithTooltip = false;\n if (parentGui.contains(e.relatedTarget)) {\n this.startHideTimeout();\n } else {\n this.hideTooltip();\n }\n }\n positionTooltip() {\n const params = {\n type: \"tooltip\",\n ePopup: this.tooltipComp.getGui(),\n nudgeY: 18,\n skipObserver: this.tooltipMouseTrack\n };\n if (this.lastMouseEvent) {\n this.popupSvc?.positionPopupUnderMouseEvent({\n ...params,\n mouseEvent: this.lastMouseEvent\n });\n } else {\n this.popupSvc?.positionPopupByComponent({\n ...params,\n eventSource: this.tooltipCtrl.getGui(),\n position: \"under\",\n keepWithinBounds: true,\n nudgeY: 5\n });\n }\n }\n destroyTooltipComp() {\n this.tooltipComp.getGui().classList.add(\"ag-tooltip-hiding\");\n const tooltipPopupDestroyFunc = this.tooltipPopupDestroyFunc;\n const tooltipComp = this.tooltipComp;\n const delay = this.tooltipTrigger === 0 /* HOVER */ ? FADE_OUT_TOOLTIP_TIMEOUT : 0;\n window.setTimeout(() => {\n tooltipPopupDestroyFunc();\n this.destroyBean(tooltipComp);\n }, delay);\n this.clearTooltipListeners();\n this.tooltipPopupDestroyFunc = void 0;\n this.tooltipComp = void 0;\n }\n clearTooltipListeners() {\n for (const listener of [\n this.tooltipMouseEnterListener,\n this.tooltipMouseLeaveListener,\n this.tooltipFocusInListener,\n this.tooltipFocusOutListener\n ]) {\n if (listener) {\n listener();\n }\n }\n this.tooltipMouseEnterListener = this.tooltipMouseLeaveListener = this.tooltipFocusInListener = this.tooltipFocusOutListener = null;\n }\n lockService() {\n isLocked = true;\n this.interactiveTooltipTimeoutId = window.setTimeout(() => {\n this.unlockService();\n this.setToDoNothing();\n }, INTERACTIVE_HIDE_DELAY);\n }\n unlockService() {\n isLocked = false;\n this.clearInteractiveTimeout();\n }\n startHideTimeout() {\n this.clearHideTimeout();\n this.hideTooltipTimeoutId = window.setTimeout(this.hideTooltip.bind(this), this.getTooltipDelay(\"hide\"));\n }\n clearShowTimeout() {\n if (!this.showTooltipTimeoutId) {\n return;\n }\n window.clearTimeout(this.showTooltipTimeoutId);\n this.showTooltipTimeoutId = void 0;\n }\n clearHideTimeout() {\n if (!this.hideTooltipTimeoutId) {\n return;\n }\n window.clearTimeout(this.hideTooltipTimeoutId);\n this.hideTooltipTimeoutId = void 0;\n }\n clearInteractiveTimeout() {\n if (!this.interactiveTooltipTimeoutId) {\n return;\n }\n window.clearTimeout(this.interactiveTooltipTimeoutId);\n this.interactiveTooltipTimeoutId = void 0;\n }\n clearTimeouts() {\n this.clearShowTimeout();\n this.clearHideTimeout();\n this.clearInteractiveTimeout();\n }\n};\n\n// packages/ag-grid-community/src/agStack/tooltip/agHighlightTooltipFeature.ts\nvar AgHighlightTooltipFeature = class extends AgTooltipFeature {\n constructor(ctrl, highlightTracker, beans) {\n super(ctrl, beans);\n this.highlightTracker = highlightTracker;\n this.onHighlight = this.onHighlight.bind(this);\n }\n postConstruct() {\n super.postConstruct();\n this.wireHighlightListeners();\n }\n wireHighlightListeners() {\n this.addManagedPropertyListener(\"tooltipTrigger\", ({ currentValue }) => {\n this.setTooltipMode(currentValue);\n });\n this.setTooltipMode(this.gos.get(\"tooltipTrigger\"));\n this.highlightTracker.addEventListener(\"itemHighlighted\", this.onHighlight);\n }\n onHighlight(event) {\n if (this.tooltipMode !== 1 /* FOCUS */) {\n return;\n }\n if (event.highlighted) {\n this.attemptToShowTooltip();\n } else {\n this.attemptToHideTooltip();\n }\n }\n setTooltipMode(tooltipTriggerMode = \"focus\") {\n this.tooltipMode = tooltipTriggerMode === \"focus\" ? 1 /* FOCUS */ : 0 /* HOVER */;\n }\n destroy() {\n this.highlightTracker.removeEventListener(\"itemHighlighted\", this.onHighlight);\n super.destroy();\n }\n};\n\n// packages/ag-grid-community/src/agStack/popup/basePopupService.ts\nvar instanceIdSeq = 0;\nvar WAIT_FOR_POPUP_CONTENT_RESIZE = 200;\nvar BasePopupService = class extends AgBeanStub {\n constructor() {\n super(...arguments);\n this.beanName = \"popupSvc\";\n this.popupList = [];\n }\n getPopupParent() {\n const ePopupParent = this.gos.get(\"popupParent\");\n if (ePopupParent) {\n return ePopupParent;\n }\n return this.getDefaultPopupParent();\n }\n positionPopupUnderMouseEvent(params) {\n const { ePopup, nudgeX, nudgeY, skipObserver } = params;\n this.positionPopup({\n ePopup,\n nudgeX,\n nudgeY,\n keepWithinBounds: true,\n skipObserver,\n updatePosition: () => this.calculatePointerAlign(params.mouseEvent),\n postProcessCallback: () => this.callPostProcessPopup(params, params.type, params.ePopup, null, params.mouseEvent)\n });\n }\n calculatePointerAlign(e) {\n const parentRect = this.getParentRect();\n return {\n x: e.clientX - parentRect.left,\n y: e.clientY - parentRect.top\n };\n }\n positionPopupByComponent(params) {\n const {\n ePopup,\n nudgeX,\n nudgeY,\n keepWithinBounds,\n eventSource,\n alignSide = \"left\",\n position = \"over\",\n type\n } = params;\n const sourceRect = eventSource.getBoundingClientRect();\n const parentRect = this.getParentRect();\n this.setAlignedTo(eventSource, ePopup);\n const updatePosition = () => {\n let x = sourceRect.left - parentRect.left;\n if (alignSide === \"right\") {\n x -= ePopup.offsetWidth - sourceRect.width;\n }\n let y;\n if (position === \"over\") {\n y = sourceRect.top - parentRect.top;\n this.setAlignedStyles(ePopup, \"over\");\n } else {\n this.setAlignedStyles(ePopup, \"under\");\n const alignSide2 = this.shouldRenderUnderOrAbove(ePopup, sourceRect, parentRect, params.nudgeY || 0);\n if (alignSide2 === \"under\") {\n y = sourceRect.top - parentRect.top + sourceRect.height;\n } else {\n y = sourceRect.top - ePopup.offsetHeight - (nudgeY || 0) * 2 - parentRect.top;\n }\n }\n return { x, y };\n };\n this.positionPopup({\n ePopup,\n nudgeX,\n nudgeY,\n keepWithinBounds,\n updatePosition,\n postProcessCallback: () => this.callPostProcessPopup(params, type, ePopup, eventSource, null)\n });\n }\n shouldRenderUnderOrAbove(ePopup, targetCompRect, parentRect, nudgeY) {\n const spaceAvailableUnder = parentRect.bottom - targetCompRect.bottom;\n const spaceAvailableAbove = targetCompRect.top - parentRect.top;\n const spaceRequired = ePopup.offsetHeight + nudgeY;\n if (spaceAvailableUnder > spaceRequired) {\n return \"under\";\n }\n if (spaceAvailableAbove > spaceRequired || spaceAvailableAbove > spaceAvailableUnder) {\n return \"above\";\n }\n return \"under\";\n }\n setAlignedStyles(ePopup, positioned) {\n const popupIdx = this.getPopupIndex(ePopup);\n if (popupIdx === -1) {\n return;\n }\n const popup = this.popupList[popupIdx];\n const { alignedToElement } = popup;\n if (!alignedToElement) {\n return;\n }\n const positions = [\"right\", \"left\", \"over\", \"above\", \"under\"];\n for (const position of positions) {\n alignedToElement.classList.remove(`ag-has-popup-positioned-${position}`);\n ePopup.classList.remove(`ag-popup-positioned-${position}`);\n }\n if (!positioned) {\n return;\n }\n alignedToElement.classList.add(`ag-has-popup-positioned-${positioned}`);\n ePopup.classList.add(`ag-popup-positioned-${positioned}`);\n }\n setAlignedTo(eventSource, ePopup) {\n const popupIdx = this.getPopupIndex(ePopup);\n if (popupIdx !== -1) {\n const popup = this.popupList[popupIdx];\n popup.alignedToElement = eventSource;\n }\n }\n positionPopup(params) {\n const { ePopup, keepWithinBounds, nudgeX, nudgeY, skipObserver, updatePosition } = params;\n const lastSize = { width: 0, height: 0 };\n const updatePopupPosition = (fromResizeObserver = false) => {\n let { x, y } = updatePosition();\n if (fromResizeObserver && ePopup.clientWidth === lastSize.width && ePopup.clientHeight === lastSize.height) {\n return;\n }\n lastSize.width = ePopup.clientWidth;\n lastSize.height = ePopup.clientHeight;\n if (nudgeX) {\n x += nudgeX;\n }\n if (nudgeY) {\n y += nudgeY;\n }\n if (keepWithinBounds) {\n x = this.keepXYWithinBounds(ePopup, x, 1 /* Horizontal */);\n y = this.keepXYWithinBounds(ePopup, y, 0 /* Vertical */);\n }\n ePopup.style.left = `${x}px`;\n ePopup.style.top = `${y}px`;\n if (params.postProcessCallback) {\n params.postProcessCallback();\n }\n };\n updatePopupPosition();\n if (!skipObserver) {\n const resizeObserverDestroyFunc = _observeResize(this.beans, ePopup, () => updatePopupPosition(true));\n setTimeout(() => resizeObserverDestroyFunc(), WAIT_FOR_POPUP_CONTENT_RESIZE);\n }\n }\n getParentRect() {\n const eDocument = _getDocument(this.beans);\n let popupParent = this.getPopupParent();\n if (popupParent === eDocument.body) {\n popupParent = eDocument.documentElement;\n } else if (getComputedStyle(popupParent).position === \"static\") {\n popupParent = popupParent.offsetParent;\n }\n return _getElementRectWithOffset(popupParent);\n }\n keepXYWithinBounds(ePopup, position, direction) {\n const isVertical = direction === 0 /* Vertical */;\n const sizeProperty = isVertical ? \"clientHeight\" : \"clientWidth\";\n const anchorProperty = isVertical ? \"top\" : \"left\";\n const offsetProperty = isVertical ? \"height\" : \"width\";\n const scrollPositionProperty = isVertical ? \"scrollTop\" : \"scrollLeft\";\n const eDocument = _getDocument(this.beans);\n const docElement = eDocument.documentElement;\n const popupParent = this.getPopupParent();\n const popupRect = ePopup.getBoundingClientRect();\n const parentRect = popupParent.getBoundingClientRect();\n const documentRect = eDocument.documentElement.getBoundingClientRect();\n const isBody = popupParent === eDocument.body;\n const offsetSize = Math.ceil(popupRect[offsetProperty]);\n const getSize2 = isVertical ? _getAbsoluteHeight : _getAbsoluteWidth;\n let sizeOfParent = isBody ? getSize2(docElement) + docElement[scrollPositionProperty] : popupParent[sizeProperty];\n if (isBody) {\n sizeOfParent -= Math.abs(documentRect[anchorProperty] - parentRect[anchorProperty]);\n }\n const max = sizeOfParent - offsetSize;\n return Math.min(Math.max(position, 0), Math.max(max, 0));\n }\n addPopup(params) {\n const { eChild, ariaLabel, ariaOwns, alwaysOnTop, positionCallback, anchorToElement } = params;\n const pos = this.getPopupIndex(eChild);\n if (pos !== -1) {\n const popup = this.popupList[pos];\n return { hideFunc: popup.hideFunc };\n }\n this.initialisePopupPosition(eChild);\n const wrapperEl = this.createPopupWrapper(eChild, !!alwaysOnTop, ariaLabel, ariaOwns);\n const removeListeners = this.addEventListenersToPopup({ ...params, wrapperEl });\n if (positionCallback) {\n positionCallback();\n }\n this.addPopupToPopupList(eChild, wrapperEl, removeListeners, anchorToElement);\n return {\n hideFunc: removeListeners\n };\n }\n initialisePopupPosition(element) {\n const ePopupParent = this.getPopupParent();\n const ePopupParentRect = ePopupParent.getBoundingClientRect();\n if (!_exists(element.style.top)) {\n element.style.top = `${ePopupParentRect.top * -1}px`;\n }\n if (!_exists(element.style.left)) {\n element.style.left = `${ePopupParentRect.left * -1}px`;\n }\n }\n createPopupWrapper(element, alwaysOnTop, ariaLabel, ariaOwns) {\n const ePopupParent = this.getPopupParent();\n const { environment, gos } = this.beans;\n const eWrapper = _createAgElement({ tag: \"div\" });\n environment.applyThemeClasses(eWrapper);\n eWrapper.classList.add(\"ag-popup\");\n element.classList.add(gos.get(\"enableRtl\") ? \"ag-rtl\" : \"ag-ltr\", \"ag-popup-child\");\n if (!element.hasAttribute(\"role\")) {\n _setAriaRole(element, \"dialog\");\n }\n if (ariaLabel) {\n _setAriaLabel(element, ariaLabel);\n } else if (ariaOwns) {\n element.id || (element.id = `popup-component-${instanceIdSeq}`);\n _setAriaOwns(ariaOwns, element.id);\n }\n eWrapper.appendChild(element);\n ePopupParent.appendChild(eWrapper);\n if (alwaysOnTop) {\n this.setAlwaysOnTop(element, true);\n } else {\n this.bringPopupToFront(element);\n }\n return eWrapper;\n }\n addEventListenersToPopup(params) {\n const beans = this.beans;\n const eDocument = _getDocument(beans);\n const { wrapperEl, eChild: popupEl, closedCallback, afterGuiAttached, closeOnEsc, modal, ariaOwns } = params;\n let popupHidden = false;\n const hidePopupOnKeyboardEvent = (event) => {\n if (!wrapperEl.contains(_getActiveDomElement(beans))) {\n return;\n }\n const key = event.key;\n if (key === KeyCode.ESCAPE && !this.isStopPropagation(event)) {\n removeListeners({ keyboardEvent: event });\n }\n };\n const hidePopupOnMouseEvent = (event) => removeListeners({ mouseEvent: event });\n const hidePopupOnTouchEvent = (event) => removeListeners({ touchEvent: event });\n const removeListeners = (popupParams = {}) => {\n const { mouseEvent, touchEvent, keyboardEvent, forceHide } = popupParams;\n if (!forceHide && // we don't hide popup if the event was on the child, or any\n // children of this child\n (this.isEventFromCurrentPopup({ mouseEvent, touchEvent }, popupEl) || // this method should only be called once. the client can have different\n // paths, each one wanting to close, so this method may be called multiple times.\n popupHidden)) {\n return;\n }\n popupHidden = true;\n wrapperEl.remove();\n eDocument.removeEventListener(\"keydown\", hidePopupOnKeyboardEvent);\n eDocument.removeEventListener(\"mousedown\", hidePopupOnMouseEvent);\n eDocument.removeEventListener(\"touchstart\", hidePopupOnTouchEvent);\n eDocument.removeEventListener(\"contextmenu\", hidePopupOnMouseEvent);\n this.eventSvc.removeListener(\"dragStarted\", hidePopupOnMouseEvent);\n if (closedCallback) {\n closedCallback(mouseEvent || touchEvent || keyboardEvent);\n }\n this.removePopupFromPopupList(popupEl, ariaOwns);\n };\n if (afterGuiAttached) {\n afterGuiAttached({ hidePopup: removeListeners });\n }\n window.setTimeout(() => {\n if (closeOnEsc) {\n eDocument.addEventListener(\"keydown\", hidePopupOnKeyboardEvent);\n }\n if (modal) {\n eDocument.addEventListener(\"mousedown\", hidePopupOnMouseEvent);\n this.eventSvc.addListener(\"dragStarted\", hidePopupOnMouseEvent);\n eDocument.addEventListener(\"touchstart\", hidePopupOnTouchEvent);\n eDocument.addEventListener(\"contextmenu\", hidePopupOnMouseEvent);\n }\n }, 0);\n return removeListeners;\n }\n addPopupToPopupList(element, wrapperEl, removeListeners, anchorToElement) {\n this.popupList.push({\n element,\n wrapper: wrapperEl,\n hideFunc: removeListeners,\n instanceId: instanceIdSeq,\n isAnchored: !!anchorToElement\n });\n if (anchorToElement) {\n this.setPopupPositionRelatedToElement(element, anchorToElement);\n }\n instanceIdSeq = instanceIdSeq + 1;\n }\n getPopupIndex(el) {\n return this.popupList.findIndex((p) => p.element === el);\n }\n setPopupPositionRelatedToElement(popupEl, relativeElement) {\n const popupIndex = this.getPopupIndex(popupEl);\n if (popupIndex === -1) {\n return;\n }\n const popup = this.popupList[popupIndex];\n if (popup.stopAnchoringPromise) {\n popup.stopAnchoringPromise.then((destroyFunc) => destroyFunc && destroyFunc());\n }\n popup.stopAnchoringPromise = void 0;\n popup.isAnchored = false;\n if (!relativeElement) {\n return;\n }\n const destroyPositionTracker = this.keepPopupPositionedRelativeTo({\n element: relativeElement,\n ePopup: popupEl,\n hidePopup: popup.hideFunc\n });\n popup.stopAnchoringPromise = destroyPositionTracker;\n popup.isAnchored = true;\n return destroyPositionTracker;\n }\n removePopupFromPopupList(element, ariaOwns) {\n this.setAlignedStyles(element, null);\n this.setPopupPositionRelatedToElement(element, null);\n if (ariaOwns) {\n _setAriaOwns(ariaOwns, null);\n }\n this.popupList = this.popupList.filter((p) => p.element !== element);\n }\n keepPopupPositionedRelativeTo(params) {\n const eParent = this.getPopupParent();\n const parentRect = eParent.getBoundingClientRect();\n const { element, ePopup } = params;\n const sourceRect = element.getBoundingClientRect();\n const extractFromPixelValue = (pxSize) => Number.parseInt(pxSize.substring(0, pxSize.length - 1), 10);\n const createPosition = (prop, direction) => {\n const initialDiff = parentRect[prop] - sourceRect[prop];\n const initial = extractFromPixelValue(ePopup.style[prop]);\n return {\n initialDiff,\n lastDiff: initialDiff,\n initial,\n last: initial,\n direction\n };\n };\n const topPosition = createPosition(\"top\", 0 /* Vertical */);\n const leftPosition = createPosition(\"left\", 1 /* Horizontal */);\n const fwOverrides = this.beans.frameworkOverrides;\n return new AgPromise((resolve) => {\n fwOverrides.wrapIncoming(() => {\n _wrapInterval(() => {\n const pRect = eParent.getBoundingClientRect();\n const sRect = element.getBoundingClientRect();\n const elementNotInDom = sRect.top == 0 && sRect.left == 0 && sRect.height == 0 && sRect.width == 0;\n if (elementNotInDom) {\n params.hidePopup();\n return;\n }\n const calculateNewPosition = (position, prop) => {\n const current = extractFromPixelValue(ePopup.style[prop]);\n if (position.last !== current) {\n position.initial = current;\n position.last = current;\n }\n const currentDiff = pRect[prop] - sRect[prop];\n if (currentDiff != position.lastDiff) {\n const newValue = this.keepXYWithinBounds(\n ePopup,\n position.initial + position.initialDiff - currentDiff,\n position.direction\n );\n ePopup.style[prop] = `${newValue}px`;\n position.last = newValue;\n }\n position.lastDiff = currentDiff;\n };\n calculateNewPosition(topPosition, \"top\");\n calculateNewPosition(leftPosition, \"left\");\n }, 200).then((intervalId) => {\n const result = () => {\n if (intervalId != null) {\n window.clearInterval(intervalId);\n }\n };\n resolve(result);\n });\n }, \"popupPositioning\");\n });\n }\n isEventFromCurrentPopup(params, target) {\n const { mouseEvent, touchEvent } = params;\n const event = mouseEvent ? mouseEvent : touchEvent;\n if (!event) {\n return false;\n }\n const indexOfThisChild = this.getPopupIndex(target);\n if (indexOfThisChild === -1) {\n return false;\n }\n for (let i = indexOfThisChild; i < this.popupList.length; i++) {\n const popup = this.popupList[i];\n if (_isElementInEventPath(popup.element, event)) {\n return true;\n }\n }\n return this.isElementWithinCustomPopup(event.target);\n }\n isElementWithinCustomPopup(el) {\n const eDocument = _getDocument(this.beans);\n while (el && el !== eDocument.body) {\n if (el.classList.contains(\"ag-custom-component-popup\") || el.parentElement === null) {\n return true;\n }\n el = el.parentElement;\n }\n return false;\n }\n getWrapper(ePopup) {\n while (!ePopup.classList.contains(\"ag-popup\") && ePopup.parentElement) {\n ePopup = ePopup.parentElement;\n }\n return ePopup.classList.contains(\"ag-popup\") ? ePopup : null;\n }\n setAlwaysOnTop(ePopup, alwaysOnTop) {\n const eWrapper = this.getWrapper(ePopup);\n if (!eWrapper) {\n return;\n }\n eWrapper.classList.toggle(\"ag-always-on-top\", !!alwaysOnTop);\n if (alwaysOnTop) {\n this.bringPopupToFront(eWrapper);\n }\n }\n /** @returns true if moved */\n bringPopupToFront(ePopup) {\n const parent = this.getPopupParent();\n const popupList = Array.prototype.slice.call(parent.querySelectorAll(\".ag-popup\"));\n const popupLen = popupList.length;\n const eWrapper = this.getWrapper(ePopup);\n if (!eWrapper || popupLen <= 1 || !parent.contains(ePopup)) {\n return;\n }\n const standardPopupList = [];\n const alwaysOnTopList = [];\n for (const popup of popupList) {\n if (popup === eWrapper) {\n continue;\n }\n if (popup.classList.contains(\"ag-always-on-top\")) {\n alwaysOnTopList.push(popup);\n } else {\n standardPopupList.push(popup);\n }\n }\n const innerElsScrollMap = [];\n const onTopLength = alwaysOnTopList.length;\n const isPopupAlwaysOnTop = eWrapper.classList.contains(\"ag-always-on-top\");\n const shouldBeLast = isPopupAlwaysOnTop || !onTopLength;\n const targetList = shouldBeLast ? [...standardPopupList, ...alwaysOnTopList, eWrapper] : [...standardPopupList, eWrapper, ...alwaysOnTopList];\n for (let i = 0; i <= popupLen; i++) {\n const currentPopup = targetList[i];\n if (popupList[i] === targetList[i] || currentPopup === eWrapper) {\n continue;\n }\n const innerEls = currentPopup.querySelectorAll(\"div\");\n for (const el of innerEls) {\n if (el.scrollTop !== 0) {\n innerElsScrollMap.push([el, el.scrollTop]);\n }\n }\n if (i === 0) {\n parent.insertAdjacentElement(\"afterbegin\", currentPopup);\n } else {\n targetList[i - 1].insertAdjacentElement(\"afterend\", currentPopup);\n }\n }\n while (innerElsScrollMap.length) {\n const currentEl = innerElsScrollMap.pop();\n currentEl[0].scrollTop = currentEl[1];\n }\n }\n};\n\n// packages/ag-grid-community/src/agStack/tooltip/agTooltipComponent.ts\nvar AgTooltipComponent = class extends AgPopupComponent {\n constructor() {\n super({ tag: \"div\", cls: \"ag-tooltip\" });\n }\n // will need to type params\n init(params) {\n const { value } = params;\n const eGui = this.getGui();\n eGui.textContent = _toString(value);\n const locationKebabCase = params.location.replace(/([a-z])([A-Z0-9])/g, \"$1-$2\").toLowerCase();\n eGui.classList.add(`ag-${locationKebabCase}-tooltip`);\n }\n};\n\n// packages/ag-grid-community/src/agStack/events/pointerCapture.ts\nvar tryPointerCapture = (eElement, pointerId) => {\n if (pointerId != null && eElement?.setPointerCapture) {\n try {\n eElement.setPointerCapture(pointerId);\n return eElement.hasPointerCapture(pointerId);\n } catch {\n }\n }\n return false;\n};\nvar capturePointer = (eElement, mouseEvent) => {\n if (typeof PointerEvent === \"undefined\" || !(mouseEvent instanceof PointerEvent)) {\n return null;\n }\n const pointerId = mouseEvent.pointerId;\n if (!tryPointerCapture(eElement, pointerId)) {\n return null;\n }\n const capture = {\n eElement,\n pointerId,\n onLost(pointerEvent) {\n pointerLostHandler(capture, pointerEvent);\n }\n };\n eElement.addEventListener(\"lostpointercapture\", capture.onLost);\n return capture;\n};\nvar releasePointerCapture = (capture) => {\n if (!capture) {\n return;\n }\n removeLostHandler(capture);\n const { eElement, pointerId } = capture;\n if (!eElement) {\n return;\n }\n try {\n eElement.releasePointerCapture(pointerId);\n } catch {\n }\n capture.eElement = null;\n};\nvar removeLostHandler = (capture) => {\n const { eElement, onLost } = capture;\n if (eElement && onLost) {\n eElement.removeEventListener(\"lostpointercapture\", onLost);\n capture.onLost = null;\n }\n};\nvar pointerLostHandler = (capture, pointerEvent) => {\n removeLostHandler(capture);\n const { eElement, pointerId } = capture;\n if (eElement && pointerEvent.pointerId === pointerId) {\n tryPointerCapture(eElement, pointerId);\n }\n};\n\n// packages/ag-grid-community/src/agStack/core/baseDragService.ts\nvar activePointerDrags;\nvar handledDragEvents;\nvar addHandledDragEvent = (event) => {\n if (!handledDragEvents) {\n handledDragEvents = /* @__PURE__ */ new WeakSet();\n } else if (handledDragEvents.has(event)) {\n return false;\n }\n handledDragEvents.add(event);\n return true;\n};\nvar BaseDragService = class extends AgBeanStub {\n constructor() {\n super(...arguments);\n this.beanName = \"dragSvc\";\n this.dragging = false;\n this.drag = null;\n this.dragSources = [];\n }\n get startTarget() {\n return this.drag?.start.target ?? null;\n }\n /** True if there is at least one active pointer drag in any BaseDragService instance in the page */\n isPointer() {\n return !!activePointerDrags?.has(_getRootNode(this.beans));\n }\n hasPointerCapture() {\n const capture = this.drag?.pointerCapture;\n return !!(capture && this.beans.eRootDiv.hasPointerCapture?.(capture.pointerId));\n }\n destroy() {\n if (this.drag) {\n this.cancelDrag();\n }\n const dragSources = this.dragSources;\n for (const entry of dragSources) {\n destroyDragSourceEntry(entry);\n }\n dragSources.length = 0;\n super.destroy();\n }\n removeDragSource(params) {\n const dragSources = this.dragSources;\n for (let i = 0, len = dragSources.length; i < len; ++i) {\n const entry = dragSources[i];\n if (entry.params === params) {\n dragSources.splice(i, 1);\n destroyDragSourceEntry(entry);\n break;\n }\n }\n }\n addDragSource(params) {\n if (!this.isAlive()) {\n return;\n }\n const { eElement, includeTouch } = params;\n const handlers = [];\n let oldTouchAction;\n if (includeTouch) {\n const style = eElement.style;\n if (style) {\n oldTouchAction = style.touchAction;\n style.touchAction = \"none\";\n }\n }\n const dragSource = { handlers, params, oldTouchAction };\n this.dragSources.push(dragSource);\n const pointerDownListener = (event) => this.onPointerDown(params, event);\n const mouseListener = (event) => this.onMouseDown(params, event);\n addTempEventHandlers(\n handlers,\n [eElement, \"pointerdown\", pointerDownListener, { passive: false }],\n [eElement, \"mousedown\", mouseListener]\n );\n const suppressTouch = this.gos.get(\"suppressTouch\");\n if (includeTouch && !suppressTouch) {\n const touchListener = (touchEvent) => this.onTouchStart(params, touchEvent);\n addTempEventHandlers(handlers, [eElement, \"touchstart\", touchListener, { passive: false }]);\n }\n }\n cancelDrag(eElement) {\n const drag = this.drag;\n eElement ?? (eElement = drag?.eElement);\n if (eElement) {\n this.eventSvc.dispatchEvent({ type: \"dragCancelled\", target: eElement });\n }\n drag?.params.onDragCancel?.();\n this.destroyDrag();\n }\n shouldPreventMouseEvent(mouseEvent) {\n const type = mouseEvent.type;\n const isMouseMove = type === \"mousemove\" || type === \"pointermove\";\n return isMouseMove && mouseEvent.cancelable && _isEventFromThisInstance(this.beans, mouseEvent) && !_isFocusableFormField(getEventTargetElement(mouseEvent));\n }\n initDrag(drag, ...handlers) {\n this.drag = drag;\n const beans = this.beans;\n const onScroll = (event) => this.onScroll(event);\n const keydownEvent = (ev) => this.onKeyDown(ev);\n const rootEl = _getRootNode(beans);\n const eDocument = _getDocument(beans);\n addTempEventHandlers(\n drag.handlers,\n [rootEl, \"contextmenu\", preventEventDefault],\n [rootEl, \"keydown\", keydownEvent],\n [eDocument, \"scroll\", onScroll, { capture: true }],\n [eDocument.defaultView || window, \"scroll\", onScroll],\n ...handlers\n );\n }\n destroyDrag() {\n this.dragging = false;\n const drag = this.drag;\n if (drag) {\n const rootEl = drag.rootEl;\n if (activePointerDrags?.get(rootEl) === drag) {\n activePointerDrags?.delete(rootEl);\n }\n this.drag = null;\n releasePointerCapture(drag.pointerCapture);\n clearTempEventHandlers(drag.handlers);\n }\n }\n // Pointer Events path (preferred when supported)\n onPointerDown(params, pointerEvent) {\n if (this.isPointer()) {\n return;\n }\n const beans = this.beans;\n if (handledDragEvents?.has(pointerEvent)) {\n return;\n }\n const pointerType = pointerEvent.pointerType;\n if (pointerType === \"touch\") {\n if (beans.gos.get(\"suppressTouch\") || !params.includeTouch) {\n return;\n }\n if (params.stopPropagationForTouch) {\n pointerEvent.stopPropagation();\n }\n if (_isFocusableFormField(getEventTargetElement(pointerEvent))) {\n return;\n }\n }\n if (!pointerEvent.isPrimary) {\n return;\n }\n if (pointerType === \"mouse\" && pointerEvent.button !== 0) {\n return;\n }\n this.destroyDrag();\n const rootEl = _getRootNode(beans);\n const eElement = params.eElement;\n const pointerId = pointerEvent.pointerId;\n const pointerDrag = new Dragging(rootEl, params, pointerEvent, pointerId);\n activePointerDrags ?? (activePointerDrags = /* @__PURE__ */ new WeakMap());\n activePointerDrags.set(rootEl, pointerDrag);\n const onPointerMove = (ev) => {\n if (ev.pointerId === pointerId) {\n this.onMouseOrPointerMove(ev);\n }\n };\n const onUp = (ev) => {\n if (ev.pointerId === pointerId) {\n this.onMouseOrPointerUp(ev);\n }\n };\n const onCancel = (ev) => {\n if (ev.pointerId === pointerId && addHandledDragEvent(ev)) {\n this.cancelDrag();\n }\n };\n this.initDrag(\n pointerDrag,\n [rootEl, \"pointerup\", onUp],\n [rootEl, \"pointercancel\", onCancel],\n [rootEl, \"pointermove\", onPointerMove, { passive: false }],\n [rootEl, \"touchmove\", preventEventDefault, { passive: false }],\n [eElement, \"mousemove\", preventEventDefault, { passive: false }]\n );\n if (params.dragStartPixels === 0) {\n this.onMouseOrPointerMove(pointerEvent);\n } else {\n addHandledDragEvent(pointerEvent);\n }\n }\n // gets called whenever mouse down on any drag source\n onTouchStart(params, touchEvent) {\n const suppressTouch = this.gos.get(\"suppressTouch\");\n if (suppressTouch || !params.includeTouch) {\n return;\n }\n if (!addHandledDragEvent(touchEvent)) {\n return;\n }\n if (_isFocusableFormField(getEventTargetElement(touchEvent))) {\n return;\n }\n if (params.stopPropagationForTouch) {\n touchEvent.stopPropagation();\n }\n if (this.isPointer()) {\n preventEventDefault(touchEvent);\n return;\n }\n this.destroyDrag();\n const beans = this.beans;\n const rootEl = _getRootNode(beans);\n const touchDrag = new Dragging(rootEl, params, touchEvent.touches[0]);\n const touchMoveEvent = (e) => this.onTouchMove(e);\n const touchEndEvent = (e) => this.onTouchUp(e);\n const target = touchEvent.target ?? params.eElement;\n this.initDrag(\n touchDrag,\n [_getRootNode(beans), \"touchmove\", preventEventDefault, { passive: false }],\n [target, \"touchmove\", touchMoveEvent, { passive: true }],\n [target, \"touchend\", touchEndEvent, { passive: true }],\n [target, \"touchcancel\", touchEndEvent, { passive: true }]\n );\n if (params.dragStartPixels === 0) {\n this.onMove(touchDrag.start);\n }\n }\n // gets called whenever mouse down on any drag source\n onMouseDown(params, mouseEvent) {\n if (mouseEvent.button !== 0) {\n return;\n }\n if (handledDragEvents?.has(mouseEvent)) {\n return;\n }\n if (this.isPointer()) {\n return;\n }\n const beans = this.beans;\n this.destroyDrag();\n const mouseDrag = new Dragging(_getRootNode(beans), params, mouseEvent);\n const mouseMoveEvent = (event) => this.onMouseOrPointerMove(event);\n const mouseUpEvent = (event) => this.onMouseOrPointerUp(event);\n const target = _getRootNode(beans);\n this.initDrag(mouseDrag, [target, \"mousemove\", mouseMoveEvent], [target, \"mouseup\", mouseUpEvent]);\n if (params.dragStartPixels === 0) {\n this.onMouseOrPointerMove(mouseEvent);\n } else {\n addHandledDragEvent(mouseEvent);\n }\n }\n onScroll(event) {\n if (!addHandledDragEvent(event)) {\n return;\n }\n const drag = this.drag;\n const lastDrag = drag?.lastDrag;\n if (lastDrag && this.dragging) {\n drag.params?.onDragging(lastDrag);\n }\n }\n /** only gets called after a mouse down - as this is only added after mouseDown and is removed when mouseUp happens */\n onMouseOrPointerMove(mouseEvent) {\n if (!addHandledDragEvent(mouseEvent)) {\n return;\n }\n if (_isBrowserSafari()) {\n _getDocument(this.beans).getSelection()?.removeAllRanges();\n }\n if (this.shouldPreventMouseEvent(mouseEvent)) {\n preventEventDefault(mouseEvent);\n }\n this.onMove(mouseEvent);\n }\n onTouchMove(touchEvent) {\n const drag = this.drag;\n if (!drag || !addHandledDragEvent(touchEvent)) {\n return;\n }\n const touch = _getFirstActiveTouch(drag.start, touchEvent.touches);\n if (touch) {\n touchEvent.preventDefault();\n this.onMove(touch);\n }\n }\n onMove(currentEvent) {\n const drag = this.drag;\n if (!drag) {\n return;\n }\n drag.lastDrag = currentEvent;\n const dragSource = drag.params;\n if (!this.dragging) {\n const start = drag.start;\n const dragStartPixels = dragSource.dragStartPixels;\n const requiredPixelDiff = dragStartPixels ?? 4;\n if (_areEventsNear(currentEvent, start, requiredPixelDiff)) {\n return;\n }\n this.dragging = true;\n if (dragSource.capturePointer) {\n drag.pointerCapture = capturePointer(this.beans.eRootDiv, currentEvent);\n }\n this.eventSvc.dispatchEvent({\n type: \"dragStarted\",\n target: dragSource.eElement\n });\n dragSource.onDragStart(start);\n if (this.drag !== drag) {\n return;\n }\n dragSource.onDragging(start);\n if (this.drag !== drag) {\n return;\n }\n }\n dragSource.onDragging(currentEvent);\n }\n onTouchUp(touchEvent) {\n const drag = this.drag;\n if (drag && addHandledDragEvent(touchEvent)) {\n this.onUp(_getFirstActiveTouch(drag.start, touchEvent.changedTouches));\n }\n }\n onMouseOrPointerUp(mouseEvent) {\n if (addHandledDragEvent(mouseEvent)) {\n this.onUp(mouseEvent);\n }\n }\n onUp(eventOrTouch) {\n const drag = this.drag;\n if (!drag) {\n return;\n }\n if (!eventOrTouch) {\n eventOrTouch = drag.lastDrag;\n }\n if (eventOrTouch && this.dragging) {\n this.dragging = false;\n drag.params.onDragStop(eventOrTouch);\n this.eventSvc.dispatchEvent({\n type: \"dragStopped\",\n target: drag.params.eElement\n });\n }\n this.destroyDrag();\n }\n // shared keydown handler to cancel current drag with ESC\n onKeyDown(event) {\n if (event.key === KeyCode.ESCAPE) {\n this.cancelDrag();\n }\n }\n};\nvar destroyDragSourceEntry = (dragSource) => {\n clearTempEventHandlers(dragSource.handlers);\n const oldTouchAction = dragSource.oldTouchAction;\n if (oldTouchAction != null) {\n const style = dragSource.params.eElement.style;\n if (style) {\n style.touchAction = oldTouchAction;\n }\n }\n};\nvar Dragging = class {\n constructor(rootEl, params, start, pointerId = null) {\n this.rootEl = rootEl;\n this.params = params;\n this.start = start;\n this.pointerId = pointerId;\n this.handlers = [];\n this.lastDrag = null;\n this.pointerCapture = null;\n this.eElement = params.eElement;\n }\n};\nvar getEventTargetElement = (event) => {\n const target = event.target;\n return target instanceof Element ? target : null;\n};\n\n// packages/ag-grid-community/src/agStack/core/baseDragAndDropService.ts\nvar BaseDragAndDropService = class extends AgBeanStub {\n constructor() {\n super(...arguments);\n this.beanName = \"dragAndDrop\";\n this.dragSourceAndParamsList = [];\n this.dragItem = null;\n this.dragInitialSourcePointerOffsetX = 0;\n this.dragInitialSourcePointerOffsetY = 0;\n this.lastMouseEvent = null;\n this.lastDraggingEvent = null;\n this.dragSource = null;\n this.dragImageParent = null;\n this.dragImageCompPromise = null;\n this.dragImageComp = null;\n this.dragImageLastIcon = void 0;\n this.dragImageLastLabel = void 0;\n this.dropTargets = [];\n this.lastDropTarget = null;\n }\n addDragSource(dragSource, allowTouch = false) {\n const entry = {\n capturePointer: true,\n dragSource,\n eElement: dragSource.eElement,\n dragStartPixels: dragSource.dragStartPixels,\n onDragStart: (mouseEvent) => this.onDragStart(dragSource, mouseEvent),\n onDragStop: this.onDragStop.bind(this),\n onDragging: this.onDragging.bind(this),\n onDragCancel: this.onDragCancel.bind(this),\n includeTouch: allowTouch\n };\n this.dragSourceAndParamsList.push(entry);\n this.beans.dragSvc.addDragSource(entry);\n }\n setDragImageCompIcon(iconName, shake = false) {\n const component = this.dragImageComp;\n if (component && (shake || this.dragImageLastIcon !== iconName)) {\n this.dragImageLastIcon = iconName;\n component.setIcon(iconName, shake);\n }\n }\n removeDragSource(dragSource) {\n const { dragSourceAndParamsList, beans } = this;\n const sourceAndParams = dragSourceAndParamsList.find((item) => item.dragSource === dragSource);\n if (sourceAndParams) {\n beans.dragSvc?.removeDragSource(sourceAndParams);\n _removeFromArray(dragSourceAndParamsList, sourceAndParams);\n }\n }\n destroy() {\n const { dragSourceAndParamsList, dropTargets, beans } = this;\n const dragSvc = beans.dragSvc;\n for (const sourceAndParams of dragSourceAndParamsList) {\n dragSvc?.removeDragSource(sourceAndParams);\n }\n dragSourceAndParamsList.length = 0;\n dropTargets.length = 0;\n this.clearDragAndDropProperties();\n super.destroy();\n }\n nudge() {\n const lastMouseEvent = this.lastMouseEvent;\n if (lastMouseEvent) {\n this.onDragging(lastMouseEvent, true);\n }\n }\n onDragStart(dragSource, mouseEvent) {\n this.lastMouseEvent = mouseEvent;\n this.dragSource = dragSource;\n this.dragItem = dragSource.getDragItem();\n const rect = dragSource.eElement.getBoundingClientRect();\n this.dragInitialSourcePointerOffsetX = mouseEvent.clientX - rect.left;\n this.dragInitialSourcePointerOffsetY = mouseEvent.clientY - rect.top;\n dragSource.onDragStarted?.();\n this.createAndUpdateDragImageComp(dragSource);\n }\n onDragStop(mouseEvent) {\n const { dragSource, lastDropTarget } = this;\n dragSource?.onDragStopped?.();\n if (lastDropTarget) {\n const dragEndEvent = this.dropTargetEvent(lastDropTarget, mouseEvent, false);\n lastDropTarget.onDragStop?.(dragEndEvent);\n }\n this.clearDragAndDropProperties();\n }\n onDragCancel() {\n const { dragSource, lastDropTarget, lastMouseEvent } = this;\n dragSource?.onDragCancelled?.();\n if (lastDropTarget && lastMouseEvent) {\n const dragCancelEvent = this.dropTargetEvent(lastDropTarget, lastMouseEvent, false);\n lastDropTarget.onDragCancel?.(dragCancelEvent);\n }\n this.clearDragAndDropProperties();\n }\n onDragging(mouseEvent, fromNudge = false) {\n this.positionDragImageComp(mouseEvent);\n const dropTarget = this.findCurrentDropTarget(mouseEvent);\n const { lastDropTarget, dragSource, dragItem } = this;\n let needUpdate = false;\n if (dropTarget !== lastDropTarget) {\n needUpdate = true;\n if (lastDropTarget) {\n const dragLeaveEvent = this.dropTargetEvent(lastDropTarget, mouseEvent, fromNudge);\n lastDropTarget.onDragLeave?.(dragLeaveEvent);\n }\n if (lastDropTarget !== null && !dropTarget) {\n this.handleExit(dragSource, dragItem);\n } else if (lastDropTarget === null && dropTarget) {\n this.handleEnter(dragSource, dragItem);\n }\n if (dropTarget) {\n const dragEnterEvent = this.dropTargetEvent(dropTarget, mouseEvent, fromNudge);\n dropTarget.onDragEnter?.(dragEnterEvent);\n }\n this.lastDropTarget = dropTarget;\n } else if (dropTarget) {\n const dragMoveEvent = this.dropTargetEvent(dropTarget, mouseEvent, fromNudge);\n dropTarget.onDragging?.(dragMoveEvent);\n if (dragMoveEvent?.changed) {\n needUpdate = true;\n }\n }\n this.lastMouseEvent = mouseEvent;\n if (needUpdate) {\n this.updateDragImageComp();\n }\n }\n clearDragAndDropProperties() {\n this.removeDragImageComp(this.dragImageComp);\n this.dragImageCompPromise = null;\n this.dragImageParent = null;\n this.dragImageLastIcon = void 0;\n this.dragImageLastLabel = void 0;\n this.lastMouseEvent = null;\n this.lastDraggingEvent = null;\n this.lastDropTarget = null;\n this.dragItem = null;\n this.dragInitialSourcePointerOffsetX = 0;\n this.dragInitialSourcePointerOffsetY = 0;\n this.dragSource = null;\n }\n getAllContainersFromDropTarget(dropTarget) {\n const secondaryContainers = dropTarget.getSecondaryContainers ? dropTarget.getSecondaryContainers() : null;\n const containers = [[dropTarget.getContainer()]];\n return secondaryContainers ? containers.concat(secondaryContainers) : containers;\n }\n // checks if the mouse is on the drop target. it checks eContainer and eSecondaryContainers\n isMouseOnDropTarget(mouseEvent, dropTarget) {\n const allContainersFromDropTarget = this.getAllContainersFromDropTarget(dropTarget);\n let mouseOverTarget = false;\n const allContainersIntersect = (mouseEvent2, containers) => {\n for (const container of containers) {\n const { width, height, left, right, top, bottom } = container.getBoundingClientRect();\n if (width === 0 || height === 0) {\n return false;\n }\n const horizontalFit = mouseEvent2.clientX >= left && mouseEvent2.clientX < right;\n const verticalFit = mouseEvent2.clientY >= top && mouseEvent2.clientY < bottom;\n if (!horizontalFit || !verticalFit) {\n return false;\n }\n }\n return true;\n };\n for (const currentContainers of allContainersFromDropTarget) {\n if (allContainersIntersect(mouseEvent, currentContainers)) {\n mouseOverTarget = true;\n break;\n }\n }\n const { eElement, type } = this.dragSource;\n if (dropTarget.targetContainsSource && !dropTarget.getContainer().contains(eElement)) {\n return false;\n }\n return mouseOverTarget && dropTarget.isInterestedIn(type, eElement);\n }\n findCurrentDropTarget(mouseEvent) {\n const validDropTargets = this.dropTargets.filter((target) => this.isMouseOnDropTarget(mouseEvent, target));\n const len = validDropTargets.length;\n if (len === 0) {\n return null;\n }\n if (len === 1) {\n return validDropTargets[0];\n }\n const rootNode = _getRootNode(this.beans);\n const elementStack = rootNode.elementsFromPoint(mouseEvent.clientX, mouseEvent.clientY);\n for (const el of elementStack) {\n for (const dropTarget of validDropTargets) {\n const containers = this.getAllContainersFromDropTarget(dropTarget).flatMap((a) => a);\n if (containers.indexOf(el) !== -1) {\n return dropTarget;\n }\n }\n }\n return null;\n }\n addDropTarget(dropTarget) {\n this.dropTargets.push(dropTarget);\n }\n removeDropTarget(dropTarget) {\n this.dropTargets = this.dropTargets.filter((target) => target.getContainer() !== dropTarget.getContainer());\n }\n hasExternalDropZones() {\n return this.dropTargets.some((zones) => zones.external);\n }\n findExternalZone(container) {\n return this.dropTargets.find((zone) => zone.external && zone.getContainer() === container) || null;\n }\n dropTargetEvent(dropTarget, mouseEvent, fromNudge) {\n const {\n dragSource,\n dragItem,\n lastDraggingEvent,\n lastMouseEvent,\n dragInitialSourcePointerOffsetX,\n dragInitialSourcePointerOffsetY\n } = this;\n const dropZoneTarget = dropTarget.getContainer();\n const rect = dropZoneTarget.getBoundingClientRect();\n const { clientX, clientY } = mouseEvent;\n const xDir = clientX - (lastMouseEvent?.clientX || 0);\n const yDir = clientY - (lastMouseEvent?.clientY || 0);\n const draggingEvent = this.createEvent({\n event: mouseEvent,\n x: clientX - rect.left,\n // relative x\n y: clientY - rect.top,\n // relative y\n vDirection: yDir > 0 ? \"down\" : yDir < 0 ? \"up\" : null,\n hDirection: xDir < 0 ? \"left\" : xDir > 0 ? \"right\" : null,\n initialSourcePointerOffsetX: dragInitialSourcePointerOffsetX,\n initialSourcePointerOffsetY: dragInitialSourcePointerOffsetY,\n dragSource,\n fromNudge,\n dragItem,\n dropZoneTarget,\n dropTarget: lastDraggingEvent?.dropTarget ?? null,\n // updated by rowDragFeature\n changed: !!lastDraggingEvent?.changed\n });\n this.lastDraggingEvent = draggingEvent;\n return draggingEvent;\n }\n positionDragImageComp(event) {\n const gui = this.dragImageComp?.getGui();\n if (gui) {\n _anchorElementToMouseMoveEvent(gui, event, this.beans);\n }\n }\n removeDragImageComp(comp) {\n if (this.dragImageComp === comp) {\n this.dragImageComp = null;\n }\n if (comp) {\n comp.getGui()?.remove();\n this.destroyBean(comp);\n }\n }\n createAndUpdateDragImageComp(dragSource) {\n const promise = this.createDragImageComp(dragSource) ?? null;\n this.dragImageCompPromise = promise;\n promise?.then((dragImageComp) => {\n if (promise !== this.dragImageCompPromise || !this.lastMouseEvent || !this.isAlive()) {\n this.destroyBean(dragImageComp);\n return;\n }\n this.dragImageCompPromise = null;\n this.dragImageLastIcon = void 0;\n this.dragImageLastLabel = void 0;\n const oldDragImageComp = this.dragImageComp;\n if (oldDragImageComp !== dragImageComp) {\n this.dragImageComp = dragImageComp;\n this.removeDragImageComp(oldDragImageComp);\n }\n if (dragImageComp) {\n this.appendDragImageComp(dragImageComp);\n this.updateDragImageComp();\n }\n });\n }\n appendDragImageComp(component) {\n const eGui = component.getGui();\n const style = eGui.style;\n style.position = \"absolute\";\n style.zIndex = \"9999\";\n if (this.beans.dragSvc?.hasPointerCapture()) {\n style.pointerEvents = \"none\";\n }\n this.gos.setInstanceDomData(eGui);\n this.beans.environment.applyThemeClasses(eGui);\n style.top = \"20px\";\n style.left = \"20px\";\n const targetEl = _getPageBody(this.beans);\n this.dragImageParent = targetEl;\n if (!targetEl) {\n this.warnNoBody();\n } else {\n targetEl.appendChild(eGui);\n }\n }\n updateDragImageComp() {\n const { dragImageComp, dragSource, lastDropTarget, lastDraggingEvent, dragImageLastLabel } = this;\n if (!dragImageComp) {\n return;\n }\n this.setDragImageCompIcon(lastDropTarget?.getIconName?.(lastDraggingEvent) ?? null);\n let label = dragSource?.dragItemName;\n if (typeof label === \"function\") {\n label = label(lastDraggingEvent);\n }\n label || (label = \"\");\n if (dragImageLastLabel !== label) {\n this.dragImageLastLabel = label;\n dragImageComp.setLabel(label);\n }\n }\n};\n\n// packages/ag-grid-community/src/dragAndDrop/dragAndDropService.ts\nvar DragSourceType = /* @__PURE__ */ ((DragSourceType2) => {\n DragSourceType2[DragSourceType2[\"ToolPanel\"] = 0] = \"ToolPanel\";\n DragSourceType2[DragSourceType2[\"HeaderCell\"] = 1] = \"HeaderCell\";\n DragSourceType2[DragSourceType2[\"RowDrag\"] = 2] = \"RowDrag\";\n DragSourceType2[DragSourceType2[\"ChartPanel\"] = 3] = \"ChartPanel\";\n DragSourceType2[DragSourceType2[\"AdvancedFilterBuilder\"] = 4] = \"AdvancedFilterBuilder\";\n return DragSourceType2;\n})(DragSourceType || {});\nvar DragAndDropService = class extends BaseDragAndDropService {\n createEvent(event) {\n return _addGridCommonParams(this.gos, event);\n }\n createDragImageComp(dragSource) {\n const { gos, beans } = this;\n const userCompDetails = _getDragAndDropImageCompDetails(\n beans.userCompFactory,\n _addGridCommonParams(gos, {\n dragSource\n })\n );\n return userCompDetails?.newAgStackInstance();\n }\n handleEnter(dragSource, dragItem) {\n dragSource?.onGridEnter?.(dragItem);\n }\n handleExit(dragSource, dragItem) {\n dragSource?.onGridExit?.(dragItem);\n }\n warnNoBody() {\n _warn(54);\n }\n isDropZoneWithinThisGrid(draggingEvent) {\n return this.beans.ctrlsSvc.getGridBodyCtrl().eGridBody.contains(draggingEvent.dropZoneTarget);\n }\n registerGridDropTarget(elementFn, ctrl) {\n const dropTarget = {\n getContainer: elementFn,\n isInterestedIn: (type) => type === 1 /* HeaderCell */ || type === 0 /* ToolPanel */,\n getIconName: () => \"notAllowed\"\n };\n this.addDropTarget(dropTarget);\n ctrl.addDestroyFunc(() => this.removeDropTarget(dropTarget));\n }\n};\n\n// packages/ag-grid-community/src/entities/agColumnGroup.ts\nfunction createUniqueColumnGroupId(groupId, instanceId) {\n return groupId + \"_\" + instanceId;\n}\nfunction isColumnGroup(col) {\n return col instanceof AgColumnGroup;\n}\nvar AgColumnGroup = class extends BeanStub {\n constructor(providedColumnGroup, groupId, partId, pinned) {\n super();\n this.providedColumnGroup = providedColumnGroup;\n this.groupId = groupId;\n this.partId = partId;\n this.pinned = pinned;\n this.isColumn = false;\n // depends on the open/closed state of the group, only displaying columns are stored here\n this.displayedChildren = [];\n // The measured height of this column's header when autoHeaderHeight is enabled\n this.autoHeaderHeight = null;\n this.parent = null;\n this.colIdSanitised = _escapeString(this.getUniqueId());\n }\n // as the user is adding and removing columns, the groups are recalculated.\n // this reset clears out all children, ready for children to be added again\n reset() {\n this.parent = null;\n this.children = null;\n this.displayedChildren = null;\n }\n getParent() {\n return this.parent;\n }\n getUniqueId() {\n return createUniqueColumnGroupId(this.groupId, this.partId);\n }\n isEmptyGroup() {\n return this.displayedChildren.length === 0;\n }\n isMoving() {\n const allLeafColumns = this.getProvidedColumnGroup().getLeafColumns();\n if (!allLeafColumns || allLeafColumns.length === 0) {\n return false;\n }\n return allLeafColumns.every((col) => col.isMoving());\n }\n checkLeft() {\n for (const child of this.displayedChildren) {\n if (isColumnGroup(child)) {\n child.checkLeft();\n }\n }\n if (this.displayedChildren.length > 0) {\n if (this.gos.get(\"enableRtl\")) {\n const lastChild = _last(this.displayedChildren);\n const lastChildLeft = lastChild.getLeft();\n this.setLeft(lastChildLeft);\n } else {\n const firstChildLeft = this.displayedChildren[0].getLeft();\n this.setLeft(firstChildLeft);\n }\n } else {\n this.setLeft(null);\n }\n }\n getLeft() {\n return this.left;\n }\n getOldLeft() {\n return this.oldLeft;\n }\n setLeft(left) {\n this.oldLeft = this.left;\n if (this.left !== left) {\n this.left = left;\n this.dispatchLocalEvent({ type: \"leftChanged\" });\n }\n }\n getPinned() {\n return this.pinned;\n }\n getGroupId() {\n return this.groupId;\n }\n getPartId() {\n return this.partId;\n }\n getActualWidth() {\n let groupActualWidth = 0;\n for (const child of this.displayedChildren ?? []) {\n groupActualWidth += child.getActualWidth();\n }\n return groupActualWidth;\n }\n isResizable() {\n if (!this.displayedChildren) {\n return false;\n }\n let result = false;\n for (const child of this.displayedChildren) {\n if (child.isResizable()) {\n result = true;\n }\n }\n return result;\n }\n getMinWidth() {\n let result = 0;\n for (const groupChild of this.displayedChildren) {\n result += groupChild.getMinWidth();\n }\n return result;\n }\n addChild(child) {\n if (!this.children) {\n this.children = [];\n }\n this.children.push(child);\n }\n getDisplayedChildren() {\n return this.displayedChildren;\n }\n getLeafColumns() {\n const result = [];\n this.addLeafColumns(result);\n return result;\n }\n getDisplayedLeafColumns() {\n const result = [];\n this.addDisplayedLeafColumns(result);\n return result;\n }\n getDefinition() {\n return this.providedColumnGroup.getColGroupDef();\n }\n getColGroupDef() {\n return this.providedColumnGroup.getColGroupDef();\n }\n isPadding() {\n return this.providedColumnGroup.isPadding();\n }\n isExpandable() {\n return this.providedColumnGroup.isExpandable();\n }\n isExpanded() {\n return this.providedColumnGroup.isExpanded();\n }\n setExpanded(expanded) {\n this.providedColumnGroup.setExpanded(expanded);\n }\n isAutoHeaderHeight() {\n return !!this.getColGroupDef()?.autoHeaderHeight;\n }\n getAutoHeaderHeight() {\n return this.autoHeaderHeight;\n }\n /** Returns true if the header height has changed */\n setAutoHeaderHeight(height) {\n const changed = height !== this.autoHeaderHeight;\n this.autoHeaderHeight = height;\n return changed;\n }\n addDisplayedLeafColumns(leafColumns) {\n for (const child of this.displayedChildren ?? []) {\n if (isColumn(child)) {\n leafColumns.push(child);\n } else if (isColumnGroup(child)) {\n child.addDisplayedLeafColumns(leafColumns);\n }\n }\n }\n addLeafColumns(leafColumns) {\n for (const child of this.children ?? []) {\n if (isColumn(child)) {\n leafColumns.push(child);\n } else if (isColumnGroup(child)) {\n child.addLeafColumns(leafColumns);\n }\n }\n }\n getChildren() {\n return this.children;\n }\n getColumnGroupShow() {\n return this.providedColumnGroup.getColumnGroupShow();\n }\n getProvidedColumnGroup() {\n return this.providedColumnGroup;\n }\n getPaddingLevel() {\n const parent = this.getParent();\n if (!this.isPadding() || !parent?.isPadding()) {\n return 0;\n }\n return 1 + parent.getPaddingLevel();\n }\n calculateDisplayedColumns() {\n this.displayedChildren = [];\n let parentWithExpansion = this;\n while (parentWithExpansion?.isPadding()) {\n parentWithExpansion = parentWithExpansion.getParent();\n }\n const isExpandable = parentWithExpansion ? parentWithExpansion.getProvidedColumnGroup().isExpandable() : false;\n if (!isExpandable) {\n this.displayedChildren = this.children;\n this.dispatchLocalEvent({ type: \"displayedChildrenChanged\" });\n return;\n }\n for (const child of this.children ?? []) {\n const emptyGroup = isColumnGroup(child) && !child.displayedChildren?.length;\n if (emptyGroup) {\n continue;\n }\n const headerGroupShow = child.getColumnGroupShow();\n switch (headerGroupShow) {\n case \"open\":\n if (parentWithExpansion.getProvidedColumnGroup().isExpanded()) {\n this.displayedChildren.push(child);\n }\n break;\n case \"closed\":\n if (!parentWithExpansion.getProvidedColumnGroup().isExpanded()) {\n this.displayedChildren.push(child);\n }\n break;\n default:\n this.displayedChildren.push(child);\n break;\n }\n }\n this.dispatchLocalEvent({ type: \"displayedChildrenChanged\" });\n }\n};\n\n// packages/ag-grid-community/src/entities/rowNode.ts\nvar ROW_ID_PREFIX_ROW_GROUP = \"row-group-\";\nvar ROW_ID_PREFIX_TOP_PINNED = \"t-\";\nvar ROW_ID_PREFIX_BOTTOM_PINNED = \"b-\";\nvar OBJECT_ID_SEQUENCE = 0;\nvar RowNode = class {\n constructor(beans) {\n /** `true` if this row is a master row, part of master / detail (ie row can be expanded to show detail) */\n this.master = false;\n /** `true` if this row is a detail row, part of master / detail (ie child row of an expanded master row)*/\n this.detail = void 0;\n /** The current row index. If the row is filtered out or in a collapsed group, this value is set to `null`. */\n this.rowIndex = null;\n /** The key for the group eg Ireland, UK, USA */\n this.key = null;\n /**\n * CSRM only - The index of the row in the source rowData array including any updates via transactions.\n * It does not change when sorting, filtering, grouping, pivoting or any other UI related operations.\n * If this is a filler node (a visual row created by AG Grid in tree data or grouping) the value is set to `-1`.\n */\n this.sourceRowIndex = -1;\n /**\n * CSRM only - all lowest level nodes beneath this node, no groups. Backing field for allLeafChildren property.\n * - undefined if not yet loaded.\n * - null if there are no no leaf children.\n * - not empty array containing all the leaf children.\n * If re-naming this property, you must also update `IGNORED_SIBLING_PROPERTIES`\n */\n this._leafs = void 0;\n /** Children mapped by the pivot columns or group key */\n this.childrenMapped = null;\n /**\n * Parent RowNode for tree data.\n * When set, the parent node in the hierarchy is updated during Client-Side Row Model (CSRM) grouping.\n * Used by the ClientSideChildrenTreeNodeManager, TreeGroupStrategy, RowDragFeature\n * If re-naming this property, you must also update `IGNORED_SIBLING_PROPERTIES`\n */\n this.treeParent = null;\n /**\n * The flags associated to this node. Used only internally within TreeGroupStrategy.\n * If re-naming this property, you must also update `IGNORED_SIBLING_PROPERTIES`\n */\n this.treeNodeFlags = 0;\n /**\n * This is `true` if the row has a rowIndex assigned, otherwise `false`.\n */\n this.displayed = false;\n /** The row top position in pixels. */\n this.rowTop = null;\n /** The top pixel for this row last time, makes sense if data set was ordered or filtered,\n * it is used so new rows can animate in from their old position. */\n this.oldRowTop = null;\n /** `true` by default - can be overridden via gridOptions.isRowSelectable(rowNode) */\n this.selectable = true;\n /**\n * Used by sorting service - to give deterministic sort to groups. Previously we\n * just id for this, however id is a string and had slower sorting compared to numbers.\n * If re-naming this property, you must also update `IGNORED_SIBLING_PROPERTIES`\n */\n this.__objectId = OBJECT_ID_SEQUENCE++;\n /** `true` when nodes with the same id are being removed and added as part of the same batch transaction */\n this.alreadyRendered = false;\n this.hovered = false;\n this.__selected = false;\n this.beans = beans;\n }\n /** CSRM only - do not use this property internally, this is exposed to the end user only. Use `_leafs` instead. */\n get allLeafChildren() {\n const leafs = this._leafs;\n return leafs === void 0 ? this.beans.groupStage?.loadLeafs?.(this) ?? null : leafs;\n }\n set allLeafChildren(value) {\n this._leafs = value;\n }\n /**\n * Replaces the data on the `rowNode`. When this method is called, the grid refreshes the entire rendered row if it is displayed.\n */\n setData(data) {\n this.setDataCommon(data, false);\n }\n // similar to setRowData, however it is expected that the data is the same data item. this\n // is intended to be used with Redux type stores, where the whole data can be changed. we are\n // guaranteed that the data is the same entity (so grid doesn't need to worry about the id of the\n // underlying data changing, hence doesn't need to worry about selection). the grid, upon receiving\n // dataChanged event, refreshes the cells rather than rip them all out (so user can show transitions).\n /**\n * Updates the data on the `rowNode`. When this method is called, the grid refreshes the entire rendered row if it is displayed.\n */\n updateData(data) {\n this.setDataCommon(data, true);\n }\n setDataCommon(data, update) {\n const { valueCache, eventSvc } = this.beans;\n const oldData = this.data;\n this.data = data;\n valueCache?.onDataChanged();\n this.updateDataOnDetailNode();\n this.resetQuickFilterAggregateText();\n const event = this.createDataChangedEvent(data, oldData, update);\n this.__localEventService?.dispatchEvent(event);\n if (this.sibling) {\n this.sibling.data = data;\n const event2 = this.sibling.createDataChangedEvent(data, oldData, update);\n this.sibling.__localEventService?.dispatchEvent(event2);\n }\n eventSvc.dispatchEvent({ type: \"rowNodeDataChanged\", node: this });\n const pinnedSibling = this.pinnedSibling;\n if (pinnedSibling) {\n pinnedSibling.data = data;\n pinnedSibling.__localEventService?.dispatchEvent(\n pinnedSibling.createDataChangedEvent(data, oldData, update)\n );\n eventSvc.dispatchEvent({ type: \"rowNodeDataChanged\", node: pinnedSibling });\n }\n }\n // when we are doing master / detail, the detail node is lazy created, but then kept around.\n // so if we show / hide the detail, the same detail rowNode is used. so we need to keep the data\n // in sync, otherwise expand/collapse of the detail would still show the old values.\n updateDataOnDetailNode() {\n const detailNode = this.detailNode;\n if (detailNode) {\n detailNode.data = this.data;\n }\n }\n createDataChangedEvent(newData, oldData, update) {\n return {\n type: \"dataChanged\",\n node: this,\n oldData,\n newData,\n update\n };\n }\n getRowIndexString() {\n if (this.rowIndex == null) {\n _error(13);\n return null;\n }\n if (this.rowPinned === \"top\") {\n return ROW_ID_PREFIX_TOP_PINNED + this.rowIndex;\n }\n if (this.rowPinned === \"bottom\") {\n return ROW_ID_PREFIX_BOTTOM_PINNED + this.rowIndex;\n }\n return this.rowIndex.toString();\n }\n setDataAndId(data, id) {\n const { selectionSvc } = this.beans;\n const oldNode = selectionSvc?.createDaemonNode?.(this);\n const oldData = this.data;\n this.data = data;\n this.updateDataOnDetailNode();\n this.setId(id);\n if (selectionSvc) {\n selectionSvc.updateRowSelectable(this);\n selectionSvc.syncInRowNode(this, oldNode);\n }\n const event = this.createDataChangedEvent(data, oldData, false);\n this.__localEventService?.dispatchEvent(event);\n }\n setId(id) {\n const getRowIdFunc = _getRowIdCallback(this.beans.gos);\n if (getRowIdFunc) {\n if (this.data) {\n const parentKeys = this.parent?.getRoute() ?? [];\n this.id = getRowIdFunc({\n data: this.data,\n parentKeys: parentKeys.length > 0 ? parentKeys : void 0,\n level: this.level,\n rowPinned: this.rowPinned\n });\n if (this.id.startsWith(ROW_ID_PREFIX_ROW_GROUP)) {\n _error(14, {\n groupPrefix: ROW_ID_PREFIX_ROW_GROUP\n });\n }\n } else {\n this.id = void 0;\n }\n } else {\n this.id = id;\n }\n }\n setRowTop(rowTop) {\n this.oldRowTop = this.rowTop;\n if (this.rowTop === rowTop) {\n return;\n }\n this.rowTop = rowTop;\n this.dispatchRowEvent(\"topChanged\");\n const displayed = rowTop !== null;\n if (this.displayed !== displayed) {\n this.displayed = displayed;\n this.dispatchRowEvent(\"displayedChanged\");\n }\n }\n clearRowTopAndRowIndex() {\n this.oldRowTop = null;\n this.setRowTop(null);\n this.setRowIndex(null);\n }\n setHovered(hovered) {\n this.hovered = hovered;\n }\n isHovered() {\n return this.hovered;\n }\n /**\n * Sets the row height.\n * Call if you want to change the height initially assigned to the row.\n * After calling, you must call `api.onRowHeightChanged()` so the grid knows it needs to work out the placement of the rows. */\n setRowHeight(rowHeight, estimated = false) {\n this.rowHeight = rowHeight;\n this.rowHeightEstimated = estimated;\n this.dispatchRowEvent(\"heightChanged\");\n }\n setExpanded(expanded, e, forceSync) {\n this.beans.expansionSvc?.setExpanded(this, expanded, e, forceSync);\n }\n /**\n * Replaces the value on the `rowNode` for the specified column. When complete,\n * the grid refreshes the rendered cell on the required row only.\n * **Note**: This method only fires `onCellEditRequest` when the Grid is in **Read Only** mode.\n * **Note**: This method defers to EditModule if available and batches the edit when `fullRow` or `batchEdit` is enabled.\n *\n * @param colKey The column where the value should be updated\n * @param newValue The new value\n * @param eventSource The source of the event\n * @returns `true` if the value was changed, otherwise `false`.\n */\n setDataValue(colKey, newValue, eventSource) {\n const { colModel, valueSvc, gos, editSvc } = this.beans;\n const column = typeof colKey !== \"string\" ? colKey : colModel.getCol(colKey) ?? colModel.getColDefCol(colKey);\n if (!column) {\n return false;\n }\n const oldValue = valueSvc.getValueForDisplay(column, this, void 0, void 0, \"api\").value;\n if (gos.get(\"readOnlyEdit\")) {\n const {\n beans: { eventSvc },\n data,\n rowIndex,\n rowPinned\n } = this;\n eventSvc.dispatchEvent({\n type: \"cellEditRequest\",\n event: null,\n rowIndex,\n rowPinned,\n column,\n colDef: column.colDef,\n data,\n node: this,\n oldValue,\n newValue,\n value: newValue,\n source: eventSource\n });\n return false;\n }\n if (editSvc && !editSvc.committing) {\n const result = editSvc.setDataValue({ rowNode: this, column }, newValue, eventSource);\n if (result != null) {\n return result;\n }\n }\n const valueChanged = valueSvc.setValue(this, column, newValue, eventSource);\n this.dispatchCellChangedEvent(column, newValue, oldValue);\n if (valueChanged) {\n this.pinnedSibling?.dispatchCellChangedEvent(column, newValue, oldValue);\n }\n return valueChanged;\n }\n updateHasChildren() {\n let newValue = this.group && !this.footer || !!this.childrenAfterGroup?.length;\n const { rowChildrenSvc } = this.beans;\n if (rowChildrenSvc) {\n newValue = rowChildrenSvc.getHasChildrenValue(this);\n }\n if (newValue !== this.__hasChildren) {\n this.__hasChildren = !!newValue;\n this.dispatchRowEvent(\"hasChildrenChanged\");\n }\n }\n hasChildren() {\n if (this.__hasChildren == null) {\n this.updateHasChildren();\n }\n return this.__hasChildren;\n }\n dispatchCellChangedEvent(column, newValue, oldValue) {\n const cellChangedEvent = {\n type: \"cellChanged\",\n node: this,\n column,\n newValue,\n oldValue\n };\n this.__localEventService?.dispatchEvent(cellChangedEvent);\n }\n /**\n * The first time `quickFilter` runs, the grid creates a one-off string representation of the row.\n * This string is then used for the quick filter instead of hitting each column separately.\n * When you edit, using grid editing, this string gets cleared down.\n * However, if you edit without using grid editing, you need to clear this string down for the row to be updated with the new values.\n * Otherwise, new values would not work with the `quickFilter`. */\n resetQuickFilterAggregateText() {\n this.quickFilterAggregateText = null;\n }\n /** Returns:\n * - `true` if the node can be expanded, i.e it is a group or master row.\n * - `false` if the node cannot be expanded\n */\n isExpandable() {\n return this.beans.expansionSvc?.isExpandable(this) ?? false;\n }\n /** Returns:\n * - `true` if node is selected,\n * - `false` if the node isn't selected\n * - `undefined` if it's partially selected (group where not all children are selected). */\n isSelected() {\n if (this.footer) {\n return this.sibling.isSelected();\n }\n const pinnedSibling = this.rowPinned && this.pinnedSibling;\n if (pinnedSibling) {\n return pinnedSibling.isSelected();\n }\n return this.__selected;\n }\n /** Perform a depth-first search of this node and its children. */\n depthFirstSearch(callback) {\n const childrenAfterGroup = this.childrenAfterGroup;\n if (childrenAfterGroup) {\n for (let i = 0, len = childrenAfterGroup.length; i < len; ++i) {\n childrenAfterGroup[i].depthFirstSearch(callback);\n }\n }\n callback(this);\n }\n dispatchRowEvent(type) {\n this.__localEventService?.dispatchEvent({\n type,\n node: this\n });\n }\n /**\n * Select (or deselect) the node.\n * @param newValue -`true` for selection, `false` for deselection.\n * @param clearSelection - If selecting, then passing `true` selects the node exclusively (i.e. NOT do multi select). If doing deselection, `clearSelection` has no impact.\n * @param source - Source property that appears in the `selectionChanged` event.\n */\n setSelected(newValue, clearSelection = false, source = \"api\") {\n this.beans.selectionSvc?.setNodesSelected({\n nodes: [this],\n newValue,\n clearSelection,\n source\n });\n }\n /**\n * Returns:\n * - `true` if node is either pinned to the `top` or `bottom`\n * - `false` if the node isn't pinned\n */\n isRowPinned() {\n return !!this.rowPinned;\n }\n __addEventListener(eventType, listener) {\n const localEventService = this.__localEventService ?? (this.__localEventService = new LocalEventService());\n localEventService.addEventListener(eventType, listener);\n }\n __removeEventListener(eventType, listener) {\n this.removeLocalListener(eventType, listener);\n }\n /**\n * PUBLIC USE ONLY: for internal use within AG Grid use the `__addEventListener` and `__removeEventListener` methods.\n */\n addEventListener(eventType, userListener) {\n this.beans.validation?.checkRowEvents(eventType);\n const localEventService = this.__localEventService ?? (this.__localEventService = new LocalEventService());\n this.frameworkEventListenerService = this.beans.frameworkOverrides.createLocalEventListenerWrapper?.(\n this.frameworkEventListenerService,\n localEventService\n );\n const listener = this.frameworkEventListenerService?.wrap(eventType, userListener) ?? userListener;\n localEventService.addEventListener(eventType, listener);\n }\n /**\n * PUBLIC USE ONLY: for internal use within AG Grid use the `__addEventListener` and `__removeEventListener` methods.\n */\n removeEventListener(eventType, userListener) {\n const listener = this.frameworkEventListenerService?.unwrap(eventType, userListener) ?? userListener;\n this.removeLocalListener(eventType, listener);\n }\n removeLocalListener(eventType, listener) {\n const localEventService = this.__localEventService;\n if (localEventService) {\n localEventService.removeEventListener(eventType, listener);\n if (localEventService.noRegisteredListenersExist()) {\n this.__localEventService = null;\n }\n }\n }\n /**\n * @deprecated v32.2.0 Check `node.detail` then user provided callback `isFullWidthRow` instead.\n *\n * Returns:\n * - `true` if the node is a full width cell\n * - `false` if the node is not a full width cell\n */\n isFullWidthCell() {\n _warn(61);\n if (this.detail) {\n return true;\n }\n const isFullWidthCellFunc = this.beans.gos.getCallback(\"isFullWidthRow\");\n return isFullWidthCellFunc ? isFullWidthCellFunc({ rowNode: this }) : false;\n }\n /**\n * Returns the route of keys to the row node. Returns undefined if the node has no key.\n */\n getRoute() {\n if (this.level === -1) {\n return [];\n }\n if (this.key == null) {\n return void 0;\n }\n const res = [];\n let pointer = this;\n while (pointer?.key != null) {\n res.push(pointer.key);\n pointer = pointer.parent;\n }\n return res.reverse();\n }\n setRowIndex(rowIndex) {\n if (this.rowIndex !== rowIndex) {\n this.rowIndex = rowIndex;\n this.dispatchRowEvent(\"rowIndexChanged\");\n }\n }\n setAllChildrenCount(allChildrenCount) {\n if (this.allChildrenCount !== allChildrenCount) {\n this.allChildrenCount = allChildrenCount;\n this.dispatchRowEvent(\"allChildrenCountChanged\");\n }\n }\n setUiLevel(uiLevel) {\n if (this.uiLevel !== uiLevel) {\n this.uiLevel = uiLevel;\n this.dispatchRowEvent(\"uiLevelChanged\");\n }\n }\n getFirstChild() {\n const childStore = this.childStore;\n if (childStore) {\n return childStore.getFirstNode();\n }\n return this.childrenAfterSort?.[0] ?? null;\n }\n};\n\n// packages/ag-grid-community/src/entities/rowNodeUtils.ts\nfunction _createGlobalRowEvent(rowNode, gos, type) {\n return _addGridCommonParams(gos, {\n type,\n node: rowNode,\n data: rowNode.data,\n rowIndex: rowNode.rowIndex,\n rowPinned: rowNode.rowPinned\n });\n}\nvar IGNORED_SIBLING_PROPERTIES = /* @__PURE__ */ new Set([\n \"__autoHeights\",\n \"__checkAutoHeightsDebounced\",\n \"__localEventService\",\n \"__objectId\",\n \"_leafs\",\n \"childStore\",\n \"oldRowTop\",\n \"sticky\",\n \"treeNodeFlags\",\n \"treeParent\"\n]);\nvar _createRowNodeSibling = (rowNode, beans) => {\n const sibling = new RowNode(beans);\n for (const key of Object.keys(rowNode)) {\n if (IGNORED_SIBLING_PROPERTIES.has(key)) {\n continue;\n }\n sibling[key] = rowNode[key];\n }\n sibling.oldRowTop = null;\n return sibling;\n};\nvar _firstLeaf = (childrenAfterGroup) => {\n while (childrenAfterGroup?.length) {\n const node = childrenAfterGroup[0];\n if (node.data) {\n return node;\n }\n childrenAfterGroup = node.childrenAfterGroup;\n }\n};\n\n// packages/ag-grid-community/src/filter/columnFilterUtils.ts\nvar FILTER_HANDLER_MAP = {\n agSetColumnFilter: \"agSetColumnFilterHandler\",\n agMultiColumnFilter: \"agMultiColumnFilterHandler\",\n agGroupColumnFilter: \"agGroupColumnFilterHandler\",\n agNumberColumnFilter: \"agNumberColumnFilterHandler\",\n agDateColumnFilter: \"agDateColumnFilterHandler\",\n agTextColumnFilter: \"agTextColumnFilterHandler\"\n};\nvar FILTER_HANDLERS = new Set(Object.values(FILTER_HANDLER_MAP));\nfunction getFilterUiFromWrapper(filterWrapper, skipCreate) {\n const filterUi = filterWrapper.filterUi;\n if (!filterUi) {\n return null;\n }\n if (filterUi.created) {\n return filterUi.promise;\n }\n if (skipCreate) {\n return null;\n }\n const promise = filterUi.create(filterUi.refreshed);\n const createdFilterUi = filterUi;\n createdFilterUi.created = true;\n createdFilterUi.promise = promise;\n return promise;\n}\nfunction _refreshHandlerAndUi(getFilterUi, handler, handlerParams, model, state, source, additionalEventAttributes) {\n handler.refresh?.({ ...handlerParams, model, source, additionalEventAttributes });\n return getFilterUi().then((filterUi) => {\n if (filterUi) {\n const { filter, filterParams } = filterUi;\n _refreshFilterUi(filter, filterParams, model, state, source, additionalEventAttributes);\n }\n });\n}\nfunction _refreshFilterUi(filter, filterParams, model, state, source, additionalEventAttributes) {\n filter?.refresh?.({\n ...filterParams,\n model,\n state,\n source,\n additionalEventAttributes\n });\n}\nfunction getAndRefreshFilterUi(getFilterUi, getModel, getState2) {\n const filterUi = getFilterUi();\n if (filterUi?.created) {\n filterUi.promise.then((filter) => {\n const model = getModel();\n _refreshFilterUi(filter, filterUi.filterParams, model, getState2() ?? { model }, \"ui\");\n });\n }\n}\nfunction _updateFilterModel(action, getFilterUi, getModel, getState2, updateState, updateModel, processModelToApply) {\n let state;\n let shouldUpdateModel = false;\n let model;\n switch (action) {\n case \"apply\": {\n const oldState = getState2();\n model = oldState?.model ?? null;\n if (processModelToApply) {\n model = processModelToApply(model);\n }\n state = {\n // keep the other UI state\n state: oldState?.state,\n model\n };\n shouldUpdateModel = true;\n break;\n }\n case \"clear\": {\n state = {\n // wipe other UI state\n model: null\n };\n break;\n }\n case \"reset\": {\n state = {\n // wipe other UI state\n model: null\n };\n shouldUpdateModel = true;\n model = null;\n break;\n }\n case \"cancel\": {\n state = {\n // wipe other UI state\n model: getModel()\n };\n break;\n }\n }\n updateState(state);\n if (shouldUpdateModel) {\n updateModel(model);\n } else {\n getAndRefreshFilterUi(getFilterUi, getModel, getState2);\n }\n}\nfunction _getFilterModel(model, colId) {\n return model[colId] ?? null;\n}\n\n// packages/ag-grid-community/src/utils/element.ts\nfunction _createElement(params) {\n return _createAgElement(params);\n}\n\n// packages/ag-grid-community/src/filter/filterButtonComp.ts\nfunction getElement(className) {\n return {\n tag: \"div\",\n cls: className\n };\n}\nvar FilterButtonComp = class extends Component {\n constructor(config) {\n const { className = \"ag-filter-apply-panel\" } = config ?? {};\n super(getElement(className));\n this.listeners = [];\n this.validationMessage = null;\n this.className = className;\n }\n updateButtons(buttons, useForm) {\n const oldButtons = this.buttons;\n this.buttons = buttons;\n if (oldButtons === buttons) {\n return;\n }\n const eGui = this.getGui();\n _clearElement(eGui);\n let eApplyButton;\n this.destroyListeners();\n const fragment = document.createDocumentFragment();\n const className = this.className;\n const addButton = ({ type, label }) => {\n const clickListener = (event) => {\n this.dispatchLocalEvent({\n type,\n event\n });\n };\n if (![\"apply\", \"clear\", \"reset\", \"cancel\"].includes(type)) {\n _warn(75);\n }\n const isApply = type === \"apply\";\n const buttonType = isApply && useForm ? \"submit\" : \"button\";\n const button = _createElement({\n tag: \"button\",\n attrs: { type: buttonType },\n ref: `${type}FilterButton`,\n cls: `ag-button ag-standard-button ${className}-button${isApply ? \" \" + className + \"-apply-button\" : \"\"}`,\n children: label\n });\n this.activateTabIndex([button]);\n if (isApply) {\n eApplyButton = button;\n }\n const keydownListener = (event) => {\n if (event.key === KeyCode.ENTER) {\n event.preventDefault();\n clickListener(event);\n }\n };\n const listeners = this.listeners;\n button.addEventListener(\"click\", clickListener);\n listeners.push(() => button.removeEventListener(\"click\", clickListener));\n button.addEventListener(\"keydown\", keydownListener);\n listeners.push(() => button.removeEventListener(\"keydown\", keydownListener));\n fragment.append(button);\n };\n for (const button of buttons) {\n addButton(button);\n }\n this.eApply = eApplyButton;\n const tooltip = this.validationTooltipFeature;\n if (eApplyButton && !tooltip) {\n this.validationTooltipFeature = this.createOptionalManagedBean(\n this.beans.registry.createDynamicBean(\"tooltipFeature\", false, {\n getGui: () => this.eApply,\n getLocation: () => \"advancedFilter\",\n getTooltipShowDelayOverride: () => 1e3\n })\n );\n } else if (!eApplyButton && tooltip) {\n this.validationTooltipFeature = this.destroyBean(tooltip);\n }\n eGui.append(fragment);\n }\n getApplyButton() {\n return this.eApply;\n }\n updateValidity(valid, message = null) {\n const eApplyButton = this.eApply;\n if (!eApplyButton) {\n return;\n }\n _setDisabled(eApplyButton, valid === false);\n this.validationMessage = message ?? null;\n this.validationTooltipFeature?.setTooltipAndRefresh(this.validationMessage);\n }\n destroyListeners() {\n for (const destroyFunc of this.listeners) {\n destroyFunc();\n }\n this.listeners = [];\n }\n destroy() {\n this.destroyListeners();\n super.destroy();\n }\n};\nvar AgFilterButtonSelector = {\n selector: \"AG-FILTER-BUTTON\",\n component: FilterButtonComp\n};\n\n// packages/ag-grid-community/src/filter/filterLocaleText.ts\nvar FILTER_LOCALE_TEXT = {\n applyFilter: \"Apply\",\n clearFilter: \"Clear\",\n resetFilter: \"Reset\",\n cancelFilter: \"Cancel\",\n textFilter: \"Text Filter\",\n numberFilter: \"Number Filter\",\n dateFilter: \"Date Filter\",\n setFilter: \"Set Filter\",\n filterOoo: \"Filter...\",\n empty: \"Choose one\",\n equals: \"Equals\",\n notEqual: \"Does not equal\",\n lessThan: \"Less than\",\n greaterThan: \"Greater than\",\n inRange: \"Between\",\n inRangeStart: \"From\",\n inRangeEnd: \"To\",\n lessThanOrEqual: \"Less than or equal to\",\n greaterThanOrEqual: \"Greater than or equal to\",\n contains: \"Contains\",\n notContains: \"Does not contain\",\n startsWith: \"Begins with\",\n endsWith: \"Ends with\",\n blank: \"Blank\",\n notBlank: \"Not blank\",\n before: \"Before\",\n after: \"After\",\n andCondition: \"AND\",\n orCondition: \"OR\",\n dateFormatOoo: \"yyyy-mm-dd\",\n filterSummaryInactive: \"is (All)\",\n filterSummaryContains: \"contains\",\n filterSummaryNotContains: \"does not contain\",\n filterSummaryTextEquals: \"equals\",\n filterSummaryTextNotEqual: \"does not equal\",\n filterSummaryStartsWith: \"begins with\",\n filterSummaryEndsWith: \"ends with\",\n filterSummaryBlank: \"is blank\",\n filterSummaryNotBlank: \"is not blank\",\n filterSummaryEquals: \"=\",\n filterSummaryNotEqual: \"!=\",\n filterSummaryGreaterThan: \">\",\n filterSummaryGreaterThanOrEqual: \">=\",\n filterSummaryLessThan: \"<\",\n filterSummaryLessThanOrEqual: \"<=\",\n filterSummaryInRange: \"between\",\n filterSummaryInRangeValues: (variableValues) => `(${variableValues[0]}, ${variableValues[1]})`,\n filterSummaryTextQuote: (variableValues) => `\"${variableValues[0]}\"`\n};\nfunction translateForFilter(bean, key, variableValues) {\n return _translate(bean, FILTER_LOCALE_TEXT, key, variableValues);\n}\n\n// packages/ag-grid-community/src/filter/provided/providedFilterUtils.ts\nfunction getDebounceMs(params, debounceDefault) {\n const { debounceMs } = params;\n if (_isUseApplyButton(params)) {\n if (debounceMs != null) {\n _warn(71);\n }\n return 0;\n }\n return debounceMs ?? debounceDefault;\n}\nfunction _isUseApplyButton(params) {\n return (params.buttons?.indexOf(\"apply\") ?? -1) >= 0;\n}\n\n// packages/ag-grid-community/src/filter/filterWrapperComp.ts\nvar FilterWrapperComp = class extends Component {\n constructor(column, wrapper, eventParent, updateModel, isGlobalButtons, enableGlobalButtonCheck) {\n super();\n this.column = column;\n this.wrapper = wrapper;\n this.eventParent = eventParent;\n this.updateModel = updateModel;\n this.isGlobalButtons = isGlobalButtons;\n this.enableGlobalButtonCheck = enableGlobalButtonCheck;\n this.hidePopup = null;\n this.applyActive = false;\n }\n postConstruct() {\n const { comp, params: originalParams } = this.wrapper;\n const params = originalParams;\n const useForm = params.useForm;\n const tag = useForm ? \"form\" : \"div\";\n this.setTemplate({\n tag,\n cls: \"ag-filter-wrapper\"\n });\n if (useForm) {\n this.addManagedElementListeners(this.getGui(), {\n submit: (e) => {\n e?.preventDefault();\n },\n keydown: this.handleKeyDown.bind(this)\n });\n }\n this.appendChild(comp.getGui());\n this.params = params;\n this.resetButtonsPanel(params);\n this.addManagedListeners(this.eventParent, {\n filterParamsChanged: ({ column, params: eventParams }) => {\n if (column === this.column) {\n this.resetButtonsPanel(eventParams, this.params);\n }\n },\n filterStateChanged: ({ column, state }) => {\n if (column === this.column) {\n this.eButtons?.updateValidity(state.valid !== false);\n }\n },\n filterAction: ({ column, action, event: keyboardEvent }) => {\n if (column === this.column) {\n this.afterAction(action, keyboardEvent);\n }\n },\n ...this.enableGlobalButtonCheck ? {\n filterGlobalButtons: ({ isGlobal }) => {\n if (isGlobal !== this.isGlobalButtons) {\n this.isGlobalButtons = isGlobal;\n const currentParams = this.params;\n this.resetButtonsPanel(currentParams, currentParams, true);\n }\n }\n } : void 0\n });\n }\n afterGuiAttached(params) {\n if (params) {\n this.hidePopup = params.hidePopup;\n }\n }\n resetButtonsPanel(newParams, oldParams, forceUpdate) {\n const { buttons: oldButtons, readOnly: oldReadOnly } = oldParams ?? {};\n const { buttons: newButtons, readOnly, useForm } = newParams;\n if (!forceUpdate && oldReadOnly === readOnly && _jsonEquals(oldButtons, newButtons)) {\n return;\n }\n const hasButtons = newButtons && newButtons.length > 0 && !newParams.readOnly && !this.isGlobalButtons;\n let eButtonsPanel = this.eButtons;\n if (hasButtons) {\n const buttons = newButtons.map((type) => {\n const localeKey = `${type}Filter`;\n return { type, label: translateForFilter(this, localeKey) };\n });\n this.applyActive = _isUseApplyButton(this.params);\n if (!eButtonsPanel) {\n eButtonsPanel = this.createBean(new FilterButtonComp());\n this.appendChild(eButtonsPanel.getGui());\n const column = this.column;\n const getListener = (action) => ({ event }) => {\n this.updateModel(column, action, { fromButtons: true });\n this.afterAction(action, event);\n };\n eButtonsPanel?.addManagedListeners(eButtonsPanel, {\n apply: getListener(\"apply\"),\n clear: getListener(\"clear\"),\n reset: getListener(\"reset\"),\n cancel: getListener(\"cancel\")\n });\n this.eButtons = eButtonsPanel;\n }\n eButtonsPanel.updateButtons(buttons, useForm);\n } else {\n this.applyActive = false;\n if (eButtonsPanel) {\n _removeFromParent(eButtonsPanel.getGui());\n this.eButtons = this.destroyBean(eButtonsPanel);\n }\n }\n }\n close(e) {\n const hidePopup = this.hidePopup;\n if (!hidePopup) {\n return;\n }\n const keyboardEvent = e;\n const key = keyboardEvent?.key;\n let params;\n if (key === KeyCode.ENTER || key === KeyCode.SPACE) {\n params = { keyboardEvent };\n }\n hidePopup(params);\n this.hidePopup = null;\n }\n afterAction(action, event) {\n const { params, applyActive } = this;\n const closeOnApply = params?.closeOnApply;\n switch (action) {\n case \"apply\": {\n event?.preventDefault();\n if (closeOnApply && applyActive) {\n this.close(event);\n }\n break;\n }\n case \"reset\": {\n if (closeOnApply && applyActive) {\n this.close();\n }\n break;\n }\n case \"cancel\": {\n if (closeOnApply) {\n this.close(event);\n }\n break;\n }\n }\n }\n handleKeyDown(event) {\n if (!event.defaultPrevented && event.key === KeyCode.ENTER && this.applyActive) {\n this.updateModel(this.column, \"apply\", { fromButtons: true });\n this.afterAction(\"apply\", event);\n }\n }\n destroy() {\n this.hidePopup = null;\n this.eButtons = this.destroyBean(this.eButtons);\n }\n};\n\n// packages/ag-grid-community/src/filter/filterComp.ts\nvar FilterElement = { tag: \"div\", cls: \"ag-filter\" };\nvar FilterComp = class extends Component {\n constructor(column, source, enableGlobalButtonCheck) {\n super(FilterElement);\n this.column = column;\n this.source = source;\n this.enableGlobalButtonCheck = enableGlobalButtonCheck;\n this.wrapper = null;\n }\n postConstruct() {\n this.beans.colFilter?.activeFilterComps.add(this);\n this.createFilter(true);\n this.addManagedEventListeners({ filterDestroyed: this.onFilterDestroyed.bind(this) });\n }\n hasFilter() {\n return this.wrapper != null;\n }\n getFilter() {\n return this.wrapper?.then((wrapper) => wrapper.comp) ?? null;\n }\n afterInit() {\n return this.wrapper?.then(() => {\n }) ?? AgPromise.resolve();\n }\n afterGuiAttached(params) {\n this.afterGuiAttachedParams = params;\n this.wrapper?.then((wrapper) => {\n this.comp?.afterGuiAttached(params);\n wrapper?.comp?.afterGuiAttached?.(params);\n });\n }\n afterGuiDetached() {\n this.wrapper?.then((wrapper) => {\n wrapper?.comp?.afterGuiDetached?.();\n });\n }\n createFilter(init) {\n const {\n column,\n source,\n beans: { colFilter }\n } = this;\n const filterPromise = colFilter.getFilterUiForDisplay(column) ?? null;\n this.wrapper = filterPromise;\n filterPromise?.then((wrapper) => {\n if (!wrapper) {\n return;\n }\n const { isHandler, comp } = wrapper;\n let filterGui;\n if (isHandler) {\n const enableGlobalButtonCheck = !!this.enableGlobalButtonCheck;\n const displayComp = this.createBean(\n new FilterWrapperComp(\n column,\n wrapper,\n colFilter,\n colFilter.updateModel.bind(colFilter),\n enableGlobalButtonCheck && colFilter.isGlobalButtons,\n enableGlobalButtonCheck\n )\n );\n this.comp = displayComp;\n filterGui = displayComp.getGui();\n } else {\n filterGui = comp.getGui();\n if (!_exists(filterGui)) {\n _warn(69, { guiFromFilter: filterGui });\n }\n }\n this.appendChild(filterGui);\n if (init) {\n this.eventSvc.dispatchEvent({\n type: \"filterOpened\",\n column,\n source,\n eGui: this.getGui()\n });\n } else {\n comp.afterGuiAttached?.(this.afterGuiAttachedParams);\n }\n });\n }\n onFilterDestroyed(event) {\n const { source, column } = event;\n if ((source === \"api\" || source === \"paramsUpdated\") && column.getId() === this.column.getId() && this.beans.colModel.getColDefCol(this.column)) {\n _clearElement(this.getGui());\n this.comp = this.destroyBean(this.comp);\n this.createFilter();\n }\n }\n destroy() {\n this.beans.colFilter?.activeFilterComps.delete(this);\n this.eventSvc.dispatchEvent({\n type: \"filterClosed\",\n column: this.column\n });\n this.wrapper = null;\n this.comp = this.destroyBean(this.comp);\n this.afterGuiAttachedParams = void 0;\n super.destroy();\n }\n};\n\n// packages/ag-grid-community/src/filter/filterDataTypeUtils.ts\nvar MONTH_LOCALE_TEXT = {\n january: \"January\",\n february: \"February\",\n march: \"March\",\n april: \"April\",\n may: \"May\",\n june: \"June\",\n july: \"July\",\n august: \"August\",\n september: \"September\",\n october: \"October\",\n november: \"November\",\n december: \"December\"\n};\nvar MONTH_KEYS = [\n \"january\",\n \"february\",\n \"march\",\n \"april\",\n \"may\",\n \"june\",\n \"july\",\n \"august\",\n \"september\",\n \"october\",\n \"november\",\n \"december\"\n];\nfunction setFilterNumberComparator(a, b) {\n if (a == null) {\n return -1;\n }\n if (b == null) {\n return 1;\n }\n return Number.parseFloat(a) - Number.parseFloat(b);\n}\nfunction isValidDate(value) {\n return value instanceof Date && !isNaN(value.getTime());\n}\nvar filterParamsForEachDataType = {\n number: () => void 0,\n boolean: () => ({\n maxNumConditions: 1,\n debounceMs: 0,\n filterOptions: [\n \"empty\",\n {\n displayKey: \"true\",\n displayName: \"True\",\n predicate: (_filterValues, cellValue) => cellValue,\n numberOfInputs: 0\n },\n {\n displayKey: \"false\",\n displayName: \"False\",\n predicate: (_filterValues, cellValue) => cellValue === false,\n numberOfInputs: 0\n }\n ]\n }),\n date: () => ({ isValidDate }),\n dateString: ({ dataTypeDefinition }) => ({\n comparator: (filterDate, cellValue) => {\n const cellAsDate = dataTypeDefinition.dateParser(cellValue);\n if (cellValue == null || cellAsDate < filterDate) {\n return -1;\n }\n if (cellAsDate > filterDate) {\n return 1;\n }\n return 0;\n },\n isValidDate: (value) => typeof value === \"string\" && isValidDate(dataTypeDefinition.dateParser(value))\n }),\n dateTime: (args) => filterParamsForEachDataType.date(args),\n dateTimeString: (args) => filterParamsForEachDataType.dateString(args),\n object: () => void 0,\n text: () => void 0\n};\nvar setFilterParamsForEachDataType = {\n number: () => ({ comparator: setFilterNumberComparator }),\n boolean: ({ t }) => ({\n valueFormatter: (params) => _exists(params.value) ? t(String(params.value), params.value ? \"True\" : \"False\") : t(\"blanks\", \"(Blanks)\")\n }),\n date: ({ formatValue, t }) => ({\n valueFormatter: (params) => {\n const valueFormatted = formatValue(params);\n return _exists(valueFormatted) ? valueFormatted : t(\"blanks\", \"(Blanks)\");\n },\n treeList: true,\n treeListFormatter: (pathKey, level) => {\n if (pathKey === \"NaN\") {\n return t(\"invalidDate\", \"Invalid Date\");\n }\n if (level === 1 && pathKey != null) {\n const monthKey = MONTH_KEYS[Number(pathKey) - 1];\n return t(monthKey, MONTH_LOCALE_TEXT[monthKey]);\n }\n return pathKey ?? t(\"blanks\", \"(Blanks)\");\n },\n treeListPathGetter: (date) => _getDateParts(date, false)\n }),\n dateString: ({ formatValue, dataTypeDefinition, t }) => ({\n valueFormatter: (params) => {\n const valueFormatted = formatValue(params);\n return _exists(valueFormatted) ? valueFormatted : t(\"blanks\", \"(Blanks)\");\n },\n treeList: true,\n treeListPathGetter: (value) => _getDateParts(dataTypeDefinition.dateParser(value ?? void 0), false),\n treeListFormatter: (pathKey, level) => {\n if (level === 1 && pathKey != null) {\n const monthKey = MONTH_KEYS[Number(pathKey) - 1];\n return t(monthKey, MONTH_LOCALE_TEXT[monthKey]);\n }\n return pathKey ?? t(\"blanks\", \"(Blanks)\");\n }\n }),\n dateTime: (args) => {\n const params = setFilterParamsForEachDataType.date(args);\n params.treeListPathGetter = _getDateParts;\n return params;\n },\n dateTimeString(args) {\n const convertToDate = args.dataTypeDefinition.dateParser;\n const params = setFilterParamsForEachDataType.dateString(args);\n params.treeListPathGetter = (value) => _getDateParts(convertToDate(value ?? void 0));\n return params;\n },\n object: ({ formatValue, t }) => ({\n valueFormatter: (params) => {\n const valueFormatted = formatValue(params);\n return _exists(valueFormatted) ? valueFormatted : t(\"blanks\", \"(Blanks)\");\n }\n }),\n text: () => void 0\n};\nfunction _getFilterParamsForDataType(filter, existingFilterParams, existingFilterValueGetter, dataTypeDefinition, formatValue, beans, translate) {\n let filterParams = existingFilterParams;\n let filterValueGetter = existingFilterValueGetter;\n const usingSetFilter = filter === \"agSetColumnFilter\";\n if (!filterValueGetter && dataTypeDefinition.baseDataType === \"object\" && !usingSetFilter) {\n filterValueGetter = ({ column, node }) => formatValue({ column, node, value: beans.valueSvc.getValue(column, node) });\n }\n const filterParamsMap = usingSetFilter ? setFilterParamsForEachDataType : filterParamsForEachDataType;\n const filterParamsGetter = filterParamsMap[dataTypeDefinition.baseDataType];\n const newFilterParams = filterParamsGetter({ dataTypeDefinition, formatValue, t: translate });\n filterParams = typeof existingFilterParams === \"object\" ? {\n ...newFilterParams,\n ...existingFilterParams\n } : newFilterParams;\n return { filterParams, filterValueGetter };\n}\nvar defaultFilters = {\n boolean: \"agTextColumnFilter\",\n date: \"agDateColumnFilter\",\n dateString: \"agDateColumnFilter\",\n dateTime: \"agDateColumnFilter\",\n dateTimeString: \"agDateColumnFilter\",\n number: \"agNumberColumnFilter\",\n object: \"agTextColumnFilter\",\n text: \"agTextColumnFilter\"\n};\nvar defaultFloatingFilters = {\n boolean: \"agTextColumnFloatingFilter\",\n date: \"agDateColumnFloatingFilter\",\n dateString: \"agDateColumnFloatingFilter\",\n dateTime: \"agDateColumnFloatingFilter\",\n dateTimeString: \"agDateColumnFloatingFilter\",\n number: \"agNumberColumnFloatingFilter\",\n object: \"agTextColumnFloatingFilter\",\n text: \"agTextColumnFloatingFilter\"\n};\nfunction _getDefaultSimpleFilter(cellDataType, isFloating = false) {\n const filterSet = isFloating ? defaultFloatingFilters : defaultFilters;\n return filterSet[cellDataType ?? \"text\"];\n}\n\n// packages/ag-grid-community/src/rendering/features/positionableFeature.ts\nvar RESIZE_CONTAINER_STYLE = \"ag-resizer-wrapper\";\nvar makeDiv = (dataRefPrefix, classSuffix) => ({\n tag: \"div\",\n ref: `${dataRefPrefix}Resizer`,\n cls: `ag-resizer ag-resizer-${classSuffix}`\n});\nvar RESIZE_TEMPLATE = {\n tag: \"div\",\n cls: RESIZE_CONTAINER_STYLE,\n children: [\n makeDiv(\"eTopLeft\", \"topLeft\"),\n makeDiv(\"eTop\", \"top\"),\n makeDiv(\"eTopRight\", \"topRight\"),\n makeDiv(\"eRight\", \"right\"),\n makeDiv(\"eBottomRight\", \"bottomRight\"),\n makeDiv(\"eBottom\", \"bottom\"),\n makeDiv(\"eBottomLeft\", \"bottomLeft\"),\n makeDiv(\"eLeft\", \"left\")\n ]\n};\nvar PositionableFeature = class extends BeanStub {\n constructor(element, config) {\n super();\n this.element = element;\n this.dragStartPosition = {\n x: 0,\n y: 0\n };\n this.position = {\n x: 0,\n y: 0\n };\n this.lastSize = {\n width: -1,\n height: -1\n };\n this.positioned = false;\n this.resizersAdded = false;\n this.resizeListeners = [];\n this.boundaryEl = null;\n this.isResizing = false;\n this.isMoving = false;\n this.resizable = {};\n this.movable = false;\n this.currentResizer = null;\n this.config = Object.assign({}, { popup: false }, config);\n }\n wireBeans(beans) {\n this.popupSvc = beans.popupSvc;\n this.dragSvc = beans.dragSvc;\n }\n center(postProcessCallback) {\n const { clientHeight, clientWidth } = this.offsetParent;\n const x = clientWidth / 2 - this.getWidth() / 2;\n const y = clientHeight / 2 - this.getHeight() / 2;\n this.offsetElement(x, y, postProcessCallback);\n }\n initialisePosition(postProcessCallback) {\n if (this.positioned) {\n return;\n }\n const { centered, forcePopupParentAsOffsetParent, minWidth, width, minHeight, height, x, y } = this.config;\n if (!this.offsetParent) {\n this.setOffsetParent();\n }\n let computedMinHeight = 0;\n let computedMinWidth = 0;\n const isElementVisible = _isVisible(this.element);\n if (isElementVisible) {\n const boundaryEl = this.findBoundaryElement();\n const offsetParentComputedStyles = window.getComputedStyle(boundaryEl);\n if (offsetParentComputedStyles.minWidth != null) {\n const paddingWidth = boundaryEl.offsetWidth - this.element.offsetWidth;\n computedMinWidth = Number.parseInt(offsetParentComputedStyles.minWidth, 10) - paddingWidth;\n }\n if (offsetParentComputedStyles.minHeight != null) {\n const paddingHeight = boundaryEl.offsetHeight - this.element.offsetHeight;\n computedMinHeight = Number.parseInt(offsetParentComputedStyles.minHeight, 10) - paddingHeight;\n }\n }\n this.minHeight = minHeight || computedMinHeight;\n this.minWidth = minWidth || computedMinWidth;\n if (width) {\n this.setWidth(width);\n }\n if (height) {\n this.setHeight(height);\n }\n if (!width || !height) {\n this.refreshSize();\n }\n if (centered) {\n this.center(postProcessCallback);\n } else if (x || y) {\n this.offsetElement(x, y, postProcessCallback);\n } else if (isElementVisible && forcePopupParentAsOffsetParent) {\n let boundaryEl = this.boundaryEl;\n let initialisedDuringPositioning = true;\n if (!boundaryEl) {\n boundaryEl = this.findBoundaryElement();\n initialisedDuringPositioning = false;\n }\n if (boundaryEl) {\n const top = Number.parseFloat(boundaryEl.style.top);\n const left = Number.parseFloat(boundaryEl.style.left);\n if (initialisedDuringPositioning) {\n this.offsetElement(isNaN(left) ? 0 : left, isNaN(top) ? 0 : top, postProcessCallback);\n } else {\n this.setPosition(left, top);\n }\n }\n }\n this.positioned = !!this.offsetParent;\n }\n isPositioned() {\n return this.positioned;\n }\n getPosition() {\n return this.position;\n }\n setMovable(movable, moveElement) {\n if (!this.config.popup || movable === this.movable) {\n return;\n }\n this.movable = movable;\n const params = this.moveElementDragListener || {\n eElement: moveElement,\n onDragStart: this.onMoveStart.bind(this),\n onDragging: this.onMove.bind(this),\n onDragStop: this.onMoveEnd.bind(this)\n };\n if (movable) {\n this.dragSvc?.addDragSource(params);\n this.moveElementDragListener = params;\n } else {\n this.dragSvc?.removeDragSource(params);\n this.moveElementDragListener = void 0;\n }\n }\n setResizable(resizable) {\n this.clearResizeListeners();\n if (resizable) {\n this.addResizers();\n } else {\n this.removeResizers();\n }\n if (typeof resizable === \"boolean\") {\n if (resizable === false) {\n return;\n }\n resizable = {\n topLeft: resizable,\n top: resizable,\n topRight: resizable,\n right: resizable,\n bottomRight: resizable,\n bottom: resizable,\n bottomLeft: resizable,\n left: resizable\n };\n }\n Object.keys(resizable).forEach((side) => {\n const resizableStructure = resizable;\n const isSideResizable = !!resizableStructure[side];\n const resizerEl = this.getResizerElement(side);\n const params = {\n dragStartPixels: 0,\n eElement: resizerEl,\n onDragStart: (e) => this.onResizeStart(e, side),\n onDragging: this.onResize.bind(this),\n onDragStop: (e) => this.onResizeEnd(e, side)\n };\n if (isSideResizable || !this.isAlive() && !isSideResizable) {\n if (isSideResizable) {\n this.dragSvc?.addDragSource(params);\n this.resizeListeners.push(params);\n resizerEl.style.pointerEvents = \"all\";\n } else {\n resizerEl.style.pointerEvents = \"none\";\n }\n this.resizable[side] = isSideResizable;\n }\n });\n }\n removeSizeFromEl() {\n this.element.style.removeProperty(\"height\");\n this.element.style.removeProperty(\"width\");\n this.element.style.removeProperty(\"flex\");\n }\n restoreLastSize() {\n this.element.style.flex = \"0 0 auto\";\n const { height, width } = this.lastSize;\n if (width !== -1) {\n this.element.style.width = `${width}px`;\n }\n if (height !== -1) {\n this.element.style.height = `${height}px`;\n }\n }\n getHeight() {\n return this.element.offsetHeight;\n }\n setHeight(height) {\n const { popup } = this.config;\n const eGui = this.element;\n let isPercent = false;\n if (typeof height === \"string\" && height.includes(\"%\")) {\n _setFixedHeight(eGui, height);\n height = _getAbsoluteHeight(eGui);\n isPercent = true;\n } else {\n height = Math.max(this.minHeight, height);\n if (this.positioned) {\n const availableHeight = this.getAvailableHeight();\n if (availableHeight && height > availableHeight) {\n height = availableHeight;\n }\n }\n }\n if (this.getHeight() === height) {\n return;\n }\n if (!isPercent) {\n if (popup) {\n _setFixedHeight(eGui, height);\n } else {\n eGui.style.height = `${height}px`;\n eGui.style.flex = \"0 0 auto\";\n this.lastSize.height = typeof height === \"number\" ? height : Number.parseFloat(height);\n }\n } else {\n eGui.style.maxHeight = \"unset\";\n eGui.style.minHeight = \"unset\";\n }\n }\n getAvailableHeight() {\n const { popup, forcePopupParentAsOffsetParent } = this.config;\n if (!this.positioned) {\n this.initialisePosition();\n }\n const { clientHeight } = this.offsetParent;\n if (!clientHeight) {\n return null;\n }\n const elRect = this.element.getBoundingClientRect();\n const offsetParentRect = this.offsetParent.getBoundingClientRect();\n const yPosition = popup ? this.position.y : elRect.top;\n const parentTop = popup ? 0 : offsetParentRect.top;\n let additionalHeight = 0;\n if (forcePopupParentAsOffsetParent) {\n const parentEl = this.element.parentElement;\n if (parentEl) {\n const { bottom } = parentEl.getBoundingClientRect();\n additionalHeight = bottom - elRect.bottom;\n }\n }\n const availableHeight = clientHeight + parentTop - yPosition - additionalHeight;\n return availableHeight;\n }\n getWidth() {\n return this.element.offsetWidth;\n }\n setWidth(width) {\n const eGui = this.element;\n const { popup } = this.config;\n let isPercent = false;\n if (typeof width === \"string\" && width.includes(\"%\")) {\n _setFixedWidth(eGui, width);\n width = _getAbsoluteWidth(eGui);\n isPercent = true;\n } else if (this.positioned) {\n width = Math.max(this.minWidth, width);\n const { clientWidth } = this.offsetParent;\n const xPosition = popup ? this.position.x : this.element.getBoundingClientRect().left;\n if (clientWidth && width + xPosition > clientWidth) {\n width = clientWidth - xPosition;\n }\n }\n if (this.getWidth() === width) {\n return;\n }\n if (!isPercent) {\n if (this.config.popup) {\n _setFixedWidth(eGui, width);\n } else {\n eGui.style.width = `${width}px`;\n eGui.style.flex = \" unset\";\n this.lastSize.width = typeof width === \"number\" ? width : Number.parseFloat(width);\n }\n } else {\n eGui.style.maxWidth = \"unset\";\n eGui.style.minWidth = \"unset\";\n }\n }\n offsetElement(x = 0, y = 0, postProcessCallback) {\n const { forcePopupParentAsOffsetParent } = this.config;\n const ePopup = forcePopupParentAsOffsetParent ? this.boundaryEl : this.element;\n if (!ePopup) {\n return;\n }\n this.popupSvc?.positionPopup({\n ePopup,\n keepWithinBounds: true,\n skipObserver: this.movable || this.isResizable(),\n updatePosition: () => ({ x, y }),\n postProcessCallback\n });\n this.setPosition(Number.parseFloat(ePopup.style.left), Number.parseFloat(ePopup.style.top));\n }\n constrainSizeToAvailableHeight(constrain) {\n if (!this.config.forcePopupParentAsOffsetParent) {\n return;\n }\n const applyMaxHeightToElement = () => {\n const availableHeight = this.getAvailableHeight();\n this.element.style.setProperty(\"max-height\", `${availableHeight}px`);\n };\n if (constrain && this.popupSvc) {\n this.resizeObserverSubscriber?.();\n this.resizeObserverSubscriber = _observeResize(\n this.beans,\n this.popupSvc?.getPopupParent(),\n applyMaxHeightToElement\n );\n } else {\n this.element.style.removeProperty(\"max-height\");\n if (this.resizeObserverSubscriber) {\n this.resizeObserverSubscriber();\n this.resizeObserverSubscriber = void 0;\n }\n }\n }\n setPosition(x, y) {\n this.position.x = x;\n this.position.y = y;\n }\n updateDragStartPosition(x, y) {\n this.dragStartPosition = { x, y };\n }\n calculateMouseMovement(params) {\n const { e, isLeft, isTop, anywhereWithin, topBuffer } = params;\n const xDiff = e.clientX - this.dragStartPosition.x;\n const yDiff = e.clientY - this.dragStartPosition.y;\n const movementX = this.shouldSkipX(e, !!isLeft, !!anywhereWithin, xDiff) ? 0 : xDiff;\n const movementY = this.shouldSkipY(e, !!isTop, topBuffer, yDiff) ? 0 : yDiff;\n return { movementX, movementY };\n }\n shouldSkipX(e, isLeft, anywhereWithin, diff) {\n const elRect = this.element.getBoundingClientRect();\n const parentRect = this.offsetParent.getBoundingClientRect();\n const boundaryElRect = this.boundaryEl.getBoundingClientRect();\n const xPosition = this.config.popup ? this.position.x : elRect.left;\n let skipX = xPosition <= 0 && parentRect.left >= e.clientX || parentRect.right <= e.clientX && parentRect.right <= boundaryElRect.right;\n if (skipX) {\n return true;\n }\n if (isLeft) {\n skipX = // skip if we are moving to the left and the cursor\n // is positioned to the right of the left side anchor\n diff < 0 && e.clientX > xPosition + parentRect.left || // skip if we are moving to the right and the cursor\n // is positioned to the left of the dialog\n diff > 0 && e.clientX < xPosition + parentRect.left;\n } else if (anywhereWithin) {\n skipX = diff < 0 && e.clientX > boundaryElRect.right || diff > 0 && e.clientX < xPosition + parentRect.left;\n } else {\n skipX = // if the movement is bound to the right side of the dialog\n // we skip if we are moving to the left and the cursor\n // is to the right of the dialog\n diff < 0 && e.clientX > boundaryElRect.right || // or skip if we are moving to the right and the cursor\n // is to the left of the right side anchor\n diff > 0 && e.clientX < boundaryElRect.right;\n }\n return skipX;\n }\n shouldSkipY(e, isTop, topBuffer = 0, diff) {\n const elRect = this.element.getBoundingClientRect();\n const parentRect = this.offsetParent.getBoundingClientRect();\n const boundaryElRect = this.boundaryEl.getBoundingClientRect();\n const yPosition = this.config.popup ? this.position.y : elRect.top;\n let skipY = yPosition <= 0 && parentRect.top >= e.clientY || parentRect.bottom <= e.clientY && parentRect.bottom <= boundaryElRect.bottom;\n if (skipY) {\n return true;\n }\n if (isTop) {\n skipY = // skip if we are moving to towards top and the cursor is\n // below the top anchor + topBuffer\n // note: topBuffer is used when moving the dialog using the title bar\n diff < 0 && e.clientY > yPosition + parentRect.top + topBuffer || // skip if we are moving to the bottom and the cursor is\n // above the top anchor\n diff > 0 && e.clientY < yPosition + parentRect.top;\n } else {\n skipY = // skip if we are moving towards the top and the cursor\n // is below the bottom anchor\n diff < 0 && e.clientY > boundaryElRect.bottom || // skip if we are moving towards the bottom and the cursor\n // is above the bottom anchor\n diff > 0 && e.clientY < boundaryElRect.bottom;\n }\n return skipY;\n }\n createResizeMap() {\n const getElement2 = (ref) => ({\n element: this.element.querySelector(`[data-ref=${ref}Resizer]`)\n });\n this.resizerMap = {\n topLeft: getElement2(\"eTopLeft\"),\n top: getElement2(\"eTop\"),\n topRight: getElement2(\"eTopRight\"),\n right: getElement2(\"eRight\"),\n bottomRight: getElement2(\"eBottomRight\"),\n bottom: getElement2(\"eBottom\"),\n bottomLeft: getElement2(\"eBottomLeft\"),\n left: getElement2(\"eLeft\")\n };\n }\n addResizers() {\n if (this.resizersAdded) {\n return;\n }\n const eGui = this.element;\n if (!eGui) {\n return;\n }\n eGui.appendChild(_createElement(RESIZE_TEMPLATE));\n this.createResizeMap();\n this.resizersAdded = true;\n }\n removeResizers() {\n this.resizerMap = void 0;\n const resizerEl = this.element.querySelector(`.${RESIZE_CONTAINER_STYLE}`);\n resizerEl?.remove();\n this.resizersAdded = false;\n }\n getResizerElement(side) {\n return this.resizerMap[side].element;\n }\n onResizeStart(e, side) {\n this.boundaryEl = this.findBoundaryElement();\n if (!this.positioned) {\n this.initialisePosition();\n }\n this.currentResizer = {\n isTop: !!side.match(/top/i),\n isRight: !!side.match(/right/i),\n isBottom: !!side.match(/bottom/i),\n isLeft: !!side.match(/left/i)\n };\n this.element.classList.add(\"ag-resizing\");\n this.resizerMap[side].element.classList.add(\"ag-active\");\n const { popup, forcePopupParentAsOffsetParent } = this.config;\n if (!popup && !forcePopupParentAsOffsetParent) {\n this.applySizeToSiblings(this.currentResizer.isBottom || this.currentResizer.isTop);\n }\n this.isResizing = true;\n this.updateDragStartPosition(e.clientX, e.clientY);\n }\n getSiblings() {\n const element = this.element;\n const parent = element.parentElement;\n if (!parent) {\n return null;\n }\n return Array.prototype.slice.call(parent.children).filter((el) => !el.classList.contains(\"ag-hidden\"));\n }\n getMinSizeOfSiblings() {\n const siblings = this.getSiblings() || [];\n let height = 0;\n let width = 0;\n for (let i = 0; i < siblings.length; i++) {\n const currentEl = siblings[i];\n const isFlex = !!currentEl.style.flex && currentEl.style.flex !== \"0 0 auto\";\n if (currentEl === this.element) {\n continue;\n }\n let nextHeight = this.minHeight || 0;\n let nextWidth = this.minWidth || 0;\n if (isFlex) {\n const computedStyle = window.getComputedStyle(currentEl);\n if (computedStyle.minHeight) {\n nextHeight = Number.parseInt(computedStyle.minHeight, 10);\n }\n if (computedStyle.minWidth) {\n nextWidth = Number.parseInt(computedStyle.minWidth, 10);\n }\n } else {\n nextHeight = currentEl.offsetHeight;\n nextWidth = currentEl.offsetWidth;\n }\n height += nextHeight;\n width += nextWidth;\n }\n return { height, width };\n }\n applySizeToSiblings(vertical) {\n let containerToFlex = null;\n const siblings = this.getSiblings();\n if (!siblings) {\n return;\n }\n for (let i = 0; i < siblings.length; i++) {\n const el = siblings[i];\n if (el === containerToFlex) {\n continue;\n }\n if (vertical) {\n el.style.height = `${el.offsetHeight}px`;\n } else {\n el.style.width = `${el.offsetWidth}px`;\n }\n el.style.flex = \"0 0 auto\";\n if (el === this.element) {\n containerToFlex = siblings[i + 1];\n }\n }\n if (containerToFlex) {\n containerToFlex.style.removeProperty(\"height\");\n containerToFlex.style.removeProperty(\"min-height\");\n containerToFlex.style.removeProperty(\"max-height\");\n containerToFlex.style.flex = \"1 1 auto\";\n }\n }\n isResizable() {\n return Object.values(this.resizable).some((value) => value);\n }\n onResize(e) {\n if (!this.isResizing || !this.currentResizer) {\n return;\n }\n const { popup, forcePopupParentAsOffsetParent } = this.config;\n const { isTop, isRight, isBottom, isLeft } = this.currentResizer;\n const isHorizontal = isRight || isLeft;\n const isVertical = isBottom || isTop;\n const { movementX, movementY } = this.calculateMouseMovement({ e, isLeft, isTop });\n const xPosition = this.position.x;\n const yPosition = this.position.y;\n let offsetLeft = 0;\n let offsetTop = 0;\n if (isHorizontal && movementX) {\n const direction = isLeft ? -1 : 1;\n const oldWidth = this.getWidth();\n const newWidth = oldWidth + movementX * direction;\n let skipWidth = false;\n if (isLeft) {\n offsetLeft = oldWidth - newWidth;\n if (xPosition + offsetLeft <= 0 || newWidth <= this.minWidth) {\n skipWidth = true;\n offsetLeft = 0;\n }\n }\n if (!skipWidth) {\n this.setWidth(newWidth);\n }\n }\n if (isVertical && movementY) {\n const direction = isTop ? -1 : 1;\n const oldHeight = this.getHeight();\n const newHeight = oldHeight + movementY * direction;\n let skipHeight = false;\n if (isTop) {\n offsetTop = oldHeight - newHeight;\n if (yPosition + offsetTop <= 0 || newHeight <= this.minHeight) {\n skipHeight = true;\n offsetTop = 0;\n }\n } else if (\n // do not let the size of all siblings be higher than the parent container\n !this.config.popup && !this.config.forcePopupParentAsOffsetParent && oldHeight < newHeight && this.getMinSizeOfSiblings().height + newHeight > this.element.parentElement.offsetHeight\n ) {\n skipHeight = true;\n }\n if (!skipHeight) {\n this.setHeight(newHeight);\n }\n }\n this.updateDragStartPosition(e.clientX, e.clientY);\n if ((popup || forcePopupParentAsOffsetParent) && offsetLeft || offsetTop) {\n this.offsetElement(xPosition + offsetLeft, yPosition + offsetTop);\n }\n }\n onResizeEnd(e, side) {\n this.isResizing = false;\n this.currentResizer = null;\n this.boundaryEl = null;\n this.element.classList.remove(\"ag-resizing\");\n this.resizerMap[side].element.classList.remove(\"ag-active\");\n this.dispatchLocalEvent({ type: \"resize\" });\n }\n refreshSize() {\n const eGui = this.element;\n if (this.config.popup) {\n if (!this.config.width) {\n this.setWidth(eGui.offsetWidth);\n }\n if (!this.config.height) {\n this.setHeight(eGui.offsetHeight);\n }\n }\n }\n onMoveStart(e) {\n this.boundaryEl = this.findBoundaryElement();\n if (!this.positioned) {\n this.initialisePosition();\n }\n this.isMoving = true;\n this.element.classList.add(\"ag-moving\");\n this.updateDragStartPosition(e.clientX, e.clientY);\n }\n onMove(e) {\n if (!this.isMoving) {\n return;\n }\n const { x, y } = this.position;\n let topBuffer;\n if (this.config.calculateTopBuffer) {\n topBuffer = this.config.calculateTopBuffer();\n }\n const { movementX, movementY } = this.calculateMouseMovement({\n e,\n isTop: true,\n anywhereWithin: true,\n topBuffer\n });\n this.offsetElement(x + movementX, y + movementY);\n this.updateDragStartPosition(e.clientX, e.clientY);\n }\n onMoveEnd() {\n this.isMoving = false;\n this.boundaryEl = null;\n this.element.classList.remove(\"ag-moving\");\n }\n setOffsetParent() {\n if (this.config.forcePopupParentAsOffsetParent && this.popupSvc) {\n this.offsetParent = this.popupSvc.getPopupParent();\n } else {\n this.offsetParent = this.element.offsetParent;\n }\n }\n findBoundaryElement() {\n let el = this.element;\n while (el) {\n if (window.getComputedStyle(el).position !== \"static\") {\n return el;\n }\n el = el.parentElement;\n }\n return this.element;\n }\n clearResizeListeners() {\n while (this.resizeListeners.length) {\n const params = this.resizeListeners.pop();\n this.dragSvc?.removeDragSource(params);\n }\n }\n destroy() {\n super.destroy();\n if (this.moveElementDragListener) {\n this.dragSvc?.removeDragSource(this.moveElementDragListener);\n }\n this.constrainSizeToAvailableHeight(false);\n this.clearResizeListeners();\n this.removeResizers();\n }\n};\n\n// packages/ag-grid-community/src/utils/gridEvent.ts\nvar AG_GRID_STOP_PROPAGATION = \"__ag_Grid_Stop_Propagation\";\nfunction _stopPropagationForAgGrid(event) {\n event[AG_GRID_STOP_PROPAGATION] = true;\n}\nfunction _isStopPropagationForAgGrid(event) {\n return event[AG_GRID_STOP_PROPAGATION] === true;\n}\n\n// packages/ag-grid-community/src/widgets/managedFocusFeature.ts\nvar FOCUS_MANAGED_CLASS = \"ag-focus-managed\";\nvar ManagedFocusFeature = class extends BeanStub {\n constructor(eFocusable, callbacks = {}) {\n super();\n this.eFocusable = eFocusable;\n this.callbacks = callbacks;\n this.callbacks = {\n shouldStopEventPropagation: () => false,\n onTabKeyDown: (e) => {\n if (e.defaultPrevented) {\n return;\n }\n const nextRoot = _findNextFocusableElement(this.beans, this.eFocusable, false, e.shiftKey);\n if (!nextRoot) {\n return;\n }\n nextRoot.focus();\n e.preventDefault();\n },\n ...callbacks\n };\n }\n postConstruct() {\n const {\n eFocusable,\n callbacks: { onFocusIn, onFocusOut }\n } = this;\n eFocusable.classList.add(FOCUS_MANAGED_CLASS);\n this.addKeyDownListeners(eFocusable);\n if (onFocusIn) {\n this.addManagedElementListeners(eFocusable, { focusin: onFocusIn });\n }\n if (onFocusOut) {\n this.addManagedElementListeners(eFocusable, { focusout: onFocusOut });\n }\n }\n addKeyDownListeners(eGui) {\n this.addManagedElementListeners(eGui, {\n keydown: (e) => {\n if (e.defaultPrevented || _isStopPropagationForAgGrid(e)) {\n return;\n }\n const { callbacks } = this;\n if (callbacks.shouldStopEventPropagation(e)) {\n _stopPropagationForAgGrid(e);\n return;\n }\n if (e.key === KeyCode.TAB) {\n callbacks.onTabKeyDown(e);\n } else if (callbacks.handleKeyDown) {\n callbacks.handleKeyDown(e);\n }\n }\n });\n }\n};\n\n// packages/ag-grid-community/src/filter/provided/providedFilter.ts\nvar ProvidedFilter = class extends Component {\n constructor(filterNameKey, cssIdentifier) {\n super();\n this.filterNameKey = filterNameKey;\n this.cssIdentifier = cssIdentifier;\n this.applyActive = false;\n this.debouncePending = false;\n // subclasses can override this to provide alternative debounce defaults\n this.defaultDebounceMs = 0;\n }\n postConstruct() {\n const element = {\n tag: \"div\",\n cls: `ag-filter-body-wrapper ag-${this.cssIdentifier}-body-wrapper`,\n children: [this.createBodyTemplate()]\n };\n this.setTemplate(element, this.getAgComponents());\n this.createManagedBean(\n new ManagedFocusFeature(this.getFocusableElement(), {\n handleKeyDown: this.handleKeyDown.bind(this)\n })\n );\n this.positionableFeature = this.createBean(\n new PositionableFeature(this.getPositionableElement(), {\n forcePopupParentAsOffsetParent: true\n })\n );\n }\n handleKeyDown(_e) {\n }\n init(legacyParams) {\n const params = legacyParams;\n this.setParams(params);\n this.setModelIntoUi(params.state.model, true).then(() => this.updateUiVisibility());\n }\n refresh(legacyNewParams) {\n const newParams = legacyNewParams;\n const oldParams = this.params;\n this.params = newParams;\n const source = newParams.source;\n if (source === \"colDef\") {\n this.updateParams(newParams, oldParams);\n }\n const newState = newParams.state;\n const oldState = this.state;\n this.state = newState;\n if (newState.model !== oldState.model || newState.state !== oldState.state) {\n this.setModelIntoUi(newState.model);\n }\n return true;\n }\n /** Called on init only. Override in subclasses */\n setParams(params) {\n this.params = params;\n this.state = params.state;\n this.commonUpdateParams(params);\n }\n /** Called on refresh only. Override in subclasses */\n updateParams(newParams, oldParams) {\n this.commonUpdateParams(newParams, oldParams);\n }\n commonUpdateParams(newParams, _oldParams) {\n this.applyActive = _isUseApplyButton(newParams);\n this.setupApplyDebounced();\n }\n /**\n * @deprecated v34 Use the same method on the filter handler (`api.getColumnFilterHandler()`) instead.\n */\n doesFilterPass(params) {\n _warn(283);\n const { getHandler, model, column } = this.params;\n return getHandler().doesFilterPass({\n ...params,\n model,\n handlerParams: this.beans.colFilter.getHandlerParams(column)\n });\n }\n getFilterTitle() {\n return this.translate(this.filterNameKey);\n }\n /**\n * @deprecated v34 Filters are active when they have a model. Use `api.getColumnFilterModel()` instead.\n */\n isFilterActive() {\n _warn(284);\n return this.params.model != null;\n }\n setupApplyDebounced() {\n const debounceMs = getDebounceMs(this.params, this.defaultDebounceMs);\n const debounceFunc = _debounce(this, this.checkApplyDebounce.bind(this), debounceMs);\n this.applyDebounced = () => {\n this.debouncePending = true;\n debounceFunc();\n };\n }\n checkApplyDebounce() {\n if (this.debouncePending) {\n this.debouncePending = false;\n this.doApplyModel();\n }\n }\n /**\n * @deprecated v34 Use (`api.getColumnFilterModel()`) instead.\n */\n getModel() {\n _warn(285);\n return this.params.model;\n }\n /**\n * @deprecated v34 Use (`api.setColumnFilterModel()`) instead.\n */\n setModel(model) {\n _warn(286);\n const { beans, params } = this;\n return beans.colFilter.setModelForColumnLegacy(params.column, model);\n }\n /**\n * Applies changes made in the UI to the filter, and returns true if the model has changed.\n */\n applyModel(_source = \"api\") {\n return this.doApplyModel();\n }\n canApply(_model) {\n return true;\n }\n doApplyModel(additionalEventAttributes) {\n const { params, state } = this;\n const changed = !this.areModelsEqual(params.model, state.model);\n if (changed) {\n params.onAction(\"apply\", additionalEventAttributes);\n }\n return changed;\n }\n /**\n * @deprecated v34 Internal method - should only be called by the grid.\n */\n onNewRowsLoaded() {\n }\n /**\n * By default, if the change came from a floating filter it will be applied immediately, otherwise if there is no\n * apply button it will be applied after a debounce, otherwise it will not be applied at all. This behaviour can\n * be adjusted by using the apply parameter.\n */\n onUiChanged(apply, afterFloatingFilter = false) {\n this.updateUiVisibility();\n const model = this.getModelFromUi();\n const state = {\n model,\n state: this.getState(),\n valid: this.canApply(model)\n };\n this.state = state;\n const params = this.params;\n params.onStateChange(state);\n params.onUiChange(this.getUiChangeEventParams());\n if (!this.gos.get(\"enableFilterHandlers\")) {\n this.eventSvc.dispatchEvent({\n type: \"filterModified\",\n column: params.column,\n filterInstance: this\n });\n }\n apply ?? (apply = this.applyActive ? void 0 : \"debounce\");\n if (apply === \"immediately\") {\n this.doApplyModel({ afterFloatingFilter, afterDataChange: false });\n } else if (apply === \"debounce\") {\n this.applyDebounced();\n }\n }\n getState() {\n return void 0;\n }\n getUiChangeEventParams() {\n return void 0;\n }\n afterGuiAttached(params) {\n this.lastContainerType = params?.container;\n this.refreshFilterResizer(params?.container);\n }\n refreshFilterResizer(containerType) {\n const { positionableFeature, gos } = this;\n if (!positionableFeature) {\n return;\n }\n const isResizable = containerType === \"floatingFilter\" || containerType === \"columnFilter\";\n if (isResizable) {\n positionableFeature.restoreLastSize();\n positionableFeature.setResizable(\n gos.get(\"enableRtl\") ? { bottom: true, bottomLeft: true, left: true } : { bottom: true, bottomRight: true, right: true }\n );\n } else {\n positionableFeature.removeSizeFromEl();\n positionableFeature.setResizable(false);\n }\n positionableFeature.constrainSizeToAvailableHeight(isResizable);\n }\n afterGuiDetached() {\n this.checkApplyDebounce();\n this.positionableFeature?.constrainSizeToAvailableHeight(false);\n }\n destroy() {\n this.positionableFeature = this.destroyBean(this.positionableFeature);\n super.destroy();\n }\n translate(key) {\n return translateForFilter(this, key);\n }\n // override to control positionable feature\n getPositionableElement() {\n return this.getGui();\n }\n areModelsEqual(a, b) {\n if (a === b || a == null && b == null) {\n return true;\n }\n if (a == null || b == null) {\n return false;\n }\n return this.areNonNullModelsEqual(a, b);\n }\n};\n\n// packages/ag-grid-community/src/filter/provided/iSimpleFilter.ts\nfunction isCombinedFilterModel(model) {\n return !!model.operator;\n}\n\n// packages/ag-grid-community/src/filter/floating/floatingFilterMapper.ts\nfunction _getDefaultFloatingFilterType(frameworkOverrides, def, getFromDefault) {\n if (def == null) {\n return null;\n }\n let defaultFloatingFilterType = null;\n const { compName, jsComp, fwComp } = _getFilterCompKeys(frameworkOverrides, def);\n if (compName) {\n const floatingFilterTypeMap = {\n agSetColumnFilter: \"agSetColumnFloatingFilter\",\n agMultiColumnFilter: \"agMultiColumnFloatingFilter\",\n agGroupColumnFilter: \"agGroupColumnFloatingFilter\",\n agNumberColumnFilter: \"agNumberColumnFloatingFilter\",\n agDateColumnFilter: \"agDateColumnFloatingFilter\",\n agTextColumnFilter: \"agTextColumnFloatingFilter\"\n };\n defaultFloatingFilterType = floatingFilterTypeMap[compName];\n } else {\n const usingDefaultFilter = jsComp == null && fwComp == null && def.filter === true;\n if (usingDefaultFilter) {\n defaultFloatingFilterType = getFromDefault();\n }\n }\n return defaultFloatingFilterType;\n}\n\n// packages/ag-grid-community/src/interfaces/structuredSchemaParams.ts\nvar STRUCTURED_SCHEMA_FEATURES = [\n \"aggregation\",\n \"filter\",\n \"sort\",\n \"pivot\",\n \"columnVisibility\",\n \"columnSizing\",\n \"rowGroup\"\n];\n\n// packages/ag-grid-community/src/styling/layoutFeature.ts\nvar LayoutCssClasses = {\n AUTO_HEIGHT: \"ag-layout-auto-height\",\n NORMAL: \"ag-layout-normal\",\n PRINT: \"ag-layout-print\"\n};\nvar LayoutFeature = class extends BeanStub {\n constructor(view) {\n super();\n this.view = view;\n }\n postConstruct() {\n this.addManagedPropertyListener(\"domLayout\", this.updateLayoutClasses.bind(this));\n this.updateLayoutClasses();\n }\n updateLayoutClasses() {\n const domLayout = this.gos.get(\"domLayout\");\n const params = {\n autoHeight: domLayout === \"autoHeight\",\n normal: domLayout === \"normal\",\n print: domLayout === \"print\"\n };\n const cssClass = params.autoHeight ? LayoutCssClasses.AUTO_HEIGHT : params.print ? LayoutCssClasses.PRINT : LayoutCssClasses.NORMAL;\n this.view.updateLayoutClasses(cssClass, params);\n }\n};\n\n// packages/ag-grid-community/src/gridBodyComp/gridBodyScrollFeature.ts\nvar VIEWPORT = \"Viewport\";\nvar FAKE_V_SCROLLBAR = \"fakeVScrollComp\";\nvar HORIZONTAL_SOURCES = [\n \"fakeHScrollComp\",\n \"centerHeader\",\n \"topCenter\",\n \"bottomCenter\",\n \"stickyTopCenter\",\n \"stickyBottomCenter\"\n];\nvar SCROLL_DEBOUNCE_TIMEOUT = 100;\nvar SCROLL_END_TIMEOUT = 150;\nvar GridBodyScrollFeature = class extends BeanStub {\n constructor(eBodyViewport) {\n super();\n // listeners for when ensureIndexVisible is waiting for SSRM data to load\n this.clearRetryListenerFncs = [];\n this.lastScrollSource = [null, null];\n this.scrollLeft = -1;\n this.nextScrollTop = -1;\n this.scrollTop = -1;\n // Used to provide approximate values of scrollTop and offsetHeight\n // without forcing the browser to recalculate styles.\n this.lastOffsetHeight = -1;\n this.lastScrollTop = -1;\n this.lastIsHorizontalScrollShowing = false;\n this.scrollTimer = 0;\n this.isScrollActive = false;\n this.isVerticalPositionInvalidated = true;\n this.isHorizontalPositionInvalidated = true;\n this.eBodyViewport = eBodyViewport;\n this.resetLastHScrollDebounced = _debounce(\n this,\n () => this.lastScrollSource[1 /* Horizontal */] = null,\n SCROLL_END_TIMEOUT\n );\n this.resetLastVScrollDebounced = _debounce(\n this,\n () => this.lastScrollSource[0 /* Vertical */] = null,\n SCROLL_END_TIMEOUT\n );\n }\n wireBeans(beans) {\n this.ctrlsSvc = beans.ctrlsSvc;\n this.animationFrameSvc = beans.animationFrameSvc;\n this.visibleCols = beans.visibleCols;\n }\n destroy() {\n super.destroy();\n this.clearRetryListenerFncs = [];\n window.clearTimeout(this.scrollTimer);\n }\n postConstruct() {\n this.enableRtl = this.gos.get(\"enableRtl\");\n const invalidateVerticalScroll = this.invalidateVerticalScroll.bind(this);\n const invalidateHorizontalScroll = this.invalidateHorizontalScroll.bind(this);\n this.addManagedEventListeners({\n displayedColumnsWidthChanged: this.onDisplayedColumnsWidthChanged.bind(this),\n bodyHeightChanged: invalidateVerticalScroll,\n // We only invalidate horizontal scrolling when the viewport switches\n // between scrollable and non-scrollable, avoiding unnecessary\n // invalidation on every gridSizeChanged event. If more properties\n // require invalidation, read/write DOM cycles may be needed.\n scrollGapChanged: invalidateHorizontalScroll\n });\n this.addManagedElementListeners(this.eBodyViewport, {\n scroll: invalidateVerticalScroll\n });\n this.ctrlsSvc.whenReady(this, (p) => {\n this.centerRowsCtrl = p.center;\n this.onDisplayedColumnsWidthChanged();\n this.addScrollListener();\n });\n }\n invalidateHorizontalScroll() {\n this.isHorizontalPositionInvalidated = true;\n }\n invalidateVerticalScroll() {\n this.isVerticalPositionInvalidated = true;\n }\n addScrollListener() {\n this.addHorizontalScrollListeners();\n this.addVerticalScrollListeners();\n }\n addHorizontalScrollListeners() {\n this.addManagedElementListeners(this.centerRowsCtrl.eViewport, {\n scroll: this.onHScroll.bind(this, VIEWPORT)\n });\n for (const source of HORIZONTAL_SOURCES) {\n const scrollPartner = this.ctrlsSvc.get(source);\n this.registerScrollPartner(scrollPartner, this.onHScroll.bind(this, source));\n }\n }\n addVerticalScrollListeners() {\n const fakeVScrollComp = this.ctrlsSvc.get(\"fakeVScrollComp\");\n const isDebounce = this.gos.get(\"debounceVerticalScrollbar\");\n const onVScroll = isDebounce ? _debounce(this, this.onVScroll.bind(this, VIEWPORT), SCROLL_DEBOUNCE_TIMEOUT) : this.onVScroll.bind(this, VIEWPORT);\n const onFakeVScroll = isDebounce ? _debounce(this, this.onVScroll.bind(this, FAKE_V_SCROLLBAR), SCROLL_DEBOUNCE_TIMEOUT) : this.onVScroll.bind(this, FAKE_V_SCROLLBAR);\n this.addManagedElementListeners(this.eBodyViewport, { scroll: onVScroll });\n this.registerScrollPartner(fakeVScrollComp, onFakeVScroll);\n }\n registerScrollPartner(comp, callback) {\n comp.onScrollCallback(callback);\n }\n onDisplayedColumnsWidthChanged() {\n if (this.enableRtl) {\n this.horizontallyScrollHeaderCenterAndFloatingCenter();\n }\n }\n horizontallyScrollHeaderCenterAndFloatingCenter(scrollLeft) {\n const notYetInitialised = this.centerRowsCtrl == null;\n if (notYetInitialised) {\n return;\n }\n if (scrollLeft === void 0) {\n scrollLeft = this.centerRowsCtrl.getCenterViewportScrollLeft();\n }\n this.setScrollLeftForAllContainersExceptCurrent(Math.abs(scrollLeft));\n }\n setScrollLeftForAllContainersExceptCurrent(scrollLeft) {\n for (const container of [...HORIZONTAL_SOURCES, VIEWPORT]) {\n if (this.lastScrollSource[1 /* Horizontal */] === container) {\n continue;\n }\n const viewport = this.getViewportForSource(container);\n _setScrollLeft(viewport, scrollLeft, this.enableRtl);\n }\n }\n getViewportForSource(source) {\n if (source === VIEWPORT) {\n return this.centerRowsCtrl.eViewport;\n }\n return this.ctrlsSvc.get(source).eViewport;\n }\n isControllingScroll(source, direction) {\n if (this.lastScrollSource[direction] == null) {\n if (direction === 0 /* Vertical */) {\n this.lastScrollSource[0] = source;\n } else {\n this.lastScrollSource[1] = source;\n }\n return true;\n }\n return this.lastScrollSource[direction] === source;\n }\n onHScroll(source) {\n if (!this.isControllingScroll(source, 1 /* Horizontal */)) {\n return;\n }\n const centerContainerViewport = this.centerRowsCtrl.eViewport;\n const { scrollLeft } = centerContainerViewport;\n if (this.shouldBlockScrollUpdate(1 /* Horizontal */, scrollLeft, true)) {\n return;\n }\n const newScrollLeft = _getScrollLeft(this.getViewportForSource(source), this.enableRtl);\n this.doHorizontalScroll(newScrollLeft);\n this.resetLastHScrollDebounced();\n }\n onVScroll(source) {\n if (!this.isControllingScroll(source, 0 /* Vertical */)) {\n return;\n }\n let scrollTop;\n if (source === VIEWPORT) {\n scrollTop = this.eBodyViewport.scrollTop;\n } else {\n scrollTop = this.ctrlsSvc.get(\"fakeVScrollComp\").getScrollPosition();\n }\n if (this.shouldBlockScrollUpdate(0 /* Vertical */, scrollTop, true)) {\n return;\n }\n const { animationFrameSvc } = this;\n animationFrameSvc?.setScrollTop(scrollTop);\n this.nextScrollTop = scrollTop;\n if (source === VIEWPORT) {\n this.ctrlsSvc.get(\"fakeVScrollComp\").setScrollPosition(scrollTop);\n } else {\n this.eBodyViewport.scrollTop = scrollTop;\n }\n if (animationFrameSvc?.active) {\n animationFrameSvc.schedule();\n } else {\n this.scrollGridIfNeeded(true);\n }\n this.resetLastVScrollDebounced();\n }\n doHorizontalScroll(scrollLeft) {\n const fakeScrollLeft = this.ctrlsSvc.get(\"fakeHScrollComp\").getScrollPosition();\n if (this.scrollLeft === scrollLeft && scrollLeft === fakeScrollLeft) {\n return;\n }\n this.scrollLeft = scrollLeft;\n this.fireScrollEvent(1 /* Horizontal */);\n this.horizontallyScrollHeaderCenterAndFloatingCenter(scrollLeft);\n this.centerRowsCtrl.onHorizontalViewportChanged(true);\n }\n isScrolling() {\n return this.isScrollActive;\n }\n fireScrollEvent(direction) {\n const bodyScrollEvent = {\n type: \"bodyScroll\",\n direction: direction === 1 /* Horizontal */ ? \"horizontal\" : \"vertical\",\n left: this.scrollLeft,\n top: this.scrollTop\n };\n this.isScrollActive = true;\n this.eventSvc.dispatchEvent(bodyScrollEvent);\n window.clearTimeout(this.scrollTimer);\n this.scrollTimer = window.setTimeout(() => {\n this.scrollTimer = 0;\n this.isScrollActive = false;\n this.eventSvc.dispatchEvent({\n ...bodyScrollEvent,\n type: \"bodyScrollEnd\"\n });\n }, SCROLL_END_TIMEOUT);\n }\n shouldBlockScrollUpdate(direction, scrollTo, touchOnly = false) {\n if (touchOnly && !_isIOSUserAgent()) {\n return false;\n }\n if (direction === 0 /* Vertical */) {\n return this.shouldBlockVerticalScroll(scrollTo);\n }\n return this.shouldBlockHorizontalScroll(scrollTo);\n }\n shouldBlockVerticalScroll(scrollTo) {\n const clientHeight = _getInnerHeight(this.eBodyViewport);\n const { scrollHeight } = this.eBodyViewport;\n return !!(scrollTo < 0 || scrollTo + clientHeight > scrollHeight);\n }\n shouldBlockHorizontalScroll(scrollTo) {\n const clientWidth = this.centerRowsCtrl.getCenterWidth();\n const { scrollWidth } = this.centerRowsCtrl.eViewport;\n if (this.enableRtl) {\n if (scrollTo > 0) {\n return true;\n }\n } else if (scrollTo < 0) {\n return true;\n }\n return Math.abs(scrollTo) + clientWidth > scrollWidth;\n }\n redrawRowsAfterScroll() {\n this.fireScrollEvent(0 /* Vertical */);\n }\n // this is to cater for AG-3274, where grid is removed from the dom and then inserted back in again.\n // (which happens with some implementations of tabbing). this can result in horizontal scroll getting\n // reset back to the left, however no scroll event is fired. so we need to get header to also scroll\n // back to the left to be kept in sync.\n // adding and removing the grid from the DOM both resets the scroll position and\n // triggers a resize event, so notify listeners if the scroll position has changed\n checkScrollLeft() {\n const scrollLeft = this.scrollLeft;\n let hasHorizontalScrollersOutOfSync = false;\n for (const source of HORIZONTAL_SOURCES) {\n const viewport = this.getViewportForSource(source);\n if (viewport.scrollLeft !== scrollLeft) {\n hasHorizontalScrollersOutOfSync = true;\n break;\n }\n }\n if (hasHorizontalScrollersOutOfSync) {\n this.onHScroll(VIEWPORT);\n }\n }\n scrollGridIfNeeded(suppressedAnimationFrame = false) {\n const frameNeeded = this.scrollTop != this.nextScrollTop;\n if (frameNeeded) {\n this.scrollTop = this.nextScrollTop;\n if (suppressedAnimationFrame) {\n this.invalidateVerticalScroll();\n }\n this.redrawRowsAfterScroll();\n }\n return frameNeeded;\n }\n // called by scrollHorizontally method and alignedGridsService\n setHorizontalScrollPosition(hScrollPosition, fromAlignedGridsService = false) {\n const minScrollLeft = 0;\n const maxScrollLeft = this.centerRowsCtrl.eViewport.scrollWidth - this.centerRowsCtrl.getCenterWidth();\n if (!fromAlignedGridsService && this.shouldBlockScrollUpdate(1 /* Horizontal */, hScrollPosition)) {\n if (this.enableRtl) {\n hScrollPosition = hScrollPosition > 0 ? 0 : maxScrollLeft;\n } else {\n hScrollPosition = Math.min(Math.max(hScrollPosition, minScrollLeft), maxScrollLeft);\n }\n }\n _setScrollLeft(this.centerRowsCtrl.eViewport, Math.abs(hScrollPosition), this.enableRtl);\n this.doHorizontalScroll(hScrollPosition);\n }\n setVerticalScrollPosition(vScrollPosition) {\n this.invalidateVerticalScroll();\n this.eBodyViewport.scrollTop = vScrollPosition;\n }\n getVScrollPosition() {\n if (!this.isVerticalPositionInvalidated) {\n const { lastOffsetHeight, lastScrollTop } = this;\n return {\n top: lastScrollTop,\n bottom: lastScrollTop + lastOffsetHeight\n };\n }\n this.isVerticalPositionInvalidated = false;\n const { scrollTop, offsetHeight } = this.eBodyViewport;\n this.lastScrollTop = scrollTop;\n this.lastOffsetHeight = offsetHeight;\n return {\n top: scrollTop,\n bottom: scrollTop + offsetHeight\n };\n }\n /** Get an approximate scroll position that returns the last real value read.\n * This is useful for avoiding repeated DOM reads that force the browser to recalculate styles.\n * This can have big performance improvements but may not be 100% accurate so only use if this is acceptable.\n */\n getApproximateVScollPosition() {\n if (this.lastScrollTop >= 0 && this.lastOffsetHeight >= 0) {\n return {\n top: this.scrollTop,\n bottom: this.scrollTop + this.lastOffsetHeight\n };\n }\n return this.getVScrollPosition();\n }\n getHScrollPosition() {\n return this.centerRowsCtrl.getHScrollPosition();\n }\n isHorizontalScrollShowing() {\n if (this.isHorizontalPositionInvalidated) {\n this.lastIsHorizontalScrollShowing = this.centerRowsCtrl.isHorizontalScrollShowing();\n this.isHorizontalPositionInvalidated = false;\n }\n return this.lastIsHorizontalScrollShowing;\n }\n // called by the headerRootComp and moveColumnController\n scrollHorizontally(pixels) {\n const oldScrollPosition = this.centerRowsCtrl.eViewport.scrollLeft;\n this.setHorizontalScrollPosition(oldScrollPosition + pixels);\n return this.centerRowsCtrl.eViewport.scrollLeft - oldScrollPosition;\n }\n // gets called by rowRenderer when new data loaded, as it will want to scroll to the top\n scrollToTop() {\n this.eBodyViewport.scrollTop = 0;\n }\n // Valid values for position are bottom, middle and top\n ensureNodeVisible(comparator, position = null) {\n const { rowModel } = this.beans;\n const rowCount = rowModel.getRowCount();\n let indexToSelect = -1;\n for (let i = 0; i < rowCount; i++) {\n const node = rowModel.getRow(i);\n if (typeof comparator === \"function\") {\n const predicate = comparator;\n if (node && predicate(node)) {\n indexToSelect = i;\n break;\n }\n } else if (comparator === node || comparator === node.data) {\n indexToSelect = i;\n break;\n }\n }\n if (indexToSelect >= 0) {\n this.ensureIndexVisible(indexToSelect, position);\n }\n }\n // Valid values for position are bottom, middle and top\n // position should be {'top','middle','bottom', or undefined/null}.\n // if undefined/null, then the grid will to the minimal amount of scrolling,\n // eg if grid needs to scroll up, it scrolls until row is on top,\n // if grid needs to scroll down, it scrolls until row is on bottom,\n // if row is already in view, grid does not scroll\n ensureIndexVisible(index, position, retry = 0) {\n if (_isDomLayout(this.gos, \"print\")) {\n return;\n }\n const { rowModel } = this.beans;\n const rowCount = rowModel.getRowCount();\n if (typeof index !== \"number\" || index < 0 || index >= rowCount) {\n _warn(88, { index });\n return;\n }\n this.clearRetryListeners();\n const { frameworkOverrides, pageBounds, rowContainerHeight: heightScaler, rowRenderer } = this.beans;\n frameworkOverrides.wrapIncoming(() => {\n const gridBodyCtrl = this.ctrlsSvc.getGridBodyCtrl();\n const rowNode = rowModel.getRow(index);\n let rowGotShiftedDuringOperation;\n let stickyHeightsChanged;\n let attempt = 0;\n this.invalidateVerticalScroll();\n do {\n const { stickyTopHeight, stickyBottomHeight } = gridBodyCtrl;\n const startingRowTop = rowNode.rowTop;\n const startingRowHeight = rowNode.rowHeight;\n const paginationOffset = pageBounds.getPixelOffset();\n const rowTopPixel = rowNode.rowTop - paginationOffset;\n const rowBottomPixel = rowTopPixel + rowNode.rowHeight;\n const scrollPosition = this.getVScrollPosition();\n const heightOffset = heightScaler.divStretchOffset;\n const vScrollTop = scrollPosition.top + heightOffset;\n const vScrollBottom = scrollPosition.bottom + heightOffset;\n const viewportHeight = vScrollBottom - vScrollTop;\n const pxTop = heightScaler.getScrollPositionForPixel(rowTopPixel);\n const pxBottom = heightScaler.getScrollPositionForPixel(rowBottomPixel - viewportHeight);\n const pxMiddle = Math.min((pxTop + pxBottom) / 2, rowTopPixel);\n const rowAboveViewport = vScrollTop + stickyTopHeight > rowTopPixel;\n const rowBelowViewport = vScrollBottom - stickyBottomHeight < rowBottomPixel;\n let newScrollPosition = null;\n if (position === \"top\") {\n newScrollPosition = pxTop - stickyTopHeight;\n } else if (position === \"bottom\") {\n newScrollPosition = pxBottom + stickyBottomHeight;\n } else if (position === \"middle\") {\n newScrollPosition = pxMiddle;\n } else if (rowAboveViewport) {\n newScrollPosition = pxTop - stickyTopHeight;\n } else if (rowBelowViewport) {\n if (pxBottom - pxTop > viewportHeight) {\n newScrollPosition = pxTop - stickyTopHeight;\n } else {\n newScrollPosition = pxBottom + stickyBottomHeight;\n }\n }\n if (newScrollPosition !== null) {\n this.setVerticalScrollPosition(newScrollPosition);\n rowRenderer.redraw({ afterScroll: true });\n }\n rowGotShiftedDuringOperation = startingRowTop !== rowNode.rowTop || startingRowHeight !== rowNode.rowHeight;\n stickyHeightsChanged = stickyTopHeight !== gridBodyCtrl.stickyTopHeight || stickyBottomHeight !== gridBodyCtrl.stickyBottomHeight;\n attempt++;\n } while ((rowGotShiftedDuringOperation || stickyHeightsChanged) && attempt < 10);\n this.animationFrameSvc?.flushAllFrames();\n if (retry < 10 && (rowNode?.stub || !this.beans.rowAutoHeight?.areRowsMeasured())) {\n const scrollTop = this.getVScrollPosition().top;\n this.clearRetryListenerFncs = this.addManagedEventListeners({\n bodyScroll: () => {\n const newScrollTop = this.getVScrollPosition().top;\n if (scrollTop === newScrollTop) {\n return;\n }\n this.clearRetryListeners();\n },\n modelUpdated: () => {\n this.clearRetryListeners();\n if (index >= rowModel.getRowCount()) {\n return;\n }\n this.ensureIndexVisible(index, position, retry + 1);\n }\n });\n }\n });\n }\n clearRetryListeners() {\n for (const callback of this.clearRetryListenerFncs) {\n callback();\n }\n this.clearRetryListenerFncs = [];\n }\n ensureColumnVisible(key, position = \"auto\") {\n const { colModel, frameworkOverrides } = this.beans;\n const column = colModel.getCol(key);\n if (!column) {\n return;\n }\n if (column.isPinned()) {\n return;\n }\n if (!this.visibleCols.isColDisplayed(column)) {\n return;\n }\n const newHorizontalScroll = this.getPositionedHorizontalScroll(column, position);\n frameworkOverrides.wrapIncoming(() => {\n if (newHorizontalScroll !== null) {\n this.centerRowsCtrl.setCenterViewportScrollLeft(newHorizontalScroll);\n }\n this.centerRowsCtrl.onHorizontalViewportChanged();\n this.animationFrameSvc?.flushAllFrames();\n });\n }\n getPositionedHorizontalScroll(column, position) {\n const { columnBeforeStart, columnAfterEnd } = this.isColumnOutsideViewport(column);\n const viewportTooSmallForColumn = this.centerRowsCtrl.getCenterWidth() < column.getActualWidth();\n const viewportWidth = this.centerRowsCtrl.getCenterWidth();\n const isRtl = this.enableRtl;\n let alignColToStart = (isRtl ? columnBeforeStart : columnAfterEnd) || viewportTooSmallForColumn;\n let alignColToEnd = isRtl ? columnAfterEnd : columnBeforeStart;\n if (position !== \"auto\") {\n alignColToStart = position === \"start\";\n alignColToEnd = position === \"end\";\n }\n const isMiddle = position === \"middle\";\n if (alignColToStart || alignColToEnd || isMiddle) {\n const { colLeft, colMiddle, colRight } = this.getColumnBounds(column);\n if (isMiddle) {\n return colMiddle - viewportWidth / 2;\n }\n if (alignColToStart) {\n return isRtl ? colRight : colLeft;\n }\n return isRtl ? colLeft - viewportWidth : colRight - viewportWidth;\n }\n return null;\n }\n isColumnOutsideViewport(column) {\n const { start: viewportStart, end: viewportEnd } = this.getViewportBounds();\n const { colLeft, colRight } = this.getColumnBounds(column);\n const isRtl = this.enableRtl;\n const columnBeforeStart = isRtl ? viewportStart > colRight : viewportEnd < colRight;\n const columnAfterEnd = isRtl ? viewportEnd < colLeft : viewportStart > colLeft;\n return { columnBeforeStart, columnAfterEnd };\n }\n getColumnBounds(column) {\n const isRtl = this.enableRtl;\n const bodyWidth = this.visibleCols.bodyWidth;\n const colWidth = column.getActualWidth();\n const colLeft = column.getLeft();\n const multiplier = isRtl ? -1 : 1;\n const colLeftPixel = isRtl ? bodyWidth - colLeft : colLeft;\n const colRightPixel = colLeftPixel + colWidth * multiplier;\n const colMidPixel = colLeftPixel + colWidth / 2 * multiplier;\n return { colLeft: colLeftPixel, colMiddle: colMidPixel, colRight: colRightPixel };\n }\n getViewportBounds() {\n const viewportWidth = this.centerRowsCtrl.getCenterWidth();\n const scrollPosition = this.centerRowsCtrl.getCenterViewportScrollLeft();\n const viewportStartPixel = scrollPosition;\n const viewportEndPixel = viewportWidth + scrollPosition;\n return { start: viewportStartPixel, end: viewportEndPixel, width: viewportWidth };\n }\n};\n\n// packages/ag-grid-community/src/gridBodyComp/centerWidthFeature.ts\nvar CenterWidthFeature = class extends BeanStub {\n constructor(callback, addSpacer = false) {\n super();\n this.callback = callback;\n this.addSpacer = addSpacer;\n }\n postConstruct() {\n const listener = this.setWidth.bind(this);\n this.addManagedPropertyListener(\"domLayout\", listener);\n this.addManagedEventListeners({\n columnContainerWidthChanged: listener,\n displayedColumnsChanged: listener,\n leftPinnedWidthChanged: listener\n });\n if (this.addSpacer) {\n this.addManagedEventListeners({\n rightPinnedWidthChanged: listener,\n scrollVisibilityChanged: listener,\n scrollbarWidthChanged: listener\n });\n }\n this.setWidth();\n }\n setWidth() {\n const printLayout = _isDomLayout(this.gos, \"print\");\n const { visibleCols, scrollVisibleSvc } = this.beans;\n const centerWidth = visibleCols.bodyWidth;\n const leftWidth = visibleCols.getColsLeftWidth();\n const rightWidth = visibleCols.getDisplayedColumnsRightWidth();\n let totalWidth;\n if (printLayout) {\n totalWidth = centerWidth + leftWidth + rightWidth;\n } else {\n totalWidth = centerWidth;\n if (this.addSpacer) {\n const relevantWidth = this.gos.get(\"enableRtl\") ? leftWidth : rightWidth;\n if (relevantWidth === 0 && scrollVisibleSvc.verticalScrollShowing) {\n totalWidth += scrollVisibleSvc.getScrollbarWidth();\n }\n }\n }\n this.callback(totalWidth);\n }\n};\n\n// packages/ag-grid-community/src/gridBodyComp/viewportSizeFeature.ts\nvar ViewportSizeFeature = class extends BeanStub {\n constructor(centerContainerCtrl) {\n super();\n this.centerContainerCtrl = centerContainerCtrl;\n }\n wireBeans(beans) {\n this.scrollVisibleSvc = beans.scrollVisibleSvc;\n }\n postConstruct() {\n this.beans.ctrlsSvc.whenReady(this, (p) => {\n this.gridBodyCtrl = p.gridBodyCtrl;\n this.listenForResize();\n });\n this.addManagedEventListeners({ scrollbarWidthChanged: this.onScrollbarWidthChanged.bind(this) });\n this.addManagedPropertyListeners([\"alwaysShowHorizontalScroll\", \"alwaysShowVerticalScroll\"], () => {\n this.checkViewportAndScrolls();\n });\n }\n listenForResize() {\n const { beans, centerContainerCtrl, gridBodyCtrl } = this;\n const listener = () => {\n _requestAnimationFrame(beans, () => {\n this.onCenterViewportResized();\n });\n };\n centerContainerCtrl.registerViewportResizeListener(listener);\n gridBodyCtrl.registerBodyViewportResizeListener(listener);\n }\n onScrollbarWidthChanged() {\n this.checkViewportAndScrolls();\n }\n onCenterViewportResized() {\n this.scrollVisibleSvc.updateScrollGap();\n if (this.centerContainerCtrl.isViewportInTheDOMTree()) {\n const { pinnedCols, colFlex } = this.beans;\n pinnedCols?.keepPinnedColumnsNarrowerThanViewport();\n this.checkViewportAndScrolls();\n const newWidth = this.centerContainerCtrl.getCenterWidth();\n if (newWidth !== this.centerWidth) {\n this.centerWidth = newWidth;\n colFlex?.refreshFlexedColumns({\n viewportWidth: this.centerWidth,\n updateBodyWidths: true,\n fireResizedEvent: true\n });\n }\n } else {\n this.bodyHeight = 0;\n }\n }\n // gets called every time the viewport size changes. we use this to check visibility of scrollbars\n // in the grid panel, and also to check size and position of viewport for row and column virtualisation.\n checkViewportAndScrolls() {\n this.updateScrollVisibleService();\n this.checkBodyHeight();\n this.onHorizontalViewportChanged();\n this.gridBodyCtrl.scrollFeature.checkScrollLeft();\n }\n getBodyHeight() {\n return this.bodyHeight;\n }\n checkBodyHeight() {\n const eBodyViewport = this.gridBodyCtrl.eBodyViewport;\n const bodyHeight = _getInnerHeight(eBodyViewport);\n if (this.bodyHeight !== bodyHeight) {\n this.bodyHeight = bodyHeight;\n this.eventSvc.dispatchEvent({\n type: \"bodyHeightChanged\"\n });\n }\n }\n updateScrollVisibleService() {\n this.updateScrollVisibleServiceImpl();\n setTimeout(this.updateScrollVisibleServiceImpl.bind(this), 500);\n }\n updateScrollVisibleServiceImpl() {\n if (!this.isAlive()) {\n return;\n }\n const params = {\n horizontalScrollShowing: this.centerContainerCtrl.isHorizontalScrollShowing(),\n verticalScrollShowing: this.gridBodyCtrl.isVerticalScrollShowing()\n };\n this.scrollVisibleSvc.setScrollsVisible(params);\n }\n // this gets called whenever a change in the viewport, so we can inform column controller it has to work\n // out the virtual columns again. gets called from following locations:\n // + ensureColVisible, scroll, init, layoutChanged, displayedColumnsChanged\n onHorizontalViewportChanged() {\n const scrollWidth = this.centerContainerCtrl.getCenterWidth();\n const scrollPosition = this.centerContainerCtrl.getViewportScrollLeft();\n this.beans.colViewport.setScrollPosition(scrollWidth, scrollPosition);\n }\n};\n\n// packages/ag-grid-community/src/rendering/renderUtils.ts\nfunction _suppressCellMouseEvent(gos, column, node, event) {\n const suppressMouseEventHandling = column.getColDef().cellRendererParams?.suppressMouseEventHandling;\n return suppressMouseEvent(gos, column, node, event, suppressMouseEventHandling);\n}\nfunction _suppressFullWidthMouseEvent(gos, cellRendererParams, node, event) {\n const suppressMouseEventHandling = cellRendererParams?.suppressMouseEventHandling;\n return suppressMouseEvent(gos, void 0, node, event, suppressMouseEventHandling);\n}\nfunction suppressMouseEvent(gos, column, node, event, suppressMouseEventHandling) {\n if (!suppressMouseEventHandling) {\n return false;\n }\n return suppressMouseEventHandling(\n _addGridCommonParams(gos, {\n column,\n node,\n event\n })\n );\n}\nfunction _getCtrlForEventTarget(gos, eventTarget, type) {\n let sourceElement = eventTarget;\n while (sourceElement) {\n const renderedComp = _getDomData(gos, sourceElement, type);\n if (renderedComp) {\n return renderedComp;\n }\n sourceElement = sourceElement.parentElement;\n }\n return null;\n}\nvar DOM_DATA_KEY_CELL_CTRL = \"cellCtrl\";\nfunction _getCellCtrlForEventTarget(gos, eventTarget) {\n return _getCtrlForEventTarget(gos, eventTarget, DOM_DATA_KEY_CELL_CTRL);\n}\nvar DOM_DATA_KEY_ROW_CTRL = \"renderedRow\";\nfunction _getRowCtrlForEventTarget(gos, eventTarget) {\n return _getCtrlForEventTarget(gos, eventTarget, DOM_DATA_KEY_ROW_CTRL);\n}\n\n// packages/ag-grid-community/src/utils/keyboardEvent.ts\nfunction _isUserSuppressingKeyboardEvent(gos, keyboardEvent, rowNode, column, editing) {\n const colDefFunc = column ? column.getColDef().suppressKeyboardEvent : void 0;\n if (!colDefFunc) {\n return false;\n }\n const params = _addGridCommonParams(gos, {\n event: keyboardEvent,\n editing,\n column,\n node: rowNode,\n data: rowNode.data,\n colDef: column.getColDef()\n });\n if (colDefFunc) {\n const colDefFuncResult = colDefFunc(params);\n if (colDefFuncResult) {\n return true;\n }\n }\n return false;\n}\n\n// packages/ag-grid-community/src/utils/selection.ts\nfunction _selectAllCells(beans) {\n const { pinnedRowModel, rowModel } = beans;\n const [isEmptyPinnedTop, isEmptyPinnedBottom] = [\n pinnedRowModel?.isEmpty(\"top\") ?? true,\n pinnedRowModel?.isEmpty(\"bottom\") ?? true\n ];\n const floatingStart = isEmptyPinnedTop ? null : \"top\";\n let floatingEnd;\n let rowEnd;\n if (isEmptyPinnedBottom) {\n floatingEnd = null;\n rowEnd = rowModel.getRowCount() - 1;\n } else {\n floatingEnd = \"bottom\";\n rowEnd = pinnedRowModel?.getPinnedBottomRowCount() ?? 0 - 1;\n }\n const { visibleCols, rangeSvc } = beans;\n const allDisplayedColumns = visibleCols.allCols;\n if (!rangeSvc || !allDisplayedColumns?.length) {\n return;\n }\n rangeSvc.setCellRange({\n rowStartIndex: 0,\n rowStartPinned: floatingStart,\n rowEndIndex: rowEnd,\n rowEndPinned: floatingEnd\n });\n}\n\n// packages/ag-grid-community/src/gridBodyComp/rowContainer/rowContainerEventsFeature.ts\nvar A_KEYCODE = 65;\nvar C_KEYCODE = 67;\nvar V_KEYCODE = 86;\nvar D_KEYCODE = 68;\nvar Z_KEYCODE = 90;\nvar Y_KEYCODE = 89;\nfunction _normaliseQwertyAzerty(keyboardEvent) {\n const { keyCode } = keyboardEvent;\n let code;\n switch (keyCode) {\n case A_KEYCODE:\n code = KeyCode.A;\n break;\n case C_KEYCODE:\n code = KeyCode.C;\n break;\n case V_KEYCODE:\n code = KeyCode.V;\n break;\n case D_KEYCODE:\n code = KeyCode.D;\n break;\n case Z_KEYCODE:\n code = KeyCode.Z;\n break;\n case Y_KEYCODE:\n code = KeyCode.Y;\n break;\n default:\n code = keyboardEvent.code;\n }\n return code;\n}\nvar RowContainerEventsFeature = class extends BeanStub {\n constructor(element) {\n super();\n this.element = element;\n }\n postConstruct() {\n this.addKeyboardListeners();\n this.addMouseListeners();\n this.beans.touchSvc?.mockRowContextMenu(this);\n this.editSvc = this.beans.editSvc;\n }\n addKeyboardListeners() {\n const eventName = \"keydown\";\n const listener = this.processKeyboardEvent.bind(this, eventName);\n this.addManagedElementListeners(this.element, { [eventName]: listener });\n }\n addMouseListeners() {\n const mouseDownEvent = _isEventSupported(\"touchstart\") ? \"touchstart\" : \"mousedown\";\n const eventNames = [\"dblclick\", \"contextmenu\", \"mouseover\", \"mouseout\", \"click\", mouseDownEvent];\n for (const eventName of eventNames) {\n const listener = this.processMouseEvent.bind(this, eventName);\n this.addManagedElementListeners(this.element, { [eventName]: listener });\n }\n }\n processMouseEvent(eventName, mouseEvent) {\n if (!_isEventFromThisInstance(this.beans, mouseEvent) || _isStopPropagationForAgGrid(mouseEvent)) {\n return;\n }\n const { cellCtrl, rowCtrl } = this.getControlsForEventTarget(mouseEvent.target);\n if (eventName === \"contextmenu\") {\n if (cellCtrl?.column) {\n cellCtrl.dispatchCellContextMenuEvent(mouseEvent);\n }\n this.beans.contextMenuSvc?.handleContextMenuMouseEvent(mouseEvent, void 0, rowCtrl, cellCtrl);\n } else {\n if (cellCtrl) {\n cellCtrl.onMouseEvent(eventName, mouseEvent);\n }\n if (rowCtrl) {\n rowCtrl.onMouseEvent(eventName, mouseEvent);\n }\n }\n }\n getControlsForEventTarget(target) {\n const { gos } = this;\n return {\n cellCtrl: _getCellCtrlForEventTarget(gos, target),\n rowCtrl: _getRowCtrlForEventTarget(gos, target)\n };\n }\n processKeyboardEvent(eventName, keyboardEvent) {\n const { cellCtrl, rowCtrl } = this.getControlsForEventTarget(keyboardEvent.target);\n if (keyboardEvent.defaultPrevented) {\n return;\n }\n if (cellCtrl) {\n this.processCellKeyboardEvent(cellCtrl, eventName, keyboardEvent);\n } else if (rowCtrl?.isFullWidth()) {\n this.processFullWidthRowKeyboardEvent(rowCtrl, eventName, keyboardEvent);\n }\n }\n processCellKeyboardEvent(cellCtrl, eventName, keyboardEvent) {\n const editing = this.editSvc?.isEditing(cellCtrl, { withOpenEditor: true }) ?? false;\n const gridProcessingAllowed = !_isUserSuppressingKeyboardEvent(\n this.gos,\n keyboardEvent,\n cellCtrl.rowNode,\n cellCtrl.column,\n editing\n );\n if (gridProcessingAllowed) {\n if (eventName === \"keydown\") {\n const wasScrollKey = !editing && this.beans.navigation?.handlePageScrollingKey(keyboardEvent);\n if (!wasScrollKey) {\n cellCtrl.onKeyDown(keyboardEvent);\n }\n this.doGridOperations(keyboardEvent, editing);\n if (_isEventFromPrintableCharacter(keyboardEvent)) {\n cellCtrl.processCharacter(keyboardEvent);\n }\n }\n }\n if (eventName === \"keydown\") {\n this.eventSvc.dispatchEvent(cellCtrl.createEvent(keyboardEvent, \"cellKeyDown\"));\n }\n }\n processFullWidthRowKeyboardEvent(rowCtrl, eventName, keyboardEvent) {\n const { rowNode } = rowCtrl;\n const { focusSvc, navigation } = this.beans;\n const focusedCell = focusSvc.getFocusedCell();\n const column = focusedCell?.column;\n const gridProcessingAllowed = !_isUserSuppressingKeyboardEvent(this.gos, keyboardEvent, rowNode, column, false);\n if (gridProcessingAllowed) {\n const key = keyboardEvent.key;\n if (eventName === \"keydown\") {\n switch (key) {\n case KeyCode.PAGE_HOME:\n case KeyCode.PAGE_END:\n case KeyCode.PAGE_UP:\n case KeyCode.PAGE_DOWN:\n navigation?.handlePageScrollingKey(keyboardEvent, true);\n break;\n case KeyCode.LEFT:\n case KeyCode.RIGHT:\n if (!this.gos.get(\"embedFullWidthRows\")) {\n break;\n }\n case KeyCode.UP:\n case KeyCode.DOWN:\n rowCtrl.onKeyboardNavigate(keyboardEvent);\n break;\n case KeyCode.TAB:\n rowCtrl.onTabKeyDown(keyboardEvent);\n break;\n default:\n }\n }\n }\n if (eventName === \"keydown\") {\n this.eventSvc.dispatchEvent(rowCtrl.createRowEvent(\"cellKeyDown\", keyboardEvent));\n }\n }\n doGridOperations(keyboardEvent, editing) {\n if (!keyboardEvent.ctrlKey && !keyboardEvent.metaKey) {\n return;\n }\n if (editing) {\n return;\n }\n if (!_isEventFromThisInstance(this.beans, keyboardEvent)) {\n return;\n }\n const keyCode = _normaliseQwertyAzerty(keyboardEvent);\n const { clipboardSvc, undoRedo } = this.beans;\n if (keyCode === KeyCode.A) {\n return this.onCtrlAndA(keyboardEvent);\n }\n if (keyCode === KeyCode.C) {\n return this.onCtrlAndC(clipboardSvc, keyboardEvent);\n }\n if (keyCode === KeyCode.D) {\n return this.onCtrlAndD(clipboardSvc, keyboardEvent);\n }\n if (keyCode === KeyCode.V) {\n return this.onCtrlAndV(clipboardSvc, keyboardEvent);\n }\n if (keyCode === KeyCode.X) {\n return this.onCtrlAndX(clipboardSvc, keyboardEvent);\n }\n if (keyCode === KeyCode.Y) {\n return this.onCtrlAndY(undoRedo);\n }\n if (keyCode === KeyCode.Z) {\n return this.onCtrlAndZ(undoRedo, keyboardEvent);\n }\n }\n onCtrlAndA(event) {\n const {\n beans: { rowModel, rangeSvc, selectionSvc },\n gos\n } = this;\n if (rangeSvc && _isCellSelectionEnabled(gos) && !_getCtrlASelectsRows(gos) && rowModel.isRowsToRender()) {\n _selectAllCells(this.beans);\n } else if (selectionSvc) {\n selectionSvc.selectAllRowNodes({ source: \"keyboardSelectAll\", selectAll: _getSelectAll(gos) });\n }\n event.preventDefault();\n }\n onCtrlAndC(clipboardSvc, event) {\n if (!clipboardSvc || this.gos.get(\"enableCellTextSelection\")) {\n return;\n }\n const { cellCtrl } = this.getControlsForEventTarget(event.target);\n if (this.editSvc?.isEditing(cellCtrl, { withOpenEditor: true })) {\n return;\n }\n event.preventDefault();\n clipboardSvc.copyToClipboard();\n }\n onCtrlAndX(clipboardSvc, event) {\n if (!clipboardSvc || this.gos.get(\"enableCellTextSelection\") || this.gos.get(\"suppressCutToClipboard\")) {\n return;\n }\n const { cellCtrl } = this.getControlsForEventTarget(event.target);\n if (this.editSvc?.isEditing(cellCtrl, { withOpenEditor: true })) {\n return;\n }\n event.preventDefault();\n clipboardSvc.cutToClipboard(void 0, \"ui\");\n }\n onCtrlAndV(clipboardSvc, event) {\n const { cellCtrl } = this.getControlsForEventTarget(event.target);\n if (this.editSvc?.isEditing(cellCtrl, { withOpenEditor: true })) {\n return;\n }\n if (clipboardSvc && !this.gos.get(\"suppressClipboardPaste\")) {\n clipboardSvc.pasteFromClipboard();\n }\n }\n onCtrlAndD(clipboardSvc, event) {\n if (clipboardSvc && !this.gos.get(\"suppressClipboardPaste\")) {\n clipboardSvc.copyRangeDown();\n }\n event.preventDefault();\n }\n onCtrlAndZ(undoRedo, event) {\n if (!this.gos.get(\"undoRedoCellEditing\") || !undoRedo) {\n return;\n }\n event.preventDefault();\n if (event.shiftKey) {\n undoRedo.redo(\"ui\");\n } else {\n undoRedo.undo(\"ui\");\n }\n }\n onCtrlAndY(undoRedo) {\n undoRedo?.redo(\"ui\");\n }\n};\n\n// packages/ag-grid-community/src/gridBodyComp/rowContainer/setHeightFeature.ts\nvar SetHeightFeature = class extends BeanStub {\n constructor(eContainer, eViewport) {\n super();\n this.eContainer = eContainer;\n this.eViewport = eViewport;\n }\n postConstruct() {\n this.addManagedEventListeners({\n rowContainerHeightChanged: this.onHeightChanged.bind(this, this.beans.rowContainerHeight)\n });\n }\n onHeightChanged(maxDivHeightScaler) {\n const height = maxDivHeightScaler.uiContainerHeight;\n const heightString = height != null ? `${height}px` : ``;\n this.eContainer.style.height = heightString;\n if (this.eViewport) {\n this.eViewport.style.height = heightString;\n }\n }\n};\n\n// packages/ag-grid-community/src/gridBodyComp/rowContainer/rowContainerCtrl.ts\nvar getTopRowCtrls = (r) => r.topRowCtrls;\nvar getStickyTopRowCtrls = (r) => r.getStickyTopRowCtrls();\nvar getStickyBottomRowCtrls = (r) => r.getStickyBottomRowCtrls();\nvar getBottomRowCtrls = (r) => r.bottomRowCtrls;\nvar getCentreRowCtrls = (r) => r.allRowCtrls;\nvar getSpannedTopRowCtrls = (r) => r.getCtrls(\"top\");\nvar getSpannedCenterRowCtrls = (r) => r.getCtrls(\"center\");\nvar getSpannedBottomRowCtrls = (r) => r.getCtrls(\"bottom\");\nvar ContainerCssClasses = {\n center: {\n type: \"center\",\n name: \"center-cols\",\n getRowCtrls: getCentreRowCtrls,\n getSpannedRowCtrls: getSpannedCenterRowCtrls\n },\n left: {\n type: \"left\",\n name: \"pinned-left-cols\",\n pinnedType: \"left\",\n getRowCtrls: getCentreRowCtrls,\n getSpannedRowCtrls: getSpannedCenterRowCtrls\n },\n right: {\n type: \"right\",\n name: \"pinned-right-cols\",\n pinnedType: \"right\",\n getRowCtrls: getCentreRowCtrls,\n getSpannedRowCtrls: getSpannedCenterRowCtrls\n },\n fullWidth: {\n type: \"fullWidth\",\n name: \"full-width\",\n fullWidth: true,\n getRowCtrls: getCentreRowCtrls\n },\n topCenter: {\n type: \"center\",\n name: \"floating-top\",\n getRowCtrls: getTopRowCtrls,\n getSpannedRowCtrls: getSpannedTopRowCtrls\n },\n topLeft: {\n type: \"left\",\n name: \"pinned-left-floating\",\n container: \"ag-pinned-left-floating-top\",\n pinnedType: \"left\",\n getRowCtrls: getTopRowCtrls,\n getSpannedRowCtrls: getSpannedTopRowCtrls\n },\n topRight: {\n type: \"right\",\n name: \"pinned-right-floating\",\n container: \"ag-pinned-right-floating-top\",\n pinnedType: \"right\",\n getRowCtrls: getTopRowCtrls,\n getSpannedRowCtrls: getSpannedTopRowCtrls\n },\n topFullWidth: {\n type: \"fullWidth\",\n name: \"floating-top-full-width\",\n fullWidth: true,\n getRowCtrls: getTopRowCtrls\n },\n stickyTopCenter: {\n type: \"center\",\n name: \"sticky-top\",\n getRowCtrls: getStickyTopRowCtrls\n },\n stickyTopLeft: {\n type: \"left\",\n name: \"pinned-left-sticky-top\",\n container: \"ag-pinned-left-sticky-top\",\n pinnedType: \"left\",\n getRowCtrls: getStickyTopRowCtrls\n },\n stickyTopRight: {\n type: \"right\",\n name: \"pinned-right-sticky-top\",\n container: \"ag-pinned-right-sticky-top\",\n pinnedType: \"right\",\n getRowCtrls: getStickyTopRowCtrls\n },\n stickyTopFullWidth: {\n type: \"fullWidth\",\n name: \"sticky-top-full-width\",\n fullWidth: true,\n getRowCtrls: getStickyTopRowCtrls\n },\n stickyBottomCenter: {\n type: \"center\",\n name: \"sticky-bottom\",\n getRowCtrls: getStickyBottomRowCtrls\n },\n stickyBottomLeft: {\n type: \"left\",\n name: \"pinned-left-sticky-bottom\",\n container: \"ag-pinned-left-sticky-bottom\",\n pinnedType: \"left\",\n getRowCtrls: getStickyBottomRowCtrls\n },\n stickyBottomRight: {\n type: \"right\",\n name: \"pinned-right-sticky-bottom\",\n container: \"ag-pinned-right-sticky-bottom\",\n pinnedType: \"right\",\n getRowCtrls: getStickyBottomRowCtrls\n },\n stickyBottomFullWidth: {\n type: \"fullWidth\",\n name: \"sticky-bottom-full-width\",\n fullWidth: true,\n getRowCtrls: getStickyBottomRowCtrls\n },\n bottomCenter: {\n type: \"center\",\n name: \"floating-bottom\",\n getRowCtrls: getBottomRowCtrls,\n getSpannedRowCtrls: getSpannedBottomRowCtrls\n },\n bottomLeft: {\n type: \"left\",\n name: \"pinned-left-floating-bottom\",\n container: \"ag-pinned-left-floating-bottom\",\n pinnedType: \"left\",\n getRowCtrls: getBottomRowCtrls,\n getSpannedRowCtrls: getSpannedBottomRowCtrls\n },\n bottomRight: {\n type: \"right\",\n name: \"pinned-right-floating-bottom\",\n container: \"ag-pinned-right-floating-bottom\",\n pinnedType: \"right\",\n getRowCtrls: getBottomRowCtrls,\n getSpannedRowCtrls: getSpannedBottomRowCtrls\n },\n bottomFullWidth: {\n type: \"fullWidth\",\n name: \"floating-bottom-full-width\",\n fullWidth: true,\n getRowCtrls: getBottomRowCtrls\n }\n};\nfunction _getRowViewportClass(name) {\n const options = _getRowContainerOptions(name);\n return `ag-${options.name}-viewport`;\n}\nfunction _getRowContainerClass(name) {\n const options = _getRowContainerOptions(name);\n return options.container ?? `ag-${options.name}-container`;\n}\nfunction _getRowSpanContainerClass(name) {\n const options = _getRowContainerOptions(name);\n return `ag-${options.name}-spanned-cells-container`;\n}\nfunction _getRowContainerOptions(name) {\n return ContainerCssClasses[name];\n}\nvar allTopNoFW = [\"topCenter\", \"topLeft\", \"topRight\"];\nvar allBottomNoFW = [\"bottomCenter\", \"bottomLeft\", \"bottomRight\"];\nvar allMiddleNoFW = [\"center\", \"left\", \"right\"];\nvar allMiddle = [\"center\", \"left\", \"right\", \"fullWidth\"];\nvar allCenter = [\"stickyTopCenter\", \"stickyBottomCenter\", \"center\", \"topCenter\", \"bottomCenter\"];\nvar allLeft = [\"left\", \"bottomLeft\", \"topLeft\", \"stickyTopLeft\", \"stickyBottomLeft\"];\nvar allRight = [\"right\", \"bottomRight\", \"topRight\", \"stickyTopRight\", \"stickyBottomRight\"];\nvar allStickyTopNoFW = [\"stickyTopCenter\", \"stickyTopLeft\", \"stickyTopRight\"];\nvar allStickyBottomNoFW = [\"stickyBottomCenter\", \"stickyBottomLeft\", \"stickyBottomRight\"];\nvar allStickyContainers = [\n ...allStickyTopNoFW,\n \"stickyTopFullWidth\",\n ...allStickyBottomNoFW,\n \"stickyBottomFullWidth\"\n];\nvar allNoFW = [\n ...allTopNoFW,\n ...allBottomNoFW,\n ...allMiddleNoFW,\n ...allStickyTopNoFW,\n ...allStickyBottomNoFW\n];\nvar RowContainerCtrl = class extends BeanStub {\n constructor(name) {\n super();\n this.name = name;\n this.visible = true;\n // Maintaining a constant reference enables optimization in React.\n this.EMPTY_CTRLS = [];\n this.options = _getRowContainerOptions(name);\n }\n postConstruct() {\n this.enableRtl = this.gos.get(\"enableRtl\");\n this.forContainers([\"center\"], () => {\n this.viewportSizeFeature = this.createManagedBean(new ViewportSizeFeature(this));\n this.addManagedEventListeners({\n stickyTopOffsetChanged: this.onStickyTopOffsetChanged.bind(this)\n });\n });\n }\n onStickyTopOffsetChanged(event) {\n this.comp.setOffsetTop(`${event.offset}px`);\n }\n registerWithCtrlsService() {\n if (this.options.fullWidth) {\n return;\n }\n this.beans.ctrlsSvc.register(this.name, this);\n }\n forContainers(names, callback) {\n if (names.indexOf(this.name) >= 0) {\n callback();\n }\n }\n setComp(view, eContainer, eSpannedContainer, eViewport) {\n this.comp = view;\n this.eContainer = eContainer;\n this.eSpannedContainer = eSpannedContainer;\n this.eViewport = eViewport;\n this.createManagedBean(new RowContainerEventsFeature(this.eViewport ?? this.eContainer));\n this.addPreventScrollWhileDragging();\n this.listenOnDomOrder();\n const { pinnedCols, rangeSvc } = this.beans;\n const pinnedWidthChanged = () => this.onPinnedWidthChanged();\n this.forContainers(allLeft, () => {\n this.pinnedWidthFeature = this.createOptionalManagedBean(\n pinnedCols?.createPinnedWidthFeature(true, this.eContainer, this.eSpannedContainer)\n );\n this.addManagedEventListeners({ leftPinnedWidthChanged: pinnedWidthChanged });\n });\n this.forContainers(allRight, () => {\n this.pinnedWidthFeature = this.createOptionalManagedBean(\n pinnedCols?.createPinnedWidthFeature(false, this.eContainer, this.eSpannedContainer)\n );\n this.addManagedEventListeners({ rightPinnedWidthChanged: pinnedWidthChanged });\n });\n this.forContainers(\n allMiddle,\n () => this.createManagedBean(\n new SetHeightFeature(this.eContainer, this.name === \"center\" ? eViewport : void 0)\n )\n );\n if (rangeSvc) {\n this.forContainers(\n allNoFW,\n () => this.createManagedBean(rangeSvc.createDragListenerFeature(this.eContainer))\n );\n }\n this.forContainers(\n allCenter,\n () => this.createManagedBean(new CenterWidthFeature((width) => this.comp.setContainerWidth(`${width}px`)))\n );\n this.visible = this.isContainerVisible();\n this.addListeners();\n this.registerWithCtrlsService();\n }\n onScrollCallback(fn) {\n this.addManagedElementListeners(this.eViewport, { scroll: fn });\n }\n addListeners() {\n const { spannedRowRenderer, gos } = this.beans;\n const onDisplayedColumnsChanged = this.onDisplayedColumnsChanged.bind(this);\n this.addManagedEventListeners({\n displayedColumnsChanged: onDisplayedColumnsChanged,\n displayedColumnsWidthChanged: onDisplayedColumnsChanged,\n displayedRowsChanged: (params) => this.onDisplayedRowsChanged(params.afterScroll)\n });\n onDisplayedColumnsChanged();\n this.onDisplayedRowsChanged();\n if (spannedRowRenderer && this.options.getSpannedRowCtrls && gos.get(\"enableCellSpan\")) {\n this.addManagedListeners(spannedRowRenderer, {\n spannedRowsUpdated: () => {\n const spannedCtrls = this.options.getSpannedRowCtrls(spannedRowRenderer);\n if (!spannedCtrls) {\n return;\n }\n this.comp.setSpannedRowCtrls(spannedCtrls, false);\n }\n });\n }\n }\n listenOnDomOrder() {\n const isStickContainer = allStickyContainers.indexOf(this.name) >= 0;\n if (isStickContainer) {\n this.comp.setDomOrder(true);\n return;\n }\n const listener = () => {\n const isEnsureDomOrder = this.gos.get(\"ensureDomOrder\");\n const isPrintLayout = _isDomLayout(this.gos, \"print\");\n this.comp.setDomOrder(isEnsureDomOrder || isPrintLayout);\n };\n this.addManagedPropertyListener(\"domLayout\", listener);\n listener();\n }\n onDisplayedColumnsChanged() {\n this.forContainers([\"center\"], () => this.onHorizontalViewportChanged());\n }\n // this methods prevents the grid views from being scrolled while the dragService is being used\n // eg. the view should not scroll up and down while dragging rows using the rowDragComp.\n addPreventScrollWhileDragging() {\n const { dragSvc } = this.beans;\n if (!dragSvc) {\n return;\n }\n const preventScroll = (e) => {\n if (dragSvc.dragging) {\n if (e.cancelable) {\n e.preventDefault();\n }\n }\n };\n this.eContainer.addEventListener(\"touchmove\", preventScroll, { passive: false });\n this.addDestroyFunc(() => this.eContainer.removeEventListener(\"touchmove\", preventScroll));\n }\n // this gets called whenever a change in the viewport, so we can inform column controller it has to work\n // out the virtual columns again. gets called from following locations:\n // + ensureColVisible, scroll, init, layoutChanged, displayedColumnsChanged\n onHorizontalViewportChanged(afterScroll = false) {\n const scrollWidth = this.getCenterWidth();\n const scrollPosition = this.getCenterViewportScrollLeft();\n this.beans.colViewport.setScrollPosition(scrollWidth, scrollPosition, afterScroll);\n }\n hasHorizontalScrollGap() {\n return this.eContainer.clientWidth - this.eViewport.clientWidth < 0;\n }\n hasVerticalScrollGap() {\n return this.eContainer.clientHeight - this.eViewport.clientHeight < 0;\n }\n getCenterWidth() {\n return _getInnerWidth(this.eViewport);\n }\n getCenterViewportScrollLeft() {\n return _getScrollLeft(this.eViewport, this.enableRtl);\n }\n registerViewportResizeListener(listener) {\n const unsubscribeFromResize = _observeResize(this.beans, this.eViewport, listener);\n this.addDestroyFunc(() => unsubscribeFromResize());\n }\n isViewportInTheDOMTree() {\n return _isInDOM(this.eViewport);\n }\n getViewportScrollLeft() {\n return _getScrollLeft(this.eViewport, this.enableRtl);\n }\n isHorizontalScrollShowing() {\n const isAlwaysShowHorizontalScroll = this.gos.get(\"alwaysShowHorizontalScroll\");\n return isAlwaysShowHorizontalScroll || _isHorizontalScrollShowing(this.eViewport);\n }\n setHorizontalScroll(offset) {\n this.comp.setHorizontalScroll(offset);\n }\n getHScrollPosition() {\n const res = {\n left: this.eViewport.scrollLeft,\n right: this.eViewport.scrollLeft + this.eViewport.offsetWidth\n };\n return res;\n }\n setCenterViewportScrollLeft(value) {\n _setScrollLeft(this.eViewport, value, this.enableRtl);\n }\n isContainerVisible() {\n const pinned = this.options.pinnedType != null;\n return !pinned || !!this.pinnedWidthFeature && this.pinnedWidthFeature.getWidth() > 0;\n }\n onPinnedWidthChanged() {\n const visible = this.isContainerVisible();\n if (this.visible != visible) {\n this.visible = visible;\n this.onDisplayedRowsChanged();\n }\n }\n onDisplayedRowsChanged(afterScroll = false) {\n const rows = this.options.getRowCtrls(this.beans.rowRenderer);\n if (!this.visible || rows.length === 0) {\n this.comp.setRowCtrls({ rowCtrls: this.EMPTY_CTRLS });\n return;\n }\n const printLayout = _isDomLayout(this.gos, \"print\");\n const embedFullWidthRows = this.gos.get(\"embedFullWidthRows\");\n const embedFW = embedFullWidthRows || printLayout;\n const rowsThisContainer = rows.filter((rowCtrl) => {\n const fullWidthRow = rowCtrl.isFullWidth();\n const match = this.options.fullWidth ? !embedFW && fullWidthRow : embedFW || !fullWidthRow;\n return match;\n });\n this.comp.setRowCtrls({ rowCtrls: rowsThisContainer, useFlushSync: afterScroll });\n }\n};\n\n// packages/ag-grid-community/src/gridBodyComp/gridBodyCtrl.ts\nvar CSS_CLASS_FORCE_VERTICAL_SCROLL = \"ag-force-vertical-scroll\";\nvar CSS_CLASS_CELL_SELECTABLE = \"ag-selectable\";\nvar CSS_CLASS_COLUMN_MOVING = \"ag-column-moving\";\nvar GridBodyCtrl = class extends BeanStub {\n constructor() {\n super(...arguments);\n this.stickyTopHeight = 0;\n this.stickyBottomHeight = 0;\n }\n wireBeans(beans) {\n this.ctrlsSvc = beans.ctrlsSvc;\n this.colModel = beans.colModel;\n this.scrollVisibleSvc = beans.scrollVisibleSvc;\n this.pinnedRowModel = beans.pinnedRowModel;\n this.filterManager = beans.filterManager;\n this.rowGroupColsSvc = beans.rowGroupColsSvc;\n }\n setComp(comp, eGridBody, eBodyViewport, eTop, eBottom, eStickyTop, eStickyBottom) {\n this.comp = comp;\n this.eGridBody = eGridBody;\n this.eBodyViewport = eBodyViewport;\n this.eTop = eTop;\n this.eBottom = eBottom;\n this.eStickyTop = eStickyTop;\n this.eStickyBottom = eStickyBottom;\n this.eCenterColsViewport = eBodyViewport.querySelector(`.${_getRowViewportClass(\"center\")}`);\n this.eFullWidthContainer = eBodyViewport.querySelector(`.${_getRowContainerClass(\"fullWidth\")}`);\n this.eStickyTopFullWidthContainer = eStickyTop.querySelector(\n `.${_getRowContainerClass(\"stickyTopFullWidth\")}`\n );\n this.eStickyBottomFullWidthContainer = eStickyBottom.querySelector(\n `.${_getRowContainerClass(\"stickyBottomFullWidth\")}`\n );\n this.setCellTextSelection(this.gos.get(\"enableCellTextSelection\"));\n this.addManagedPropertyListener(\n \"enableCellTextSelection\",\n (props) => this.setCellTextSelection(props.currentValue)\n );\n this.createManagedBean(new LayoutFeature(this.comp));\n this.scrollFeature = this.createManagedBean(new GridBodyScrollFeature(eBodyViewport));\n this.beans.rowDragSvc?.setupRowDrag(eBodyViewport, this);\n this.setupRowAnimationCssClass();\n this.addEventListeners();\n this.addFocusListeners([eTop, eBodyViewport, eBottom, eStickyTop, eStickyBottom]);\n this.setGridRootRole();\n this.onGridColumnsChanged();\n this.addBodyViewportListener();\n this.setFloatingHeights();\n this.disableBrowserDragging();\n this.addStopEditingWhenGridLosesFocus();\n this.updateScrollingClasses();\n this.filterManager?.setupAdvFilterHeaderComp(eTop);\n this.ctrlsSvc.register(\"gridBodyCtrl\", this);\n }\n addEventListeners() {\n const setFloatingHeights = this.setFloatingHeights.bind(this);\n const setGridRootRole = this.setGridRootRole.bind(this);\n const toggleRowResizeStyle = this.toggleRowResizeStyles.bind(this);\n this.addManagedEventListeners({\n gridColumnsChanged: this.onGridColumnsChanged.bind(this),\n scrollVisibilityChanged: this.onScrollVisibilityChanged.bind(this),\n scrollGapChanged: this.updateScrollingClasses.bind(this),\n pinnedRowDataChanged: setFloatingHeights,\n pinnedHeightChanged: setFloatingHeights,\n pinnedRowsChanged: setFloatingHeights,\n headerHeightChanged: this.setStickyTopOffsetTop.bind(this),\n columnRowGroupChanged: setGridRootRole,\n columnPivotChanged: setGridRootRole,\n rowResizeStarted: toggleRowResizeStyle,\n rowResizeEnded: toggleRowResizeStyle\n });\n this.addManagedPropertyListener(\"treeData\", setGridRootRole);\n }\n toggleRowResizeStyles(params) {\n const isResizingRow = params.type === \"rowResizeStarted\";\n this.eBodyViewport.classList.toggle(\"ag-prevent-animation\", isResizingRow);\n }\n onGridColumnsChanged() {\n const columns = this.beans.colModel.getCols();\n this.comp.setColumnCount(columns.length);\n }\n onScrollVisibilityChanged() {\n const { scrollVisibleSvc } = this;\n const visible = scrollVisibleSvc.verticalScrollShowing;\n this.setVerticalScrollPaddingVisible(visible);\n this.setStickyWidth(visible);\n this.setStickyBottomOffsetBottom();\n const scrollbarWidth = visible ? scrollVisibleSvc.getScrollbarWidth() || 0 : 0;\n const pad = _isInvisibleScrollbar() ? 16 : 0;\n const width = `calc(100% + ${scrollbarWidth + pad}px)`;\n _requestAnimationFrame(this.beans, () => this.comp.setBodyViewportWidth(width));\n this.updateScrollingClasses();\n }\n setGridRootRole() {\n const { rowGroupColsSvc, colModel } = this;\n let isTreeGrid = this.gos.get(\"treeData\");\n if (!isTreeGrid) {\n const isPivotActive = colModel.isPivotMode();\n const rowGroupColumnLen = !rowGroupColsSvc ? 0 : rowGroupColsSvc.columns.length;\n const columnsNeededForGrouping = isPivotActive ? 2 : 1;\n isTreeGrid = rowGroupColumnLen >= columnsNeededForGrouping;\n }\n this.comp.setGridRootRole(isTreeGrid ? \"treegrid\" : \"grid\");\n }\n addFocusListeners(elements) {\n for (const element of elements) {\n this.addManagedElementListeners(element, {\n focusin: (e) => {\n const { target } = e;\n const isFocusedElementNested = _isElementChildOfClass(target, \"ag-root\", element);\n element.classList.toggle(\"ag-has-focus\", !isFocusedElementNested);\n },\n focusout: (e) => {\n const { target, relatedTarget } = e;\n const gridContainRelatedTarget = element.contains(relatedTarget);\n const isNestedRelatedTarget = _isElementChildOfClass(\n relatedTarget,\n \"ag-root\",\n element\n );\n const isNestedTarget = _isElementChildOfClass(target, \"ag-root\", element);\n if (isNestedTarget) {\n return;\n }\n if (!gridContainRelatedTarget || isNestedRelatedTarget) {\n element.classList.remove(\"ag-has-focus\");\n }\n }\n });\n }\n }\n // used by ColumnAnimationService\n setColumnMovingCss(moving) {\n this.comp.setColumnMovingCss(CSS_CLASS_COLUMN_MOVING, moving);\n }\n setCellTextSelection(selectable = false) {\n this.comp.setCellSelectableCss(CSS_CLASS_CELL_SELECTABLE, selectable);\n }\n updateScrollingClasses() {\n const {\n eGridBody: { classList },\n scrollVisibleSvc\n } = this;\n classList.toggle(\"ag-body-vertical-content-no-gap\", !scrollVisibleSvc.verticalScrollGap);\n classList.toggle(\"ag-body-horizontal-content-no-gap\", !scrollVisibleSvc.horizontalScrollGap);\n }\n // if we do not do this, then the user can select a pic in the grid (eg an image in a custom cell renderer)\n // and then that will start the browser native drag n' drop, which messes up with our own drag and drop.\n disableBrowserDragging() {\n this.addManagedElementListeners(this.eGridBody, {\n dragstart: (event) => {\n if (event.target instanceof HTMLImageElement) {\n event.preventDefault();\n return false;\n }\n }\n });\n }\n addStopEditingWhenGridLosesFocus() {\n this.beans.editSvc?.addStopEditingWhenGridLosesFocus([\n this.eBodyViewport,\n this.eBottom,\n this.eTop,\n this.eStickyTop,\n this.eStickyBottom\n ]);\n }\n updateRowCount() {\n const headerCount = (this.ctrlsSvc.getHeaderRowContainerCtrl()?.getRowCount() ?? 0) + (this.filterManager?.getHeaderRowCount() ?? 0);\n const { rowModel } = this.beans;\n const rowCount = rowModel.isLastRowIndexKnown() ? rowModel.getRowCount() : -1;\n const total = rowCount === -1 ? -1 : headerCount + rowCount;\n this.comp.setRowCount(total);\n }\n registerBodyViewportResizeListener(listener) {\n this.comp.registerBodyViewportResizeListener(listener);\n }\n setVerticalScrollPaddingVisible(visible) {\n const overflowY = visible ? \"scroll\" : \"hidden\";\n this.comp.setPinnedTopBottomOverflowY(overflowY);\n }\n isVerticalScrollShowing() {\n const show = this.gos.get(\"alwaysShowVerticalScroll\");\n const cssClass = show ? CSS_CLASS_FORCE_VERTICAL_SCROLL : null;\n const allowVerticalScroll = _isDomLayout(this.gos, \"normal\");\n this.comp.setAlwaysVerticalScrollClass(cssClass, show);\n return show || allowVerticalScroll && _isVerticalScrollShowing(this.eBodyViewport);\n }\n setupRowAnimationCssClass() {\n const { rowContainerHeight, environment } = this.beans;\n let initialSizeMeasurementComplete = environment.sizesMeasured;\n const updateAnimationClass = () => {\n const animateRows = initialSizeMeasurementComplete && _isAnimateRows(this.gos) && !rowContainerHeight.stretching;\n const animateRowsCssClass = animateRows ? \"ag-row-animation\" : \"ag-row-no-animation\";\n this.comp.setRowAnimationCssOnBodyViewport(animateRowsCssClass, animateRows);\n };\n updateAnimationClass();\n this.addManagedEventListeners({ heightScaleChanged: updateAnimationClass });\n this.addManagedPropertyListener(\"animateRows\", updateAnimationClass);\n this.addManagedEventListeners({\n gridStylesChanged: () => {\n if (!initialSizeMeasurementComplete && environment.sizesMeasured) {\n initialSizeMeasurementComplete = true;\n updateAnimationClass();\n }\n }\n });\n }\n addBodyViewportListener() {\n const {\n eBodyViewport,\n eStickyTop,\n eStickyBottom,\n eTop,\n eBottom,\n beans: { popupSvc, touchSvc }\n } = this;\n const listener = this.onBodyViewportContextMenu.bind(this);\n this.addManagedElementListeners(eBodyViewport, { contextmenu: listener });\n touchSvc?.mockBodyContextMenu(this, listener);\n this.addManagedElementListeners(eBodyViewport, {\n wheel: this.onBodyViewportWheel.bind(this, popupSvc)\n });\n const onStickyWheel = this.onStickyWheel.bind(this);\n for (const container of [eStickyTop, eStickyBottom, eTop, eBottom]) {\n this.addManagedElementListeners(container, { wheel: onStickyWheel });\n }\n const onHorizontalWheel = this.onHorizontalWheel.bind(this);\n for (const container of [\"left\", \"right\", \"topLeft\", \"topRight\", \"bottomLeft\", \"bottomRight\"]) {\n this.addManagedElementListeners(this.ctrlsSvc.get(container).eContainer, {\n wheel: onHorizontalWheel\n });\n }\n this.addFullWidthContainerWheelListener();\n }\n addFullWidthContainerWheelListener() {\n this.addManagedElementListeners(this.eFullWidthContainer, {\n wheel: (e) => this.onFullWidthContainerWheel(e)\n });\n }\n onFullWidthContainerWheel(e) {\n const { deltaX, deltaY, shiftKey } = e;\n const isHorizontalScroll = shiftKey || Math.abs(deltaX) > Math.abs(deltaY);\n if (isHorizontalScroll && _isEventFromThisInstance(this.beans, e)) {\n this.scrollGridBodyToMatchEvent(e);\n }\n }\n onStickyWheel(e) {\n const { deltaY } = e;\n const scrolled = this.scrollVertically(deltaY);\n if (scrolled > 0) {\n e.preventDefault();\n }\n }\n onHorizontalWheel(e) {\n const { deltaX, deltaY, shiftKey } = e;\n const isHorizontalScroll = shiftKey || Math.abs(deltaX) > Math.abs(deltaY);\n if (!isHorizontalScroll) {\n return;\n }\n this.scrollGridBodyToMatchEvent(e);\n }\n scrollGridBodyToMatchEvent(e) {\n const { deltaX, deltaY } = e;\n e.preventDefault();\n this.eCenterColsViewport.scrollBy({ left: deltaX || deltaY });\n }\n onBodyViewportContextMenu(mouseEvent, touch, touchEvent) {\n if (!mouseEvent && !touchEvent) {\n return;\n }\n if (this.gos.get(\"preventDefaultOnContextMenu\")) {\n const event = mouseEvent || touchEvent;\n event.preventDefault();\n }\n const { target } = mouseEvent || touch;\n if (target === this.eBodyViewport || target === this.ctrlsSvc.get(\"center\").eViewport) {\n this.beans.contextMenuSvc?.showContextMenu({\n mouseEvent,\n touchEvent,\n value: null,\n anchorToElement: this.eGridBody,\n source: \"ui\"\n });\n }\n }\n onBodyViewportWheel(popupSvc, e) {\n if (!this.gos.get(\"suppressScrollWhenPopupsAreOpen\")) {\n return;\n }\n if (popupSvc?.hasAnchoredPopup()) {\n e.preventDefault();\n }\n }\n // called by rowDragFeature\n scrollVertically(pixels) {\n const oldScrollPosition = this.eBodyViewport.scrollTop;\n this.scrollFeature.setVerticalScrollPosition(oldScrollPosition + pixels);\n return this.eBodyViewport.scrollTop - oldScrollPosition;\n }\n setFloatingHeights() {\n const {\n pinnedRowModel,\n beans: { environment }\n } = this;\n const floatingTopHeight = pinnedRowModel?.getPinnedTopTotalHeight();\n const floatingBottomHeight = pinnedRowModel?.getPinnedBottomTotalHeight();\n const pinnedBorderWidth = environment.getPinnedRowBorderWidth();\n const rowBorderWidth = environment.getRowBorderWidth();\n const additionalHeight = pinnedBorderWidth - rowBorderWidth;\n const normalisedFloatingTopHeight = !floatingTopHeight ? 0 : additionalHeight + floatingTopHeight;\n const normalisedFloatingBottomHeight = !floatingBottomHeight ? 0 : additionalHeight + floatingBottomHeight;\n this.comp.setTopHeight(normalisedFloatingTopHeight);\n this.comp.setBottomHeight(normalisedFloatingBottomHeight);\n this.comp.setTopInvisible(normalisedFloatingTopHeight <= 0);\n this.comp.setBottomInvisible(normalisedFloatingBottomHeight <= 0);\n this.setStickyTopOffsetTop();\n this.setStickyBottomOffsetBottom();\n }\n setStickyTopHeight(height = 0) {\n this.comp.setStickyTopHeight(`${height}px`);\n this.stickyTopHeight = height;\n }\n setStickyBottomHeight(height = 0) {\n this.comp.setStickyBottomHeight(`${height}px`);\n this.stickyBottomHeight = height;\n }\n setStickyWidth(vScrollVisible) {\n if (!vScrollVisible) {\n this.comp.setStickyTopWidth(\"100%\");\n this.comp.setStickyBottomWidth(\"100%\");\n } else {\n const scrollbarWidth = this.scrollVisibleSvc.getScrollbarWidth();\n this.comp.setStickyTopWidth(`calc(100% - ${scrollbarWidth}px)`);\n this.comp.setStickyBottomWidth(`calc(100% - ${scrollbarWidth}px)`);\n }\n }\n setStickyTopOffsetTop() {\n const headerCtrl = this.ctrlsSvc.get(\"gridHeaderCtrl\");\n const headerHeight = headerCtrl.headerHeight + (this.filterManager?.getHeaderHeight() ?? 0);\n const pinnedTopHeight = this.pinnedRowModel?.getPinnedTopTotalHeight() ?? 0;\n let height = 0;\n if (headerHeight > 0) {\n height += headerHeight;\n }\n if (pinnedTopHeight > 0) {\n height += pinnedTopHeight;\n }\n if (height > 0) {\n height += 1;\n }\n this.comp.setStickyTopTop(`${height}px`);\n }\n setStickyBottomOffsetBottom() {\n const { pinnedRowModel, scrollVisibleSvc, comp } = this;\n const pinnedBottomHeight = pinnedRowModel?.getPinnedBottomTotalHeight() ?? 0;\n const hScrollShowing = scrollVisibleSvc.horizontalScrollShowing;\n const scrollbarWidth = hScrollShowing ? scrollVisibleSvc.getScrollbarWidth() || 0 : 0;\n const height = pinnedBottomHeight + scrollbarWidth;\n comp.setStickyBottomBottom(`${height}px`);\n }\n};\n\n// packages/ag-grid-community/src/gridBodyComp/mouseEventUtils.ts\nfunction _getCellPositionForEvent(gos, event) {\n return _getCellCtrlForEventTarget(gos, event.target)?.getFocusedCellPosition() ?? null;\n}\nfunction _getNormalisedMousePosition(beans, event) {\n const gridPanelHasScrolls = _isDomLayout(beans.gos, \"normal\");\n const e = event;\n let x;\n let y;\n if (e.clientX != null || e.clientY != null) {\n x = e.clientX;\n y = e.clientY;\n } else {\n x = e.x;\n y = e.y;\n }\n const { pageFirstPixel } = beans.pageBounds.getCurrentPagePixelRange();\n y += pageFirstPixel;\n if (gridPanelHasScrolls) {\n const scrollFeature = beans.ctrlsSvc.getScrollFeature();\n const vRange = scrollFeature.getVScrollPosition();\n const hRange = scrollFeature.getHScrollPosition();\n x += hRange.left;\n y += vRange.top;\n }\n return { x, y };\n}\n\n// packages/ag-grid-community/src/gridBodyComp/abstractFakeScrollComp.ts\nvar AbstractFakeScrollComp = class extends Component {\n constructor(template, direction) {\n super();\n this.direction = direction;\n this.eViewport = RefPlaceholder;\n this.eContainer = RefPlaceholder;\n this.hideTimeout = 0;\n this.setTemplate(template);\n }\n postConstruct() {\n this.addManagedEventListeners({\n scrollVisibilityChanged: this.onScrollVisibilityChanged.bind(this)\n });\n this.onScrollVisibilityChanged();\n this.toggleCss(\"ag-apple-scrollbar\", _isMacOsUserAgent() || _isIOSUserAgent());\n }\n destroy() {\n super.destroy();\n window.clearTimeout(this.hideTimeout);\n }\n initialiseInvisibleScrollbar() {\n if (this.invisibleScrollbar !== void 0) {\n return;\n }\n this.invisibleScrollbar = _isInvisibleScrollbar();\n if (this.invisibleScrollbar) {\n this.hideAndShowInvisibleScrollAsNeeded();\n this.addActiveListenerToggles();\n }\n }\n addActiveListenerToggles() {\n const eGui = this.getGui();\n const onActivate = () => this.toggleCss(\"ag-scrollbar-active\", true);\n const onDeactivate = () => this.toggleCss(\"ag-scrollbar-active\", false);\n this.addManagedListeners(eGui, {\n mouseenter: onActivate,\n mousedown: onActivate,\n touchstart: onActivate,\n mouseleave: onDeactivate,\n touchend: onDeactivate\n });\n }\n onScrollVisibilityChanged() {\n if (this.invisibleScrollbar === void 0) {\n this.initialiseInvisibleScrollbar();\n }\n _requestAnimationFrame(this.beans, () => this.setScrollVisible());\n }\n hideAndShowInvisibleScrollAsNeeded() {\n this.addManagedEventListeners({\n bodyScroll: (params) => {\n if (params.direction === this.direction) {\n if (this.hideTimeout) {\n window.clearTimeout(this.hideTimeout);\n this.hideTimeout = 0;\n }\n this.toggleCss(\"ag-scrollbar-scrolling\", true);\n }\n },\n bodyScrollEnd: () => {\n this.hideTimeout = window.setTimeout(() => {\n this.toggleCss(\"ag-scrollbar-scrolling\", false);\n this.hideTimeout = 0;\n }, 400);\n }\n });\n }\n attemptSettingScrollPosition(value) {\n const viewport = this.eViewport;\n _waitUntil(\n this,\n () => _isVisible(viewport),\n () => this.setScrollPosition(value),\n 100\n );\n }\n onScrollCallback(fn) {\n this.addManagedElementListeners(this.eViewport, { scroll: fn });\n }\n};\n\n// packages/ag-grid-community/src/gridBodyComp/fakeHScrollComp.ts\nvar FakeHScrollElement = {\n tag: \"div\",\n cls: \"ag-body-horizontal-scroll\",\n attrs: { \"aria-hidden\": \"true\" },\n children: [\n { tag: \"div\", ref: \"eLeftSpacer\", cls: \"ag-horizontal-left-spacer\" },\n {\n tag: \"div\",\n ref: \"eViewport\",\n cls: \"ag-body-horizontal-scroll-viewport\",\n children: [{ tag: \"div\", ref: \"eContainer\", cls: \"ag-body-horizontal-scroll-container\" }]\n },\n { tag: \"div\", ref: \"eRightSpacer\", cls: \"ag-horizontal-right-spacer\" }\n ]\n};\nvar FakeHScrollComp = class extends AbstractFakeScrollComp {\n constructor() {\n super(FakeHScrollElement, \"horizontal\");\n this.eLeftSpacer = RefPlaceholder;\n this.eRightSpacer = RefPlaceholder;\n this.setScrollVisibleDebounce = 0;\n }\n wireBeans(beans) {\n this.visibleCols = beans.visibleCols;\n this.scrollVisibleSvc = beans.scrollVisibleSvc;\n }\n postConstruct() {\n super.postConstruct();\n const spacerWidthsListener = this.setFakeHScrollSpacerWidths.bind(this);\n this.addManagedEventListeners({\n displayedColumnsChanged: spacerWidthsListener,\n displayedColumnsWidthChanged: spacerWidthsListener,\n pinnedRowDataChanged: this.refreshCompBottom.bind(this)\n });\n this.addManagedPropertyListener(\"domLayout\", spacerWidthsListener);\n this.beans.ctrlsSvc.register(\"fakeHScrollComp\", this);\n this.createManagedBean(new CenterWidthFeature((width) => this.eContainer.style.width = `${width}px`));\n this.addManagedPropertyListeners([\"suppressHorizontalScroll\"], this.onScrollVisibilityChanged.bind(this));\n }\n destroy() {\n window.clearTimeout(this.setScrollVisibleDebounce);\n super.destroy();\n }\n initialiseInvisibleScrollbar() {\n if (this.invisibleScrollbar !== void 0) {\n return;\n }\n this.enableRtl = this.gos.get(\"enableRtl\");\n super.initialiseInvisibleScrollbar();\n if (this.invisibleScrollbar) {\n this.refreshCompBottom();\n }\n }\n refreshCompBottom() {\n if (!this.invisibleScrollbar) {\n return;\n }\n const bottomPinnedHeight = this.beans.pinnedRowModel?.getPinnedBottomTotalHeight() ?? 0;\n this.getGui().style.bottom = `${bottomPinnedHeight}px`;\n }\n onScrollVisibilityChanged() {\n super.onScrollVisibilityChanged();\n this.setFakeHScrollSpacerWidths();\n }\n setFakeHScrollSpacerWidths() {\n const vScrollShowing = this.scrollVisibleSvc.verticalScrollShowing;\n let rightSpacing = this.visibleCols.getDisplayedColumnsRightWidth();\n const scrollOnRight = !this.enableRtl && vScrollShowing;\n const scrollbarWidth = this.scrollVisibleSvc.getScrollbarWidth();\n if (scrollOnRight) {\n rightSpacing += scrollbarWidth;\n }\n _setFixedWidth(this.eRightSpacer, rightSpacing);\n this.eRightSpacer.classList.toggle(\"ag-scroller-corner\", rightSpacing <= scrollbarWidth);\n let leftSpacing = this.visibleCols.getColsLeftWidth();\n const scrollOnLeft = this.enableRtl && vScrollShowing;\n if (scrollOnLeft) {\n leftSpacing += scrollbarWidth;\n }\n _setFixedWidth(this.eLeftSpacer, leftSpacing);\n this.eLeftSpacer.classList.toggle(\"ag-scroller-corner\", leftSpacing <= scrollbarWidth);\n }\n setScrollVisible() {\n const hScrollShowing = this.scrollVisibleSvc.horizontalScrollShowing;\n const invisibleScrollbar2 = this.invisibleScrollbar;\n const isSuppressHorizontalScroll = this.gos.get(\"suppressHorizontalScroll\");\n const scrollbarWidth = hScrollShowing ? this.scrollVisibleSvc.getScrollbarWidth() || 0 : 0;\n const adjustedScrollbarWidth = scrollbarWidth === 0 && invisibleScrollbar2 ? 16 : scrollbarWidth;\n const scrollContainerSize = !isSuppressHorizontalScroll ? adjustedScrollbarWidth : 0;\n const apply = () => {\n this.setScrollVisibleDebounce = 0;\n this.toggleCss(\"ag-scrollbar-invisible\", invisibleScrollbar2);\n _setFixedHeight(this.getGui(), scrollContainerSize);\n _setFixedHeight(this.eViewport, scrollContainerSize);\n _setFixedHeight(this.eContainer, scrollContainerSize);\n if (!scrollContainerSize) {\n this.eContainer.style.setProperty(\"min-height\", \"1px\");\n }\n this.setVisible(hScrollShowing, { skipAriaHidden: true });\n };\n window.clearTimeout(this.setScrollVisibleDebounce);\n if (!hScrollShowing) {\n apply();\n } else {\n this.setScrollVisibleDebounce = window.setTimeout(apply, 100);\n }\n }\n getScrollPosition() {\n return _getScrollLeft(this.eViewport, this.enableRtl);\n }\n setScrollPosition(value) {\n if (!_isVisible(this.eViewport)) {\n this.attemptSettingScrollPosition(value);\n }\n _setScrollLeft(this.eViewport, value, this.enableRtl);\n }\n};\nvar FakeHScrollSelector = {\n selector: \"AG-FAKE-HORIZONTAL-SCROLL\",\n component: FakeHScrollComp\n};\n\n// packages/ag-grid-community/src/gridBodyComp/fakeVScrollComp.ts\nvar FakeVScrollElement = {\n tag: \"div\",\n cls: \"ag-body-vertical-scroll\",\n attrs: { \"aria-hidden\": \"true\" },\n children: [\n {\n tag: \"div\",\n ref: \"eViewport\",\n cls: \"ag-body-vertical-scroll-viewport\",\n children: [{ tag: \"div\", ref: \"eContainer\", cls: \"ag-body-vertical-scroll-container\" }]\n }\n ]\n};\nvar FakeVScrollComp = class extends AbstractFakeScrollComp {\n constructor() {\n super(FakeVScrollElement, \"vertical\");\n }\n postConstruct() {\n super.postConstruct();\n this.createManagedBean(new SetHeightFeature(this.eContainer));\n const { ctrlsSvc } = this.beans;\n ctrlsSvc.register(\"fakeVScrollComp\", this);\n this.addManagedEventListeners({\n rowContainerHeightChanged: this.onRowContainerHeightChanged.bind(this, ctrlsSvc)\n });\n }\n setScrollVisible() {\n const { scrollVisibleSvc } = this.beans;\n const vScrollShowing = scrollVisibleSvc.verticalScrollShowing;\n const invisibleScrollbar2 = this.invisibleScrollbar;\n const scrollbarWidth = vScrollShowing ? scrollVisibleSvc.getScrollbarWidth() || 0 : 0;\n const adjustedScrollbarWidth = scrollbarWidth === 0 && invisibleScrollbar2 ? 16 : scrollbarWidth;\n this.toggleCss(\"ag-scrollbar-invisible\", invisibleScrollbar2);\n _setFixedWidth(this.getGui(), adjustedScrollbarWidth);\n _setFixedWidth(this.eViewport, adjustedScrollbarWidth);\n _setFixedWidth(this.eContainer, adjustedScrollbarWidth);\n this.setDisplayed(vScrollShowing, { skipAriaHidden: true });\n }\n onRowContainerHeightChanged(ctrlsSvc) {\n const gridBodyCtrl = ctrlsSvc.getGridBodyCtrl();\n const gridBodyViewportEl = gridBodyCtrl.eBodyViewport;\n const eViewportScrollTop = this.getScrollPosition();\n const gridBodyViewportScrollTop = gridBodyViewportEl.scrollTop;\n if (eViewportScrollTop != gridBodyViewportScrollTop) {\n this.setScrollPosition(gridBodyViewportScrollTop, true);\n }\n }\n getScrollPosition() {\n return this.eViewport.scrollTop;\n }\n setScrollPosition(value, force) {\n if (!force && !_isVisible(this.eViewport)) {\n this.attemptSettingScrollPosition(value);\n }\n this.eViewport.scrollTop = value;\n }\n};\nvar FakeVScrollSelector = {\n selector: \"AG-FAKE-VERTICAL-SCROLL\",\n component: FakeVScrollComp\n};\n\n// packages/ag-grid-community/src/headerRendering/cells/cssClassApplier.ts\nvar CSS_FIRST_COLUMN = \"ag-column-first\";\nvar CSS_LAST_COLUMN = \"ag-column-last\";\nfunction _getHeaderClassesFromColDef(abstractColDef, gos, column, columnGroup) {\n if (_missing(abstractColDef)) {\n return [];\n }\n return getColumnClassesFromCollDef(abstractColDef.headerClass, abstractColDef, gos, column, columnGroup);\n}\nfunction _getToolPanelClassesFromColDef(abstractColDef, gos, column, columnGroup) {\n if (_missing(abstractColDef)) {\n return [];\n }\n return getColumnClassesFromCollDef(abstractColDef.toolPanelClass, abstractColDef, gos, column, columnGroup);\n}\nfunction refreshFirstAndLastStyles(comp, column, presentedColsService) {\n comp.toggleCss(CSS_FIRST_COLUMN, presentedColsService.isColAtEdge(column, \"first\"));\n comp.toggleCss(CSS_LAST_COLUMN, presentedColsService.isColAtEdge(column, \"last\"));\n}\nfunction getClassParams(abstractColDef, gos, column, columnGroup) {\n return _addGridCommonParams(gos, {\n // bad naming, as colDef here can be a group or a column,\n // however most people won't appreciate the difference,\n // so keeping it as colDef to avoid confusion.\n colDef: abstractColDef,\n column,\n columnGroup\n });\n}\nfunction getColumnClassesFromCollDef(classesOrFunc, abstractColDef, gos, column, columnGroup) {\n if (_missing(classesOrFunc)) {\n return [];\n }\n let classToUse;\n if (typeof classesOrFunc === \"function\") {\n const params = getClassParams(abstractColDef, gos, column, columnGroup);\n classToUse = classesOrFunc(params);\n } else {\n classToUse = classesOrFunc;\n }\n if (typeof classToUse === \"string\") {\n return [classToUse];\n }\n if (Array.isArray(classToUse)) {\n return [...classToUse];\n }\n return [];\n}\n\n// packages/ag-grid-community/src/utils/gridFocus.ts\nfunction _addFocusableContainerListener(beans, comp, eGui) {\n comp.addManagedElementListeners(eGui, {\n keydown: (e) => {\n if (!e.defaultPrevented && e.key === KeyCode.TAB) {\n const backwards = e.shiftKey;\n if (!_findNextFocusableElement(beans, eGui, false, backwards)) {\n if (_focusNextGridCoreContainer(beans, backwards)) {\n e.preventDefault();\n }\n }\n }\n }\n });\n}\nfunction _focusGridInnerElement(beans, fromBottom) {\n return beans.ctrlsSvc.get(\"gridCtrl\").focusInnerElement(fromBottom);\n}\nfunction _isHeaderFocusSuppressed(beans) {\n return beans.gos.get(\"suppressHeaderFocus\") || !!beans.overlays?.isExclusive();\n}\nfunction _isCellFocusSuppressed(beans) {\n return beans.gos.get(\"suppressCellFocus\") || !!beans.overlays?.isExclusive();\n}\nfunction _focusNextGridCoreContainer(beans, backwards, forceOut = false) {\n const gridCtrl = beans.ctrlsSvc.get(\"gridCtrl\");\n if (!forceOut && gridCtrl.focusNextInnerContainer(backwards)) {\n return true;\n }\n if (forceOut || !backwards && !gridCtrl.isDetailGrid()) {\n gridCtrl.forceFocusOutOfContainer(backwards);\n }\n return false;\n}\n\n// packages/ag-grid-community/src/headerRendering/headerUtils.ts\nfunction getHeaderRowCount(colModel) {\n if (!colModel.cols) {\n return -1;\n }\n return colModel.cols.treeDepth + 1;\n}\nfunction getFocusHeaderRowCount(beans) {\n return beans.ctrlsSvc.getHeaderRowContainerCtrl()?.getRowCount() ?? 0;\n}\nfunction getGroupRowsHeight(beans) {\n const heights = [];\n const headerRowContainerCtrls = beans.ctrlsSvc.getHeaderRowContainerCtrls();\n for (const headerRowContainerCtrl of headerRowContainerCtrls) {\n if (!headerRowContainerCtrl) {\n continue;\n }\n const groupRowCount = headerRowContainerCtrl.getGroupRowCount() || 0;\n for (let i = 0; i < groupRowCount; i++) {\n const headerRowCtrl = headerRowContainerCtrl.getGroupRowCtrlAtIndex(i);\n const currentHeightAtPos = heights[i];\n if (headerRowCtrl) {\n const newHeight = getColumnGroupHeaderRowHeight(beans, headerRowCtrl);\n if (currentHeightAtPos == null || newHeight > currentHeightAtPos) {\n heights[i] = newHeight;\n }\n }\n }\n }\n return heights;\n}\nfunction getColumnGroupHeaderRowHeight(beans, headerRowCtrl) {\n const defaultHeight = beans.colModel.isPivotMode() ? getPivotGroupHeaderHeight(beans) : getGroupHeaderHeight(beans);\n let maxDisplayedHeight = defaultHeight;\n const headerRowCellCtrls = headerRowCtrl.getHeaderCellCtrls();\n for (const headerCellCtrl of headerRowCellCtrls) {\n const { column } = headerCellCtrl;\n const height = column.getAutoHeaderHeight();\n if (height != null && height > maxDisplayedHeight && column.isAutoHeaderHeight()) {\n maxDisplayedHeight = height;\n }\n }\n return maxDisplayedHeight;\n}\nfunction getColumnHeaderRowHeight(beans) {\n const defaultHeight = beans.colModel.isPivotMode() ? getPivotHeaderHeight(beans) : getHeaderHeight(beans);\n let maxDisplayedHeight = defaultHeight;\n beans.colModel.forAllCols((col) => {\n const height = col.getAutoHeaderHeight();\n if (height != null && height > maxDisplayedHeight && col.isAutoHeaderHeight()) {\n maxDisplayedHeight = height;\n }\n });\n return maxDisplayedHeight;\n}\nfunction getHeaderHeight(beans) {\n return beans.gos.get(\"headerHeight\") ?? beans.environment.getDefaultHeaderHeight();\n}\nfunction getFloatingFiltersHeight(beans) {\n return beans.gos.get(\"floatingFiltersHeight\") ?? getHeaderHeight(beans);\n}\nfunction getGroupHeaderHeight(beans) {\n return beans.gos.get(\"groupHeaderHeight\") ?? getHeaderHeight(beans);\n}\nfunction getPivotHeaderHeight(beans) {\n return beans.gos.get(\"pivotHeaderHeight\") ?? getHeaderHeight(beans);\n}\nfunction getPivotGroupHeaderHeight(beans) {\n return beans.gos.get(\"pivotGroupHeaderHeight\") ?? getGroupHeaderHeight(beans);\n}\nfunction isHeaderPositionEqual(headerPosA, headerPosB) {\n return headerPosA.headerRowIndex === headerPosB.headerRowIndex && headerPosA.column === headerPosB.column;\n}\n\n// packages/ag-grid-community/src/headerRendering/gridHeaderCtrl.ts\nvar GridHeaderCtrl = class extends BeanStub {\n setComp(comp, eGui, eFocusableElement) {\n this.comp = comp;\n this.eGui = eGui;\n const { beans } = this;\n const { headerNavigation, touchSvc, ctrlsSvc } = beans;\n if (headerNavigation) {\n this.createManagedBean(\n new ManagedFocusFeature(eFocusableElement, {\n onTabKeyDown: this.onTabKeyDown.bind(this),\n handleKeyDown: this.handleKeyDown.bind(this),\n onFocusOut: this.onFocusOut.bind(this)\n })\n );\n }\n this.addManagedEventListeners({\n columnPivotModeChanged: this.onPivotModeChanged.bind(this, beans),\n displayedColumnsChanged: this.onDisplayedColumnsChanged.bind(this, beans)\n });\n this.onPivotModeChanged(beans);\n this.setupHeaderHeight();\n const listener = this.onHeaderContextMenu.bind(this);\n this.addManagedElementListeners(this.eGui, { contextmenu: listener });\n touchSvc?.mockHeaderContextMenu(this, listener);\n ctrlsSvc.register(\"gridHeaderCtrl\", this);\n }\n setupHeaderHeight() {\n const listener = this.setHeaderHeight.bind(this);\n listener();\n this.addManagedPropertyListeners(\n [\n \"headerHeight\",\n \"pivotHeaderHeight\",\n \"groupHeaderHeight\",\n \"pivotGroupHeaderHeight\",\n \"floatingFiltersHeight\"\n ],\n listener\n );\n this.addManagedEventListeners({\n headerRowsChanged: listener,\n columnHeaderHeightChanged: listener,\n // add this to the animation frame to avoid a feedback loop\n columnGroupHeaderHeightChanged: () => _requestAnimationFrame(this.beans, () => listener()),\n gridStylesChanged: listener,\n advancedFilterEnabledChanged: listener\n });\n }\n setHeaderHeight() {\n const { beans } = this;\n let totalHeaderHeight = 0;\n const groupHeight = getGroupRowsHeight(beans).reduce((prev, curr) => prev + curr, 0);\n const headerHeight = getColumnHeaderRowHeight(beans);\n if (beans.filterManager?.hasFloatingFilters()) {\n totalHeaderHeight += getFloatingFiltersHeight(beans);\n }\n totalHeaderHeight += groupHeight;\n totalHeaderHeight += headerHeight;\n if (this.headerHeight === totalHeaderHeight) {\n return;\n }\n this.headerHeight = totalHeaderHeight;\n const px = `${totalHeaderHeight + 1}px`;\n this.comp.setHeightAndMinHeight(px);\n this.eventSvc.dispatchEvent({\n type: \"headerHeightChanged\"\n });\n }\n onPivotModeChanged(beans) {\n const pivotMode = beans.colModel.isPivotMode();\n this.comp.toggleCss(\"ag-pivot-on\", pivotMode);\n this.comp.toggleCss(\"ag-pivot-off\", !pivotMode);\n }\n onDisplayedColumnsChanged(beans) {\n const columns = beans.visibleCols.allCols;\n const shouldAllowOverflow = columns.some((col) => col.isSpanHeaderHeight());\n this.comp.toggleCss(\"ag-header-allow-overflow\", shouldAllowOverflow);\n }\n onTabKeyDown(e) {\n const isRtl = this.gos.get(\"enableRtl\");\n const backwards = e.shiftKey;\n const direction = backwards !== isRtl ? \"LEFT\" : \"RIGHT\";\n const { beans } = this;\n const { headerNavigation, focusSvc } = beans;\n if (headerNavigation.navigateHorizontally(direction, true, e) || !backwards && focusSvc.focusOverlay(false) || _focusNextGridCoreContainer(beans, backwards, true)) {\n e.preventDefault();\n }\n }\n handleKeyDown(e) {\n let direction = null;\n const { headerNavigation } = this.beans;\n switch (e.key) {\n case KeyCode.LEFT:\n direction = \"LEFT\";\n case KeyCode.RIGHT: {\n if (!_exists(direction)) {\n direction = \"RIGHT\";\n }\n if (headerNavigation.navigateHorizontally(direction, false, e)) {\n e.preventDefault();\n }\n break;\n }\n case KeyCode.UP:\n direction = \"UP\";\n case KeyCode.DOWN: {\n if (!_exists(direction)) {\n direction = \"DOWN\";\n }\n if (headerNavigation.navigateVertically(direction, e)) {\n e.preventDefault();\n }\n break;\n }\n default:\n return;\n }\n }\n onFocusOut(e) {\n const { relatedTarget } = e;\n const { eGui, beans } = this;\n if (!relatedTarget && eGui.contains(_getActiveDomElement(beans))) {\n return;\n }\n if (!eGui.contains(relatedTarget)) {\n beans.focusSvc.focusedHeader = null;\n }\n }\n onHeaderContextMenu(mouseEvent, touch, touchEvent) {\n const { menuSvc, ctrlsSvc } = this.beans;\n if (!mouseEvent && !touchEvent || !menuSvc?.isHeaderContextMenuEnabled()) {\n return;\n }\n const { target } = mouseEvent ?? touch;\n if (target === this.eGui || target === ctrlsSvc.getHeaderRowContainerCtrl()?.eViewport) {\n menuSvc.showHeaderContextMenu(void 0, mouseEvent, touchEvent);\n }\n }\n};\n\n// packages/ag-grid-community/src/headerRendering/cells/abstractCell/abstractHeaderCellComp.ts\nvar AbstractHeaderCellComp = class extends Component {\n constructor(template, ctrl) {\n super(template);\n this.ctrl = ctrl;\n }\n getCtrl() {\n return this.ctrl;\n }\n};\n\n// packages/ag-grid-community/src/headerRendering/cells/column/headerCellComp.ts\nvar HeaderCellElement = {\n tag: \"div\",\n cls: \"ag-header-cell\",\n role: \"columnheader\",\n children: [\n { tag: \"div\", ref: \"eResize\", cls: \"ag-header-cell-resize\", role: \"presentation\" },\n { tag: \"div\", ref: \"eHeaderCompWrapper\", cls: \"ag-header-cell-comp-wrapper\", role: \"presentation\" }\n ]\n};\nvar HeaderCellComp = class extends AbstractHeaderCellComp {\n constructor(ctrl) {\n super(HeaderCellElement, ctrl);\n this.eResize = RefPlaceholder;\n this.eHeaderCompWrapper = RefPlaceholder;\n this.headerCompVersion = 0;\n }\n postConstruct() {\n const eGui = this.getGui();\n const refreshSelectAllGui = () => {\n const selectAllGui = this.ctrl.getSelectAllGui();\n if (selectAllGui) {\n this.eResize.insertAdjacentElement(\"afterend\", selectAllGui);\n this.addDestroyFunc(() => selectAllGui.remove());\n }\n };\n const compProxy = {\n setWidth: (width) => eGui.style.width = width,\n toggleCss: (cssClassName, on) => this.toggleCss(cssClassName, on),\n setUserStyles: (styles) => _addStylesToElement(eGui, styles),\n setAriaSort: (sort) => sort ? _setAriaSort(eGui, sort) : _removeAriaSort(eGui),\n setUserCompDetails: (compDetails) => this.setUserCompDetails(compDetails),\n getUserCompInstance: () => this.headerComp,\n refreshSelectAllGui,\n removeSelectAllGui: () => this.ctrl.getSelectAllGui()?.remove()\n };\n this.ctrl.setComp(compProxy, this.getGui(), this.eResize, this.eHeaderCompWrapper, void 0);\n refreshSelectAllGui();\n }\n destroy() {\n this.destroyHeaderComp();\n super.destroy();\n }\n destroyHeaderComp() {\n if (this.headerComp) {\n this.headerCompGui?.remove();\n this.headerComp = this.destroyBean(this.headerComp);\n this.headerCompGui = void 0;\n }\n }\n setUserCompDetails(compDetails) {\n this.headerCompVersion++;\n const versionCopy = this.headerCompVersion;\n compDetails.newAgStackInstance().then((comp) => this.afterCompCreated(versionCopy, comp));\n }\n afterCompCreated(version, headerComp) {\n if (version != this.headerCompVersion || !this.isAlive()) {\n this.destroyBean(headerComp);\n return;\n }\n this.destroyHeaderComp();\n this.headerComp = headerComp;\n this.headerCompGui = headerComp.getGui();\n this.eHeaderCompWrapper.appendChild(this.headerCompGui);\n this.ctrl.setDragSource(this.getGui());\n }\n};\n\n// packages/ag-grid-community/src/headerRendering/cells/columnGroup/headerGroupCellComp.ts\nvar HeaderGroupCellCompElement = {\n tag: \"div\",\n cls: \"ag-header-group-cell\",\n role: \"columnheader\",\n children: [\n { tag: \"div\", ref: \"eHeaderCompWrapper\", cls: \"ag-header-cell-comp-wrapper\", role: \"presentation\" },\n { tag: \"div\", ref: \"eResize\", cls: \"ag-header-cell-resize\", role: \"presentation\" }\n ]\n};\nvar HeaderGroupCellComp = class extends AbstractHeaderCellComp {\n constructor(ctrl) {\n super(HeaderGroupCellCompElement, ctrl);\n this.eResize = RefPlaceholder;\n this.eHeaderCompWrapper = RefPlaceholder;\n }\n postConstruct() {\n const eGui = this.getGui();\n const setAttribute = (key, value) => value != void 0 ? eGui.setAttribute(key, value) : eGui.removeAttribute(key);\n const compProxy = {\n toggleCss: (cssClassName, on) => this.toggleCss(cssClassName, on),\n setUserStyles: (styles) => _addStylesToElement(eGui, styles),\n setHeaderWrapperHidden: (hidden) => {\n if (hidden) {\n this.eHeaderCompWrapper.style.setProperty(\"display\", \"none\");\n } else {\n this.eHeaderCompWrapper.style.removeProperty(\"display\");\n }\n },\n setHeaderWrapperMaxHeight: (value) => {\n if (value != null) {\n this.eHeaderCompWrapper.style.setProperty(\"max-height\", `${value}px`);\n } else {\n this.eHeaderCompWrapper.style.removeProperty(\"max-height\");\n }\n this.eHeaderCompWrapper.classList.toggle(\"ag-header-cell-comp-wrapper-limited-height\", value != null);\n },\n setResizableDisplayed: (displayed) => _setDisplayed(this.eResize, displayed),\n setWidth: (width) => eGui.style.width = width,\n setAriaExpanded: (expanded) => setAttribute(\"aria-expanded\", expanded),\n setUserCompDetails: (details) => this.setUserCompDetails(details),\n getUserCompInstance: () => this.headerGroupComp\n };\n this.ctrl.setComp(compProxy, eGui, this.eResize, this.eHeaderCompWrapper, void 0);\n }\n setUserCompDetails(details) {\n details.newAgStackInstance().then((comp) => this.afterHeaderCompCreated(comp));\n }\n afterHeaderCompCreated(headerGroupComp) {\n const destroyFunc = () => this.destroyBean(headerGroupComp);\n if (!this.isAlive()) {\n destroyFunc();\n return;\n }\n const eGui = this.getGui();\n const eHeaderGroupGui = headerGroupComp.getGui();\n this.eHeaderCompWrapper.appendChild(eHeaderGroupGui);\n this.addDestroyFunc(destroyFunc);\n this.headerGroupComp = headerGroupComp;\n this.ctrl.setDragSource(eGui);\n }\n};\n\n// packages/ag-grid-community/src/headerRendering/cells/floatingFilter/headerFilterCellComp.ts\nvar HeaderFilterCellCompElement = {\n tag: \"div\",\n cls: \"ag-header-cell ag-floating-filter\",\n role: \"gridcell\",\n children: [\n { tag: \"div\", ref: \"eFloatingFilterBody\", role: \"presentation\" },\n {\n tag: \"div\",\n ref: \"eButtonWrapper\",\n cls: \"ag-floating-filter-button ag-hidden\",\n role: \"presentation\",\n children: [\n {\n tag: \"button\",\n ref: \"eButtonShowMainFilter\",\n cls: \"ag-button ag-floating-filter-button-button\",\n attrs: { type: \"button\", tabindex: \"-1\" }\n }\n ]\n }\n ]\n};\nvar HeaderFilterCellComp = class extends AbstractHeaderCellComp {\n constructor(ctrl) {\n super(HeaderFilterCellCompElement, ctrl);\n this.eFloatingFilterBody = RefPlaceholder;\n this.eButtonWrapper = RefPlaceholder;\n this.eButtonShowMainFilter = RefPlaceholder;\n }\n postConstruct() {\n const eGui = this.getGui();\n const compProxy = {\n toggleCss: (cssClassName, on) => this.toggleCss(cssClassName, on),\n setUserStyles: (styles) => _addStylesToElement(eGui, styles),\n addOrRemoveBodyCssClass: (cssClassName, on) => this.eFloatingFilterBody.classList.toggle(cssClassName, on),\n setButtonWrapperDisplayed: (displayed) => _setDisplayed(this.eButtonWrapper, displayed),\n setCompDetails: (compDetails) => this.setCompDetails(compDetails),\n getFloatingFilterComp: () => this.compPromise,\n setWidth: (width) => eGui.style.width = width,\n setMenuIcon: (eIcon) => this.eButtonShowMainFilter.appendChild(eIcon)\n };\n this.ctrl.setComp(compProxy, eGui, this.eButtonShowMainFilter, this.eFloatingFilterBody, void 0);\n }\n setCompDetails(compDetails) {\n if (!compDetails) {\n this.destroyFloatingFilterComp();\n this.compPromise = null;\n return;\n }\n this.compPromise = compDetails.newAgStackInstance();\n this.compPromise.then((comp) => this.afterCompCreated(comp));\n }\n destroy() {\n this.destroyFloatingFilterComp();\n super.destroy();\n }\n destroyFloatingFilterComp() {\n if (this.floatingFilterComp) {\n this.floatingFilterComp.getGui().remove();\n this.floatingFilterComp = this.destroyBean(this.floatingFilterComp);\n }\n }\n afterCompCreated(comp) {\n if (!comp) {\n return;\n }\n if (!this.isAlive()) {\n this.destroyBean(comp);\n return;\n }\n this.destroyFloatingFilterComp();\n this.floatingFilterComp = comp;\n this.eFloatingFilterBody.appendChild(comp.getGui());\n if (comp.afterGuiAttached) {\n comp.afterGuiAttached();\n }\n }\n};\n\n// packages/ag-grid-community/src/headerRendering/row/headerRowComp.ts\nvar HeaderRowComp = class extends Component {\n constructor(ctrl) {\n super({ tag: \"div\", cls: ctrl.headerRowClass, role: \"row\" });\n this.ctrl = ctrl;\n this.headerComps = {};\n }\n postConstruct() {\n const eGui = this.getGui();\n eGui.setAttribute(\"tabindex\", String(this.gos.get(\"tabIndex\")));\n _setAriaRowIndex(this.getGui(), this.ctrl.getAriaRowIndex());\n const compProxy = {\n setHeight: (height) => this.getGui().style.height = height,\n setTop: (top) => this.getGui().style.top = top,\n setHeaderCtrls: (ctrls, forceOrder) => this.setHeaderCtrls(ctrls, forceOrder),\n setWidth: (width) => this.getGui().style.width = width,\n setRowIndex: (rowIndex) => _setAriaRowIndex(this.getGui(), rowIndex)\n };\n this.ctrl.setComp(compProxy, void 0);\n }\n destroy() {\n this.setHeaderCtrls([], false);\n super.destroy();\n }\n setHeaderCtrls(ctrls, forceOrder) {\n if (!this.isAlive()) {\n return;\n }\n const oldComps = this.headerComps;\n this.headerComps = {};\n for (const ctrl of ctrls) {\n const id = ctrl.instanceId;\n let comp = oldComps[id];\n delete oldComps[id];\n if (comp == null) {\n comp = this.createHeaderComp(ctrl);\n this.getGui().appendChild(comp.getGui());\n }\n this.headerComps[id] = comp;\n }\n Object.values(oldComps).forEach((comp) => {\n comp.getGui().remove();\n this.destroyBean(comp);\n });\n if (forceOrder) {\n const comps = Object.values(this.headerComps);\n comps.sort(\n (a, b) => {\n const leftA = a.getCtrl().column.getLeft();\n const leftB = b.getCtrl().column.getLeft();\n return leftA - leftB;\n }\n );\n const elementsInOrder = comps.map((c) => c.getGui());\n _setDomChildOrder(this.getGui(), elementsInOrder);\n }\n }\n createHeaderComp(headerCtrl) {\n let result;\n switch (this.ctrl.type) {\n case \"group\":\n result = new HeaderGroupCellComp(headerCtrl);\n break;\n case \"filter\":\n result = new HeaderFilterCellComp(headerCtrl);\n break;\n default:\n result = new HeaderCellComp(headerCtrl);\n break;\n }\n this.createBean(result);\n result.setParentComponent(this);\n return result;\n }\n};\n\n// packages/ag-grid-community/src/rendering/features/setLeftFeature.ts\nvar SetLeftFeature = class extends BeanStub {\n constructor(columnOrGroup, eCell, beans, colsSpanning) {\n super();\n this.columnOrGroup = columnOrGroup;\n this.eCell = eCell;\n this.colsSpanning = colsSpanning;\n this.columnOrGroup = columnOrGroup;\n this.ariaEl = eCell.querySelector(\"[role=columnheader]\") || eCell;\n this.beans = beans;\n }\n setColsSpanning(colsSpanning) {\n this.colsSpanning = colsSpanning;\n this.onLeftChanged();\n }\n getColumnOrGroup() {\n const { beans, colsSpanning } = this;\n if (beans.gos.get(\"enableRtl\") && colsSpanning) {\n return _last(colsSpanning);\n }\n return this.columnOrGroup;\n }\n postConstruct() {\n const onLeftChanged = this.onLeftChanged.bind(this);\n this.addManagedListeners(this.columnOrGroup, { leftChanged: onLeftChanged });\n this.setLeftFirstTime();\n this.addManagedEventListeners({ displayedColumnsWidthChanged: onLeftChanged });\n this.addManagedPropertyListener(\"domLayout\", onLeftChanged);\n }\n setLeftFirstTime() {\n const { gos, colAnimation } = this.beans;\n const suppressMoveAnimation = gos.get(\"suppressColumnMoveAnimation\");\n const oldLeftExists = _exists(this.columnOrGroup.getOldLeft());\n const animateColumnMove = colAnimation?.isActive() && oldLeftExists && !suppressMoveAnimation;\n if (animateColumnMove) {\n this.animateInLeft();\n } else {\n this.onLeftChanged();\n }\n }\n animateInLeft() {\n const colOrGroup = this.getColumnOrGroup();\n const oldActualLeft = this.modifyLeftForPrintLayout(colOrGroup, colOrGroup.getOldLeft());\n const actualLeft = this.modifyLeftForPrintLayout(colOrGroup, colOrGroup.getLeft());\n this.setLeft(oldActualLeft);\n this.actualLeft = actualLeft;\n this.beans.colAnimation.executeNextVMTurn(() => {\n if (this.actualLeft === actualLeft) {\n this.setLeft(actualLeft);\n }\n });\n }\n onLeftChanged() {\n const colOrGroup = this.getColumnOrGroup();\n const left = colOrGroup.getLeft();\n this.actualLeft = this.modifyLeftForPrintLayout(colOrGroup, left);\n this.setLeft(this.actualLeft);\n }\n modifyLeftForPrintLayout(colOrGroup, leftPosition) {\n const { gos, visibleCols } = this.beans;\n const printLayout = _isDomLayout(gos, \"print\");\n if (!printLayout) {\n return leftPosition;\n }\n if (colOrGroup.getPinned() === \"left\") {\n return leftPosition;\n }\n const leftWidth = visibleCols.getColsLeftWidth();\n if (colOrGroup.getPinned() === \"right\") {\n const bodyWidth = visibleCols.bodyWidth;\n return leftWidth + bodyWidth + leftPosition;\n }\n return leftWidth + leftPosition;\n }\n setLeft(value) {\n if (_exists(value)) {\n this.eCell.style.left = `${value}px`;\n }\n if (isColumnGroup(this.columnOrGroup)) {\n const children = this.columnOrGroup.getLeafColumns();\n if (!children.length) {\n return;\n }\n if (children.length > 1) {\n _setAriaColSpan(this.ariaEl, children.length);\n }\n }\n }\n};\n\n// packages/ag-grid-community/src/headerRendering/cells/abstractCell/abstractHeaderCellCtrl.ts\nvar instanceIdSequence2 = 0;\nvar DOM_DATA_KEY_HEADER_CTRL = \"headerCtrl\";\nvar AbstractHeaderCellCtrl = class extends BeanStub {\n constructor(column, rowCtrl) {\n super();\n this.column = column;\n this.rowCtrl = rowCtrl;\n this.resizeToggleTimeout = 0;\n this.resizeMultiplier = 1;\n this.resizeFeature = null;\n this.lastFocusEvent = null;\n this.dragSource = null;\n this.reAttemptToFocus = false;\n this.instanceId = column.getUniqueId() + \"-\" + instanceIdSequence2++;\n }\n postConstruct() {\n const refreshTabIndex = this.refreshTabIndex.bind(this);\n this.addManagedPropertyListeners([\"suppressHeaderFocus\"], refreshTabIndex);\n this.addManagedEventListeners({\n overlayExclusiveChanged: refreshTabIndex\n });\n }\n setComp(comp, eGui, eResize, eHeaderCompWrapper, compBean) {\n eGui.setAttribute(\"col-id\", this.column.colIdSanitised);\n this.wireComp(comp, eGui, eResize, eHeaderCompWrapper, compBean);\n if (this.reAttemptToFocus) {\n this.reAttemptToFocus = false;\n this.focus(this.lastFocusEvent ?? void 0);\n }\n }\n shouldStopEventPropagation(event) {\n const { headerRowIndex, column } = this.beans.focusSvc.focusedHeader;\n const colDef = column.getDefinition();\n const colDefFunc = colDef?.suppressHeaderKeyboardEvent;\n if (!_exists(colDefFunc)) {\n return false;\n }\n const params = _addGridCommonParams(this.gos, {\n colDef,\n column,\n headerRowIndex,\n event\n });\n return !!colDefFunc(params);\n }\n getWrapperHasFocus() {\n const activeEl = _getActiveDomElement(this.beans);\n return activeEl === this.eGui;\n }\n setGui(eGui, compBean) {\n this.eGui = eGui;\n this.addDomData(compBean);\n compBean.addManagedListeners(this.beans.eventSvc, {\n displayedColumnsChanged: this.onDisplayedColumnsChanged.bind(this)\n });\n compBean.addManagedElementListeners(this.eGui, {\n focus: this.onGuiFocus.bind(this)\n });\n this.onDisplayedColumnsChanged();\n this.refreshTabIndex();\n }\n refreshHeaderStyles() {\n const colDef = this.column.getDefinition();\n if (!colDef) {\n return;\n }\n const { headerStyle } = colDef;\n let styles;\n if (typeof headerStyle === \"function\") {\n const cellStyleParams = this.getHeaderClassParams();\n styles = headerStyle(cellStyleParams);\n } else {\n styles = headerStyle;\n }\n if (styles) {\n this.comp.setUserStyles(styles);\n }\n }\n onGuiFocus() {\n this.eventSvc.dispatchEvent({\n type: \"headerFocused\",\n column: this.column\n });\n }\n setupAutoHeight(params) {\n const { wrapperElement, checkMeasuringCallback, compBean } = params;\n const { beans } = this;\n const measureHeight = (timesCalled) => {\n if (!this.isAlive() || !compBean.isAlive()) {\n return;\n }\n const { paddingTop, paddingBottom, borderBottomWidth, borderTopWidth } = _getElementSize(this.eGui);\n const extraHeight = paddingTop + paddingBottom + borderBottomWidth + borderTopWidth;\n const wrapperHeight = wrapperElement.offsetHeight;\n const autoHeight = wrapperHeight + extraHeight;\n if (timesCalled < 5) {\n const doc = _getDocument(beans);\n const notYetInDom = !doc?.contains(wrapperElement);\n const possiblyNoContentYet = autoHeight == 0;\n if (notYetInDom || possiblyNoContentYet) {\n _batchCall(() => measureHeight(timesCalled + 1), \"raf\", beans);\n return;\n }\n }\n this.setColHeaderHeight(this.column, autoHeight);\n };\n let isMeasuring = false;\n let stopResizeObserver;\n const checkMeasuring = () => {\n const newValue = this.column.isAutoHeaderHeight();\n if (newValue && !isMeasuring) {\n startMeasuring();\n }\n if (!newValue && isMeasuring) {\n stopMeasuring();\n }\n };\n const startMeasuring = () => {\n isMeasuring = true;\n this.comp.toggleCss(\"ag-header-cell-auto-height\", true);\n measureHeight(0);\n stopResizeObserver = _observeResize(this.beans, wrapperElement, () => measureHeight(0));\n };\n const stopMeasuring = () => {\n isMeasuring = false;\n if (stopResizeObserver) {\n stopResizeObserver();\n }\n this.comp.toggleCss(\"ag-header-cell-auto-height\", false);\n stopResizeObserver = void 0;\n };\n checkMeasuring();\n compBean.addDestroyFunc(() => stopMeasuring());\n compBean.addManagedListeners(this.column, { widthChanged: () => isMeasuring && measureHeight(0) });\n compBean.addManagedEventListeners({\n sortChanged: () => {\n if (isMeasuring) {\n window.setTimeout(() => measureHeight(0));\n }\n }\n });\n if (checkMeasuringCallback) {\n checkMeasuringCallback(checkMeasuring);\n }\n }\n onDisplayedColumnsChanged() {\n const { comp, column, beans, eGui } = this;\n if (!comp || !column || !eGui) {\n return;\n }\n refreshFirstAndLastStyles(comp, column, beans.visibleCols);\n _setAriaColIndex(eGui, beans.visibleCols.getAriaColIndex(column));\n }\n addResizeAndMoveKeyboardListeners(compBean) {\n compBean.addManagedListeners(this.eGui, {\n keydown: this.onGuiKeyDown.bind(this),\n keyup: this.onGuiKeyUp.bind(this)\n });\n }\n refreshTabIndex() {\n const suppressHeaderFocus = _isHeaderFocusSuppressed(this.beans);\n if (this.eGui) {\n _addOrRemoveAttribute(this.eGui, \"tabindex\", suppressHeaderFocus ? null : \"-1\");\n }\n }\n onGuiKeyDown(e) {\n const activeEl = _getActiveDomElement(this.beans);\n const isLeftOrRight = e.key === KeyCode.LEFT || e.key === KeyCode.RIGHT;\n if (this.isResizing) {\n e.preventDefault();\n e.stopImmediatePropagation();\n }\n if (\n // if elements within the header are focused, we don't process the event\n activeEl !== this.eGui || // if shiftKey and altKey are not pressed, it's cell navigation so we don't process the event\n !e.shiftKey && !e.altKey\n ) {\n return;\n }\n if (this.isResizing || isLeftOrRight) {\n e.preventDefault();\n e.stopImmediatePropagation();\n }\n if (!isLeftOrRight) {\n return;\n }\n const isLeft = e.key === KeyCode.LEFT !== this.gos.get(\"enableRtl\");\n const direction = isLeft ? \"left\" : \"right\";\n if (e.altKey) {\n this.isResizing = true;\n this.resizeMultiplier += 1;\n const diff = this.getViewportAdjustedResizeDiff(e);\n this.resizeHeader(diff, e.shiftKey);\n this.resizeFeature?.toggleColumnResizing(true);\n } else {\n this.moveHeader(direction);\n }\n }\n moveHeader(hDirection) {\n this.beans.colMoves?.moveHeader(hDirection, this.eGui, this.column, this.rowCtrl.pinned, this);\n }\n getViewportAdjustedResizeDiff(e) {\n const diff = this.getResizeDiff(e);\n const { pinnedCols } = this.beans;\n return pinnedCols ? pinnedCols.getHeaderResizeDiff(diff, this.column) : diff;\n }\n getResizeDiff(e) {\n const { gos, column } = this;\n let isLeft = e.key === KeyCode.LEFT !== gos.get(\"enableRtl\");\n const pinned = column.getPinned();\n const isRtl = gos.get(\"enableRtl\");\n if (pinned) {\n if (isRtl !== (pinned === \"right\")) {\n isLeft = !isLeft;\n }\n }\n return (isLeft ? -1 : 1) * this.resizeMultiplier;\n }\n onGuiKeyUp() {\n if (!this.isResizing) {\n return;\n }\n if (this.resizeToggleTimeout) {\n window.clearTimeout(this.resizeToggleTimeout);\n this.resizeToggleTimeout = 0;\n }\n this.isResizing = false;\n this.resizeMultiplier = 1;\n this.resizeToggleTimeout = window.setTimeout(() => {\n this.resizeFeature?.toggleColumnResizing(false);\n }, 150);\n }\n handleKeyDown(e) {\n const wrapperHasFocus = this.getWrapperHasFocus();\n switch (e.key) {\n case KeyCode.PAGE_DOWN:\n case KeyCode.PAGE_UP:\n case KeyCode.PAGE_HOME:\n case KeyCode.PAGE_END:\n if (wrapperHasFocus) {\n e.preventDefault();\n }\n }\n }\n addDomData(compBean) {\n const key = DOM_DATA_KEY_HEADER_CTRL;\n const { eGui, gos } = this;\n _setDomData(gos, eGui, key, this);\n compBean.addDestroyFunc(() => _setDomData(gos, eGui, key, null));\n }\n focus(event) {\n if (!this.isAlive()) {\n return false;\n }\n const { eGui } = this;\n if (!eGui) {\n this.reAttemptToFocus = true;\n } else {\n eGui.focus();\n this.lastFocusEvent = event || null;\n }\n return true;\n }\n focusThis() {\n this.beans.focusSvc.focusedHeader = { headerRowIndex: this.rowCtrl.rowIndex, column: this.column };\n }\n removeDragSource() {\n if (this.dragSource) {\n this.beans.dragAndDrop?.removeDragSource(this.dragSource);\n this.dragSource = null;\n }\n }\n handleContextMenuMouseEvent(mouseEvent, touchEvent, column) {\n const event = mouseEvent ?? touchEvent;\n const { menuSvc, gos } = this.beans;\n if (gos.get(\"preventDefaultOnContextMenu\")) {\n event.preventDefault();\n }\n if (menuSvc?.isHeaderContextMenuEnabled(column)) {\n menuSvc.showHeaderContextMenu(column, mouseEvent, touchEvent);\n }\n this.dispatchColumnMouseEvent(\"columnHeaderContextMenu\", column);\n }\n dispatchColumnMouseEvent(eventType, column) {\n this.eventSvc.dispatchEvent({\n type: eventType,\n column\n });\n }\n setColHeaderHeight(col, height) {\n if (!col.setAutoHeaderHeight(height)) {\n return;\n }\n const { eventSvc } = this;\n if (col.isColumn) {\n eventSvc.dispatchEvent({\n type: \"columnHeaderHeightChanged\",\n column: col,\n columns: [col],\n source: \"autosizeColumnHeaderHeight\"\n });\n } else {\n eventSvc.dispatchEvent({\n type: \"columnGroupHeaderHeightChanged\",\n columnGroup: col,\n source: \"autosizeColumnGroupHeaderHeight\"\n });\n }\n }\n clearComponent() {\n this.removeDragSource();\n this.resizeFeature = null;\n this.comp = null;\n this.eGui = null;\n }\n destroy() {\n super.destroy();\n this.column = null;\n this.lastFocusEvent = null;\n this.rowCtrl = null;\n }\n};\n\n// packages/ag-grid-community/src/headerRendering/cells/column/headerCellCtrl.ts\nvar HeaderCellCtrl = class extends AbstractHeaderCellCtrl {\n constructor() {\n super(...arguments);\n this.refreshFunctions = {};\n this.userHeaderClasses = /* @__PURE__ */ new Set();\n this.ariaDescriptionProperties = /* @__PURE__ */ new Map();\n }\n wireComp(comp, eGui, eResize, eHeaderCompWrapper, compBeanInput) {\n this.comp = comp;\n const { rowCtrl, column, beans } = this;\n const { colResize, context, colHover, rangeSvc } = beans;\n const compBean = setupCompBean(this, context, compBeanInput);\n this.setGui(eGui, compBean);\n this.updateState();\n this.setupWidth(compBean);\n this.setupMovingCss(compBean);\n this.setupMenuClass(compBean);\n this.setupSortableClass(compBean);\n this.setupWrapTextClass();\n this.refreshSpanHeaderHeight();\n this.setupAutoHeight({\n wrapperElement: eHeaderCompWrapper,\n checkMeasuringCallback: (checkMeasuring) => this.setRefreshFunction(\"measuring\", checkMeasuring),\n compBean\n });\n this.addColumnHoverListener(compBean);\n this.setupFilterClass(compBean);\n this.setupStylesFromColDef();\n this.setupClassesFromColDef();\n this.setupTooltip();\n this.addActiveHeaderMouseListeners(compBean);\n this.setupSelectAll(compBean);\n this.setupUserComp();\n this.refreshAria();\n if (colResize) {\n this.resizeFeature = compBean.createManagedBean(\n colResize.createResizeFeature(rowCtrl.pinned, column, eResize, comp, this)\n );\n } else {\n _setDisplayed(eResize, false);\n }\n colHover?.createHoverFeature(compBean, [column], eGui);\n rangeSvc?.createRangeHighlightFeature(compBean, column, comp);\n compBean.createManagedBean(new SetLeftFeature(column, eGui, beans));\n compBean.createManagedBean(\n new ManagedFocusFeature(eGui, {\n shouldStopEventPropagation: (e) => this.shouldStopEventPropagation(e),\n onTabKeyDown: () => null,\n handleKeyDown: this.handleKeyDown.bind(this),\n onFocusIn: this.onFocusIn.bind(this),\n onFocusOut: this.onFocusOut.bind(this)\n })\n );\n this.addResizeAndMoveKeyboardListeners(compBean);\n compBean.addManagedPropertyListeners(\n [\"suppressMovableColumns\", \"suppressMenuHide\", \"suppressAggFuncInHeader\", \"enableAdvancedFilter\"],\n () => this.refresh()\n );\n compBean.addManagedListeners(column, { colDefChanged: () => this.refresh() });\n compBean.addManagedListeners(column, { headerHighlightChanged: this.onHeaderHighlightChanged.bind(this) });\n const listener = () => this.checkDisplayName();\n compBean.addManagedEventListeners({\n columnValueChanged: listener,\n columnRowGroupChanged: listener,\n columnPivotChanged: listener,\n headerHeightChanged: this.onHeaderHeightChanged.bind(this)\n });\n compBean.addDestroyFunc(() => {\n this.refreshFunctions = {};\n this.selectAllFeature = null;\n this.dragSourceElement = void 0;\n this.userCompDetails = null;\n this.userHeaderClasses.clear();\n this.ariaDescriptionProperties.clear();\n this.clearComponent();\n });\n }\n resizeHeader(delta, shiftKey) {\n this.beans.colResize?.resizeHeader(this.column, delta, shiftKey);\n }\n getHeaderClassParams() {\n const { column, beans } = this;\n const colDef = column.colDef;\n return _addGridCommonParams(beans.gos, {\n colDef,\n column,\n floatingFilter: false\n });\n }\n setupUserComp() {\n const compDetails = this.lookupUserCompDetails();\n if (compDetails) {\n this.setCompDetails(compDetails);\n }\n }\n setCompDetails(compDetails) {\n this.userCompDetails = compDetails;\n this.comp.setUserCompDetails(compDetails);\n }\n lookupUserCompDetails() {\n const params = this.createParams();\n const colDef = this.column.getColDef();\n return _getHeaderCompDetails(this.beans.userCompFactory, colDef, params);\n }\n createParams() {\n const { menuSvc, sortSvc, colFilter, gos } = this.beans;\n const params = _addGridCommonParams(gos, {\n column: this.column,\n displayName: this.displayName,\n enableSorting: this.column.isSortable(),\n enableMenu: this.menuEnabled,\n enableFilterButton: this.openFilterEnabled && !!menuSvc?.isHeaderFilterButtonEnabled(this.column),\n enableFilterIcon: !!colFilter && (!this.openFilterEnabled || _isLegacyMenuEnabled(this.gos)),\n showColumnMenu: (buttonElement, onClosedCallback) => {\n menuSvc?.showColumnMenu({\n column: this.column,\n buttonElement,\n positionBy: \"button\",\n onClosedCallback\n });\n },\n showColumnMenuAfterMouseClick: (mouseEvent, onClosedCallback) => {\n menuSvc?.showColumnMenu({\n column: this.column,\n mouseEvent,\n positionBy: \"mouse\",\n onClosedCallback\n });\n },\n showFilter: (buttonElement) => {\n menuSvc?.showFilterMenu({\n column: this.column,\n buttonElement,\n containerType: \"columnFilter\",\n positionBy: \"button\"\n });\n },\n progressSort: (multiSort) => {\n sortSvc?.progressSort(this.column, !!multiSort, \"uiColumnSorted\");\n },\n setSort: (sort, multiSort) => {\n sortSvc?.setSortForColumn(this.column, sort, !!multiSort, \"uiColumnSorted\");\n },\n eGridHeader: this.eGui,\n setTooltip: (value, shouldDisplayTooltip) => {\n gos.assertModuleRegistered(\"Tooltip\", 3);\n this.setupTooltip(value, shouldDisplayTooltip);\n }\n });\n return params;\n }\n setupSelectAll(compBean) {\n const { selectionSvc } = this.beans;\n if (!selectionSvc) {\n return;\n }\n this.selectAllFeature = compBean.createOptionalManagedBean(selectionSvc.createSelectAllFeature(this.column));\n this.selectAllFeature?.setComp(this);\n compBean.addManagedPropertyListener(\"rowSelection\", () => {\n const selectAllFeature = selectionSvc.createSelectAllFeature(this.column);\n if (selectAllFeature && !this.selectAllFeature) {\n this.selectAllFeature = compBean.createManagedBean(selectAllFeature);\n this.selectAllFeature?.setComp(this);\n this.comp.refreshSelectAllGui();\n } else if (this.selectAllFeature && !selectAllFeature) {\n this.comp.removeSelectAllGui();\n this.selectAllFeature = this.destroyBean(this.selectAllFeature);\n }\n });\n }\n getSelectAllGui() {\n return this.selectAllFeature?.getCheckboxGui();\n }\n handleKeyDown(e) {\n super.handleKeyDown(e);\n if (e.key === KeyCode.SPACE) {\n this.selectAllFeature?.onSpaceKeyDown(e);\n }\n if (e.key === KeyCode.ENTER) {\n this.onEnterKeyDown(e);\n }\n if (e.key === KeyCode.DOWN && e.altKey) {\n this.showMenuOnKeyPress(e, false);\n }\n }\n onEnterKeyDown(e) {\n if (e.ctrlKey || e.metaKey) {\n this.showMenuOnKeyPress(e, true);\n } else if (this.sortable) {\n this.beans.sortSvc?.progressSort(this.column, e.shiftKey, \"uiColumnSorted\");\n }\n }\n showMenuOnKeyPress(e, isFilterShortcut) {\n const headerComp = this.comp.getUserCompInstance();\n if (!isHeaderComp(headerComp)) {\n return;\n }\n if (headerComp.onMenuKeyboardShortcut(isFilterShortcut)) {\n e.preventDefault();\n }\n }\n onFocusIn(e) {\n if (!this.eGui.contains(e.relatedTarget)) {\n this.focusThis();\n this.announceAriaDescription();\n }\n if (_isKeyboardMode()) {\n this.setActiveHeader(true);\n }\n }\n onFocusOut(e) {\n if (this.eGui.contains(e.relatedTarget)) {\n return;\n }\n this.setActiveHeader(false);\n }\n setupTooltip(value, shouldDisplayTooltip) {\n this.tooltipFeature = this.beans.tooltipSvc?.setupHeaderTooltip(\n this.tooltipFeature,\n this,\n value,\n shouldDisplayTooltip\n );\n }\n setupStylesFromColDef() {\n this.setRefreshFunction(\"headerStyles\", this.refreshHeaderStyles.bind(this));\n this.refreshHeaderStyles();\n }\n setupClassesFromColDef() {\n const refreshHeaderClasses = () => {\n const colDef = this.column.getColDef();\n const classes = _getHeaderClassesFromColDef(colDef, this.gos, this.column, null);\n const oldClasses = this.userHeaderClasses;\n this.userHeaderClasses = new Set(classes);\n for (const c of classes) {\n if (oldClasses.has(c)) {\n oldClasses.delete(c);\n } else {\n this.comp.toggleCss(c, true);\n }\n }\n for (const c of oldClasses) {\n this.comp.toggleCss(c, false);\n }\n };\n this.setRefreshFunction(\"headerClasses\", refreshHeaderClasses);\n refreshHeaderClasses();\n }\n setDragSource(eSource) {\n this.dragSourceElement = eSource;\n this.removeDragSource();\n if (!eSource || !this.draggable) {\n return;\n }\n this.dragSource = this.beans.colMoves?.setDragSourceForHeader(eSource, this.column, this.displayName) ?? null;\n }\n updateState() {\n const { menuSvc } = this.beans;\n this.menuEnabled = !!menuSvc?.isColumnMenuInHeaderEnabled(this.column);\n this.openFilterEnabled = !!menuSvc?.isFilterMenuInHeaderEnabled(this.column);\n this.sortable = this.column.isSortable();\n this.displayName = this.calculateDisplayName();\n this.draggable = this.workOutDraggable();\n }\n setRefreshFunction(name, func) {\n this.refreshFunctions[name] = func;\n }\n refresh() {\n this.updateState();\n this.refreshHeaderComp();\n this.refreshAria();\n for (const f of Object.values(this.refreshFunctions)) {\n f();\n }\n }\n refreshHeaderComp() {\n const newCompDetails = this.lookupUserCompDetails();\n if (!newCompDetails) {\n return;\n }\n const compInstance = this.comp.getUserCompInstance();\n const attemptRefresh = compInstance != null && this.userCompDetails.componentClass == newCompDetails.componentClass;\n const headerCompRefreshed = attemptRefresh ? this.attemptHeaderCompRefresh(newCompDetails.params) : false;\n if (headerCompRefreshed) {\n this.setDragSource(this.dragSourceElement);\n } else {\n this.setCompDetails(newCompDetails);\n }\n }\n attemptHeaderCompRefresh(params) {\n const headerComp = this.comp.getUserCompInstance();\n if (!headerComp) {\n return false;\n }\n if (!headerComp.refresh) {\n return false;\n }\n const res = headerComp.refresh(params);\n return res;\n }\n calculateDisplayName() {\n return this.beans.colNames.getDisplayNameForColumn(this.column, \"header\", true);\n }\n checkDisplayName() {\n if (this.displayName !== this.calculateDisplayName()) {\n this.refresh();\n }\n }\n workOutDraggable() {\n const colDef = this.column.getColDef();\n const isSuppressMovableColumns = this.gos.get(\"suppressMovableColumns\");\n const colCanMove = !isSuppressMovableColumns && !colDef.suppressMovable && !colDef.lockPosition;\n return !!colCanMove || !!colDef.enableRowGroup || !!colDef.enablePivot;\n }\n setupWidth(compBean) {\n const listener = () => {\n const columnWidth = this.column.getActualWidth();\n this.comp.setWidth(`${columnWidth}px`);\n };\n compBean.addManagedListeners(this.column, { widthChanged: listener });\n listener();\n }\n setupMovingCss(compBean) {\n const listener = () => {\n this.comp.toggleCss(\"ag-header-cell-moving\", this.column.isMoving());\n };\n compBean.addManagedListeners(this.column, { movingChanged: listener });\n listener();\n }\n setupMenuClass(compBean) {\n const listener = () => {\n this.comp?.toggleCss(\"ag-column-menu-visible\", this.column.isMenuVisible());\n };\n compBean.addManagedListeners(this.column, { menuVisibleChanged: listener });\n listener();\n }\n setupSortableClass(compBean) {\n const updateSortableCssClass = () => {\n this.comp.toggleCss(\"ag-header-cell-sortable\", !!this.sortable);\n };\n updateSortableCssClass();\n this.setRefreshFunction(\"updateSortable\", updateSortableCssClass);\n compBean.addManagedEventListeners({ sortChanged: this.refreshAriaSort.bind(this) });\n }\n setupFilterClass(compBean) {\n const listener = () => {\n const isFilterActive = this.column.isFilterActive();\n this.comp.toggleCss(\"ag-header-cell-filtered\", isFilterActive);\n this.refreshAria();\n };\n compBean.addManagedListeners(this.column, { filterActiveChanged: listener });\n listener();\n }\n setupWrapTextClass() {\n const listener = () => {\n const wrapText = !!this.column.getColDef().wrapHeaderText;\n this.comp.toggleCss(\"ag-header-cell-wrap-text\", wrapText);\n };\n listener();\n this.setRefreshFunction(\"wrapText\", listener);\n }\n onHeaderHighlightChanged() {\n const highlighted = this.column.getHighlighted();\n const beforeOn = highlighted === 0 /* Before */;\n const afterOn = highlighted === 1 /* After */;\n this.comp.toggleCss(\"ag-header-highlight-before\", beforeOn);\n this.comp.toggleCss(\"ag-header-highlight-after\", afterOn);\n }\n onDisplayedColumnsChanged() {\n super.onDisplayedColumnsChanged();\n if (!this.isAlive()) {\n return;\n }\n this.onHeaderHeightChanged();\n }\n onHeaderHeightChanged() {\n this.refreshSpanHeaderHeight();\n }\n refreshSpanHeaderHeight() {\n const { eGui, column, comp, beans } = this;\n const groupHeaderHeight = getGroupRowsHeight(this.beans);\n const isZeroGroupHeight = groupHeaderHeight.reduce((total, next) => total + next, 0) === 0;\n comp.toggleCss(\"ag-header-parent-hidden\", isZeroGroupHeight);\n if (!column.isSpanHeaderHeight()) {\n eGui.style.removeProperty(\"top\");\n eGui.style.removeProperty(\"height\");\n comp.toggleCss(\"ag-header-span-height\", false);\n comp.toggleCss(\"ag-header-span-total\", false);\n return;\n }\n const { numberOfParents, isSpanningTotal } = this.column.getColumnGroupPaddingInfo();\n comp.toggleCss(\"ag-header-span-height\", numberOfParents > 0);\n const headerHeight = getColumnHeaderRowHeight(beans);\n if (numberOfParents === 0) {\n comp.toggleCss(\"ag-header-span-total\", false);\n eGui.style.setProperty(\"top\", `0px`);\n eGui.style.setProperty(\"height\", `${headerHeight}px`);\n return;\n }\n comp.toggleCss(\"ag-header-span-total\", isSpanningTotal);\n const indexToStartSpanning = (this.column.getFirstRealParent()?.getLevel() ?? -1) + 1;\n const rowsToSpan = groupHeaderHeight.length - indexToStartSpanning;\n let extraHeight = 0;\n for (let i = 0; i < rowsToSpan; i++) {\n extraHeight += groupHeaderHeight[groupHeaderHeight.length - 1 - i];\n }\n eGui.style.setProperty(\"top\", `${-extraHeight}px`);\n eGui.style.setProperty(\"height\", `${headerHeight + extraHeight}px`);\n }\n refreshAriaSort() {\n if (this.sortable) {\n const translate = this.getLocaleTextFunc();\n const sort = this.beans.sortSvc?.getDisplaySortForColumn(this.column) || null;\n this.comp.setAriaSort(_getAriaSortState(sort));\n this.setAriaDescriptionProperty(\"sort\", translate(\"ariaSortableColumn\", \"Press ENTER to sort\"));\n } else {\n this.comp.setAriaSort();\n this.setAriaDescriptionProperty(\"sort\", null);\n }\n }\n refreshAriaMenu() {\n if (this.menuEnabled) {\n const translate = this.getLocaleTextFunc();\n this.setAriaDescriptionProperty(\"menu\", translate(\"ariaMenuColumn\", \"Press ALT DOWN to open column menu\"));\n } else {\n this.setAriaDescriptionProperty(\"menu\", null);\n }\n }\n refreshAriaFilterButton() {\n if (this.openFilterEnabled && !_isLegacyMenuEnabled(this.gos)) {\n const translate = this.getLocaleTextFunc();\n this.setAriaDescriptionProperty(\n \"filterButton\",\n translate(\"ariaFilterColumn\", \"Press CTRL ENTER to open filter\")\n );\n } else {\n this.setAriaDescriptionProperty(\"filterButton\", null);\n }\n }\n refreshAriaFiltered() {\n const translate = this.getLocaleTextFunc();\n const isFilterActive = this.column.isFilterActive();\n if (isFilterActive) {\n this.setAriaDescriptionProperty(\"filter\", translate(\"ariaColumnFiltered\", \"Column Filtered\"));\n } else {\n this.setAriaDescriptionProperty(\"filter\", null);\n }\n }\n setAriaDescriptionProperty(property, value) {\n if (value != null) {\n this.ariaDescriptionProperties.set(property, value);\n } else {\n this.ariaDescriptionProperties.delete(property);\n }\n }\n announceAriaDescription() {\n if (!this.eGui.contains(_getActiveDomElement(this.beans))) {\n return;\n }\n const ariaDescription = Array.from(this.ariaDescriptionProperties.keys()).sort((a, b) => a === \"filter\" ? -1 : b.charCodeAt(0) - a.charCodeAt(0)).map((key) => this.ariaDescriptionProperties.get(key)).join(\". \");\n this.beans.ariaAnnounce?.announceValue(ariaDescription, \"columnHeader\");\n }\n refreshAria() {\n this.refreshAriaSort();\n this.refreshAriaMenu();\n this.refreshAriaFilterButton();\n this.refreshAriaFiltered();\n }\n addColumnHoverListener(compBean) {\n this.beans.colHover?.addHeaderColumnHoverListener(compBean, this.comp, this.column);\n }\n addActiveHeaderMouseListeners(compBean) {\n const listener = (e) => this.handleMouseOverChange(e.type === \"mouseenter\");\n const clickListener = () => {\n this.setActiveHeader(true);\n this.dispatchColumnMouseEvent(\"columnHeaderClicked\", this.column);\n };\n const contextMenuListener = (event) => this.handleContextMenuMouseEvent(event, void 0, this.column);\n compBean.addManagedListeners(this.eGui, {\n mouseenter: listener,\n mouseleave: listener,\n click: clickListener,\n contextmenu: contextMenuListener\n });\n }\n handleMouseOverChange(isMouseOver) {\n this.setActiveHeader(isMouseOver);\n this.eventSvc.dispatchEvent({\n type: isMouseOver ? \"columnHeaderMouseOver\" : \"columnHeaderMouseLeave\",\n column: this.column\n });\n }\n setActiveHeader(active) {\n this.comp.toggleCss(\"ag-header-active\", active);\n }\n getAnchorElementForMenu(isFilter) {\n const headerComp = this.comp.getUserCompInstance();\n if (isHeaderComp(headerComp)) {\n return headerComp.getAnchorElementForMenu(isFilter);\n }\n return this.eGui;\n }\n destroy() {\n this.tooltipFeature = this.destroyBean(this.tooltipFeature);\n super.destroy();\n }\n};\nfunction isHeaderComp(headerComp) {\n return typeof headerComp?.getAnchorElementForMenu === \"function\" && typeof headerComp.onMenuKeyboardShortcut === \"function\";\n}\n\n// packages/ag-grid-community/src/headerRendering/row/headerRowCtrl.ts\nvar instanceIdSequence3 = 0;\nvar HeaderRowCtrl = class extends BeanStub {\n constructor(rowIndex, pinned, type) {\n super();\n this.rowIndex = rowIndex;\n this.pinned = pinned;\n this.type = type;\n this.instanceId = instanceIdSequence3++;\n this.comp = null;\n this.allCtrls = [];\n let typeClass = \"ag-header-row-column\";\n if (type === \"group\") {\n typeClass = \"ag-header-row-group\";\n } else if (type === \"filter\") {\n typeClass = \"ag-header-row-filter\";\n }\n this.headerRowClass = `ag-header-row ${typeClass}`;\n }\n setRowIndex(rowIndex) {\n this.rowIndex = rowIndex;\n this.comp?.setRowIndex(this.getAriaRowIndex());\n this.onRowHeightChanged();\n }\n postConstruct() {\n this.isPrintLayout = _isDomLayout(this.gos, \"print\");\n this.isEnsureDomOrder = this.gos.get(\"ensureDomOrder\");\n }\n /** Checks that every header cell that is currently visible has been rendered.\n * Can only be false under some circumstances when using React\n */\n areCellsRendered() {\n if (!this.comp) {\n return false;\n }\n return this.allCtrls.every((ctrl) => ctrl.eGui != null);\n }\n /**\n *\n * @param comp Proxy to the actual component\n * @param initCompState Should the component be initialised with the current state of the controller. Default: true\n */\n setComp(comp, compBean, initCompState = true) {\n this.comp = comp;\n compBean = setupCompBean(this, this.beans.context, compBean);\n if (initCompState) {\n this.setRowIndex(this.rowIndex);\n this.onVirtualColumnsChanged();\n }\n this.setWidth();\n this.addEventListeners(compBean);\n }\n getAriaRowIndex() {\n return this.rowIndex + 1;\n }\n addEventListeners(compBean) {\n const onHeightChanged = this.onRowHeightChanged.bind(this);\n const onDisplayedColumnsChanged = this.onDisplayedColumnsChanged.bind(this);\n compBean.addManagedEventListeners({\n columnResized: this.setWidth.bind(this),\n displayedColumnsChanged: onDisplayedColumnsChanged,\n virtualColumnsChanged: (params) => this.onVirtualColumnsChanged(params.afterScroll),\n columnGroupHeaderHeightChanged: onHeightChanged,\n columnHeaderHeightChanged: onHeightChanged,\n gridStylesChanged: onHeightChanged,\n advancedFilterEnabledChanged: onHeightChanged\n });\n compBean.addManagedPropertyListener(\"domLayout\", onDisplayedColumnsChanged);\n compBean.addManagedPropertyListener(\"ensureDomOrder\", (e) => this.isEnsureDomOrder = e.currentValue);\n compBean.addManagedPropertyListeners(\n [\n \"headerHeight\",\n \"pivotHeaderHeight\",\n \"groupHeaderHeight\",\n \"pivotGroupHeaderHeight\",\n \"floatingFiltersHeight\"\n ],\n onHeightChanged\n );\n }\n onDisplayedColumnsChanged() {\n this.isPrintLayout = _isDomLayout(this.gos, \"print\");\n this.onVirtualColumnsChanged();\n this.setWidth();\n this.onRowHeightChanged();\n }\n setWidth() {\n if (!this.comp) {\n return;\n }\n const width = this.getWidthForRow();\n this.comp.setWidth(`${width}px`);\n }\n getWidthForRow() {\n const { visibleCols } = this.beans;\n if (this.isPrintLayout) {\n const pinned = this.pinned != null;\n if (pinned) {\n return 0;\n }\n return visibleCols.getContainerWidth(\"right\") + visibleCols.getContainerWidth(\"left\") + visibleCols.getContainerWidth(null);\n }\n return visibleCols.getContainerWidth(this.pinned);\n }\n onRowHeightChanged() {\n if (!this.comp) {\n return;\n }\n const { topOffset, rowHeight } = this.getTopAndHeight();\n this.comp.setTop(topOffset + \"px\");\n this.comp.setHeight(rowHeight + \"px\");\n }\n getTopAndHeight() {\n let topOffset = 0;\n const groupHeadersHeight = getGroupRowsHeight(this.beans);\n for (let i = 0; i < groupHeadersHeight.length; i++) {\n if (i === this.rowIndex && this.type === \"group\") {\n return { topOffset, rowHeight: groupHeadersHeight[i] };\n }\n topOffset += groupHeadersHeight[i];\n }\n const headerHeight = getColumnHeaderRowHeight(this.beans);\n if (this.type === \"column\") {\n return { topOffset, rowHeight: headerHeight };\n }\n topOffset += headerHeight;\n const filterHeight = getFloatingFiltersHeight(this.beans);\n return { topOffset, rowHeight: filterHeight };\n }\n onVirtualColumnsChanged(afterScroll = false) {\n if (!this.comp) {\n return;\n }\n const ctrlsToDisplay = this.getUpdatedHeaderCtrls();\n const forceOrder = this.isEnsureDomOrder || this.isPrintLayout;\n this.comp.setHeaderCtrls(ctrlsToDisplay, forceOrder, afterScroll);\n }\n /**\n * Recycles the header cell ctrls and creates new ones for the columns in the viewport\n * @returns The updated header cell ctrls\n */\n getUpdatedHeaderCtrls() {\n const oldCtrls = this.ctrlsById;\n this.ctrlsById = /* @__PURE__ */ new Map();\n const columns = this.getColumnsInViewport();\n for (const child of columns) {\n this.recycleAndCreateHeaderCtrls(child, this.ctrlsById, oldCtrls);\n }\n const isFocusedAndDisplayed = (ctrl) => {\n const { focusSvc, visibleCols } = this.beans;\n const isFocused = focusSvc.isHeaderWrapperFocused(ctrl);\n if (!isFocused) {\n return false;\n }\n const isDisplayed = visibleCols.isVisible(ctrl.column);\n return isDisplayed;\n };\n if (oldCtrls) {\n for (const [id, oldCtrl] of oldCtrls) {\n const keepCtrl = isFocusedAndDisplayed(oldCtrl);\n if (keepCtrl) {\n this.ctrlsById.set(id, oldCtrl);\n } else {\n this.destroyBean(oldCtrl);\n }\n }\n }\n this.allCtrls = Array.from(this.ctrlsById.values());\n return this.allCtrls;\n }\n /** Get the current header cell ctrls */\n getHeaderCellCtrls() {\n return this.allCtrls;\n }\n recycleAndCreateHeaderCtrls(headerColumn, currCtrls, oldCtrls) {\n if (headerColumn.isEmptyGroup()) {\n return;\n }\n const idOfChild = headerColumn.getUniqueId();\n let headerCtrl;\n if (oldCtrls) {\n headerCtrl = oldCtrls.get(idOfChild);\n oldCtrls.delete(idOfChild);\n }\n const forOldColumn = headerCtrl && headerCtrl.column != headerColumn;\n if (forOldColumn) {\n this.destroyBean(headerCtrl);\n headerCtrl = void 0;\n }\n if (headerCtrl == null) {\n switch (this.type) {\n case \"filter\": {\n headerCtrl = this.createBean(\n this.beans.registry.createDynamicBean(\n \"headerFilterCellCtrl\",\n true,\n headerColumn,\n this\n )\n );\n break;\n }\n case \"group\":\n headerCtrl = this.createBean(\n this.beans.registry.createDynamicBean(\n \"headerGroupCellCtrl\",\n true,\n headerColumn,\n this\n )\n );\n break;\n default:\n headerCtrl = this.createBean(new HeaderCellCtrl(headerColumn, this));\n break;\n }\n }\n currCtrls.set(idOfChild, headerCtrl);\n }\n getColumnsInViewport() {\n if (!this.isPrintLayout) {\n return this.getComponentsToRender();\n }\n if (this.pinned) {\n return [];\n }\n const viewportColumns = [];\n for (const pinned of [\"left\", null, \"right\"]) {\n viewportColumns.push(...this.getComponentsToRender(pinned));\n }\n return viewportColumns;\n }\n getComponentsToRender(pinned = this.pinned) {\n if (this.type === \"group\") {\n return this.beans.colViewport.getHeadersToRender(pinned, this.rowIndex);\n }\n return this.beans.colViewport.getColumnHeadersToRender(pinned);\n }\n focusHeader(column, event) {\n const ctrl = this.allCtrls.find((ctrl2) => ctrl2.column == column);\n if (!ctrl) {\n return false;\n }\n const focused = ctrl.focus(event);\n return focused;\n }\n destroy() {\n this.allCtrls = this.destroyBeans(this.allCtrls);\n this.ctrlsById = void 0;\n this.comp = null;\n super.destroy();\n }\n};\n\n// packages/ag-grid-community/src/headerRendering/rowContainer/headerRowContainerCtrl.ts\nvar HeaderRowContainerCtrl = class extends BeanStub {\n constructor(pinned) {\n super();\n this.pinned = pinned;\n this.hidden = false;\n this.includeFloatingFilter = false;\n this.groupsRowCtrls = [];\n }\n setComp(comp, eGui) {\n this.comp = comp;\n this.eViewport = eGui;\n const { pinnedCols, ctrlsSvc, colModel, colMoves } = this.beans;\n this.setupCenterWidth();\n pinnedCols?.setupHeaderPinnedWidth(this);\n this.setupDragAndDrop(colMoves, this.eViewport);\n const onDisplayedColsChanged = this.refresh.bind(this, true);\n this.addManagedEventListeners({\n displayedColumnsChanged: onDisplayedColsChanged,\n advancedFilterEnabledChanged: onDisplayedColsChanged\n });\n const headerType = `${typeof this.pinned === \"string\" ? this.pinned : \"center\"}Header`;\n ctrlsSvc.register(headerType, this);\n if (colModel.ready) {\n this.refresh();\n }\n }\n getAllCtrls() {\n const res = [...this.groupsRowCtrls];\n if (this.columnsRowCtrl) {\n res.push(this.columnsRowCtrl);\n }\n if (this.filtersRowCtrl) {\n res.push(this.filtersRowCtrl);\n }\n return res;\n }\n refresh(keepColumns = false) {\n const { focusSvc, filterManager, visibleCols } = this.beans;\n let sequence = 0;\n const focusedHeaderPosition = focusSvc.getFocusHeaderToUseAfterRefresh();\n const refreshColumnGroups = () => {\n const groupRowCount = visibleCols.headerGroupRowCount;\n sequence = groupRowCount;\n if (!keepColumns) {\n this.groupsRowCtrls = this.destroyBeans(this.groupsRowCtrls);\n }\n const currentGroupCount = this.groupsRowCtrls.length;\n if (currentGroupCount === groupRowCount) {\n return;\n }\n if (currentGroupCount > groupRowCount) {\n for (let i = groupRowCount; i < currentGroupCount; i++) {\n this.destroyBean(this.groupsRowCtrls[i]);\n }\n this.groupsRowCtrls.length = groupRowCount;\n return;\n }\n for (let i = currentGroupCount; i < groupRowCount; i++) {\n const ctrl = this.createBean(new HeaderRowCtrl(i, this.pinned, \"group\"));\n this.groupsRowCtrls.push(ctrl);\n }\n };\n const refreshColumns = () => {\n const rowIndex = sequence++;\n if (this.hidden) {\n this.columnsRowCtrl = this.destroyBean(this.columnsRowCtrl);\n return;\n }\n if (this.columnsRowCtrl == null || !keepColumns) {\n this.columnsRowCtrl = this.destroyBean(this.columnsRowCtrl);\n this.columnsRowCtrl = this.createBean(new HeaderRowCtrl(rowIndex, this.pinned, \"column\"));\n } else if (this.columnsRowCtrl.rowIndex !== rowIndex) {\n this.columnsRowCtrl.setRowIndex(rowIndex);\n }\n };\n const refreshFilters = () => {\n this.includeFloatingFilter = !!filterManager?.hasFloatingFilters() && !this.hidden;\n const destroyPreviousComp = () => {\n this.filtersRowCtrl = this.destroyBean(this.filtersRowCtrl);\n };\n if (!this.includeFloatingFilter) {\n destroyPreviousComp();\n return;\n }\n if (!keepColumns) {\n destroyPreviousComp();\n }\n const rowIndex = sequence++;\n if (this.filtersRowCtrl) {\n const rowIndexMismatch = this.filtersRowCtrl.rowIndex !== rowIndex;\n if (rowIndexMismatch) {\n this.filtersRowCtrl.setRowIndex(rowIndex);\n }\n } else {\n this.filtersRowCtrl = this.createBean(new HeaderRowCtrl(rowIndex, this.pinned, \"filter\"));\n }\n };\n const oldCtrls = this.getAllCtrls();\n refreshColumnGroups();\n refreshColumns();\n refreshFilters();\n const allCtrls = this.getAllCtrls();\n this.comp.setCtrls(allCtrls);\n this.restoreFocusOnHeader(focusSvc, focusedHeaderPosition);\n if (oldCtrls.length !== allCtrls.length) {\n this.beans.eventSvc.dispatchEvent({\n type: \"headerRowsChanged\"\n });\n }\n }\n getHeaderCtrlForColumn(column) {\n const findCtrl = (ctrl) => ctrl?.getHeaderCellCtrls().find((ctrl2) => ctrl2.column === column);\n if (isColumn(column)) {\n return findCtrl(this.columnsRowCtrl);\n }\n if (this.groupsRowCtrls.length === 0) {\n return;\n }\n for (let i = 0; i < this.groupsRowCtrls.length; i++) {\n const ctrl = findCtrl(this.groupsRowCtrls[i]);\n if (ctrl) {\n return ctrl;\n }\n }\n }\n getHtmlElementForColumnHeader(column) {\n return this.getHeaderCtrlForColumn(column)?.eGui ?? null;\n }\n getRowType(rowIndex) {\n return this.getAllCtrls()[rowIndex]?.type;\n }\n focusHeader(rowIndex, column, event) {\n const allCtrls = this.getAllCtrls();\n const ctrl = allCtrls[rowIndex];\n if (!ctrl) {\n return false;\n }\n return ctrl.focusHeader(column, event);\n }\n getGroupRowCount() {\n return this.groupsRowCtrls.length;\n }\n getGroupRowCtrlAtIndex(index) {\n return this.groupsRowCtrls[index];\n }\n getRowCount() {\n return this.groupsRowCtrls.length + (this.columnsRowCtrl ? 1 : 0) + (this.filtersRowCtrl ? 1 : 0);\n }\n setHorizontalScroll(offset) {\n this.comp.setViewportScrollLeft(offset);\n }\n onScrollCallback(fn) {\n this.addManagedElementListeners(this.eViewport, { scroll: fn });\n }\n destroy() {\n this.filtersRowCtrl = this.destroyBean(this.filtersRowCtrl);\n this.columnsRowCtrl = this.destroyBean(this.columnsRowCtrl);\n this.groupsRowCtrls = this.destroyBeans(this.groupsRowCtrls);\n super.destroy();\n }\n setupDragAndDrop(colMoves, dropContainer) {\n const bodyDropTarget = colMoves?.createBodyDropTarget(this.pinned, dropContainer);\n if (bodyDropTarget) {\n this.createManagedBean(bodyDropTarget);\n }\n }\n restoreFocusOnHeader(focusSvc, position) {\n if (!position) {\n return;\n }\n const { column } = position;\n if (column.getPinned() != this.pinned) {\n return;\n }\n focusSvc.focusHeaderPosition({ headerPosition: position, scroll: false });\n }\n setupCenterWidth() {\n if (this.pinned != null) {\n return;\n }\n this.createManagedBean(new CenterWidthFeature((width) => this.comp.setCenterWidth(`${width}px`), true));\n }\n};\n\n// packages/ag-grid-community/src/misc/menu/menuService.ts\nvar MenuService = class extends BeanStub {\n constructor() {\n super(...arguments);\n this.beanName = \"menuSvc\";\n }\n postConstruct() {\n const { enterpriseMenuFactory, filterMenuFactory } = this.beans;\n this.activeMenuFactory = enterpriseMenuFactory ?? filterMenuFactory;\n }\n showColumnMenu(params) {\n this.showColumnMenuCommon(this.activeMenuFactory, params, \"columnMenu\");\n }\n showFilterMenu(params) {\n this.showColumnMenuCommon(getFilterMenuFactory(this.beans), params, params.containerType, true);\n }\n showHeaderContextMenu(column, mouseEvent, touchEvent) {\n this.activeMenuFactory?.showMenuAfterContextMenuEvent(column, mouseEvent, touchEvent);\n }\n hidePopupMenu() {\n this.beans.contextMenuSvc?.hideActiveMenu();\n this.activeMenuFactory?.hideActiveMenu();\n }\n hideFilterMenu() {\n getFilterMenuFactory(this.beans)?.hideActiveMenu();\n }\n isColumnMenuInHeaderEnabled(column) {\n const { suppressHeaderMenuButton } = column.getColDef();\n return !suppressHeaderMenuButton && !!this.activeMenuFactory?.isMenuEnabled(column) && (_isLegacyMenuEnabled(this.gos) || !!this.beans.enterpriseMenuFactory);\n }\n isFilterMenuInHeaderEnabled(column) {\n return !column.getColDef().suppressHeaderFilterButton && !!this.beans.filterManager?.isFilterAllowed(column);\n }\n isHeaderContextMenuEnabled(column) {\n const colDef = column && isColumn(column) ? column.getColDef() : column?.getColGroupDef();\n return !colDef?.suppressHeaderContextMenu && this.gos.get(\"columnMenu\") === \"new\";\n }\n isHeaderMenuButtonAlwaysShowEnabled() {\n return this.isSuppressMenuHide();\n }\n isHeaderMenuButtonEnabled() {\n const menuHides = !this.isSuppressMenuHide();\n const onIpadAndMenuHides = _isIOSUserAgent() && menuHides;\n return !onIpadAndMenuHides;\n }\n isHeaderFilterButtonEnabled(column) {\n return this.isFilterMenuInHeaderEnabled(column) && !_isLegacyMenuEnabled(this.gos) && !this.isFloatingFilterButtonDisplayed(column);\n }\n isFilterMenuItemEnabled(column) {\n return !!this.beans.filterManager?.isFilterAllowed(column) && !_isLegacyMenuEnabled(this.gos) && !this.isFilterMenuInHeaderEnabled(column) && !this.isFloatingFilterButtonDisplayed(column);\n }\n isFloatingFilterButtonEnabled(column) {\n return !column.getColDef().suppressFloatingFilterButton;\n }\n isFloatingFilterButtonDisplayed(column) {\n return !!column.getColDef().floatingFilter && this.isFloatingFilterButtonEnabled(column);\n }\n isSuppressMenuHide() {\n const gos = this.gos;\n const suppressMenuHide = gos.get(\"suppressMenuHide\");\n if (_isLegacyMenuEnabled(gos)) {\n return gos.exists(\"suppressMenuHide\") ? suppressMenuHide : false;\n }\n return suppressMenuHide;\n }\n showColumnMenuCommon(menuFactory, params, containerType, filtersOnly) {\n const { positionBy, onClosedCallback } = params;\n const column = params.column;\n if (positionBy === \"button\") {\n const { buttonElement } = params;\n menuFactory?.showMenuAfterButtonClick(column, buttonElement, containerType, onClosedCallback, filtersOnly);\n } else if (positionBy === \"mouse\") {\n const { mouseEvent } = params;\n menuFactory?.showMenuAfterMouseEvent(column, mouseEvent, containerType, onClosedCallback, filtersOnly);\n } else if (column) {\n const beans = this.beans;\n const ctrlsSvc = beans.ctrlsSvc;\n ctrlsSvc.getScrollFeature().ensureColumnVisible(column, \"auto\");\n _requestAnimationFrame(beans, () => {\n const headerCellCtrl = ctrlsSvc.getHeaderRowContainerCtrl(column.getPinned())?.getHeaderCtrlForColumn(column);\n if (headerCellCtrl) {\n menuFactory?.showMenuAfterButtonClick(\n column,\n headerCellCtrl.getAnchorElementForMenu(filtersOnly),\n containerType,\n onClosedCallback,\n filtersOnly\n );\n }\n });\n }\n }\n};\nfunction _setColMenuVisible(column, visible, source) {\n if (column.menuVisible !== visible) {\n column.menuVisible = visible;\n column.dispatchColEvent(\"menuVisibleChanged\", source);\n }\n}\nfunction getFilterMenuFactory(beans) {\n const { enterpriseMenuFactory, filterMenuFactory, gos } = beans;\n return enterpriseMenuFactory && _isLegacyMenuEnabled(gos) ? enterpriseMenuFactory : filterMenuFactory;\n}\n\n// packages/ag-grid-community/src/edit/cellEditors/agAbstractCellEditor.ts\nvar AgAbstractCellEditor = class extends AgPopupComponent {\n constructor() {\n super(...arguments);\n this.errorMessages = null;\n }\n init(params) {\n this.params = params;\n this.initialiseEditor(params);\n this.eEditor.onValueChange(() => params.validate());\n }\n destroy() {\n this.errorMessages = null;\n }\n};\n\n// packages/ag-grid-community/src/rendering/overlays/overlayComponent.ts\nvar OverlayComponent = class extends Component {\n constructor() {\n super();\n }\n};\n\n// packages/ag-grid-community/src/rendering/overlays/loadingOverlayComponent.ts\nvar LoadingOverlayElement = {\n tag: \"span\",\n cls: \"ag-overlay-loading-center\"\n};\nvar LoadingOverlayComponent2 = class extends OverlayComponent {\n init() {\n const customTemplate = _makeNull(this.gos.get(\"overlayLoadingTemplate\")?.trim());\n this.setTemplate(customTemplate ?? LoadingOverlayElement);\n if (!customTemplate) {\n const localeTextFunc = this.getLocaleTextFunc();\n const loadingText = localeTextFunc(\"loadingOoo\", \"Loading...\");\n this.getGui().textContent = loadingText;\n this.beans.ariaAnnounce.announceValue(loadingText, \"overlay\");\n }\n }\n};\n\n// packages/ag-grid-community/src/rendering/overlays/noRowsOverlayComponent.ts\nvar NoRowsOverlayElement = { tag: \"span\", cls: \"ag-overlay-no-rows-center\" };\nvar NoRowsOverlayComponent2 = class extends OverlayComponent {\n init() {\n const customTemplate = _makeNull(this.gos.get(\"overlayNoRowsTemplate\")?.trim());\n this.setTemplate(customTemplate ?? NoRowsOverlayElement);\n if (!customTemplate) {\n const localeTextFunc = this.getLocaleTextFunc();\n const noRowsText = localeTextFunc(\"noRowsToShow\", \"No Rows To Show\");\n this.getGui().textContent = noRowsText;\n this.beans.ariaAnnounce.announceValue(noRowsText, \"overlay\");\n }\n }\n};\n\n// packages/ag-grid-community/src/utils/icon.ts\nfunction _createIcon(iconName, beans, column) {\n const iconContents = _createIconNoSpan(iconName, beans, column);\n if (iconContents) {\n const { className } = iconContents;\n if (typeof className === \"string\" && className.includes(\"ag-icon\") || typeof className === \"object\" && className[\"ag-icon\"]) {\n return iconContents;\n }\n }\n const eResult = _createElement({ tag: \"span\" });\n eResult.appendChild(iconContents);\n return eResult;\n}\nfunction _createIconNoSpan(iconName, beans, column) {\n let userProvidedIcon = null;\n if (iconName === \"smallDown\") {\n _warn(262);\n } else if (iconName === \"smallLeft\") {\n _warn(263);\n } else if (iconName === \"smallRight\") {\n _warn(264);\n }\n const icons = column?.getColDef().icons;\n if (icons) {\n userProvidedIcon = icons[iconName];\n }\n if (beans.gos && !userProvidedIcon) {\n const optionsIcons = beans.gos.get(\"icons\");\n if (optionsIcons) {\n userProvidedIcon = optionsIcons[iconName];\n }\n }\n if (userProvidedIcon) {\n let rendererResult;\n if (typeof userProvidedIcon === \"function\") {\n rendererResult = userProvidedIcon();\n } else if (typeof userProvidedIcon === \"string\") {\n rendererResult = userProvidedIcon;\n } else {\n _warn(38, { iconName });\n return void 0;\n }\n if (typeof rendererResult === \"string\") {\n return _loadTemplate(rendererResult);\n }\n if (_isNodeOrElement(rendererResult)) {\n return rendererResult;\n }\n _warn(133, { iconName });\n return void 0;\n } else {\n const iconValue = beans.registry.getIcon(iconName);\n if (!iconValue) {\n beans.validation?.validateIcon(iconName);\n }\n return _createElement({\n tag: \"span\",\n cls: `ag-icon ag-icon-${iconValue ?? iconName}`,\n role: \"presentation\",\n attrs: { unselectable: \"on\" }\n });\n }\n}\n\n// packages/ag-grid-community/src/dragAndDrop/dragAndDropImageComponent.css-GENERATED.ts\nvar dragAndDropImageComponentCSS = (\n /*css*/\n `.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)}`\n);\n\n// packages/ag-grid-community/src/dragAndDrop/dragAndDropImageComponent.ts\nvar DragAndDropElement = {\n tag: \"div\",\n children: [\n {\n tag: \"div\",\n ref: \"eGhost\",\n cls: \"ag-dnd-ghost ag-unselectable\",\n children: [\n { tag: \"span\", ref: \"eIcon\", cls: \"ag-dnd-ghost-icon ag-shake-left-to-right\" },\n { tag: \"div\", ref: \"eLabel\", cls: \"ag-dnd-ghost-label\" }\n ]\n }\n ]\n};\nvar DragAndDropImageComponent2 = class extends Component {\n constructor() {\n super();\n this.dragSource = null;\n this.eIcon = RefPlaceholder;\n this.eLabel = RefPlaceholder;\n this.eGhost = RefPlaceholder;\n this.registerCSS(dragAndDropImageComponentCSS);\n }\n postConstruct() {\n const create = (iconName) => _createIcon(iconName, this.beans, null);\n this.dropIconMap = {\n pinned: create(\"columnMovePin\"),\n hide: create(\"columnMoveHide\"),\n move: create(\"columnMoveMove\"),\n left: create(\"columnMoveLeft\"),\n right: create(\"columnMoveRight\"),\n group: create(\"columnMoveGroup\"),\n aggregate: create(\"columnMoveValue\"),\n pivot: create(\"columnMovePivot\"),\n notAllowed: create(\"dropNotAllowed\")\n };\n }\n init(params) {\n this.dragSource = params.dragSource;\n this.setTemplate(DragAndDropElement);\n this.beans.environment.applyThemeClasses(this.eGhost);\n }\n destroy() {\n this.dragSource = null;\n super.destroy();\n }\n setIcon(iconName, shake) {\n const { eGhost, eIcon, dragSource, dropIconMap, gos } = this;\n _clearElement(eIcon);\n let eIconChild = null;\n if (!iconName) {\n iconName = dragSource?.getDefaultIconName ? dragSource.getDefaultIconName() : \"notAllowed\";\n }\n eIconChild = dropIconMap[iconName];\n eGhost.classList.toggle(\"ag-dnd-ghost-not-allowed\", iconName === \"notAllowed\");\n eIcon.classList.toggle(\"ag-shake-left-to-right\", shake);\n if (eIconChild === dropIconMap[\"hide\"] && gos.get(\"suppressDragLeaveHidesColumns\")) {\n return;\n }\n if (eIconChild) {\n eIcon.appendChild(eIconChild);\n }\n }\n setLabel(label) {\n this.eLabel.textContent = label;\n }\n};\n\n// packages/ag-grid-community/src/rendering/cellRenderers/checkboxCellRenderer.css-GENERATED.ts\nvar checkboxCellRendererCSS = (\n /*css*/\n `.ag-checkbox-cell{height:100%}`\n);\n\n// packages/ag-grid-community/src/rendering/cellRenderers/checkboxCellRenderer.ts\nvar CheckboxCellRendererElement = {\n tag: \"div\",\n cls: \"ag-cell-wrapper ag-checkbox-cell\",\n role: \"presentation\",\n children: [\n {\n tag: \"ag-checkbox\",\n ref: \"eCheckbox\",\n role: \"presentation\"\n }\n ]\n};\nvar CheckboxCellRenderer = class extends Component {\n constructor() {\n super(CheckboxCellRendererElement, [AgCheckboxSelector]);\n this.eCheckbox = RefPlaceholder;\n this.registerCSS(checkboxCellRendererCSS);\n }\n init(params) {\n this.refresh(params);\n const { eCheckbox, beans } = this;\n const inputEl = eCheckbox.getInputElement();\n inputEl.setAttribute(\"tabindex\", \"-1\");\n _setAriaLive(inputEl, \"polite\");\n this.addManagedListeners(inputEl, {\n click: (event) => {\n _stopPropagationForAgGrid(event);\n if (eCheckbox.isDisabled()) {\n return;\n }\n const isSelected = eCheckbox.getValue();\n this.onCheckboxChanged(isSelected);\n },\n dblclick: (event) => {\n _stopPropagationForAgGrid(event);\n }\n });\n this.addManagedElementListeners(params.eGridCell, {\n keydown: (event) => {\n if (event.key === KeyCode.SPACE && !eCheckbox.isDisabled()) {\n if (params.eGridCell === _getActiveDomElement(beans)) {\n eCheckbox.toggle();\n }\n const isSelected = eCheckbox.getValue();\n this.onCheckboxChanged(isSelected);\n event.preventDefault();\n }\n }\n });\n }\n refresh(params) {\n this.params = params;\n this.updateCheckbox(params);\n return true;\n }\n updateCheckbox(params) {\n let isSelected;\n let displayed = true;\n const { value, column, node } = params;\n if (node.group && column) {\n if (typeof value === \"boolean\") {\n isSelected = value;\n } else {\n const colId = column.getColId();\n if (colId.startsWith(GROUP_AUTO_COLUMN_ID)) {\n isSelected = value == null || value === \"\" ? void 0 : value === \"true\";\n } else if (node.aggData && node.aggData[colId] !== void 0) {\n isSelected = value ?? void 0;\n } else if (node.sourceRowIndex >= 0) {\n isSelected = value ?? void 0;\n } else {\n displayed = false;\n }\n }\n } else {\n isSelected = value ?? void 0;\n }\n const { eCheckbox } = this;\n if (!displayed) {\n eCheckbox.setDisplayed(false);\n return;\n }\n eCheckbox.setValue(isSelected);\n const disabled = params.disabled ?? !column?.isCellEditable(node);\n eCheckbox.setDisabled(disabled);\n const translate = this.getLocaleTextFunc();\n const stateName = _getAriaCheckboxStateName(translate, isSelected);\n const ariaLabel = disabled ? stateName : `${translate(\"ariaToggleCellValue\", \"Press SPACE to toggle cell value\")} (${stateName})`;\n eCheckbox.setInputAriaLabel(ariaLabel);\n }\n onCheckboxChanged(isSelected) {\n const { params } = this;\n const { column, node, value } = params;\n this.beans?.editSvc?.setEditingCells(\n [\n {\n column,\n colId: column.getColId(),\n rowIndex: node.rowIndex,\n rowPinned: node.rowPinned,\n state: \"changed\",\n oldValue: value,\n newValue: value\n }\n ],\n { update: true, forceRefreshOfEditCellsOnly: true }\n );\n const valueChanged = node.setDataValue(column, isSelected, \"renderer\");\n this.beans.editSvc?.stopEditing(\n {\n rowNode: node,\n column\n },\n { source: this.beans.editSvc?.isBatchEditing() ? \"ui\" : \"api\" }\n );\n if (!valueChanged) {\n this.updateCheckbox(params);\n }\n }\n};\n\n// packages/ag-grid-community/src/pinnedRowModel/manualPinnedRowUtils.ts\nvar PinnedRows = class {\n constructor(beans, floating) {\n this.beans = beans;\n this.floating = floating;\n /** Canonical set of pinned nodes */\n this.all = /* @__PURE__ */ new Set();\n /**\n * Set of nodes that should currently be visible given the context of the grid.\n * This is currently used for hiding leaf nodes in pivot mode and filtered nodes.\n */\n this.visible = /* @__PURE__ */ new Set();\n /** Ordering of nodes in the pinned area */\n this.order = [];\n /** IDs of nodes that need to be pinned once they are available from the row model (SSRM) */\n this.queued = /* @__PURE__ */ new Set();\n }\n size() {\n return this.visible.size;\n }\n add(node) {\n const { all, visible, order } = this;\n if (all.has(node)) {\n return;\n }\n all.add(node);\n visible.add(node);\n order.push(node);\n this.sort();\n }\n delete(item) {\n this.all.delete(item);\n this.visible.delete(item);\n this.queued.delete(item.id);\n _removeFromArray(this.order, item);\n }\n has(item) {\n return this.visible.has(item);\n }\n forEach(fn) {\n this.order.forEach(fn);\n }\n getByIndex(i) {\n return this.order[i];\n }\n getById(id) {\n for (const node of this.visible) {\n if (node.id == id) {\n return node;\n }\n }\n }\n clear() {\n const { all, visible, order, queued } = this;\n all.clear();\n queued.clear();\n visible.clear();\n order.length = 0;\n }\n sort() {\n const { sortSvc, rowNodeSorter, gos } = this.beans;\n const sortOptions = sortSvc?.getSortOptions() ?? [];\n const grandTotalNode = _removeGrandTotalRow(this.order);\n this.order.sort((a, b) => (a.pinnedSibling?.rowIndex ?? 0) - (b.pinnedSibling?.rowIndex ?? 0));\n this.order = rowNodeSorter?.doFullSort(this.order, sortOptions) ?? this.order;\n if (!grandTotalNode) {\n return;\n }\n const grandTotalRow = _getGrandTotalRow(gos);\n if (grandTotalRow === \"bottom\" || grandTotalRow === \"pinnedBottom\") {\n this.order.push(grandTotalNode);\n } else {\n this.order.unshift(grandTotalNode);\n }\n }\n hide(shouldHide) {\n const { all, visible } = this;\n all.forEach((node) => shouldHide(node) ? visible.delete(node) : visible.add(node));\n this.order = Array.from(visible);\n this.sort();\n }\n queue(id) {\n this.queued.add(id);\n }\n unqueue(id) {\n this.queued.delete(id);\n }\n forEachQueued(fn) {\n this.queued.forEach(fn);\n }\n};\nfunction _isDisplayedAfterFilterCSRM(node) {\n if (node.level === -1) {\n return true;\n }\n const parent = node.parent;\n if (parent?.childrenAfterSort?.some((child) => child == node)) {\n return _isDisplayedAfterFilterCSRM(parent);\n }\n return false;\n}\nfunction _shouldHidePinnedRows(beans, node) {\n const { gos, rowModel, filterManager } = beans;\n if (_isServerSideRowModel(gos, rowModel)) {\n return !rowModel.getRowNode(node.id);\n }\n if (filterManager?.isAnyFilterPresent()) {\n return !_isDisplayedAfterFilterCSRM(node);\n }\n if (gos.get(\"pivotMode\")) {\n return !node.group;\n }\n return false;\n}\nfunction _isNodeGrandTotal(node) {\n return !!node.footer && node.level === -1;\n}\nfunction _isPinnedNodeGrandTotal(node) {\n return !!node.pinnedSibling && _isNodeGrandTotal(node.pinnedSibling);\n}\nfunction _removeGrandTotalRow(order) {\n const index = order.findIndex(_isPinnedNodeGrandTotal);\n if (index > -1) {\n return order.splice(index, 1)?.[0];\n }\n}\n\n// packages/ag-grid-community/src/pinnedRowModel/manualPinnedRowModel.ts\nvar ManualPinnedRowModel = class extends BeanStub {\n postConstruct() {\n const { gos, beans } = this;\n this.top = new PinnedRows(beans, \"top\");\n this.bottom = new PinnedRows(beans, \"bottom\");\n const shouldHide = (node) => _shouldHidePinnedRows(beans, node.pinnedSibling);\n const runIsRowPinned = () => {\n const isRowPinned = gos.get(\"isRowPinned\");\n if (isRowPinned && gos.get(\"enableRowPinning\")) {\n beans.rowModel.forEachNode((node) => this.pinRow(node, isRowPinned(node)), true);\n }\n this.refreshRowPositions();\n this.dispatchRowPinnedEvents();\n };\n this.addManagedEventListeners({\n gridStylesChanged: this.onGridStylesChanges.bind(this),\n modelUpdated: ({ keepRenderedRows }) => {\n this.tryToEmptyQueues();\n this.pinGrandTotalRow();\n this.forContainers((container) => container.hide(shouldHide));\n const positionsChanged = this.refreshRowPositions();\n if (!keepRenderedRows || positionsChanged) {\n this.dispatchRowPinnedEvents();\n }\n },\n columnRowGroupChanged: () => {\n this.forContainers(removeGroupRows);\n this.refreshRowPositions();\n },\n rowNodeDataChanged: ({ node }) => {\n const isRowPinnable = gos.get(\"isRowPinnable\");\n const pinnable = isRowPinnable?.(node) ?? true;\n if (!pinnable) {\n this.pinRow(node, null);\n }\n },\n firstDataRendered: runIsRowPinned\n });\n this.addManagedPropertyListener(\"pivotMode\", () => {\n this.forContainers((container) => container.hide(shouldHide));\n this.dispatchRowPinnedEvents();\n });\n this.addManagedPropertyListener(\"grandTotalRow\", ({ currentValue }) => {\n this._grandTotalPinned = currentValue === \"pinnedBottom\" ? \"bottom\" : currentValue === \"pinnedTop\" ? \"top\" : null;\n });\n this.addManagedPropertyListener(\"isRowPinned\", runIsRowPinned);\n }\n destroy() {\n this.reset(false);\n super.destroy();\n }\n reset(dispatch = true) {\n this.forContainers((container) => {\n const nodesToUnpin = [];\n container.forEach((n) => nodesToUnpin.push(n));\n nodesToUnpin.forEach((n) => this.pinRow(n, null));\n container.clear();\n });\n if (dispatch) {\n this.dispatchRowPinnedEvents();\n }\n }\n pinRow(rowNode, float, column) {\n if (rowNode.footer && rowNode.level > -1) {\n return;\n }\n if (rowNode.footer && rowNode.level === -1) {\n this._grandTotalPinned = float;\n refreshCSRM(this.beans);\n return;\n }\n const currentFloat = rowNode.rowPinned ?? rowNode.pinnedSibling?.rowPinned;\n const switching = currentFloat != null && float != null && float != currentFloat;\n if (switching) {\n const pinned = rowNode.rowPinned ? rowNode : rowNode.pinnedSibling;\n const source = rowNode.rowPinned ? rowNode.pinnedSibling : rowNode;\n this.pinRow(pinned, null, column);\n this.pinRow(source, float, column);\n return;\n }\n const spannedRows = column && getSpannedRows(this.beans, rowNode, column);\n if (spannedRows) {\n spannedRows.forEach((node) => this.pinRow(node, float));\n return;\n }\n if (float == null) {\n const node = rowNode.rowPinned ? rowNode : rowNode.pinnedSibling;\n const found = this.findPinnedRowNode(node);\n if (!found) {\n return;\n }\n found.delete(node);\n const source = node.pinnedSibling;\n _destroyRowNodeSibling(node);\n this.refreshRowPositions(float);\n this.dispatchRowPinnedEvents(source);\n } else {\n const sibling = _createPinnedSibling(this.beans, rowNode, float);\n const container = this.getContainer(float);\n container.add(sibling);\n if (_shouldHidePinnedRows(this.beans, rowNode)) {\n container.hide((node) => _shouldHidePinnedRows(this.beans, node.pinnedSibling));\n }\n this.refreshRowPositions(float);\n this.dispatchRowPinnedEvents(rowNode);\n }\n }\n isManual() {\n return true;\n }\n isEmpty(floating) {\n return this.getContainer(floating).size() === 0;\n }\n isRowsToRender(floating) {\n return !this.isEmpty(floating);\n }\n ensureRowHeightsValid() {\n let anyChange = false;\n let rowTop = 0;\n const updateRowHeight = (rowNode) => {\n if (rowNode.rowHeightEstimated) {\n const rowHeight = _getRowHeightForNode(this.beans, rowNode);\n rowNode.setRowTop(rowTop);\n rowNode.setRowHeight(rowHeight.height);\n rowTop += rowHeight.height;\n anyChange = true;\n }\n };\n this.bottom.forEach(updateRowHeight);\n rowTop = 0;\n this.top.forEach(updateRowHeight);\n this.eventSvc.dispatchEvent({\n type: \"pinnedHeightChanged\"\n });\n return anyChange;\n }\n getPinnedTopTotalHeight() {\n return getTotalHeight(this.top);\n }\n getPinnedBottomTotalHeight() {\n return getTotalHeight(this.bottom);\n }\n getPinnedTopRowCount() {\n return this.top.size();\n }\n getPinnedBottomRowCount() {\n return this.bottom.size();\n }\n getPinnedTopRow(index) {\n return this.top.getByIndex(index);\n }\n getPinnedBottomRow(index) {\n return this.bottom.getByIndex(index);\n }\n getPinnedRowById(id, floating) {\n return this.getContainer(floating).getById(id);\n }\n forEachPinnedRow(floating, callback) {\n this.getContainer(floating).forEach(callback);\n }\n getPinnedState() {\n const buildState = (floating) => {\n const list = [];\n this.forEachPinnedRow(floating, (node) => list.push(node.pinnedSibling.id));\n return list;\n };\n return {\n top: buildState(\"top\"),\n bottom: buildState(\"bottom\")\n };\n }\n setPinnedState(state) {\n this.forContainers((pinned, floating) => {\n for (const id of state[floating]) {\n const node = this.beans.rowModel.getRowNode(id);\n if (node) {\n this.pinRow(node, floating);\n } else {\n pinned.queue(id);\n }\n }\n });\n }\n getGrandTotalPinned() {\n return this._grandTotalPinned;\n }\n setGrandTotalPinned(value) {\n this._grandTotalPinned = value;\n }\n tryToEmptyQueues() {\n this.forContainers((pinned, container) => {\n const nodesToPin = /* @__PURE__ */ new Set();\n pinned.forEachQueued((id) => {\n const node = this.beans.rowModel.getRowNode(id);\n if (node) {\n nodesToPin.add(node);\n }\n });\n for (const node of nodesToPin) {\n pinned.unqueue(node.id);\n this.pinRow(node, container);\n }\n });\n }\n pinGrandTotalRow() {\n const { gos, beans, _grandTotalPinned: float } = this;\n const rowModel = beans.rowModel;\n if (!_isClientSideRowModel(gos, rowModel)) {\n return;\n }\n const sibling = rowModel.rootNode?.sibling;\n if (!sibling) {\n return;\n }\n const pinnedSibling = sibling.pinnedSibling;\n const container = pinnedSibling && this.findPinnedRowNode(pinnedSibling);\n if (!float) {\n if (!container) {\n return;\n }\n container.delete(pinnedSibling);\n _destroyRowNodeSibling(pinnedSibling);\n } else {\n if (container && container.floating !== float) {\n container.delete(pinnedSibling);\n _destroyRowNodeSibling(pinnedSibling);\n }\n if (!container || container.floating !== float) {\n const newPinnedSibling = _createPinnedSibling(beans, sibling, float);\n this.getContainer(float).add(newPinnedSibling);\n }\n }\n }\n onGridStylesChanges(e) {\n if (e.rowHeightChanged) {\n this.forContainers(\n (container) => container.forEach((rowNode) => rowNode.setRowHeight(rowNode.rowHeight, true))\n );\n }\n }\n getContainer(floating) {\n return floating === \"top\" ? this.top : this.bottom;\n }\n findPinnedRowNode(node) {\n if (this.top.has(node)) {\n return this.top;\n }\n if (this.bottom.has(node)) {\n return this.bottom;\n }\n }\n refreshRowPositions(floating) {\n const refreshAll = (pinned) => refreshRowPositions(this.beans, pinned);\n if (floating) {\n return refreshAll(this.getContainer(floating));\n }\n let changed = false;\n this.forContainers((container) => {\n const updated = refreshAll(container);\n changed || (changed = updated);\n });\n return changed;\n }\n forContainers(fn) {\n fn(this.top, \"top\");\n fn(this.bottom, \"bottom\");\n }\n dispatchRowPinnedEvents(node) {\n this.eventSvc.dispatchEvent({ type: \"pinnedRowsChanged\" });\n node?.dispatchRowEvent(\"rowPinned\");\n }\n};\nfunction refreshRowPositions(beans, container) {\n let rowTop = 0;\n let changed = false;\n container.forEach((node, index) => {\n changed || (changed = node.rowTop !== rowTop);\n node.setRowTop(rowTop);\n if (node.rowHeightEstimated || node.rowHeight == null) {\n const rowHeight = _getRowHeightForNode(beans, node).height;\n changed || (changed = node.rowHeight !== rowHeight);\n node.setRowHeight(rowHeight);\n }\n node.setRowIndex(index);\n rowTop += node.rowHeight;\n });\n return changed;\n}\nfunction _createPinnedSibling(beans, rowNode, floating) {\n if (rowNode.pinnedSibling) {\n return rowNode.pinnedSibling;\n }\n const sibling = _createRowNodeSibling(rowNode, beans);\n sibling.setRowTop(null);\n sibling.setRowIndex(null);\n sibling.rowPinned = floating;\n const prefix = floating === \"top\" ? ROW_ID_PREFIX_TOP_PINNED : ROW_ID_PREFIX_BOTTOM_PINNED;\n sibling.id = `${prefix}${floating}-${rowNode.id}`;\n sibling.pinnedSibling = rowNode;\n rowNode.pinnedSibling = sibling;\n return sibling;\n}\nfunction _destroyRowNodeSibling(rowNode) {\n if (!rowNode.pinnedSibling) {\n return;\n }\n rowNode.rowPinned = null;\n rowNode.setRowTop(null);\n rowNode.setRowIndex(null);\n const mainNode = rowNode.pinnedSibling;\n rowNode.pinnedSibling = void 0;\n if (mainNode) {\n mainNode.pinnedSibling = void 0;\n mainNode.rowPinned = null;\n }\n}\nfunction removeGroupRows(set) {\n const rowsToRemove = /* @__PURE__ */ new Set();\n set.forEach((node) => {\n if (node.group) {\n rowsToRemove.add(node);\n }\n });\n rowsToRemove.forEach((node) => set.delete(node));\n}\nfunction getSpannedRows(beans, rowNode, column) {\n const { rowSpanSvc } = beans;\n const isCellSpanning = (column && rowSpanSvc?.isCellSpanning(column, rowNode)) ?? false;\n if (column && isCellSpanning) {\n return rowSpanSvc?.getCellSpan(column, rowNode)?.spannedNodes;\n }\n}\nfunction getTotalHeight(container) {\n const size = container.size();\n if (size === 0) {\n return 0;\n }\n const node = container.getByIndex(size - 1);\n if (node === void 0) {\n return 0;\n }\n return node.rowTop + node.rowHeight;\n}\nfunction refreshCSRM({ gos, rowModel }) {\n if (_isClientSideRowModel(gos, rowModel)) {\n rowModel.refreshModel({ step: \"map\" });\n }\n}\n\n// packages/ag-grid-community/src/pinnedRowModel/staticPinnedRowModel.ts\nvar StaticPinnedRowModel = class extends BeanStub {\n constructor() {\n super(...arguments);\n this.nextId = 0;\n this.pinnedTopRows = { cache: {}, order: [] };\n this.pinnedBottomRows = { cache: {}, order: [] };\n }\n postConstruct() {\n const gos = this.gos;\n this.setPinnedRowData(gos.get(\"pinnedTopRowData\"), \"top\");\n this.setPinnedRowData(gos.get(\"pinnedBottomRowData\"), \"bottom\");\n this.addManagedPropertyListener(\"pinnedTopRowData\", (e) => this.setPinnedRowData(e.currentValue, \"top\"));\n this.addManagedPropertyListener(\"pinnedBottomRowData\", (e) => this.setPinnedRowData(e.currentValue, \"bottom\"));\n this.addManagedEventListeners({ gridStylesChanged: this.onGridStylesChanges.bind(this) });\n }\n reset() {\n }\n isEmpty(floating) {\n return this.getCache(floating).order.length === 0;\n }\n isRowsToRender(floating) {\n return !this.isEmpty(floating);\n }\n isManual() {\n return false;\n }\n pinRow(_node, _container) {\n }\n onGridStylesChanges(e) {\n if (e.rowHeightChanged) {\n const estimateRowHeight = (rowNode) => {\n rowNode.setRowHeight(rowNode.rowHeight, true);\n };\n forEach(this.pinnedBottomRows, estimateRowHeight);\n forEach(this.pinnedTopRows, estimateRowHeight);\n }\n }\n ensureRowHeightsValid() {\n let anyChange = false;\n let rowTop = 0;\n const updateRowHeight = (rowNode) => {\n if (rowNode.rowHeightEstimated) {\n const rowHeight = _getRowHeightForNode(this.beans, rowNode);\n rowNode.setRowTop(rowTop);\n rowNode.setRowHeight(rowHeight.height);\n rowTop += rowHeight.height;\n anyChange = true;\n }\n };\n forEach(this.pinnedBottomRows, updateRowHeight);\n rowTop = 0;\n forEach(this.pinnedTopRows, updateRowHeight);\n this.eventSvc.dispatchEvent({\n type: \"pinnedHeightChanged\"\n });\n return anyChange;\n }\n setPinnedRowData(rowData, floating) {\n this.updateNodesFromRowData(rowData, floating);\n this.eventSvc.dispatchEvent({\n type: \"pinnedRowDataChanged\"\n });\n }\n /**\n * Updates existing RowNode instances and creates new ones if necessary\n *\n * Setting data as `undefined` will clear row nodes\n */\n updateNodesFromRowData(allData, floating) {\n const nodes = this.getCache(floating);\n if (allData === void 0) {\n nodes.order.length = 0;\n nodes.cache = {};\n return;\n }\n const getRowId = _getRowIdCallback(this.gos);\n const idPrefix = floating === \"top\" ? ROW_ID_PREFIX_TOP_PINNED : ROW_ID_PREFIX_BOTTOM_PINNED;\n const nodesToRemove = new Set(nodes.order);\n const newOrder = [];\n const dataIds = /* @__PURE__ */ new Set();\n let nextRowTop = 0;\n let i = -1;\n for (const data of allData) {\n const id = getRowId?.({ data, level: 0, rowPinned: floating }) ?? idPrefix + this.nextId++;\n if (dataIds.has(id)) {\n _warn(96, { id, data });\n continue;\n }\n i++;\n dataIds.add(id);\n newOrder.push(id);\n const existingNode = getById(nodes, id);\n if (existingNode !== void 0) {\n if (existingNode.data !== data) {\n existingNode.updateData(data);\n }\n nextRowTop += this.setRowTopAndRowIndex(existingNode, nextRowTop, i);\n nodesToRemove.delete(id);\n } else {\n const rowNode = new RowNode(this.beans);\n rowNode.id = id;\n rowNode.data = data;\n rowNode.rowPinned = floating;\n nextRowTop += this.setRowTopAndRowIndex(rowNode, nextRowTop, i);\n nodes.cache[id] = rowNode;\n nodes.order.push(id);\n }\n }\n for (const id of nodesToRemove) {\n getById(nodes, id)?.clearRowTopAndRowIndex();\n delete nodes.cache[id];\n }\n nodes.order = newOrder;\n }\n setRowTopAndRowIndex(rowNode, rowTop, rowIndex) {\n rowNode.setRowTop(rowTop);\n rowNode.setRowHeight(_getRowHeightForNode(this.beans, rowNode).height);\n rowNode.setRowIndex(rowIndex);\n return rowNode.rowHeight;\n }\n getPinnedTopTotalHeight() {\n return getTotalHeight2(this.pinnedTopRows);\n }\n getPinnedBottomTotalHeight() {\n return getTotalHeight2(this.pinnedBottomRows);\n }\n getPinnedTopRowCount() {\n return getSize(this.pinnedTopRows);\n }\n getPinnedBottomRowCount() {\n return getSize(this.pinnedBottomRows);\n }\n getPinnedTopRow(index) {\n return getByIndex(this.pinnedTopRows, index);\n }\n getPinnedBottomRow(index) {\n return getByIndex(this.pinnedBottomRows, index);\n }\n getPinnedRowById(id, floating) {\n return getById(this.getCache(floating), id);\n }\n forEachPinnedRow(floating, callback) {\n return forEach(this.getCache(floating), callback);\n }\n getCache(floating) {\n return floating === \"top\" ? this.pinnedTopRows : this.pinnedBottomRows;\n }\n getPinnedState() {\n return { top: [], bottom: [] };\n }\n setPinnedState() {\n }\n getGrandTotalPinned() {\n return;\n }\n setGrandTotalPinned() {\n }\n};\nfunction getTotalHeight2(rowNodes) {\n const size = getSize(rowNodes);\n if (size === 0) {\n return 0;\n }\n const node = getByIndex(rowNodes, size - 1);\n if (node === void 0) {\n return 0;\n }\n return node.rowTop + node.rowHeight;\n}\nfunction getById(cache, id) {\n return cache.cache[id];\n}\nfunction getByIndex(cache, i) {\n return getById(cache, cache.order[i]);\n}\nfunction forEach(cache, callback) {\n cache.order.forEach((id, index) => {\n const node = getById(cache, id);\n node && callback(node, index);\n });\n}\nfunction getSize(cache) {\n return cache.order.length;\n}\n\n// packages/ag-grid-community/src/pinnedRowModel/pinnedRowModel.ts\nvar PinnedRowModel = class extends BeanStub {\n constructor() {\n super(...arguments);\n this.beanName = \"pinnedRowModel\";\n }\n postConstruct() {\n const { gos } = this;\n const initialiseRowModel = () => {\n const enableRowPinning = gos.get(\"enableRowPinning\");\n const grandTotalRow = _getGrandTotalRow(gos);\n const isGrandTotalRowPinned = grandTotalRow === \"pinnedBottom\" || grandTotalRow === \"pinnedTop\";\n const useManualPinnedRowModel = !!enableRowPinning || isGrandTotalRowPinned;\n const shouldDestroy = useManualPinnedRowModel ? this.inner instanceof StaticPinnedRowModel : this.inner instanceof ManualPinnedRowModel;\n if (this.inner && shouldDestroy) {\n this.destroyBean(this.inner);\n }\n if (shouldDestroy || !this.inner) {\n this.inner = this.createManagedBean(\n useManualPinnedRowModel ? new ManualPinnedRowModel() : new StaticPinnedRowModel()\n );\n }\n };\n this.addManagedPropertyListeners([\"enableRowPinning\", \"grandTotalRow\"], initialiseRowModel);\n initialiseRowModel();\n }\n reset() {\n return this.inner.reset();\n }\n isEmpty(container) {\n return this.inner.isEmpty(container);\n }\n isManual() {\n return this.inner.isManual();\n }\n isRowsToRender(container) {\n return this.inner.isRowsToRender(container);\n }\n pinRow(node, container, column) {\n return this.inner.pinRow(node, container, column);\n }\n ensureRowHeightsValid() {\n return this.inner.ensureRowHeightsValid();\n }\n getPinnedRowById(id, container) {\n return this.inner.getPinnedRowById(id, container);\n }\n getPinnedTopTotalHeight() {\n return this.inner.getPinnedTopTotalHeight();\n }\n getPinnedBottomTotalHeight() {\n return this.inner.getPinnedBottomTotalHeight();\n }\n getPinnedTopRowCount() {\n return this.inner.getPinnedTopRowCount();\n }\n getPinnedBottomRowCount() {\n return this.inner.getPinnedBottomRowCount();\n }\n getPinnedTopRow(index) {\n return this.inner.getPinnedTopRow(index);\n }\n getPinnedBottomRow(index) {\n return this.inner.getPinnedBottomRow(index);\n }\n forEachPinnedRow(container, callback) {\n return this.inner.forEachPinnedRow(container, callback);\n }\n getPinnedState() {\n return this.inner.getPinnedState();\n }\n setPinnedState(state) {\n return this.inner.setPinnedState(state);\n }\n setGrandTotalPinned(value) {\n return this.inner.setGrandTotalPinned(value);\n }\n getGrandTotalPinned() {\n return this.inner.getGrandTotalPinned();\n }\n};\n\n// packages/ag-grid-community/src/interfaces/serverSideTransaction.ts\nvar ServerSideTransactionResultStatus = /* @__PURE__ */ ((ServerSideTransactionResultStatus2) => {\n ServerSideTransactionResultStatus2[\"Applied\"] = \"Applied\";\n ServerSideTransactionResultStatus2[\"StoreNotFound\"] = \"StoreNotFound\";\n ServerSideTransactionResultStatus2[\"StoreLoading\"] = \"StoreLoading\";\n ServerSideTransactionResultStatus2[\"StoreWaitingToLoad\"] = \"StoreWaitingToLoad\";\n ServerSideTransactionResultStatus2[\"StoreLoadingFailed\"] = \"StoreLoadingFailed\";\n ServerSideTransactionResultStatus2[\"StoreWrongType\"] = \"StoreWrongType\";\n ServerSideTransactionResultStatus2[\"Cancelled\"] = \"Cancelled\";\n ServerSideTransactionResultStatus2[\"StoreNotStarted\"] = \"StoreNotStarted\";\n return ServerSideTransactionResultStatus2;\n})(ServerSideTransactionResultStatus || {});\n\n// packages/ag-grid-community/src/pinnedRowModel/pinnedRowUtils.ts\nfunction _isManualPinnedRow(rowNode) {\n return !!(rowNode.rowPinned && rowNode.pinnedSibling);\n}\nfunction _getNodesInRangeForSelection(rowModel, float, start, end) {\n const isTop = float === \"top\";\n if (!start) {\n return _getNodesInRangeForSelection(\n rowModel,\n float,\n isTop ? rowModel.getPinnedTopRow(0) : rowModel.getPinnedBottomRow(0),\n end\n );\n }\n if (!end) {\n const count = isTop ? rowModel.getPinnedTopRowCount() : rowModel.getPinnedBottomRowCount();\n return _getNodesInRangeForSelection(\n rowModel,\n float,\n start,\n isTop ? rowModel.getPinnedTopRow(count - 1) : rowModel.getPinnedBottomRow(count - 1)\n );\n }\n let started = false;\n let finished = false;\n const range = [];\n rowModel.forEachPinnedRow(float, (node) => {\n if (node === start && !started) {\n started = true;\n range.push(node);\n return;\n }\n if (started && node === end) {\n finished = true;\n range.push(node);\n return;\n }\n if (started && !finished) {\n range.push(node);\n }\n });\n return range;\n}\n\n// packages/ag-grid-community/src/selection/checkboxSelectionComponent.ts\nvar CheckboxSelectionComponentElement = {\n tag: \"div\",\n cls: \"ag-selection-checkbox\",\n role: \"presentation\",\n children: [\n {\n tag: \"ag-checkbox\",\n ref: \"eCheckbox\",\n role: \"presentation\"\n }\n ]\n};\nvar CheckboxSelectionComponent = class extends Component {\n constructor() {\n super(CheckboxSelectionComponentElement, [AgCheckboxSelector]);\n this.eCheckbox = RefPlaceholder;\n }\n postConstruct() {\n this.eCheckbox.setPassive(true);\n }\n onDataChanged() {\n this.onSelectionChanged();\n }\n onSelectableChanged() {\n this.showOrHideSelect();\n }\n onSelectionChanged() {\n const translate = this.getLocaleTextFunc();\n const { rowNode, eCheckbox } = this;\n const state = rowNode.isSelected();\n const stateName = _getAriaCheckboxStateName(translate, state);\n const [ariaKey, ariaLabel] = rowNode.selectable ? [\"ariaRowToggleSelection\", \"Press Space to toggle row selection\"] : [\"ariaRowSelectionDisabled\", \"Row Selection is disabled for this row\"];\n const translatedLabel = translate(ariaKey, ariaLabel);\n eCheckbox.setValue(state, true);\n eCheckbox.setInputAriaLabel(`${translatedLabel} (${stateName})`);\n }\n init(params) {\n this.rowNode = params.rowNode;\n this.column = params.column;\n this.overrides = params.overrides;\n this.onSelectionChanged();\n this.addManagedListeners(this.eCheckbox.getInputElement(), {\n // we don't want double click on this icon to open a group\n dblclick: _stopPropagationForAgGrid,\n click: (event) => {\n _stopPropagationForAgGrid(event);\n this.beans.selectionSvc?.handleSelectionEvent(event, this.rowNode, \"checkboxSelected\");\n }\n });\n this.addManagedListeners(this.rowNode, {\n rowSelected: this.onSelectionChanged.bind(this),\n dataChanged: this.onDataChanged.bind(this),\n selectableChanged: this.onSelectableChanged.bind(this)\n });\n this.addManagedPropertyListener(\"rowSelection\", ({ currentValue, previousValue }) => {\n const curr = typeof currentValue === \"object\" ? _getHideDisabledCheckboxes(currentValue) : void 0;\n const prev = typeof previousValue === \"object\" ? _getHideDisabledCheckboxes(previousValue) : void 0;\n if (curr !== prev) {\n this.onSelectableChanged();\n }\n });\n const isRowSelectableFunc = _getIsRowSelectable(this.gos);\n const checkboxVisibleIsDynamic = isRowSelectableFunc || typeof this.getIsVisible() === \"function\";\n if (checkboxVisibleIsDynamic) {\n const showOrHideSelectListener = this.showOrHideSelect.bind(this);\n this.addManagedEventListeners({ displayedColumnsChanged: showOrHideSelectListener });\n this.addManagedListeners(this.rowNode, {\n dataChanged: showOrHideSelectListener,\n cellChanged: showOrHideSelectListener\n });\n this.showOrHideSelect();\n }\n this.eCheckbox.getInputElement().setAttribute(\"tabindex\", \"-1\");\n }\n showOrHideSelect() {\n const { column, rowNode, overrides, gos } = this;\n const selectable = rowNode.selectable;\n const isVisible = this.getIsVisible();\n let checkboxes = void 0;\n if (typeof isVisible === \"function\") {\n const extraParams = overrides?.callbackParams;\n if (!column) {\n checkboxes = isVisible({ ...extraParams, node: rowNode, data: rowNode.data });\n } else {\n const params = column.createColumnFunctionCallbackParams(rowNode);\n checkboxes = isVisible({ ...extraParams, ...params });\n }\n } else {\n checkboxes = isVisible ?? false;\n }\n const disabled = selectable && !checkboxes || !selectable && checkboxes;\n const visible = selectable || checkboxes;\n const so = gos.get(\"rowSelection\");\n const showDisabledCheckboxes = so && typeof so !== \"string\" ? !_getHideDisabledCheckboxes(so) : !!column?.getColDef().showDisabledCheckboxes;\n this.setVisible(visible && (disabled ? showDisabledCheckboxes : true));\n this.setDisplayed(visible && (disabled ? showDisabledCheckboxes : true));\n if (visible) {\n this.eCheckbox.setDisabled(disabled);\n }\n if (overrides?.removeHidden) {\n this.setDisplayed(visible);\n }\n }\n getIsVisible() {\n const overrides = this.overrides;\n if (overrides) {\n return overrides.isVisible;\n }\n const so = this.gos.get(\"rowSelection\");\n if (so && typeof so !== \"string\") {\n return _getCheckboxes(so);\n }\n return this.column?.getColDef()?.checkboxSelection;\n }\n};\n\n// packages/ag-grid-community/src/selection/rowRangeSelectionContext.ts\nvar RowRangeSelectionContext = class {\n constructor(rowModel, pinnedRowModel) {\n this.rowModel = rowModel;\n this.pinnedRowModel = pinnedRowModel;\n /** Whether the user is currently selecting all nodes either via the header checkbox or API */\n this.selectAll = false;\n this.rootId = null;\n /**\n * Note that the \"end\" `RowNode` may come before or after the \"root\" `RowNode` in the\n * actual grid.\n */\n this.endId = null;\n this.cachedRange = [];\n }\n reset() {\n this.rootId = null;\n this.endId = null;\n this.cachedRange.length = 0;\n }\n setRoot(node) {\n this.rootId = node.id;\n this.endId = null;\n this.cachedRange.length = 0;\n }\n setEndRange(end) {\n this.endId = end.id;\n this.cachedRange.length = 0;\n }\n getRange() {\n if (this.cachedRange.length === 0) {\n const root = this.getRoot();\n const end = this.getEnd();\n if (root == null || end == null) {\n return this.cachedRange;\n }\n this.cachedRange = this.getNodesInRange(root, end) ?? [];\n }\n return this.cachedRange;\n }\n isInRange(node) {\n if (this.rootId === null) {\n return false;\n }\n return this.getRange().some((nodeInRange) => nodeInRange.id === node.id);\n }\n getRoot(fallback) {\n if (this.rootId) {\n return this.getRowNode(this.rootId);\n }\n if (fallback) {\n this.setRoot(fallback);\n return fallback;\n }\n }\n getEnd() {\n if (this.endId) {\n return this.getRowNode(this.endId);\n }\n }\n getRowNode(id) {\n let node;\n const { rowModel, pinnedRowModel } = this;\n node ?? (node = rowModel.getRowNode(id));\n if (pinnedRowModel?.isManual()) {\n node ?? (node = pinnedRowModel.getPinnedRowById(id, \"top\"));\n node ?? (node = pinnedRowModel.getPinnedRowById(id, \"bottom\"));\n }\n return node;\n }\n /**\n * Truncates the range to the given node (assumed to be within the current range).\n * Returns nodes that remain in the current range and those that should be removed\n *\n * @param node - Node at which to truncate the range\n * @returns Object of nodes to either keep or discard (i.e. deselect) from the range\n */\n truncate(node) {\n const range = this.getRange();\n if (range.length === 0) {\n return { keep: [], discard: [] };\n }\n const discardAfter = range[0].id === this.rootId;\n const idx = range.findIndex((rowNode) => rowNode.id === node.id);\n if (idx > -1) {\n const above = range.slice(0, idx);\n const below = range.slice(idx + 1);\n this.setEndRange(node);\n return discardAfter ? { keep: above, discard: below } : { keep: below, discard: above };\n } else {\n return { keep: range, discard: [] };\n }\n }\n /**\n * Extends the range to the given node. Returns nodes that remain in the current range\n * and those that should be removed.\n *\n * @param node - Node marking the new end of the range\n * @returns Object of nodes to either keep or discard (i.e. deselect) from the range\n */\n extend(node, groupSelectsChildren = false) {\n const root = this.getRoot();\n if (root == null) {\n const keep = this.getRange().slice();\n if (groupSelectsChildren) {\n node.depthFirstSearch((node2) => !node2.group && keep.push(node2));\n }\n keep.push(node);\n this.setRoot(node);\n return { keep, discard: [] };\n }\n const newRange = this.getNodesInRange(root, node);\n if (!newRange) {\n this.setRoot(node);\n return { keep: [node], discard: [] };\n }\n if (newRange.find((newRangeNode) => newRangeNode.id === this.endId)) {\n this.setEndRange(node);\n return { keep: this.getRange(), discard: [] };\n } else {\n const discard = this.getRange().slice();\n this.setEndRange(node);\n return { keep: this.getRange(), discard };\n }\n }\n getNodesInRange(start, end) {\n const { pinnedRowModel, rowModel } = this;\n if (!pinnedRowModel?.isManual()) {\n return rowModel.getNodesInRangeForSelection(start, end);\n }\n if (start.rowPinned === \"top\" && !end.rowPinned) {\n const pinnedRange = _getNodesInRangeForSelection(pinnedRowModel, \"top\", start, void 0);\n return pinnedRange.concat(rowModel.getNodesInRangeForSelection(rowModel.getRow(0), end) ?? []);\n }\n if (start.rowPinned === \"bottom\" && !end.rowPinned) {\n const pinnedRange = _getNodesInRangeForSelection(pinnedRowModel, \"bottom\", void 0, start);\n const count = rowModel.getRowCount();\n const lastMain = rowModel.getRow(count - 1);\n return (rowModel.getNodesInRangeForSelection(end, lastMain) ?? []).concat(pinnedRange);\n }\n if (!start.rowPinned && !end.rowPinned) {\n return rowModel.getNodesInRangeForSelection(start, end);\n }\n if (start.rowPinned === \"top\" && end.rowPinned === \"top\") {\n return _getNodesInRangeForSelection(pinnedRowModel, \"top\", start, end);\n }\n if (start.rowPinned === \"bottom\" && end.rowPinned === \"top\") {\n const top = _getNodesInRangeForSelection(pinnedRowModel, \"top\", end, void 0);\n const bottom = _getNodesInRangeForSelection(pinnedRowModel, \"bottom\", void 0, start);\n const first = rowModel.getRow(0);\n const last = rowModel.getRow(rowModel.getRowCount() - 1);\n return top.concat(rowModel.getNodesInRangeForSelection(first, last) ?? []).concat(bottom);\n }\n if (!start.rowPinned && end.rowPinned === \"top\") {\n const pinned = _getNodesInRangeForSelection(pinnedRowModel, \"top\", end, void 0);\n return pinned.concat(rowModel.getNodesInRangeForSelection(rowModel.getRow(0), start) ?? []);\n }\n if (start.rowPinned === \"top\" && end.rowPinned === \"bottom\") {\n const top = _getNodesInRangeForSelection(pinnedRowModel, \"top\", start, void 0);\n const bottom = _getNodesInRangeForSelection(pinnedRowModel, \"bottom\", void 0, end);\n const first = rowModel.getRow(0);\n const last = rowModel.getRow(rowModel.getRowCount() - 1);\n return top.concat(rowModel.getNodesInRangeForSelection(first, last) ?? []).concat(bottom);\n }\n if (start.rowPinned === \"bottom\" && end.rowPinned === \"bottom\") {\n return _getNodesInRangeForSelection(pinnedRowModel, \"bottom\", start, end);\n }\n if (!start.rowPinned && end.rowPinned === \"bottom\") {\n const pinned = _getNodesInRangeForSelection(pinnedRowModel, \"bottom\", void 0, end);\n const last = rowModel.getRow(rowModel.getRowCount());\n return (rowModel.getNodesInRangeForSelection(start, last) ?? []).concat(pinned);\n }\n return null;\n }\n};\n\n// packages/ag-grid-community/src/selection/selectAllFeature.ts\nvar SelectAllFeature = class extends BeanStub {\n constructor(column) {\n super();\n this.column = column;\n this.cbSelectAllVisible = false;\n this.processingEventFromCheckbox = false;\n }\n onSpaceKeyDown(e) {\n const checkbox = this.cbSelectAll;\n if (checkbox.isDisplayed() && !checkbox.getGui().contains(_getActiveDomElement(this.beans))) {\n e.preventDefault();\n checkbox.setValue(!checkbox.getValue());\n }\n }\n getCheckboxGui() {\n return this.cbSelectAll.getGui();\n }\n setComp(ctrl) {\n this.headerCellCtrl = ctrl;\n const cbSelectAll = this.createManagedBean(new AgCheckbox());\n this.cbSelectAll = cbSelectAll;\n cbSelectAll.addCss(\"ag-header-select-all\");\n _setAriaRole(cbSelectAll.getGui(), \"presentation\");\n this.showOrHideSelectAll();\n const updateStateOfCheckbox = this.updateStateOfCheckbox.bind(this);\n this.addManagedEventListeners({\n newColumnsLoaded: () => this.showOrHideSelectAll(),\n displayedColumnsChanged: this.onDisplayedColumnsChanged.bind(this),\n selectionChanged: updateStateOfCheckbox,\n paginationChanged: updateStateOfCheckbox,\n modelUpdated: updateStateOfCheckbox\n });\n this.addManagedPropertyListener(\"rowSelection\", ({ currentValue, previousValue }) => {\n const getSelectAll = (rowSelection) => typeof rowSelection === \"string\" || !rowSelection || rowSelection.mode === \"singleRow\" ? void 0 : rowSelection.selectAll;\n if (getSelectAll(currentValue) !== getSelectAll(previousValue)) {\n this.showOrHideSelectAll();\n }\n this.updateStateOfCheckbox();\n });\n this.addManagedListeners(cbSelectAll, { fieldValueChanged: this.onCbSelectAll.bind(this) });\n cbSelectAll.getInputElement().setAttribute(\"tabindex\", \"-1\");\n this.refreshSelectAllLabel();\n }\n onDisplayedColumnsChanged(e) {\n if (!this.isAlive()) {\n return;\n }\n this.showOrHideSelectAll(e.source === \"uiColumnMoved\");\n }\n showOrHideSelectAll(fromColumnMoved = false) {\n const cbSelectAllVisible = this.isCheckboxSelection();\n this.cbSelectAllVisible = cbSelectAllVisible;\n this.cbSelectAll.setDisplayed(cbSelectAllVisible);\n if (cbSelectAllVisible) {\n this.checkRightRowModelType(\"selectAllCheckbox\");\n this.checkSelectionType(\"selectAllCheckbox\");\n this.updateStateOfCheckbox();\n }\n this.refreshSelectAllLabel(fromColumnMoved);\n }\n updateStateOfCheckbox() {\n if (!this.cbSelectAllVisible || this.processingEventFromCheckbox) {\n return;\n }\n this.processingEventFromCheckbox = true;\n const selectAllMode = this.getSelectAllMode();\n const selectionSvc = this.beans.selectionSvc;\n const cbSelectAll = this.cbSelectAll;\n const allSelected = selectionSvc.getSelectAllState(selectAllMode);\n cbSelectAll.setValue(allSelected);\n const hasNodesToSelect = selectionSvc.hasNodesToSelect(selectAllMode);\n cbSelectAll.setDisabled(!hasNodesToSelect);\n this.refreshSelectAllLabel();\n this.processingEventFromCheckbox = false;\n }\n refreshSelectAllLabel(fromColumnMoved = false) {\n const translate = this.getLocaleTextFunc();\n const { headerCellCtrl, cbSelectAll, cbSelectAllVisible } = this;\n const checked = cbSelectAll.getValue();\n const ariaStatus = _getAriaCheckboxStateName(translate, checked);\n const ariaLabel = translate(\"ariaRowSelectAll\", \"Press Space to toggle all rows selection\");\n headerCellCtrl.setAriaDescriptionProperty(\n \"selectAll\",\n cbSelectAllVisible ? `${ariaLabel} (${ariaStatus})` : null\n );\n cbSelectAll.setInputAriaLabel(translate(\"ariaHeaderSelection\", \"Column with Header Selection\"));\n if (!fromColumnMoved) {\n headerCellCtrl.announceAriaDescription();\n }\n }\n checkSelectionType(feature) {\n const isMultiSelect = _isMultiRowSelection(this.gos);\n if (!isMultiSelect) {\n _warn(128, { feature });\n return false;\n }\n return true;\n }\n checkRightRowModelType(feature) {\n const { gos, rowModel } = this.beans;\n const rowModelMatches = _isClientSideRowModel(gos) || _isServerSideRowModel(gos);\n if (!rowModelMatches) {\n _warn(129, { feature, rowModel: rowModel.getType() });\n return false;\n }\n return true;\n }\n onCbSelectAll() {\n if (this.processingEventFromCheckbox) {\n return;\n }\n if (!this.cbSelectAllVisible) {\n return;\n }\n const value = this.cbSelectAll.getValue();\n const selectAll2 = this.getSelectAllMode();\n let source = \"uiSelectAll\";\n if (selectAll2 === \"currentPage\") {\n source = \"uiSelectAllCurrentPage\";\n } else if (selectAll2 === \"filtered\") {\n source = \"uiSelectAllFiltered\";\n }\n const params = { source, selectAll: selectAll2 };\n const selectionSvc = this.beans.selectionSvc;\n if (value) {\n selectionSvc.selectAllRowNodes(params);\n } else {\n selectionSvc.deselectAllRowNodes(params);\n }\n }\n /**\n * Checkbox is enabled when either the `headerCheckbox` option is enabled in the new selection API\n * or `headerCheckboxSelection` is enabled in the legacy API.\n */\n isCheckboxSelection() {\n const { column, gos, beans } = this;\n const rowSelection = gos.get(\"rowSelection\");\n const newHeaderCheckbox = typeof rowSelection === \"object\";\n const featureName = newHeaderCheckbox ? \"headerCheckbox\" : \"headerCheckboxSelection\";\n return isCheckboxSelection(beans, column) && this.checkRightRowModelType(featureName) && this.checkSelectionType(featureName);\n }\n getSelectAllMode() {\n const selectAll2 = _getSelectAll(this.gos, false);\n if (selectAll2) {\n return selectAll2;\n }\n const { headerCheckboxSelectionCurrentPageOnly, headerCheckboxSelectionFilteredOnly } = this.column.getColDef();\n if (headerCheckboxSelectionCurrentPageOnly) {\n return \"currentPage\";\n }\n if (headerCheckboxSelectionFilteredOnly) {\n return \"filtered\";\n }\n return \"all\";\n }\n destroy() {\n super.destroy();\n this.cbSelectAll = void 0;\n this.headerCellCtrl = void 0;\n }\n};\nfunction isCheckboxSelection({ gos, selectionColSvc }, column) {\n const rowSelection = gos.get(\"rowSelection\");\n const colDef = column.getColDef();\n const { headerCheckboxSelection } = colDef;\n let result = false;\n const newHeaderCheckbox = typeof rowSelection === \"object\";\n if (newHeaderCheckbox) {\n const isSelectionCol = isColumnSelectionCol(column);\n const isAutoCol = isColumnGroupAutoCol(column);\n const location = _getCheckboxLocation(rowSelection);\n if (location === \"autoGroupColumn\" && isAutoCol || isSelectionCol && selectionColSvc?.isSelectionColumnEnabled()) {\n result = _getHeaderCheckbox(rowSelection);\n }\n } else if (typeof headerCheckboxSelection === \"function\") {\n result = headerCheckboxSelection(_addGridCommonParams(gos, { column, colDef }));\n } else {\n result = !!headerCheckboxSelection;\n }\n return result;\n}\n\n// packages/ag-grid-community/src/selection/baseSelectionService.ts\nvar BaseSelectionService = class extends BeanStub {\n postConstruct() {\n const { gos, beans } = this;\n this.selectionCtx = new RowRangeSelectionContext(beans.rowModel, beans.pinnedRowModel);\n this.addManagedPropertyListeners([\"isRowSelectable\", \"rowSelection\"], () => {\n const callback = _getIsRowSelectable(gos);\n if (callback !== this.isRowSelectable) {\n this.isRowSelectable = callback;\n this.updateSelectable();\n }\n });\n this.isRowSelectable = _getIsRowSelectable(gos);\n this.addManagedEventListeners({\n cellValueChanged: (e) => this.updateRowSelectable(e.node),\n rowNodeDataChanged: (e) => this.updateRowSelectable(e.node)\n });\n }\n destroy() {\n super.destroy();\n this.selectionCtx.reset();\n }\n createCheckboxSelectionComponent() {\n return new CheckboxSelectionComponent();\n }\n createSelectAllFeature(column) {\n if (isCheckboxSelection(this.beans, column)) {\n return new SelectAllFeature(column);\n }\n }\n isMultiSelect() {\n return _isMultiRowSelection(this.gos);\n }\n onRowCtrlSelected(rowCtrl, hasFocusFunc, gui) {\n const selected = !!rowCtrl.rowNode.isSelected();\n rowCtrl.forEachGui(gui, (gui2) => {\n gui2.rowComp.toggleCss(\"ag-row-selected\", selected);\n const element = gui2.element;\n _setAriaSelected(element, selected);\n const hasFocus = element.contains(_getActiveDomElement(this.beans));\n if (hasFocus) {\n hasFocusFunc(gui2);\n }\n });\n }\n announceAriaRowSelection(rowNode) {\n if (this.isRowSelectionBlocked(rowNode)) {\n return;\n }\n const selected = rowNode.isSelected();\n const isEditing2 = this.beans.editSvc?.isEditing({ rowNode });\n if (!rowNode.selectable || isEditing2) {\n return;\n }\n const translate = this.getLocaleTextFunc();\n const label = translate(\n selected ? \"ariaRowDeselect\" : \"ariaRowSelect\",\n `Press SPACE to ${selected ? \"deselect\" : \"select\"} this row`\n );\n this.beans.ariaAnnounce?.announceValue(label, \"rowSelection\");\n }\n isRowSelectionBlocked(rowNode) {\n return !rowNode.selectable || rowNode.rowPinned && !_isManualPinnedRow(rowNode) || !_isRowSelection(this.gos);\n }\n updateRowSelectable(rowNode, suppressSelectionUpdate) {\n const selectable = rowNode.rowPinned && rowNode.pinnedSibling ? (\n // If row node is pinned sibling, copy selectable status over from sibling row node\n rowNode.pinnedSibling.selectable\n ) : (\n // otherwise calculate selectable state directly\n this.isRowSelectable?.(rowNode) ?? true\n );\n this.setRowSelectable(rowNode, selectable, suppressSelectionUpdate);\n return selectable;\n }\n setRowSelectable(rowNode, newVal, suppressSelectionUpdate) {\n if (rowNode.selectable !== newVal) {\n rowNode.selectable = newVal;\n rowNode.dispatchRowEvent(\"selectableChanged\");\n if (suppressSelectionUpdate) {\n return;\n }\n const isGroupSelectsChildren = _getGroupSelectsDescendants(this.gos);\n if (isGroupSelectsChildren) {\n const selected = this.calculateSelectedFromChildren(rowNode);\n this.setNodesSelected({ nodes: [rowNode], newValue: selected ?? false, source: \"selectableChanged\" });\n return;\n }\n if (rowNode.isSelected() && !rowNode.selectable) {\n this.setNodesSelected({ nodes: [rowNode], newValue: false, source: \"selectableChanged\" });\n }\n }\n }\n calculateSelectedFromChildren(rowNode) {\n let atLeastOneSelected = false;\n let atLeastOneDeSelected = false;\n if (!rowNode.childrenAfterGroup?.length) {\n return rowNode.selectable ? rowNode.__selected : null;\n }\n for (let i = 0; i < rowNode.childrenAfterGroup.length; i++) {\n const child = rowNode.childrenAfterGroup[i];\n let childState = child.isSelected();\n if (!child.selectable) {\n const selectable = this.calculateSelectedFromChildren(child);\n if (selectable === null) {\n continue;\n }\n childState = selectable;\n }\n switch (childState) {\n case true:\n atLeastOneSelected = true;\n break;\n case false:\n atLeastOneDeSelected = true;\n break;\n default:\n return void 0;\n }\n }\n if (atLeastOneSelected && atLeastOneDeSelected) {\n return void 0;\n }\n if (atLeastOneSelected) {\n return true;\n }\n if (atLeastOneDeSelected) {\n return false;\n }\n if (!rowNode.selectable) {\n return null;\n }\n return rowNode.__selected;\n }\n selectRowNode(rowNode, newValue, e, source = \"api\") {\n const selectionNotAllowed = !rowNode.selectable && newValue;\n const selectionNotChanged = rowNode.__selected === newValue;\n if (selectionNotAllowed || selectionNotChanged) {\n return false;\n }\n rowNode.__selected = newValue;\n rowNode.dispatchRowEvent(\"rowSelected\");\n const sibling = rowNode.sibling;\n if (sibling && sibling.footer && sibling.__localEventService) {\n sibling.dispatchRowEvent(\"rowSelected\");\n }\n const pinnedSibling = rowNode.pinnedSibling;\n if (pinnedSibling?.rowPinned && pinnedSibling.__localEventService) {\n pinnedSibling.dispatchRowEvent(\"rowSelected\");\n }\n this.eventSvc.dispatchEvent({\n ..._createGlobalRowEvent(rowNode, this.gos, \"rowSelected\"),\n event: e || null,\n source\n });\n return true;\n }\n isCellCheckboxSelection(column, rowNode) {\n const so = this.gos.get(\"rowSelection\");\n if (so && typeof so !== \"string\") {\n const checkbox = isColumnSelectionCol(column) && _getCheckboxes(so);\n return column.isColumnFunc(rowNode, checkbox);\n } else {\n return column.isColumnFunc(rowNode, column.colDef.checkboxSelection);\n }\n }\n inferNodeSelections(node, shiftKey, metaKey, source) {\n const { gos, selectionCtx } = this;\n const currentSelection = node.isSelected();\n const groupSelectsDescendants = _getGroupSelectsDescendants(gos);\n const enableClickSelection = _getEnableSelection(gos);\n const enableDeselection = _getEnableDeselection(gos);\n const isMultiSelect = this.isMultiSelect();\n const isRowClicked = source === \"rowClicked\";\n if (isRowClicked && !(enableClickSelection || enableDeselection)) {\n return null;\n }\n if (shiftKey && metaKey && isMultiSelect) {\n const root = selectionCtx.getRoot();\n if (!root) {\n return null;\n } else if (!root.isSelected()) {\n const partition = selectionCtx.extend(node, groupSelectsDescendants);\n return {\n select: [],\n deselect: partition.keep,\n reset: false\n };\n } else {\n const partition = selectionCtx.isInRange(node) ? selectionCtx.truncate(node) : selectionCtx.extend(node, groupSelectsDescendants);\n return {\n deselect: partition.discard,\n select: partition.keep,\n reset: false\n };\n }\n } else if (shiftKey && isMultiSelect) {\n const fallback = selectionCtx.selectAll ? this.beans.rowModel.getRow(0) : void 0;\n const root = selectionCtx.getRoot(fallback);\n const partition = selectionCtx.isInRange(node) ? selectionCtx.truncate(node) : selectionCtx.extend(node, groupSelectsDescendants);\n return {\n select: partition.keep,\n deselect: partition.discard,\n reset: selectionCtx.selectAll || !!(root && !root.isSelected())\n };\n } else if (metaKey) {\n if (isRowClicked) {\n const newValue = !currentSelection;\n const selectingWhenDisabled = newValue && !enableClickSelection;\n const deselectingWhenDisabled = !newValue && !enableDeselection;\n if (selectingWhenDisabled || deselectingWhenDisabled) {\n return null;\n }\n selectionCtx.setRoot(node);\n return {\n node,\n newValue,\n clearSelection: false\n };\n }\n selectionCtx.setRoot(node);\n return {\n node,\n newValue: !currentSelection,\n clearSelection: !isMultiSelect\n };\n } else {\n selectionCtx.setRoot(node);\n const enableSelectionWithoutKeys = _getEnableSelectionWithoutKeys(gos);\n const groupSelectsFiltered = _getGroupSelection(gos) === \"filteredDescendants\";\n const shouldClear = isRowClicked && (!enableSelectionWithoutKeys || !enableClickSelection);\n if (groupSelectsFiltered && currentSelection === void 0 && _isClientSideRowModel(gos)) {\n return {\n node,\n newValue: false,\n checkFilteredNodes: true,\n clearSelection: !isMultiSelect || shouldClear\n };\n }\n if (isRowClicked) {\n const newValue = currentSelection ? !enableSelectionWithoutKeys : enableClickSelection;\n const selectingWhenDisabled = newValue && !enableClickSelection;\n const deselectingWhenDisabled = !newValue && !enableDeselection;\n const wouldStateBeUnchanged = newValue === currentSelection && !shouldClear;\n if (wouldStateBeUnchanged || selectingWhenDisabled || deselectingWhenDisabled) {\n return null;\n }\n return {\n node,\n newValue,\n clearSelection: !isMultiSelect || shouldClear,\n keepDescendants: node.group && groupSelectsDescendants\n };\n }\n return {\n node,\n newValue: !currentSelection,\n clearSelection: !isMultiSelect || shouldClear\n };\n }\n }\n};\n\n// packages/ag-grid-community/src/widgets/tabGuardCtrl.ts\nvar TabGuardClassNames = {\n TAB_GUARD: \"ag-tab-guard\",\n TAB_GUARD_TOP: \"ag-tab-guard-top\",\n TAB_GUARD_BOTTOM: \"ag-tab-guard-bottom\"\n};\nvar TabGuardCtrl = class extends BeanStub {\n constructor(params) {\n super();\n this.skipTabGuardFocus = false;\n this.forcingFocusOut = false;\n // Used when `isFocusableContainer` enabled\n this.allowFocus = false;\n const {\n comp,\n eTopGuard,\n eBottomGuard,\n focusTrapActive,\n forceFocusOutWhenTabGuardsAreEmpty,\n isFocusableContainer,\n focusInnerElement,\n onFocusIn,\n onFocusOut,\n shouldStopEventPropagation,\n onTabKeyDown,\n handleKeyDown,\n isEmpty,\n eFocusableElement\n } = params;\n this.comp = comp;\n this.eTopGuard = eTopGuard;\n this.eBottomGuard = eBottomGuard;\n this.providedFocusInnerElement = focusInnerElement;\n this.eFocusableElement = eFocusableElement;\n this.focusTrapActive = !!focusTrapActive;\n this.forceFocusOutWhenTabGuardsAreEmpty = !!forceFocusOutWhenTabGuardsAreEmpty;\n this.isFocusableContainer = !!isFocusableContainer;\n this.providedFocusIn = onFocusIn;\n this.providedFocusOut = onFocusOut;\n this.providedShouldStopEventPropagation = shouldStopEventPropagation;\n this.providedOnTabKeyDown = onTabKeyDown;\n this.providedHandleKeyDown = handleKeyDown;\n this.providedIsEmpty = isEmpty;\n }\n postConstruct() {\n this.createManagedBean(\n new ManagedFocusFeature(this.eFocusableElement, {\n shouldStopEventPropagation: () => this.shouldStopEventPropagation(),\n onTabKeyDown: (e) => this.onTabKeyDown(e),\n handleKeyDown: (e) => this.handleKeyDown(e),\n onFocusIn: (e) => this.onFocusIn(e),\n onFocusOut: (e) => this.onFocusOut(e)\n })\n );\n this.activateTabGuards();\n for (const guard of [this.eTopGuard, this.eBottomGuard]) {\n this.addManagedElementListeners(guard, { focus: this.onFocus.bind(this) });\n }\n }\n handleKeyDown(e) {\n if (this.providedHandleKeyDown) {\n this.providedHandleKeyDown(e);\n }\n }\n tabGuardsAreActive() {\n return !!this.eTopGuard && this.eTopGuard.hasAttribute(\"tabIndex\");\n }\n shouldStopEventPropagation() {\n if (this.providedShouldStopEventPropagation) {\n return this.providedShouldStopEventPropagation();\n }\n return false;\n }\n activateTabGuards() {\n if (this.forcingFocusOut) {\n return;\n }\n const tabIndex = this.gos.get(\"tabIndex\");\n this.comp.setTabIndex(tabIndex.toString());\n }\n deactivateTabGuards() {\n this.comp.setTabIndex();\n }\n onFocus(e) {\n if (this.isFocusableContainer && !this.eFocusableElement.contains(e.relatedTarget)) {\n if (!this.allowFocus) {\n this.findNextElementOutsideAndFocus(e.target === this.eBottomGuard);\n return;\n }\n }\n if (this.skipTabGuardFocus) {\n this.skipTabGuardFocus = false;\n return;\n }\n if (this.forceFocusOutWhenTabGuardsAreEmpty) {\n const isEmpty = this.providedIsEmpty ? this.providedIsEmpty() : _findFocusableElements(this.eFocusableElement, \".ag-tab-guard\").length === 0;\n if (isEmpty) {\n this.findNextElementOutsideAndFocus(e.target === this.eBottomGuard);\n return;\n }\n }\n if (this.isFocusableContainer && this.eFocusableElement.contains(e.relatedTarget)) {\n return;\n }\n const fromBottom = e.target === this.eBottomGuard;\n const hasFocusedInnerElement = this.providedFocusInnerElement ? this.providedFocusInnerElement(fromBottom) : this.focusInnerElement(fromBottom);\n if (!hasFocusedInnerElement && this.forceFocusOutWhenTabGuardsAreEmpty) {\n this.findNextElementOutsideAndFocus(e.target === this.eBottomGuard);\n }\n }\n findNextElementOutsideAndFocus(up) {\n const eDocument = _getDocument(this.beans);\n const focusableEls = _findFocusableElements(eDocument.body, null, true);\n const index = focusableEls.indexOf(up ? this.eTopGuard : this.eBottomGuard);\n if (index === -1) {\n return;\n }\n let start;\n let end;\n if (up) {\n start = 0;\n end = index;\n } else {\n start = index + 1;\n end = focusableEls.length;\n }\n const focusableRange = focusableEls.slice(start, end);\n const targetTabIndex = this.gos.get(\"tabIndex\");\n focusableRange.sort((a, b) => {\n const indexA = Number.parseInt(a.getAttribute(\"tabindex\") || \"0\");\n const indexB = Number.parseInt(b.getAttribute(\"tabindex\") || \"0\");\n if (indexB === targetTabIndex) {\n return 1;\n }\n if (indexA === targetTabIndex) {\n return -1;\n }\n if (indexA === 0) {\n return 1;\n }\n if (indexB === 0) {\n return -1;\n }\n return indexA - indexB;\n });\n focusableRange[up ? focusableRange.length - 1 : 0]?.focus();\n }\n onFocusIn(e) {\n if (this.focusTrapActive || this.forcingFocusOut) {\n return;\n }\n if (this.providedFocusIn) {\n this.providedFocusIn(e);\n }\n if (!this.isFocusableContainer) {\n this.deactivateTabGuards();\n }\n }\n onFocusOut(e) {\n if (this.focusTrapActive) {\n return;\n }\n if (this.providedFocusOut) {\n this.providedFocusOut(e);\n }\n if (!this.eFocusableElement.contains(e.relatedTarget)) {\n this.activateTabGuards();\n }\n }\n onTabKeyDown(e) {\n if (this.providedOnTabKeyDown) {\n this.providedOnTabKeyDown(e);\n return;\n }\n if (this.focusTrapActive) {\n return;\n }\n if (e.defaultPrevented) {\n return;\n }\n const tabGuardsAreActive = this.tabGuardsAreActive();\n if (tabGuardsAreActive) {\n this.deactivateTabGuards();\n }\n const nextRoot = this.getNextFocusableElement(e.shiftKey);\n if (tabGuardsAreActive) {\n setTimeout(() => this.activateTabGuards(), 0);\n }\n if (!nextRoot) {\n return;\n }\n nextRoot.focus();\n e.preventDefault();\n }\n focusInnerElement(fromBottom = false) {\n const focusable = _findFocusableElements(this.eFocusableElement);\n if (this.tabGuardsAreActive()) {\n focusable.splice(0, 1);\n focusable.splice(focusable.length - 1, 1);\n }\n if (!focusable.length) {\n return false;\n }\n focusable[fromBottom ? focusable.length - 1 : 0].focus({ preventScroll: true });\n return true;\n }\n getNextFocusableElement(backwards) {\n return _findNextFocusableElement(this.beans, this.eFocusableElement, false, backwards);\n }\n forceFocusOutOfContainer(up = false) {\n if (this.forcingFocusOut) {\n return;\n }\n const tabGuardToFocus = up ? this.eTopGuard : this.eBottomGuard;\n this.activateTabGuards();\n this.skipTabGuardFocus = true;\n this.forcingFocusOut = true;\n tabGuardToFocus.focus();\n window.setTimeout(() => {\n this.forcingFocusOut = false;\n this.activateTabGuards();\n });\n }\n isTabGuard(element, bottom) {\n return element === this.eTopGuard && !bottom || element === this.eBottomGuard && (bottom ?? true);\n }\n setAllowFocus(allowFocus) {\n this.allowFocus = allowFocus;\n }\n};\n\n// packages/ag-grid-community/src/widgets/tabGuardFeature.ts\nvar TabGuardFeature = class extends BeanStub {\n constructor(comp) {\n super();\n this.comp = comp;\n }\n initialiseTabGuard(params) {\n this.eTopGuard = this.createTabGuard(\"top\");\n this.eBottomGuard = this.createTabGuard(\"bottom\");\n this.eFocusableElement = this.comp.getFocusableElement();\n const { eTopGuard, eBottomGuard, eFocusableElement } = this;\n const tabGuards = [eTopGuard, eBottomGuard];\n const compProxy = {\n setTabIndex: (tabIndex) => {\n for (const tabGuard of tabGuards) {\n tabIndex != null ? tabGuard.setAttribute(\"tabindex\", tabIndex) : tabGuard.removeAttribute(\"tabindex\");\n }\n }\n };\n this.addTabGuards(eTopGuard, eBottomGuard);\n const {\n focusTrapActive = false,\n onFocusIn,\n onFocusOut,\n focusInnerElement,\n handleKeyDown,\n onTabKeyDown,\n shouldStopEventPropagation,\n isEmpty,\n forceFocusOutWhenTabGuardsAreEmpty,\n isFocusableContainer\n } = params;\n this.tabGuardCtrl = this.createManagedBean(\n new TabGuardCtrl({\n comp: compProxy,\n focusTrapActive,\n eTopGuard,\n eBottomGuard,\n eFocusableElement,\n onFocusIn,\n onFocusOut,\n focusInnerElement,\n handleKeyDown,\n onTabKeyDown,\n shouldStopEventPropagation,\n isEmpty,\n forceFocusOutWhenTabGuardsAreEmpty,\n isFocusableContainer\n })\n );\n }\n getTabGuardCtrl() {\n return this.tabGuardCtrl;\n }\n createTabGuard(side) {\n const tabGuard = _getDocument(this.beans).createElement(\"div\");\n const cls = side === \"top\" ? TabGuardClassNames.TAB_GUARD_TOP : TabGuardClassNames.TAB_GUARD_BOTTOM;\n tabGuard.classList.add(TabGuardClassNames.TAB_GUARD, cls);\n _setAriaRole(tabGuard, \"presentation\");\n return tabGuard;\n }\n addTabGuards(topTabGuard, bottomTabGuard) {\n const eFocusableElement = this.eFocusableElement;\n eFocusableElement.insertAdjacentElement(\"afterbegin\", topTabGuard);\n eFocusableElement.insertAdjacentElement(\"beforeend\", bottomTabGuard);\n }\n removeAllChildrenExceptTabGuards() {\n const tabGuards = [this.eTopGuard, this.eBottomGuard];\n _clearElement(this.comp.getFocusableElement());\n this.addTabGuards(...tabGuards);\n }\n forceFocusOutOfContainer(up = false) {\n this.tabGuardCtrl.forceFocusOutOfContainer(up);\n }\n appendChild(appendChild, newChild, container) {\n if (!_isNodeOrElement(newChild)) {\n newChild = newChild.getGui();\n }\n const { eBottomGuard: bottomTabGuard } = this;\n if (bottomTabGuard) {\n bottomTabGuard.insertAdjacentElement(\"beforebegin\", newChild);\n } else {\n appendChild(newChild, container);\n }\n }\n destroy() {\n const { eTopGuard, eBottomGuard } = this;\n _removeFromParent(eTopGuard);\n _removeFromParent(eBottomGuard);\n super.destroy();\n }\n};\n\n// packages/ag-grid-community/src/widgets/tabGuardComp.ts\nvar TabGuardComp = class extends Component {\n initialiseTabGuard(params) {\n this.tabGuardFeature = this.createManagedBean(new TabGuardFeature(this));\n this.tabGuardFeature.initialiseTabGuard(params);\n }\n forceFocusOutOfContainer(up = false) {\n this.tabGuardFeature.forceFocusOutOfContainer(up);\n }\n appendChild(newChild, container) {\n this.tabGuardFeature.appendChild(super.appendChild.bind(this), newChild, container);\n }\n};\n\n// packages/ag-grid-community/src/widgets/touchListener.ts\nvar DOUBLE_TAP_MILLISECONDS = 500;\nvar LONG_PRESS_MILLISECONDS = 550;\nvar handledTouchEvents;\nvar addHandledTouchEvent = (event) => {\n if (!handledTouchEvents) {\n handledTouchEvents = /* @__PURE__ */ new WeakSet();\n } else if (handledTouchEvents.has(event)) {\n return false;\n }\n handledTouchEvents.add(event);\n return true;\n};\nvar TouchListener = class {\n constructor(eElement, preventClick = false) {\n this.eElement = eElement;\n this.preventClick = preventClick;\n this.startListener = null;\n this.handlers = [];\n this.eventSvc = void 0;\n this.touchStart = null;\n this.lastTapTime = null;\n this.longPressTimer = 0;\n this.moved = false;\n }\n addEventListener(eventType, listener) {\n let eventSvc = this.eventSvc;\n if (!eventSvc) {\n if (eventSvc === null) {\n return;\n }\n this.eventSvc = eventSvc = new LocalEventService();\n const startListener = this.onTouchStart.bind(this);\n this.startListener = startListener;\n this.eElement.addEventListener(\"touchstart\", startListener, { passive: true });\n }\n eventSvc.addEventListener(eventType, listener);\n }\n removeEventListener(eventType, listener) {\n this.eventSvc?.removeEventListener(eventType, listener);\n }\n onTouchStart(touchEvent) {\n if (this.touchStart || !addHandledTouchEvent(touchEvent)) {\n return;\n }\n const touchStart = touchEvent.touches[0];\n this.touchStart = touchStart;\n const handlers = this.handlers;\n if (!handlers.length) {\n const eElement = this.eElement;\n const doc = eElement.ownerDocument;\n const touchMove = this.onTouchMove.bind(this);\n const touchEnd = this.onTouchEnd.bind(this);\n const touchCancel = this.onTouchCancel.bind(this);\n const passiveTrue = { passive: true };\n const passiveFalse = { passive: false };\n addTempEventHandlers(\n handlers,\n [eElement, \"touchmove\", touchMove, passiveTrue],\n [doc, \"touchcancel\", touchCancel, passiveTrue],\n // we set passive=false, as we want to prevent default on this event\n [doc, \"touchend\", touchEnd, passiveFalse],\n [doc, \"contextmenu\", preventEventDefault, passiveFalse]\n );\n }\n this.clearLongPress();\n this.longPressTimer = window.setTimeout(() => {\n this.longPressTimer = 0;\n if (this.touchStart === touchStart && !this.moved) {\n this.moved = true;\n this.eventSvc?.dispatchEvent({ type: \"longTap\", touchStart, touchEvent });\n }\n }, LONG_PRESS_MILLISECONDS);\n }\n onTouchMove(touchEvent) {\n const { moved, touchStart } = this;\n if (!moved && touchStart) {\n const touch = _getFirstActiveTouch(touchStart, touchEvent.touches);\n const eventIsFarAway = touch && !_areEventsNear(touch, touchStart, 4);\n if (eventIsFarAway) {\n this.clearLongPress();\n this.moved = true;\n }\n }\n }\n onTouchEnd(touchEvent) {\n const touchStart = this.touchStart;\n if (!touchStart || !_getFirstActiveTouch(touchStart, touchEvent.changedTouches)) {\n return;\n }\n if (!this.moved) {\n this.eventSvc?.dispatchEvent({ type: \"tap\", touchStart });\n this.checkDoubleTap(touchStart);\n }\n if (this.preventClick) {\n preventEventDefault(touchEvent);\n }\n this.cancel();\n }\n onTouchCancel(touchEvent) {\n const touchStart = this.touchStart;\n if (!touchStart || !_getFirstActiveTouch(touchStart, touchEvent.changedTouches)) {\n return;\n }\n this.lastTapTime = null;\n this.cancel();\n }\n checkDoubleTap(touchStart) {\n let now = Date.now();\n const lastTapTime = this.lastTapTime;\n if (lastTapTime) {\n const interval = now - lastTapTime;\n if (interval > DOUBLE_TAP_MILLISECONDS) {\n this.eventSvc?.dispatchEvent({ type: \"doubleTap\", touchStart });\n now = null;\n }\n }\n this.lastTapTime = now;\n }\n cancel() {\n this.clearLongPress();\n clearTempEventHandlers(this.handlers);\n this.touchStart = null;\n }\n clearLongPress() {\n window.clearTimeout(this.longPressTimer);\n this.longPressTimer = 0;\n this.moved = false;\n }\n destroy() {\n const startListener = this.startListener;\n if (startListener) {\n this.startListener = null;\n this.eElement.removeEventListener(\"touchstart\", startListener);\n }\n this.cancel();\n this.eElement = null;\n this.eventSvc = null;\n }\n};\n\n// packages/ag-grid-community/src/interfaces/IRangeService.ts\nvar CellRangeType = /* @__PURE__ */ ((CellRangeType2) => {\n CellRangeType2[CellRangeType2[\"VALUE\"] = 0] = \"VALUE\";\n CellRangeType2[CellRangeType2[\"DIMENSION\"] = 1] = \"DIMENSION\";\n return CellRangeType2;\n})(CellRangeType || {});\n\n// packages/ag-grid-community/src/autoScrollService.ts\nvar AutoScrollService = class {\n constructor(params) {\n this.tickingInterval = null;\n this.onScrollCallback = null;\n this.scrollContainer = params.scrollContainer;\n this.scrollHorizontally = params.scrollAxis.includes(\"x\");\n this.scrollVertically = params.scrollAxis.includes(\"y\");\n this.scrollByTick = params.scrollByTick != null ? params.scrollByTick : 20;\n if (params.onScrollCallback) {\n this.onScrollCallback = params.onScrollCallback;\n }\n if (this.scrollVertically) {\n this.getVerticalPosition = params.getVerticalPosition;\n this.setVerticalPosition = params.setVerticalPosition;\n }\n if (this.scrollHorizontally) {\n this.getHorizontalPosition = params.getHorizontalPosition;\n this.setHorizontalPosition = params.setHorizontalPosition;\n }\n this.shouldSkipVerticalScroll = params.shouldSkipVerticalScroll || (() => false);\n this.shouldSkipHorizontalScroll = params.shouldSkipHorizontalScroll || (() => false);\n }\n /** True while auto-scrolling */\n get scrolling() {\n return this.tickingInterval !== null;\n }\n check(mouseEvent, forceSkipVerticalScroll = false) {\n const skipVerticalScroll = forceSkipVerticalScroll || this.shouldSkipVerticalScroll();\n if (skipVerticalScroll && this.shouldSkipHorizontalScroll()) {\n return;\n }\n const rect = this.scrollContainer.getBoundingClientRect();\n const scrollTick = this.scrollByTick;\n this.tickLeft = mouseEvent.clientX < rect.left + scrollTick;\n this.tickRight = mouseEvent.clientX > rect.right - scrollTick;\n this.tickUp = mouseEvent.clientY < rect.top + scrollTick && !skipVerticalScroll;\n this.tickDown = mouseEvent.clientY > rect.bottom - scrollTick && !skipVerticalScroll;\n if (this.tickLeft || this.tickRight || this.tickUp || this.tickDown) {\n this.ensureTickingStarted();\n } else {\n this.ensureCleared();\n }\n }\n ensureTickingStarted() {\n if (this.tickingInterval === null) {\n this.tickingInterval = window.setInterval(this.doTick.bind(this), 100);\n this.tickCount = 0;\n }\n }\n doTick() {\n this.tickCount++;\n const tickAmount = this.tickCount > 20 ? 200 : this.tickCount > 10 ? 80 : 40;\n if (this.scrollVertically) {\n const vScrollPosition = this.getVerticalPosition();\n if (this.tickUp) {\n this.setVerticalPosition(vScrollPosition - tickAmount);\n }\n if (this.tickDown) {\n this.setVerticalPosition(vScrollPosition + tickAmount);\n }\n }\n if (this.scrollHorizontally) {\n const hScrollPosition = this.getHorizontalPosition();\n if (this.tickLeft) {\n this.setHorizontalPosition(hScrollPosition - tickAmount);\n }\n if (this.tickRight) {\n this.setHorizontalPosition(hScrollPosition + tickAmount);\n }\n }\n if (this.onScrollCallback) {\n this.onScrollCallback();\n }\n }\n ensureCleared() {\n if (this.tickingInterval) {\n window.clearInterval(this.tickingInterval);\n this.tickingInterval = null;\n }\n }\n};\n\n// packages/ag-grid-community/src/vanillaFrameworkOverrides.ts\nvar VanillaFrameworkOverrides = class {\n constructor(frameworkName = \"javascript\") {\n this.frameworkName = frameworkName;\n this.renderingEngine = \"vanilla\";\n this.batchFrameworkComps = false;\n this.wrapIncoming = (callback) => callback();\n this.wrapOutgoing = (callback) => callback();\n this.baseDocLink = `${BASE_URL}/${this.frameworkName}-data-grid`;\n setValidationDocLink(this.baseDocLink);\n }\n frameworkComponent(_) {\n return null;\n }\n isFrameworkComponent(_) {\n return false;\n }\n getDocLink(path) {\n return this.baseDocLink + (path ? \"/\" + path : \"\");\n }\n};\n\n// packages/ag-grid-community/src/api/apiUtils.ts\nfunction createGridApi(context) {\n return {\n beanName: \"gridApi\",\n bean: context.getBean(\"apiFunctionSvc\").api\n };\n}\n\n// packages/ag-grid-community/src/context/gridBeanComparator.ts\nvar orderedCoreBeans = [\n // Validate license first\n \"licenseManager\",\n // core beans only\n \"environment\",\n \"eventSvc\",\n \"gos\",\n \"paginationAutoPageSizeSvc\",\n \"apiFunctionSvc\",\n \"gridApi\",\n \"registry\",\n \"agCompUtils\",\n \"userCompFactory\",\n \"rowContainerHeight\",\n \"horizontalResizeSvc\",\n \"localeSvc\",\n \"pinnedRowModel\",\n \"dragSvc\",\n \"colGroupSvc\",\n \"visibleCols\",\n \"popupSvc\",\n \"selectionSvc\",\n \"colFilter\",\n \"quickFilter\",\n \"filterManager\",\n \"colModel\",\n \"headerNavigation\",\n \"pageBounds\",\n \"pagination\",\n \"pageBoundsListener\",\n \"rowSpanSvc\",\n \"stickyRowSvc\",\n \"rowRenderer\",\n \"expressionSvc\",\n \"alignedGridsSvc\",\n \"navigation\",\n \"valueCache\",\n \"valueSvc\",\n \"autoWidthCalc\",\n \"filterMenuFactory\",\n \"dragAndDrop\",\n \"focusSvc\",\n \"cellNavigation\",\n \"cellStyles\",\n \"scrollVisibleSvc\",\n \"sortSvc\",\n \"colHover\",\n \"colAnimation\",\n \"autoColSvc\",\n \"selectionColSvc\",\n \"changeDetectionSvc\",\n \"animationFrameSvc\",\n \"undoRedo\",\n \"colDefFactory\",\n \"rowStyleSvc\",\n \"rowNodeBlockLoader\",\n \"rowNodeSorter\",\n \"ctrlsSvc\",\n \"pinnedCols\",\n \"dataTypeSvc\",\n \"syncSvc\",\n \"overlays\",\n \"stateSvc\",\n \"expansionSvc\",\n \"apiEventSvc\",\n \"ariaAnnounce\",\n \"menuSvc\",\n \"colMoves\",\n \"colAutosize\",\n \"colFlex\",\n \"colResize\",\n \"pivotColsSvc\",\n \"valueColsSvc\",\n \"rowGroupColsSvc\",\n \"colNames\",\n \"colViewport\",\n \"pivotResultCols\",\n \"showRowGroupCols\",\n \"validation\"\n // Have validations run last\n];\nvar beanNamePosition = Object.fromEntries(\n orderedCoreBeans.map((beanName, index) => [beanName, index])\n);\nfunction gridBeanInitComparator(bean1, bean2) {\n const index1 = (bean1.beanName ? beanNamePosition[bean1.beanName] : void 0) ?? Number.MAX_SAFE_INTEGER;\n const index2 = (bean2.beanName ? beanNamePosition[bean2.beanName] : void 0) ?? Number.MAX_SAFE_INTEGER;\n return index1 - index2;\n}\nfunction gridBeanDestroyComparator(bean1, bean2) {\n if (bean1?.beanName === \"gridDestroySvc\") {\n return -1;\n }\n if (bean2?.beanName === \"gridDestroySvc\") {\n return 1;\n }\n return 0;\n}\n\n// packages/ag-grid-community/src/headerRendering/rowContainer/headerRowContainerComp.ts\nvar PinnedLeftElement = { tag: \"div\", cls: \"ag-pinned-left-header\", role: \"rowgroup\" };\nvar PinnedRightElement = { tag: \"div\", cls: \"ag-pinned-right-header\", role: \"rowgroup\" };\nvar CenterElement = {\n tag: \"div\",\n cls: \"ag-header-viewport\",\n role: \"rowgroup\",\n attrs: { tabindex: \"-1\" },\n children: [{ tag: \"div\", ref: \"eCenterContainer\", cls: \"ag-header-container\", role: \"presentation\" }]\n};\nvar HeaderRowContainerComp = class extends Component {\n constructor(pinned) {\n super();\n this.eCenterContainer = RefPlaceholder;\n this.headerRowComps = {};\n this.rowCompsList = [];\n this.pinned = pinned;\n }\n postConstruct() {\n this.selectAndSetTemplate();\n const compProxy = {\n setDisplayed: (displayed) => this.setDisplayed(displayed),\n setCtrls: (ctrls) => this.setCtrls(ctrls),\n // only gets called for center section\n setCenterWidth: (width) => this.eCenterContainer.style.width = width,\n setViewportScrollLeft: (left) => this.getGui().scrollLeft = left,\n // only gets called for pinned sections\n setPinnedContainerWidth: (width) => {\n const eGui = this.getGui();\n eGui.style.width = width;\n eGui.style.maxWidth = width;\n eGui.style.minWidth = width;\n }\n };\n const ctrl = this.createManagedBean(new HeaderRowContainerCtrl(this.pinned));\n ctrl.setComp(compProxy, this.getGui());\n }\n selectAndSetTemplate() {\n const pinnedLeft = this.pinned == \"left\";\n const pinnedRight = this.pinned == \"right\";\n const template = pinnedLeft ? PinnedLeftElement : pinnedRight ? PinnedRightElement : CenterElement;\n this.setTemplate(template);\n this.eRowContainer = this.eCenterContainer !== RefPlaceholder ? this.eCenterContainer : this.getGui();\n }\n destroy() {\n this.setCtrls([]);\n super.destroy();\n }\n destroyRowComp(rowComp) {\n this.destroyBean(rowComp);\n rowComp.getGui().remove();\n }\n setCtrls(ctrls) {\n const oldRowComps = this.headerRowComps;\n this.headerRowComps = {};\n this.rowCompsList = [];\n let prevGui;\n const appendEnsuringDomOrder = (rowComp) => {\n const eGui = rowComp.getGui();\n const notAlreadyIn = eGui.parentElement != this.eRowContainer;\n if (notAlreadyIn) {\n this.eRowContainer.appendChild(eGui);\n }\n if (prevGui) {\n _ensureDomOrder(this.eRowContainer, eGui, prevGui);\n }\n prevGui = eGui;\n };\n for (const ctrl of ctrls) {\n const ctrlId = ctrl.instanceId;\n const existingComp = oldRowComps[ctrlId];\n delete oldRowComps[ctrlId];\n const rowComp = existingComp ? existingComp : this.createBean(new HeaderRowComp(ctrl));\n this.headerRowComps[ctrlId] = rowComp;\n this.rowCompsList.push(rowComp);\n appendEnsuringDomOrder(rowComp);\n }\n for (const c of Object.values(oldRowComps)) {\n this.destroyRowComp(c);\n }\n }\n};\n\n// packages/ag-grid-community/src/headerRendering/gridHeaderComp.ts\nvar GridHeaderElement = { tag: \"div\", cls: \"ag-header\", role: \"presentation\" };\nvar GridHeaderComp = class extends Component {\n constructor() {\n super(GridHeaderElement);\n }\n postConstruct() {\n const compProxy = {\n toggleCss: (cssClassName, on) => this.toggleCss(cssClassName, on),\n setHeightAndMinHeight: (height) => {\n this.getGui().style.height = height;\n this.getGui().style.minHeight = height;\n }\n };\n const ctrl = this.createManagedBean(new GridHeaderCtrl());\n ctrl.setComp(compProxy, this.getGui(), this.getFocusableElement());\n const addContainer = (container) => {\n this.createManagedBean(container);\n this.appendChild(container);\n };\n addContainer(new HeaderRowContainerComp(\"left\"));\n addContainer(new HeaderRowContainerComp(null));\n addContainer(new HeaderRowContainerComp(\"right\"));\n }\n};\nvar GridHeaderSelector = {\n selector: \"AG-HEADER-ROOT\",\n component: GridHeaderComp\n};\n\n// packages/ag-grid-community/src/rendering/cell/cellComp.ts\nvar CellComp = class extends Component {\n constructor(beans, cellCtrl, printLayout, eRow, editingCell) {\n super();\n this.cellCtrl = cellCtrl;\n // every time we go into edit mode, or back again, this gets incremented.\n // it's the components way of dealing with the async nature of framework components,\n // so if a framework component takes a while to be created, we know if the object\n // is still relevant when creating is finished. eg we could click edit / un-edit 20\n // times before the first React edit component comes back - we should discard\n // the first 19.\n this.rendererVersion = 0;\n this.editorVersion = 0;\n this.beans = beans;\n this.gos = beans.gos;\n this.column = cellCtrl.column;\n this.rowNode = cellCtrl.rowNode;\n this.eRow = eRow;\n const cellDiv = _createElement({\n tag: \"div\",\n role: cellCtrl.getCellAriaRole(),\n attrs: {\n \"comp-id\": `${this.getCompId()}`,\n \"col-id\": cellCtrl.column.colIdSanitised\n }\n });\n this.eCell = cellDiv;\n let wrapperDiv;\n if (cellCtrl.isCellSpanning()) {\n wrapperDiv = _createElement({\n tag: \"div\",\n cls: \"ag-spanned-cell-wrapper\",\n role: \"presentation\"\n });\n wrapperDiv.appendChild(cellDiv);\n this.setTemplateFromElement(wrapperDiv);\n } else {\n this.setTemplateFromElement(cellDiv);\n }\n this.cellCssManager = new CssClassManager(() => cellDiv);\n this.forceWrapper = cellCtrl.isForceWrapper();\n this.refreshWrapper(false);\n const compProxy = {\n toggleCss: (cssClassName, on) => this.cellCssManager.toggleCss(cssClassName, on),\n setUserStyles: (styles) => _addStylesToElement(cellDiv, styles),\n getFocusableElement: () => cellDiv,\n setIncludeSelection: (include) => this.includeSelection = include,\n setIncludeRowDrag: (include) => this.includeRowDrag = include,\n setIncludeDndSource: (include) => this.includeDndSource = include,\n setRenderDetails: (compDetails, valueToDisplay, force) => this.setRenderDetails(compDetails, valueToDisplay, force),\n setEditDetails: (compDetails, popup, position) => this.setEditDetails(compDetails, popup, position),\n getCellEditor: () => this.cellEditor || null,\n getCellRenderer: () => this.cellRenderer || null,\n getParentOfValue: () => this.getParentOfValue(),\n refreshEditStyles: (editing, isPopup) => this.refreshEditStyles(editing, isPopup)\n };\n cellCtrl.setComp(compProxy, cellDiv, wrapperDiv, this.eCellWrapper, printLayout, editingCell, void 0);\n }\n getParentOfValue() {\n return this.eCellValue ?? this.eCellWrapper ?? this.eCell;\n }\n setRenderDetails(compDetails, valueToDisplay, forceNewCellRendererInstance) {\n const isInlineEditing = this.cellEditor && !this.cellEditorPopupWrapper;\n if (isInlineEditing) {\n return;\n }\n this.firstRender = this.firstRender == null;\n const controlWrapperChanged = this.refreshWrapper(false);\n this.refreshEditStyles(false);\n if (compDetails) {\n const neverRefresh = forceNewCellRendererInstance || controlWrapperChanged;\n const cellRendererRefreshSuccessful = neverRefresh ? false : this.refreshCellRenderer(compDetails);\n if (!cellRendererRefreshSuccessful) {\n this.destroyRenderer();\n this.createCellRendererInstance(compDetails);\n }\n } else {\n this.destroyRenderer();\n this.insertValueWithoutCellRenderer(valueToDisplay);\n }\n this.rowDraggingComp?.refreshVisibility();\n }\n setEditDetails(compDetails, popup, position) {\n if (compDetails) {\n this.createCellEditorInstance(compDetails, popup, position);\n } else {\n this.destroyEditor();\n }\n }\n removeControls() {\n const context = this.beans.context;\n this.checkboxSelectionComp = context.destroyBean(this.checkboxSelectionComp);\n this.dndSourceComp = context.destroyBean(this.dndSourceComp);\n this.rowDraggingComp = context.destroyBean(this.rowDraggingComp);\n }\n // returns true if wrapper was changed\n refreshWrapper(editing) {\n const providingControls = this.includeRowDrag || this.includeDndSource || this.includeSelection;\n const usingWrapper = providingControls || this.forceWrapper;\n const putWrapperIn = usingWrapper && this.eCellWrapper == null;\n if (putWrapperIn) {\n this.eCellWrapper = _createElement({ tag: \"div\", cls: \"ag-cell-wrapper\", role: \"presentation\" });\n this.eCell.appendChild(this.eCellWrapper);\n }\n const takeWrapperOut = !usingWrapper && this.eCellWrapper != null;\n if (takeWrapperOut) {\n _removeFromParent(this.eCellWrapper);\n this.eCellWrapper = void 0;\n }\n this.cellCssManager.toggleCss(\"ag-cell-value\", !usingWrapper);\n const usingCellValue = !editing && usingWrapper;\n const putCellValueIn = usingCellValue && this.eCellValue == null;\n if (putCellValueIn) {\n const cls = this.cellCtrl.getCellValueClass();\n this.eCellValue = _createElement({ tag: \"span\", cls, role: \"presentation\" });\n this.eCellWrapper.appendChild(this.eCellValue);\n }\n const takeCellValueOut = !usingCellValue && this.eCellValue != null;\n if (takeCellValueOut) {\n _removeFromParent(this.eCellValue);\n this.eCellValue = void 0;\n }\n const templateChanged = putWrapperIn || takeWrapperOut || putCellValueIn || takeCellValueOut;\n if (templateChanged) {\n this.removeControls();\n }\n if (!editing && providingControls) {\n this.addControls();\n }\n return templateChanged;\n }\n addControls() {\n const { cellCtrl, eCellWrapper, eCellValue, includeRowDrag, includeDndSource, includeSelection } = this;\n const insertBefore = (comp) => {\n if (comp) {\n eCellWrapper.insertBefore(comp.getGui(), eCellValue);\n }\n };\n if (includeRowDrag && this.rowDraggingComp == null) {\n this.rowDraggingComp = cellCtrl.createRowDragComp();\n insertBefore(this.rowDraggingComp);\n }\n if (includeDndSource && this.dndSourceComp == null) {\n this.dndSourceComp = cellCtrl.createDndSource();\n insertBefore(this.dndSourceComp);\n }\n if (includeSelection && this.checkboxSelectionComp == null) {\n this.checkboxSelectionComp = cellCtrl.createSelectionCheckbox();\n insertBefore(this.checkboxSelectionComp);\n }\n }\n createCellEditorInstance(compDetails, popup, position) {\n const versionCopy = this.editorVersion;\n const cellEditorPromise = compDetails.newAgStackInstance();\n const { params } = compDetails;\n cellEditorPromise.then((c) => this.afterCellEditorCreated(versionCopy, c, params, popup, position));\n const cellEditorAsync = _missing(this.cellEditor);\n if (cellEditorAsync && params.cellStartedEdit) {\n this.cellCtrl.focusCell(true);\n }\n }\n insertValueWithoutCellRenderer(valueToDisplay) {\n const eParent = this.getParentOfValue();\n _clearElement(eParent);\n const escapedValue = _toString(valueToDisplay);\n if (escapedValue != null) {\n eParent.textContent = escapedValue;\n }\n }\n destroyRenderer() {\n const { context } = this.beans;\n this.cellRenderer = context.destroyBean(this.cellRenderer);\n _removeFromParent(this.cellRendererGui);\n this.cellRendererGui = null;\n this.rendererVersion++;\n }\n destroyEditor() {\n const { context } = this.beans;\n const recoverFocus = this.cellEditorPopupWrapper?.getGui().contains(_getActiveDomElement(this.beans)) || this.cellCtrl.hasBrowserFocus();\n if (recoverFocus) {\n this.eCell.focus({ preventScroll: true });\n }\n this.hideEditorPopup?.();\n this.hideEditorPopup = void 0;\n this.cellEditor = context.destroyBean(this.cellEditor);\n this.cellEditorPopupWrapper = context.destroyBean(this.cellEditorPopupWrapper);\n _removeFromParent(this.cellEditorGui);\n this.cellCtrl.disableEditorTooltipFeature();\n this.cellEditorGui = null;\n this.editorVersion++;\n }\n refreshCellRenderer(compClassAndParams) {\n if (this.cellRenderer?.refresh == null) {\n return false;\n }\n if (this.cellRendererClass !== compClassAndParams.componentClass) {\n return false;\n }\n const result = this.cellRenderer.refresh(compClassAndParams.params);\n return result === true || result === void 0;\n }\n createCellRendererInstance(compDetails) {\n const displayComponentVersionCopy = this.rendererVersion;\n const createCellRendererFunc = (details) => (_) => {\n const staleTask = this.rendererVersion !== displayComponentVersionCopy || !this.isAlive();\n if (staleTask) {\n return;\n }\n const componentPromise = details.newAgStackInstance();\n const callback = this.afterCellRendererCreated.bind(\n this,\n displayComponentVersionCopy,\n details.componentClass\n );\n componentPromise?.then(callback);\n };\n const { animationFrameSvc } = this.beans;\n let createTask;\n if (animationFrameSvc?.active && this.firstRender) {\n createTask = (details, isDeferred = false) => {\n animationFrameSvc.createTask(\n createCellRendererFunc(details),\n this.rowNode.rowIndex,\n \"p2\",\n details.componentFromFramework,\n isDeferred\n );\n };\n } else {\n createTask = (details) => createCellRendererFunc(details)();\n }\n if (compDetails.params?.deferRender && !this.cellCtrl.rowNode.group) {\n const { loadingComp, onReady } = this.cellCtrl.getDeferLoadingCellRenderer();\n if (loadingComp) {\n createTask(loadingComp);\n onReady.then(() => createTask(compDetails, true));\n }\n } else {\n createTask(compDetails);\n }\n }\n afterCellRendererCreated(cellRendererVersion, cellRendererClass, cellRenderer) {\n const staleTask = !this.isAlive() || cellRendererVersion !== this.rendererVersion;\n if (staleTask) {\n this.beans.context.destroyBean(cellRenderer);\n return;\n }\n this.cellRenderer = cellRenderer;\n this.cellRendererClass = cellRendererClass;\n const cellGui = cellRenderer.getGui();\n this.cellRendererGui = cellGui;\n if (cellGui != null) {\n const eParent = this.getParentOfValue();\n _clearElement(eParent);\n eParent.appendChild(cellGui);\n }\n }\n afterCellEditorCreated(requestVersion, cellEditor, params, popup, position) {\n const staleComp = requestVersion !== this.editorVersion;\n const { context } = this.beans;\n if (staleComp) {\n context.destroyBean(cellEditor);\n return;\n }\n const editingCancelledByUserComp = cellEditor.isCancelBeforeStart?.();\n if (editingCancelledByUserComp) {\n context.destroyBean(cellEditor);\n this.cellCtrl.stopEditing(true);\n return;\n }\n if (!cellEditor.getGui) {\n _warn(97, { colId: this.column.getId() });\n context.destroyBean(cellEditor);\n return;\n }\n this.cellEditor = cellEditor;\n this.cellEditorGui = cellEditor.getGui();\n const cellEditorInPopup = popup || cellEditor.isPopup?.();\n if (cellEditorInPopup) {\n this.addPopupCellEditor(params, position);\n } else {\n this.addInCellEditor();\n }\n this.refreshEditStyles(true, cellEditorInPopup);\n cellEditor.afterGuiAttached?.();\n this.cellCtrl.enableEditorTooltipFeature(cellEditor);\n this.cellCtrl.cellEditorAttached();\n }\n refreshEditStyles(editing, isPopup) {\n const { cellCssManager } = this;\n cellCssManager.toggleCss(\"ag-cell-inline-editing\", editing && !isPopup);\n cellCssManager.toggleCss(\"ag-cell-popup-editing\", editing && !!isPopup);\n cellCssManager.toggleCss(\"ag-cell-not-inline-editing\", !editing || !!isPopup);\n }\n addInCellEditor() {\n const { eCell } = this;\n if (eCell.contains(_getActiveDomElement(this.beans))) {\n eCell.focus();\n }\n this.destroyRenderer();\n this.refreshWrapper(true);\n _clearElement(this.getParentOfValue());\n if (this.cellEditorGui) {\n const eParent = this.getParentOfValue();\n eParent.appendChild(this.cellEditorGui);\n }\n }\n addPopupCellEditor(params, position) {\n const { gos, context, popupSvc, editSvc } = this.beans;\n if (gos.get(\"editType\") === \"fullRow\") {\n _warn(98);\n }\n const cellEditorPopupWrapper = this.cellEditorPopupWrapper = context.createBean(\n editSvc.createPopupEditorWrapper(params)\n );\n const { cellEditor, cellEditorGui, eCell, rowNode, column, cellCtrl } = this;\n const ePopupGui = cellEditorPopupWrapper.getGui();\n if (cellEditorGui) {\n ePopupGui.appendChild(cellEditorGui);\n }\n const useModelPopup = gos.get(\"stopEditingWhenCellsLoseFocus\");\n const positionToUse = position != null ? position : cellEditor.getPopupPosition?.() ?? \"over\";\n const isRtl = gos.get(\"enableRtl\");\n const positionParams = {\n ePopup: ePopupGui,\n column,\n rowNode,\n type: \"popupCellEditor\",\n eventSource: eCell,\n position: positionToUse,\n alignSide: isRtl ? \"right\" : \"left\",\n keepWithinBounds: true\n };\n const positionCallback = popupSvc.positionPopupByComponent.bind(popupSvc, positionParams);\n const addPopupRes = popupSvc.addPopup({\n modal: useModelPopup,\n eChild: ePopupGui,\n closeOnEsc: true,\n closedCallback: () => {\n cellCtrl.onPopupEditorClosed();\n },\n anchorToElement: eCell,\n positionCallback,\n ariaOwns: eCell\n });\n if (addPopupRes) {\n this.hideEditorPopup = addPopupRes.hideFunc;\n }\n }\n detach() {\n this.getGui().remove();\n }\n // if the row is also getting destroyed, then we don't need to remove from dom,\n // as the row will also get removed, so no need to take out the cells from the row\n // if the row is going (removing is an expensive operation, so only need to remove\n // the top part)\n //\n // note - this is NOT called by context, as we don't wire / unwire the CellComp for performance reasons.\n destroy() {\n this.destroyRenderer();\n this.destroyEditor();\n this.removeControls();\n super.destroy();\n }\n};\n\n// packages/ag-grid-community/src/rendering/row/rowComp.ts\nvar RowComp = class extends Component {\n constructor(ctrl, beans, containerType) {\n super();\n this.cellComps = /* @__PURE__ */ new Map();\n this.beans = beans;\n this.rowCtrl = ctrl;\n const rowDiv = _createElement({ tag: \"div\", role: \"row\", attrs: { \"comp-id\": `${this.getCompId()}` } });\n this.setInitialStyle(rowDiv, containerType);\n this.setTemplateFromElement(rowDiv);\n const style = rowDiv.style;\n this.domOrder = this.rowCtrl.getDomOrder();\n const compProxy = {\n setDomOrder: (domOrder) => this.domOrder = domOrder,\n setCellCtrls: (cellCtrls) => this.setCellCtrls(cellCtrls),\n showFullWidth: (compDetails) => this.showFullWidth(compDetails),\n getFullWidthCellRenderer: () => this.fullWidthCellRenderer,\n getFullWidthCellRendererParams: () => this.fullWidthCellRendererParams,\n toggleCss: (name, on) => this.toggleCss(name, on),\n setUserStyles: (styles) => _addStylesToElement(rowDiv, styles),\n setTop: (top) => style.top = top,\n setTransform: (transform) => style.transform = transform,\n setRowIndex: (rowIndex) => rowDiv.setAttribute(\"row-index\", rowIndex),\n setRowId: (rowId) => rowDiv.setAttribute(\"row-id\", rowId),\n setRowBusinessKey: (businessKey) => rowDiv.setAttribute(\"row-business-key\", businessKey),\n refreshFullWidth: (getUpdatedParams) => {\n const params = getUpdatedParams();\n this.fullWidthCellRendererParams = params;\n return this.fullWidthCellRenderer?.refresh?.(params) ?? false;\n }\n };\n ctrl.setComp(compProxy, this.getGui(), containerType, void 0);\n this.addDestroyFunc(() => {\n ctrl.unsetComp(containerType);\n });\n }\n setInitialStyle(container, containerType) {\n const transform = this.rowCtrl.getInitialTransform(containerType);\n if (transform) {\n container.style.setProperty(\"transform\", transform);\n } else {\n const top = this.rowCtrl.getInitialRowTop(containerType);\n if (top) {\n container.style.setProperty(\"top\", top);\n }\n }\n }\n showFullWidth(compDetails) {\n const callback = (cellRenderer) => {\n if (this.isAlive()) {\n const eGui = cellRenderer.getGui();\n this.getGui().appendChild(eGui);\n this.rowCtrl.setupDetailRowAutoHeight(eGui);\n this.setFullWidthRowComp(cellRenderer, compDetails.params);\n } else {\n this.beans.context.destroyBean(cellRenderer);\n }\n };\n const res = compDetails.newAgStackInstance();\n res.then(callback);\n }\n setCellCtrls(cellCtrls) {\n const cellsToRemove = new Map(this.cellComps);\n for (const cellCtrl of cellCtrls) {\n const key = cellCtrl.instanceId;\n if (!this.cellComps.has(key)) {\n this.newCellComp(cellCtrl);\n } else {\n cellsToRemove.delete(key);\n }\n }\n this.destroyCells(cellsToRemove);\n this.ensureDomOrder(cellCtrls);\n }\n ensureDomOrder(cellCtrls) {\n if (!this.domOrder) {\n return;\n }\n const elementsInOrder = [];\n for (const cellCtrl of cellCtrls) {\n const cellComp = this.cellComps.get(cellCtrl.instanceId);\n if (cellComp) {\n elementsInOrder.push(cellComp.getGui());\n }\n }\n _setDomChildOrder(this.getGui(), elementsInOrder);\n }\n newCellComp(cellCtrl) {\n const editing = this.beans.editSvc?.isEditing(cellCtrl, { withOpenEditor: true }) ?? false;\n const cellComp = new CellComp(this.beans, cellCtrl, this.rowCtrl.printLayout, this.getGui(), editing);\n this.cellComps.set(cellCtrl.instanceId, cellComp);\n this.getGui().appendChild(cellComp.getGui());\n }\n destroy() {\n super.destroy();\n this.destroyCells(this.cellComps);\n }\n setFullWidthRowComp(fullWidthRowComponent, params) {\n this.fullWidthCellRenderer = fullWidthRowComponent;\n this.fullWidthCellRendererParams = params;\n this.addDestroyFunc(() => {\n this.fullWidthCellRenderer = this.beans.context.destroyBean(this.fullWidthCellRenderer);\n this.fullWidthCellRendererParams = void 0;\n });\n }\n destroyCells(cellComps) {\n for (const cellComp of cellComps.values()) {\n if (!cellComp) {\n return;\n }\n const instanceId = cellComp.cellCtrl.instanceId;\n if (this.cellComps.get(instanceId) !== cellComp) {\n return;\n }\n cellComp.detach();\n cellComp.destroy();\n this.cellComps.delete(instanceId);\n }\n }\n};\n\n// packages/ag-grid-community/src/gridBodyComp/rowContainer/rowContainerComp.ts\nfunction getElementParams(name, options, beans) {\n const isCellSpanning = !!beans.gos.get(\"enableCellSpan\") && !!options.getSpannedRowCtrls;\n const eContainerElement = {\n tag: \"div\",\n ref: \"eContainer\",\n cls: _getRowContainerClass(name),\n role: \"rowgroup\"\n };\n if (options.type === \"center\" || isCellSpanning) {\n const eSpannedContainerElement = {\n tag: \"div\",\n ref: \"eSpannedContainer\",\n cls: `ag-spanning-container ${_getRowSpanContainerClass(name)}`,\n role: \"presentation\"\n };\n eContainerElement.role = \"presentation\";\n return {\n tag: \"div\",\n ref: \"eViewport\",\n cls: `ag-viewport ${_getRowViewportClass(name)}`,\n role: \"rowgroup\",\n children: [eContainerElement, isCellSpanning ? eSpannedContainerElement : null]\n };\n }\n return eContainerElement;\n}\nvar RowContainerComp = class extends Component {\n constructor(params) {\n super();\n this.eViewport = RefPlaceholder;\n this.eContainer = RefPlaceholder;\n this.eSpannedContainer = RefPlaceholder;\n this.rowCompsNoSpan = {};\n this.rowCompsWithSpan = {};\n this.name = params?.name;\n this.options = _getRowContainerOptions(this.name);\n }\n postConstruct() {\n this.setTemplate(getElementParams(this.name, this.options, this.beans));\n const compProxy = {\n setHorizontalScroll: (offset) => this.eViewport.scrollLeft = offset,\n setViewportHeight: (height) => this.eViewport.style.height = height,\n setRowCtrls: ({ rowCtrls }) => this.setRowCtrls(rowCtrls),\n setSpannedRowCtrls: (rowCtrls) => this.setRowCtrls(rowCtrls, true),\n setDomOrder: (domOrder) => {\n this.domOrder = domOrder;\n },\n setContainerWidth: (width) => {\n this.eContainer.style.width = width;\n if (this.eSpannedContainer) {\n this.eSpannedContainer.style.width = width;\n }\n },\n setOffsetTop: (offset) => {\n const top = `translateY(${offset})`;\n this.eContainer.style.transform = top;\n if (this.eSpannedContainer) {\n this.eSpannedContainer.style.transform = top;\n }\n }\n };\n const ctrl = this.createManagedBean(new RowContainerCtrl(this.name));\n ctrl.setComp(compProxy, this.eContainer, this.eSpannedContainer, this.eViewport);\n }\n destroy() {\n this.setRowCtrls([]);\n this.setRowCtrls([], true);\n super.destroy();\n this.lastPlacedElement = null;\n }\n setRowCtrls(rowCtrls, spanContainer) {\n const { beans, options } = this;\n const container = spanContainer ? this.eSpannedContainer : this.eContainer;\n const oldRows = spanContainer ? { ...this.rowCompsWithSpan } : { ...this.rowCompsNoSpan };\n const newComps = {};\n if (spanContainer) {\n this.rowCompsWithSpan = newComps;\n } else {\n this.rowCompsNoSpan = newComps;\n }\n this.lastPlacedElement = null;\n const orderedRows = [];\n for (const rowCtrl of rowCtrls) {\n const instanceId = rowCtrl.instanceId;\n const existingRowComp = oldRows[instanceId];\n let rowComp;\n if (existingRowComp) {\n rowComp = existingRowComp;\n delete oldRows[instanceId];\n } else {\n if (!rowCtrl.rowNode.displayed) {\n continue;\n }\n rowComp = new RowComp(rowCtrl, beans, options.type);\n }\n newComps[instanceId] = rowComp;\n orderedRows.push([rowComp, !existingRowComp]);\n }\n this.removeOldRows(Object.values(oldRows));\n this.addRowNodes(orderedRows, container);\n }\n addRowNodes(rows, container) {\n const { domOrder } = this;\n for (const [rowComp, isNew] of rows) {\n const eGui = rowComp.getGui();\n if (!domOrder) {\n if (isNew) {\n container.appendChild(eGui);\n }\n } else {\n this.ensureDomOrder(eGui, container);\n }\n }\n }\n removeOldRows(rowComps) {\n for (const oldRowComp of rowComps) {\n oldRowComp.getGui().remove();\n oldRowComp.destroy();\n }\n }\n ensureDomOrder(eRow, container) {\n _ensureDomOrder(container, eRow, this.lastPlacedElement);\n this.lastPlacedElement = eRow;\n }\n};\nvar RowContainerSelector = {\n selector: \"AG-ROW-CONTAINER\",\n component: RowContainerComp\n};\n\n// packages/ag-grid-community/src/gridBodyComp/gridBodyComp.ts\nfunction makeRowContainers(paramsMap, names) {\n return names.map((name) => {\n const refName = `e${name[0].toUpperCase() + name.substring(1)}RowContainer`;\n paramsMap[refName] = { name };\n return {\n tag: \"ag-row-container\",\n ref: refName,\n attrs: { name }\n };\n });\n}\nfunction getGridBodyTemplate(includeOverlay) {\n const paramsMap = {};\n const elementParams = {\n tag: \"div\",\n ref: \"eGridRoot\",\n cls: \"ag-root ag-unselectable\",\n children: [\n { tag: \"ag-header-root\" },\n {\n tag: \"div\",\n ref: \"eTop\",\n cls: \"ag-floating-top\",\n role: \"presentation\",\n children: makeRowContainers(paramsMap, [\"topLeft\", \"topCenter\", \"topRight\", \"topFullWidth\"])\n },\n {\n tag: \"div\",\n ref: \"eBody\",\n cls: \"ag-body\",\n role: \"presentation\",\n children: [\n {\n tag: \"div\",\n ref: \"eBodyViewport\",\n cls: \"ag-body-viewport\",\n role: \"presentation\",\n children: makeRowContainers(paramsMap, [\"left\", \"center\", \"right\", \"fullWidth\"])\n },\n { tag: \"ag-fake-vertical-scroll\" }\n ]\n },\n {\n tag: \"div\",\n ref: \"eStickyTop\",\n cls: \"ag-sticky-top\",\n role: \"presentation\",\n children: makeRowContainers(paramsMap, [\n \"stickyTopLeft\",\n \"stickyTopCenter\",\n \"stickyTopRight\",\n \"stickyTopFullWidth\"\n ])\n },\n {\n tag: \"div\",\n ref: \"eStickyBottom\",\n cls: \"ag-sticky-bottom\",\n role: \"presentation\",\n children: makeRowContainers(paramsMap, [\n \"stickyBottomLeft\",\n \"stickyBottomCenter\",\n \"stickyBottomRight\",\n \"stickyBottomFullWidth\"\n ])\n },\n {\n tag: \"div\",\n ref: \"eBottom\",\n cls: \"ag-floating-bottom\",\n role: \"presentation\",\n children: makeRowContainers(paramsMap, [\n \"bottomLeft\",\n \"bottomCenter\",\n \"bottomRight\",\n \"bottomFullWidth\"\n ])\n },\n { tag: \"ag-fake-horizontal-scroll\" },\n includeOverlay ? { tag: \"ag-overlay-wrapper\" } : null\n ]\n };\n return { paramsMap, elementParams };\n}\nvar GridBodyComp = class extends Component {\n constructor() {\n super(...arguments);\n this.eGridRoot = RefPlaceholder;\n this.eBodyViewport = RefPlaceholder;\n this.eStickyTop = RefPlaceholder;\n this.eStickyBottom = RefPlaceholder;\n this.eTop = RefPlaceholder;\n this.eBottom = RefPlaceholder;\n this.eBody = RefPlaceholder;\n }\n postConstruct() {\n const { overlays, rangeSvc } = this.beans;\n const overlaySelector = overlays?.getOverlayWrapperSelector();\n const { paramsMap, elementParams } = getGridBodyTemplate(!!overlaySelector);\n this.setTemplate(\n elementParams,\n [\n ...overlaySelector ? [overlaySelector] : [],\n FakeHScrollSelector,\n FakeVScrollSelector,\n GridHeaderSelector,\n RowContainerSelector\n ],\n paramsMap\n );\n const setHeight = (height, element) => {\n const heightString = `${height}px`;\n element.style.minHeight = heightString;\n element.style.height = heightString;\n };\n const compProxy = {\n setRowAnimationCssOnBodyViewport: (cssClass, animate) => this.setRowAnimationCssOnBodyViewport(cssClass, animate),\n setColumnCount: (count) => _setAriaColCount(this.getGui(), count),\n setRowCount: (count) => _setAriaRowCount(this.getGui(), count),\n setTopHeight: (height) => setHeight(height, this.eTop),\n setBottomHeight: (height) => setHeight(height, this.eBottom),\n setTopInvisible: (invisible) => this.eTop.classList.toggle(\"ag-invisible\", invisible),\n setBottomInvisible: (invisible) => this.eBottom.classList.toggle(\"ag-invisible\", invisible),\n setStickyTopHeight: (height) => this.eStickyTop.style.height = height,\n setStickyTopTop: (top) => this.eStickyTop.style.top = top,\n setStickyTopWidth: (width) => this.eStickyTop.style.width = width,\n setStickyBottomHeight: (height) => {\n this.eStickyBottom.style.height = height;\n this.eStickyBottom.classList.toggle(\"ag-invisible\", height === \"0px\");\n },\n setStickyBottomBottom: (bottom) => this.eStickyBottom.style.bottom = bottom,\n setStickyBottomWidth: (width) => this.eStickyBottom.style.width = width,\n setColumnMovingCss: (cssClass, flag) => this.toggleCss(cssClass, flag),\n updateLayoutClasses: (cssClass, params) => {\n const classLists = [this.eBodyViewport.classList, this.eBody.classList];\n for (const classList of classLists) {\n classList.toggle(LayoutCssClasses.AUTO_HEIGHT, params.autoHeight);\n classList.toggle(LayoutCssClasses.NORMAL, params.normal);\n classList.toggle(LayoutCssClasses.PRINT, params.print);\n }\n this.toggleCss(LayoutCssClasses.AUTO_HEIGHT, params.autoHeight);\n this.toggleCss(LayoutCssClasses.NORMAL, params.normal);\n this.toggleCss(LayoutCssClasses.PRINT, params.print);\n },\n setAlwaysVerticalScrollClass: (cssClass, on) => this.eBodyViewport.classList.toggle(CSS_CLASS_FORCE_VERTICAL_SCROLL, on),\n registerBodyViewportResizeListener: (listener) => {\n const unsubscribeFromResize = _observeResize(this.beans, this.eBodyViewport, listener);\n this.addDestroyFunc(() => unsubscribeFromResize());\n },\n setPinnedTopBottomOverflowY: (overflow) => this.eTop.style.overflowY = this.eBottom.style.overflowY = overflow,\n setCellSelectableCss: (cssClass, selectable) => {\n for (const ct of [this.eTop, this.eBodyViewport, this.eBottom]) {\n ct.classList.toggle(cssClass, selectable);\n }\n },\n setBodyViewportWidth: (width) => this.eBodyViewport.style.width = width,\n setGridRootRole: (role) => _setAriaRole(this.eGridRoot, role)\n };\n this.ctrl = this.createManagedBean(new GridBodyCtrl());\n this.ctrl.setComp(\n compProxy,\n this.getGui(),\n this.eBodyViewport,\n this.eTop,\n this.eBottom,\n this.eStickyTop,\n this.eStickyBottom\n );\n if (rangeSvc && _isCellSelectionEnabled(this.gos) || _isMultiRowSelection(this.gos)) {\n _setAriaMultiSelectable(this.getGui(), true);\n }\n }\n setRowAnimationCssOnBodyViewport(cssClass, animateRows) {\n const bodyViewportClassList = this.eBodyViewport.classList;\n bodyViewportClassList.toggle(\"ag-row-animation\", animateRows);\n bodyViewportClassList.toggle(\"ag-row-no-animation\", !animateRows);\n }\n};\nvar GridBodySelector = {\n selector: \"AG-GRID-BODY\",\n component: GridBodyComp\n};\n\n// packages/ag-grid-community/src/gridComp/gridCtrl.ts\nvar GridCtrl = class extends BeanStub {\n constructor() {\n super(...arguments);\n this.additionalFocusableContainers = /* @__PURE__ */ new Set();\n }\n setComp(view, eGridDiv, eGui) {\n this.view = view;\n this.eGridHostDiv = eGridDiv;\n this.eGui = eGui;\n this.eGui.setAttribute(\"grid-id\", this.beans.context.getId());\n const { dragAndDrop, ctrlsSvc } = this.beans;\n dragAndDrop?.registerGridDropTarget(() => this.eGui, this);\n this.createManagedBean(new LayoutFeature(this.view));\n this.view.setRtlClass(this.gos.get(\"enableRtl\") ? \"ag-rtl\" : \"ag-ltr\");\n const unsubscribeFromResize = _observeResize(this.beans, this.eGridHostDiv, this.onGridSizeChanged.bind(this));\n this.addDestroyFunc(() => unsubscribeFromResize());\n ctrlsSvc.register(\"gridCtrl\", this);\n }\n isDetailGrid() {\n const el = _findTabbableParent(this.getGui());\n return el?.getAttribute(\"row-id\")?.startsWith(\"detail\") || false;\n }\n getOptionalSelectors() {\n const beans = this.beans;\n return {\n paginationSelector: beans.pagination?.getPaginationSelector(),\n gridHeaderDropZonesSelector: beans.registry?.getSelector(\"AG-GRID-HEADER-DROP-ZONES\"),\n sideBarSelector: beans.sideBar?.getSelector(),\n statusBarSelector: beans.registry?.getSelector(\"AG-STATUS-BAR\"),\n watermarkSelector: beans.licenseManager?.getWatermarkSelector()\n };\n }\n onGridSizeChanged() {\n this.eventSvc.dispatchEvent({\n type: \"gridSizeChanged\",\n clientWidth: this.eGridHostDiv.clientWidth,\n clientHeight: this.eGridHostDiv.clientHeight\n });\n }\n destroyGridUi() {\n this.view.destroyGridUi();\n }\n getGui() {\n return this.eGui;\n }\n setResizeCursor(direction) {\n const { view } = this;\n if (direction === false) {\n view.setCursor(null);\n } else {\n const cursor = direction === 1 /* Horizontal */ ? \"ew-resize\" : \"ns-resize\";\n view.setCursor(cursor);\n }\n }\n disableUserSelect(on) {\n this.view.setUserSelect(on ? \"none\" : null);\n }\n focusNextInnerContainer(backwards) {\n const focusableContainers = this.getFocusableContainers();\n const { indexWithFocus, nextIndex } = this.getNextFocusableIndex(focusableContainers, backwards);\n if (nextIndex < 0 || nextIndex >= focusableContainers.length) {\n return false;\n }\n if (nextIndex === 0) {\n if (indexWithFocus > 0) {\n const { visibleCols, focusSvc } = this.beans;\n const allColumns = visibleCols.allCols;\n const lastColumn = _last(allColumns);\n if (focusSvc.focusGridView({ column: lastColumn, backwards: true })) {\n return true;\n }\n }\n return false;\n }\n return this.focusContainer(focusableContainers[nextIndex], backwards);\n }\n focusInnerElement(fromBottom) {\n const userCallbackFunction = this.gos.getCallback(\"focusGridInnerElement\");\n if (userCallbackFunction?.({ fromBottom: !!fromBottom })) {\n return true;\n }\n const focusableContainers = this.getFocusableContainers();\n const { focusSvc, visibleCols } = this.beans;\n const allColumns = visibleCols.allCols;\n if (fromBottom) {\n if (focusableContainers.length > 1) {\n return this.focusContainer(_last(focusableContainers), fromBottom);\n }\n const lastColumn = _last(allColumns);\n if (focusSvc.focusGridView({ column: lastColumn, backwards: fromBottom })) {\n return true;\n }\n }\n if (this.gos.get(\"headerHeight\") === 0 || _isHeaderFocusSuppressed(this.beans)) {\n if (focusSvc.focusGridView({ column: allColumns[0], backwards: fromBottom })) {\n return true;\n }\n for (let i = 1; i < focusableContainers.length; i++) {\n if (_focusInto(focusableContainers[i].getGui(), fromBottom)) {\n return true;\n }\n }\n return false;\n }\n return focusSvc.focusFirstHeader();\n }\n forceFocusOutOfContainer(up = false) {\n this.view.forceFocusOutOfContainer(up);\n }\n addFocusableContainer(container) {\n this.additionalFocusableContainers.add(container);\n }\n removeFocusableContainer(container) {\n this.additionalFocusableContainers.delete(container);\n }\n allowFocusForNextCoreContainer(up) {\n const coreContainers = this.view.getFocusableContainers();\n const { nextIndex, indexWithFocus } = this.getNextFocusableIndex(coreContainers, up);\n if (indexWithFocus === -1 || nextIndex < 0 || nextIndex >= coreContainers.length) {\n return;\n }\n const comp = coreContainers[nextIndex];\n comp.setAllowFocus?.(true);\n setTimeout(() => {\n comp.setAllowFocus?.(false);\n });\n }\n isFocusable() {\n const beans = this.beans;\n return !_isCellFocusSuppressed(beans) || !_isHeaderFocusSuppressed(beans) || !!beans.sideBar?.comp?.isDisplayed();\n }\n getNextFocusableIndex(focusableContainers, backwards) {\n const activeEl = _getActiveDomElement(this.beans);\n const indexWithFocus = focusableContainers.findIndex((container) => container.getGui().contains(activeEl));\n const nextIndex = indexWithFocus + (backwards ? -1 : 1);\n return {\n indexWithFocus,\n nextIndex\n };\n }\n focusContainer(comp, up) {\n comp.setAllowFocus?.(true);\n const result = _focusInto(comp.getGui(), up, false, true);\n comp.setAllowFocus?.(false);\n return result;\n }\n getFocusableContainers() {\n return [...this.view.getFocusableContainers(), ...this.additionalFocusableContainers];\n }\n destroy() {\n this.additionalFocusableContainers.clear();\n super.destroy();\n }\n};\n\n// packages/ag-grid-community/src/gridComp/gridComp.ts\nvar GridComp = class extends TabGuardComp {\n constructor(eGridDiv) {\n super();\n this.gridBody = RefPlaceholder;\n this.sideBar = RefPlaceholder;\n this.pagination = RefPlaceholder;\n this.rootWrapperBody = RefPlaceholder;\n this.eGridDiv = eGridDiv;\n }\n postConstruct() {\n const compProxy = {\n destroyGridUi: () => this.destroyBean(this),\n setRtlClass: (cssClass) => this.addCss(cssClass),\n forceFocusOutOfContainer: this.forceFocusOutOfContainer.bind(this),\n updateLayoutClasses: this.updateLayoutClasses.bind(this),\n getFocusableContainers: this.getFocusableContainers.bind(this),\n setUserSelect: (value) => {\n this.getGui().style.userSelect = value != null ? value : \"\";\n this.getGui().style.webkitUserSelect = value != null ? value : \"\";\n },\n setCursor: (value) => {\n this.getGui().style.cursor = value != null ? value : \"\";\n }\n };\n const ctrl = this.createManagedBean(new GridCtrl());\n const comps = ctrl.getOptionalSelectors();\n const template = this.createTemplate(comps);\n const requiredComps = [GridBodySelector, ...Object.values(comps).filter((c) => !!c)];\n this.setTemplate(template, requiredComps);\n ctrl.setComp(compProxy, this.eGridDiv, this.getGui());\n this.insertGridIntoDom();\n this.initialiseTabGuard({\n // we want to override the default behaviour to do nothing for onTabKeyDown\n onTabKeyDown: () => void 0,\n focusInnerElement: (fromBottom) => ctrl.focusInnerElement(fromBottom),\n forceFocusOutWhenTabGuardsAreEmpty: true,\n isEmpty: () => !ctrl.isFocusable()\n });\n }\n insertGridIntoDom() {\n const eGui = this.getGui();\n this.eGridDiv.appendChild(eGui);\n this.addDestroyFunc(() => {\n eGui.remove();\n _logIfDebug(this.gos, \"Grid removed from DOM\");\n });\n }\n updateLayoutClasses(cssClass, params) {\n const eRootWrapperBodyClassList = this.rootWrapperBody.classList;\n const { AUTO_HEIGHT, NORMAL, PRINT } = LayoutCssClasses;\n const { autoHeight, normal, print } = params;\n eRootWrapperBodyClassList.toggle(AUTO_HEIGHT, autoHeight);\n eRootWrapperBodyClassList.toggle(NORMAL, normal);\n eRootWrapperBodyClassList.toggle(PRINT, print);\n this.toggleCss(AUTO_HEIGHT, autoHeight);\n this.toggleCss(NORMAL, normal);\n this.toggleCss(PRINT, print);\n }\n createTemplate(params) {\n const dropZones = params.gridHeaderDropZonesSelector ? { tag: \"ag-grid-header-drop-zones\" } : null;\n const sideBar = params.sideBarSelector ? {\n tag: \"ag-side-bar\",\n ref: \"sideBar\"\n } : null;\n const statusBar = params.statusBarSelector ? { tag: \"ag-status-bar\" } : null;\n const watermark = params.watermarkSelector ? { tag: \"ag-watermark\" } : null;\n const pagination = params.paginationSelector ? { tag: \"ag-pagination\", ref: \"pagination\" } : null;\n return {\n tag: \"div\",\n cls: \"ag-root-wrapper\",\n role: \"presentation\",\n children: [\n dropZones,\n {\n tag: \"div\",\n ref: \"rootWrapperBody\",\n cls: \"ag-root-wrapper-body\",\n role: \"presentation\",\n children: [{ tag: \"ag-grid-body\", ref: \"gridBody\" }, sideBar]\n },\n statusBar,\n pagination,\n watermark\n ]\n };\n }\n getFocusableElement() {\n return this.rootWrapperBody;\n }\n forceFocusOutOfContainer(up = false) {\n if (!up && this.pagination?.isDisplayed()) {\n this.pagination.forceFocusOutOfContainer(up);\n return;\n }\n super.forceFocusOutOfContainer(up);\n }\n getFocusableContainers() {\n const focusableContainers = [this.gridBody];\n for (const comp of [this.sideBar, this.pagination]) {\n if (comp) {\n focusableContainers.push(comp);\n }\n }\n return focusableContainers.filter((el) => _isVisible(el.getGui()));\n }\n};\n\n// packages/ag-grid-community/src/api/gridApiFunctions.ts\nvar mod = (moduleName, input) => {\n for (const key of Object.keys(input)) {\n input[key] = moduleName;\n }\n return input;\n};\nvar gridApiFunctionsMap = {\n dispatchEvent: \"CommunityCore\",\n // this is always registered\n ...mod(\"CommunityCore\", {\n destroy: 0,\n getGridId: 0,\n getGridOption: 0,\n isDestroyed: 0,\n setGridOption: 0,\n updateGridOptions: 0,\n isModuleRegistered: 0\n }),\n ...mod(\"GridState\", {\n getState: 0,\n setState: 0\n }),\n ...mod(\"SharedRowSelection\", {\n setNodesSelected: 0,\n selectAll: 0,\n deselectAll: 0,\n selectAllFiltered: 0,\n deselectAllFiltered: 0,\n selectAllOnCurrentPage: 0,\n deselectAllOnCurrentPage: 0,\n getSelectedNodes: 0,\n getSelectedRows: 0\n }),\n ...mod(\"RowApi\", {\n redrawRows: 0,\n setRowNodeExpanded: 0,\n getRowNode: 0,\n addRenderedRowListener: 0,\n getRenderedNodes: 0,\n forEachNode: 0,\n getFirstDisplayedRowIndex: 0,\n getLastDisplayedRowIndex: 0,\n getDisplayedRowAtIndex: 0,\n getDisplayedRowCount: 0\n }),\n ...mod(\"ScrollApi\", {\n getVerticalPixelRange: 0,\n getHorizontalPixelRange: 0,\n ensureColumnVisible: 0,\n ensureIndexVisible: 0,\n ensureNodeVisible: 0\n }),\n ...mod(\"KeyboardNavigation\", {\n getFocusedCell: 0,\n clearFocusedCell: 0,\n setFocusedCell: 0,\n tabToNextCell: 0,\n tabToPreviousCell: 0,\n setFocusedHeader: 0\n }),\n ...mod(\"EventApi\", {\n addEventListener: 0,\n addGlobalListener: 0,\n removeEventListener: 0,\n removeGlobalListener: 0\n }),\n ...mod(\"ValueCache\", {\n expireValueCache: 0\n }),\n ...mod(\"CellApi\", {\n getCellValue: 0\n }),\n ...mod(\"SharedMenu\", {\n showColumnMenu: 0,\n hidePopupMenu: 0\n }),\n ...mod(\"Sort\", {\n onSortChanged: 0\n }),\n ...mod(\"PinnedRow\", {\n getPinnedTopRowCount: 0,\n getPinnedBottomRowCount: 0,\n getPinnedTopRow: 0,\n getPinnedBottomRow: 0,\n forEachPinnedRow: 0\n }),\n ...mod(\"Overlay\", {\n showLoadingOverlay: 0,\n showNoRowsOverlay: 0,\n hideOverlay: 0\n }),\n ...mod(\"RenderApi\", {\n setGridAriaProperty: 0,\n refreshCells: 0,\n refreshHeader: 0,\n isAnimationFrameQueueEmpty: 0,\n flushAllAnimationFrames: 0,\n getSizesForCurrentTheme: 0,\n getCellRendererInstances: 0\n }),\n ...mod(\"HighlightChanges\", {\n flashCells: 0\n }),\n ...mod(\"RowDrag\", {\n addRowDropZone: 0,\n removeRowDropZone: 0,\n getRowDropZoneParams: 0,\n getRowDropPositionIndicator: 0,\n setRowDropPositionIndicator: 0\n }),\n ...mod(\"ColumnApi\", {\n getColumnDefs: 0,\n getColumnDef: 0,\n getDisplayNameForColumn: 0,\n getColumn: 0,\n getColumns: 0,\n applyColumnState: 0,\n getColumnState: 0,\n resetColumnState: 0,\n isPinning: 0,\n isPinningLeft: 0,\n isPinningRight: 0,\n getDisplayedColAfter: 0,\n getDisplayedColBefore: 0,\n setColumnsVisible: 0,\n setColumnsPinned: 0,\n getAllGridColumns: 0,\n getDisplayedLeftColumns: 0,\n getDisplayedCenterColumns: 0,\n getDisplayedRightColumns: 0,\n getAllDisplayedColumns: 0,\n getAllDisplayedVirtualColumns: 0\n }),\n ...mod(\"ColumnAutoSize\", {\n sizeColumnsToFit: 0,\n autoSizeColumns: 0,\n autoSizeAllColumns: 0\n }),\n ...mod(\"ColumnGroup\", {\n setColumnGroupOpened: 0,\n getColumnGroup: 0,\n getProvidedColumnGroup: 0,\n getDisplayNameForColumnGroup: 0,\n getColumnGroupState: 0,\n setColumnGroupState: 0,\n resetColumnGroupState: 0,\n getLeftDisplayedColumnGroups: 0,\n getCenterDisplayedColumnGroups: 0,\n getRightDisplayedColumnGroups: 0,\n getAllDisplayedColumnGroups: 0\n }),\n ...mod(\"ColumnMove\", {\n moveColumnByIndex: 0,\n moveColumns: 0\n }),\n ...mod(\"ColumnResize\", {\n setColumnWidths: 0\n }),\n ...mod(\"ColumnHover\", {\n isColumnHovered: 0\n }),\n ...mod(\"EditCore\", {\n getCellEditorInstances: 0,\n getEditingCells: 0,\n getEditRowValues: 0,\n stopEditing: 0,\n startEditingCell: 0,\n isEditing: 0,\n validateEdit: 0\n }),\n ...mod(\"BatchEdit\", {\n startBatchEdit: 0,\n cancelBatchEdit: 0,\n commitBatchEdit: 0,\n isBatchEditing: 0\n }),\n ...mod(\"UndoRedoEdit\", {\n undoCellEditing: 0,\n redoCellEditing: 0,\n getCurrentUndoSize: 0,\n getCurrentRedoSize: 0\n }),\n ...mod(\"FilterCore\", {\n isAnyFilterPresent: 0,\n onFilterChanged: 0\n }),\n ...mod(\"ColumnFilter\", {\n isColumnFilterPresent: 0,\n getColumnFilterInstance: 0,\n destroyFilter: 0,\n setFilterModel: 0,\n getFilterModel: 0,\n getColumnFilterModel: 0,\n setColumnFilterModel: 0,\n showColumnFilter: 0,\n hideColumnFilter: 0,\n getColumnFilterHandler: 0,\n doFilterAction: 0\n }),\n ...mod(\"QuickFilter\", {\n isQuickFilterPresent: 0,\n getQuickFilter: 0,\n resetQuickFilter: 0\n }),\n ...mod(\"Find\", {\n findGetActiveMatch: 0,\n findGetTotalMatches: 0,\n findGoTo: 0,\n findNext: 0,\n findPrevious: 0,\n findGetNumMatches: 0,\n findGetParts: 0,\n findClearActive: 0,\n findRefresh: 0\n }),\n ...mod(\"Pagination\", {\n paginationIsLastPageFound: 0,\n paginationGetPageSize: 0,\n paginationGetCurrentPage: 0,\n paginationGetTotalPages: 0,\n paginationGetRowCount: 0,\n paginationGoToNextPage: 0,\n paginationGoToPreviousPage: 0,\n paginationGoToFirstPage: 0,\n paginationGoToLastPage: 0,\n paginationGoToPage: 0\n }),\n ...mod(\"CsrmSsrmSharedApi\", {\n expandAll: 0,\n collapseAll: 0\n }),\n ...mod(\"SsrmInfiniteSharedApi\", {\n setRowCount: 0,\n getCacheBlockState: 0,\n isLastRowIndexKnown: 0\n }),\n ...mod(\"ClientSideRowModelApi\", {\n onGroupExpandedOrCollapsed: 0,\n refreshClientSideRowModel: 0,\n isRowDataEmpty: 0,\n forEachLeafNode: 0,\n forEachNodeAfterFilter: 0,\n forEachNodeAfterFilterAndSort: 0,\n applyTransaction: 0,\n applyTransactionAsync: 0,\n flushAsyncTransactions: 0,\n getBestCostNodeSelection: 0,\n onRowHeightChanged: 0,\n resetRowHeights: 0\n }),\n ...mod(\"CsvExport\", {\n getDataAsCsv: 0,\n exportDataAsCsv: 0\n }),\n ...mod(\"InfiniteRowModel\", {\n refreshInfiniteCache: 0,\n purgeInfiniteCache: 0,\n getInfiniteRowCount: 0\n }),\n ...mod(\"AdvancedFilter\", {\n getAdvancedFilterModel: 0,\n setAdvancedFilterModel: 0,\n showAdvancedFilterBuilder: 0,\n hideAdvancedFilterBuilder: 0\n }),\n ...mod(\"IntegratedCharts\", {\n getChartModels: 0,\n getChartRef: 0,\n getChartImageDataURL: 0,\n downloadChart: 0,\n openChartToolPanel: 0,\n closeChartToolPanel: 0,\n createRangeChart: 0,\n createPivotChart: 0,\n createCrossFilterChart: 0,\n updateChart: 0,\n restoreChart: 0\n }),\n ...mod(\"Clipboard\", {\n copyToClipboard: 0,\n cutToClipboard: 0,\n copySelectedRowsToClipboard: 0,\n copySelectedRangeToClipboard: 0,\n copySelectedRangeDown: 0,\n pasteFromClipboard: 0\n }),\n ...mod(\"ExcelExport\", {\n getDataAsExcel: 0,\n exportDataAsExcel: 0,\n getSheetDataForExcel: 0,\n getMultipleSheetsAsExcel: 0,\n exportMultipleSheetsAsExcel: 0\n }),\n ...mod(\"SharedMasterDetail\", {\n addDetailGridInfo: 0,\n removeDetailGridInfo: 0,\n getDetailGridInfo: 0,\n forEachDetailGridInfo: 0\n }),\n ...mod(\"ContextMenu\", {\n showContextMenu: 0\n }),\n ...mod(\"ColumnMenu\", {\n showColumnChooser: 0,\n hideColumnChooser: 0\n }),\n ...mod(\"CellSelection\", {\n getCellRanges: 0,\n addCellRange: 0,\n clearRangeSelection: 0,\n clearCellSelection: 0\n }),\n ...mod(\"SharedRowGrouping\", {\n setRowGroupColumns: 0,\n removeRowGroupColumns: 0,\n addRowGroupColumns: 0,\n getRowGroupColumns: 0,\n moveRowGroupColumn: 0\n }),\n ...mod(\"SharedAggregation\", {\n addAggFuncs: 0,\n clearAggFuncs: 0,\n setColumnAggFunc: 0\n }),\n ...mod(\"SharedPivot\", {\n isPivotMode: 0,\n getPivotResultColumn: 0,\n setValueColumns: 0,\n getValueColumns: 0,\n removeValueColumns: 0,\n addValueColumns: 0,\n setPivotColumns: 0,\n removePivotColumns: 0,\n addPivotColumns: 0,\n getPivotColumns: 0,\n setPivotResultColumns: 0,\n getPivotResultColumns: 0\n }),\n ...mod(\"ServerSideRowModelApi\", {\n getServerSideSelectionState: 0,\n setServerSideSelectionState: 0,\n applyServerSideTransaction: 0,\n applyServerSideTransactionAsync: 0,\n applyServerSideRowData: 0,\n retryServerSideLoads: 0,\n flushServerSideAsyncTransactions: 0,\n refreshServerSide: 0,\n getServerSideGroupLevelState: 0,\n onRowHeightChanged: 0,\n resetRowHeights: 0\n }),\n ...mod(\"SideBar\", {\n isSideBarVisible: 0,\n setSideBarVisible: 0,\n setSideBarPosition: 0,\n openToolPanel: 0,\n closeToolPanel: 0,\n getOpenedToolPanel: 0,\n refreshToolPanel: 0,\n isToolPanelShowing: 0,\n getToolPanelInstance: 0,\n getSideBar: 0\n }),\n ...mod(\"StatusBar\", {\n getStatusPanel: 0\n }),\n ...mod(\"AiToolkit\", {\n getStructuredSchema: 0\n })\n};\n\n// packages/ag-grid-community/src/api/apiFunctionService.ts\nvar defaultFns = {\n isDestroyed: () => true,\n destroy() {\n },\n preConstruct() {\n },\n postConstruct() {\n },\n preWireBeans() {\n },\n wireBeans() {\n }\n};\nvar dispatchEvent = (beans, event) => beans.eventSvc.dispatchEvent(event);\nvar GridApiClass = class {\n};\nReflect.defineProperty(GridApiClass, \"name\", { value: \"GridApi\" });\nvar ApiFunctionService = class extends BeanStub {\n constructor() {\n super();\n this.beanName = \"apiFunctionSvc\";\n this.api = new GridApiClass();\n this.fns = {\n ...defaultFns,\n // dispatchEvent is used by frameworks, also used by aligned grids to identify a grid api instance\n dispatchEvent\n };\n this.preDestroyLink = \"\";\n const { api } = this;\n for (const key of Object.keys(gridApiFunctionsMap)) {\n api[key] = this.makeApi(key)[key];\n }\n }\n postConstruct() {\n this.preDestroyLink = this.beans.frameworkOverrides.getDocLink(\"grid-lifecycle/#grid-pre-destroyed\");\n }\n addFunction(functionName, func) {\n const { fns, beans } = this;\n if (fns !== defaultFns) {\n fns[functionName] = beans?.validation?.validateApiFunction(functionName, func) ?? func;\n }\n }\n makeApi(apiName) {\n return {\n [apiName]: (...args) => {\n const {\n beans,\n fns: { [apiName]: fn }\n } = this;\n return fn ? fn(beans, ...args) : this.apiNotFound(apiName);\n }\n };\n }\n apiNotFound(fnName) {\n const { beans, gos, preDestroyLink } = this;\n if (!beans) {\n _warn(26, { fnName, preDestroyLink });\n } else {\n const module = gridApiFunctionsMap[fnName];\n if (gos.assertModuleRegistered(module, `api.${fnName}`)) {\n _warn(27, { fnName, module });\n }\n }\n }\n destroy() {\n super.destroy();\n this.fns = defaultFns;\n this.beans = null;\n }\n};\n\n// packages/ag-grid-community/src/api/coreApi.ts\nfunction getGridId(beans) {\n return beans.context.getId();\n}\nfunction destroy(beans) {\n beans.gridDestroySvc.destroy();\n}\nfunction isDestroyed(beans) {\n return beans.gridDestroySvc.destroyCalled;\n}\nfunction getGridOption(beans, key) {\n return beans.gos.get(key);\n}\nfunction setGridOption(beans, key, value) {\n updateGridOptions(beans, { [key]: value });\n}\nfunction updateGridOptions(beans, options) {\n beans.gos.updateGridOptions({ options });\n}\nfunction isModuleRegistered(beans, moduleName) {\n const withoutSuffix = moduleName.replace(/Module$/, \"\");\n return beans.gos.isModuleRegistered(withoutSuffix);\n}\n\n// packages/ag-grid-community/src/rendering/dndSourceComp.ts\nvar DndSourceElement = { tag: \"div\", cls: \"ag-drag-handle ag-row-drag\", attrs: { draggable: \"true\" } };\nvar DndSourceComp = class extends Component {\n constructor(rowNode, column, eCell) {\n super(DndSourceElement);\n this.rowNode = rowNode;\n this.column = column;\n this.eCell = eCell;\n }\n postConstruct() {\n const eGui = this.getGui();\n eGui.appendChild(_createIconNoSpan(\"rowDrag\", this.beans, null));\n this.addGuiEventListener(\"mousedown\", (e) => {\n e.stopPropagation();\n });\n this.addDragSource();\n this.checkVisibility();\n }\n addDragSource() {\n this.addGuiEventListener(\"dragstart\", this.onDragStart.bind(this));\n }\n onDragStart(dragEvent) {\n const { rowNode, column, eCell, gos } = this;\n const providedOnRowDrag = column.getColDef().dndSourceOnRowDrag;\n const dataTransfer = dragEvent.dataTransfer;\n dataTransfer.setDragImage(eCell, 0, 0);\n if (providedOnRowDrag) {\n const params = _addGridCommonParams(gos, {\n rowNode,\n dragEvent\n });\n providedOnRowDrag(params);\n } else {\n try {\n const jsonData = JSON.stringify(rowNode.data);\n dataTransfer.setData(\"application/json\", jsonData);\n dataTransfer.setData(\"text/plain\", jsonData);\n } catch (e) {\n }\n }\n }\n checkVisibility() {\n const visible = this.column.isDndSource(this.rowNode);\n this.setDisplayed(visible);\n }\n};\n\n// packages/ag-grid-community/src/dragAndDrop/dragApi.ts\nfunction addRowDropZone(beans, params) {\n beans.rowDragSvc?.rowDragFeature?.addRowDropZone(params);\n}\nfunction removeRowDropZone(beans, params) {\n const activeDropTarget = beans.dragAndDrop?.findExternalZone(params.getContainer());\n if (activeDropTarget) {\n beans.dragAndDrop?.removeDropTarget(activeDropTarget);\n }\n}\nfunction getRowDropZoneParams(beans, events) {\n return beans.rowDragSvc?.rowDragFeature?.getRowDropZone(events);\n}\nfunction getRowDropPositionIndicator(beans) {\n const rowDropHighlightSvc = beans.rowDropHighlightSvc;\n return rowDropHighlightSvc ? { row: rowDropHighlightSvc.row, dropIndicatorPosition: rowDropHighlightSvc.position } : { row: null, dropIndicatorPosition: \"none\" };\n}\nfunction setRowDropPositionIndicator(beans, params) {\n const rowDropHighlightSvc = beans.rowDropHighlightSvc;\n if (!rowDropHighlightSvc) {\n return;\n }\n const rowNode = params?.row;\n let position = params?.dropIndicatorPosition;\n if (position !== \"above\" && position !== \"below\" && position !== \"inside\") {\n position = \"none\";\n }\n const rowIndex = rowNode?.rowIndex;\n if (rowIndex === null || rowIndex === void 0 || position === \"none\") {\n rowDropHighlightSvc.clear();\n } else {\n rowDropHighlightSvc.set(rowNode, position);\n }\n}\n\n// packages/ag-grid-community/src/dragAndDrop/dragService.ts\nvar DragService = class extends BaseDragService {\n shouldPreventMouseEvent(mouseEvent) {\n const isEnableCellTextSelect = this.gos.get(\"enableCellTextSelection\");\n return isEnableCellTextSelect && super.shouldPreventMouseEvent(mouseEvent);\n }\n};\n\n// packages/ag-grid-community/src/dragAndDrop/horizontalResizeService.ts\nvar HorizontalResizeService = class extends BeanStub {\n constructor() {\n super(...arguments);\n this.beanName = \"horizontalResizeSvc\";\n }\n addResizeBar(params) {\n const dragSource = {\n dragStartPixels: params.dragStartPixels || 0,\n eElement: params.eResizeBar,\n onDragStart: this.onDragStart.bind(this, params),\n onDragStop: this.onDragStop.bind(this, params),\n onDragging: this.onDragging.bind(this, params),\n onDragCancel: this.onDragStop.bind(this, params),\n includeTouch: true,\n stopPropagationForTouch: true\n };\n const { dragSvc } = this.beans;\n dragSvc.addDragSource(dragSource);\n const finishedWithResizeFunc = () => dragSvc.removeDragSource(dragSource);\n return finishedWithResizeFunc;\n }\n onDragStart(params, mouseEvent) {\n this.dragStartX = mouseEvent.clientX;\n this.setResizeIcons();\n const shiftKey = mouseEvent instanceof MouseEvent && mouseEvent.shiftKey === true;\n params.onResizeStart(shiftKey);\n }\n setResizeIcons() {\n const ctrl = this.beans.ctrlsSvc.get(\"gridCtrl\");\n ctrl.setResizeCursor(1 /* Horizontal */);\n ctrl.disableUserSelect(true);\n }\n onDragStop(params) {\n params.onResizeEnd(this.resizeAmount);\n this.resetIcons();\n }\n resetIcons() {\n const ctrl = this.beans.ctrlsSvc.get(\"gridCtrl\");\n ctrl.setResizeCursor(false);\n ctrl.disableUserSelect(false);\n }\n onDragging(params, mouseEvent) {\n this.resizeAmount = mouseEvent.clientX - this.dragStartX;\n params.onResizing(this.resizeAmount);\n }\n};\n\n// packages/ag-grid-community/src/dragAndDrop/rowDragComp.ts\nvar RowDragElement = {\n tag: \"div\",\n cls: \"ag-drag-handle ag-row-drag\",\n attrs: { \"aria-hidden\": \"true\" }\n};\nvar RowDragComp = class extends Component {\n constructor(cellValueFn, rowNode, column, customGui, dragStartPixels, alwaysVisible = false) {\n super();\n this.cellValueFn = cellValueFn;\n this.rowNode = rowNode;\n this.column = column;\n this.customGui = customGui;\n this.dragStartPixels = dragStartPixels;\n this.alwaysVisible = alwaysVisible;\n this.dragSource = null;\n }\n isCustomGui() {\n return this.customGui != null;\n }\n postConstruct() {\n const { beans, customGui } = this;\n if (customGui) {\n this.setDragElement(customGui, this.dragStartPixels);\n } else {\n this.setTemplate(RowDragElement);\n this.getGui().appendChild(_createIconNoSpan(\"rowDrag\", beans, null));\n this.addDragSource();\n }\n if (!this.alwaysVisible) {\n this.initCellDrag();\n }\n }\n initCellDrag() {\n const { beans, gos, rowNode } = this;\n const refreshVisibility = this.refreshVisibility.bind(this);\n this.addManagedPropertyListener(\"suppressRowDrag\", refreshVisibility);\n this.addManagedListeners(rowNode, {\n dataChanged: refreshVisibility,\n cellChanged: refreshVisibility\n });\n this.addManagedListeners(\n beans.eventSvc,\n // For managed row drag, we do not show the component if sort, filter or grouping is active\n gos.get(\"rowDragManaged\") ? {\n sortChanged: refreshVisibility,\n filterChanged: refreshVisibility,\n columnRowGroupChanged: refreshVisibility,\n newColumnsLoaded: refreshVisibility\n } : { newColumnsLoaded: refreshVisibility }\n );\n }\n setDragElement(dragElement, dragStartPixels) {\n this.setTemplateFromElement(dragElement, void 0, void 0, true);\n this.addDragSource(dragStartPixels);\n }\n refreshVisibility() {\n if (this.alwaysVisible) {\n return;\n }\n const displayedOptions = { skipAriaHidden: true };\n if (this.isNeverDisplayed()) {\n this.setDisplayed(false, displayedOptions);\n return;\n }\n const column = this.column;\n let shownSometimes = typeof column?.getColDef().rowDrag === \"function\";\n let visible = !column || this.isCustomGui() || column.isRowDrag(this.rowNode);\n if (visible && this.rowNode.footer && this.gos.get(\"rowDragManaged\")) {\n visible = false;\n shownSometimes = true;\n }\n this.setDisplayed(shownSometimes || visible, displayedOptions);\n this.setVisible(visible, displayedOptions);\n }\n isNeverDisplayed() {\n const { gos, beans } = this;\n if (gos.get(\"suppressRowDrag\")) {\n return true;\n }\n if (gos.get(\"rowDragManaged\") && !!beans.rowDragSvc.rowDragFeature?.shouldPreventRowMove() && !beans.dragAndDrop?.hasExternalDropZones()) {\n return true;\n }\n return false;\n }\n getSelectedNodes() {\n const rowNode = this.rowNode;\n const isRowDragMultiRow = this.gos.get(\"rowDragMultiRow\");\n if (!isRowDragMultiRow) {\n return [rowNode];\n }\n const selection = this.beans.selectionSvc?.getSelectedNodes() ?? [];\n return selection.indexOf(rowNode) !== -1 ? selection : [rowNode];\n }\n getDragItem() {\n const { column, rowNode } = this;\n return {\n rowNode,\n rowNodes: this.getSelectedNodes(),\n columns: column ? [column] : void 0,\n defaultTextValue: this.cellValueFn()\n };\n }\n getRowDragText(column) {\n if (column) {\n const colDef = column.getColDef();\n if (colDef.rowDragText) {\n return colDef.rowDragText;\n }\n }\n return this.gos.get(\"rowDragText\");\n }\n addDragSource(dragStartPixels = 4) {\n if (this.dragSource) {\n this.removeDragSource();\n }\n if (this.gos.get(\"rowDragManaged\") && this.rowNode.footer) {\n return;\n }\n const eGui = this.getGui();\n if (this.gos.get(\"enableCellTextSelection\")) {\n this.removeMouseDownListener();\n this.mouseDownListener = this.addManagedElementListeners(eGui, {\n mousedown: (e) => {\n e?.preventDefault();\n }\n })[0];\n }\n const translate = this.getLocaleTextFunc();\n this.dragSource = {\n type: 2 /* RowDrag */,\n eElement: eGui,\n dragItemName: (draggingEvent) => {\n const dragItem = draggingEvent?.dragItem || this.getDragItem();\n const dragItemCount = (draggingEvent?.dropTarget?.rows.length ?? dragItem.rowNodes?.length) || 1;\n const rowDragText = this.getRowDragText(this.column);\n if (rowDragText) {\n return rowDragText(dragItem, dragItemCount);\n }\n return dragItemCount === 1 ? this.cellValueFn() : `${dragItemCount} ${translate(\"rowDragRows\", \"rows\")}`;\n },\n getDragItem: () => this.getDragItem(),\n dragStartPixels,\n dragSourceDomDataKey: this.gos.getDomDataKey()\n };\n this.beans.dragAndDrop.addDragSource(this.dragSource, true);\n }\n destroy() {\n this.removeDragSource();\n this.removeMouseDownListener();\n super.destroy();\n }\n removeDragSource() {\n if (!this.dragSource) {\n return;\n }\n this.beans.dragAndDrop.removeDragSource(this.dragSource);\n this.dragSource = null;\n }\n removeMouseDownListener() {\n if (!this.mouseDownListener) {\n return;\n }\n this.mouseDownListener();\n this.mouseDownListener = void 0;\n }\n};\n\n// packages/ag-grid-community/src/clientSideRowModel/changedRowNodes.ts\nvar ChangedRowNodes = class {\n constructor() {\n this.reordered = false;\n this.removals = /* @__PURE__ */ new Set();\n this.updates = /* @__PURE__ */ new Set();\n this.adds = /* @__PURE__ */ new Set();\n }\n};\n\n// packages/ag-grid-community/src/entities/positionUtils.ts\nfunction _createCellId(cellPosition) {\n const { rowIndex, rowPinned, column } = cellPosition;\n return `${rowIndex}.${rowPinned == null ? \"null\" : rowPinned}.${column.getId()}`;\n}\nfunction _areCellsEqual(cellA, cellB) {\n const colsMatch = cellA.column === cellB.column;\n const floatingMatch = cellA.rowPinned === cellB.rowPinned;\n const indexMatch = cellA.rowIndex === cellB.rowIndex;\n return colsMatch && floatingMatch && indexMatch;\n}\nfunction _isRowBefore(rowA, rowB) {\n switch (rowA.rowPinned) {\n case \"top\":\n if (rowB.rowPinned !== \"top\") {\n return true;\n }\n break;\n case \"bottom\":\n if (rowB.rowPinned !== \"bottom\") {\n return false;\n }\n break;\n default:\n if (_exists(rowB.rowPinned)) {\n return rowB.rowPinned !== \"top\";\n }\n break;\n }\n return rowA.rowIndex < rowB.rowIndex;\n}\nfunction _isSameRow(rowA, rowB) {\n if (!rowA && !rowB) {\n return true;\n }\n if (rowA && !rowB || !rowA && rowB) {\n return false;\n }\n return rowA.rowIndex === rowB.rowIndex && rowA.rowPinned == rowB.rowPinned;\n}\nfunction _getFirstRow(beans) {\n let rowIndex = 0;\n let rowPinned;\n const { pinnedRowModel, rowModel, pageBounds } = beans;\n if (pinnedRowModel?.getPinnedTopRowCount()) {\n rowPinned = \"top\";\n } else if (rowModel.getRowCount()) {\n rowPinned = null;\n rowIndex = pageBounds.getFirstRow();\n } else if (pinnedRowModel?.getPinnedBottomRowCount()) {\n rowPinned = \"bottom\";\n }\n return rowPinned === void 0 ? null : { rowIndex, rowPinned };\n}\nfunction _getLastRow(beans) {\n let rowIndex;\n let rowPinned = null;\n const { pinnedRowModel, pageBounds } = beans;\n const pinnedBottomCount = pinnedRowModel?.getPinnedBottomRowCount();\n const pinnedTopCount = pinnedRowModel?.getPinnedTopRowCount();\n if (pinnedBottomCount) {\n rowPinned = \"bottom\";\n rowIndex = pinnedBottomCount - 1;\n } else if (beans.rowModel.getRowCount()) {\n rowIndex = pageBounds.getLastRow();\n } else if (pinnedTopCount) {\n rowPinned = \"top\";\n rowIndex = pinnedTopCount - 1;\n }\n return rowIndex === void 0 ? null : { rowIndex, rowPinned };\n}\nfunction _getRowNode(beans, gridRow) {\n switch (gridRow.rowPinned) {\n case \"top\":\n return beans.pinnedRowModel?.getPinnedTopRow(gridRow.rowIndex);\n case \"bottom\":\n return beans.pinnedRowModel?.getPinnedBottomRow(gridRow.rowIndex);\n default:\n return beans.rowModel.getRow(gridRow.rowIndex);\n }\n}\nfunction _getCellByPosition(beans, cellPosition) {\n const spannedCellCtrl = beans.spannedRowRenderer?.getCellByPosition(cellPosition);\n if (spannedCellCtrl) {\n return spannedCellCtrl;\n }\n const rowCtrl = beans.rowRenderer.getRowByPosition(cellPosition);\n if (!rowCtrl) {\n return null;\n }\n return rowCtrl.getCellCtrl(cellPosition.column);\n}\nfunction _getRowById(beans, rowId, rowPinned) {\n const { rowModel: rm, pinnedRowModel: prm } = beans;\n let node;\n node ?? (node = rm?.getRowNode(rowId));\n if (rowPinned) {\n node ?? (node = prm?.getPinnedRowById(rowId, rowPinned));\n } else {\n node ?? (node = prm?.getPinnedRowById(rowId, \"top\"));\n node ?? (node = prm?.getPinnedRowById(rowId, \"bottom\"));\n }\n return node;\n}\nfunction _getRowAbove(beans, rowPosition, checkSticky = false) {\n const { rowIndex: index, rowPinned: pinned } = rowPosition;\n const { pageBounds, pinnedRowModel, rowModel } = beans;\n if (index === 0) {\n if (pinned === \"top\") {\n return null;\n }\n if (pinned === \"bottom\" && rowModel.isRowsToRender()) {\n return { rowIndex: pageBounds.getLastRow(), rowPinned: null };\n }\n return pinnedRowModel?.isRowsToRender(\"top\") ? { rowIndex: pinnedRowModel.getPinnedTopRowCount() - 1, rowPinned: \"top\" } : null;\n }\n if (checkSticky) {\n const rowNode = pinned ? void 0 : rowModel.getRow(index);\n return getNextStickyPosition(beans, rowNode, true) ?? { rowIndex: index - 1, rowPinned: pinned };\n }\n return { rowIndex: index - 1, rowPinned: pinned };\n}\nfunction _getAbsoluteRowIndex(beans, rowPosition) {\n const { pinnedRowModel, rowModel } = beans;\n const pinnedTopRowCount = pinnedRowModel?.getPinnedTopRowCount() ?? 0;\n const unpinnedRowCount = rowModel.getRowCount();\n const { rowPinned, rowIndex } = rowPosition;\n if (rowPinned === \"top\") {\n return rowIndex;\n }\n if (rowPinned === \"bottom\") {\n return pinnedTopRowCount + unpinnedRowCount + rowIndex;\n }\n return pinnedTopRowCount + rowIndex;\n}\nfunction _getRowBelow(beans, rowPosition, checkSticky = false) {\n const { rowIndex: index, rowPinned: pinned } = rowPosition;\n const { pageBounds, pinnedRowModel, rowModel } = beans;\n if (isLastRowInContainer(beans, rowPosition)) {\n if (pinned === \"bottom\") {\n return null;\n }\n if (pinned === \"top\" && rowModel.isRowsToRender()) {\n return { rowIndex: pageBounds.getFirstRow(), rowPinned: null };\n }\n return pinnedRowModel?.isRowsToRender(\"bottom\") ? { rowIndex: 0, rowPinned: \"bottom\" } : null;\n }\n if (checkSticky) {\n const rowNode = pinned ? void 0 : rowModel.getRow(index);\n return getNextStickyPosition(beans, rowNode) ?? { rowIndex: index + 1, rowPinned: pinned };\n }\n return { rowIndex: index + 1, rowPinned: pinned };\n}\nfunction getNextStickyPosition(beans, rowNode, up = false) {\n const { gos, rowRenderer } = beans;\n if (!rowNode?.sticky || !_isGroupRowsSticky(gos)) {\n return;\n }\n const stickyTopCtrls = rowRenderer.getStickyTopRowCtrls();\n const stickyBottomCtrls = rowRenderer.getStickyBottomRowCtrls();\n const isStickyTop = !stickyBottomCtrls.some((ctrl) => ctrl.rowNode.rowIndex === rowNode.rowIndex);\n const stickyRowCtrls = isStickyTop ? stickyTopCtrls : stickyBottomCtrls;\n const increment = (up ? -1 : 1) * (isStickyTop ? -1 : 1);\n let nextCtrl;\n for (let i = 0; i < stickyRowCtrls.length; i++) {\n if (stickyRowCtrls[i].rowNode.rowIndex === rowNode.rowIndex) {\n nextCtrl = stickyRowCtrls[i + increment];\n break;\n }\n }\n return nextCtrl ? { rowIndex: nextCtrl.rowNode.rowIndex, rowPinned: null } : void 0;\n}\nfunction isLastRowInContainer(beans, rowPosition) {\n const { rowPinned, rowIndex } = rowPosition;\n const { pinnedRowModel, pageBounds } = beans;\n if (rowPinned === \"top\") {\n const lastTopIndex = (pinnedRowModel?.getPinnedTopRowCount() ?? 0) - 1;\n return lastTopIndex <= rowIndex;\n }\n if (rowPinned === \"bottom\") {\n const lastBottomIndex = (pinnedRowModel?.getPinnedBottomRowCount() ?? 0) - 1;\n return lastBottomIndex <= rowIndex;\n }\n const lastBodyIndex = pageBounds.getLastRow();\n return lastBodyIndex <= rowIndex;\n}\n\n// packages/ag-grid-community/src/utils/changedPath.ts\nvar ChangedPath = class {\n constructor(keepingColumns, rootNode) {\n // whether changed path is active of not. it is active when a) doing\n // a transaction update or b) doing change detection. if we are doing\n // a CSRM refresh for other reasons (after sort or filter, or user calling\n // setRowData() without delta mode) then we are not active. we are also\n // marked as not active if secondary columns change in pivot (as this impacts\n // aggregations).\n // can be set inactive by:\n // a) ClientSideRowModel, if no transactions or\n // b) PivotService, if secondary columns changed\n this.active = true;\n // for each node in the change path, we also store which columns need\n // to be re-aggregated.\n this.nodeIdsToColumns = {};\n // for quick lookup, all items in the change path are mapped by nodeId\n this.mapToItems = {};\n this.keepingColumns = keepingColumns;\n this.pathRoot = {\n rowNode: rootNode,\n children: null\n };\n this.mapToItems[rootNode.id] = this.pathRoot;\n }\n depthFirstSearchChangedPath(pathItem, callback) {\n const { rowNode, children } = pathItem;\n if (children) {\n for (let i = 0; i < children.length; ++i) {\n this.depthFirstSearchChangedPath(children[i], callback);\n }\n }\n callback(rowNode);\n }\n depthFirstSearchEverything(rowNode, callback, traverseEverything) {\n const childrenAfterGroup = rowNode.childrenAfterGroup;\n if (childrenAfterGroup) {\n for (let i = 0, len = childrenAfterGroup.length; i < len; ++i) {\n const childNode = childrenAfterGroup[i];\n if (childNode.childrenAfterGroup) {\n this.depthFirstSearchEverything(childNode, callback, traverseEverything);\n } else if (traverseEverything) {\n callback(childNode);\n }\n }\n }\n callback(rowNode);\n }\n // traverseLeafNodes -> used when NOT doing changed path, ie traversing everything. the callback\n // will be called for child nodes in addition to parent nodes.\n forEachChangedNodeDepthFirst(callback, traverseLeafNodes = false, includeUnchangedNodes = false) {\n if (this.active && !includeUnchangedNodes) {\n this.depthFirstSearchChangedPath(this.pathRoot, callback);\n } else {\n this.depthFirstSearchEverything(this.pathRoot.rowNode, callback, traverseLeafNodes);\n }\n }\n executeFromRootNode(callback) {\n callback(this.pathRoot.rowNode);\n }\n createPathItems(rowNode) {\n let pointer = rowNode;\n let newEntryCount = 0;\n while (!this.mapToItems[pointer.id]) {\n const newEntry = {\n rowNode: pointer,\n children: null\n };\n this.mapToItems[pointer.id] = newEntry;\n newEntryCount++;\n pointer = pointer.parent;\n }\n return newEntryCount;\n }\n populateColumnsMap(rowNode, columns) {\n if (!this.keepingColumns || !columns) {\n return;\n }\n let pointer = rowNode;\n while (pointer) {\n if (!this.nodeIdsToColumns[pointer.id]) {\n this.nodeIdsToColumns[pointer.id] = {};\n }\n for (const col of columns) {\n this.nodeIdsToColumns[pointer.id][col.getId()] = true;\n }\n pointer = pointer.parent;\n }\n }\n linkPathItems(rowNode, newEntryCount) {\n let pointer = rowNode;\n for (let i = 0; i < newEntryCount; i++) {\n const thisItem = this.mapToItems[pointer.id];\n const parentItem = this.mapToItems[pointer.parent.id];\n if (!parentItem.children) {\n parentItem.children = [];\n }\n parentItem.children.push(thisItem);\n pointer = pointer.parent;\n }\n }\n // called by\n // 1) change detection (provides cols) and\n // 2) groupStage if doing transaction update (doesn't provide cols)\n addParentNode(rowNode, columns) {\n if (!rowNode || rowNode.isRowPinned()) {\n return;\n }\n const newEntryCount = this.createPathItems(rowNode);\n this.linkPathItems(rowNode, newEntryCount);\n this.populateColumnsMap(rowNode, columns);\n }\n canSkip(rowNode) {\n return this.active && !this.mapToItems[rowNode.id];\n }\n getValueColumnsForNode(rowNode, valueColumns) {\n if (!this.keepingColumns) {\n return valueColumns;\n }\n const colsForThisNode = this.nodeIdsToColumns[rowNode.id];\n const result = valueColumns.filter((col) => colsForThisNode[col.getId()]);\n return result;\n }\n getNotValueColumnsForNode(rowNode, valueColumns) {\n if (!this.keepingColumns) {\n return null;\n }\n const colsForThisNode = this.nodeIdsToColumns[rowNode.id];\n const result = valueColumns.filter((col) => !colsForThisNode[col.getId()]);\n return result;\n }\n};\n\n// packages/ag-grid-community/src/dragAndDrop/rowDragFeatureNudger.ts\nvar RowDragFeatureNudger = class {\n constructor(beans, gridBodyCtrl) {\n this.beans = beans;\n this.groupThrottled = false;\n this.scrollChanged = false;\n this.scrollChanging = false;\n this.oldVScroll = null;\n this.groupTimer = null;\n this.groupTarget = null;\n this.onGroupThrottle = () => {\n this.groupTimer = null;\n this.groupThrottled = true;\n this.beans.dragAndDrop?.nudge();\n };\n const getScrollY = () => gridBodyCtrl.scrollFeature.getVScrollPosition().top;\n this.autoScroll = new AutoScrollService({\n scrollContainer: gridBodyCtrl.eBodyViewport,\n scrollAxis: \"y\",\n getVerticalPosition: getScrollY,\n setVerticalPosition: (position) => gridBodyCtrl.scrollFeature.setVerticalScrollPosition(position),\n onScrollCallback: () => {\n const newVScroll = getScrollY();\n if (this.oldVScroll !== newVScroll) {\n this.oldVScroll = newVScroll;\n this.scrollChanging = true;\n return;\n }\n const scrollChanged = this.scrollChanging;\n this.scrollChanged = scrollChanged;\n this.scrollChanging = false;\n if (scrollChanged) {\n this.beans.dragAndDrop?.nudge();\n this.scrollChanged = false;\n }\n }\n });\n }\n updateGroup(target, canExpand) {\n if (this.groupTarget && this.groupTarget !== target) {\n this.clearGroup();\n }\n if (target) {\n if (canExpand && this.groupThrottled && !target.expanded && target.childrenAfterSort?.length && target.isExpandable()) {\n target.setExpanded(true, void 0, true);\n }\n if (target.expanded && target.childrenAfterSort?.length) {\n this.groupThrottled = true;\n this.groupTarget = target;\n }\n }\n }\n startGroup(target) {\n this.groupTarget = target;\n if (this.groupTimer === null) {\n this.groupTimer = window.setTimeout(this.onGroupThrottle, this.beans.gos.get(\"rowDragInsertDelay\"));\n }\n }\n clearGroup() {\n this.groupThrottled = false;\n this.groupTarget = null;\n const timer = this.groupTimer;\n if (timer !== null) {\n this.groupTimer = null;\n window.clearTimeout(timer);\n }\n }\n clear() {\n this.clearGroup();\n this.autoScroll.ensureCleared();\n this.oldVScroll = null;\n this.scrollChanged = false;\n this.scrollChanging = false;\n }\n};\n\n// packages/ag-grid-community/src/dragAndDrop/rowDragFeature.ts\nvar RowDragFeature = class extends BeanStub {\n constructor(eContainer) {\n super();\n this.eContainer = eContainer;\n this.lastDraggingEvent = null;\n this.nudger = null;\n }\n postConstruct() {\n const beans = this.beans;\n beans.ctrlsSvc.whenReady(this, (p) => {\n this.nudger = new RowDragFeatureNudger(beans, p.gridBodyCtrl);\n });\n }\n destroy() {\n super.destroy();\n this.nudger?.clear();\n this.nudger = null;\n this.lastDraggingEvent = null;\n this.eContainer = null;\n }\n getContainer() {\n return this.eContainer;\n }\n isInterestedIn(type) {\n return type === 2 /* RowDrag */;\n }\n getIconName(draggingEvent) {\n if (draggingEvent?.dropTarget?.allowed === false) {\n return \"notAllowed\";\n }\n if (this.gos.get(\"rowDragManaged\") && this.shouldPreventRowMove()) {\n return \"notAllowed\";\n }\n return \"move\";\n }\n shouldPreventRowMove() {\n const { rowGroupColsSvc, filterManager, sortSvc } = this.beans;\n const rowGroupCols = rowGroupColsSvc?.columns ?? [];\n if (rowGroupCols.length) {\n return true;\n }\n const isFilterPresent = filterManager?.isAnyFilterPresent();\n if (isFilterPresent) {\n return true;\n }\n const isSortActive = sortSvc?.isSortActive();\n if (isSortActive) {\n return true;\n }\n return false;\n }\n getRowNodes(draggingEvent) {\n if (!this.isFromThisGrid(draggingEvent)) {\n return draggingEvent.dragItem.rowNodes || [];\n }\n const currentNode = draggingEvent.dragItem.rowNode;\n if (this.gos.get(\"rowDragMultiRow\")) {\n const selectedNodes = this.beans.selectionSvc?.getSelectedNodes();\n if (selectedNodes && selectedNodes.indexOf(currentNode) >= 0) {\n return selectedNodes.slice().sort(compareRowIndex);\n }\n }\n return [currentNode];\n }\n onDragEnter(draggingEvent) {\n this.dragging(draggingEvent, true);\n }\n onDragging(draggingEvent) {\n this.dragging(draggingEvent, false);\n }\n dragging(draggingEvent, enter) {\n const { lastDraggingEvent, beans } = this;\n if (enter) {\n const rowNodes = this.getRowNodes(draggingEvent);\n draggingEvent.dragItem.rowNodes = rowNodes;\n setRowNodesDragging(rowNodes, true);\n }\n this.lastDraggingEvent = draggingEvent;\n const fromNudge = draggingEvent.fromNudge;\n const rowsDrop = this.makeRowsDrop(lastDraggingEvent, draggingEvent, fromNudge, false);\n beans.rowDropHighlightSvc?.fromDrag(draggingEvent);\n if (enter) {\n this.dispatchGridEvent(\"rowDragEnter\", draggingEvent);\n }\n this.dispatchGridEvent(\"rowDragMove\", draggingEvent);\n if (rowsDrop?.rowDragManaged && rowsDrop.moved && rowsDrop.allowed && rowsDrop.sameGrid && !rowsDrop.suppressMoveWhenRowDragging && // Avoid flickering by only dropping while auto-scrolling is not happening\n (!fromNudge && !this.nudger?.autoScroll.scrolling || this.nudger?.scrollChanged)) {\n this.dropRows(rowsDrop);\n }\n this.nudger?.autoScroll.check(draggingEvent.event);\n }\n isFromThisGrid(draggingEvent) {\n return draggingEvent.dragSource.dragSourceDomDataKey === this.gos.getDomDataKey();\n }\n makeRowsDrop(lastDraggingEvent, draggingEvent, moving, dropping) {\n const { beans, gos } = this;\n const rowsDrop = this.newRowsDrop(draggingEvent, dropping);\n const rowModel = beans.rowModel;\n draggingEvent.dropTarget = rowsDrop;\n draggingEvent.changed = false;\n if (!rowsDrop) {\n return null;\n }\n let { sameGrid, rootNode, source, target, rows } = rowsDrop;\n target ?? (target = rowModel.getRow(rowModel.getRowCount() - 1) ?? null);\n const canSetParent = (\n // We don't yet support drag and drop with grouping\n !!this.beans.groupStage?.treeData && // We don't yet support moving tree rows from a different grid in a structured way\n sameGrid\n );\n let newParent = null;\n if (target?.footer) {\n const found = getPrevOrNext(rowModel, -1, target) ?? getPrevOrNext(rowModel, 1, target);\n newParent = target.sibling ?? rootNode;\n target = found ?? null;\n }\n if (target?.detail) {\n target = target.parent;\n }\n rowsDrop.moved && (rowsDrop.moved = source !== target);\n let yDelta = 0.5;\n if (target) {\n if (sameGrid && rowsDrop.moved && (newParent || !canSetParent)) {\n yDelta = source.rowIndex > target.rowIndex ? -0.5 : 0.5;\n } else {\n yDelta = (rowsDrop.y - target.rowTop - target.rowHeight / 2) / target.rowHeight || 0;\n }\n }\n if (!canSetParent && sameGrid && target && rowsDrop.moved && _isClientSideRowModel(gos)) {\n const newTarget = deltaDraggingTarget(rowModel, rowsDrop);\n if (newTarget) {\n yDelta = source.rowIndex > newTarget.rowIndex ? -0.5 : 0.5;\n target = newTarget;\n rowsDrop.moved && (rowsDrop.moved = source !== target);\n }\n }\n const nudger = this.nudger;\n nudger?.updateGroup(target, moving);\n if (canSetParent && !newParent && nudger) {\n if (!target || yDelta >= 0.5 && target.rowIndex === beans.pageBounds.getLastRow()) {\n newParent = rootNode;\n } else if (rowsDrop.moved && this.targetShouldBeParent(target, yDelta, rows)) {\n if (nudger.groupThrottled) {\n newParent = target;\n }\n if (!moving && (!newParent || target && !target.expanded && !!target.childrenAfterSort?.length)) {\n nudger.startGroup(target);\n }\n }\n newParent ?? (newParent = target?.parent ?? rootNode);\n }\n let inside = false;\n if (newParent) {\n if (newParent === target && newParent !== rootNode) {\n const firstRow = newParent.expanded ? getPrevOrNext(rowModel, 1, target) : null;\n if (firstRow?.parent === newParent) {\n target = firstRow;\n yDelta = -0.5;\n } else {\n inside = true;\n }\n }\n if (target && !inside) {\n let current = target;\n while (current && current !== rootNode && current !== newParent) {\n target = current;\n current = current.parent;\n }\n }\n }\n rowsDrop.target = target;\n rowsDrop.newParent = newParent;\n rowsDrop.moved && (rowsDrop.moved = source !== target);\n const aboveOrBelow = yDelta < 0 ? \"above\" : \"below\";\n rowsDrop.position = rowsDrop.moved ? inside ? \"inside\" : aboveOrBelow : \"none\";\n this.validateRowsDrop(rowsDrop, canSetParent, aboveOrBelow, dropping);\n draggingEvent.changed || (draggingEvent.changed = rowsDropChanged(lastDraggingEvent?.dropTarget, rowsDrop));\n return rowsDrop;\n }\n newRowsDrop(draggingEvent, dropping) {\n const { beans, gos } = this;\n const rootNode = beans.rowModel.rootNode;\n const rowDragManaged = _isClientSideRowModel(gos) ? gos.get(\"rowDragManaged\") : false;\n const suppressMoveWhenRowDragging = gos.get(\"suppressMoveWhenRowDragging\");\n const sameGrid = this.isFromThisGrid(draggingEvent);\n let { rowNode: source, rowNodes: rows } = draggingEvent.dragItem;\n rows || (rows = source ? [source] : []);\n source || (source = rows[0]);\n if (!source || !rootNode) {\n return null;\n }\n const withinGrid = this.beans.dragAndDrop.isDropZoneWithinThisGrid(draggingEvent);\n let allowed = true;\n if (rowDragManaged && (!rows.length || this.shouldPreventRowMove() || (suppressMoveWhenRowDragging || !sameGrid) && !withinGrid)) {\n allowed = false;\n }\n const y = _getNormalisedMousePosition(beans, draggingEvent).y;\n const overNode = this.getOverNode(y);\n return {\n api: beans.gridApi,\n context: beans.gridOptions.context,\n draggingEvent,\n rowDragManaged,\n suppressMoveWhenRowDragging,\n sameGrid,\n withinGrid,\n rootNode,\n moved: source !== overNode,\n y,\n overNode,\n overIndex: overNode?.rowIndex ?? -1,\n position: \"none\",\n source,\n target: overNode ?? null,\n newParent: null,\n rows,\n allowed,\n highlight: !dropping && rowDragManaged && suppressMoveWhenRowDragging && (withinGrid || !sameGrid)\n };\n }\n validateRowsDrop(rowsDrop, canSetParent, aboveOrBelow, dropping) {\n const { rowDragManaged, suppressMoveWhenRowDragging } = rowsDrop;\n if (!canSetParent) {\n rowsDrop.newParent = null;\n }\n if (suppressMoveWhenRowDragging && !rowsDrop.moved) {\n rowsDrop.allowed = false;\n }\n const isRowValidDropPosition = (!rowDragManaged || rowsDrop.allowed) && this.gos.get(\"isRowValidDropPosition\");\n if (isRowValidDropPosition) {\n if (canSetParent && rowsDrop.newParent && rowsHaveSameParent(rowsDrop.rows, rowsDrop.newParent)) {\n rowsDrop.newParent = null;\n }\n const canDropResult = isRowValidDropPosition(rowsDrop);\n if (!canDropResult) {\n rowsDrop.allowed = false;\n } else if (typeof canDropResult === \"object\") {\n if (canDropResult.rows !== void 0) {\n rowsDrop.rows = canDropResult.rows ?? [];\n }\n if (canSetParent && canDropResult.newParent !== void 0) {\n rowsDrop.newParent = canDropResult.newParent;\n }\n if (canDropResult.target !== void 0) {\n rowsDrop.target = canDropResult.target;\n }\n if (canDropResult.position) {\n rowsDrop.position = canDropResult.position;\n }\n if (canDropResult.allowed !== void 0) {\n rowsDrop.allowed = canDropResult.allowed;\n } else if (!rowDragManaged) {\n rowsDrop.allowed = true;\n }\n const draggingEvent = rowsDrop.draggingEvent;\n if (canDropResult.changed && draggingEvent) {\n draggingEvent.changed = true;\n }\n if (!dropping && canDropResult.highlight !== void 0) {\n rowsDrop.highlight = canDropResult.highlight;\n }\n }\n }\n if (rowDragManaged) {\n rowsDrop.rows = this.filterRows(rowsDrop);\n }\n if (canSetParent && rowsDrop.newParent && rowsHaveSameParent(rowsDrop.rows, rowsDrop.newParent)) {\n rowsDrop.newParent = null;\n }\n if (suppressMoveWhenRowDragging && (!rowsDrop.rows.length || rowsDrop.position === \"none\")) {\n rowsDrop.allowed = false;\n }\n if ((!rowsDrop.allowed || !rowsDrop.newParent) && rowsDrop.position === \"inside\") {\n rowsDrop.position = aboveOrBelow;\n }\n }\n targetShouldBeParent(target, yDelta, rows) {\n const targetRowIndex = target.rowIndex;\n const INSIDE_THRESHOLD = 0.25;\n if (yDelta < -0.5 + INSIDE_THRESHOLD) {\n return false;\n }\n if (yDelta < 0.5 - INSIDE_THRESHOLD) {\n return true;\n }\n let nextRow;\n let nextRowIndex = targetRowIndex + 1;\n const rowModel = this.beans.rowModel;\n do {\n nextRow = rowModel.getRow(nextRowIndex++);\n } while (nextRow?.footer);\n const childrenAfterGroup = target.childrenAfterGroup;\n if (nextRow && nextRow.parent === target && childrenAfterGroup?.length) {\n const rowsSet = new Set(rows);\n for (const child of childrenAfterGroup) {\n if (child.rowIndex !== null && !rowsSet.has(child)) {\n return true;\n }\n }\n }\n return false;\n }\n addRowDropZone(params) {\n if (!params.getContainer()) {\n _warn(55);\n return;\n }\n const dragAndDrop = this.beans.dragAndDrop;\n if (dragAndDrop.findExternalZone(params.getContainer())) {\n _warn(56);\n return;\n }\n const processedParams = params.fromGrid ? params : {\n getContainer: params.getContainer,\n onDragEnter: params.onDragEnter && ((e) => params.onDragEnter(this.rowDragEvent(\"rowDragEnter\", e))),\n onDragLeave: params.onDragLeave && ((e) => params.onDragLeave(this.rowDragEvent(\"rowDragLeave\", e))),\n onDragging: params.onDragging && ((e) => params.onDragging(this.rowDragEvent(\"rowDragMove\", e))),\n onDragStop: params.onDragStop && ((e) => params.onDragStop(this.rowDragEvent(\"rowDragEnd\", e))),\n onDragCancel: params.onDragCancel && ((e) => params.onDragCancel(this.rowDragEvent(\"rowDragCancel\", e)))\n };\n const dropTarget = {\n isInterestedIn: (type) => type === 2 /* RowDrag */,\n getIconName: () => \"move\",\n external: true,\n ...processedParams\n };\n dragAndDrop.addDropTarget(dropTarget);\n this.addDestroyFunc(() => dragAndDrop.removeDropTarget(dropTarget));\n }\n getRowDropZone(events) {\n const result = {\n getContainer: this.getContainer.bind(this),\n onDragEnter: (e) => {\n this.onDragEnter(e);\n events?.onDragEnter?.(this.rowDragEvent(\"rowDragEnter\", e));\n },\n onDragLeave: (e) => {\n this.onDragLeave(e);\n events?.onDragLeave?.(this.rowDragEvent(\"rowDragLeave\", e));\n },\n onDragging: (e) => {\n this.onDragging(e);\n events?.onDragging?.(this.rowDragEvent(\"rowDragMove\", e));\n },\n onDragStop: (e) => {\n this.onDragStop(e);\n events?.onDragStop?.(this.rowDragEvent(\"rowDragEnd\", e));\n },\n onDragCancel: (e) => {\n this.onDragCancel(e);\n events?.onDragCancel?.(this.rowDragEvent(\"rowDragCancel\", e));\n },\n fromGrid: true\n };\n return result;\n }\n getOverNode(y) {\n const { pageBounds, rowModel } = this.beans;\n const mouseIsPastLastRow = y > pageBounds.getCurrentPagePixelRange().pageLastPixel;\n const overIndex = mouseIsPastLastRow ? -1 : rowModel.getRowIndexAtPixel(y);\n return overIndex >= 0 ? rowModel.getRow(overIndex) : void 0;\n }\n rowDragEvent(type, draggingEvent) {\n const beans = this.beans;\n const { dragItem, dropTarget: rowsDrop, event, vDirection } = draggingEvent;\n const withRowsDrop = rowsDrop?.rootNode === beans.rowModel.rootNode;\n const y = withRowsDrop ? rowsDrop.y : _getNormalisedMousePosition(beans, draggingEvent).y;\n const overNode = withRowsDrop ? rowsDrop.overNode : this.getOverNode(y);\n const overIndex = withRowsDrop ? rowsDrop.overIndex : overNode?.rowIndex ?? -1;\n return {\n api: beans.gridApi,\n context: beans.gridOptions.context,\n type,\n event,\n node: dragItem.rowNode,\n nodes: dragItem.rowNodes,\n overIndex,\n overNode,\n y,\n vDirection,\n rowsDrop\n };\n }\n dispatchGridEvent(type, draggingEvent) {\n const event = this.rowDragEvent(type, draggingEvent);\n this.eventSvc.dispatchEvent(event);\n }\n onDragLeave(draggingEvent) {\n this.dispatchGridEvent(\"rowDragLeave\", draggingEvent);\n this.stopDragging(draggingEvent);\n }\n onDragStop(draggingEvent) {\n const rowsDrop = this.makeRowsDrop(this.lastDraggingEvent, draggingEvent, false, true);\n this.dispatchGridEvent(\"rowDragEnd\", draggingEvent);\n if (rowsDrop?.allowed && rowsDrop.rowDragManaged && (rowsDrop.suppressMoveWhenRowDragging || !rowsDrop.sameGrid || this.nudger?.autoScroll.scrolling)) {\n this.dropRows(rowsDrop);\n }\n this.stopDragging(draggingEvent);\n }\n onDragCancel(draggingEvent) {\n this.dispatchGridEvent(\"rowDragCancel\", draggingEvent);\n this.stopDragging(draggingEvent);\n }\n stopDragging(draggingEvent) {\n this.nudger?.clear();\n this.beans.rowDropHighlightSvc?.fromDrag(null);\n setRowNodesDragging(draggingEvent.dragItem.rowNodes, false);\n }\n /** Drag and drop. Returns false if at least a row was moved, otherwise true */\n dropRows(rowsDrop) {\n return rowsDrop.sameGrid ? this.csrmMoveRows(rowsDrop) : this.csrmAddRows(rowsDrop);\n }\n csrmAddRows({ position, target, rows }) {\n const getRowIdFunc = _getRowIdCallback(this.gos);\n const clientSideRowModel = this.beans.rowModel;\n const add = rows.filter(\n ({ data, rowPinned }) => !clientSideRowModel.getRowNode(getRowIdFunc?.({ data, level: 0, rowPinned }) ?? data.id)\n ).map(({ data }) => data);\n if (add.length === 0) {\n return false;\n }\n const addIndex = target ? getLeafSourceRowIndex(target) + (position === \"above\" ? 0 : 1) : void 0;\n clientSideRowModel.updateRowData({ add, addIndex });\n return true;\n }\n filterRows({ newParent, rows }) {\n let filtered;\n for (let i = 0, len = rows.length; i < len; ++i) {\n let valid = true;\n const row = rows[i];\n if (!row || row.footer || row.rowTop === null && row !== this.beans.rowModel.getRowNode(row.id) || // This row cannot be dragged, not in allLeafChildren and not a filler\n newParent && row.parent !== newParent && wouldFormCycle(row, newParent) || // Cannot move to a parent that would create a cycle\n !getLeafRow(row)) {\n valid = false;\n }\n if (valid) {\n filtered?.push(row);\n } else {\n filtered ?? (filtered = rows.slice(0, i));\n }\n }\n return filtered ?? rows;\n }\n csrmMoveRows({ position, target, rows, newParent, rootNode }) {\n let changed = false;\n const leafs = /* @__PURE__ */ new Set();\n for (const row of rows) {\n if (newParent && row.parent !== newParent) {\n row.treeParent = newParent;\n changed = true;\n }\n const leafRow = getLeafRow(row);\n if (leafRow) {\n leafs.add(leafRow);\n }\n }\n if (!changed && leafs.size === 0) {\n return false;\n }\n const focusSvc = this.beans.focusSvc;\n const cellPosition = focusSvc.getFocusedCell();\n const cellCtrl = cellPosition && _getCellByPosition(this.beans, cellPosition);\n if (leafs.size && this.reorderLeafChildren(leafs, ...this.getMoveRowsBounds(leafs, target, position === \"above\"))) {\n changed = true;\n }\n if (!changed) {\n return false;\n }\n const clientSideRowModel = this.beans.rowModel;\n const changedRowNodes = new ChangedRowNodes();\n changedRowNodes.reordered = true;\n clientSideRowModel.refreshModel({\n step: \"group\",\n keepRenderedRows: true,\n animate: !this.gos.get(\"suppressAnimationFrame\"),\n changedPath: new ChangedPath(false, rootNode),\n changedRowNodes\n });\n if (cellCtrl) {\n cellCtrl.focusCell();\n } else {\n focusSvc.clearFocusedCell();\n }\n return true;\n }\n /** For reorderLeafChildren, returns min index of the rows to move, the target index and the max index of the rows to move. */\n getMoveRowsBounds(leafs, target, above) {\n const totalRows = this.beans.rowModel.rootNode?._leafs?.length ?? 0;\n let targetPositionIdx = target ? getLeafSourceRowIndex(target) : -1;\n if (targetPositionIdx < 0 || targetPositionIdx >= totalRows) {\n targetPositionIdx = totalRows;\n } else if (!above) {\n ++targetPositionIdx;\n }\n let firstAffectedLeafIdx = targetPositionIdx;\n let lastAffectedLeafIndex = Math.min(targetPositionIdx, totalRows - 1);\n for (const row of leafs) {\n const sourceRowIndex = row.sourceRowIndex;\n if (sourceRowIndex < firstAffectedLeafIdx) {\n firstAffectedLeafIdx = sourceRowIndex;\n }\n if (sourceRowIndex > lastAffectedLeafIndex) {\n lastAffectedLeafIndex = sourceRowIndex;\n }\n }\n return [firstAffectedLeafIdx, targetPositionIdx, lastAffectedLeafIndex];\n }\n /** Reorders the children of the root node, so that the rows to move are in the correct order.\n * @param leafs The valid set of rows to move, as returned by getValidRowsToMove\n * @param firstAffectedLeafIdx The first index of the rows to move\n * @param targetPositionIdx The target index, where the rows will be moved\n * @param lastAffectedLeafIndex The last index of the rows to move\n * @returns True if the order of the rows changed, false otherwise\n */\n reorderLeafChildren(leafs, firstAffectedLeafIdx, targetPositionIdx, lastAffectedLeafIndex) {\n let orderChanged = false;\n const allLeafs = this.beans.rowModel.rootNode?._leafs;\n if (!leafs.size || !allLeafs) {\n return false;\n }\n let writeIdxLeft = firstAffectedLeafIdx;\n for (let readIdx = firstAffectedLeafIdx; readIdx < targetPositionIdx; ++readIdx) {\n const row = allLeafs[readIdx];\n if (!leafs.has(row)) {\n if (row.sourceRowIndex !== writeIdxLeft) {\n row.sourceRowIndex = writeIdxLeft;\n allLeafs[writeIdxLeft] = row;\n orderChanged = true;\n }\n ++writeIdxLeft;\n }\n }\n let writeIdxRight = lastAffectedLeafIndex;\n for (let readIdx = lastAffectedLeafIndex; readIdx >= targetPositionIdx; --readIdx) {\n const row = allLeafs[readIdx];\n if (!leafs.has(row)) {\n if (row.sourceRowIndex !== writeIdxRight) {\n row.sourceRowIndex = writeIdxRight;\n allLeafs[writeIdxRight] = row;\n orderChanged = true;\n }\n --writeIdxRight;\n }\n }\n for (const row of leafs) {\n if (row.sourceRowIndex !== writeIdxLeft) {\n row.sourceRowIndex = writeIdxLeft;\n allLeafs[writeIdxLeft] = row;\n orderChanged = true;\n }\n ++writeIdxLeft;\n }\n return orderChanged;\n }\n};\nvar getPrevOrNext = (rowModel, direction, initial) => {\n if (initial) {\n const rowCount = rowModel.getRowCount();\n let rowIndex = initial.rowIndex + direction;\n while (rowIndex >= 0 && rowIndex < rowCount) {\n const row = rowModel.getRow(rowIndex);\n if (!row || !row.footer && !row.detail) {\n return row;\n }\n rowIndex += direction;\n }\n }\n return void 0;\n};\nvar wouldFormCycle = (row, newParent) => {\n let parent = newParent;\n while (parent) {\n if (parent === row) {\n return true;\n }\n parent = parent.parent;\n }\n return false;\n};\nvar rowsHaveSameParent = (rows, newParent) => {\n for (let i = 0, len = rows.length; i < len; ++i) {\n if (rows[i].parent !== newParent) {\n return false;\n }\n }\n return true;\n};\nvar getLeafSourceRowIndex = (row) => {\n const leaf = getLeafRow(row);\n return leaf !== void 0 ? leaf.sourceRowIndex : -1;\n};\nvar getLeafRow = (row) => row.data ? row : _firstLeaf(row.childrenAfterGroup);\nvar rowsDropChanged = (a, b) => a !== b && (!a || a.sameGrid !== b.sameGrid || a.allowed !== b.allowed || a.position !== b.position || a.target !== b.target || a.source !== b.source || a.newParent !== b.newParent || !_areEqual(a.rows, b.rows));\nvar compareRowIndex = ({ rowIndex: a }, { rowIndex: b }) => a !== null && b !== null ? a - b : 0;\nvar setRowNodesDragging = (rowNodes, dragging) => {\n for (let i = 0, len = rowNodes?.length || 0; i < len; ++i) {\n const rowNode = rowNodes[i];\n if (rowNode.dragging !== dragging) {\n rowNode.dragging = dragging;\n rowNode.dispatchRowEvent(\"draggingChanged\");\n }\n }\n};\nvar deltaDraggingTarget = (rowModel, rowsDrop) => {\n let bestTarget = null;\n let current = rowsDrop.target;\n if (current && rowsDrop.rows.indexOf(current) < 0) {\n return null;\n }\n const source = rowsDrop.source;\n if (!current || !source) {\n return null;\n }\n let count = current.rowIndex - source.rowIndex;\n const increment = count < 0 ? -1 : 1;\n count = rowsDrop.suppressMoveWhenRowDragging ? Math.abs(count) : 1;\n const rowsSet = new Set(rowsDrop.rows);\n do {\n const candidate = getPrevOrNext(rowModel, increment, current);\n if (!candidate) {\n break;\n }\n if (!rowsSet.has(candidate)) {\n bestTarget = candidate;\n --count;\n }\n current = candidate;\n } while (count > 0);\n return bestTarget;\n};\n\n// packages/ag-grid-community/src/dragAndDrop/rowDragService.ts\nvar RowDragService = class extends BeanStub {\n constructor() {\n super(...arguments);\n this.beanName = \"rowDragSvc\";\n }\n setupRowDrag(element, ctrl) {\n const rowDragFeature = ctrl.createManagedBean(new RowDragFeature(element));\n const dragAndDrop = this.beans.dragAndDrop;\n dragAndDrop.addDropTarget(rowDragFeature);\n ctrl.addDestroyFunc(() => dragAndDrop.removeDropTarget(rowDragFeature));\n this.rowDragFeature = rowDragFeature;\n }\n createRowDragComp(cellValueFn, rowNode, column, customGui, dragStartPixels, alwaysVisible) {\n return new RowDragComp(cellValueFn, rowNode, column, customGui, dragStartPixels, alwaysVisible);\n }\n createRowDragCompForRow(rowNode, element) {\n if (_isCellSelectionEnabled(this.gos)) {\n return void 0;\n }\n const translate = this.getLocaleTextFunc();\n return this.createRowDragComp(\n () => `1 ${translate(\"rowDragRow\", \"row\")}`,\n rowNode,\n void 0,\n element,\n void 0,\n true\n );\n }\n createRowDragCompForCell(rowNode, column, cellValueFn, element, dragStartPixels, alwaysVisible) {\n const gos = this.gos;\n if (gos.get(\"rowDragManaged\")) {\n if (!_isClientSideRowModel(gos) || gos.get(\"pagination\")) {\n return void 0;\n }\n }\n const rowDragComp = this.createRowDragComp(\n cellValueFn,\n rowNode,\n column,\n element,\n dragStartPixels,\n alwaysVisible\n );\n return rowDragComp;\n }\n};\n\n// packages/ag-grid-community/src/dragAndDrop/rowDropHighlightService.ts\nvar RowDropHighlightService = class extends BeanStub {\n constructor() {\n super(...arguments);\n this.beanName = \"rowDropHighlightSvc\";\n this.uiLevel = 0;\n this.dragging = false;\n this.row = null;\n this.position = \"none\";\n }\n postConstruct() {\n this.addManagedEventListeners({\n modelUpdated: this.onModelUpdated.bind(this)\n });\n }\n onModelUpdated() {\n const row = this.row;\n const oldDragging = this.dragging;\n if (!row || row?.rowIndex === null || this.position === \"none\") {\n this.clear();\n } else {\n this.set(row, this.position);\n }\n this.dragging = oldDragging;\n }\n destroy() {\n this.clear();\n super.destroy();\n }\n clear() {\n const last = this.row;\n this.dragging = false;\n if (last) {\n this.uiLevel = 0;\n this.position = \"none\";\n this.row = null;\n last.dispatchRowEvent(\"rowHighlightChanged\");\n }\n }\n set(row, dropIndicatorPosition) {\n const nodeChanged = row !== this.row;\n const uiLevel = row.uiLevel;\n const highlightChanged = dropIndicatorPosition !== this.position;\n const uiLevelChanged = uiLevel !== this.uiLevel;\n this.dragging = false;\n if (nodeChanged || highlightChanged || uiLevelChanged) {\n if (nodeChanged) {\n this.clear();\n }\n this.uiLevel = uiLevel;\n this.position = dropIndicatorPosition;\n this.row = row;\n row.dispatchRowEvent(\"rowHighlightChanged\");\n }\n }\n fromDrag(draggingEvent) {\n const rowsDrop = draggingEvent?.dropTarget;\n if (rowsDrop) {\n const { highlight, target, position } = rowsDrop;\n if (highlight && target && position !== \"none\") {\n this.set(target, position);\n this.dragging = true;\n return;\n }\n }\n if (this.dragging) {\n this.clear();\n }\n }\n};\n\n// packages/ag-grid-community/src/dragAndDrop/dragModule.ts\nvar DragModule = {\n moduleName: \"Drag\",\n version: VERSION,\n beans: [DragService]\n};\nvar DragAndDropModule = {\n moduleName: \"DragAndDrop\",\n version: VERSION,\n dynamicBeans: {\n dndSourceComp: DndSourceComp\n },\n icons: {\n // drag handle used to pick up draggable rows\n rowDrag: \"grip\"\n }\n};\nvar SharedDragAndDropModule = {\n moduleName: \"SharedDragAndDrop\",\n version: VERSION,\n beans: [DragAndDropService],\n dependsOn: [DragModule],\n userComponents: {\n agDragAndDropImage: DragAndDropImageComponent2\n },\n icons: {\n // shown on drag and drop image component icon while dragging column to the side of the grid to pin\n columnMovePin: \"pin\",\n // shown on drag and drop image component icon while dragging over part of the page that is not a drop zone\n columnMoveHide: \"eye-slash\",\n // shown on drag and drop image component icon while dragging columns to reorder\n columnMoveMove: \"arrows\",\n // animating icon shown when dragging a column to the right of the grid causes horizontal scrolling\n columnMoveLeft: \"left\",\n // animating icon shown when dragging a column to the left of the grid causes horizontal scrolling\n columnMoveRight: \"right\",\n // shown on drag and drop image component icon while dragging over Row Groups drop zone\n columnMoveGroup: \"group\",\n // shown on drag and drop image component icon while dragging over Values drop zone\n columnMoveValue: \"aggregation\",\n // shown on drag and drop image component icon while dragging over pivot drop zone\n columnMovePivot: \"pivot\",\n // shown on drag and drop image component icon while dragging over drop zone that doesn't support it, e.g.\n // string column over aggregation drop zone\n dropNotAllowed: \"not-allowed\",\n // drag handle used to pick up draggable rows\n rowDrag: \"grip\"\n }\n};\nvar RowDragModule = {\n moduleName: \"RowDrag\",\n version: VERSION,\n beans: [RowDropHighlightService, RowDragService],\n apiFunctions: {\n addRowDropZone,\n removeRowDropZone,\n getRowDropZoneParams,\n getRowDropPositionIndicator,\n setRowDropPositionIndicator\n },\n dependsOn: [SharedDragAndDropModule]\n};\nvar HorizontalResizeModule = {\n moduleName: \"HorizontalResize\",\n version: VERSION,\n beans: [HorizontalResizeService],\n dependsOn: [DragModule]\n};\n\n// packages/ag-grid-community/src/columnMove/column-moving.css-GENERATED.ts\nvar columnMovingCSS = (\n /*css*/\n `:where(.ag-ltr) :where(.ag-column-moving){.ag-cell,.ag-header-cell,.ag-spanned-cell-wrapper{transition:left .2s}.ag-header-group-cell{transition:left .2s,width .2s}}:where(.ag-rtl) :where(.ag-column-moving){.ag-cell,.ag-header-cell,.ag-spanned-cell-wrapper{transition:right .2s}.ag-header-group-cell{transition:right .2s,width .2s}}`\n);\n\n// packages/ag-grid-community/src/columnMove/columnAnimationService.ts\nvar ColumnAnimationService = class extends BeanStub {\n constructor() {\n super(...arguments);\n this.beanName = \"colAnimation\";\n this.executeNextFuncs = [];\n this.executeLaterFuncs = [];\n this.active = false;\n // activeNext starts with active but it is reset earlier after the nextFuncs are cleared\n // to prevent calls made to executeNextVMTurn from queuing functions after executeNextFuncs has already been flushed,\n this.activeNext = false;\n this.suppressAnimation = false;\n this.animationThreadCount = 0;\n }\n postConstruct() {\n this.beans.ctrlsSvc.whenReady(this, (p) => this.gridBodyCtrl = p.gridBodyCtrl);\n }\n isActive() {\n return this.active && !this.suppressAnimation;\n }\n setSuppressAnimation(suppress) {\n this.suppressAnimation = suppress;\n }\n start() {\n if (this.active) {\n return;\n }\n const { gos } = this;\n if (gos.get(\"suppressColumnMoveAnimation\")) {\n return;\n }\n if (gos.get(\"enableRtl\")) {\n return;\n }\n this.ensureAnimationCssClassPresent();\n this.active = true;\n this.activeNext = true;\n }\n finish() {\n if (!this.active) {\n return;\n }\n this.flush(\n () => this.activeNext = false,\n () => this.active = false\n );\n }\n executeNextVMTurn(func) {\n if (this.activeNext) {\n this.executeNextFuncs.push(func);\n } else {\n func();\n }\n }\n executeLaterVMTurn(func) {\n if (this.active) {\n this.executeLaterFuncs.push(func);\n } else {\n func();\n }\n }\n ensureAnimationCssClassPresent() {\n this.animationThreadCount++;\n const animationThreadCountCopy = this.animationThreadCount;\n const { gridBodyCtrl } = this;\n gridBodyCtrl.setColumnMovingCss(true);\n this.executeLaterFuncs.push(() => {\n if (this.animationThreadCount === animationThreadCountCopy) {\n gridBodyCtrl.setColumnMovingCss(false);\n }\n });\n }\n flush(callbackNext, callbackLater) {\n const { executeNextFuncs, executeLaterFuncs } = this;\n if (executeNextFuncs.length === 0 && executeLaterFuncs.length === 0) {\n callbackNext();\n callbackLater();\n return;\n }\n const runFuncs = (queue) => {\n while (queue.length) {\n const func = queue.pop();\n if (func) {\n func();\n }\n }\n };\n this.beans.frameworkOverrides.wrapIncoming(() => {\n window.setTimeout(() => {\n callbackNext();\n runFuncs(executeNextFuncs);\n }, 0);\n window.setTimeout(() => {\n callbackLater();\n runFuncs(executeLaterFuncs);\n }, 200);\n });\n }\n};\n\n// packages/ag-grid-community/src/columnMove/columnMoveApi.ts\nfunction moveColumnByIndex(beans, fromIndex, toIndex) {\n beans.colMoves?.moveColumnByIndex(fromIndex, toIndex, \"api\");\n}\nfunction moveColumns(beans, columnsToMoveKeys, toIndex) {\n beans.colMoves?.moveColumns(columnsToMoveKeys, toIndex, \"api\");\n}\n\n// packages/ag-grid-community/src/columnMove/columnDrag/bodyDropPivotTarget.ts\nvar BodyDropPivotTarget = class extends BeanStub {\n constructor(pinned) {\n super();\n this.pinned = pinned;\n this.columnsToAggregate = [];\n this.columnsToGroup = [];\n this.columnsToPivot = [];\n }\n /** Callback for when drag enters */\n onDragEnter(draggingEvent) {\n this.clearColumnsList();\n if (this.gos.get(\"functionsReadOnly\")) {\n return;\n }\n const dragColumns = draggingEvent.dragItem.columns;\n if (!dragColumns) {\n return;\n }\n for (const column of dragColumns) {\n if (!column.isPrimary()) {\n continue;\n }\n if (column.isAnyFunctionActive()) {\n continue;\n }\n if (column.isAllowValue()) {\n this.columnsToAggregate.push(column);\n } else if (column.isAllowRowGroup()) {\n this.columnsToGroup.push(column);\n } else if (column.isAllowPivot()) {\n this.columnsToPivot.push(column);\n }\n }\n }\n getIconName() {\n const totalColumns = this.columnsToAggregate.length + this.columnsToGroup.length + this.columnsToPivot.length;\n if (totalColumns > 0) {\n return this.pinned ? \"pinned\" : \"move\";\n }\n return null;\n }\n /** Callback for when drag leaves */\n // eslint-disable-next-line @typescript-eslint/no-unused-vars\n onDragLeave(draggingEvent) {\n this.clearColumnsList();\n }\n clearColumnsList() {\n this.columnsToAggregate.length = 0;\n this.columnsToGroup.length = 0;\n this.columnsToPivot.length = 0;\n }\n /** Callback for when dragging */\n // eslint-disable-next-line @typescript-eslint/no-unused-vars\n onDragging(draggingEvent) {\n }\n /** Callback for when drag stops */\n // eslint-disable-next-line @typescript-eslint/no-unused-vars\n onDragStop(draggingEvent) {\n const { valueColsSvc, rowGroupColsSvc, pivotColsSvc } = this.beans;\n if (this.columnsToAggregate.length > 0) {\n valueColsSvc?.addColumns(this.columnsToAggregate, \"toolPanelDragAndDrop\");\n }\n if (this.columnsToGroup.length > 0) {\n rowGroupColsSvc?.addColumns(this.columnsToGroup, \"toolPanelDragAndDrop\");\n }\n if (this.columnsToPivot.length > 0) {\n pivotColsSvc?.addColumns(this.columnsToPivot, \"toolPanelDragAndDrop\");\n }\n }\n onDragCancel() {\n this.clearColumnsList();\n }\n};\n\n// packages/ag-grid-community/src/columnMove/internalColumnMoveUtils.ts\nfunction sortColsLikeCols(colsList, cols) {\n if (!cols || cols.length <= 1) {\n return;\n }\n const notAllColsPresent = cols.filter((c) => colsList.indexOf(c) < 0).length > 0;\n if (notAllColsPresent) {\n return;\n }\n cols.sort((a, b) => {\n const indexA = colsList.indexOf(a);\n const indexB = colsList.indexOf(b);\n return indexA - indexB;\n });\n}\nfunction getColsToMove(allMovingColumns) {\n const newCols = [...allMovingColumns];\n for (const col of allMovingColumns) {\n let movingGroup = null;\n let parent = col.getParent();\n while (parent != null && parent.getDisplayedLeafColumns().length === 1) {\n movingGroup = parent;\n parent = parent.getParent();\n }\n if (movingGroup != null) {\n const isMarryChildren = !!movingGroup.getColGroupDef()?.marryChildren;\n const columnsToMove = isMarryChildren ? (\n // when marry children is true, we also have to move hidden\n // columns within the group, so grab them from the `providedColumnGroup`\n movingGroup.getProvidedColumnGroup().getLeafColumns()\n ) : movingGroup.getLeafColumns();\n for (const newCol of columnsToMove) {\n if (!newCols.includes(newCol)) {\n newCols.push(newCol);\n }\n }\n }\n }\n return newCols;\n}\nfunction getLowestFragMove(validMoves, allMovingColumnsOrdered, colMoves, visibleCols) {\n const displayedCols = visibleCols.allCols;\n let lowestFragMove = null;\n let targetOrder = null;\n for (let i = 0; i < validMoves.length; i++) {\n const move = validMoves[i];\n const order = colMoves.getProposedColumnOrder(allMovingColumnsOrdered, move);\n if (!colMoves.doesOrderPassRules(order)) {\n continue;\n }\n const displayedOrder = order.filter((col) => displayedCols.includes(col));\n if (targetOrder === null) {\n targetOrder = displayedOrder;\n } else if (!_areEqual(displayedOrder, targetOrder)) {\n break;\n }\n const fragCount = groupFragCount(order);\n if (lowestFragMove === null || fragCount < lowestFragMove.fragCount) {\n lowestFragMove = { move, fragCount };\n }\n }\n return lowestFragMove;\n}\nfunction getBestColumnMoveIndexFromXPosition(params) {\n const { isFromHeader, fromLeft, xPosition, fromEnter, fakeEvent, pinned, gos, colModel, colMoves, visibleCols } = params;\n let { allMovingColumns } = params;\n if (isFromHeader) {\n allMovingColumns = getColsToMove(allMovingColumns);\n }\n const allMovingColumnsOrdered = allMovingColumns.slice();\n sortColsLikeCols(colModel.getCols(), allMovingColumnsOrdered);\n const validMoves = calculateValidMoves({\n movingCols: allMovingColumnsOrdered,\n draggingRight: fromLeft,\n xPosition,\n pinned,\n gos,\n colModel,\n visibleCols\n });\n const oldIndex = calculateOldIndex(allMovingColumnsOrdered, colModel);\n if (validMoves.length === 0) {\n return;\n }\n const firstValidMove = validMoves[0];\n const constrainDirection = oldIndex !== null && (isFromHeader || !fromEnter);\n if (constrainDirection && !fakeEvent) {\n if (!fromLeft && firstValidMove >= oldIndex) {\n return;\n }\n if (fromLeft && firstValidMove <= oldIndex) {\n return;\n }\n }\n const lowestFragMove = getLowestFragMove(validMoves, allMovingColumnsOrdered, colMoves, visibleCols);\n if (!lowestFragMove) {\n return;\n }\n const toIndex = lowestFragMove.move;\n if (toIndex > colModel.getCols().length - allMovingColumnsOrdered.length) {\n return;\n }\n return { columns: allMovingColumnsOrdered, toIndex };\n}\nfunction attemptMoveColumns(params) {\n const { columns, toIndex } = getBestColumnMoveIndexFromXPosition(params) || {};\n const { finished, colMoves } = params;\n if (!columns || toIndex == null) {\n return null;\n }\n colMoves.moveColumns(columns, toIndex, \"uiColumnMoved\", finished);\n return finished ? null : { columns, toIndex };\n}\nfunction calculateOldIndex(movingCols, colModel) {\n const gridCols = colModel.getCols();\n const indexes = movingCols.map((col) => gridCols.indexOf(col)).sort((a, b) => a - b);\n const firstIndex = indexes[0];\n const lastIndex = _last(indexes);\n const spread = lastIndex - firstIndex;\n const gapsExist = spread !== indexes.length - 1;\n return gapsExist ? null : firstIndex;\n}\nfunction groupFragCount(columns) {\n function parents(col) {\n const result = [];\n let parent = col.getOriginalParent();\n while (parent != null) {\n result.push(parent);\n parent = parent.getOriginalParent();\n }\n return result;\n }\n let count = 0;\n for (let i = 0; i < columns.length - 1; i++) {\n let a = parents(columns[i]);\n let b = parents(columns[i + 1]);\n [a, b] = a.length > b.length ? [a, b] : [b, a];\n for (const parent of a) {\n if (b.indexOf(parent) === -1) {\n count++;\n }\n }\n }\n return count;\n}\nfunction getDisplayedColumns(visibleCols, type) {\n switch (type) {\n case \"left\":\n return visibleCols.leftCols;\n case \"right\":\n return visibleCols.rightCols;\n default:\n return visibleCols.centerCols;\n }\n}\nfunction calculateValidMoves(params) {\n const { movingCols, draggingRight, xPosition, pinned, gos, colModel, visibleCols } = params;\n const isMoveBlocked = gos.get(\"suppressMovableColumns\") || movingCols.some((col) => col.getColDef().suppressMovable);\n if (isMoveBlocked) {\n return [];\n }\n const allDisplayedCols = getDisplayedColumns(visibleCols, pinned);\n const allGridCols = colModel.getCols();\n const movingDisplayedCols = allDisplayedCols.filter((col) => movingCols.includes(col));\n const otherDisplayedCols = allDisplayedCols.filter((col) => !movingCols.includes(col));\n const otherGridCols = allGridCols.filter((col) => !movingCols.includes(col));\n let displayIndex = 0;\n let availableWidth = xPosition;\n if (draggingRight) {\n let widthOfMovingDisplayedCols = 0;\n for (const col of movingDisplayedCols) {\n widthOfMovingDisplayedCols += col.getActualWidth();\n }\n availableWidth -= widthOfMovingDisplayedCols;\n }\n if (availableWidth > 0) {\n for (let i = 0; i < otherDisplayedCols.length; i++) {\n const col = otherDisplayedCols[i];\n availableWidth -= col.getActualWidth();\n if (availableWidth < 0) {\n break;\n }\n displayIndex++;\n }\n if (draggingRight) {\n displayIndex++;\n }\n }\n let firstValidMove;\n if (displayIndex > 0) {\n const leftColumn = otherDisplayedCols[displayIndex - 1];\n firstValidMove = otherGridCols.indexOf(leftColumn) + 1;\n } else {\n firstValidMove = otherGridCols.indexOf(otherDisplayedCols[0]);\n if (firstValidMove === -1) {\n firstValidMove = 0;\n }\n }\n const validMoves = [firstValidMove];\n const numberComparator = (a, b) => a - b;\n if (draggingRight) {\n let pointer = firstValidMove + 1;\n const lastIndex = allGridCols.length - 1;\n while (pointer <= lastIndex) {\n validMoves.push(pointer);\n pointer++;\n }\n validMoves.sort(numberComparator);\n } else {\n let pointer = firstValidMove;\n const lastIndex = allGridCols.length - 1;\n let displacedCol = allGridCols[pointer];\n while (pointer <= lastIndex && allDisplayedCols.indexOf(displacedCol) < 0) {\n pointer++;\n validMoves.push(pointer);\n displacedCol = allGridCols[pointer];\n }\n pointer = firstValidMove - 1;\n const firstDisplayIndex = 0;\n while (pointer >= firstDisplayIndex) {\n validMoves.push(pointer);\n pointer--;\n }\n validMoves.sort(numberComparator).reverse();\n }\n return validMoves;\n}\nfunction normaliseX(params) {\n const { pinned, fromKeyboard, gos, ctrlsSvc, useHeaderRow, skipScrollPadding } = params;\n let eViewport = ctrlsSvc.getHeaderRowContainerCtrl(pinned)?.eViewport;\n let { x } = params;\n if (!eViewport) {\n return 0;\n }\n if (fromKeyboard) {\n x -= eViewport.getBoundingClientRect().left;\n }\n if (gos.get(\"enableRtl\")) {\n if (useHeaderRow) {\n eViewport = eViewport.querySelector(\".ag-header-row\");\n }\n x = eViewport.clientWidth - x;\n }\n if (pinned == null && !skipScrollPadding) {\n x += ctrlsSvc.get(\"center\").getCenterViewportScrollLeft();\n }\n return x;\n}\nfunction setColumnsMoving(columns, isMoving) {\n for (const column of columns) {\n column.moving = isMoving;\n column.dispatchColEvent(\"movingChanged\", \"uiColumnMoved\");\n }\n}\n\n// packages/ag-grid-community/src/columnMove/columnDrag/moveColumnFeature.ts\nvar MOVE_FAIL_THRESHOLD = 7;\nvar SCROLL_MOVE_WIDTH = 100;\nvar SCROLL_GAP_NEEDED_BEFORE_MOVE = SCROLL_MOVE_WIDTH / 2;\nvar SCROLL_ACCELERATION_RATE = 5;\nvar SCROLL_TIME_INTERVAL = 100;\nvar MoveColumnFeature = class extends BeanStub {\n constructor(pinned) {\n super();\n this.pinned = pinned;\n this.needToMoveLeft = false;\n this.needToMoveRight = false;\n this.lastMovedInfo = null;\n this.isCenterContainer = !_exists(pinned);\n }\n postConstruct() {\n this.beans.ctrlsSvc.whenReady(this, (p) => {\n this.gridBodyCon = p.gridBodyCtrl;\n });\n }\n getIconName() {\n const { pinned, lastDraggingEvent } = this;\n const { dragItem } = lastDraggingEvent || {};\n const columns = dragItem?.columns ?? [];\n for (const col of columns) {\n const colPinned = col.getPinned();\n if (col.getColDef().lockPinned) {\n if (colPinned == pinned) {\n return \"move\";\n }\n continue;\n }\n const initialPinnedState = dragItem?.containerType;\n if (initialPinnedState === pinned || !pinned) {\n return \"move\";\n }\n if (pinned && (!colPinned || initialPinnedState !== pinned)) {\n return \"pinned\";\n }\n }\n return \"notAllowed\";\n }\n onDragEnter(draggingEvent) {\n const dragItem = draggingEvent.dragItem;\n const columns = dragItem.columns;\n const dragCameFromToolPanel = draggingEvent.dragSource.type === 0 /* ToolPanel */;\n if (dragCameFromToolPanel) {\n this.setColumnsVisible(columns, true, \"uiColumnDragged\");\n } else {\n const visibleState = dragItem.visibleState;\n const visibleColumns = (columns || []).filter(\n (column) => visibleState[column.getId()] && !column.isVisible()\n );\n this.setColumnsVisible(visibleColumns, true, \"uiColumnDragged\");\n }\n if (!this.gos.get(\"suppressMoveWhenColumnDragging\")) {\n this.attemptToPinColumns(columns, this.pinned);\n }\n this.onDragging(draggingEvent, true, true);\n }\n onDragging(draggingEvent = this.lastDraggingEvent, fromEnter = false, fakeEvent = false, finished = false) {\n const { gos, ctrlsSvc } = this.beans;\n const isSuppressMoveWhenDragging = gos.get(\"suppressMoveWhenColumnDragging\");\n if (finished && !isSuppressMoveWhenDragging) {\n this.finishColumnMoving();\n return;\n }\n this.lastDraggingEvent = draggingEvent;\n if (!draggingEvent || !finished && _missing(draggingEvent.hDirection)) {\n return;\n }\n const mouseX = normaliseX({\n x: draggingEvent.x,\n pinned: this.pinned,\n gos,\n ctrlsSvc\n });\n if (!fromEnter) {\n this.checkCenterForScrolling(mouseX);\n }\n if (isSuppressMoveWhenDragging) {\n this.handleColumnDragWhileSuppressingMovement(draggingEvent, fromEnter, fakeEvent, mouseX, finished);\n } else {\n this.handleColumnDragWhileAllowingMovement(draggingEvent, fromEnter, fakeEvent, mouseX, finished);\n }\n }\n onDragLeave() {\n this.ensureIntervalCleared();\n this.clearHighlighted();\n this.updateDragItemContainerType();\n this.lastMovedInfo = null;\n }\n onDragStop() {\n this.onDragging(this.lastDraggingEvent, false, true, true);\n this.ensureIntervalCleared();\n this.lastMovedInfo = null;\n }\n onDragCancel() {\n this.clearHighlighted();\n this.ensureIntervalCleared();\n this.lastMovedInfo = null;\n }\n setColumnsVisible(columns, visible, source) {\n if (!columns?.length) {\n return;\n }\n const allowedCols = columns.filter((c) => !c.getColDef().lockVisible);\n if (!allowedCols.length) {\n return;\n }\n this.beans.colModel.setColsVisible(allowedCols, visible, source);\n }\n finishColumnMoving() {\n this.clearHighlighted();\n const lastMovedInfo = this.lastMovedInfo;\n if (!lastMovedInfo) {\n return;\n }\n const { columns, toIndex } = lastMovedInfo;\n this.beans.colMoves.moveColumns(columns, toIndex, \"uiColumnMoved\", true);\n }\n updateDragItemContainerType() {\n const { lastDraggingEvent } = this;\n if (this.gos.get(\"suppressMoveWhenColumnDragging\") || !lastDraggingEvent) {\n return;\n }\n const dragItem = lastDraggingEvent.dragItem;\n if (!dragItem) {\n return;\n }\n dragItem.containerType = this.pinned;\n }\n handleColumnDragWhileSuppressingMovement(draggingEvent, fromEnter, fakeEvent, mouseX, finished) {\n const allMovingColumns = this.getAllMovingColumns(draggingEvent, true);\n if (finished) {\n const isAttemptingToPin = this.isAttemptingToPin(allMovingColumns);\n if (isAttemptingToPin) {\n this.attemptToPinColumns(allMovingColumns, void 0, true);\n }\n const { fromLeft, xPosition } = this.getNormalisedXPositionInfo(allMovingColumns, isAttemptingToPin) || {};\n if (fromLeft == null || xPosition == null) {\n this.finishColumnMoving();\n return;\n }\n this.moveColumnsAfterHighlight({\n allMovingColumns,\n xPosition,\n fromEnter,\n fakeEvent,\n fromLeft\n });\n } else {\n if (!this.beans.dragAndDrop.isDropZoneWithinThisGrid(draggingEvent)) {\n return;\n }\n this.highlightHoveredColumn(allMovingColumns, mouseX);\n }\n }\n handleColumnDragWhileAllowingMovement(draggingEvent, fromEnter, fakeEvent, mouseX, finished) {\n const allMovingColumns = this.getAllMovingColumns(draggingEvent);\n const fromLeft = this.normaliseDirection(draggingEvent.hDirection) === \"right\";\n const isFromHeader = draggingEvent.dragSource.type === 1 /* HeaderCell */;\n const params = this.getMoveColumnParams({\n allMovingColumns,\n isFromHeader,\n xPosition: mouseX,\n fromLeft,\n fromEnter,\n fakeEvent\n });\n const lastMovedInfo = attemptMoveColumns({ ...params, finished });\n if (lastMovedInfo) {\n this.lastMovedInfo = lastMovedInfo;\n }\n }\n getAllMovingColumns(draggingEvent, useSplit = false) {\n const dragItem = draggingEvent.dragSource.getDragItem();\n let columns = null;\n if (useSplit) {\n columns = dragItem.columnsInSplit;\n if (!columns) {\n columns = dragItem.columns;\n }\n } else {\n columns = dragItem.columns;\n }\n const conditionCallback = (col) => col.getColDef().lockPinned ? col.getPinned() == this.pinned : true;\n if (!columns) {\n return [];\n }\n return columns.filter(conditionCallback);\n }\n getMoveColumnParams(params) {\n const { allMovingColumns, isFromHeader, xPosition, fromLeft, fromEnter, fakeEvent } = params;\n const { gos, colModel, colMoves, visibleCols } = this.beans;\n return {\n allMovingColumns,\n isFromHeader,\n fromLeft,\n xPosition,\n pinned: this.pinned,\n fromEnter,\n fakeEvent,\n gos,\n colModel,\n colMoves,\n visibleCols\n };\n }\n highlightHoveredColumn(movingColumns, mouseX) {\n const { gos, colModel } = this.beans;\n const isRtl = gos.get(\"enableRtl\");\n const consideredColumns = colModel.getCols().filter((col) => col.isVisible() && col.getPinned() === this.pinned);\n let start = null;\n let width = null;\n let targetColumn = null;\n for (const col of consideredColumns) {\n width = col.getActualWidth();\n start = this.getNormalisedColumnLeft(col, 0, isRtl);\n if (start != null) {\n const end = start + width;\n if (start <= mouseX && end >= mouseX) {\n targetColumn = col;\n break;\n }\n }\n start = null;\n width = null;\n }\n if (!targetColumn) {\n for (let i = consideredColumns.length - 1; i >= 0; i--) {\n const currentColumn = consideredColumns[i];\n const parent = consideredColumns[i].getParent();\n if (!parent) {\n targetColumn = currentColumn;\n break;\n }\n const leafDisplayedCols = parent?.getDisplayedLeafColumns();\n if (leafDisplayedCols.length) {\n targetColumn = _last(leafDisplayedCols);\n break;\n }\n }\n if (!targetColumn) {\n return;\n }\n start = this.getNormalisedColumnLeft(targetColumn, 0, isRtl);\n width = targetColumn.getActualWidth();\n } else if (movingColumns.indexOf(targetColumn) !== -1) {\n targetColumn = null;\n }\n if (this.lastHighlightedColumn?.column !== targetColumn) {\n this.clearHighlighted();\n }\n if (targetColumn == null || start == null || width == null) {\n return;\n }\n let position;\n if (mouseX - start < width / 2 !== isRtl) {\n position = 0 /* Before */;\n } else {\n position = 1 /* After */;\n }\n setColumnHighlighted(targetColumn, position);\n this.lastHighlightedColumn = { column: targetColumn, position };\n }\n getNormalisedXPositionInfo(allMovingColumns, isAttemptingToPin) {\n const { gos, visibleCols } = this.beans;\n const isRtl = gos.get(\"enableRtl\");\n const { firstMovingCol, column, position } = this.getColumnMoveAndTargetInfo(\n allMovingColumns,\n isAttemptingToPin,\n isRtl\n );\n if (!firstMovingCol || !column || position == null) {\n return;\n }\n const visibleColumns = visibleCols.allCols;\n const movingColIndex = visibleColumns.indexOf(firstMovingCol);\n const targetIndex = visibleColumns.indexOf(column);\n const isBefore = position === 0 /* Before */ !== isRtl;\n const fromLeft = movingColIndex < targetIndex || movingColIndex === targetIndex && !isBefore;\n let diff = 0;\n if (isBefore) {\n if (fromLeft) {\n diff -= 1;\n }\n } else if (!fromLeft) {\n diff += 1;\n }\n if (targetIndex + diff === movingColIndex) {\n return;\n }\n const targetColumn = visibleColumns[targetIndex + diff];\n if (!targetColumn) {\n return;\n }\n const xPosition = this.getNormalisedColumnLeft(targetColumn, 20, isRtl);\n return { fromLeft, xPosition };\n }\n getColumnMoveAndTargetInfo(allMovingColumns, isAttemptingToPin, isRtl) {\n const lastHighlightedColumn = this.lastHighlightedColumn || {};\n const { firstMovingCol, lastMovingCol } = findFirstAndLastMovingColumns(allMovingColumns);\n if (!firstMovingCol || !lastMovingCol || lastHighlightedColumn.column || !isAttemptingToPin) {\n return {\n firstMovingCol,\n ...lastHighlightedColumn\n };\n }\n const pinned = this.getPinDirection();\n const isLeft = pinned === \"left\";\n return {\n firstMovingCol,\n position: isLeft ? 1 /* After */ : 0 /* Before */,\n column: isLeft !== isRtl ? firstMovingCol : lastMovingCol\n };\n }\n normaliseDirection(hDirection) {\n if (this.gos.get(\"enableRtl\")) {\n switch (hDirection) {\n case \"left\":\n return \"right\";\n case \"right\":\n return \"left\";\n }\n }\n return hDirection;\n }\n getNormalisedColumnLeft(col, padding, isRtl) {\n const { gos, ctrlsSvc } = this.beans;\n const left = col.getLeft();\n if (left == null) {\n return null;\n }\n const width = col.getActualWidth();\n return normaliseX({\n x: isRtl ? left + width - padding : left + padding,\n pinned: col.getPinned(),\n useHeaderRow: isRtl,\n skipScrollPadding: true,\n gos,\n ctrlsSvc\n });\n }\n isAttemptingToPin(columns) {\n const isMovingHorizontally = this.needToMoveLeft || this.needToMoveRight;\n const isFailedMoreThanThreshold = this.failedMoveAttempts > MOVE_FAIL_THRESHOLD;\n return isMovingHorizontally && isFailedMoreThanThreshold || columns.some((col) => col.getPinned() !== this.pinned);\n }\n moveColumnsAfterHighlight(params) {\n const { allMovingColumns, xPosition, fromEnter, fakeEvent, fromLeft } = params;\n const columnMoveParams = this.getMoveColumnParams({\n allMovingColumns,\n isFromHeader: true,\n xPosition,\n fromLeft,\n fromEnter,\n fakeEvent\n });\n const { columns, toIndex } = getBestColumnMoveIndexFromXPosition(columnMoveParams) || {};\n if (columns && toIndex != null) {\n this.lastMovedInfo = {\n columns,\n toIndex\n };\n }\n this.finishColumnMoving();\n }\n clearHighlighted() {\n const { lastHighlightedColumn } = this;\n if (!lastHighlightedColumn) {\n return;\n }\n setColumnHighlighted(lastHighlightedColumn.column, null);\n this.lastHighlightedColumn = null;\n }\n checkCenterForScrolling(xAdjustedForScroll) {\n if (!this.isCenterContainer) {\n return;\n }\n const centerCtrl = this.beans.ctrlsSvc.get(\"center\");\n const firstVisiblePixel = centerCtrl.getCenterViewportScrollLeft();\n const lastVisiblePixel = firstVisiblePixel + centerCtrl.getCenterWidth();\n let needToMoveRight;\n let needToMoveLeft;\n if (this.gos.get(\"enableRtl\")) {\n needToMoveRight = xAdjustedForScroll < firstVisiblePixel + SCROLL_GAP_NEEDED_BEFORE_MOVE;\n needToMoveLeft = xAdjustedForScroll > lastVisiblePixel - SCROLL_GAP_NEEDED_BEFORE_MOVE;\n } else {\n needToMoveLeft = xAdjustedForScroll < firstVisiblePixel + SCROLL_GAP_NEEDED_BEFORE_MOVE;\n needToMoveRight = xAdjustedForScroll > lastVisiblePixel - SCROLL_GAP_NEEDED_BEFORE_MOVE;\n }\n this.needToMoveRight = needToMoveRight;\n this.needToMoveLeft = needToMoveLeft;\n if (needToMoveLeft || needToMoveRight) {\n this.ensureIntervalStarted();\n } else {\n this.ensureIntervalCleared();\n }\n }\n ensureIntervalStarted() {\n if (this.movingIntervalId) {\n return;\n }\n this.intervalCount = 0;\n this.failedMoveAttempts = 0;\n this.movingIntervalId = window.setInterval(this.moveInterval.bind(this), SCROLL_TIME_INTERVAL);\n this.beans.dragAndDrop.setDragImageCompIcon(this.needToMoveLeft ? \"left\" : \"right\", true);\n }\n ensureIntervalCleared() {\n if (!this.movingIntervalId) {\n return;\n }\n window.clearInterval(this.movingIntervalId);\n this.movingIntervalId = null;\n this.failedMoveAttempts = 0;\n this.beans.dragAndDrop.setDragImageCompIcon(this.getIconName());\n }\n moveInterval() {\n let pixelsToMove;\n this.intervalCount++;\n pixelsToMove = 10 + this.intervalCount * SCROLL_ACCELERATION_RATE;\n if (pixelsToMove > SCROLL_MOVE_WIDTH) {\n pixelsToMove = SCROLL_MOVE_WIDTH;\n }\n let pixelsMoved = null;\n const scrollFeature = this.gridBodyCon.scrollFeature;\n if (this.needToMoveLeft) {\n pixelsMoved = scrollFeature.scrollHorizontally(-pixelsToMove);\n } else if (this.needToMoveRight) {\n pixelsMoved = scrollFeature.scrollHorizontally(pixelsToMove);\n }\n if (pixelsMoved !== 0) {\n this.onDragging(this.lastDraggingEvent);\n this.failedMoveAttempts = 0;\n } else {\n this.failedMoveAttempts++;\n const { pinnedCols, dragAndDrop, gos } = this.beans;\n if (this.failedMoveAttempts <= MOVE_FAIL_THRESHOLD + 1 || !pinnedCols) {\n return;\n }\n dragAndDrop.setDragImageCompIcon(\"pinned\");\n if (!gos.get(\"suppressMoveWhenColumnDragging\")) {\n const columns = this.lastDraggingEvent?.dragItem.columns;\n this.attemptToPinColumns(columns, void 0, true);\n }\n }\n }\n getPinDirection() {\n if (this.needToMoveLeft || this.pinned === \"left\") {\n return \"left\";\n }\n if (this.needToMoveRight || this.pinned === \"right\") {\n return \"right\";\n }\n }\n attemptToPinColumns(columns, pinned, fromMoving = false) {\n const allowedCols = (columns || []).filter((c) => !c.getColDef().lockPinned);\n if (!allowedCols.length) {\n return 0;\n }\n if (fromMoving) {\n pinned = this.getPinDirection();\n }\n const { pinnedCols, dragAndDrop } = this.beans;\n pinnedCols?.setColsPinned(allowedCols, pinned, \"uiColumnDragged\");\n if (fromMoving) {\n dragAndDrop.nudge();\n }\n return allowedCols.length;\n }\n destroy() {\n super.destroy();\n this.lastDraggingEvent = null;\n this.clearHighlighted();\n this.lastMovedInfo = null;\n }\n};\nfunction setColumnHighlighted(column, highlighted) {\n if (column.highlighted === highlighted) {\n return;\n }\n column.highlighted = highlighted;\n column.dispatchColEvent(\"headerHighlightChanged\", \"uiColumnMoved\");\n}\nfunction findFirstAndLastMovingColumns(allMovingColumns) {\n const moveLen = allMovingColumns.length;\n let firstMovingCol;\n let lastMovingCol;\n for (let i = 0; i < moveLen; i++) {\n if (!firstMovingCol) {\n const leftCol = allMovingColumns[i];\n if (leftCol.getLeft() != null) {\n firstMovingCol = leftCol;\n }\n }\n if (!lastMovingCol) {\n const rightCol = allMovingColumns[moveLen - 1 - i];\n if (rightCol.getLeft() != null) {\n lastMovingCol = rightCol;\n }\n }\n if (firstMovingCol && lastMovingCol) {\n break;\n }\n }\n return { firstMovingCol, lastMovingCol };\n}\n\n// packages/ag-grid-community/src/columnMove/columnDrag/bodyDropTarget.ts\nvar BodyDropTarget = class extends BeanStub {\n constructor(pinned, eContainer) {\n super();\n this.pinned = pinned;\n this.eContainer = eContainer;\n }\n postConstruct() {\n const { ctrlsSvc, dragAndDrop } = this.beans;\n const pinned = this.pinned;\n ctrlsSvc.whenReady(this, (p) => {\n let eSecondaryContainers;\n const eBodyViewport = p.gridBodyCtrl.eBodyViewport;\n switch (pinned) {\n case \"left\":\n eSecondaryContainers = [\n [eBodyViewport, p.left.eContainer],\n [p.bottomLeft.eContainer],\n [p.topLeft.eContainer]\n ];\n break;\n case \"right\":\n eSecondaryContainers = [\n [eBodyViewport, p.right.eContainer],\n [p.bottomRight.eContainer],\n [p.topRight.eContainer]\n ];\n break;\n default:\n eSecondaryContainers = [\n [eBodyViewport, p.center.eViewport],\n [p.bottomCenter.eViewport],\n [p.topCenter.eViewport]\n ];\n break;\n }\n this.eSecondaryContainers = eSecondaryContainers;\n });\n this.moveColumnFeature = this.createManagedBean(new MoveColumnFeature(pinned));\n this.bodyDropPivotTarget = this.createManagedBean(new BodyDropPivotTarget(pinned));\n dragAndDrop.addDropTarget(this);\n this.addDestroyFunc(() => dragAndDrop.removeDropTarget(this));\n }\n isInterestedIn(type) {\n return type === 1 /* HeaderCell */ || type === 0 /* ToolPanel */ && this.gos.get(\"allowDragFromColumnsToolPanel\");\n }\n getSecondaryContainers() {\n return this.eSecondaryContainers;\n }\n getContainer() {\n return this.eContainer;\n }\n getIconName() {\n return this.currentDropListener.getIconName();\n }\n // we want to use the bodyPivotTarget if the user is dragging columns in from the toolPanel\n // and we are in pivot mode, as it has to logic to set pivot/value/group on the columns when\n // dropped into the grid's body.\n isDropColumnInPivotMode(draggingEvent) {\n return this.beans.colModel.isPivotMode() && draggingEvent.dragSource.type === 0 /* ToolPanel */;\n }\n onDragEnter(draggingEvent) {\n this.currentDropListener = this.isDropColumnInPivotMode(draggingEvent) ? this.bodyDropPivotTarget : this.moveColumnFeature;\n this.currentDropListener.onDragEnter(draggingEvent);\n }\n onDragLeave(params) {\n this.currentDropListener.onDragLeave(params);\n }\n onDragging(params) {\n this.currentDropListener.onDragging(params);\n }\n onDragStop(params) {\n this.currentDropListener.onDragStop(params);\n }\n onDragCancel() {\n this.currentDropListener.onDragCancel();\n }\n};\n\n// packages/ag-grid-community/src/columnMove/columnMoveService.ts\nvar ColumnMoveService = class extends BeanStub {\n constructor() {\n super(...arguments);\n this.beanName = \"colMoves\";\n }\n moveColumnByIndex(fromIndex, toIndex, source) {\n const gridColumns = this.beans.colModel.getCols();\n if (!gridColumns) {\n return;\n }\n const column = gridColumns[fromIndex];\n this.moveColumns([column], toIndex, source);\n }\n moveColumns(columnsToMoveKeys, toIndex, source, finished = true) {\n const { colModel, colAnimation, visibleCols, eventSvc } = this.beans;\n const gridColumns = colModel.getCols();\n if (!gridColumns) {\n return;\n }\n if (toIndex > gridColumns.length - columnsToMoveKeys.length) {\n _warn(30, { toIndex });\n return;\n }\n colAnimation?.start();\n const movedColumns = colModel.getColsForKeys(columnsToMoveKeys);\n if (this.doesMovePassRules(movedColumns, toIndex)) {\n _moveInArray(colModel.getCols(), movedColumns, toIndex);\n visibleCols.refresh(source);\n eventSvc.dispatchEvent({\n type: \"columnMoved\",\n columns: movedColumns,\n column: movedColumns.length === 1 ? movedColumns[0] : null,\n toIndex,\n finished,\n source\n });\n }\n colAnimation?.finish();\n }\n doesMovePassRules(columnsToMove, toIndex) {\n const proposedColumnOrder = this.getProposedColumnOrder(columnsToMove, toIndex);\n return this.doesOrderPassRules(proposedColumnOrder);\n }\n doesOrderPassRules(gridOrder) {\n const { colModel, gos } = this.beans;\n if (!doesMovePassMarryChildren(gridOrder, colModel.getColTree())) {\n return false;\n }\n const doesMovePassLockedPositions = (proposedColumnOrder) => {\n const lockPositionToPlacement = (position) => {\n if (!position) {\n return 0 /* NONE */;\n }\n return position === \"left\" || position === true ? -1 /* LEFT */ : 1 /* RIGHT */;\n };\n const isRtl = gos.get(\"enableRtl\");\n let lastPlacement = isRtl ? 1 /* RIGHT */ : -1 /* LEFT */;\n let rulePassed = true;\n for (const col of proposedColumnOrder) {\n const placement = lockPositionToPlacement(col.getColDef().lockPosition);\n if (isRtl) {\n if (placement > lastPlacement) {\n rulePassed = false;\n }\n } else if (placement < lastPlacement) {\n rulePassed = false;\n }\n lastPlacement = placement;\n }\n return rulePassed;\n };\n if (!doesMovePassLockedPositions(gridOrder)) {\n return false;\n }\n return true;\n }\n getProposedColumnOrder(columnsToMove, toIndex) {\n const gridColumns = this.beans.colModel.getCols();\n const proposedColumnOrder = gridColumns.slice();\n _moveInArray(proposedColumnOrder, columnsToMove, toIndex);\n return proposedColumnOrder;\n }\n createBodyDropTarget(pinned, dropContainer) {\n return new BodyDropTarget(pinned, dropContainer);\n }\n moveHeader(hDirection, eGui, column, pinned, bean) {\n const { ctrlsSvc, gos, colModel, visibleCols, focusSvc } = this.beans;\n const rect = eGui.getBoundingClientRect();\n const left = rect.left;\n const isGroup = isColumnGroup(column);\n const width = isGroup ? rect.width : column.getActualWidth();\n const isLeft = hDirection === \"left\" !== gos.get(\"enableRtl\");\n const xPosition = normaliseX({\n x: isLeft ? left - 20 : left + width + 20,\n pinned,\n fromKeyboard: true,\n gos,\n ctrlsSvc\n });\n const headerPosition = focusSvc.focusedHeader;\n attemptMoveColumns({\n allMovingColumns: isGroup ? column.getLeafColumns() : [column],\n isFromHeader: true,\n fromLeft: hDirection === \"right\",\n xPosition,\n pinned,\n fromEnter: false,\n fakeEvent: false,\n gos,\n colModel,\n colMoves: this,\n visibleCols,\n finished: true\n });\n let targetColumn;\n if (isGroup) {\n const displayedLeafColumns = column.getDisplayedLeafColumns();\n targetColumn = isLeft ? displayedLeafColumns[0] : _last(displayedLeafColumns);\n } else {\n targetColumn = column;\n }\n ctrlsSvc.getScrollFeature().ensureColumnVisible(targetColumn, \"auto\");\n if ((!bean.isAlive() || gos.get(\"ensureDomOrder\")) && headerPosition) {\n let restoreFocusColumn;\n if (isGroup) {\n const groupId = column.getGroupId();\n const leafCols = column.getLeafColumns();\n if (!leafCols.length) {\n return;\n }\n const parent = leafCols[0].getParent();\n if (!parent) {\n return;\n }\n restoreFocusColumn = findGroupWidthId(parent, groupId);\n } else {\n restoreFocusColumn = column;\n }\n if (restoreFocusColumn) {\n focusSvc.focusHeaderPosition({\n headerPosition: {\n ...headerPosition,\n column: restoreFocusColumn\n }\n });\n }\n }\n }\n setDragSourceForHeader(eSource, column, displayName) {\n const { gos, colModel, dragAndDrop, visibleCols } = this.beans;\n let hideColumnOnExit = !gos.get(\"suppressDragLeaveHidesColumns\");\n const isGroup = isColumnGroup(column);\n const columns = isGroup ? column.getProvidedColumnGroup().getLeafColumns() : [column];\n const getDragItem = isGroup ? () => createDragItemForGroup(column, visibleCols.allCols) : () => createDragItem(column);\n const dragSource = {\n type: 1 /* HeaderCell */,\n eElement: eSource,\n getDefaultIconName: () => hideColumnOnExit ? \"hide\" : \"notAllowed\",\n getDragItem,\n dragItemName: displayName,\n onDragStarted: () => {\n hideColumnOnExit = !gos.get(\"suppressDragLeaveHidesColumns\");\n setColumnsMoving(columns, true);\n },\n onDragStopped: () => setColumnsMoving(columns, false),\n onDragCancelled: () => setColumnsMoving(columns, false),\n onGridEnter: (dragItem) => {\n if (hideColumnOnExit) {\n const { columns: columns2 = [], visibleState } = dragItem ?? {};\n const hasVisibleState = isGroup ? (col) => !visibleState || visibleState[col.getColId()] : () => true;\n const unlockedColumns = columns2.filter(\n (col) => !col.getColDef().lockVisible && hasVisibleState(col)\n );\n colModel.setColsVisible(unlockedColumns, true, \"uiColumnMoved\");\n }\n },\n onGridExit: (dragItem) => {\n if (hideColumnOnExit) {\n const unlockedColumns = dragItem?.columns?.filter((col) => !col.getColDef().lockVisible) || [];\n colModel.setColsVisible(unlockedColumns, false, \"uiColumnMoved\");\n }\n }\n };\n dragAndDrop.addDragSource(dragSource, true);\n return dragSource;\n }\n};\nfunction findGroupWidthId(columnGroup, id) {\n while (columnGroup) {\n if (columnGroup.getGroupId() === id) {\n return columnGroup;\n }\n columnGroup = columnGroup.getParent();\n }\n return void 0;\n}\nfunction createDragItem(column) {\n const visibleState = {};\n visibleState[column.getId()] = column.isVisible();\n return {\n columns: [column],\n visibleState,\n containerType: column.pinned\n };\n}\nfunction createDragItemForGroup(columnGroup, allCols) {\n const allColumnsOriginalOrder = columnGroup.getProvidedColumnGroup().getLeafColumns();\n const visibleState = {};\n for (const column of allColumnsOriginalOrder) {\n visibleState[column.getId()] = column.isVisible();\n }\n const allColumnsCurrentOrder = [];\n for (const column of allCols) {\n if (allColumnsOriginalOrder.indexOf(column) >= 0) {\n allColumnsCurrentOrder.push(column);\n _removeFromArray(allColumnsOriginalOrder, column);\n }\n }\n for (const column of allColumnsOriginalOrder) {\n allColumnsCurrentOrder.push(column);\n }\n const columnsInSplit = [];\n const columnGroupColumns = columnGroup.getLeafColumns();\n for (const col of allColumnsCurrentOrder) {\n if (columnGroupColumns.indexOf(col) !== -1) {\n columnsInSplit.push(col);\n }\n }\n return {\n columns: allColumnsCurrentOrder,\n columnsInSplit,\n visibleState,\n containerType: columnsInSplit[0]?.pinned\n };\n}\n\n// packages/ag-grid-community/src/columnMove/columnMoveModule.ts\nvar ColumnMoveModule = {\n moduleName: \"ColumnMove\",\n version: VERSION,\n beans: [ColumnMoveService, ColumnAnimationService],\n apiFunctions: {\n moveColumnByIndex,\n moveColumns\n },\n dependsOn: [SharedDragAndDropModule],\n css: [columnMovingCSS]\n};\n\n// packages/ag-grid-community/src/rendering/autoWidthCalculator.ts\nvar AutoWidthCalculator = class extends BeanStub {\n constructor() {\n super(...arguments);\n this.beanName = \"autoWidthCalc\";\n }\n postConstruct() {\n this.beans.ctrlsSvc.whenReady(this, (p) => {\n this.centerRowContainerCtrl = p.center;\n });\n }\n // this is the trick: we create a dummy container and clone all the cells\n // into the dummy, then check the dummy's width. then destroy the dummy\n // as we don't need it any more.\n // drawback: only the cells visible on the screen are considered\n getPreferredWidthForColumn(column, skipHeader) {\n const eHeaderCell = this.getHeaderCellForColumn(column);\n if (!eHeaderCell) {\n return -1;\n }\n const elements = this.beans.rowRenderer.getAllCellsNotSpanningForColumn(column);\n if (!skipHeader) {\n elements.push(eHeaderCell);\n }\n return this.getPreferredWidthForElements(elements);\n }\n getPreferredWidthForColumnGroup(columnGroup) {\n const eHeaderCell = this.getHeaderCellForColumn(columnGroup);\n if (!eHeaderCell) {\n return -1;\n }\n return this.getPreferredWidthForElements([eHeaderCell]);\n }\n getPreferredWidthForElements(elements, extraPadding) {\n const eDummyContainer = document.createElement(\"form\");\n eDummyContainer.style.position = \"fixed\";\n const eBodyContainer = this.centerRowContainerCtrl.eContainer;\n for (const el of elements) {\n this.cloneItemIntoDummy(el, eDummyContainer);\n }\n eBodyContainer.appendChild(eDummyContainer);\n const dummyContainerWidth = eDummyContainer.offsetWidth;\n eDummyContainer.remove();\n extraPadding = extraPadding ?? this.gos.get(\"autoSizePadding\");\n return dummyContainerWidth + extraPadding;\n }\n getHeaderCellForColumn(column) {\n let element = null;\n for (const container of this.beans.ctrlsSvc.getHeaderRowContainerCtrls()) {\n const res = container.getHtmlElementForColumnHeader(column);\n if (res != null) {\n element = res;\n }\n }\n return element;\n }\n cloneItemIntoDummy(eCell, eDummyContainer) {\n const eCellClone = eCell.cloneNode(true);\n eCellClone.style.width = \"\";\n eCellClone.style.position = \"static\";\n eCellClone.style.left = \"\";\n const eCloneParent = document.createElement(\"div\");\n const eCloneParentClassList = eCloneParent.classList;\n const isHeader = [\"ag-header-cell\", \"ag-header-group-cell\"].some((cls) => eCellClone.classList.contains(cls));\n if (isHeader) {\n eCloneParentClassList.add(\"ag-header\", \"ag-header-row\");\n eCloneParent.style.position = \"static\";\n } else {\n eCloneParentClassList.add(\"ag-row\");\n }\n let pointer = eCell.parentElement;\n while (pointer) {\n const isRow = [\"ag-header-row\", \"ag-row\"].some((cls) => pointer.classList.contains(cls));\n if (isRow) {\n for (let i = 0; i < pointer.classList.length; i++) {\n const item = pointer.classList[i];\n if (item != \"ag-row-position-absolute\") {\n eCloneParentClassList.add(item);\n }\n }\n break;\n }\n pointer = pointer.parentElement;\n }\n eCloneParent.appendChild(eCellClone);\n eDummyContainer.appendChild(eCloneParent);\n }\n};\n\n// packages/ag-grid-community/src/rendering/autoWidthModule.ts\nvar AutoWidthModule = {\n moduleName: \"AutoWidth\",\n version: VERSION,\n beans: [AutoWidthCalculator]\n};\n\n// packages/ag-grid-community/src/columnResize/columnResizeApi.ts\nfunction setColumnWidths(beans, columnWidths, finished = true, source = \"api\") {\n beans.colResize?.setColumnWidths(columnWidths, false, finished, source);\n}\n\n// packages/ag-grid-community/src/columnResize/groupResizeFeature.ts\nvar GroupResizeFeature = class extends BeanStub {\n constructor(comp, eResize, pinned, columnGroup) {\n super();\n this.comp = comp;\n this.eResize = eResize;\n this.pinned = pinned;\n this.columnGroup = columnGroup;\n }\n postConstruct() {\n if (!this.columnGroup.isResizable()) {\n this.comp.setResizableDisplayed(false);\n return;\n }\n const { horizontalResizeSvc, gos, colAutosize } = this.beans;\n const finishedWithResizeFunc = horizontalResizeSvc.addResizeBar({\n eResizeBar: this.eResize,\n onResizeStart: this.onResizeStart.bind(this),\n onResizing: this.onResizing.bind(this, false),\n onResizeEnd: this.onResizing.bind(this, true)\n });\n this.addDestroyFunc(finishedWithResizeFunc);\n if (!gos.get(\"suppressAutoSize\") && colAutosize) {\n this.addDestroyFunc(\n colAutosize.addColumnGroupResize(\n this.eResize,\n this.columnGroup,\n () => this.resizeLeafColumnsToFit(\"uiColumnResized\")\n )\n );\n }\n }\n onResizeStart(shiftKey) {\n const {\n columnsToResize,\n resizeStartWidth,\n resizeRatios,\n groupAfterColumns,\n groupAfterStartWidth,\n groupAfterRatios\n } = this.getInitialValues(shiftKey);\n this.resizeCols = columnsToResize;\n this.resizeStartWidth = resizeStartWidth;\n this.resizeRatios = resizeRatios;\n this.resizeTakeFromCols = groupAfterColumns;\n this.resizeTakeFromStartWidth = groupAfterStartWidth;\n this.resizeTakeFromRatios = groupAfterRatios;\n this.toggleColumnResizing(true);\n }\n onResizing(finished, resizeAmount, source = \"uiColumnResized\") {\n const resizeAmountNormalised = this.normaliseDragChange(resizeAmount);\n const width = this.resizeStartWidth + resizeAmountNormalised;\n this.resizeColumnsFromLocalValues(width, source, finished);\n }\n getInitialValues(shiftKey) {\n const getInitialSizeOfColumns = (columns) => columns.reduce((totalWidth, column) => totalWidth + column.getActualWidth(), 0);\n const getSizeRatiosOfColumns = (columns, initialSizeOfColumns) => columns.map((column) => column.getActualWidth() / initialSizeOfColumns);\n const columnsToResize = this.getColumnsToResize();\n const resizeStartWidth = getInitialSizeOfColumns(columnsToResize);\n const resizeRatios = getSizeRatiosOfColumns(columnsToResize, resizeStartWidth);\n const columnSizeAndRatios = {\n columnsToResize,\n resizeStartWidth,\n resizeRatios\n };\n let groupAfter = null;\n if (shiftKey) {\n groupAfter = this.beans.colGroupSvc?.getGroupAtDirection(this.columnGroup, \"After\") ?? null;\n }\n if (groupAfter) {\n const takeFromLeafCols = groupAfter.getDisplayedLeafColumns();\n const groupAfterColumns = columnSizeAndRatios.groupAfterColumns = takeFromLeafCols.filter(\n (col) => col.isResizable()\n );\n const groupAfterStartWidth = columnSizeAndRatios.groupAfterStartWidth = getInitialSizeOfColumns(groupAfterColumns);\n columnSizeAndRatios.groupAfterRatios = getSizeRatiosOfColumns(groupAfterColumns, groupAfterStartWidth);\n } else {\n columnSizeAndRatios.groupAfterColumns = void 0;\n columnSizeAndRatios.groupAfterStartWidth = void 0;\n columnSizeAndRatios.groupAfterRatios = void 0;\n }\n return columnSizeAndRatios;\n }\n resizeLeafColumnsToFit(source) {\n const preferredSize = this.beans.autoWidthCalc.getPreferredWidthForColumnGroup(this.columnGroup);\n const initialValues = this.getInitialValues();\n if (preferredSize > initialValues.resizeStartWidth) {\n this.resizeColumns(initialValues, preferredSize, source, true);\n }\n }\n resizeColumnsFromLocalValues(totalWidth, source, finished = true) {\n if (!this.resizeCols || !this.resizeRatios) {\n return;\n }\n const initialValues = {\n columnsToResize: this.resizeCols,\n resizeStartWidth: this.resizeStartWidth,\n resizeRatios: this.resizeRatios,\n groupAfterColumns: this.resizeTakeFromCols,\n groupAfterStartWidth: this.resizeTakeFromStartWidth,\n groupAfterRatios: this.resizeTakeFromRatios\n };\n this.resizeColumns(initialValues, totalWidth, source, finished);\n }\n resizeColumns(initialValues, totalWidth, source, finished = true) {\n const {\n columnsToResize,\n resizeStartWidth,\n resizeRatios,\n groupAfterColumns,\n groupAfterStartWidth,\n groupAfterRatios\n } = initialValues;\n const resizeSets = [];\n resizeSets.push({\n columns: columnsToResize,\n ratios: resizeRatios,\n width: totalWidth\n });\n if (groupAfterColumns) {\n const diff = totalWidth - resizeStartWidth;\n resizeSets.push({\n columns: groupAfterColumns,\n ratios: groupAfterRatios,\n width: groupAfterStartWidth - diff\n });\n }\n this.beans.colResize?.resizeColumnSets({\n resizeSets,\n finished,\n source\n });\n if (finished) {\n this.toggleColumnResizing(false);\n }\n }\n toggleColumnResizing(resizing) {\n this.comp.toggleCss(\"ag-column-resizing\", resizing);\n }\n getColumnsToResize() {\n const leafCols = this.columnGroup.getDisplayedLeafColumns();\n return leafCols.filter((col) => col.isResizable());\n }\n // optionally inverts the drag, depending on pinned and RTL\n // note - this method is duplicated in RenderedHeaderCell - should refactor out?\n normaliseDragChange(dragChange) {\n let result = dragChange;\n if (this.gos.get(\"enableRtl\")) {\n if (this.pinned !== \"left\") {\n result *= -1;\n }\n } else if (this.pinned === \"right\") {\n result *= -1;\n }\n return result;\n }\n destroy() {\n super.destroy();\n this.resizeCols = void 0;\n this.resizeRatios = void 0;\n this.resizeTakeFromCols = void 0;\n this.resizeTakeFromRatios = void 0;\n }\n};\n\n// packages/ag-grid-community/src/columnResize/resizeFeature.ts\nvar ResizeFeature = class extends BeanStub {\n constructor(pinned, column, eResize, comp, ctrl) {\n super();\n this.pinned = pinned;\n this.column = column;\n this.eResize = eResize;\n this.comp = comp;\n this.ctrl = ctrl;\n }\n postConstruct() {\n const destroyResizeFuncs = [];\n let canResize;\n let canAutosize;\n const addResize = () => {\n _setDisplayed(this.eResize, canResize);\n if (!canResize) {\n return;\n }\n const { horizontalResizeSvc, colAutosize } = this.beans;\n const finishedWithResizeFunc = horizontalResizeSvc.addResizeBar({\n eResizeBar: this.eResize,\n onResizeStart: this.onResizeStart.bind(this),\n onResizing: this.onResizing.bind(this, false),\n onResizeEnd: this.onResizing.bind(this, true)\n });\n destroyResizeFuncs.push(finishedWithResizeFunc);\n if (canAutosize && colAutosize) {\n destroyResizeFuncs.push(colAutosize.addColumnAutosizeListeners(this.eResize, this.column));\n }\n };\n const removeResize = () => {\n for (const f of destroyResizeFuncs) {\n f();\n }\n destroyResizeFuncs.length = 0;\n };\n const refresh = () => {\n const resize = this.column.isResizable();\n const autoSize = !this.gos.get(\"suppressAutoSize\") && !this.column.getColDef().suppressAutoSize;\n const propertyChange = resize !== canResize || autoSize !== canAutosize;\n if (propertyChange) {\n canResize = resize;\n canAutosize = autoSize;\n removeResize();\n addResize();\n }\n };\n refresh();\n this.addDestroyFunc(removeResize);\n this.ctrl.setRefreshFunction(\"resize\", refresh);\n }\n onResizing(finished, resizeAmount) {\n const { column: key, lastResizeAmount, resizeStartWidth, beans } = this;\n const resizeAmountNormalised = this.normaliseResizeAmount(resizeAmount);\n const newWidth = resizeStartWidth + resizeAmountNormalised;\n const columnWidths = [{ key, newWidth }];\n const { pinnedCols, ctrlsSvc, colResize } = beans;\n if (this.column.getPinned()) {\n const leftWidth = pinnedCols?.leftWidth ?? 0;\n const rightWidth = pinnedCols?.rightWidth ?? 0;\n const bodyWidth = _getInnerWidth(ctrlsSvc.getGridBodyCtrl().eBodyViewport) - 50;\n if (leftWidth + rightWidth + (resizeAmountNormalised - lastResizeAmount) > bodyWidth) {\n return;\n }\n }\n this.lastResizeAmount = resizeAmountNormalised;\n colResize?.setColumnWidths(columnWidths, this.resizeWithShiftKey, finished, \"uiColumnResized\");\n if (finished) {\n this.toggleColumnResizing(false);\n }\n }\n onResizeStart(shiftKey) {\n this.resizeStartWidth = this.column.getActualWidth();\n this.lastResizeAmount = 0;\n this.resizeWithShiftKey = shiftKey;\n this.toggleColumnResizing(true);\n }\n toggleColumnResizing(resizing) {\n this.column.resizing = resizing;\n this.comp.toggleCss(\"ag-column-resizing\", resizing);\n }\n // optionally inverts the drag, depending on pinned and RTL\n // note - this method is duplicated in RenderedHeaderGroupCell - should refactor out?\n normaliseResizeAmount(dragChange) {\n let result = dragChange;\n const notPinningLeft = this.pinned !== \"left\";\n const pinningRight = this.pinned === \"right\";\n if (this.gos.get(\"enableRtl\")) {\n if (notPinningLeft) {\n result *= -1;\n }\n } else if (pinningRight) {\n result *= -1;\n }\n return result;\n }\n};\n\n// packages/ag-grid-community/src/columnResize/columnResizeService.ts\nvar ColumnResizeService = class extends BeanStub {\n constructor() {\n super(...arguments);\n this.beanName = \"colResize\";\n }\n setColumnWidths(columnWidths, shiftKey, finished, source) {\n const sets = [];\n const { colModel, gos, visibleCols } = this.beans;\n for (const columnWidth of columnWidths) {\n const col = colModel.getColDefCol(columnWidth.key) || colModel.getCol(columnWidth.key);\n if (!col) {\n continue;\n }\n sets.push({\n width: columnWidth.newWidth,\n ratios: [1],\n columns: [col]\n });\n const defaultIsShift = gos.get(\"colResizeDefault\") === \"shift\";\n if (defaultIsShift) {\n shiftKey = !shiftKey;\n }\n if (shiftKey) {\n const otherCol = visibleCols.getColAfter(col);\n if (!otherCol) {\n continue;\n }\n const widthDiff = col.getActualWidth() - columnWidth.newWidth;\n const otherColWidth = otherCol.getActualWidth() + widthDiff;\n sets.push({\n width: otherColWidth,\n ratios: [1],\n columns: [otherCol]\n });\n }\n }\n if (sets.length === 0) {\n return;\n }\n this.resizeColumnSets({\n resizeSets: sets,\n finished,\n source\n });\n }\n // method takes sets of columns and resizes them. either all sets will be resized, or nothing\n // be resized. this is used for example when user tries to resize a group and holds shift key,\n // then both the current group (grows), and the adjacent group (shrinks), will get resized,\n // so that's two sets for this method.\n resizeColumnSets(params) {\n const { resizeSets, finished, source } = params;\n const passMinMaxCheck = !resizeSets || resizeSets.every((columnResizeSet) => checkMinAndMaxWidthsForSet(columnResizeSet));\n if (!passMinMaxCheck) {\n if (finished) {\n const columns = resizeSets && resizeSets.length > 0 ? resizeSets[0].columns : null;\n dispatchColumnResizedEvent(this.eventSvc, columns, finished, source);\n }\n return;\n }\n const changedCols = [];\n const allResizedCols = [];\n for (const set of resizeSets) {\n const { width, columns, ratios } = set;\n const newWidths = {};\n const finishedCols = {};\n for (const col of columns) {\n allResizedCols.push(col);\n }\n let finishedColsGrew = true;\n let loopCount = 0;\n while (finishedColsGrew) {\n loopCount++;\n if (loopCount > 1e3) {\n _error(31);\n break;\n }\n finishedColsGrew = false;\n const subsetCols = [];\n let subsetRatioTotal = 0;\n let pixelsToDistribute = width;\n columns.forEach((col, index) => {\n const thisColFinished = finishedCols[col.getId()];\n if (thisColFinished) {\n pixelsToDistribute -= newWidths[col.getId()];\n } else {\n subsetCols.push(col);\n const ratioThisCol = ratios[index];\n subsetRatioTotal += ratioThisCol;\n }\n });\n const ratioScale = 1 / subsetRatioTotal;\n subsetCols.forEach((col, index) => {\n const lastCol = index === subsetCols.length - 1;\n let colNewWidth;\n if (lastCol) {\n colNewWidth = pixelsToDistribute;\n } else {\n colNewWidth = Math.round(ratios[index] * width * ratioScale);\n pixelsToDistribute -= colNewWidth;\n }\n const minWidth = col.getMinWidth();\n const maxWidth = col.getMaxWidth();\n if (colNewWidth < minWidth) {\n colNewWidth = minWidth;\n finishedCols[col.getId()] = true;\n finishedColsGrew = true;\n } else if (maxWidth > 0 && colNewWidth > maxWidth) {\n colNewWidth = maxWidth;\n finishedCols[col.getId()] = true;\n finishedColsGrew = true;\n }\n newWidths[col.getId()] = colNewWidth;\n });\n }\n for (const col of columns) {\n const newWidth = newWidths[col.getId()];\n const actualWidth = col.getActualWidth();\n if (actualWidth !== newWidth) {\n col.setActualWidth(newWidth, source);\n changedCols.push(col);\n }\n }\n }\n const atLeastOneColChanged = changedCols.length > 0;\n let flexedCols = [];\n if (atLeastOneColChanged) {\n const { colFlex, visibleCols, colViewport } = this.beans;\n flexedCols = colFlex?.refreshFlexedColumns({\n resizingCols: allResizedCols,\n skipSetLeft: true\n }) ?? [];\n visibleCols.setLeftValues(source);\n visibleCols.updateBodyWidths();\n colViewport.checkViewportColumns();\n }\n const colsForEvent = allResizedCols.concat(flexedCols);\n if (atLeastOneColChanged || finished) {\n dispatchColumnResizedEvent(this.eventSvc, colsForEvent, finished, source, flexedCols);\n }\n }\n resizeHeader(column, delta, shiftKey) {\n if (!column.isResizable()) {\n return;\n }\n const actualWidth = column.getActualWidth();\n const minWidth = column.getMinWidth();\n const maxWidth = column.getMaxWidth();\n const newWidth = Math.min(Math.max(actualWidth + delta, minWidth), maxWidth);\n this.setColumnWidths([{ key: column, newWidth }], shiftKey, true, \"uiColumnResized\");\n }\n createResizeFeature(pinned, column, eResize, comp, ctrl) {\n return new ResizeFeature(pinned, column, eResize, comp, ctrl);\n }\n createGroupResizeFeature(comp, eResize, pinned, columnGroup) {\n return new GroupResizeFeature(comp, eResize, pinned, columnGroup);\n }\n};\nfunction checkMinAndMaxWidthsForSet(columnResizeSet) {\n const { columns, width } = columnResizeSet;\n let minWidthAccumulated = 0;\n let maxWidthAccumulated = 0;\n let maxWidthActive = true;\n for (const col of columns) {\n const minWidth = col.getMinWidth();\n minWidthAccumulated += minWidth || 0;\n const maxWidth = col.getMaxWidth();\n if (maxWidth > 0) {\n maxWidthAccumulated += maxWidth;\n } else {\n maxWidthActive = false;\n }\n }\n const minWidthPasses = width >= minWidthAccumulated;\n const maxWidthPasses = !maxWidthActive || width <= maxWidthAccumulated;\n return minWidthPasses && maxWidthPasses;\n}\n\n// packages/ag-grid-community/src/columnResize/columnResizeModule.ts\nvar ColumnResizeModule = {\n moduleName: \"ColumnResize\",\n version: VERSION,\n beans: [ColumnResizeService],\n apiFunctions: {\n setColumnWidths\n },\n dependsOn: [HorizontalResizeModule, AutoWidthModule]\n};\n\n// packages/ag-grid-community/src/headerRendering/cells/columnGroup/groupWidthFeature.ts\nvar GroupWidthFeature = class extends BeanStub {\n constructor(comp, columnGroup) {\n super();\n // the children can change, we keep destroy functions related to listening to the children here\n this.removeChildListenersFuncs = [];\n this.columnGroup = columnGroup;\n this.comp = comp;\n }\n postConstruct() {\n this.addListenersToChildrenColumns();\n this.addManagedListeners(this.columnGroup, {\n displayedChildrenChanged: this.onDisplayedChildrenChanged.bind(this)\n });\n this.onWidthChanged();\n this.addDestroyFunc(this.removeListenersOnChildrenColumns.bind(this));\n }\n addListenersToChildrenColumns() {\n this.removeListenersOnChildrenColumns();\n const widthChangedListener = this.onWidthChanged.bind(this);\n for (const column of this.columnGroup.getLeafColumns()) {\n column.__addEventListener(\"widthChanged\", widthChangedListener);\n column.__addEventListener(\"visibleChanged\", widthChangedListener);\n this.removeChildListenersFuncs.push(() => {\n column.__removeEventListener(\"widthChanged\", widthChangedListener);\n column.__removeEventListener(\"visibleChanged\", widthChangedListener);\n });\n }\n }\n removeListenersOnChildrenColumns() {\n for (const func of this.removeChildListenersFuncs) {\n func();\n }\n this.removeChildListenersFuncs = [];\n }\n onDisplayedChildrenChanged() {\n this.addListenersToChildrenColumns();\n this.onWidthChanged();\n }\n onWidthChanged() {\n const columnWidth = this.columnGroup.getActualWidth();\n this.comp.setWidth(`${columnWidth}px`);\n this.comp.toggleCss(\"ag-hidden\", columnWidth === 0);\n }\n};\n\n// packages/ag-grid-community/src/headerRendering/cells/columnGroup/headerGroupCellCtrl.ts\nvar HeaderGroupCellCtrl = class extends AbstractHeaderCellCtrl {\n constructor() {\n super(...arguments);\n this.onSuppressColMoveChange = () => {\n if (!this.isAlive() || this.isSuppressMoving()) {\n this.removeDragSource();\n } else if (!this.dragSource) {\n this.setDragSource(this.eGui);\n }\n };\n }\n wireComp(comp, eGui, eResize, eHeaderCompWrapper, compBean) {\n const { column, beans } = this;\n const { context, colNames, colHover, rangeSvc, colResize } = beans;\n this.comp = comp;\n compBean = setupCompBean(this, context, compBean);\n this.setGui(eGui, compBean);\n this.displayName = colNames.getDisplayNameForColumnGroup(column, \"header\");\n this.refreshHeaderStyles();\n this.addClasses();\n this.setupMovingCss(compBean);\n this.setupExpandable(compBean);\n this.setupTooltip();\n this.setupAutoHeight({\n wrapperElement: eHeaderCompWrapper,\n compBean\n });\n this.setupUserComp();\n this.addHeaderMouseListeners(compBean);\n this.addManagedPropertyListener(\"groupHeaderHeight\", this.refreshMaxHeaderHeight.bind(this));\n this.refreshMaxHeaderHeight();\n const pinned = this.rowCtrl.pinned;\n const leafCols = column.getProvidedColumnGroup().getLeafColumns();\n colHover?.createHoverFeature(compBean, leafCols, eGui);\n rangeSvc?.createRangeHighlightFeature(compBean, column, comp);\n compBean.createManagedBean(new SetLeftFeature(column, eGui, beans));\n compBean.createManagedBean(new GroupWidthFeature(comp, column));\n if (colResize) {\n this.resizeFeature = compBean.createManagedBean(\n colResize.createGroupResizeFeature(comp, eResize, pinned, column)\n );\n } else {\n comp.setResizableDisplayed(false);\n }\n compBean.createManagedBean(\n new ManagedFocusFeature(eGui, {\n shouldStopEventPropagation: this.shouldStopEventPropagation.bind(this),\n onTabKeyDown: () => void 0,\n handleKeyDown: this.handleKeyDown.bind(this),\n onFocusIn: this.onFocusIn.bind(this)\n })\n );\n this.addHighlightListeners(compBean, leafCols);\n compBean.addManagedPropertyListener(\"suppressMovableColumns\", this.onSuppressColMoveChange);\n this.addResizeAndMoveKeyboardListeners(compBean);\n compBean.addDestroyFunc(() => this.clearComponent());\n }\n getHeaderClassParams() {\n const { column, beans } = this;\n const colDef = column.getDefinition();\n return _addGridCommonParams(beans.gos, {\n colDef,\n columnGroup: column,\n floatingFilter: false\n });\n }\n refreshMaxHeaderHeight() {\n const { gos, comp } = this;\n const groupHeaderHeight = gos.get(\"groupHeaderHeight\");\n if (groupHeaderHeight != null) {\n if (groupHeaderHeight === 0) {\n comp.setHeaderWrapperHidden(true);\n } else {\n comp.setHeaderWrapperMaxHeight(groupHeaderHeight);\n }\n } else {\n comp.setHeaderWrapperHidden(false);\n comp.setHeaderWrapperMaxHeight(null);\n }\n }\n addHighlightListeners(compBean, columns) {\n if (!this.beans.gos.get(\"suppressMoveWhenColumnDragging\")) {\n return;\n }\n for (const column of columns) {\n compBean.addManagedListeners(column, {\n headerHighlightChanged: this.onLeafColumnHighlightChanged.bind(this, column)\n });\n }\n }\n onLeafColumnHighlightChanged(column) {\n const displayedColumns = this.column.getDisplayedLeafColumns();\n const isFirst = displayedColumns[0] === column;\n const isLast = _last(displayedColumns) === column;\n if (!isFirst && !isLast) {\n return;\n }\n const highlighted = column.getHighlighted();\n const isColumnMoveAtThisLevel = !!this.rowCtrl.getHeaderCellCtrls().find((ctrl) => {\n return ctrl.column.isMoving();\n });\n let beforeOn = false;\n let afterOn = false;\n if (isColumnMoveAtThisLevel) {\n const isRtl = this.beans.gos.get(\"enableRtl\");\n const isHighlightAfter = highlighted === 1 /* After */;\n const isHighlightBefore = highlighted === 0 /* Before */;\n if (isFirst) {\n if (isRtl) {\n afterOn = isHighlightAfter;\n } else {\n beforeOn = isHighlightBefore;\n }\n }\n if (isLast) {\n if (isRtl) {\n beforeOn = isHighlightBefore;\n } else {\n afterOn = isHighlightAfter;\n }\n }\n }\n this.comp.toggleCss(\"ag-header-highlight-before\", beforeOn);\n this.comp.toggleCss(\"ag-header-highlight-after\", afterOn);\n }\n resizeHeader(delta, shiftKey) {\n const { resizeFeature } = this;\n if (!resizeFeature) {\n return;\n }\n const initialValues = resizeFeature.getInitialValues(shiftKey);\n resizeFeature.resizeColumns(initialValues, initialValues.resizeStartWidth + delta, \"uiColumnResized\", true);\n }\n resizeLeafColumnsToFit(source) {\n this.resizeFeature?.resizeLeafColumnsToFit(source);\n }\n setupUserComp() {\n const { colGroupSvc, userCompFactory, gos, enterpriseMenuFactory } = this.beans;\n const columnGroup = this.column;\n const providedColumnGroup = columnGroup.getProvidedColumnGroup();\n const params = _addGridCommonParams(gos, {\n displayName: this.displayName,\n columnGroup,\n setExpanded: (expanded) => {\n colGroupSvc.setColumnGroupOpened(providedColumnGroup, expanded, \"gridInitializing\");\n },\n setTooltip: (value, shouldDisplayTooltip) => {\n gos.assertModuleRegistered(\"Tooltip\", 3);\n this.setupTooltip(value, shouldDisplayTooltip);\n },\n showColumnMenu: (buttonElement, onClosedCallback) => enterpriseMenuFactory?.showMenuAfterButtonClick(\n providedColumnGroup,\n buttonElement,\n \"columnMenu\",\n onClosedCallback\n ),\n showColumnMenuAfterMouseClick: (mouseEvent, onClosedCallback) => enterpriseMenuFactory?.showMenuAfterMouseEvent(\n providedColumnGroup,\n mouseEvent,\n \"columnMenu\",\n onClosedCallback\n ),\n eGridHeader: this.eGui\n });\n const compDetails = _getHeaderGroupCompDetails(userCompFactory, params);\n if (compDetails) {\n this.comp.setUserCompDetails(compDetails);\n }\n }\n addHeaderMouseListeners(compBean) {\n const listener = (e) => this.handleMouseOverChange(e.type === \"mouseenter\");\n const clickListener = () => this.dispatchColumnMouseEvent(\"columnHeaderClicked\", this.column.getProvidedColumnGroup());\n const contextMenuListener = (event) => this.handleContextMenuMouseEvent(event, void 0, this.column.getProvidedColumnGroup());\n compBean.addManagedListeners(this.eGui, {\n mouseenter: listener,\n mouseleave: listener,\n click: clickListener,\n contextmenu: contextMenuListener\n });\n }\n handleMouseOverChange(isMouseOver) {\n this.eventSvc.dispatchEvent({\n type: isMouseOver ? \"columnHeaderMouseOver\" : \"columnHeaderMouseLeave\",\n column: this.column.getProvidedColumnGroup()\n });\n }\n setupTooltip(value, shouldDisplayTooltip) {\n this.tooltipFeature = this.beans.tooltipSvc?.setupHeaderGroupTooltip(\n this.tooltipFeature,\n this,\n value,\n shouldDisplayTooltip\n );\n }\n setupExpandable(compBean) {\n const providedColGroup = this.column.getProvidedColumnGroup();\n this.refreshExpanded();\n const listener = this.refreshExpanded.bind(this);\n compBean.addManagedListeners(providedColGroup, {\n expandedChanged: listener,\n expandableChanged: listener\n });\n }\n refreshExpanded() {\n const { column } = this;\n this.expandable = column.isExpandable();\n const expanded = column.isExpanded();\n if (this.expandable) {\n this.comp.setAriaExpanded(expanded ? \"true\" : \"false\");\n } else {\n this.comp.setAriaExpanded(void 0);\n }\n this.refreshHeaderStyles();\n }\n addClasses() {\n const { column } = this;\n const colGroupDef = column.getColGroupDef();\n const classes = _getHeaderClassesFromColDef(colGroupDef, this.gos, null, column);\n if (column.isPadding()) {\n classes.push(\"ag-header-group-cell-no-group\");\n const leafCols = column.getLeafColumns();\n if (leafCols.every((col) => col.isSpanHeaderHeight())) {\n classes.push(\"ag-header-span-height\");\n }\n } else {\n classes.push(\"ag-header-group-cell-with-group\");\n if (colGroupDef?.wrapHeaderText) {\n classes.push(\"ag-header-cell-wrap-text\");\n }\n }\n for (const c of classes) {\n this.comp.toggleCss(c, true);\n }\n }\n setupMovingCss(compBean) {\n const { column } = this;\n const providedColumnGroup = column.getProvidedColumnGroup();\n const leafColumns = providedColumnGroup.getLeafColumns();\n const listener = () => this.comp.toggleCss(\"ag-header-cell-moving\", column.isMoving());\n for (const col of leafColumns) {\n compBean.addManagedListeners(col, { movingChanged: listener });\n }\n listener();\n }\n onFocusIn(e) {\n if (!this.eGui.contains(e.relatedTarget)) {\n this.focusThis();\n }\n }\n handleKeyDown(e) {\n super.handleKeyDown(e);\n const wrapperHasFocus = this.getWrapperHasFocus();\n if (!this.expandable || !wrapperHasFocus) {\n return;\n }\n if (e.key === KeyCode.ENTER) {\n const column = this.column;\n const newExpandedValue = !column.isExpanded();\n this.beans.colGroupSvc.setColumnGroupOpened(\n column.getProvidedColumnGroup(),\n newExpandedValue,\n \"uiColumnExpanded\"\n );\n }\n }\n // unlike columns, this will only get called once, as we don't react on props on column groups\n // (we will always destroy and recreate this comp if something changes)\n setDragSource(eHeaderGroup) {\n if (!this.isAlive() || this.isSuppressMoving()) {\n return;\n }\n this.removeDragSource();\n if (!eHeaderGroup) {\n return;\n }\n this.dragSource = this.beans.colMoves?.setDragSourceForHeader(eHeaderGroup, this.column, this.displayName) ?? null;\n }\n isSuppressMoving() {\n return this.gos.get(\"suppressMovableColumns\") || this.column.getLeafColumns().some((column) => column.getColDef().suppressMovable || column.getColDef().lockPosition);\n }\n destroy() {\n this.tooltipFeature = this.destroyBean(this.tooltipFeature);\n super.destroy();\n }\n};\n\n// packages/ag-grid-community/src/columns/columnGroups/columnGroupApi.ts\nfunction setColumnGroupOpened(beans, group, newValue) {\n beans.colGroupSvc?.setColumnGroupOpened(group, newValue, \"api\");\n}\nfunction getColumnGroup(beans, name, instanceId) {\n return beans.colGroupSvc?.getColumnGroup(name, instanceId) ?? null;\n}\nfunction getProvidedColumnGroup(beans, name) {\n return beans.colGroupSvc?.getProvidedColGroup(name) ?? null;\n}\nfunction getDisplayNameForColumnGroup(beans, columnGroup, location) {\n return beans.colNames.getDisplayNameForColumnGroup(columnGroup, location) || \"\";\n}\nfunction getColumnGroupState(beans) {\n return beans.colGroupSvc?.getColumnGroupState() ?? [];\n}\nfunction setColumnGroupState(beans, stateItems) {\n beans.colGroupSvc?.setColumnGroupState(stateItems, \"api\");\n}\nfunction resetColumnGroupState(beans) {\n beans.colGroupSvc?.resetColumnGroupState(\"api\");\n}\nfunction getLeftDisplayedColumnGroups(beans) {\n return beans.visibleCols.treeLeft;\n}\nfunction getCenterDisplayedColumnGroups(beans) {\n return beans.visibleCols.treeCenter;\n}\nfunction getRightDisplayedColumnGroups(beans) {\n return beans.visibleCols.treeRight;\n}\nfunction getAllDisplayedColumnGroups(beans) {\n return beans.visibleCols.getAllTrees();\n}\n\n// packages/ag-grid-community/src/columns/visibleColsService.ts\nfunction _removeAllFromUnorderedArray(array, toRemove) {\n for (let i = 0; i < toRemove.length; i++) {\n const index = array.indexOf(toRemove[i]);\n if (index >= 0) {\n array[index] = array[array.length - 1];\n array.pop();\n }\n }\n}\nvar VisibleColsService = class extends BeanStub {\n constructor() {\n super(...arguments);\n this.beanName = \"visibleCols\";\n // for fast lookup, to see if a column or group is still visible\n this.colsAndGroupsMap = {};\n // leave level columns of the displayed trees\n this.leftCols = [];\n this.rightCols = [];\n this.centerCols = [];\n // all three lists above combined\n this.allCols = [];\n this.headerGroupRowCount = 0;\n // used by:\n // + angularGrid -> for setting body width\n // + rowController -> setting main row widths (when inserting and resizing)\n // need to cache this\n this.bodyWidth = 0;\n this.leftWidth = 0;\n this.rightWidth = 0;\n this.isBodyWidthDirty = true;\n }\n refresh(source, skipTreeBuild = false) {\n const { colFlex, colModel, colGroupSvc, colViewport, selectionColSvc } = this.beans;\n if (!skipTreeBuild) {\n this.buildTrees(colModel, colGroupSvc);\n }\n colGroupSvc?.updateOpenClosedVisibility();\n this.leftCols = pickDisplayedCols(this.treeLeft);\n this.centerCols = pickDisplayedCols(this.treeCenter);\n this.rightCols = pickDisplayedCols(this.treeRight);\n selectionColSvc?.refreshVisibility(this.leftCols, this.centerCols, this.rightCols);\n this.joinColsAriaOrder(colModel);\n this.joinCols();\n this.headerGroupRowCount = this.getHeaderRowCount();\n this.setLeftValues(source);\n this.autoHeightCols = this.allCols.filter((col) => col.isAutoHeight());\n colFlex?.refreshFlexedColumns();\n this.updateBodyWidths();\n this.setFirstRightAndLastLeftPinned(colModel, this.leftCols, this.rightCols, source);\n colViewport.checkViewportColumns(false);\n this.eventSvc.dispatchEvent({\n type: \"displayedColumnsChanged\",\n source\n });\n }\n getHeaderRowCount() {\n if (!this.gos.get(\"hidePaddedHeaderRows\")) {\n return this.beans.colModel.cols.treeDepth;\n }\n let headerGroupRowCount = 0;\n for (const col of this.allCols) {\n let parent = col.getParent();\n while (parent) {\n if (!parent.isPadding()) {\n const level = parent.getProvidedColumnGroup().getLevel() + 1;\n if (level > headerGroupRowCount) {\n headerGroupRowCount = level;\n }\n break;\n }\n parent = parent.getParent();\n }\n }\n return headerGroupRowCount;\n }\n // after setColumnWidth or updateGroupsAndPresentedCols\n updateBodyWidths() {\n const newBodyWidth = getWidthOfColsInList(this.centerCols);\n const newLeftWidth = getWidthOfColsInList(this.leftCols);\n const newRightWidth = getWidthOfColsInList(this.rightCols);\n this.isBodyWidthDirty = this.bodyWidth !== newBodyWidth;\n const atLeastOneChanged = this.bodyWidth !== newBodyWidth || this.leftWidth !== newLeftWidth || this.rightWidth !== newRightWidth;\n if (atLeastOneChanged) {\n this.bodyWidth = newBodyWidth;\n this.leftWidth = newLeftWidth;\n this.rightWidth = newRightWidth;\n this.eventSvc.dispatchEvent({\n type: \"columnContainerWidthChanged\"\n });\n this.eventSvc.dispatchEvent({\n type: \"displayedColumnsWidthChanged\"\n });\n }\n }\n // sets the left pixel position of each column\n setLeftValues(source) {\n this.setLeftValuesOfCols(source);\n this.setLeftValuesOfGroups();\n }\n setFirstRightAndLastLeftPinned(colModel, leftCols, rightCols, source) {\n let lastLeft;\n let firstRight;\n if (this.gos.get(\"enableRtl\")) {\n lastLeft = leftCols ? leftCols[0] : null;\n firstRight = rightCols ? _last(rightCols) : null;\n } else {\n lastLeft = leftCols ? _last(leftCols) : null;\n firstRight = rightCols ? rightCols[0] : null;\n }\n for (const col of colModel.getCols()) {\n col.setLastLeftPinned(col === lastLeft, source);\n col.setFirstRightPinned(col === firstRight, source);\n }\n }\n buildTrees(colModel, columnGroupSvc) {\n const cols = colModel.getColsToShow();\n const leftCols = cols.filter((col) => col.getPinned() == \"left\");\n const rightCols = cols.filter((col) => col.getPinned() == \"right\");\n const centerCols = cols.filter((col) => col.getPinned() != \"left\" && col.getPinned() != \"right\");\n const idCreator = new GroupInstanceIdCreator();\n const createGroups = (params) => {\n return columnGroupSvc ? columnGroupSvc.createColumnGroups(params) : params.columns;\n };\n this.treeLeft = createGroups({\n columns: leftCols,\n idCreator,\n pinned: \"left\",\n oldDisplayedGroups: this.treeLeft\n });\n this.treeRight = createGroups({\n columns: rightCols,\n idCreator,\n pinned: \"right\",\n oldDisplayedGroups: this.treeRight\n });\n this.treeCenter = createGroups({\n columns: centerCols,\n idCreator,\n pinned: null,\n oldDisplayedGroups: this.treeCenter\n });\n this.updateColsAndGroupsMap();\n }\n clear() {\n this.leftCols = [];\n this.rightCols = [];\n this.centerCols = [];\n this.allCols = [];\n this.ariaOrderColumns = [];\n }\n joinColsAriaOrder(colModel) {\n const allColumns = colModel.getCols();\n const pinnedLeft = [];\n const center = [];\n const pinnedRight = [];\n for (const col of allColumns) {\n const pinned = col.getPinned();\n if (!pinned) {\n center.push(col);\n } else if (pinned === true || pinned === \"left\") {\n pinnedLeft.push(col);\n } else {\n pinnedRight.push(col);\n }\n }\n this.ariaOrderColumns = pinnedLeft.concat(center).concat(pinnedRight);\n }\n getAriaColIndex(colOrGroup) {\n let col;\n if (isColumnGroup(colOrGroup)) {\n col = colOrGroup.getLeafColumns()[0];\n } else {\n col = colOrGroup;\n }\n return this.ariaOrderColumns.indexOf(col) + 1;\n }\n setLeftValuesOfGroups() {\n for (const columns of [this.treeLeft, this.treeRight, this.treeCenter]) {\n for (const column of columns) {\n if (isColumnGroup(column)) {\n const columnGroup = column;\n columnGroup.checkLeft();\n }\n }\n }\n }\n setLeftValuesOfCols(source) {\n const { colModel } = this.beans;\n const primaryCols = colModel.getColDefCols();\n if (!primaryCols) {\n return;\n }\n const allColumns = colModel.getCols().slice(0);\n const doingRtl = this.gos.get(\"enableRtl\");\n for (const columns of [this.leftCols, this.rightCols, this.centerCols]) {\n if (doingRtl) {\n let left = getWidthOfColsInList(columns);\n for (const column of columns) {\n left -= column.getActualWidth();\n column.setLeft(left, source);\n }\n } else {\n let left = 0;\n for (const column of columns) {\n column.setLeft(left, source);\n left += column.getActualWidth();\n }\n }\n _removeAllFromUnorderedArray(allColumns, columns);\n }\n for (const column of allColumns) {\n column.setLeft(null, source);\n }\n }\n joinCols() {\n if (this.gos.get(\"enableRtl\")) {\n this.allCols = this.rightCols.concat(this.centerCols).concat(this.leftCols);\n } else {\n this.allCols = this.leftCols.concat(this.centerCols).concat(this.rightCols);\n }\n }\n getAllTrees() {\n if (this.treeLeft && this.treeRight && this.treeCenter) {\n return this.treeLeft.concat(this.treeCenter).concat(this.treeRight);\n }\n return null;\n }\n // gridPanel -> ensureColumnVisible\n isColDisplayed(column) {\n return this.allCols.indexOf(column) >= 0;\n }\n getLeftColsForRow(rowNode) {\n const {\n leftCols,\n beans: { colModel }\n } = this;\n const colSpanActive = colModel.colSpanActive;\n if (!colSpanActive) {\n return leftCols;\n }\n return this.getColsForRow(rowNode, leftCols);\n }\n getRightColsForRow(rowNode) {\n const {\n rightCols,\n beans: { colModel }\n } = this;\n const colSpanActive = colModel.colSpanActive;\n if (!colSpanActive) {\n return rightCols;\n }\n return this.getColsForRow(rowNode, rightCols);\n }\n getColsForRow(rowNode, displayedColumns, filterCallback, emptySpaceBeforeColumn) {\n const result = [];\n let lastConsideredCol = null;\n for (let i = 0; i < displayedColumns.length; i++) {\n const col = displayedColumns[i];\n const maxAllowedColSpan = displayedColumns.length - i;\n const colSpan = Math.min(col.getColSpan(rowNode), maxAllowedColSpan);\n const columnsToCheckFilter = [col];\n if (colSpan > 1) {\n const colsToRemove = colSpan - 1;\n for (let j = 1; j <= colsToRemove; j++) {\n columnsToCheckFilter.push(displayedColumns[i + j]);\n }\n i += colsToRemove;\n }\n let filterPasses;\n if (filterCallback) {\n filterPasses = false;\n for (const colForFilter of columnsToCheckFilter) {\n if (filterCallback(colForFilter)) {\n filterPasses = true;\n }\n }\n } else {\n filterPasses = true;\n }\n if (filterPasses) {\n if (result.length === 0 && lastConsideredCol) {\n const gapBeforeColumn = emptySpaceBeforeColumn ? emptySpaceBeforeColumn(col) : false;\n if (gapBeforeColumn) {\n result.push(lastConsideredCol);\n }\n }\n result.push(col);\n }\n lastConsideredCol = col;\n }\n return result;\n }\n getContainerWidth(pinned) {\n switch (pinned) {\n case \"left\":\n return this.leftWidth;\n case \"right\":\n return this.rightWidth;\n default:\n return this.bodyWidth;\n }\n }\n getColBefore(col) {\n const allDisplayedColumns = this.allCols;\n const oldIndex = allDisplayedColumns.indexOf(col);\n if (oldIndex > 0) {\n return allDisplayedColumns[oldIndex - 1];\n }\n return null;\n }\n isPinningLeft() {\n return this.leftCols.length > 0;\n }\n isPinningRight() {\n return this.rightCols.length > 0;\n }\n updateColsAndGroupsMap() {\n this.colsAndGroupsMap = {};\n const func = (child) => {\n this.colsAndGroupsMap[child.getUniqueId()] = child;\n };\n depthFirstAllColumnTreeSearch(this.treeCenter, false, func);\n depthFirstAllColumnTreeSearch(this.treeLeft, false, func);\n depthFirstAllColumnTreeSearch(this.treeRight, false, func);\n }\n isVisible(item) {\n const fromMap = this.colsAndGroupsMap[item.getUniqueId()];\n return fromMap === item;\n }\n getFirstColumn() {\n const isRtl = this.gos.get(\"enableRtl\");\n const queryOrder = [\"leftCols\", \"centerCols\", \"rightCols\"];\n if (isRtl) {\n queryOrder.reverse();\n }\n for (let i = 0; i < queryOrder.length; i++) {\n const container = this[queryOrder[i]];\n if (container.length) {\n return isRtl ? _last(container) : container[0];\n }\n }\n return null;\n }\n // used by:\n // + rowRenderer -> for navigation\n getColAfter(col) {\n const allDisplayedColumns = this.allCols;\n const oldIndex = allDisplayedColumns.indexOf(col);\n if (oldIndex < allDisplayedColumns.length - 1) {\n return allDisplayedColumns[oldIndex + 1];\n }\n return null;\n }\n // used by:\n // + angularGrid -> setting pinned body width\n // note: this should be cached\n getColsLeftWidth() {\n return getWidthOfColsInList(this.leftCols);\n }\n // note: this should be cached\n getDisplayedColumnsRightWidth() {\n return getWidthOfColsInList(this.rightCols);\n }\n isColAtEdge(col, edge) {\n const allColumns = this.allCols;\n if (!allColumns.length) {\n return false;\n }\n const isFirst = edge === \"first\";\n let columnToCompare;\n if (isColumnGroup(col)) {\n const leafColumns = col.getDisplayedLeafColumns();\n if (!leafColumns.length) {\n return false;\n }\n columnToCompare = isFirst ? leafColumns[0] : _last(leafColumns);\n } else {\n columnToCompare = col;\n }\n return (isFirst ? allColumns[0] : _last(allColumns)) === columnToCompare;\n }\n};\nfunction depthFirstAllColumnTreeSearch(tree, useDisplayedChildren, callback) {\n if (!tree) {\n return;\n }\n for (let i = 0; i < tree.length; i++) {\n const child = tree[i];\n if (isColumnGroup(child)) {\n const childTree = useDisplayedChildren ? child.getDisplayedChildren() : child.getChildren();\n depthFirstAllColumnTreeSearch(childTree, useDisplayedChildren, callback);\n }\n callback(child);\n }\n}\nfunction pickDisplayedCols(tree) {\n const res = [];\n depthFirstAllColumnTreeSearch(tree, true, (child) => {\n if (isColumn(child)) {\n res.push(child);\n }\n });\n return res;\n}\n\n// packages/ag-grid-community/src/columns/columnGroups/columnGroupService.ts\nvar ColumnGroupService = class extends BeanStub {\n constructor() {\n super(...arguments);\n this.beanName = \"colGroupSvc\";\n }\n getColumnGroupState() {\n const columnGroupState = [];\n const gridBalancedTree = this.beans.colModel.getColTree();\n depthFirstOriginalTreeSearch(null, gridBalancedTree, (node) => {\n if (isProvidedColumnGroup(node)) {\n columnGroupState.push({\n groupId: node.getGroupId(),\n open: node.isExpanded()\n });\n }\n });\n return columnGroupState;\n }\n resetColumnGroupState(source) {\n const primaryColumnTree = this.beans.colModel.getColDefColTree();\n if (!primaryColumnTree) {\n return;\n }\n const stateItems = [];\n depthFirstOriginalTreeSearch(null, primaryColumnTree, (child) => {\n if (isProvidedColumnGroup(child)) {\n const colGroupDef = child.getColGroupDef();\n const groupState = {\n groupId: child.getGroupId(),\n open: !colGroupDef ? void 0 : colGroupDef.openByDefault\n };\n stateItems.push(groupState);\n }\n });\n this.setColumnGroupState(stateItems, source);\n }\n setColumnGroupState(stateItems, source) {\n const { colModel, colAnimation, visibleCols, eventSvc } = this.beans;\n const gridBalancedTree = colModel.getColTree();\n if (!gridBalancedTree.length) {\n return;\n }\n colAnimation?.start();\n const impactedGroups = [];\n for (const stateItem of stateItems) {\n const groupKey = stateItem.groupId;\n const newValue = stateItem.open;\n const providedColumnGroup = this.getProvidedColGroup(groupKey);\n if (!providedColumnGroup) {\n continue;\n }\n if (providedColumnGroup.isExpanded() === newValue) {\n continue;\n }\n providedColumnGroup.setExpanded(newValue);\n impactedGroups.push(providedColumnGroup);\n }\n visibleCols.refresh(source, true);\n if (impactedGroups.length) {\n eventSvc.dispatchEvent({\n type: \"columnGroupOpened\",\n columnGroup: impactedGroups.length === 1 ? impactedGroups[0] : void 0,\n columnGroups: impactedGroups\n });\n }\n colAnimation?.finish();\n }\n // called by headerRenderer - when a header is opened or closed\n setColumnGroupOpened(key, newValue, source) {\n let keyAsString;\n if (isProvidedColumnGroup(key)) {\n keyAsString = key.getId();\n } else {\n keyAsString = key || \"\";\n }\n this.setColumnGroupState([{ groupId: keyAsString, open: newValue }], source);\n }\n getProvidedColGroup(key) {\n let res = null;\n depthFirstOriginalTreeSearch(null, this.beans.colModel.getColTree(), (node) => {\n if (isProvidedColumnGroup(node)) {\n if (node.getId() === key) {\n res = node;\n }\n }\n });\n return res;\n }\n getGroupAtDirection(columnGroup, direction) {\n const requiredLevel = columnGroup.getProvidedColumnGroup().getLevel() + columnGroup.getPaddingLevel();\n const colGroupLeafColumns = columnGroup.getDisplayedLeafColumns();\n const col = direction === \"After\" ? _last(colGroupLeafColumns) : colGroupLeafColumns[0];\n const getDisplayColMethod = `getCol${direction}`;\n while (true) {\n const column = this.beans.visibleCols[getDisplayColMethod](col);\n if (!column) {\n return null;\n }\n const groupPointer = this.getColGroupAtLevel(column, requiredLevel);\n if (groupPointer !== columnGroup) {\n return groupPointer;\n }\n }\n }\n getColGroupAtLevel(column, level) {\n let groupPointer = column.getParent();\n let originalGroupLevel;\n let groupPointerLevel;\n while (true) {\n const groupPointerProvidedColumnGroup = groupPointer.getProvidedColumnGroup();\n originalGroupLevel = groupPointerProvidedColumnGroup.getLevel();\n groupPointerLevel = groupPointer.getPaddingLevel();\n if (originalGroupLevel + groupPointerLevel <= level) {\n break;\n }\n groupPointer = groupPointer.getParent();\n }\n return groupPointer;\n }\n updateOpenClosedVisibility() {\n const allColumnGroups = this.beans.visibleCols.getAllTrees();\n depthFirstAllColumnTreeSearch(allColumnGroups, false, (child) => {\n if (isColumnGroup(child)) {\n child.calculateDisplayedColumns();\n }\n });\n }\n // returns the group with matching colId and instanceId. If instanceId is missing,\n // matches only on the colId.\n getColumnGroup(colId, partId) {\n if (!colId) {\n return null;\n }\n if (isColumnGroup(colId)) {\n return colId;\n }\n const allColumnGroups = this.beans.visibleCols.getAllTrees();\n const checkPartId = typeof partId === \"number\";\n let result = null;\n depthFirstAllColumnTreeSearch(allColumnGroups, false, (child) => {\n if (isColumnGroup(child)) {\n const columnGroup = child;\n let matched;\n if (checkPartId) {\n matched = colId === columnGroup.getGroupId() && partId === columnGroup.getPartId();\n } else {\n matched = colId === columnGroup.getGroupId();\n }\n if (matched) {\n result = columnGroup;\n }\n }\n });\n return result;\n }\n createColumnGroups(params) {\n const { columns, idCreator, pinned, oldDisplayedGroups, isStandaloneStructure } = params;\n const oldColumnsMapped = this.mapOldGroupsById(oldDisplayedGroups);\n const topLevelResultCols = [];\n let groupsOrColsAtCurrentLevel = columns;\n while (groupsOrColsAtCurrentLevel.length) {\n const currentlyIterating = groupsOrColsAtCurrentLevel;\n groupsOrColsAtCurrentLevel = [];\n let lastGroupedColIdx = 0;\n const createGroupToIndex = (to) => {\n const from = lastGroupedColIdx;\n lastGroupedColIdx = to;\n const previousNode = currentlyIterating[from];\n const previousNodeProvided = isColumnGroup(previousNode) ? previousNode.getProvidedColumnGroup() : previousNode;\n const previousNodeParent = previousNodeProvided.getOriginalParent();\n if (previousNodeParent == null) {\n for (let i = from; i < to; i++) {\n topLevelResultCols.push(currentlyIterating[i]);\n }\n return;\n }\n const newGroup = this.createColumnGroup(\n previousNodeParent,\n idCreator,\n oldColumnsMapped,\n pinned,\n isStandaloneStructure\n );\n for (let i = from; i < to; i++) {\n newGroup.addChild(currentlyIterating[i]);\n }\n groupsOrColsAtCurrentLevel.push(newGroup);\n };\n for (let i = 1; i < currentlyIterating.length; i++) {\n const thisNode = currentlyIterating[i];\n const thisNodeProvided = isColumnGroup(thisNode) ? thisNode.getProvidedColumnGroup() : thisNode;\n const thisNodeParent = thisNodeProvided.getOriginalParent();\n const previousNode = currentlyIterating[lastGroupedColIdx];\n const previousNodeProvided = isColumnGroup(previousNode) ? previousNode.getProvidedColumnGroup() : previousNode;\n const previousNodeParent = previousNodeProvided.getOriginalParent();\n if (thisNodeParent !== previousNodeParent) {\n createGroupToIndex(i);\n }\n }\n if (lastGroupedColIdx < currentlyIterating.length) {\n createGroupToIndex(currentlyIterating.length);\n }\n }\n if (!isStandaloneStructure) {\n this.setupParentsIntoCols(topLevelResultCols, null);\n }\n return topLevelResultCols;\n }\n createProvidedColumnGroup(primaryColumns, colGroupDef, level, existingColumns, columnKeyCreator, existingGroups, source) {\n const groupId = columnKeyCreator.getUniqueKey(colGroupDef.groupId || null, null);\n const colGroupDefMerged = createMergedColGroupDef(this.beans, colGroupDef, groupId);\n const providedGroup = new AgProvidedColumnGroup(colGroupDefMerged, groupId, false, level);\n this.createBean(providedGroup);\n const existingGroupAndIndex = this.findExistingGroup(colGroupDef, existingGroups);\n if (existingGroupAndIndex) {\n existingGroups.splice(existingGroupAndIndex.idx, 1);\n }\n const existingGroup = existingGroupAndIndex?.group;\n if (existingGroup) {\n providedGroup.setExpanded(existingGroup.isExpanded());\n }\n const children = _recursivelyCreateColumns(\n this.beans,\n colGroupDefMerged.children,\n level + 1,\n primaryColumns,\n existingColumns,\n columnKeyCreator,\n existingGroups,\n source\n );\n providedGroup.setChildren(children);\n return providedGroup;\n }\n balanceColumnTree(unbalancedTree, currentDepth, columnDepth, columnKeyCreator) {\n const result = [];\n for (let i = 0; i < unbalancedTree.length; i++) {\n const child = unbalancedTree[i];\n if (isProvidedColumnGroup(child)) {\n const originalGroup = child;\n const newChildren = this.balanceColumnTree(\n originalGroup.getChildren(),\n currentDepth + 1,\n columnDepth,\n columnKeyCreator\n );\n originalGroup.setChildren(newChildren);\n result.push(originalGroup);\n } else {\n let firstPaddedGroup;\n let currentPaddedGroup;\n for (let j = currentDepth; j < columnDepth; j++) {\n const newColId = columnKeyCreator.getUniqueKey(null, null);\n const colGroupDefMerged = createMergedColGroupDef(this.beans, null, newColId);\n const paddedGroup = new AgProvidedColumnGroup(colGroupDefMerged, newColId, true, j);\n this.createBean(paddedGroup);\n if (currentPaddedGroup) {\n currentPaddedGroup.setChildren([paddedGroup]);\n }\n currentPaddedGroup = paddedGroup;\n if (!firstPaddedGroup) {\n firstPaddedGroup = currentPaddedGroup;\n }\n }\n if (firstPaddedGroup && currentPaddedGroup) {\n result.push(firstPaddedGroup);\n const hasGroups = unbalancedTree.some((leaf) => isProvidedColumnGroup(leaf));\n if (hasGroups) {\n currentPaddedGroup.setChildren([child]);\n continue;\n } else {\n currentPaddedGroup.setChildren(unbalancedTree);\n break;\n }\n }\n result.push(child);\n }\n }\n return result;\n }\n findDepth(balancedColumnTree) {\n let depth = 0;\n let pointer = balancedColumnTree;\n while (pointer?.[0] && isProvidedColumnGroup(pointer[0])) {\n depth++;\n pointer = pointer[0].getChildren();\n }\n return depth;\n }\n findMaxDepth(treeChildren, depth) {\n let maxDepthThisLevel = depth;\n for (let i = 0; i < treeChildren.length; i++) {\n const abstractColumn = treeChildren[i];\n if (isProvidedColumnGroup(abstractColumn)) {\n const originalGroup = abstractColumn;\n const newDepth = this.findMaxDepth(originalGroup.getChildren(), depth + 1);\n if (maxDepthThisLevel < newDepth) {\n maxDepthThisLevel = newDepth;\n }\n }\n }\n return maxDepthThisLevel;\n }\n /**\n * Inserts dummy group columns in the hierarchy above auto-generated columns\n * in order to ensure auto-generated columns are leaf nodes (and therefore are\n * displayed correctly)\n */\n balanceTreeForAutoCols(autoCols, depth) {\n const tree = [];\n for (const col of autoCols) {\n let nextChild = col;\n for (let i = depth - 1; i >= 0; i--) {\n const autoGroup = new AgProvidedColumnGroup(null, `FAKE_PATH_${col.getId()}}_${i}`, true, i);\n this.createBean(autoGroup);\n autoGroup.setChildren([nextChild]);\n nextChild.originalParent = autoGroup;\n nextChild = autoGroup;\n }\n if (depth === 0) {\n col.originalParent = null;\n }\n tree.push(nextChild);\n }\n return tree;\n }\n findExistingGroup(newGroupDef, existingGroups) {\n const newHasId = newGroupDef.groupId != null;\n if (!newHasId) {\n return void 0;\n }\n for (let i = 0; i < existingGroups.length; i++) {\n const existingGroup = existingGroups[i];\n const existingDef = existingGroup.getColGroupDef();\n if (!existingDef) {\n continue;\n }\n if (existingGroup.getId() === newGroupDef.groupId) {\n return { idx: i, group: existingGroup };\n }\n }\n return void 0;\n }\n createColumnGroup(providedGroup, groupInstanceIdCreator, oldColumnsMapped, pinned, isStandaloneStructure) {\n const groupId = providedGroup.getGroupId();\n const instanceId = groupInstanceIdCreator.getInstanceIdForKey(groupId);\n const uniqueId = createUniqueColumnGroupId(groupId, instanceId);\n let columnGroup = oldColumnsMapped[uniqueId];\n if (columnGroup && columnGroup.getProvidedColumnGroup() !== providedGroup) {\n columnGroup = null;\n }\n if (_exists(columnGroup)) {\n columnGroup.reset();\n } else {\n columnGroup = new AgColumnGroup(providedGroup, groupId, instanceId, pinned);\n if (!isStandaloneStructure) {\n this.createBean(columnGroup);\n }\n }\n return columnGroup;\n }\n // returns back a 2d map of ColumnGroup as follows: groupId -> instanceId -> ColumnGroup\n mapOldGroupsById(displayedGroups) {\n const result = {};\n const recursive = (columnsOrGroups) => {\n for (const columnOrGroup of columnsOrGroups) {\n if (isColumnGroup(columnOrGroup)) {\n const columnGroup = columnOrGroup;\n result[columnOrGroup.getUniqueId()] = columnGroup;\n recursive(columnGroup.getChildren());\n }\n }\n };\n if (displayedGroups) {\n recursive(displayedGroups);\n }\n return result;\n }\n setupParentsIntoCols(columnsOrGroups, parent) {\n for (const columnsOrGroup of columnsOrGroups ?? []) {\n if (columnsOrGroup.parent !== parent) {\n this.beans.colViewport.colsWithinViewportHash = \"\";\n }\n columnsOrGroup.parent = parent;\n if (isColumnGroup(columnsOrGroup)) {\n const columnGroup = columnsOrGroup;\n this.setupParentsIntoCols(columnGroup.getChildren(), columnGroup);\n }\n }\n }\n};\n\n// packages/ag-grid-community/src/columns/columnGroups/columnGroupModule.ts\nvar ColumnGroupModule = {\n moduleName: \"ColumnGroup\",\n version: VERSION,\n dynamicBeans: { headerGroupCellCtrl: HeaderGroupCellCtrl },\n beans: [ColumnGroupService],\n apiFunctions: {\n getAllDisplayedColumnGroups,\n getCenterDisplayedColumnGroups,\n getColumnGroup,\n getColumnGroupState,\n getDisplayNameForColumnGroup,\n getLeftDisplayedColumnGroups,\n getProvidedColumnGroup,\n getRightDisplayedColumnGroups,\n resetColumnGroupState,\n setColumnGroupOpened,\n setColumnGroupState\n }\n};\n\n// packages/ag-grid-community/src/rendering/cellRenderers/skeletonCellRenderer.ts\nvar SkeletonCellRendererElement = { tag: \"div\", cls: \"ag-skeleton-container\" };\nvar SkeletonCellRenderer = class extends Component {\n constructor() {\n super(SkeletonCellRendererElement);\n }\n init(params) {\n const id = `ag-cell-skeleton-renderer-${this.getCompId()}`;\n this.getGui().setAttribute(\"id\", id);\n this.addDestroyFunc(() => _setAriaLabelledBy(params.eParentOfValue));\n _setAriaLabelledBy(params.eParentOfValue, id);\n if (params.deferRender) {\n this.setupLoading(params);\n } else {\n params.node.failedLoad ? this.setupFailed() : this.setupLoading(params);\n }\n }\n setupFailed() {\n const localeTextFunc = this.getLocaleTextFunc();\n this.getGui().textContent = localeTextFunc(\"loadingError\", \"ERR\");\n const ariaFailed = localeTextFunc(\"ariaSkeletonCellLoadingFailed\", \"Row failed to load\");\n _setAriaLabel(this.getGui(), ariaFailed);\n }\n setupLoading(params) {\n const skeletonEffect = _createElement({\n tag: \"div\",\n cls: \"ag-skeleton-effect\"\n });\n const rowIndex = params.node.rowIndex;\n if (rowIndex != null) {\n const width = 75 + 25 * (rowIndex % 2 === 0 ? Math.sin(rowIndex) : Math.cos(rowIndex));\n skeletonEffect.style.width = `${width}%`;\n }\n this.getGui().appendChild(skeletonEffect);\n const localeTextFunc = this.getLocaleTextFunc();\n const ariaLoading = params.deferRender ? localeTextFunc(\"ariaDeferSkeletonCellLoading\", \"Cell is loading\") : localeTextFunc(\"ariaSkeletonCellLoading\", \"Row data is loading\");\n _setAriaLabel(this.getGui(), ariaLoading);\n }\n refresh(_params) {\n return false;\n }\n};\n\n// packages/ag-grid-community/src/rendering/cellRenderers/cellRendererModule.ts\nvar CheckboxCellRendererModule = {\n moduleName: \"CheckboxCellRenderer\",\n version: VERSION,\n userComponents: {\n agCheckboxCellRenderer: CheckboxCellRenderer\n }\n};\nvar SkeletonCellRendererModule = {\n moduleName: \"SkeletonCellRenderer\",\n version: VERSION,\n userComponents: {\n agSkeletonCellRenderer: SkeletonCellRenderer\n }\n};\n\n// packages/ag-grid-community/src/columns/columnApi.ts\nfunction getColumnDef(beans, key) {\n const column = beans.colModel.getColDefCol(key);\n if (column) {\n return column.getColDef();\n }\n return null;\n}\nfunction getColumnDefs(beans) {\n return beans.colModel.getColumnDefs(true);\n}\nfunction getDisplayNameForColumn(beans, column, location) {\n return beans.colNames.getDisplayNameForColumn(column, location) || \"\";\n}\nfunction getColumn(beans, key) {\n return beans.colModel.getColDefCol(key);\n}\nfunction getColumns(beans) {\n return beans.colModel.getColDefCols();\n}\nfunction applyColumnState(beans, params) {\n return _applyColumnState(beans, params, \"api\");\n}\nfunction getColumnState(beans) {\n return _getColumnState(beans);\n}\nfunction resetColumnState(beans) {\n _resetColumnState(beans, \"api\");\n}\nfunction isPinning(beans) {\n return beans.visibleCols.isPinningLeft() || beans.visibleCols.isPinningRight();\n}\nfunction isPinningLeft(beans) {\n return beans.visibleCols.isPinningLeft();\n}\nfunction isPinningRight(beans) {\n return beans.visibleCols.isPinningRight();\n}\nfunction getDisplayedColAfter(beans, col) {\n return beans.visibleCols.getColAfter(col);\n}\nfunction getDisplayedColBefore(beans, col) {\n return beans.visibleCols.getColBefore(col);\n}\nfunction setColumnsVisible(beans, keys, visible) {\n beans.colModel.setColsVisible(keys, visible, \"api\");\n}\nfunction setColumnsPinned(beans, keys, pinned) {\n beans.pinnedCols?.setColsPinned(keys, pinned, \"api\");\n}\nfunction getAllGridColumns(beans) {\n return beans.colModel.getCols();\n}\nfunction getDisplayedLeftColumns(beans) {\n return beans.visibleCols.leftCols;\n}\nfunction getDisplayedCenterColumns(beans) {\n return beans.visibleCols.centerCols;\n}\nfunction getDisplayedRightColumns(beans) {\n return beans.visibleCols.rightCols;\n}\nfunction getAllDisplayedColumns(beans) {\n return beans.visibleCols.allCols;\n}\nfunction getAllDisplayedVirtualColumns(beans) {\n return beans.colViewport.getViewportColumns();\n}\n\n// packages/ag-grid-community/src/columns/columnDefFactory.ts\nfunction _deepCloneDefinition(object, keysToSkip) {\n if (!object) {\n return;\n }\n const obj = object;\n const res = {};\n for (const key of Object.keys(obj)) {\n if (keysToSkip && keysToSkip.indexOf(key) >= 0 || SKIP_JS_BUILTINS.has(key)) {\n continue;\n }\n const value = obj[key];\n const sourceIsSimpleObject = typeof value === \"object\" && value !== null && value.constructor === Object;\n if (sourceIsSimpleObject) {\n res[key] = _deepCloneDefinition(value);\n } else {\n res[key] = value;\n }\n }\n return res;\n}\nvar ColumnDefFactory = class extends BeanStub {\n constructor() {\n super(...arguments);\n this.beanName = \"colDefFactory\";\n }\n wireBeans(beans) {\n this.rowGroupColsSvc = beans.rowGroupColsSvc;\n this.pivotColsSvc = beans.pivotColsSvc;\n }\n getColumnDefs(colDefColsList, showingPivotResult, lastOrder, colsList, sorted = false) {\n const cols = colDefColsList.slice();\n if (showingPivotResult) {\n cols.sort((a, b) => lastOrder.indexOf(a) - lastOrder.indexOf(b));\n } else if (lastOrder || sorted) {\n cols.sort((a, b) => colsList.indexOf(a) - colsList.indexOf(b));\n }\n const rowGroupColumns = this.rowGroupColsSvc?.columns;\n const pivotColumns = this.pivotColsSvc?.columns;\n return this.buildColumnDefs(cols, rowGroupColumns, pivotColumns);\n }\n buildColumnDefs(cols, rowGroupColumns = [], pivotColumns = []) {\n const res = [];\n const colGroupDefs = {};\n for (const col of cols) {\n const colDef = this.createDefFromColumn(col, rowGroupColumns, pivotColumns);\n let addToResult = true;\n let childDef = colDef;\n let pointer = col.getOriginalParent();\n let lastPointer = null;\n while (pointer) {\n let parentDef = null;\n if (pointer.isPadding()) {\n pointer = pointer.getOriginalParent();\n continue;\n }\n const existingParentDef = colGroupDefs[pointer.getGroupId()];\n if (existingParentDef) {\n existingParentDef.children.push(childDef);\n addToResult = false;\n break;\n }\n parentDef = this.createDefFromGroup(pointer);\n if (parentDef) {\n parentDef.children = [childDef];\n colGroupDefs[parentDef.groupId] = parentDef;\n childDef = parentDef;\n pointer = pointer.getOriginalParent();\n }\n if (pointer != null && lastPointer === pointer) {\n addToResult = false;\n break;\n }\n lastPointer = pointer;\n }\n if (addToResult) {\n res.push(childDef);\n }\n }\n return res;\n }\n createDefFromGroup(group) {\n const defCloned = _deepCloneDefinition(group.getColGroupDef(), [\"children\"]);\n if (defCloned) {\n defCloned.groupId = group.getGroupId();\n }\n return defCloned;\n }\n createDefFromColumn(col, rowGroupColumns, pivotColumns) {\n const colDefCloned = _deepCloneDefinition(col.getColDef());\n colDefCloned.colId = col.getColId();\n colDefCloned.width = col.getActualWidth();\n colDefCloned.rowGroup = col.isRowGroupActive();\n colDefCloned.rowGroupIndex = col.isRowGroupActive() ? rowGroupColumns.indexOf(col) : null;\n colDefCloned.pivot = col.isPivotActive();\n colDefCloned.pivotIndex = col.isPivotActive() ? pivotColumns.indexOf(col) : null;\n colDefCloned.aggFunc = col.isValueActive() ? col.getAggFunc() : null;\n colDefCloned.hide = col.isVisible() ? void 0 : true;\n colDefCloned.pinned = col.isPinned() ? col.getPinned() : null;\n colDefCloned.sort = col.getSort() ? col.getSort() : null;\n colDefCloned.sortIndex = col.getSortIndex() != null ? col.getSortIndex() : null;\n return colDefCloned;\n }\n};\n\n// packages/ag-grid-community/src/columns/columnFlexService.ts\nvar ColumnFlexService = class extends BeanStub {\n constructor() {\n super(...arguments);\n this.beanName = \"colFlex\";\n this.columnsHidden = false;\n }\n refreshFlexedColumns(params = {}) {\n const source = params.source ?? \"flex\";\n if (params.viewportWidth != null) {\n this.flexViewportWidth = params.viewportWidth;\n }\n const totalSpace = this.flexViewportWidth;\n const { visibleCols, colDelayRenderSvc } = this.beans;\n const visibleCenterCols = visibleCols.centerCols;\n let flexAfterDisplayIndex = -1;\n if (params.resizingCols) {\n const allResizingCols = new Set(params.resizingCols);\n for (let i = visibleCenterCols.length - 1; i >= 0; i--) {\n if (allResizingCols.has(visibleCenterCols[i])) {\n flexAfterDisplayIndex = i;\n break;\n }\n }\n }\n let hasFlexItems = false;\n const items = visibleCenterCols.map((col, i) => {\n const flex = col.getFlex();\n const isFlex = flex != null && flex > 0 && i > flexAfterDisplayIndex;\n hasFlexItems || (hasFlexItems = isFlex);\n return {\n col,\n isFlex,\n flex: Math.max(0, flex ?? 0),\n initialSize: col.getActualWidth(),\n min: col.getMinWidth(),\n max: col.getMaxWidth(),\n targetSize: 0\n };\n });\n if (hasFlexItems) {\n colDelayRenderSvc?.hideColumns(\"colFlex\");\n this.columnsHidden = true;\n } else if (this.columnsHidden) {\n this.revealColumns(colDelayRenderSvc);\n }\n if (!totalSpace || !hasFlexItems) {\n return [];\n }\n let unfrozenItemCount = items.length;\n let unfrozenFlex = items.reduce((acc, item) => acc + item.flex, 0);\n let unfrozenSpace = totalSpace;\n const freeze = (item, width) => {\n item.frozenSize = width;\n item.col.setActualWidth(width, source);\n unfrozenSpace -= width;\n unfrozenFlex -= item.flex;\n unfrozenItemCount -= 1;\n };\n const isFrozen = (item) => item.frozenSize != null;\n for (const item of items) {\n if (!item.isFlex) {\n freeze(item, item.initialSize);\n }\n }\n while (unfrozenItemCount > 0) {\n const spaceToFill = Math.round(unfrozenFlex < 1 ? unfrozenSpace * unfrozenFlex : unfrozenSpace);\n let lastUnfrozenItem;\n let actualLeft = 0;\n let idealRight = 0;\n for (const item of items) {\n if (isFrozen(item)) {\n continue;\n }\n lastUnfrozenItem = item;\n idealRight += spaceToFill * (item.flex / unfrozenFlex);\n const idealSize = idealRight - actualLeft;\n const roundedSize = Math.round(idealSize);\n item.targetSize = roundedSize;\n actualLeft += roundedSize;\n }\n if (lastUnfrozenItem) {\n lastUnfrozenItem.targetSize += spaceToFill - actualLeft;\n }\n let totalViolation = 0;\n for (const item of items) {\n if (isFrozen(item)) {\n continue;\n }\n const unclampedSize = item.targetSize;\n const clampedSize = Math.min(Math.max(unclampedSize, item.min), item.max);\n totalViolation += clampedSize - unclampedSize;\n item.violationType = clampedSize === unclampedSize ? void 0 : clampedSize < unclampedSize ? \"max\" : \"min\";\n item.targetSize = clampedSize;\n }\n const freezeType = totalViolation === 0 ? \"all\" : totalViolation > 0 ? \"min\" : \"max\";\n for (const item of items) {\n if (isFrozen(item)) {\n continue;\n }\n if (freezeType === \"all\" || item.violationType === freezeType) {\n freeze(item, item.targetSize);\n }\n }\n }\n if (!params.skipSetLeft) {\n visibleCols.setLeftValues(source);\n }\n if (params.updateBodyWidths) {\n visibleCols.updateBodyWidths();\n }\n const unconstrainedFlexColumns = items.filter((item) => item.isFlex && !item.violationType).map((item) => item.col);\n if (params.fireResizedEvent) {\n const changedColumns = items.filter((item) => item.initialSize !== item.frozenSize).map((item) => item.col);\n const flexingColumns = items.filter((item) => item.flex).map((item) => item.col);\n dispatchColumnResizedEvent(this.eventSvc, changedColumns, true, source, flexingColumns);\n }\n this.revealColumns(colDelayRenderSvc);\n return unconstrainedFlexColumns;\n }\n revealColumns(colDelayRenderSvc) {\n if (this.columnsHidden) {\n colDelayRenderSvc?.revealColumns(\"colFlex\");\n this.columnsHidden = false;\n }\n }\n initCol(column) {\n const { flex, initialFlex } = column.colDef;\n if (flex !== void 0) {\n column.flex = flex;\n } else if (initialFlex !== void 0) {\n column.flex = initialFlex;\n }\n }\n // this method should only be used by the colModel to\n // change flex when required by the applyColumnState method.\n setColFlex(column, flex) {\n column.flex = flex ?? null;\n column.dispatchStateUpdatedEvent(\"flex\");\n }\n};\n\n// packages/ag-grid-community/src/agStack/utils/value.ts\nfunction _getValueUsingField(data, field, fieldContainsDots) {\n if (!field || !data) {\n return;\n }\n if (!fieldContainsDots) {\n return data[field];\n }\n const fields = field.split(\".\");\n let currentObject = data;\n for (let i = 0; i < fields.length; i++) {\n if (currentObject == null) {\n return void 0;\n }\n currentObject = currentObject[fields[i]];\n }\n return currentObject;\n}\n\n// packages/ag-grid-community/src/columns/dataTypeService.ts\nvar SORTED_CELL_DATA_TYPES_FOR_MATCHING = [\n \"dateTimeString\",\n \"dateString\",\n \"text\",\n \"number\",\n \"boolean\",\n \"date\"\n];\nvar DataTypeService = class extends BeanStub {\n constructor() {\n super(...arguments);\n this.beanName = \"dataTypeSvc\";\n this.dataTypeDefinitions = {};\n this.isPendingInference = false;\n this.isColumnTypeOverrideInDataTypeDefinitions = false;\n // keep track of any column state updates whilst waiting for data types to be inferred\n this.columnStateUpdatesPendingInference = {};\n this.columnStateUpdateListenerDestroyFuncs = [];\n // using an object here to enforce dev to not forget to implement new types as they are added\n this.columnDefinitionPropsPerDataType = {\n number() {\n return { cellEditor: \"agNumberCellEditor\" };\n },\n boolean() {\n return {\n cellEditor: \"agCheckboxCellEditor\",\n cellRenderer: \"agCheckboxCellRenderer\",\n getFindText: () => null,\n suppressKeyboardEvent: (params) => !!params.colDef.editable && params.event.key === KeyCode.SPACE\n };\n },\n date({ formatValue }) {\n return { cellEditor: \"agDateCellEditor\", keyCreator: formatValue };\n },\n dateString({ formatValue }) {\n return { cellEditor: \"agDateStringCellEditor\", keyCreator: formatValue };\n },\n dateTime(args) {\n return this.date(args);\n },\n dateTimeString(args) {\n return this.dateString(args);\n },\n object({ formatValue, colModel, colId }) {\n return {\n cellEditorParams: {\n useFormatter: true\n },\n comparator: (a, b) => {\n const column = colModel.getColDefCol(colId);\n const colDef = column?.getColDef();\n if (!column || !colDef) {\n return 0;\n }\n const valA = a == null ? \"\" : formatValue({ column, node: null, value: a });\n const valB = b == null ? \"\" : formatValue({ column, node: null, value: b });\n if (valA === valB) {\n return 0;\n }\n return valA > valB ? 1 : -1;\n },\n keyCreator: formatValue\n };\n },\n text() {\n return {};\n }\n };\n }\n wireBeans(beans) {\n this.colModel = beans.colModel;\n }\n postConstruct() {\n this.processDataTypeDefinitions();\n this.addManagedPropertyListener(\"dataTypeDefinitions\", (event) => {\n this.processDataTypeDefinitions();\n this.colModel.recreateColumnDefs(event);\n });\n }\n processDataTypeDefinitions() {\n const defaultDataTypes = this.getDefaultDataTypes();\n const newDataTypeDefinitions = {};\n const newFormatValueFuncs = {};\n const generateFormatValueFunc = (dataTypeDefinition) => {\n return (params) => {\n const { column, node, value } = params;\n let valueFormatter = column.getColDef().valueFormatter;\n if (valueFormatter === dataTypeDefinition.groupSafeValueFormatter) {\n valueFormatter = dataTypeDefinition.valueFormatter;\n }\n return this.beans.valueSvc.formatValue(column, node, value, valueFormatter);\n };\n };\n for (const cellDataType of Object.keys(defaultDataTypes)) {\n const defaultDataTypeDef = defaultDataTypes[cellDataType];\n const mergedDataTypeDefinition = {\n ...defaultDataTypeDef,\n groupSafeValueFormatter: createGroupSafeValueFormatter(defaultDataTypeDef, this.gos)\n };\n newDataTypeDefinitions[cellDataType] = mergedDataTypeDefinition;\n newFormatValueFuncs[cellDataType] = generateFormatValueFunc(mergedDataTypeDefinition);\n }\n const userDataTypeDefs = this.gos.get(\"dataTypeDefinitions\") ?? {};\n const newDataTypeMatchers = {};\n for (const cellDataType of Object.keys(userDataTypeDefs)) {\n const userDataTypeDef = userDataTypeDefs[cellDataType];\n const mergedDataTypeDefinition = this.processDataTypeDefinition(\n userDataTypeDef,\n userDataTypeDefs,\n [cellDataType],\n defaultDataTypes\n );\n if (mergedDataTypeDefinition) {\n newDataTypeDefinitions[cellDataType] = mergedDataTypeDefinition;\n if (userDataTypeDef.dataTypeMatcher) {\n newDataTypeMatchers[cellDataType] = userDataTypeDef.dataTypeMatcher;\n }\n newFormatValueFuncs[cellDataType] = generateFormatValueFunc(mergedDataTypeDefinition);\n }\n }\n const { valueParser: defaultValueParser, valueFormatter: defaultValueFormatter } = defaultDataTypes.object;\n const { valueParser: userValueParser, valueFormatter: userValueFormatter } = newDataTypeDefinitions.object;\n this.hasObjectValueParser = userValueParser !== defaultValueParser;\n this.hasObjectValueFormatter = userValueFormatter !== defaultValueFormatter;\n this.formatValueFuncs = newFormatValueFuncs;\n this.dataTypeDefinitions = newDataTypeDefinitions;\n this.dataTypeMatchers = this.sortKeysInMatchers(newDataTypeMatchers, defaultDataTypes);\n }\n /**\n * Sorts the keys in the matchers object.\n * Does not mutate the original object, creates a copy of it with sorted keys instead.\n */\n sortKeysInMatchers(matchers, dataTypes) {\n const sortedMatchers = { ...matchers };\n for (const cellDataType of SORTED_CELL_DATA_TYPES_FOR_MATCHING) {\n delete sortedMatchers[cellDataType];\n sortedMatchers[cellDataType] = matchers[cellDataType] ?? dataTypes[cellDataType].dataTypeMatcher;\n }\n return sortedMatchers;\n }\n processDataTypeDefinition(userDataTypeDef, userDataTypeDefs, alreadyProcessedDataTypes, defaultDataTypes) {\n let mergedDataTypeDefinition;\n const extendsCellDataType = userDataTypeDef.extendsDataType;\n if (userDataTypeDef.columnTypes) {\n this.isColumnTypeOverrideInDataTypeDefinitions = true;\n }\n if (userDataTypeDef.extendsDataType === userDataTypeDef.baseDataType) {\n let baseDataTypeDefinition = defaultDataTypes[extendsCellDataType];\n const overriddenBaseDataTypeDefinition = userDataTypeDefs[extendsCellDataType];\n if (baseDataTypeDefinition && overriddenBaseDataTypeDefinition) {\n baseDataTypeDefinition = overriddenBaseDataTypeDefinition;\n }\n if (!validateDataTypeDefinition(userDataTypeDef, baseDataTypeDefinition, extendsCellDataType)) {\n return void 0;\n }\n mergedDataTypeDefinition = mergeDataTypeDefinitions(baseDataTypeDefinition, userDataTypeDef);\n } else {\n if (alreadyProcessedDataTypes.includes(extendsCellDataType)) {\n _warn(44);\n return void 0;\n }\n const extendedDataTypeDefinition = userDataTypeDefs[extendsCellDataType];\n if (!validateDataTypeDefinition(userDataTypeDef, extendedDataTypeDefinition, extendsCellDataType)) {\n return void 0;\n }\n const mergedExtendedDataTypeDefinition = this.processDataTypeDefinition(\n extendedDataTypeDefinition,\n userDataTypeDefs,\n [...alreadyProcessedDataTypes, extendsCellDataType],\n defaultDataTypes\n );\n if (!mergedExtendedDataTypeDefinition) {\n return void 0;\n }\n mergedDataTypeDefinition = mergeDataTypeDefinitions(mergedExtendedDataTypeDefinition, userDataTypeDef);\n }\n return {\n ...mergedDataTypeDefinition,\n groupSafeValueFormatter: createGroupSafeValueFormatter(mergedDataTypeDefinition, this.gos)\n };\n }\n updateColDefAndGetColumnType(colDef, userColDef, colId) {\n let { cellDataType } = userColDef;\n const { field } = userColDef;\n if (cellDataType === void 0) {\n cellDataType = colDef.cellDataType;\n }\n if (cellDataType == null || cellDataType === true) {\n cellDataType = this.canInferCellDataType(colDef, userColDef) ? this.inferCellDataType(field, colId) : false;\n }\n if (!cellDataType) {\n colDef.cellDataType = false;\n return void 0;\n }\n const dataTypeDefinition = this.dataTypeDefinitions[cellDataType];\n if (!dataTypeDefinition) {\n _warn(47, { cellDataType });\n return void 0;\n }\n colDef.cellDataType = cellDataType;\n if (dataTypeDefinition.groupSafeValueFormatter) {\n colDef.valueFormatter = dataTypeDefinition.groupSafeValueFormatter;\n }\n if (dataTypeDefinition.valueParser) {\n colDef.valueParser = dataTypeDefinition.valueParser;\n }\n if (!dataTypeDefinition.suppressDefaultProperties) {\n this.setColDefPropertiesForBaseDataType(colDef, cellDataType, dataTypeDefinition, colId);\n }\n return dataTypeDefinition.columnTypes;\n }\n addColumnListeners(column) {\n if (!this.isPendingInference) {\n return;\n }\n const columnStateUpdates = this.columnStateUpdatesPendingInference[column.getColId()];\n if (!columnStateUpdates) {\n return;\n }\n const columnListener = (event) => {\n columnStateUpdates.add(event.key);\n };\n column.__addEventListener(\"columnStateUpdated\", columnListener);\n this.columnStateUpdateListenerDestroyFuncs.push(\n () => column.__removeEventListener(\"columnStateUpdated\", columnListener)\n );\n }\n canInferCellDataType(colDef, userColDef) {\n const { gos } = this;\n if (!_isClientSideRowModel(gos)) {\n return false;\n }\n const propsToCheckForInference = { cellRenderer: true, valueGetter: true, valueParser: true, refData: true };\n if (doColDefPropsPreventInference(userColDef, propsToCheckForInference)) {\n return false;\n }\n const columnTypes = userColDef.type === null ? colDef.type : userColDef.type;\n if (columnTypes) {\n const columnTypeDefs = gos.get(\"columnTypes\") ?? {};\n const hasPropsPreventingInference = convertColumnTypes(columnTypes).some((columnType) => {\n const columnTypeDef = columnTypeDefs[columnType.trim()];\n return columnTypeDef && doColDefPropsPreventInference(columnTypeDef, propsToCheckForInference);\n });\n if (hasPropsPreventingInference) {\n return false;\n }\n }\n return !doColDefPropsPreventInference(colDef, propsToCheckForInference);\n }\n inferCellDataType(field, colId) {\n if (!field) {\n return void 0;\n }\n let value;\n const initialData = this.getInitialData();\n if (initialData) {\n const fieldContainsDots = field.includes(\".\") && !this.gos.get(\"suppressFieldDotNotation\");\n value = _getValueUsingField(initialData, field, fieldContainsDots);\n } else {\n this.initWaitForRowData(colId);\n }\n if (value == null) {\n return void 0;\n }\n const matchedType = Object.keys(this.dataTypeMatchers).find(\n (_cellDataType) => this.dataTypeMatchers[_cellDataType](value)\n );\n return matchedType ?? \"object\";\n }\n getInitialData() {\n const rowData = this.gos.get(\"rowData\");\n if (rowData?.length) {\n return rowData[0];\n } else if (this.initialData) {\n return this.initialData;\n } else {\n const rowNodes = this.beans.rowModel.rootNode?._leafs;\n if (rowNodes?.length) {\n return rowNodes[0].data;\n }\n }\n return null;\n }\n initWaitForRowData(colId) {\n this.columnStateUpdatesPendingInference[colId] = /* @__PURE__ */ new Set();\n if (this.isPendingInference) {\n return;\n }\n this.isPendingInference = true;\n const columnTypeOverridesExist = this.isColumnTypeOverrideInDataTypeDefinitions;\n const { colAutosize, eventSvc } = this.beans;\n if (columnTypeOverridesExist && colAutosize) {\n colAutosize.shouldQueueResizeOperations = true;\n }\n const [destroyFunc] = this.addManagedEventListeners({\n rowDataUpdateStarted: (event) => {\n const { firstRowData } = event;\n if (!firstRowData) {\n return;\n }\n destroyFunc?.();\n this.isPendingInference = false;\n this.processColumnsPendingInference(firstRowData, columnTypeOverridesExist);\n this.columnStateUpdatesPendingInference = {};\n if (columnTypeOverridesExist) {\n colAutosize?.processResizeOperations();\n }\n eventSvc.dispatchEvent({\n type: \"dataTypesInferred\"\n });\n }\n });\n }\n processColumnsPendingInference(firstRowData, columnTypeOverridesExist) {\n this.initialData = firstRowData;\n const state = [];\n this.destroyColumnStateUpdateListeners();\n const newRowGroupColumnStateWithoutIndex = {};\n const newPivotColumnStateWithoutIndex = {};\n for (const colId of Object.keys(this.columnStateUpdatesPendingInference)) {\n const columnStateUpdates = this.columnStateUpdatesPendingInference[colId];\n const column = this.colModel.getCol(colId);\n if (!column) {\n return;\n }\n const oldColDef = column.getColDef();\n if (!this.resetColDefIntoCol(column, \"cellDataTypeInferred\")) {\n return;\n }\n const newColDef = column.getColDef();\n if (columnTypeOverridesExist && newColDef.type && newColDef.type !== oldColDef.type) {\n const updatedColumnState = getUpdatedColumnState(column, columnStateUpdates);\n if (updatedColumnState.rowGroup && updatedColumnState.rowGroupIndex == null) {\n newRowGroupColumnStateWithoutIndex[colId] = updatedColumnState;\n }\n if (updatedColumnState.pivot && updatedColumnState.pivotIndex == null) {\n newPivotColumnStateWithoutIndex[colId] = updatedColumnState;\n }\n state.push(updatedColumnState);\n }\n }\n if (columnTypeOverridesExist) {\n state.push(\n ...this.generateColumnStateForRowGroupAndPivotIndexes(\n newRowGroupColumnStateWithoutIndex,\n newPivotColumnStateWithoutIndex\n )\n );\n }\n if (state.length) {\n _applyColumnState(this.beans, { state }, \"cellDataTypeInferred\");\n }\n this.initialData = null;\n }\n generateColumnStateForRowGroupAndPivotIndexes(updatedRowGroupColumnState, updatedPivotColumnState) {\n const existingColumnStateUpdates = {};\n const { rowGroupColsSvc, pivotColsSvc } = this.beans;\n rowGroupColsSvc?.restoreColumnOrder(existingColumnStateUpdates, updatedRowGroupColumnState);\n pivotColsSvc?.restoreColumnOrder(existingColumnStateUpdates, updatedPivotColumnState);\n return Object.values(existingColumnStateUpdates);\n }\n resetColDefIntoCol(column, source) {\n const userColDef = column.getUserProvidedColDef();\n if (!userColDef) {\n return false;\n }\n const newColDef = _addColumnDefaultAndTypes(this.beans, userColDef, column.getColId());\n column.setColDef(newColDef, userColDef, source);\n return true;\n }\n getDateStringTypeDefinition(column) {\n const { dateString } = this.dataTypeDefinitions;\n if (!column) {\n return dateString;\n }\n return this.getDataTypeDefinition(column) ?? dateString;\n }\n getDateParserFunction(column) {\n return this.getDateStringTypeDefinition(column).dateParser;\n }\n getDateFormatterFunction(column) {\n return this.getDateStringTypeDefinition(column).dateFormatter;\n }\n getDateIncludesTimeFlag(cellDataType) {\n return cellDataType === \"dateTime\" || cellDataType === \"dateTimeString\";\n }\n getDataTypeDefinition(column) {\n const colDef = column.getColDef();\n if (!colDef.cellDataType) {\n return void 0;\n }\n return this.dataTypeDefinitions[colDef.cellDataType];\n }\n getBaseDataType(column) {\n return this.getDataTypeDefinition(column)?.baseDataType;\n }\n checkType(column, value) {\n if (value == null) {\n return true;\n }\n const dataTypeMatcher = this.getDataTypeDefinition(column)?.dataTypeMatcher;\n if (!dataTypeMatcher) {\n return true;\n }\n return dataTypeMatcher(value);\n }\n validateColDef(colDef) {\n const warning = (property) => _warn(48, { property });\n if (colDef.cellDataType === \"object\") {\n const { object } = this.dataTypeDefinitions;\n if (colDef.valueFormatter === object.groupSafeValueFormatter && !this.hasObjectValueFormatter) {\n warning(\"Formatter\");\n }\n if (colDef.editable && colDef.valueParser === object.valueParser && !this.hasObjectValueParser) {\n warning(\"Parser\");\n }\n }\n }\n postProcess(colDef) {\n const cellDataType = colDef.cellDataType;\n if (!cellDataType || typeof cellDataType !== \"string\") {\n return;\n }\n const { dataTypeDefinitions, beans, formatValueFuncs } = this;\n const dataTypeDefinition = dataTypeDefinitions[cellDataType];\n if (!dataTypeDefinition) {\n return;\n }\n beans.colFilter?.setColDefPropsForDataType(colDef, dataTypeDefinition, formatValueFuncs[cellDataType]);\n }\n // noinspection JSUnusedGlobalSymbols\n getFormatValue(cellDataType) {\n return this.formatValueFuncs[cellDataType];\n }\n isColPendingInference(colId) {\n return this.isPendingInference && !!this.columnStateUpdatesPendingInference[colId];\n }\n setColDefPropertiesForBaseDataType(colDef, cellDataType, dataTypeDefinition, colId) {\n const formatValue = this.formatValueFuncs[cellDataType];\n const partialColDef = this.columnDefinitionPropsPerDataType[dataTypeDefinition.baseDataType]({\n colDef,\n cellDataType,\n colModel: this.colModel,\n dataTypeDefinition,\n colId,\n formatValue\n });\n Object.assign(colDef, partialColDef);\n }\n getDateObjectTypeDef(baseDataType) {\n const translate = this.getLocaleTextFunc();\n const includeTime = this.getDateIncludesTimeFlag(baseDataType);\n return {\n baseDataType,\n valueParser: (params) => _parseDateTimeFromString(params.newValue && String(params.newValue)),\n valueFormatter: (params) => {\n if (params.value == null) {\n return \"\";\n }\n if (!(params.value instanceof Date) || isNaN(params.value.getTime())) {\n return translate(\"invalidDate\", \"Invalid Date\");\n }\n return _serialiseDate(params.value, includeTime) ?? \"\";\n },\n dataTypeMatcher: (value) => value instanceof Date\n };\n }\n getDateStringTypeDef(baseDataType) {\n const includeTime = this.getDateIncludesTimeFlag(baseDataType);\n return {\n baseDataType,\n dateParser: (value) => _parseDateTimeFromString(value) ?? void 0,\n dateFormatter: (value) => _serialiseDate(value ?? null, includeTime) ?? void 0,\n valueParser: (params) => _isValidDate(String(params.newValue)) ? params.newValue : null,\n valueFormatter: (params) => _isValidDate(String(params.value)) ? String(params.value) : \"\",\n dataTypeMatcher: (value) => typeof value === \"string\" && _isValidDate(value)\n };\n }\n getDefaultDataTypes() {\n const translate = this.getLocaleTextFunc();\n return {\n number: {\n baseDataType: \"number\",\n // can be empty space with legacy copy\n valueParser: (params) => params.newValue?.trim?.() === \"\" ? null : Number(params.newValue),\n valueFormatter: (params) => {\n if (params.value == null) {\n return \"\";\n }\n if (typeof params.value !== \"number\" || isNaN(params.value)) {\n return translate(\"invalidNumber\", \"Invalid Number\");\n }\n return String(params.value);\n },\n dataTypeMatcher: (value) => typeof value === \"number\"\n },\n text: {\n baseDataType: \"text\",\n valueParser: (params) => params.newValue === \"\" ? null : _toStringOrNull(params.newValue),\n dataTypeMatcher: (value) => typeof value === \"string\"\n },\n boolean: {\n baseDataType: \"boolean\",\n valueParser: (params) => {\n if (params.newValue == null) {\n return params.newValue;\n }\n return params.newValue?.trim?.() === \"\" ? null : String(params.newValue).toLowerCase() === \"true\";\n },\n valueFormatter: (params) => params.value == null ? \"\" : String(params.value),\n dataTypeMatcher: (value) => typeof value === \"boolean\"\n },\n date: this.getDateObjectTypeDef(\"date\"),\n dateString: this.getDateStringTypeDef(\"dateString\"),\n dateTime: this.getDateObjectTypeDef(\"dateTime\"),\n dateTimeString: {\n ...this.getDateStringTypeDef(\"dateTimeString\"),\n dataTypeMatcher: (value) => typeof value === \"string\" && _isValidDateTime(value)\n },\n object: {\n baseDataType: \"object\",\n valueParser: () => null,\n valueFormatter: (params) => _toStringOrNull(params.value) ?? \"\"\n }\n };\n }\n destroyColumnStateUpdateListeners() {\n for (const destroyFunc of this.columnStateUpdateListenerDestroyFuncs) {\n destroyFunc();\n }\n this.columnStateUpdateListenerDestroyFuncs = [];\n }\n destroy() {\n this.dataTypeDefinitions = {};\n this.dataTypeMatchers = {};\n this.formatValueFuncs = {};\n this.columnStateUpdatesPendingInference = {};\n this.destroyColumnStateUpdateListeners();\n super.destroy();\n }\n};\nfunction mergeDataTypeDefinitions(parentDataTypeDefinition, childDataTypeDefinition) {\n const mergedDataTypeDefinition = {\n ...parentDataTypeDefinition,\n ...childDataTypeDefinition\n };\n if (parentDataTypeDefinition.columnTypes && childDataTypeDefinition.columnTypes && childDataTypeDefinition.appendColumnTypes) {\n mergedDataTypeDefinition.columnTypes = [\n ...convertColumnTypes(parentDataTypeDefinition.columnTypes),\n ...convertColumnTypes(childDataTypeDefinition.columnTypes)\n ];\n }\n return mergedDataTypeDefinition;\n}\nfunction validateDataTypeDefinition(dataTypeDefinition, parentDataTypeDefinition, parentCellDataType) {\n if (!parentDataTypeDefinition) {\n _warn(45, { parentCellDataType });\n return false;\n }\n if (parentDataTypeDefinition.baseDataType !== dataTypeDefinition.baseDataType) {\n _warn(46);\n return false;\n }\n return true;\n}\nfunction createGroupSafeValueFormatter(dataTypeDefinition, gos) {\n if (!dataTypeDefinition.valueFormatter) {\n return void 0;\n }\n return (params) => {\n if (params.node?.group) {\n const aggFunc = (params.colDef.pivotValueColumn ?? params.column).getAggFunc();\n if (aggFunc) {\n if (aggFunc === \"first\" || aggFunc === \"last\") {\n return dataTypeDefinition.valueFormatter(params);\n }\n if (dataTypeDefinition.baseDataType === \"number\" && aggFunc !== \"count\") {\n if (typeof params.value === \"number\") {\n return dataTypeDefinition.valueFormatter(params);\n }\n if (typeof params.value === \"object\") {\n if (!params.value) {\n return void 0;\n }\n if (\"toNumber\" in params.value) {\n return dataTypeDefinition.valueFormatter({\n ...params,\n value: params.value.toNumber()\n });\n }\n if (\"value\" in params.value) {\n return dataTypeDefinition.valueFormatter({\n ...params,\n value: params.value.value\n });\n }\n }\n }\n return void 0;\n }\n } else if (gos.get(\"groupHideOpenParents\") && params.column.isRowGroupActive()) {\n if (typeof params.value === \"string\" && !dataTypeDefinition.dataTypeMatcher?.(params.value)) {\n return void 0;\n }\n }\n return dataTypeDefinition.valueFormatter(params);\n };\n}\nfunction doesColDefPropPreventInference(colDef, checkProps, prop, comparisonValue) {\n if (!checkProps[prop]) {\n return false;\n }\n const value = colDef[prop];\n if (value === null) {\n checkProps[prop] = false;\n return false;\n } else {\n return comparisonValue === void 0 ? !!value : value === comparisonValue;\n }\n}\nfunction doColDefPropsPreventInference(colDef, propsToCheckForInference) {\n return [\n [\"cellRenderer\", \"agSparklineCellRenderer\"],\n [\"valueGetter\", void 0],\n [\"valueParser\", void 0],\n [\"refData\", void 0]\n ].some(\n ([prop, comparisonValue]) => doesColDefPropPreventInference(colDef, propsToCheckForInference, prop, comparisonValue)\n );\n}\nfunction getUpdatedColumnState(column, columnStateUpdates) {\n const columnState = getColumnStateFromColDef(column);\n for (const key of columnStateUpdates) {\n delete columnState[key];\n if (key === \"rowGroup\") {\n delete columnState.rowGroupIndex;\n } else if (key === \"pivot\") {\n delete columnState.pivotIndex;\n }\n }\n return columnState;\n}\n\n// packages/ag-grid-community/src/columns/columnModule.ts\nvar DataTypeModule = {\n moduleName: \"DataType\",\n version: VERSION,\n beans: [DataTypeService],\n dependsOn: [CheckboxCellRendererModule]\n};\nvar ColumnFlexModule = {\n moduleName: \"ColumnFlex\",\n version: VERSION,\n beans: [ColumnFlexService]\n};\nvar ColumnApiModule = {\n moduleName: \"ColumnApi\",\n version: VERSION,\n beans: [ColumnDefFactory],\n apiFunctions: {\n getColumnDef,\n getDisplayNameForColumn,\n getColumn,\n getColumns,\n applyColumnState,\n getColumnState,\n resetColumnState,\n isPinning,\n isPinningLeft,\n isPinningRight,\n getDisplayedColAfter,\n getDisplayedColBefore,\n setColumnsVisible,\n setColumnsPinned,\n getAllGridColumns,\n getDisplayedLeftColumns,\n getDisplayedCenterColumns,\n getDisplayedRightColumns,\n getAllDisplayedColumns,\n getAllDisplayedVirtualColumns,\n getColumnDefs\n }\n};\n\n// packages/ag-grid-community/src/columns/columnNameService.ts\nfunction _camelCaseToHumanText(camelCase) {\n if (!camelCase || camelCase == null) {\n return null;\n }\n const rex = /([a-z])([A-Z])/g;\n const rexCaps = /([A-Z]+)([A-Z])([a-z])/g;\n const words = camelCase.replace(rex, \"$1 $2\").replace(rexCaps, \"$1 $2$3\").replace(/\\./g, \" \").split(\" \");\n return words.map((word) => word.substring(0, 1).toUpperCase() + (word.length > 1 ? word.substring(1, word.length) : \"\")).join(\" \");\n}\nvar ColumnNameService = class extends BeanStub {\n constructor() {\n super(...arguments);\n this.beanName = \"colNames\";\n }\n getDisplayNameForColumn(column, location, includeAggFunc = false) {\n if (!column) {\n return null;\n }\n const headerName = this.getHeaderName(column.getColDef(), column, null, null, location);\n const { aggColNameSvc } = this.beans;\n if (includeAggFunc && aggColNameSvc) {\n return aggColNameSvc.getHeaderName(column, headerName);\n }\n return headerName;\n }\n getDisplayNameForProvidedColumnGroup(columnGroup, providedColumnGroup, location) {\n const colGroupDef = providedColumnGroup?.getColGroupDef();\n if (colGroupDef) {\n return this.getHeaderName(colGroupDef, null, columnGroup, providedColumnGroup, location);\n }\n return null;\n }\n getDisplayNameForColumnGroup(columnGroup, location) {\n return this.getDisplayNameForProvidedColumnGroup(columnGroup, columnGroup.getProvidedColumnGroup(), location);\n }\n // location is where the column is going to appear, ie who is calling us\n getHeaderName(colDef, column, columnGroup, providedColumnGroup, location) {\n const headerValueGetter = colDef.headerValueGetter;\n if (headerValueGetter) {\n const params = _addGridCommonParams(this.gos, {\n colDef,\n column,\n columnGroup,\n providedColumnGroup,\n location\n });\n if (typeof headerValueGetter === \"function\") {\n return headerValueGetter(params);\n } else if (typeof headerValueGetter === \"string\") {\n return this.beans.expressionSvc?.evaluate(headerValueGetter, params) ?? null;\n }\n return \"\";\n } else if (colDef.headerName != null) {\n return colDef.headerName;\n } else if (colDef.field) {\n return _camelCaseToHumanText(colDef.field);\n }\n return \"\";\n }\n};\n\n// packages/ag-grid-community/src/columns/columnViewportService.ts\nvar ColumnViewportService = class extends BeanStub {\n constructor() {\n super(...arguments);\n this.beanName = \"colViewport\";\n // cols in center that are in the viewport\n this.colsWithinViewport = [];\n // same as colsWithinViewport, except we always include columns with headerAutoHeight\n this.headerColsWithinViewport = [];\n // A hash key to keep track of changes in viewport columns\n this.colsWithinViewportHash = \"\";\n // all columns & groups to be rendered, index by row.\n // used by header rows to get all items to render for that row.\n this.rowsOfHeadersToRenderLeft = {};\n this.rowsOfHeadersToRenderRight = {};\n this.rowsOfHeadersToRenderCenter = {};\n this.columnsToRenderLeft = [];\n this.columnsToRenderRight = [];\n this.columnsToRenderCenter = [];\n }\n wireBeans(beans) {\n this.visibleCols = beans.visibleCols;\n this.colModel = beans.colModel;\n }\n postConstruct() {\n this.suppressColumnVirtualisation = this.gos.get(\"suppressColumnVirtualisation\");\n }\n setScrollPosition(scrollWidth, scrollPosition, afterScroll = false) {\n const { visibleCols } = this;\n const bodyWidthDirty = visibleCols.isBodyWidthDirty;\n const noChange = scrollWidth === this.scrollWidth && scrollPosition === this.scrollPosition && !bodyWidthDirty;\n if (noChange) {\n return;\n }\n this.scrollWidth = scrollWidth;\n this.scrollPosition = scrollPosition;\n visibleCols.isBodyWidthDirty = true;\n if (this.gos.get(\"enableRtl\")) {\n const bodyWidth = visibleCols.bodyWidth;\n this.viewportLeft = bodyWidth - scrollPosition - scrollWidth;\n this.viewportRight = bodyWidth - scrollPosition;\n } else {\n this.viewportLeft = scrollPosition;\n this.viewportRight = scrollWidth + scrollPosition;\n }\n if (this.colModel.ready) {\n this.checkViewportColumns(afterScroll);\n }\n }\n /**\n * Returns the columns that are currently rendered in the viewport.\n */\n getColumnHeadersToRender(type) {\n switch (type) {\n case \"left\":\n return this.columnsToRenderLeft;\n case \"right\":\n return this.columnsToRenderRight;\n default:\n return this.columnsToRenderCenter;\n }\n }\n /**\n * Returns the column groups that are currently rendered in the viewport at a specific header row index.\n */\n getHeadersToRender(type, depth) {\n let result;\n switch (type) {\n case \"left\":\n result = this.rowsOfHeadersToRenderLeft[depth];\n break;\n case \"right\":\n result = this.rowsOfHeadersToRenderRight[depth];\n break;\n default:\n result = this.rowsOfHeadersToRenderCenter[depth];\n break;\n }\n return result ?? [];\n }\n extractViewportColumns() {\n const displayedColumnsCenter = this.visibleCols.centerCols;\n if (this.isColumnVirtualisationSuppressed()) {\n this.colsWithinViewport = displayedColumnsCenter;\n this.headerColsWithinViewport = displayedColumnsCenter;\n } else {\n this.colsWithinViewport = displayedColumnsCenter.filter(this.isColumnInRowViewport.bind(this));\n this.headerColsWithinViewport = displayedColumnsCenter.filter(this.isColumnInHeaderViewport.bind(this));\n }\n }\n isColumnVirtualisationSuppressed() {\n return this.suppressColumnVirtualisation || this.viewportRight === 0;\n }\n clear() {\n this.rowsOfHeadersToRenderLeft = {};\n this.rowsOfHeadersToRenderRight = {};\n this.rowsOfHeadersToRenderCenter = {};\n this.colsWithinViewportHash = \"\";\n }\n isColumnInHeaderViewport(col) {\n if (col.isAutoHeaderHeight() || isAnyParentAutoHeaderHeight(col)) {\n return true;\n }\n return this.isColumnInRowViewport(col);\n }\n isColumnInRowViewport(col) {\n if (col.isAutoHeight()) {\n return true;\n }\n const columnLeft = col.getLeft() || 0;\n const columnRight = columnLeft + col.getActualWidth();\n const leftBounds = this.viewportLeft - 200;\n const rightBounds = this.viewportRight + 200;\n const columnToMuchLeft = columnLeft < leftBounds && columnRight < leftBounds;\n const columnToMuchRight = columnLeft > rightBounds && columnRight > rightBounds;\n return !columnToMuchLeft && !columnToMuchRight;\n }\n // used by Grid API only\n getViewportColumns() {\n const { leftCols, rightCols } = this.visibleCols;\n const res = this.colsWithinViewport.concat(leftCols).concat(rightCols);\n return res;\n }\n // + rowRenderer\n // if we are not column spanning, this just returns back the virtual centre columns,\n // however if we are column spanning, then different rows can have different virtual\n // columns, so we have to work out the list for each individual row.\n getColsWithinViewport(rowNode) {\n if (!this.colModel.colSpanActive) {\n return this.colsWithinViewport;\n }\n const emptySpaceBeforeColumn = (col) => {\n const left = col.getLeft();\n return _exists(left) && left > this.viewportLeft;\n };\n const inViewportCallback = this.isColumnVirtualisationSuppressed() ? void 0 : this.isColumnInRowViewport.bind(this);\n const { visibleCols } = this;\n const displayedColumnsCenter = visibleCols.centerCols;\n return visibleCols.getColsForRow(rowNode, displayedColumnsCenter, inViewportCallback, emptySpaceBeforeColumn);\n }\n // checks what columns are currently displayed due to column virtualisation. dispatches an event\n // if the list of columns has changed.\n // + setColumnWidth(), setViewportPosition(), setColumnDefs(), sizeColumnsToFit()\n checkViewportColumns(afterScroll = false) {\n const viewportColumnsChanged = this.extractViewport();\n if (viewportColumnsChanged) {\n this.eventSvc.dispatchEvent({\n type: \"virtualColumnsChanged\",\n afterScroll\n });\n }\n }\n calculateHeaderRows() {\n const { leftCols, rightCols } = this.visibleCols;\n this.columnsToRenderLeft = leftCols;\n this.columnsToRenderRight = rightCols;\n this.columnsToRenderCenter = this.colsWithinViewport;\n const workOutGroupsToRender = (cols) => {\n const groupsToRenderSet = /* @__PURE__ */ new Set();\n const groupsToRender = {};\n for (const col of cols) {\n let group = col.getParent();\n const skipFillers = col.isSpanHeaderHeight();\n while (group) {\n if (groupsToRenderSet.has(group)) {\n break;\n }\n const skipFillerGroup = skipFillers && group.isPadding();\n if (skipFillerGroup) {\n group = group.getParent();\n continue;\n }\n const level = group.getProvidedColumnGroup().getLevel();\n groupsToRender[level] ?? (groupsToRender[level] = []);\n groupsToRender[level].push(group);\n groupsToRenderSet.add(group);\n group = group.getParent();\n }\n }\n return groupsToRender;\n };\n this.rowsOfHeadersToRenderLeft = workOutGroupsToRender(leftCols);\n this.rowsOfHeadersToRenderRight = workOutGroupsToRender(rightCols);\n this.rowsOfHeadersToRenderCenter = workOutGroupsToRender(this.headerColsWithinViewport);\n }\n extractViewport() {\n const hashColumn = (c) => `${c.getId()}-${c.getPinned() || \"normal\"}`;\n this.extractViewportColumns();\n const newHash = this.getViewportColumns().map(hashColumn).join(\"#\");\n const changed = this.colsWithinViewportHash !== newHash;\n if (changed) {\n this.colsWithinViewportHash = newHash;\n this.calculateHeaderRows();\n }\n return changed;\n }\n};\nfunction isAnyParentAutoHeaderHeight(col) {\n while (col) {\n if (col.isAutoHeaderHeight()) {\n return true;\n }\n col = col.getParent();\n }\n return false;\n}\n\n// packages/ag-grid-community/src/components/framework/agComponentUtils.ts\nvar AgComponentUtils = class extends BeanStub {\n constructor() {\n super(...arguments);\n this.beanName = \"agCompUtils\";\n }\n adaptFunction(type, jsCompFunc) {\n if (!type.cellRenderer) {\n return null;\n }\n class Adapter {\n refresh() {\n return false;\n }\n getGui() {\n return this.eGui;\n }\n init(params) {\n const callbackResult = jsCompFunc(params);\n const type2 = typeof callbackResult;\n if (type2 === \"string\" || type2 === \"number\" || type2 === \"boolean\") {\n this.eGui = _loadTemplate(\"\" + callbackResult + \"\");\n return;\n }\n if (callbackResult == null) {\n this.eGui = _createElement({ tag: \"span\" });\n return;\n }\n this.eGui = callbackResult;\n }\n }\n return Adapter;\n }\n};\n\n// packages/ag-grid-community/src/components/framework/cellRendererFunctionModule.ts\nvar CellRendererFunctionModule = {\n moduleName: \"CellRendererFunction\",\n version: VERSION,\n beans: [AgComponentUtils]\n};\n\n// packages/ag-grid-community/src/components/framework/registry.ts\nvar Registry = class extends BaseRegistry {\n constructor() {\n super(...arguments);\n this.agGridDefaults = {};\n this.agGridDefaultOverrides = {};\n this.jsComps = {};\n this.selectors = {};\n this.icons = {};\n }\n postConstruct() {\n const comps = this.gos.get(\"components\");\n if (comps != null) {\n for (const key of Object.keys(comps)) {\n this.jsComps[key] = comps[key];\n }\n }\n }\n registerModule(module) {\n const { icons, userComponents, dynamicBeans, selectors } = module;\n if (userComponents) {\n const registerUserComponent = (name, component, params, processParams) => {\n this.agGridDefaults[name] = component;\n if (params || processParams) {\n this.agGridDefaultOverrides[name] = { params, processParams };\n }\n };\n for (const name of Object.keys(userComponents)) {\n let comp = userComponents[name];\n if (isComponentMetaFunc(comp)) {\n comp = comp.getComp(this.beans);\n }\n if (typeof comp === \"object\") {\n const { classImp, params, processParams } = comp;\n registerUserComponent(name, classImp, params, processParams);\n } else {\n registerUserComponent(name, comp);\n }\n }\n }\n this.registerDynamicBeans(dynamicBeans);\n for (const selector of selectors ?? []) {\n this.selectors[selector.selector] = selector;\n }\n if (icons) {\n for (const name of Object.keys(icons)) {\n this.icons[name] = icons[name];\n }\n }\n }\n getUserComponent(propertyName, name) {\n const createResult = (component, componentFromFramework, params, processParams) => ({\n componentFromFramework,\n component,\n params,\n processParams\n });\n const { frameworkOverrides } = this.beans;\n const registeredViaFrameworkComp = frameworkOverrides.frameworkComponent(name, this.gos.get(\"components\"));\n if (registeredViaFrameworkComp != null) {\n return createResult(registeredViaFrameworkComp, true);\n }\n const jsComponent = this.jsComps[name];\n if (jsComponent) {\n const isFwkComp = frameworkOverrides.isFrameworkComponent(jsComponent);\n return createResult(jsComponent, isFwkComp);\n }\n const defaultComponent = this.agGridDefaults[name];\n if (defaultComponent) {\n const overrides = this.agGridDefaultOverrides[name];\n return createResult(defaultComponent, false, overrides?.params, overrides?.processParams);\n }\n this.beans.validation?.missingUserComponent(propertyName, name, this.agGridDefaults, this.jsComps);\n return null;\n }\n getSelector(name) {\n return this.selectors[name];\n }\n getIcon(name) {\n return this.icons[name];\n }\n getDynamicError(name, init) {\n if (init) {\n return _errMsg(279, { name });\n }\n return this.beans.validation?.missingDynamicBean(name) ?? _errMsg(256);\n }\n};\n\n// packages/ag-grid-community/src/ctrlsService.ts\nvar NUM_CTRLS = 23;\nvar CtrlsService = class extends BeanStub {\n constructor() {\n super(...arguments);\n this.beanName = \"ctrlsSvc\";\n this.params = {};\n this.ready = false;\n this.readyCallbacks = [];\n }\n postConstruct() {\n this.addEventListener(\n \"ready\",\n () => {\n this.updateReady();\n if (this.ready) {\n for (const callback of this.readyCallbacks) {\n callback(this.params);\n }\n this.readyCallbacks.length = 0;\n }\n },\n this.beans.frameworkOverrides.runWhenReadyAsync?.() ?? false\n );\n }\n updateReady() {\n const values = Object.values(this.params);\n this.ready = values.length === NUM_CTRLS && values.every((ctrl) => {\n return ctrl?.isAlive() ?? false;\n });\n }\n whenReady(caller, callback) {\n if (this.ready) {\n callback(this.params);\n } else {\n this.readyCallbacks.push(callback);\n }\n caller.addDestroyFunc(() => {\n const index = this.readyCallbacks.indexOf(callback);\n if (index >= 0) {\n this.readyCallbacks.splice(index, 1);\n }\n });\n }\n register(ctrlType, ctrl) {\n this.params[ctrlType] = ctrl;\n this.updateReady();\n if (this.ready) {\n this.dispatchLocalEvent({ type: \"ready\" });\n }\n ctrl.addDestroyFunc(() => {\n this.updateReady();\n });\n }\n get(ctrlType) {\n return this.params[ctrlType];\n }\n getGridBodyCtrl() {\n return this.params.gridBodyCtrl;\n }\n getHeaderRowContainerCtrls() {\n const { leftHeader, centerHeader, rightHeader } = this.params;\n return [leftHeader, rightHeader, centerHeader];\n }\n getHeaderRowContainerCtrl(pinned) {\n const params = this.params;\n switch (pinned) {\n case \"left\":\n return params.leftHeader;\n case \"right\":\n return params.rightHeader;\n default:\n return params.centerHeader;\n }\n }\n getScrollFeature() {\n return this.getGridBodyCtrl().scrollFeature;\n }\n};\n\n// packages/ag-grid-community/src/theming/core/core.css-GENERATED.ts\nvar coreCSS = (\n /*css*/\n `.ag-aria-description-container{border:0;z-index:9999;clip:rect(1px,1px,1px,1px);height:1px;overflow:hidden;padding:0;position:absolute;white-space:nowrap;width:1px}.ag-unselectable{-webkit-user-select:none;-moz-user-select:none;user-select:none}.ag-selectable{-webkit-user-select:text;-moz-user-select:text;user-select:text}.ag-tab-guard{display:block;height:0;position:absolute;width:0}:where(.ag-virtual-list-viewport) .ag-tab-guard{position:sticky}.ag-tab-guard-top{top:1px}.ag-tab-guard-bottom{bottom:1px}.ag-shake-left-to-right{animation-direction:alternate;animation-duration:.2s;animation-iteration-count:infinite;animation-name:ag-shake-left-to-right}@keyframes ag-shake-left-to-right{0%{padding-left:6px;padding-right:2px}to{padding-left:2px;padding-right:6px}}.ag-body-horizontal-scroll-viewport,.ag-body-vertical-scroll-viewport,.ag-body-viewport,.ag-center-cols-viewport,.ag-floating-bottom-viewport,.ag-floating-top-viewport,.ag-header-viewport,.ag-sticky-bottom-viewport,.ag-sticky-top-viewport,.ag-virtual-list-viewport{flex:1 1 auto;height:100%;min-width:0;overflow:hidden;position:relative}.ag-viewport{position:relative}.ag-spanning-container{position:absolute;top:0;z-index:1}.ag-body-viewport,.ag-center-cols-viewport,.ag-floating-bottom-viewport,.ag-floating-top-viewport,.ag-header-viewport,.ag-sticky-bottom-viewport,.ag-sticky-top-viewport{overflow-x:auto;-ms-overflow-style:none!important;scrollbar-width:none!important;&::-webkit-scrollbar{display:none!important}}.ag-body-viewport{display:flex;overflow-x:hidden;&:where(.ag-layout-normal){overflow-y:auto;-webkit-overflow-scrolling:touch}}.ag-floating-bottom-container,.ag-floating-top-container,.ag-sticky-bottom-container,.ag-sticky-top-container{min-height:1px}.ag-center-cols-viewport{min-height:100%;width:100%}.ag-body-horizontal-scroll-viewport{overflow-x:scroll}.ag-body-vertical-scroll-viewport{overflow-y:scroll}.ag-virtual-list-viewport{overflow:auto;width:100%}.ag-body-container,.ag-body-horizontal-scroll-container,.ag-body-vertical-scroll-container,.ag-center-cols-container,.ag-floating-bottom-container,.ag-floating-bottom-full-width-container,.ag-floating-top-container,.ag-full-width-container,.ag-header-container,.ag-pinned-left-cols-container,.ag-pinned-right-cols-container,.ag-sticky-bottom-container,.ag-sticky-top-container,.ag-virtual-list-container{position:relative}.ag-floating-bottom-container,.ag-floating-top-container,.ag-header-container,.ag-pinned-left-floating-bottom,.ag-pinned-left-floating-top,.ag-pinned-right-floating-bottom,.ag-pinned-right-floating-top,.ag-sticky-bottom-container,.ag-sticky-top-container{height:100%;white-space:nowrap}.ag-center-cols-container,.ag-pinned-right-cols-container{display:block}.ag-body-horizontal-scroll-container{height:100%}.ag-body-vertical-scroll-container{width:100%}.ag-floating-bottom-full-width-container,.ag-floating-top-full-width-container,.ag-full-width-container,.ag-sticky-bottom-full-width-container,.ag-sticky-top-full-width-container{pointer-events:none;position:absolute;top:0}:where(.ag-ltr) .ag-floating-bottom-full-width-container,:where(.ag-ltr) .ag-floating-top-full-width-container,:where(.ag-ltr) .ag-full-width-container,:where(.ag-ltr) .ag-sticky-bottom-full-width-container,:where(.ag-ltr) .ag-sticky-top-full-width-container{left:0}:where(.ag-rtl) .ag-floating-bottom-full-width-container,:where(.ag-rtl) .ag-floating-top-full-width-container,:where(.ag-rtl) .ag-full-width-container,:where(.ag-rtl) .ag-sticky-bottom-full-width-container,:where(.ag-rtl) .ag-sticky-top-full-width-container{right:0}.ag-full-width-container{width:100%}.ag-floating-bottom-full-width-container,.ag-floating-top-full-width-container{display:inline-block;height:100%;overflow:hidden;width:100%}.ag-virtual-list-container{overflow:hidden}.ag-body{display:flex;flex:1 1 auto;flex-direction:row!important;min-height:0;position:relative}.ag-body-horizontal-scroll,.ag-body-vertical-scroll{display:flex;min-height:0;min-width:0;position:relative;&:where(.ag-scrollbar-invisible){bottom:0;position:absolute;&:where(.ag-apple-scrollbar){opacity:0;transition:opacity .4s;visibility:hidden;&:where(.ag-scrollbar-scrolling,.ag-scrollbar-active){opacity:1;visibility:visible}}}}.ag-body-horizontal-scroll{width:100%;&:where(.ag-scrollbar-invisible){left:0;right:0}}.ag-body-vertical-scroll{height:100%;&:where(.ag-scrollbar-invisible){top:0;z-index:10}}:where(.ag-ltr) .ag-body-vertical-scroll{&:where(.ag-scrollbar-invisible){right:0}}:where(.ag-rtl) .ag-body-vertical-scroll{&:where(.ag-scrollbar-invisible){left:0}}.ag-force-vertical-scroll{overflow-y:scroll!important}.ag-horizontal-left-spacer,.ag-horizontal-right-spacer{height:100%;min-width:0;overflow-x:scroll;&:where(.ag-scroller-corner){overflow-x:hidden}}:where(.ag-row-animation) .ag-row{transition:transform .4s,top .4s,opacity .2s;&:where(.ag-after-created){transition:transform .4s,top .4s,height .4s,opacity .2s}}:where(.ag-row-animation.ag-prevent-animation) .ag-row{transition:none!important;&:where(.ag-row.ag-after-created){transition:none!important}}:where(.ag-row-no-animation) .ag-row{transition:none}.ag-row-loading{align-items:center;display:flex}.ag-row-position-absolute{position:absolute}.ag-row-position-relative{position:relative}.ag-full-width-row{overflow:hidden;pointer-events:all}.ag-row-inline-editing{z-index:1}.ag-row-dragging{z-index:2}.ag-stub-cell{align-items:center;display:flex}.ag-cell{display:inline-block;height:100%;position:absolute;white-space:nowrap;&:focus-visible{box-shadow:none}}.ag-cell-value{flex:1 1 auto}.ag-cell-value:not(.ag-allow-overflow),.ag-group-value{overflow:hidden;text-overflow:ellipsis}.ag-cell-wrap-text{white-space:normal;word-break:break-word}:where(.ag-cell) .ag-icon{display:inline-block;vertical-align:middle}.ag-floating-top{display:flex;overflow:hidden;position:relative;white-space:nowrap;width:100%}:where(.ag-floating-top:not(.ag-invisible)){border-bottom:var(--ag-pinned-row-border)}.ag-floating-bottom{display:flex;overflow:hidden;position:relative;white-space:nowrap;width:100%}:where(.ag-floating-bottom:not(.ag-invisible)){border-top:var(--ag-pinned-row-border)}.ag-sticky-bottom,.ag-sticky-top{background-color:var(--ag-data-background-color);display:flex;height:0;overflow:hidden;position:absolute;width:100%;z-index:1}.ag-opacity-zero{opacity:0!important}.ag-cell-label-container{align-items:center;display:flex;flex-direction:row-reverse;height:100%;justify-content:space-between;width:100%}:where(.ag-right-aligned-header){.ag-cell-label-container{flex-direction:row}.ag-header-cell-text{text-align:end}}.ag-column-group-icons{display:block;>*{cursor:pointer}}:where(.ag-ltr){direction:ltr;.ag-body,.ag-body-horizontal-scroll,.ag-body-viewport,.ag-floating-bottom,.ag-floating-top,.ag-header,.ag-sticky-bottom,.ag-sticky-top{flex-direction:row}}:where(.ag-rtl){direction:rtl;text-align:right;.ag-body,.ag-body-horizontal-scroll,.ag-body-viewport,.ag-floating-bottom,.ag-floating-top,.ag-header,.ag-sticky-bottom,.ag-sticky-top{flex-direction:row-reverse}.ag-icon-contracted,.ag-icon-expanded,.ag-icon-tree-closed{display:block}}:where(.ag-rtl){.ag-icon-contracted,.ag-icon-expanded,.ag-icon-tree-closed{transform:rotate(180deg)}}:where(.ag-rtl){.ag-icon-contracted,.ag-icon-expanded,.ag-icon-tree-closed{transform:rotate(-180deg)}}.ag-measurement-container{height:0;overflow:hidden;visibility:hidden;width:0}.ag-measurement-element-border{display:inline-block;&:before{border-left:var(--ag-internal-measurement-border);content:\"\";display:block}}.ag-group{position:relative;width:100%}.ag-group-title-bar{align-items:center;display:flex;padding:var(--ag-spacing)}.ag-group-title{display:inline;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}:where(.ag-group-title-bar) .ag-group-title{cursor:default}.ag-group-toolbar{align-items:center;display:flex;padding:var(--ag-spacing)}.ag-group-container{display:flex}.ag-disabled .ag-group-container{pointer-events:none}.ag-disabled-group-container,.ag-disabled-group-title-bar{opacity:.5}.ag-group-container-horizontal{flex-flow:row wrap}.ag-group-container-vertical{flex-direction:column}.ag-group-title-bar-icon{cursor:pointer;flex:none}:where(.ag-ltr) .ag-group-title-bar-icon{margin-right:var(--ag-spacing)}:where(.ag-rtl) .ag-group-title-bar-icon{margin-left:var(--ag-spacing)}:where(.ag-group-item-alignment-stretch) .ag-group-item{align-items:stretch}:where(.ag-group-item-alignment-start) .ag-group-item{align-items:flex-start}:where(.ag-group-item-alignment-end) .ag-group-item{align-items:flex-end}:where(.ag-ltr) .ag-row:not(.ag-row-level-0) .ag-pivot-leaf-group{margin-left:var(--ag-row-group-indent-size)}:where(.ag-rtl) .ag-row:not(.ag-row-level-0) .ag-pivot-leaf-group{margin-right:var(--ag-row-group-indent-size)}:where(.ag-ltr) .ag-row-group-leaf-indent{margin-left:calc(var(--ag-cell-widget-spacing) + var(--ag-icon-size))}:where(.ag-rtl) .ag-row-group-leaf-indent{margin-right:calc(var(--ag-cell-widget-spacing) + var(--ag-icon-size))}.ag-value-change-delta{padding:0 2px}.ag-value-change-delta-up{color:var(--ag-value-change-delta-up-color)}.ag-value-change-delta-down{color:var(--ag-value-change-delta-down-color)}.ag-value-change-value{background-color:transparent;border-radius:1px;padding-left:1px;padding-right:1px;transition:background-color 1s}.ag-value-change-value-highlight{background-color:var(--ag-value-change-value-highlight-background-color);transition:background-color .1s}.ag-cell-data-changed{background-color:var(--ag-value-change-value-highlight-background-color)!important}.ag-cell-data-changed-animation{background-color:transparent}.ag-cell-highlight{background-color:var(--ag-range-selection-highlight-color)!important}.ag-row,.ag-spanned-row{color:var(--ag-cell-text-color);font-family:var(--ag-cell-font-family);font-size:var(--ag-data-font-size);white-space:nowrap;--ag-internal-content-line-height:calc(min(var(--ag-row-height), var(--ag-line-height, 1000px)) - var(--ag-internal-row-border-width, 1px) - 2px)}.ag-row{background-color:var(--ag-data-background-color);border-bottom:var(--ag-row-border);height:var(--ag-row-height);width:100%;&.ag-row-editing-invalid{background-color:var(--ag-full-row-edit-invalid-background-color)}}:where(.ag-body-vertical-content-no-gap>div>div>div,.ag-body-vertical-content-no-gap>div>div>div>div)>.ag-row-last{border-bottom-color:transparent}.ag-sticky-bottom{border-top:var(--ag-row-border);box-sizing:content-box!important}.ag-group-contracted,.ag-group-expanded{cursor:pointer}.ag-cell,.ag-full-width-row .ag-cell-wrapper.ag-row-group{border:1px solid transparent;line-height:var(--ag-internal-content-line-height);-webkit-font-smoothing:subpixel-antialiased}:where(.ag-ltr) .ag-cell{border-right:var(--ag-column-border)}:where(.ag-rtl) .ag-cell{border-left:var(--ag-column-border)}.ag-spanned-cell-wrapper{background-color:var(--ag-data-background-color);position:absolute}.ag-spanned-cell-wrapper>.ag-spanned-cell{display:block;position:relative}:where(.ag-ltr) :where(.ag-body-horizontal-content-no-gap) .ag-column-last{border-right-color:transparent}:where(.ag-rtl) :where(.ag-body-horizontal-content-no-gap) .ag-column-last{border-left-color:transparent}.ag-cell-wrapper{align-items:center;display:flex;>:where(:not(.ag-cell-value,.ag-group-value)){align-items:center;display:flex;height:var(--ag-internal-content-line-height)}&:where(.ag-row-group){align-items:flex-start}:where(.ag-full-width-row) &:where(.ag-row-group){align-items:center;height:100%}}:where(.ag-ltr) .ag-cell-wrapper{padding-left:calc(var(--ag-indentation-level)*var(--ag-row-group-indent-size))}:where(.ag-rtl) .ag-cell-wrapper{padding-right:calc(var(--ag-indentation-level)*var(--ag-row-group-indent-size))}:where(.ag-cell-wrap-text:not(.ag-cell-auto-height)) .ag-cell-wrapper{align-items:normal;height:100%;:where(.ag-cell-value){height:100%}}:where(.ag-ltr) .ag-row>.ag-cell-wrapper.ag-row-group{padding-left:calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size)*var(--ag-indentation-level))}:where(.ag-rtl) .ag-row>.ag-cell-wrapper.ag-row-group{padding-right:calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size)*var(--ag-indentation-level))}.ag-cell-focus:not(.ag-cell-range-selected):focus-within,.ag-cell-range-single-cell,.ag-cell-range-single-cell.ag-cell-range-handle,.ag-context-menu-open .ag-cell-focus:not(.ag-cell-range-selected),.ag-context-menu-open .ag-full-width-row.ag-row-focus .ag-cell-wrapper.ag-row-group,.ag-full-width-row.ag-row-focus:focus .ag-cell-wrapper.ag-row-group{border:1px solid;border-color:var(--ag-range-selection-border-color);border-style:var(--ag-range-selection-border-style);outline:initial}.ag-full-width-row.ag-row-focus:focus{box-shadow:none}:where(.ag-ltr) .ag-group-contracted,:where(.ag-ltr) .ag-group-expanded,:where(.ag-ltr) .ag-row-drag,:where(.ag-ltr) .ag-selection-checkbox{margin-right:var(--ag-cell-widget-spacing)}:where(.ag-rtl) .ag-group-contracted,:where(.ag-rtl) .ag-group-expanded,:where(.ag-rtl) .ag-row-drag,:where(.ag-rtl) .ag-selection-checkbox{margin-left:var(--ag-cell-widget-spacing)}:where(.ag-ltr) .ag-group-child-count{margin-left:3px}:where(.ag-rtl) .ag-group-child-count{margin-right:3px}.ag-row-highlight-above:after,.ag-row-highlight-below:after,.ag-row-highlight-inside:after{background-color:var(--ag-range-selection-border-color);content:\"\";height:1px;pointer-events:none;position:absolute;width:calc(100% - 1px)}:where(.ag-ltr) .ag-row-highlight-above:after,:where(.ag-ltr) .ag-row-highlight-below:after,:where(.ag-ltr) .ag-row-highlight-inside:after{left:1px}:where(.ag-rtl) .ag-row-highlight-above:after,:where(.ag-rtl) .ag-row-highlight-below:after,:where(.ag-rtl) .ag-row-highlight-inside:after{right:1px}.ag-row-highlight-above:after{top:0}.ag-row-highlight-below:after{bottom:0}.ag-row-highlight-indent:after{display:block;width:auto}:where(.ag-ltr) .ag-row-highlight-indent:after{left:calc((var(--ag-cell-widget-spacing) + var(--ag-icon-size))*2 + var(--ag-cell-horizontal-padding) + var(--ag-row-highlight-level)*var(--ag-row-group-indent-size));right:1px}:where(.ag-rtl) .ag-row-highlight-indent:after{left:1px;right:calc((var(--ag-cell-widget-spacing) + var(--ag-icon-size))*2 + var(--ag-cell-horizontal-padding) + var(--ag-row-highlight-level)*var(--ag-row-group-indent-size))}.ag-row-highlight-inside:after{background-color:var(--ag-selected-row-background-color);border:1px solid var(--ag-range-selection-border-color);display:block;height:auto;inset:0;width:auto}.ag-body,.ag-floating-bottom,.ag-floating-top{background-color:var(--ag-data-background-color)}.ag-row-odd{background-color:var(--ag-odd-row-background-color)}.ag-row-selected:before{background-color:var(--ag-selected-row-background-color);content:\"\";display:block;inset:0;pointer-events:none;position:absolute}.ag-row-hover.ag-full-width-row.ag-row-group:before,.ag-row-hover:not(.ag-full-width-row):before{background-color:var(--ag-row-hover-color);content:\"\";display:block;inset:0;pointer-events:none;position:absolute}.ag-row-hover.ag-row-selected:before{background-color:var(--ag-row-hover-color);background-image:linear-gradient(var(--ag-selected-row-background-color),var(--ag-selected-row-background-color))}.ag-row.ag-full-width-row.ag-row-group>*{position:relative}.ag-column-hover{background-color:var(--ag-column-hover-color)}.ag-header-range-highlight{background-color:var(--ag-range-header-highlight-color)}.ag-right-aligned-cell{font-variant-numeric:tabular-nums}:where(.ag-ltr) .ag-right-aligned-cell{text-align:right}:where(.ag-rtl) .ag-right-aligned-cell{text-align:left}.ag-right-aligned-cell .ag-cell-value,.ag-right-aligned-cell .ag-group-value{margin-left:auto}:where(.ag-ltr) .ag-cell:not(.ag-cell-inline-editing),:where(.ag-ltr) .ag-full-width-row .ag-cell-wrapper.ag-row-group{padding-left:calc(var(--ag-cell-horizontal-padding) - 1px + var(--ag-row-group-indent-size)*var(--ag-indentation-level));padding-right:calc(var(--ag-cell-horizontal-padding) - 1px)}:where(.ag-rtl) .ag-cell:not(.ag-cell-inline-editing),:where(.ag-rtl) .ag-full-width-row .ag-cell-wrapper.ag-row-group{padding-left:calc(var(--ag-cell-horizontal-padding) - 1px);padding-right:calc(var(--ag-cell-horizontal-padding) - 1px + var(--ag-row-group-indent-size)*var(--ag-indentation-level))}.ag-row>.ag-cell-wrapper{padding-left:calc(var(--ag-cell-horizontal-padding) - 1px);padding-right:calc(var(--ag-cell-horizontal-padding) - 1px)}.ag-row-dragging{cursor:move;opacity:.5}.ag-details-row{background-color:var(--ag-data-background-color);padding:calc(var(--ag-spacing)*3.75)}.ag-layout-auto-height,.ag-layout-print{.ag-center-cols-container,.ag-center-cols-viewport{min-height:150px}}.ag-overlay-loading-wrapper{background-color:var(--ag-modal-overlay-background-color)}.ag-skeleton-container{align-content:center;height:100%;width:100%}.ag-skeleton-effect{animation:ag-skeleton-loading 1.5s ease-in-out .5s infinite;background-color:var(--ag-row-loading-skeleton-effect-color);border-radius:.25rem;height:1em;width:100%}:where(.ag-ltr) .ag-right-aligned-cell .ag-skeleton-effect{margin-left:auto}:where(.ag-rtl) .ag-right-aligned-cell .ag-skeleton-effect{margin-right:auto}@keyframes ag-skeleton-loading{0%{background-color:var(--ag-row-loading-skeleton-effect-color)}50%{background-color:color-mix(in srgb,transparent,var(--ag-row-loading-skeleton-effect-color) 40%)}to{background-color:var(--ag-row-loading-skeleton-effect-color)}}.ag-loading{align-items:center;display:flex;height:100%}:where(.ag-ltr) .ag-loading{padding-left:var(--ag-cell-horizontal-padding)}:where(.ag-rtl) .ag-loading{padding-right:var(--ag-cell-horizontal-padding)}:where(.ag-ltr) .ag-loading-icon{padding-right:var(--ag-cell-widget-spacing)}:where(.ag-rtl) .ag-loading-icon{padding-left:var(--ag-cell-widget-spacing)}.ag-icon-loading{animation-duration:1s;animation-iteration-count:infinite;animation-name:spin;animation-timing-function:linear}@keyframes spin{0%{transform:rotate(0deg)}to{transform:rotate(1turn)}}.ag-header{background-color:var(--ag-header-background-color);border-bottom:var(--ag-header-row-border);color:var(--ag-header-text-color);display:flex;font-family:var(--ag-header-font-family);font-size:var(--ag-header-font-size);font-weight:var(--ag-header-font-weight);overflow:hidden;white-space:nowrap;width:100%}.ag-header-row{height:var(--ag-header-height);position:absolute}.ag-floating-filter-button-button,.ag-header-cell-filter-button,.ag-header-cell-menu-button,.ag-header-expand-icon,.ag-panel-title-bar-button,:where(.ag-header-cell-sortable) .ag-header-cell-label{cursor:pointer}:where(.ag-ltr) .ag-header-expand-icon{margin-left:4px}:where(.ag-rtl) .ag-header-expand-icon{margin-right:4px}.ag-header-row:where(:not(:first-child)){:where(.ag-header-cell:not(.ag-header-span-height.ag-header-span-total,.ag-header-parent-hidden),.ag-header-group-cell.ag-header-group-cell-with-group){border-top:var(--ag-header-row-border)}}.ag-header-row:where(:not(.ag-header-row-column-group)){overflow:hidden}:where(.ag-header.ag-header-allow-overflow) .ag-header-row{overflow:visible}.ag-header-cell{display:inline-flex;overflow:hidden}.ag-header-group-cell{contain:paint;display:flex}.ag-header-cell,.ag-header-group-cell{align-items:center;gap:var(--ag-cell-widget-spacing);height:100%;padding:0 var(--ag-cell-horizontal-padding);position:absolute}@property --ag-internal-moving-color{syntax:\"\";inherits:false;initial-value:transparent}@property --ag-internal-hover-color{syntax:\"\";inherits:false;initial-value:transparent}.ag-header-cell:where(:not(.ag-floating-filter)),.ag-header-group-cell{&:before{background-image:linear-gradient(var(--ag-internal-hover-color),var(--ag-internal-hover-color)),linear-gradient(var(--ag-internal-moving-color),var(--ag-internal-moving-color));content:\"\";inset:0;position:absolute;--ag-internal-moving-color:transparent;--ag-internal-hover-color:transparent;transition:--ag-internal-moving-color var(--ag-header-cell-background-transition-duration),--ag-internal-hover-color var(--ag-header-cell-background-transition-duration)}&:where(:hover):before{--ag-internal-hover-color:var(--ag-header-cell-hover-background-color)}&:where(.ag-header-cell-moving):before{--ag-internal-moving-color:var(--ag-header-cell-moving-background-color);--ag-internal-hover-color:var(--ag-header-cell-hover-background-color)}}:where(.ag-header-cell:not(.ag-floating-filter) *,.ag-header-group-cell *){position:relative;z-index:1}.ag-header-cell-menu-button:where(:not(.ag-header-menu-always-show)){opacity:0;transition:opacity .2s}.ag-header-cell-filter-button,:where(.ag-header-cell.ag-header-active) .ag-header-cell-menu-button{opacity:1}.ag-header-cell-label,.ag-header-group-cell-label{align-items:center;align-self:stretch;display:flex;flex:1 1 auto;overflow:hidden;padding:5px 0}:where(.ag-ltr) .ag-sort-indicator-icon{padding-left:var(--ag-spacing)}:where(.ag-rtl) .ag-sort-indicator-icon{padding-right:var(--ag-spacing)}.ag-header-cell-label{text-overflow:ellipsis}.ag-header-group-cell-label.ag-sticky-label{flex:none;max-width:100%;overflow:visible;position:sticky}:where(.ag-ltr) .ag-header-group-cell-label.ag-sticky-label{left:var(--ag-cell-horizontal-padding)}:where(.ag-rtl) .ag-header-group-cell-label.ag-sticky-label{right:var(--ag-cell-horizontal-padding)}.ag-header-cell-text,.ag-header-group-text{overflow:hidden;text-overflow:ellipsis}.ag-header-cell-text{word-break:break-word}.ag-header-cell-comp-wrapper{width:100%}:where(.ag-header-group-cell) .ag-header-cell-comp-wrapper{display:flex}:where(.ag-header-cell:not(.ag-header-cell-auto-height)) .ag-header-cell-comp-wrapper{align-items:center;display:flex;height:100%}.ag-header-cell-wrap-text .ag-header-cell-comp-wrapper{white-space:normal}.ag-header-cell-comp-wrapper-limited-height>*{overflow:hidden}:where(.ag-right-aligned-header) .ag-header-cell-label{flex-direction:row-reverse}:where(.ag-ltr) :where(.ag-header-cell:not(.ag-right-aligned-header)){.ag-header-label-icon,.ag-header-menu-icon{margin-left:var(--ag-spacing)}}:where(.ag-rtl) :where(.ag-header-cell:not(.ag-right-aligned-header)){.ag-header-label-icon,.ag-header-menu-icon{margin-right:var(--ag-spacing)}}:where(.ag-ltr) :where(.ag-header-cell.ag-right-aligned-header){.ag-header-label-icon,.ag-header-menu-icon{margin-right:var(--ag-spacing)}}:where(.ag-rtl) :where(.ag-header-cell.ag-right-aligned-header){.ag-header-label-icon,.ag-header-menu-icon{margin-left:var(--ag-spacing)}}.ag-header-cell:after,.ag-header-group-cell:where(:not(.ag-header-span-height.ag-header-group-cell-no-group)):after{content:\"\";height:var(--ag-header-column-border-height);position:absolute;top:calc(50% - var(--ag-header-column-border-height)*.5);z-index:1}:where(.ag-ltr) .ag-header-cell:after,:where(.ag-ltr) .ag-header-group-cell:where(:not(.ag-header-span-height.ag-header-group-cell-no-group)):after{border-right:var(--ag-header-column-border);right:0}:where(.ag-rtl) .ag-header-cell:after,:where(.ag-rtl) .ag-header-group-cell:where(:not(.ag-header-span-height.ag-header-group-cell-no-group)):after{border-left:var(--ag-header-column-border);left:0}.ag-header-highlight-after:after,.ag-header-highlight-before:after{background-color:var(--ag-accent-color);content:\"\";height:100%;position:absolute;width:1px}:where(.ag-ltr) .ag-header-highlight-before:after{left:0}:where(.ag-rtl) .ag-header-highlight-before:after{right:0}:where(.ag-ltr) .ag-header-highlight-after:after{right:0;:where(.ag-pinned-left-header) &{right:1px}}:where(.ag-rtl) .ag-header-highlight-after:after{left:0;:where(.ag-pinned-left-header) &{left:1px}}.ag-header-cell-resize{align-items:center;cursor:ew-resize;display:flex;height:100%;position:absolute;top:0;width:8px;z-index:2;&:after{background-color:var(--ag-header-column-resize-handle-color);content:\"\";height:var(--ag-header-column-resize-handle-height);position:absolute;top:calc(50% - var(--ag-header-column-resize-handle-height)*.5);width:var(--ag-header-column-resize-handle-width);z-index:1}}:where(.ag-ltr) .ag-header-cell-resize{right:-3px;&:after{left:calc(50% - var(--ag-header-column-resize-handle-width))}}:where(.ag-rtl) .ag-header-cell-resize{left:-3px;&:after{right:calc(50% - var(--ag-header-column-resize-handle-width))}}:where(.ag-header-cell.ag-header-span-height) .ag-header-cell-resize:after{height:calc(100% - var(--ag-spacing)*4);top:calc(var(--ag-spacing)*2)}.ag-header-group-cell-no-group:where(.ag-header-span-height){display:none}.ag-sort-indicator-container{display:flex;gap:var(--ag-spacing)}.ag-layout-print{&.ag-body{display:block;height:unset}&.ag-root-wrapper{display:inline-block}.ag-body-horizontal-scroll,.ag-body-vertical-scroll{display:none}&.ag-force-vertical-scroll{overflow-y:visible!important}}@media print{.ag-root-wrapper.ag-layout-print{display:table;.ag-body-horizontal-scroll-viewport,.ag-body-viewport,.ag-center-cols-container,.ag-center-cols-viewport,.ag-root,.ag-root-wrapper-body,.ag-virtual-list-viewport{display:block!important;height:auto!important;overflow:hidden!important}.ag-cell,.ag-row{-moz-column-break-inside:avoid;break-inside:avoid}}}ag-grid,ag-grid-angular{display:block}.ag-root-wrapper{border:var(--ag-wrapper-border);border-radius:var(--ag-wrapper-border-radius);display:flex;flex-direction:column;overflow:hidden;position:relative;&.ag-layout-normal{height:100%}}.ag-root-wrapper-body{display:flex;flex-direction:row;&.ag-layout-normal{flex:1 1 auto;height:0;min-height:0}}.ag-root{display:flex;flex-direction:column;position:relative;&.ag-layout-auto-height,&.ag-layout-normal{flex:1 1 auto;overflow:hidden;width:0}&.ag-layout-normal{height:100%}}.ag-virtual-list-item{height:var(--ag-list-item-height);position:absolute;width:100%}.ag-list-item-hovered:after{background-color:var(--ag-accent-color);content:\"\";height:1px;left:0;position:absolute;right:0}.ag-item-highlight-top:after{top:0}.ag-item-highlight-bottom:after{bottom:0}.ag-drag-handle{color:var(--ag-drag-handle-color);cursor:grab;:where(.ag-icon){color:var(--ag-drag-handle-color)}}.ag-chart-menu-icon,.ag-chart-settings-next,.ag-chart-settings-prev,.ag-column-group-icons,.ag-column-select-header-icon,.ag-filter-toolpanel-expand,.ag-floating-filter-button-button,.ag-group-title-bar-icon,.ag-header-cell-filter-button,.ag-header-cell-menu-button,.ag-header-expand-icon,.ag-panel-title-bar-button,.ag-panel-title-bar-button-icon,.ag-set-filter-group-icons,:where(.ag-group-contracted) .ag-icon,:where(.ag-group-expanded) .ag-icon{background-color:var(--ag-icon-button-background-color);border-radius:var(--ag-icon-button-border-radius);box-shadow:0 0 0 var(--ag-icon-button-background-spread) var(--ag-icon-button-background-color);color:var(--ag-icon-button-color);&:hover{background-color:var(--ag-icon-button-hover-background-color);box-shadow:0 0 0 var(--ag-icon-button-background-spread) var(--ag-icon-button-hover-background-color);color:var(--ag-icon-button-hover-color)}}.ag-filter-active{background-image:linear-gradient(var(--ag-icon-button-active-background-color),var(--ag-icon-button-active-background-color));border-radius:1px;outline:solid var(--ag-icon-button-background-spread) var(--ag-icon-button-active-background-color);position:relative;&:after{background-color:var(--ag-icon-button-active-indicator-color);border-radius:50%;content:\"\";height:6px;position:absolute;top:-1px;width:6px}:where(.ag-icon-filter){clip-path:path(\"M8,0C8,4.415 11.585,8 16,8L16,16L0,16L0,0L8,0Z\");color:var(--ag-icon-button-active-color)}}:where(.ag-ltr) .ag-filter-active{&:after{right:-1px}}:where(.ag-rtl) .ag-filter-active{&:after{left:-1px}}.ag-menu{background-color:var(--ag-menu-background-color);border:var(--ag-menu-border);border-radius:var(--ag-border-radius);box-shadow:var(--ag-menu-shadow);color:var(--ag-menu-text-color);max-height:100%;overflow-y:auto;position:absolute;-webkit-user-select:none;-moz-user-select:none;user-select:none}`\n);\n\n// packages/ag-grid-community/src/theming/core/core-css.ts\nvar coreDefaults = {\n wrapperBorder: true,\n rowBorder: true,\n headerRowBorder: true,\n footerRowBorder: {\n ref: \"rowBorder\"\n },\n columnBorder: {\n style: \"solid\",\n width: 1,\n color: \"transparent\"\n },\n headerColumnBorder: false,\n headerColumnBorderHeight: \"100%\",\n pinnedColumnBorder: true,\n pinnedRowBorder: true,\n sidePanelBorder: true,\n sideBarPanelWidth: 250,\n sideBarBackgroundColor: {\n ref: \"chromeBackgroundColor\"\n },\n sideButtonBarBackgroundColor: {\n ref: \"sideBarBackgroundColor\"\n },\n sideButtonBarTopPadding: 0,\n sideButtonSelectedUnderlineWidth: 2,\n sideButtonSelectedUnderlineColor: \"transparent\",\n sideButtonSelectedUnderlineTransitionDuration: 0,\n sideButtonBackgroundColor: \"transparent\",\n sideButtonTextColor: { ref: \"textColor\" },\n sideButtonHoverBackgroundColor: { ref: \"sideButtonBackgroundColor\" },\n sideButtonHoverTextColor: { ref: \"sideButtonTextColor\" },\n sideButtonSelectedBackgroundColor: backgroundColor,\n sideButtonSelectedTextColor: { ref: \"sideButtonTextColor\" },\n sideButtonBorder: \"solid 1px transparent\",\n sideButtonSelectedBorder: true,\n sideButtonLeftPadding: { ref: \"spacing\" },\n sideButtonRightPadding: { ref: \"spacing\" },\n sideButtonVerticalPadding: { calc: \"spacing * 3\" },\n headerBackgroundColor: {\n ref: \"chromeBackgroundColor\"\n },\n headerFontFamily: {\n ref: \"fontFamily\"\n },\n cellFontFamily: {\n ref: \"fontFamily\"\n },\n headerFontWeight: 500,\n headerFontSize: {\n ref: \"fontSize\"\n },\n dataFontSize: {\n ref: \"fontSize\"\n },\n headerTextColor: {\n ref: \"textColor\"\n },\n headerCellHoverBackgroundColor: \"transparent\",\n headerCellMovingBackgroundColor: { ref: \"headerCellHoverBackgroundColor\" },\n headerCellBackgroundTransitionDuration: \"0.2s\",\n cellTextColor: {\n ref: \"textColor\"\n },\n rangeSelectionBorderStyle: \"solid\",\n rangeSelectionBorderColor: accentColor,\n rangeSelectionBackgroundColor: accentMix(0.2),\n rangeSelectionChartBackgroundColor: \"#0058FF1A\",\n rangeSelectionChartCategoryBackgroundColor: \"#00FF841A\",\n rangeSelectionHighlightColor: accentMix(0.5),\n rangeHeaderHighlightColor: foregroundHeaderBackgroundMix(0.08),\n rowNumbersSelectedColor: accentMix(0.5),\n rowHoverColor: accentMix(0.08),\n columnHoverColor: accentMix(0.05),\n selectedRowBackgroundColor: accentMix(0.12),\n modalOverlayBackgroundColor: {\n ref: \"backgroundColor\",\n mix: 0.66\n },\n dataBackgroundColor: backgroundColor,\n oddRowBackgroundColor: { ref: \"dataBackgroundColor\" },\n wrapperBorderRadius: 8,\n cellHorizontalPadding: {\n calc: \"spacing * 2 * cellHorizontalPaddingScale\"\n },\n cellWidgetSpacing: {\n calc: \"spacing * 1.5\"\n },\n cellHorizontalPaddingScale: 1,\n rowGroupIndentSize: {\n calc: \"cellWidgetSpacing + iconSize\"\n },\n valueChangeDeltaUpColor: \"#43a047\",\n valueChangeDeltaDownColor: \"#e53935\",\n valueChangeValueHighlightBackgroundColor: \"#16a08580\",\n rowHeight: {\n calc: \"max(iconSize, dataFontSize) + spacing * 3.25 * rowVerticalPaddingScale\"\n },\n rowVerticalPaddingScale: 1,\n headerHeight: {\n calc: \"max(iconSize, dataFontSize) + spacing * 4 * headerVerticalPaddingScale\"\n },\n headerVerticalPaddingScale: 1,\n paginationPanelHeight: {\n ref: \"rowHeight\",\n calc: \"max(rowHeight, 22px)\"\n },\n dragHandleColor: foregroundMix(0.7),\n headerColumnResizeHandleHeight: \"30%\",\n headerColumnResizeHandleWidth: 2,\n headerColumnResizeHandleColor: {\n ref: \"borderColor\"\n },\n widgetContainerHorizontalPadding: {\n calc: \"spacing * 1.5\"\n },\n widgetContainerVerticalPadding: {\n calc: \"spacing * 1.5\"\n },\n widgetHorizontalSpacing: {\n calc: \"spacing * 1.5\"\n },\n widgetVerticalSpacing: {\n ref: \"spacing\"\n },\n iconButtonColor: { ref: \"iconColor\" },\n iconButtonBackgroundColor: \"transparent\",\n iconButtonBackgroundSpread: 4,\n iconButtonBorderRadius: 1,\n iconButtonHoverColor: { ref: \"iconButtonColor\" },\n iconButtonHoverBackgroundColor: foregroundMix(0.1),\n iconButtonActiveColor: accentColor,\n iconButtonActiveBackgroundColor: accentMix(0.28),\n iconButtonActiveIndicatorColor: accentColor,\n menuBorder: {\n color: foregroundMix(0.2)\n },\n menuBackgroundColor: foregroundBackgroundMix(0.03),\n menuTextColor: foregroundBackgroundMix(0.95),\n menuShadow: {\n ref: \"popupShadow\"\n },\n menuSeparatorColor: {\n ref: \"borderColor\"\n },\n setFilterIndentSize: {\n ref: \"iconSize\"\n },\n chartMenuPanelWidth: 260,\n chartMenuLabelColor: foregroundMix(0.8),\n dialogShadow: {\n ref: \"popupShadow\"\n },\n cellEditingBorder: {\n color: accentColor\n },\n cellEditingShadow: { ref: \"cardShadow\" },\n fullRowEditInvalidBackgroundColor: {\n ref: \"invalidColor\",\n onto: \"backgroundColor\",\n mix: 0.25\n },\n dialogBorder: {\n color: foregroundMix(0.2)\n },\n panelBackgroundColor: backgroundColor,\n panelTitleBarHeight: { ref: \"headerHeight\" },\n panelTitleBarBackgroundColor: {\n ref: \"headerBackgroundColor\"\n },\n panelTitleBarIconColor: {\n ref: \"headerTextColor\"\n },\n panelTitleBarTextColor: {\n ref: \"headerTextColor\"\n },\n panelTitleBarFontWeight: {\n ref: \"headerFontWeight\"\n },\n panelTitleBarBorder: true,\n columnSelectIndentSize: {\n ref: \"iconSize\"\n },\n toolPanelSeparatorBorder: true,\n columnDropCellBackgroundColor: foregroundMix(0.07),\n columnDropCellTextColor: {\n ref: \"textColor\"\n },\n columnDropCellDragHandleColor: {\n ref: \"textColor\"\n },\n columnDropCellBorder: {\n color: foregroundMix(0.13)\n },\n selectCellBackgroundColor: foregroundMix(0.07),\n selectCellBorder: {\n color: foregroundMix(0.13)\n },\n advancedFilterBuilderButtonBarBorder: true,\n advancedFilterBuilderIndentSize: {\n calc: \"spacing * 2 + iconSize\"\n },\n advancedFilterBuilderJoinPillColor: \"#f08e8d\",\n advancedFilterBuilderColumnPillColor: \"#a6e194\",\n advancedFilterBuilderOptionPillColor: \"#f3c08b\",\n advancedFilterBuilderValuePillColor: \"#85c0e4\",\n filterPanelApplyButtonColor: backgroundColor,\n filterPanelApplyButtonBackgroundColor: accentColor,\n filterPanelCardSubtleColor: {\n ref: \"textColor\",\n mix: 0.7\n },\n filterPanelCardSubtleHoverColor: { ref: \"textColor\" },\n findMatchColor: foregroundColor,\n findMatchBackgroundColor: \"#ffff00\",\n findActiveMatchColor: foregroundColor,\n findActiveMatchBackgroundColor: \"#ffa500\",\n filterToolPanelGroupIndent: {\n ref: \"spacing\"\n },\n rowLoadingSkeletonEffectColor: foregroundMix(0.15),\n statusBarLabelColor: foregroundColor,\n statusBarLabelFontWeight: 500,\n statusBarValueColor: foregroundColor,\n statusBarValueFontWeight: 500,\n pinnedSourceRowTextColor: {\n ref: \"textColor\"\n },\n pinnedSourceRowBackgroundColor: {\n ref: \"dataBackgroundColor\"\n },\n pinnedSourceRowFontWeight: 600,\n pinnedRowFontWeight: 600,\n pinnedRowBackgroundColor: {\n ref: \"dataBackgroundColor\"\n },\n pinnedRowTextColor: {\n ref: \"textColor\"\n }\n};\n\n// packages/ag-grid-community/src/theming/parts/batch-edit/batch-edit-style-default.css-GENERATED.ts\nvar batchEditStyleDefaultCSS = (\n /*css*/\n `.ag-cell-batch-edit{background-color:var(--ag-cell-batch-edit-background-color);color:var(--ag-cell-batch-edit-text-color);display:inherit}.ag-row-batch-edit{background-color:var(--ag-row-batch-edit-background-color);color:var(--ag-row-batch-edit-text-color)}`\n);\n\n// packages/ag-grid-community/src/theming/parts/batch-edit/batch-edit-styles.ts\nvar baseParams = {\n cellBatchEditBackgroundColor: \"rgba(220 181 139 / 16%)\",\n cellBatchEditTextColor: \"#422f00\",\n rowBatchEditBackgroundColor: {\n ref: \"cellBatchEditBackgroundColor\"\n },\n rowBatchEditTextColor: {\n ref: \"cellBatchEditTextColor\"\n }\n};\nvar baseDarkBatchEditParams = {\n ...baseParams,\n cellBatchEditTextColor: \"#f3d0b3\"\n};\nvar makeBatchEditStyleBaseTreeShakeable = () => createPart({\n feature: \"batchEditStyle\",\n params: baseParams,\n css: batchEditStyleDefaultCSS\n});\nvar batchEditStyleBase = /* @__PURE__ */ makeBatchEditStyleBaseTreeShakeable();\n\n// packages/ag-grid-community/src/theming/parts/button-style/button-style-base.css-GENERATED.ts\nvar buttonStyleBaseCSS = (\n /*css*/\n `:where(.ag-button){background:none;border:none;color:inherit;cursor:pointer;font-family:inherit;font-size:inherit;font-weight:inherit;letter-spacing:inherit;line-height:inherit;margin:0;padding:0;text-indent:inherit;text-shadow:inherit;text-transform:inherit;word-spacing:inherit;&:disabled{cursor:default}&:focus-visible{box-shadow:var(--ag-focus-shadow);outline:none}}.ag-standard-button{-webkit-appearance:none;-moz-appearance:none;appearance:none;background-color:var(--ag-button-background-color);border:var(--ag-button-border);border-radius:var(--ag-button-border-radius);color:var(--ag-button-text-color);cursor:pointer;font-weight:var(--ag-button-font-weight);padding:var(--ag-button-vertical-padding) var(--ag-button-horizontal-padding);&:hover{background-color:var(--ag-button-hover-background-color);border:var(--ag-button-hover-border);color:var(--ag-button-hover-text-color)}&:active{background-color:var(--ag-button-active-background-color);border:var(--ag-button-active-border);color:var(--ag-button-active-text-color)}&:disabled{background-color:var(--ag-button-disabled-background-color);border:var(--ag-button-disabled-border);color:var(--ag-button-disabled-text-color)}}`\n);\n\n// packages/ag-grid-community/src/theming/parts/button-style/button-styles.ts\nvar baseParams2 = {\n buttonTextColor: \"inherit\",\n buttonFontWeight: \"normal\",\n buttonBackgroundColor: \"transparent\",\n buttonBorder: false,\n buttonBorderRadius: { ref: \"borderRadius\" },\n buttonHorizontalPadding: { calc: \"spacing * 2\" },\n buttonVerticalPadding: { ref: \"spacing\" },\n buttonHoverTextColor: { ref: \"buttonTextColor\" },\n buttonHoverBackgroundColor: { ref: \"buttonBackgroundColor\" },\n buttonHoverBorder: { ref: \"buttonBorder\" },\n buttonActiveTextColor: { ref: \"buttonHoverTextColor\" },\n buttonActiveBackgroundColor: { ref: \"buttonHoverBackgroundColor\" },\n buttonActiveBorder: { ref: \"buttonHoverBorder\" },\n buttonDisabledTextColor: { ref: \"inputDisabledTextColor\" },\n buttonDisabledBackgroundColor: { ref: \"inputDisabledBackgroundColor\" },\n buttonDisabledBorder: { ref: \"inputDisabledBorder\" }\n};\nvar makeButtonStyleBaseTreeShakeable = () => createPart({\n feature: \"buttonStyle\",\n params: baseParams2,\n css: buttonStyleBaseCSS\n});\nvar buttonStyleBase = /* @__PURE__ */ makeButtonStyleBaseTreeShakeable();\nvar makeButtonStyleQuartzTreeShakeable = () => createPart({\n feature: \"buttonStyle\",\n params: {\n ...baseParams2,\n buttonBackgroundColor: backgroundColor,\n buttonBorder: true,\n buttonHoverBackgroundColor: { ref: \"rowHoverColor\" },\n buttonActiveBorder: { color: accentColor }\n },\n css: buttonStyleBaseCSS\n});\nvar buttonStyleQuartz = /* @__PURE__ */ makeButtonStyleQuartzTreeShakeable();\nvar makeButtonStyleAlpineTreeShakeable = () => createPart({\n feature: \"buttonStyle\",\n params: {\n ...baseParams2,\n buttonBackgroundColor: backgroundColor,\n buttonBorder: { color: accentColor },\n buttonFontWeight: 600,\n buttonTextColor: accentColor,\n buttonHoverBackgroundColor: { ref: \"rowHoverColor\" },\n buttonActiveBackgroundColor: accentColor,\n buttonActiveTextColor: backgroundColor\n },\n css: buttonStyleBaseCSS\n});\nvar buttonStyleAlpine = /* @__PURE__ */ makeButtonStyleAlpineTreeShakeable();\nvar makeButtonStyleBalhamTreeShakeable = () => createPart({\n feature: \"buttonStyle\",\n params: {\n ...baseParams2,\n buttonBorder: { color: foregroundColor, width: 2, style: \"outset\" },\n buttonActiveBorder: { color: foregroundColor, width: 2, style: \"inset\" },\n buttonBackgroundColor: foregroundBackgroundMix(0.07),\n buttonHoverBackgroundColor: backgroundColor,\n buttonVerticalPadding: { calc: \"spacing * 0.5\" }\n },\n css: buttonStyleBaseCSS\n});\nvar buttonStyleBalham = /* @__PURE__ */ makeButtonStyleBalhamTreeShakeable();\n\n// packages/ag-grid-community/src/theming/parts/column-drop-style/column-drop-style-bordered.css-GENERATED.ts\nvar columnDropStyleBorderedCSS = (\n /*css*/\n `.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}`\n);\n\n// packages/ag-grid-community/src/theming/parts/column-drop-style/column-drop-style-plain.css-GENERATED.ts\nvar columnDropStylePlainCSS = (\n /*css*/\n `.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))}`\n);\n\n// packages/ag-grid-community/src/theming/parts/column-drop-style/column-drop-styles.ts\nvar makeColumnDropStyleBorderedTreeShakeable = () => {\n return createPart({\n feature: \"columnDropStyle\",\n css: columnDropStyleBorderedCSS\n });\n};\nvar columnDropStyleBordered = /* @__PURE__ */ makeColumnDropStyleBorderedTreeShakeable();\nvar makeColumnDropStylePlainTreeShakeable = () => {\n return createPart({\n feature: \"columnDropStyle\",\n css: columnDropStylePlainCSS\n });\n};\nvar columnDropStylePlain = /* @__PURE__ */ makeColumnDropStylePlainTreeShakeable();\n\n// packages/ag-grid-community/src/theming/createTheme.ts\nvar gridThemeLogger = {\n warn: (...args) => {\n _warn(args[0], args[1]);\n },\n error: (...args) => {\n _error(args[0], args[1]);\n },\n preInitErr: (...args) => {\n _logPreInitErr(args[0], args[2], args[1]);\n }\n};\nvar createTheme = () => createSharedTheme(gridThemeLogger).withParams(coreDefaults).withPart(buttonStyleQuartz).withPart(columnDropStyleBordered).withPart(batchEditStyleBase);\n\n// packages/ag-grid-community/src/theming/parts/checkbox-style/checkbox-style-default.css-GENERATED.ts\nvar checkboxStyleDefaultCSS = (\n /*css*/\n `.ag-checkbox-input-wrapper,.ag-radio-button-input-wrapper{background-color:var(--ag-checkbox-unchecked-background-color);border:solid var(--ag-checkbox-border-width) var(--ag-checkbox-unchecked-border-color);flex:none;height:var(--ag-icon-size);position:relative;width:var(--ag-icon-size);:where(input){-webkit-appearance:none;-moz-appearance:none;appearance:none;cursor:pointer;display:block;height:var(--ag-icon-size);margin:0;opacity:0;width:var(--ag-icon-size)}&:after{content:\"\";display:block;inset:0;-webkit-mask-position:center;mask-position:center;-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat;pointer-events:none;position:absolute}&:where(.ag-checked){background-color:var(--ag-checkbox-checked-background-color);border-color:var(--ag-checkbox-checked-border-color);&:after{background-color:var(--ag-checkbox-checked-shape-color)}}&:where(:focus-within,:active){box-shadow:var(--ag-focus-shadow)}&:where(.ag-disabled){filter:grayscale();opacity:.5}}.ag-checkbox-input-wrapper{border-radius:var(--ag-checkbox-border-radius);&:where(.ag-checked):after{-webkit-mask-image:var(--ag-checkbox-checked-shape-image);mask-image:var(--ag-checkbox-checked-shape-image)}&:where(.ag-indeterminate){background-color:var(--ag-checkbox-indeterminate-background-color);border-color:var(--ag-checkbox-indeterminate-border-color);&:after{background-color:var(--ag-checkbox-indeterminate-shape-color);-webkit-mask-image:var(--ag-checkbox-indeterminate-shape-image);mask-image:var(--ag-checkbox-indeterminate-shape-image)}}}.ag-cell-editing-error .ag-checkbox-input-wrapper:focus-within{box-shadow:var(--ag-focus-error-shadow)}.ag-radio-button-input-wrapper{border-radius:100%;&:where(.ag-checked):after{-webkit-mask-image:var(--ag-radio-checked-shape-image);mask-image:var(--ag-radio-checked-shape-image)}}`\n);\n\n// packages/ag-grid-community/src/theming/parts/checkbox-style/checkbox-styles.ts\nvar makeCheckboxStyleDefaultTreeShakeable = () => createPart({\n feature: \"checkboxStyle\",\n params: {\n checkboxBorderWidth: 1,\n checkboxBorderRadius: {\n ref: \"borderRadius\"\n },\n checkboxUncheckedBackgroundColor: backgroundColor,\n checkboxUncheckedBorderColor: foregroundBackgroundMix(0.3),\n checkboxCheckedBackgroundColor: accentColor,\n checkboxCheckedBorderColor: { ref: \"checkboxCheckedBackgroundColor\" },\n checkboxCheckedShapeImage: {\n svg: ''\n },\n checkboxCheckedShapeColor: backgroundColor,\n checkboxIndeterminateBackgroundColor: foregroundBackgroundMix(0.3),\n checkboxIndeterminateBorderColor: { ref: \"checkboxIndeterminateBackgroundColor\" },\n checkboxIndeterminateShapeImage: {\n svg: ''\n },\n checkboxIndeterminateShapeColor: backgroundColor,\n radioCheckedShapeImage: {\n svg: ''\n }\n },\n css: checkboxStyleDefaultCSS\n});\nvar checkboxStyleDefault = /* @__PURE__ */ makeCheckboxStyleDefaultTreeShakeable();\n\n// packages/ag-grid-community/src/theming/parts/color-scheme/color-schemes.ts\nvar makeColorSchemeLightTreeShakeable = () => createPart({\n feature: \"colorScheme\",\n params: defaultLightColorSchemeParams\n});\nvar colorSchemeLight = /* @__PURE__ */ makeColorSchemeLightTreeShakeable();\nvar makeColorSchemeLightWarmTreeShakeable = () => createPart({\n feature: \"colorScheme\",\n params: {\n ...defaultLightColorSchemeParams,\n foregroundColor: \"#000000de\",\n borderColor: \"#60300026\",\n chromeBackgroundColor: \"#60300005\"\n }\n});\nvar colorSchemeLightWarm = /* @__PURE__ */ makeColorSchemeLightWarmTreeShakeable();\nvar makeColorSchemeLightColdTreeShakeable = () => createPart({\n feature: \"colorScheme\",\n params: {\n ...defaultLightColorSchemeParams,\n foregroundColor: \"#000\",\n chromeBackgroundColor: \"#f3f8f8\"\n }\n});\nvar colorSchemeLightCold = /* @__PURE__ */ makeColorSchemeLightColdTreeShakeable();\nvar darkParams = () => ({\n ...defaultLightColorSchemeParams,\n ...baseDarkBatchEditParams,\n backgroundColor: \"hsl(217, 0%, 17%)\",\n foregroundColor: \"#FFF\",\n chromeBackgroundColor: foregroundBackgroundMix(0.05),\n rowHoverColor: accentMix(0.15),\n selectedRowBackgroundColor: accentMix(0.2),\n menuBackgroundColor: foregroundBackgroundMix(0.1),\n browserColorScheme: \"dark\",\n popupShadow: \"0 0px 20px #000A\",\n cardShadow: \"0 1px 4px 1px #000A\",\n advancedFilterBuilderJoinPillColor: \"#7a3a37\",\n advancedFilterBuilderColumnPillColor: \"#355f2d\",\n advancedFilterBuilderOptionPillColor: \"#5a3168\",\n advancedFilterBuilderValuePillColor: \"#374c86\",\n filterPanelApplyButtonColor: foregroundColor,\n findMatchColor: backgroundColor,\n findActiveMatchColor: backgroundColor,\n checkboxUncheckedBorderColor: foregroundBackgroundMix(0.4),\n toggleButtonOffBackgroundColor: foregroundBackgroundMix(0.4),\n rowBatchEditBackgroundColor: foregroundBackgroundMix(0.1)\n});\nvar makeColorSchemeDarkTreeShakeable = () => createPart({\n feature: \"colorScheme\",\n params: darkParams()\n});\nvar colorSchemeDark = /* @__PURE__ */ makeColorSchemeDarkTreeShakeable();\nvar makeColorSchemeDarkWarmTreeShakeable = () => createPart({\n feature: \"colorScheme\",\n params: {\n backgroundColor: \"hsl(29, 10%, 17%)\",\n foregroundColor: \"#FFF\",\n browserColorScheme: \"dark\"\n }\n});\nvar darkBlueParams = () => ({\n ...darkParams(),\n backgroundColor: \"#1f2836\"\n});\nvar colorSchemeDarkWarm = /* @__PURE__ */ makeColorSchemeDarkWarmTreeShakeable();\nvar makeColorSchemeDarkBlueTreeShakeable = () => createPart({\n feature: \"colorScheme\",\n params: darkBlueParams()\n});\nvar colorSchemeDarkBlue = /* @__PURE__ */ makeColorSchemeDarkBlueTreeShakeable();\nvar makeColorSchemeVariableTreeShakeable = () => createPart({\n feature: \"colorScheme\",\n params: defaultLightColorSchemeParams,\n modeParams: {\n light: defaultLightColorSchemeParams,\n dark: darkParams(),\n \"dark-blue\": darkBlueParams()\n }\n});\nvar colorSchemeVariable = /* @__PURE__ */ makeColorSchemeVariableTreeShakeable();\n\n// packages/ag-grid-community/src/theming/parts/icon-set/balham/icon-set-balham.css-GENERATED.ts\nvar iconSetBalhamCSS = (\n /*css*/\n `.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-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,.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-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-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-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\")}`\n);\n\n// packages/ag-grid-community/src/theming/parts/icon-set/balham/icon-set-balham.ts\nvar iconSetBalham = /* @__PURE__ */ createPart({\n feature: \"iconSet\",\n css: iconSetBalhamCSS\n});\n\n// packages/ag-grid-community/src/theming/parts/icon-set/alpine/icon-set-alpine.css-GENERATED.ts\nvar iconSetAlpineCSS = (\n /*css*/\n `.ag-icon-aggregation:before{mask-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' xml:space='preserve' style='fill-rule:evenodd;clip-rule:evenodd;stroke-linejoin:round;stroke-miterlimit:2' viewBox='0 0 32 32'%3E%3Cpath d='M24 6H8v2l8 8-8 8v2h16v-2H11l8-8-8-8h13z' style='fill-rule:nonzero'/%3E%3C/svg%3E\")}.ag-icon-arrows:before{mask-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' xml:space='preserve' style='fill-rule:evenodd;clip-rule:evenodd;stroke-linejoin:round;stroke-miterlimit:2' viewBox='0 0 32 32'%3E%3Cpath d='M7.515 11.171 2.687 16l4.828 4.829-1.414 1.414L-.142 16l6.243-6.243zm16.97 0 1.414-1.414L32.142 16l-6.243 6.243-1.414-1.414L29.313 16zM16.028 13.2l2.829 2.828-2.829 2.829-2.828-2.829zm-4.857 11.285L16 29.313l4.829-4.828 1.414 1.414L16 32.142l-6.243-6.243zm0-16.97L9.757 6.101 16-.142l6.243 6.243-1.414 1.414L16 2.687z' style='fill-rule:nonzero'/%3E%3C/svg%3E\")}.ag-icon-asc:before{mask-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' xml:space='preserve' style='fill-rule:evenodd;clip-rule:evenodd;stroke-linejoin:round;stroke-miterlimit:2' viewBox='0 0 32 32'%3E%3Cpath d='m5.333 16 1.88 1.88 7.453-7.44v16.227h2.667V10.44l7.44 7.453L26.666 16 15.999 5.333 5.332 16z' style='fill-rule:nonzero'/%3E%3C/svg%3E\")}.ag-icon-cancel:before{mask-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' xml:space='preserve' style='fill-rule:evenodd;clip-rule:evenodd;stroke-linejoin:round;stroke-miterlimit:2' viewBox='0 0 32 32'%3E%3Cpath d='M16 2.667A13.32 13.32 0 0 0 2.667 16c0 7.373 5.96 13.333 13.333 13.333S29.333 23.373 29.333 16 23.373 2.667 16 2.667m6.667 18.12-1.88 1.88L16 17.88l-4.787 4.787-1.88-1.88L14.12 16l-4.787-4.787 1.88-1.88L16 14.12l4.787-4.787 1.88 1.88L17.88 16z' style='fill-rule:nonzero'/%3E%3C/svg%3E\")}.ag-icon-chart:before{mask-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Ctitle%3Echart%3C/title%3E%3Cg fill='%23000' fill-rule='nonzero'%3E%3Cpath d='M14 7h4v18h-4zM8 17h4v8H8zM20 13h4v12h-4z'/%3E%3C/g%3E%3C/svg%3E\")}.ag-icon-color-picker:before{mask-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' xml:space='preserve' style='fill-rule:evenodd;clip-rule:evenodd;stroke-linejoin:round;stroke-miterlimit:2' viewBox='0 0 32 32'%3E%3Cpath d='M23.907 17.587 10.574 4.254l-1.88 1.88 3.173 3.173-8.28 8.28 10.16 10.16zm-16.547 0 6.387-6.387 6.387 6.387zm18.387 2s-2.667 2.893-2.667 4.667c0 1.467 1.2 2.667 2.667 2.667s2.667-1.2 2.667-2.667c0-1.773-2.667-4.667-2.667-4.667' style='fill-rule:nonzero'/%3E%3C/svg%3E\")}.ag-icon-columns:before{mask-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' xml:space='preserve' style='fill-rule:evenodd;clip-rule:evenodd;stroke-linejoin:round;stroke-miterlimit:2' viewBox='0 0 32 32'%3E%3Cpath d='M26 25H6V7h20zM12 11H8v12h4zm6 0h-4v12h4zm6 12V11h-4v12z' style='fill-rule:nonzero' transform='translate(0 -1)'/%3E%3C/svg%3E\")}.ag-icon-contracted:before{mask-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' xml:space='preserve' style='fill-rule:evenodd;clip-rule:evenodd;stroke-linejoin:round;stroke-miterlimit:2' viewBox='0 0 32 32'%3E%3Cpath d='m12 6 10 10-10 10-2-2 8-8-8-8z'/%3E%3C/svg%3E\")}.ag-icon-copy:before{mask-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' xml:space='preserve' style='fill-rule:evenodd;clip-rule:evenodd;stroke-linejoin:round;stroke-miterlimit:2' viewBox='0 0 32 32'%3E%3Cpath d='M22 1.333H6A2.675 2.675 0 0 0 3.333 4v18.667H6V4h16zm4 5.334H11.333a2.675 2.675 0 0 0-2.667 2.667v18.667c0 1.467 1.2 2.667 2.667 2.667H26c1.467 0 2.667-1.2 2.667-2.667V9.334c0-1.467-1.2-2.667-2.667-2.667M26 28H11.333V9.333H26z' style='fill-rule:nonzero'/%3E%3C/svg%3E\")}.ag-icon-cross:before{mask-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' xml:space='preserve' style='fill-rule:evenodd;clip-rule:evenodd;stroke-linejoin:round;stroke-miterlimit:2' viewBox='0 0 32 32'%3E%3Cpath d='M15.984 13.894 27.05 2.828l2.122 2.122-11.066 11.066 11.066 11.066-2.122 2.12-11.066-11.066L4.918 29.202l-2.12-2.12 11.066-11.066L2.798 4.95l2.12-2.122z'/%3E%3C/svg%3E\")}.ag-icon-csv:before{mask-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' xml:space='preserve' style='fill-rule:evenodd;clip-rule:evenodd;stroke-linejoin:round;stroke-miterlimit:2' viewBox='0 0 32 32'%3E%3Cpath d='M384 131.9c-7.753-8.433-110.425-128.473-114.9-133L48-.1C21.5 0 0 21.5 0 48v416c0 26.5 21.5 48 48 48h288c26.5 0 48-21.5 48-48zm-35.9 2.1H257V27.9zM30 479V27h200l1 105c0 13.3-1.3 29 12 29h111l1 318z' style='fill-rule:nonzero' transform='translate(3.934 -.054)scale(.06285)'/%3E%3Cpath d='M.688-.226a.2.2 0 0 1-.017.074.28.28 0 0 1-.145.14.412.412 0 0 1-.234.013.28.28 0 0 1-.202-.168.468.468 0 0 1-.04-.19q0-.086.025-.155a.319.319 0 0 1 .182-.191.4.4 0 0 1 .134-.025q.087 0 .155.035a.3.3 0 0 1 .104.085.17.17 0 0 1 .036.097.06.06 0 0 1-.018.044.06.06 0 0 1-.042.019.06.06 0 0 1-.042-.013.2.2 0 0 1-.031-.046.2.2 0 0 0-.066-.079.16.16 0 0 0-.095-.027.17.17 0 0 0-.142.068.3.3 0 0 0-.053.193.4.4 0 0 0 .023.139.2.2 0 0 0 .067.083.2.2 0 0 0 .1.027q.063 0 .106-.031a.2.2 0 0 0 .065-.091.2.2 0 0 1 .023-.046q.014-.018.044-.018a.06.06 0 0 1 .044.018.06.06 0 0 1 .019.045' style='fill-rule:nonzero' transform='matrix(8.39799 0 0 12.455 7.122 25.977)'/%3E%3Cpath d='M.622-.215a.2.2 0 0 1-.033.117.23.23 0 0 1-.098.081.4.4 0 0 1-.153.029.34.34 0 0 1-.175-.04.23.23 0 0 1-.079-.077.17.17 0 0 1-.031-.093q0-.027.019-.045a.06.06 0 0 1 .046-.019.06.06 0 0 1 .039.014.1.1 0 0 1 .027.044.3.3 0 0 0 .03.057q.015.023.044.038.03.015.076.015.065 0 .105-.03a.09.09 0 0 0 .04-.075.08.08 0 0 0-.022-.058.14.14 0 0 0-.056-.034 1 1 0 0 0-.092-.025.7.7 0 0 1-.129-.042.2.2 0 0 1-.083-.066.17.17 0 0 1-.03-.104q0-.058.032-.105a.2.2 0 0 1 .093-.07.4.4 0 0 1 .144-.025q.066 0 .114.016a.3.3 0 0 1 .08.044.2.2 0 0 1 .046.057q.015.03.015.058a.07.07 0 0 1-.018.046.06.06 0 0 1-.046.021q-.025 0-.038-.012a.2.2 0 0 1-.028-.041.2.2 0 0 0-.047-.063Q.387-.625.326-.625a.15.15 0 0 0-.09.025q-.035.024-.035.059 0 .021.012.037a.1.1 0 0 0 .032.027.4.4 0 0 0 .111.036q.06.015.11.031.048.018.083.042a.2.2 0 0 1 .054.062.2.2 0 0 1 .019.091' style='fill-rule:nonzero' transform='matrix(8.39799 0 0 12.455 13.339 25.977)'/%3E%3Cpath d='m.184-.633.162.48.163-.483q.013-.038.019-.053a.062.062 0 0 1 .061-.039q.018 0 .034.009a.1.1 0 0 1 .025.025q.009.015.009.031L.654-.64l-.007.025-.009.024-.173.468-.019.051a.2.2 0 0 1-.021.042.1.1 0 0 1-.033.03.1.1 0 0 1-.049.012.1.1 0 0 1-.05-.011A.1.1 0 0 1 .26-.03a.2.2 0 0 1-.021-.042L.22-.123.05-.587.041-.612.033-.638.03-.662q0-.025.02-.046a.07.07 0 0 1 .05-.02q.037 0 .053.023.015.023.031.072' style='fill-rule:nonzero' transform='matrix(8.39799 0 0 12.455 18.94 25.977)'/%3E%3C/svg%3E\")}.ag-icon-cut:before{mask-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' xml:space='preserve' style='fill-rule:evenodd;clip-rule:evenodd;stroke-linejoin:round;stroke-miterlimit:2' viewBox='0 0 32 32'%3E%3Cpath d='M13.775 15.198 3.835 2.945a1.501 1.501 0 0 1 2.33-1.89l14.997 18.488A6.003 6.003 0 0 1 29.657 25c0 3.311-2.688 6-6 6s-6-2.689-6-6c0-1.335.437-2.569 1.176-3.566l-3.127-3.855-3.001 3.7A5.97 5.97 0 0 1 14 25c0 3.311-2.689 6-6 6s-6-2.689-6-6a6.003 6.003 0 0 1 8.315-5.536zm9.882 6.702a3.1 3.1 0 0 0-3.1 3.1c0 1.711 1.389 3.1 3.1 3.1s3.1-1.389 3.1-3.1-1.389-3.1-3.1-3.1M8 21.95a3.05 3.05 0 1 0 .001 6.101A3.05 3.05 0 0 0 8 21.95m9.63-11.505 1.932 2.381 8.015-9.881a1.5 1.5 0 0 0-2.329-1.89z' style='fill-rule:nonzero'/%3E%3C/svg%3E\")}.ag-icon-desc:before,.ag-icon-down:before{mask-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' xml:space='preserve' style='fill-rule:evenodd;clip-rule:evenodd;stroke-linejoin:round;stroke-miterlimit:2' viewBox='0 0 32 32'%3E%3Cpath d='m26.667 16-1.88-1.88-7.453 7.44V5.333h-2.667V21.56l-7.44-7.453L5.334 16l10.667 10.667z' style='fill-rule:nonzero'/%3E%3C/svg%3E\")}.ag-icon-excel:before{mask-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' xml:space='preserve' style='fill-rule:evenodd;clip-rule:evenodd;stroke-linejoin:round;stroke-miterlimit:2' viewBox='0 0 32 32'%3E%3Cpath d='M384 131.9c-7.753-8.433-110.425-128.473-114.9-133L48-.1C21.5 0 0 21.5 0 48v416c0 26.5 21.5 48 48 48h288c26.5 0 48-21.5 48-48zm-35.9 2.1H257V27.9zM30 479V27h200l1 105c0 13.3-1.3 29 12 29h111l1 318z' style='fill-rule:nonzero' transform='translate(3.934 -.054)scale(.06285)'/%3E%3Cpath d='m.052-.139.16-.234-.135-.208a.4.4 0 0 1-.028-.052.1.1 0 0 1-.01-.042.05.05 0 0 1 .018-.037.07.07 0 0 1 .045-.016q.03 0 .047.018a1 1 0 0 1 .047.066l.107.174.115-.174.024-.038.019-.026.021-.015a.1.1 0 0 1 .027-.005.06.06 0 0 1 .044.016.05.05 0 0 1 .018.039q0 .033-.038.089l-.141.211.152.234a.3.3 0 0 1 .03.051.1.1 0 0 1 .009.038.1.1 0 0 1-.008.031.1.1 0 0 1-.024.023.1.1 0 0 1-.034.008.1.1 0 0 1-.035-.008.1.1 0 0 1-.023-.022L.427-.067.301-.265l-.134.204-.022.034-.016.019a.1.1 0 0 1-.022.015.1.1 0 0 1-.03.005.06.06 0 0 1-.044-.016.06.06 0 0 1-.017-.047q0-.036.036-.088' style='fill-rule:nonzero' transform='matrix(17.82892 0 0 16.50777 10.371 25.928)'/%3E%3C/svg%3E\")}.ag-icon-expanded:before{mask-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' xml:space='preserve' style='fill-rule:evenodd;clip-rule:evenodd;stroke-linejoin:round;stroke-miterlimit:2' viewBox='0 0 32 32'%3E%3Cpath d='M20 26 10 16 20 6l2 2-8 8 8 8z'/%3E%3C/svg%3E\")}.ag-icon-eye-slash:before{mask-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Ctitle%3Eeye-slash%3C/title%3E%3Cpath fill='%23000' fill-rule='nonzero' d='M8.95 10.364 7 8.414 8.414 7l2.32 2.32A13.2 13.2 0 0 1 16.5 8c5.608 0 10.542 3.515 12.381 8.667L29 17l-.119.333a13 13 0 0 1-4.255 5.879l1.466 1.466-1.414 1.414-1.754-1.753A13.2 13.2 0 0 1 16.5 26c-5.608 0-10.542-3.515-12.381-8.667L4 17l.119-.333a13 13 0 0 1 4.83-6.303m1.445 1.445A11.02 11.02 0 0 0 6.148 17c1.646 4.177 5.728 7 10.352 7 1.76 0 3.441-.409 4.94-1.146l-1.878-1.878A5.06 5.06 0 0 1 16.5 22c-2.789 0-5.05-2.239-5.05-5 0-1.158.398-2.223 1.065-3.07zm1.855-.974 1.794 1.795A5.07 5.07 0 0 1 16.5 12c2.789 0 5.05 2.239 5.05 5 0 .9-.24 1.745-.661 2.474l2.305 2.306A11 11 0 0 0 26.852 17c-1.646-4.177-5.728-7-10.352-7-1.495 0-2.933.295-4.25.835'/%3E%3C/svg%3E\")}.ag-icon-eye:before{mask-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' xml:space='preserve' style='fill-rule:evenodd;clip-rule:evenodd;stroke-linejoin:round;stroke-miterlimit:2' viewBox='0 0 32 32'%3E%3Cpath d='M16.5 23c4.624 0 8.706-2.823 10.352-7-1.646-4.177-5.728-7-10.352-7s-8.706 2.823-10.352 7c1.646 4.177 5.728 7 10.352 7M4.119 15.667C5.958 10.515 10.892 7 16.5 7s10.542 3.515 12.381 8.667L29 16l-.119.333C27.042 21.485 22.108 25 16.5 25S5.958 21.485 4.119 16.333L4 16zM16.5 21c2.789 0 5.049-2.239 5.049-5s-2.26-5-5.049-5-5.049 2.239-5.049 5 2.26 5 5.049 5' style='fill-rule:nonzero'/%3E%3C/svg%3E\")}.ag-icon-filter:before{mask-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' xml:space='preserve' style='fill-rule:evenodd;clip-rule:evenodd;stroke-linejoin:round;stroke-miterlimit:2' viewBox='0 0 32 32'%3E%3Cpath d='m28 8-8 8v5l-6 6V16L6 8V6h22zM9 8l7 7v7l2-2v-5l7-7z' style='fill-rule:nonzero'/%3E%3C/svg%3E\")}.ag-icon-first:before{mask-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' xml:space='preserve' style='fill-rule:evenodd;clip-rule:evenodd;stroke-linejoin:round;stroke-miterlimit:2' viewBox='0 0 32 32'%3E%3Cpath d='M24.273 22.12 18.153 16l6.12-6.12L22.393 8l-8 8 8 8zM7.727 8h2.667v16H7.727z' style='fill-rule:nonzero'/%3E%3C/svg%3E\")}.ag-icon-group:before{mask-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' xml:space='preserve' style='fill-rule:evenodd;clip-rule:evenodd;stroke-linejoin:round;stroke-miterlimit:2' viewBox='0 0 32 32'%3E%3Cpath d='M14 7v1H9V7zm0-3v1H5.001V4zm-7 7H5v-1h2zm0-3H5V7h2zM3 5H1V4h2zm11 5v1H9v-1zm-7 4H5v-1h2zm7-1v1H9v-1z' style='fill-rule:nonzero' transform='matrix(2 0 0 2 0 -2)'/%3E%3C/svg%3E\")}.ag-icon-last:before{mask-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' xml:space='preserve' style='fill-rule:evenodd;clip-rule:evenodd;stroke-linejoin:round;stroke-miterlimit:2' viewBox='0 0 32 32'%3E%3Cpath d='m7.727 9.88 6.12 6.12-6.12 6.12L9.607 24l8-8-8-8zM21.607 8h2.667v16h-2.667z' style='fill-rule:nonzero'/%3E%3C/svg%3E\")}.ag-icon-left:before{mask-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' xml:space='preserve' style='fill-rule:evenodd;clip-rule:evenodd;stroke-linejoin:round;stroke-miterlimit:2' viewBox='0 0 32 32'%3E%3Cpath d='M26.667 14.667H10.44l7.453-7.453L16 5.334 5.333 16.001 16 26.668l1.88-1.88-7.44-7.453h16.227z' style='fill-rule:nonzero'/%3E%3C/svg%3E\")}.ag-icon-linked:before{mask-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' xml:space='preserve' style='fill-rule:evenodd;clip-rule:evenodd;stroke-linejoin:round;stroke-miterlimit:2' viewBox='0 0 32 32'%3E%3Cpath d='M5.2 16a4.136 4.136 0 0 1 4.133-4.133h5.333V9.334H9.333a6.67 6.67 0 0 0-6.667 6.667 6.67 6.67 0 0 0 6.667 6.667h5.333v-2.533H9.333A4.136 4.136 0 0 1 5.2 16.002zm5.467 1.333h10.667v-2.667H10.667zm12-8h-5.333v2.533h5.333a4.136 4.136 0 0 1 4.133 4.133 4.136 4.136 0 0 1-4.133 4.133h-5.333v2.533h5.333a6.67 6.67 0 0 0 6.667-6.667 6.67 6.67 0 0 0-6.667-6.667z' style='fill-rule:nonzero'/%3E%3C/svg%3E\")}.ag-icon-loading:before{mask-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' xml:space='preserve' style='fill-rule:evenodd;clip-rule:evenodd;stroke-linejoin:round;stroke-miterlimit:2' viewBox='0 0 32 32'%3E%3Cpath d='M17 29h-2v-8h2zm-3.586-9L7 26.414 5.586 25 12 18.586zm13 5L25 26.414 18.586 20 20 18.586zM29 17h-8v-2h8zm-18 0H3v-2h8zm2.414-5L12 13.414 5.586 7 7 5.586zm13-5L20 13.414 18.586 12 25 5.586zM17 11h-2V3h2z' style='fill-rule:nonzero' transform='translate(-3.692 -3.692)scale(1.23077)'/%3E%3C/svg%3E\")}.ag-icon-maximize:before{mask-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' xml:space='preserve' style='fill-rule:evenodd;clip-rule:evenodd;stroke-linejoin:round;stroke-miterlimit:2' viewBox='0 0 32 32'%3E%3Cpath d='M14 30H2V18h2.828v7.05l8.254-8.252 2.12 2.12-8.252 8.254H14zm4-28h12v12h-2.828V6.95l-8.254 8.252-2.12-2.12 8.252-8.254H18z'/%3E%3C/svg%3E\")}.ag-icon-menu:before{mask-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' xml:space='preserve' style='fill-rule:evenodd;clip-rule:evenodd;stroke-linejoin:round;stroke-miterlimit:2' viewBox='0 0 32 32'%3E%3Cpath d='M20 13H0v-2h20zm0-6H0V5h20zm0-6H0v-2h20z' style='fill-rule:nonzero' transform='translate(6 9)'/%3E%3C/svg%3E\")}.ag-icon-menu-alt:before{mask-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='32' height='32' fill='none' viewBox='0 0 32 32'%3E%3Cpath fill='%23000' d='M16 19a3 3 0 1 0 0-6 3 3 0 0 0 0 6M16 11a3 3 0 1 0 0-6 3 3 0 0 0 0 6M16 27a3 3 0 1 0 0-6 3 3 0 0 0 0 6'/%3E%3C/svg%3E\")}.ag-icon-minimize:before{mask-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' xml:space='preserve' style='fill-rule:evenodd;clip-rule:evenodd;stroke-linejoin:round;stroke-miterlimit:2' viewBox='0 0 32 32'%3E%3Cpath d='M2 18h12v12h-2.828v-7.05l-8.254 8.252-2.12-2.12 8.252-8.254H2zm28-4H18V2h2.828v7.05L29.082.798l2.12 2.12-8.252 8.254H30z'/%3E%3C/svg%3E\")}.ag-icon-minus:before{mask-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' xml:space='preserve' style='fill-rule:evenodd;clip-rule:evenodd;stroke-linejoin:round;stroke-miterlimit:2' viewBox='0 0 32 32'%3E%3Cpath d='M6.572 6.572a13.32 13.32 0 0 0 0 18.856 13.32 13.32 0 0 0 18.856 0 13.32 13.32 0 0 0 0-18.856 13.32 13.32 0 0 0-18.856 0m17.527 8.099v2.658H7.901v-2.658z' style='fill-rule:nonzero'/%3E%3C/svg%3E\")}.ag-icon-next:before{mask-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' xml:space='preserve' style='fill-rule:evenodd;clip-rule:evenodd;stroke-linejoin:round;stroke-miterlimit:2' viewBox='0 0 32 32'%3E%3Cpath d='M10.94 6 9.06 7.88 17.167 16 9.06 24.12 10.94 26l10-10z' style='fill-rule:nonzero' transform='translate(1)'/%3E%3C/svg%3E\")}.ag-icon-none:before{mask-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Ctitle%3Enone%3C/title%3E%3Cg fill='%23000' fill-rule='nonzero'%3E%3Cpath d='M23.708 14.645 16 6.939l-7.708 7.706 1.416 1.416L16 9.767l6.292 6.294zM23.708 20.355 16 28.061l-7.708-7.706 1.416-1.416L16 25.233l6.292-6.294z'/%3E%3C/g%3E%3C/svg%3E\")}.ag-icon-not-allowed:before{mask-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' xml:space='preserve' style='fill-rule:evenodd;clip-rule:evenodd;stroke-linejoin:round;stroke-miterlimit:2' viewBox='0 0 32 32'%3E%3Cpath d='M16 2.667C8.64 2.667 2.667 8.64 2.667 16S8.64 29.333 16 29.333 29.333 23.36 29.333 16 23.36 2.667 16 2.667M5.333 16c0-5.893 4.773-10.667 10.667-10.667 2.467 0 4.733.84 6.533 2.253L7.586 22.533A10.54 10.54 0 0 1 5.333 16M16 26.667c-2.467 0-4.733-.84-6.533-2.253L24.414 9.467A10.54 10.54 0 0 1 26.667 16c0 5.893-4.773 10.667-10.667 10.667' style='fill-rule:nonzero'/%3E%3C/svg%3E\")}.ag-icon-paste:before{mask-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' xml:space='preserve' style='fill-rule:evenodd;clip-rule:evenodd;stroke-linejoin:round;stroke-miterlimit:2' viewBox='0 0 32 32'%3E%3Cpath d='M25.334 4H19.76C19.2 2.453 17.733 1.333 16 1.333S12.8 2.453 12.24 4H6.667A2.675 2.675 0 0 0 4 6.667V28c0 1.467 1.2 2.667 2.667 2.667h18.667c1.467 0 2.667-1.2 2.667-2.667V6.667C28.001 5.2 26.801 4 25.334 4M16 4c.733 0 1.333.6 1.333 1.333s-.6 1.333-1.333 1.333-1.333-.6-1.333-1.333S15.267 4 16 4m9.333 24H6.666V6.667h2.667v4h13.333v-4h2.667z' style='fill-rule:nonzero'/%3E%3C/svg%3E\")}.ag-icon-pin:before{mask-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' xml:space='preserve' style='fill-rule:evenodd;clip-rule:evenodd;stroke-linejoin:round;stroke-miterlimit:2' viewBox='0 0 32 32'%3E%3Cpath d='m10.78 19.777-4.668-4.666s.032-1 .67-1.87c1.366-1.86 4.052-1.96 6.056-1.572l3.158-3.108c-.7-2.342 3.352-5.046 3.352-5.046l9.166 9.168q-.334.447-.67.894c-1.074 1.426-2.538 2.63-4.272 2.338l-3.32 3.218c.046.344.042.03.118 1.152.144 2.13-.64 4.324-2.632 5.34l-.746.364-4.798-4.798-7.292 7.294-1.416-1.416zm8.24-13.672c-.688.568-1.416 1.45-1.024 2.072l.49.722-4.986 4.988c-1.988-.506-4.346-.636-5.156.614l9.02 9.032q.14-.099.272-.21c1.226-1.08.764-3.04.498-4.9l4.79-4.79s1.47.938 2.936-.776l-6.79-6.79q-.026.019-.05.038' style='fill-rule:nonzero'/%3E%3C/svg%3E\")}.ag-icon-pivot:before{mask-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' xml:space='preserve' style='fill-rule:evenodd;clip-rule:evenodd;stroke-linejoin:round;stroke-miterlimit:2' viewBox='0 0 32 32'%3E%3Cpath d='M25.128 2.002c2.56.096 4.772 2.292 4.87 4.87a712 712 0 0 1 0 18.256c-.096 2.56-2.292 4.772-4.87 4.87a712 712 0 0 1-18.256 0c-2.558-.096-4.772-2.29-4.87-4.87a712 712 0 0 1 0-18.256c.096-2.56 2.292-4.772 4.87-4.87a712 712 0 0 1 18.256 0m2.966 7.954H9.892v18.136c5.086.13 10.18.098 15.264-.096 1.48-.094 2.746-1.35 2.84-2.84.192-5.064.226-10.134.098-15.2M3.968 24.1q.015.528.036 1.056c.094 1.484 1.354 2.746 2.84 2.84l1.012.036V24.1zM22 15.414l-.292.294-1.416-1.416L23 11.586l2.708 2.706-1.416 1.416-.292-.294v3.592c-.032 2.604-2.246 4.892-4.872 4.992L15.414 24l.294.292-1.416 1.416L11.586 23l2.706-2.708 1.416 1.416-.322.32c3.372.03 6.578-.164 6.614-3.034zM3.88 18.038c.002 1.346.012 2.694.038 4.04h3.938v-4.04zm.05-6.062a681 681 0 0 0-.044 4.042h3.97v-4.042zm5.962-7.99Q8.449 3.999 7.006 4c-1.57.02-2.946 1.348-3.004 2.922q-.02 1.517-.042 3.034h3.896v-2.02h2.036zm14.244-.016v3.966h3.898q-.017-.546-.038-1.092c-.094-1.48-1.35-2.746-2.84-2.84q-.51-.019-1.02-.034m-8.14-.054q-2.035.022-4.07.048v3.972h4.07zm6.106.008a213 213 0 0 0-4.07-.022v4.034h4.07z' style='fill-rule:nonzero'/%3E%3C/svg%3E\")}.ag-icon-plus:before{mask-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' xml:space='preserve' style='fill-rule:evenodd;clip-rule:evenodd;stroke-linejoin:round;stroke-miterlimit:2' viewBox='0 0 32 32'%3E%3Cpath d='M6.572 6.572a13.32 13.32 0 0 0 0 18.856 13.32 13.32 0 0 0 18.856 0 13.32 13.32 0 0 0 0-18.856 13.32 13.32 0 0 0-18.856 0m17.527 8.099v2.658h-6.77v6.77h-2.658v-6.77h-6.77v-2.658h6.77v-6.77h2.658v6.77z' style='fill-rule:nonzero'/%3E%3C/svg%3E\")}.ag-icon-previous:before{mask-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' xml:space='preserve' style='fill-rule:evenodd;clip-rule:evenodd;stroke-linejoin:round;stroke-miterlimit:2' viewBox='0 0 32 32'%3E%3Cpath d='M21.94 7.88 20.06 6l-10 10 10 10 1.88-1.88L13.833 16z' style='fill-rule:nonzero'/%3E%3C/svg%3E\")}.ag-icon-right:before{mask-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' xml:space='preserve' style='fill-rule:evenodd;clip-rule:evenodd;stroke-linejoin:round;stroke-miterlimit:2' viewBox='0 0 32 32'%3E%3Cpath d='m16 5.333-1.88 1.88 7.44 7.453H5.333v2.667H21.56l-7.44 7.453 1.88 1.88 10.667-10.667L16 5.332z' style='fill-rule:nonzero'/%3E%3C/svg%3E\")}.ag-icon-save:before{mask-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' xml:space='preserve' style='fill-rule:evenodd;clip-rule:evenodd;stroke-linejoin:round;stroke-miterlimit:2' viewBox='0 0 32 32'%3E%3Cpath d='M15.708 2.355 8 10.061.292 2.355 1.708.939 8 7.233 14.292.939z' style='fill-rule:nonzero' transform='translate(8 14)'/%3E%3Cpath d='M5 26h22v2H5zM15 4h2v18h-2z'/%3E%3C/svg%3E\")}.ag-icon-small-down:before{mask-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' xml:space='preserve' style='fill-rule:evenodd;clip-rule:evenodd;stroke-linejoin:round;stroke-miterlimit:2' viewBox='0 0 32 32'%3E%3Cpath d='M7.334 10.667 16 21.334l8.667-10.667z' style='fill-rule:nonzero'/%3E%3C/svg%3E\")}.ag-icon-small-left:before{mask-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' xml:space='preserve' style='fill-rule:evenodd;clip-rule:evenodd;stroke-linejoin:round;stroke-miterlimit:2' viewBox='0 0 32 32'%3E%3Cpath d='M21.333 7.334 10.666 16l10.667 8.667z' style='fill-rule:nonzero'/%3E%3C/svg%3E\")}.ag-icon-small-right:before{mask-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' xml:space='preserve' style='fill-rule:evenodd;clip-rule:evenodd;stroke-linejoin:round;stroke-miterlimit:2' viewBox='0 0 32 32'%3E%3Cpath d='M10.667 24.666 21.334 16 10.667 7.333z' style='fill-rule:nonzero'/%3E%3C/svg%3E\")}.ag-icon-small-up:before{mask-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' xml:space='preserve' style='fill-rule:evenodd;clip-rule:evenodd;stroke-linejoin:round;stroke-miterlimit:2' viewBox='0 0 32 32'%3E%3Cpath d='M7.334 21.333 16 10.666l8.667 10.667z' style='fill-rule:nonzero'/%3E%3C/svg%3E\")}.ag-icon-tick:before{mask-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' xml:space='preserve' style='fill-rule:evenodd;clip-rule:evenodd;stroke-linejoin:round;stroke-miterlimit:2' viewBox='0 0 32 32'%3E%3Cpath d='M11.586 22.96 27.718 6.828 29.84 8.95 11.586 27.202 2.4 18.016l2.12-2.122z'/%3E%3C/svg%3E\")}.ag-icon-tree-closed:before{mask-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' xml:space='preserve' style='fill-rule:evenodd;clip-rule:evenodd;stroke-linejoin:round;stroke-miterlimit:2' viewBox='0 0 32 32'%3E%3Cpath d='m11.94 6-1.88 1.88L18.167 16l-8.107 8.12L11.94 26l10-10z' style='fill-rule:nonzero'/%3E%3C/svg%3E\")}.ag-icon-tree-indeterminate:before{mask-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' xml:space='preserve' style='fill-rule:evenodd;clip-rule:evenodd;stroke-linejoin:round;stroke-miterlimit:2' viewBox='0 0 32 32'%3E%3Cpath d='M6 13.5h20v3H6z'/%3E%3C/svg%3E\")}.ag-icon-tree-open:before{mask-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' xml:space='preserve' style='fill-rule:evenodd;clip-rule:evenodd;stroke-linejoin:round;stroke-miterlimit:2' viewBox='0 0 32 32'%3E%3Cpath d='M24.12 9.06 16 17.167 7.88 9.06 6 10.94l10 10 10-10z' style='fill-rule:nonzero' transform='translate(0 1)'/%3E%3C/svg%3E\")}.ag-icon-unlinked:before{mask-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' xml:space='preserve' style='fill-rule:evenodd;clip-rule:evenodd;stroke-linejoin:round;stroke-miterlimit:2' viewBox='0 0 32 32'%3E%3Cpath d='M22.667 9.333h-5.333v2.533h5.333a4.136 4.136 0 0 1 4.133 4.133c0 1.907-1.307 3.507-3.08 3.973l1.947 1.947c2.173-1.107 3.667-3.32 3.667-5.92a6.67 6.67 0 0 0-6.667-6.667zm-1.334 5.334h-2.92l2.667 2.667h.253zM2.667 5.693 6.814 9.84A6.65 6.65 0 0 0 2.667 16a6.67 6.67 0 0 0 6.667 6.667h5.333v-2.533H9.334a4.136 4.136 0 0 1-4.133-4.133c0-2.12 1.613-3.867 3.68-4.093l2.76 2.76h-.973v2.667h3.64l3.027 3.027v2.307h2.307l5.347 5.333 1.68-1.68L4.362 4.002 2.669 5.695z' style='fill-rule:nonzero'/%3E%3C/svg%3E\")}.ag-icon-up:before{mask-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' xml:space='preserve' style='fill-rule:evenodd;clip-rule:evenodd;stroke-linejoin:round;stroke-miterlimit:2' viewBox='0 0 32 32'%3E%3Cpath d='m5.333 16 1.88 1.88 7.453-7.44v16.227h2.667V10.44l7.44 7.453L26.666 16 15.999 5.333 5.332 16z' style='fill-rule:nonzero'/%3E%3C/svg%3E\")}.ag-icon-grip:before{mask-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' xml:space='preserve' style='fill-rule:evenodd;clip-rule:evenodd;stroke-linejoin:round;stroke-miterlimit:2' viewBox='0 0 32 32'%3E%3Cpath d='M8 24H6v-4h2zm6 0h-2v-4h2zm6 0h-2v-4h2zm6 0h-2v-4h2zM8 18H6v-4h2zm6 0h-2v-4h2zm6 0h-2v-4h2zm6 0h-2v-4h2zM8 12H6V8h2zm6 0h-2V8h2zm6 0h-2V8h2zm6 0h-2V8h2z' style='fill-rule:nonzero'/%3E%3C/svg%3E\")}.ag-icon-settings:before{mask-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='32' height='32' fill='none' viewBox='0 0 32 32'%3E%3Cpath fill='%23000' d='M30 8h-4.1c-.5-2.3-2.5-4-4.9-4s-4.4 1.7-4.9 4H2v2h14.1c.5 2.3 2.5 4 4.9 4s4.4-1.7 4.9-4H30zm-9 4c-1.7 0-3-1.3-3-3s1.3-3 3-3 3 1.3 3 3-1.3 3-3 3M2 24h4.1c.5 2.3 2.5 4 4.9 4s4.4-1.7 4.9-4H30v-2H15.9c-.5-2.3-2.5-4-4.9-4s-4.4 1.7-4.9 4H2zm9-4c1.7 0 3 1.3 3 3s-1.3 3-3 3-3-1.3-3-3 1.3-3 3-3'/%3E%3C/svg%3E\")}.ag-icon-column-arrow:before{mask-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 32 32'%3E%3Cpath fill='currentColor' fill-rule='evenodd' d='M11 4a1 1 0 0 1 1 1v22a1 1 0 1 1-2 0V5a1 1 0 0 1 1-1' clip-rule='evenodd'/%3E%3Cpath fill='currentColor' fill-rule='evenodd' d='M2 13a1 1 0 0 1 1-1h23.5a1 1 0 1 1 0 2H3a1 1 0 0 1-1-1' clip-rule='evenodd'/%3E%3Cpath fill='currentColor' fill-rule='evenodd' d='M2 4h18v24H2zm2 2v20h14V6zM26.793 13 23 9.207l1.414-1.414L29.621 13l-5.207 5.207L23 16.793z' clip-rule='evenodd'/%3E%3C/svg%3E\")}.ag-icon-un-pin:before{mask-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='32' height='32' fill='none' viewBox='0 0 32 32'%3E%3Cpath fill='currentColor' fill-rule='evenodd' d='m6.112 15.111 3.272 3.271 1.436-1.402-2.476-2.479c.81-1.25 3.168-1.12 5.156-.614l4.986-4.988-.49-.722c-.392-.622.336-1.504 1.024-2.072l.008-.007.01-.006.032-.025 1.447 1.447 1.432-1.397-2.601-2.602s-4.052 2.704-3.352 5.046l-3.158 3.108c-2.004-.388-4.69-.288-6.056 1.572-.638.87-.67 1.87-.67 1.87m.581 11.582.014.014 5.502-5.501 4.783 4.783.746-.364c1.992-1.016 2.776-3.21 2.632-5.34-.055-.805-.068-.87-.088-.97-.008-.04-.017-.085-.03-.182l3.32-3.218c1.734.292 3.198-.912 4.272-2.338q.337-.447.67-.894l-.001-.001-.007-.007-.007-.007-.007-.007-3.87-3.87 1.585-1.584-1.414-1.414-14.381 14.38-1.237 1.209-5.69 5.687 1.417 1.416zM23.21 10.206l2.65 2.651c-1.465 1.714-2.935.776-2.935.776l-4.79 4.79q.041.291.087.583c.257 1.676.513 3.35-.585 4.317a4 4 0 0 1-.272.21l-3.739-3.744z' clip-rule='evenodd'/%3E%3C/svg%3E\")}.ag-icon-pinned-top:before{mask-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='32' height='32' fill='none' viewBox='0 0 32 32'%3E%3Cpath fill='currentColor' d='m16.708 10.878 8.708 8.706L24 21l-6.292-6.294V27h-2V14.706L9.416 21 8 19.584q4.348-4.344 8.691-8.69zM25 6H8v2h17z'/%3E%3C/svg%3E\")}.ag-icon-pinned-bottom:before{mask-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='32' height='32' fill='none' viewBox='0 0 32 32'%3E%3Cpath fill='currentColor' d='M16.708 22.122 8 13.416 9.416 12l6.292 6.294V6h2v12.294L24 12l1.416 1.416-8.691 8.69zM7.416 28h17v-2h-17z'/%3E%3C/svg%3E\")}.ag-icon-chevron-up:before{mask-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' viewBox='0 0 16 16'%3E%3Cpath fill='currentColor' fill-rule='evenodd' d='M3.479 10.521a.75.75 0 0 1 0-1.06l4-4a.75.75 0 0 1 1.06 0l4 4a.75.75 0 0 1-1.06 1.06l-3.47-3.47-3.47 3.47a.75.75 0 0 1-1.06 0' clip-rule='evenodd'/%3E%3C/svg%3E\")}.ag-icon-chevron-down:before{mask-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' viewBox='0 0 16 16'%3E%3Cpath fill='currentColor' fill-rule='evenodd' d='M12.521 5.461a.75.75 0 0 1 0 1.06l-4 4a.75.75 0 0 1-1.06 0l-4-4a.75.75 0 0 1 1.06-1.06l3.47 3.47 3.47-3.47a.75.75 0 0 1 1.06 0' clip-rule='evenodd'/%3E%3C/svg%3E\")}.ag-icon-chevron-left:before{mask-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' viewBox='0 0 16 16'%3E%3Cpath fill='currentColor' fill-rule='evenodd' d='M10.53 12.512a.75.75 0 0 1-1.06 0l-4-4a.75.75 0 0 1 0-1.06l4-4a.75.75 0 0 1 1.06 1.06l-3.47 3.47 3.47 3.47a.75.75 0 0 1 0 1.06' clip-rule='evenodd'/%3E%3C/svg%3E\")}.ag-icon-chevron-right:before{mask-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' viewBox='0 0 16 16'%3E%3Cpath fill='currentColor' fill-rule='evenodd' d='M5.47 3.47a.75.75 0 0 1 1.06 0l4 4a.75.75 0 0 1 0 1.06l-4 4a.75.75 0 0 1-1.06-1.06L8.94 8 5.47 4.53a.75.75 0 0 1 0-1.06' clip-rule='evenodd'/%3E%3C/svg%3E\")}.ag-icon-filter-add:before{mask-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='32' height='32' fill='none' viewBox='0 0 32 32'%3E%3Cpath fill='currentColor' d='M19.834 8H8c0 .304.06.612.258.842 2.716 2.854 6.682 5.548 6.742 7.974V21l2-1.5v-2.684c.056-2.267 2.968-4.417 5.49-6.75v3.087c-1.081.974-2.245 1.968-3.232 3.005a1.05 1.05 0 0 0-.258.682v3.66L13 25c0-2.74.066-5.482-.002-8.222a1.05 1.05 0 0 0-.256-.62C10.026 13.304 6.06 10.61 6 8.184V6h13.834z'/%3E%3Cpath fill='currentColor' d='M26 6h2.946v2.002H26v3.313h-2.002V8.002h-2.946V6h2.946V3.04H26z'/%3E%3C/svg%3E\")}.ag-icon-edit:before{mask-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='32' height='32' fill='none' viewBox='0 0 32 32'%3E%3Cpath fill='currentColor' d='M6.222 25.778h1.611l14.834-14.811-1.611-1.611-14.834 14.81zM4 28v-4.733L22.644 4.656a2.26 2.26 0 0 1 1.567-.634q.423 0 .833.167.412.166.734.478l1.589 1.6q.333.322.483.733t.15.822q0 .423-.161.839-.162.416-.472.728L8.733 28zm17.856-17.833-.8-.811 1.61 1.61z'/%3E%3C/svg%3E\")}`\n);\n\n// packages/ag-grid-community/src/theming/parts/icon-set/alpine/icon-set-alpine.ts\nvar iconSetAlpine = /* @__PURE__ */ createPart({\n feature: \"iconSet\",\n css: iconSetAlpineCSS\n});\n\n// packages/ag-grid-community/src/theming/parts/icon-set/material/icon-set-material.css-GENERATED.ts\nvar iconSetMaterialCSS = (\n /*css*/\n `.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-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,.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-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-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-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\")}`\n);\n\n// packages/ag-grid-community/src/theming/parts/icon-set/material/icon-set-material.ts\nvar iconSetMaterial = /* @__PURE__ */ createPart({\n feature: \"iconSet\",\n css: iconSetMaterialCSS\n});\n\n// packages/ag-grid-community/src/theming/parts/icon-set/overrides/icon-overrides.ts\nvar iconOverrides = (args) => {\n const cssParts = [];\n if (args.type === \"image\") {\n const { icons, mask } = args;\n for (const key of Object.keys(icons)) {\n const imageCssValue = imageValueToCss(icons[key]);\n if (mask) {\n cssParts.push(`.ag-icon-${key}::before { mask-image: ${imageCssValue}; }`);\n } else {\n cssParts.push(`.ag-icon-${key}::before { background-image: ${imageCssValue}; ${unsetMaskIcon} }`);\n }\n }\n }\n if (args.type === \"font\") {\n const { family, weight, color, icons } = args;\n let properties = unsetMaskIcon;\n if (family) {\n properties += ` font-family: ${fontFamilyValueToCss(family)};`;\n }\n if (weight) {\n properties += ` font-weight: ${fontWeightValueToCss(weight)};`;\n }\n if (color) {\n properties += ` color: ${colorValueToCss(color)};`;\n }\n for (const key of Object.keys(icons)) {\n cssParts.push(`.ag-icon-${key}::before { content: ${JSON.stringify(icons[key])}; ${properties} }`);\n }\n }\n return createPart({\n css: cssParts.join(\";\\n\"),\n cssImports: args.cssImports\n });\n};\nvar unsetMaskIcon = `background-color: unset; mask-image: unset; -webkit-mask-image: unset;`;\n\n// packages/ag-grid-community/src/theming/parts/icon-set/quartz/quartz-icon-data.ts\nvar iconNameToSvgFragment = {\n aggregation: '',\n arrows: '',\n asc: '',\n cancel: '',\n chart: '',\n \"color-picker\": '',\n columns: '',\n contracted: '',\n copy: '