@mongodb-js/compass-web 1.1.0 → 1.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{641.9949264e344f753ec909.mjs → 641.49ac16a2a7f7a039c8be.mjs} +24 -24
- package/dist/{65.0f0eb2e998535a138203.mjs → 65.3ea2ef32fab07ea8d2e0.mjs} +2 -2
- package/dist/797.68f77c417486d68b045b.mjs +23 -0
- package/dist/878.fdd80dc4332ed51995c7.mjs +2 -0
- package/dist/972.6d0cfa0d39c1080e6e7f.mjs +2 -0
- package/dist/972.6d0cfa0d39c1080e6e7f.mjs.LICENSE.txt +5 -0
- package/dist/assets-manifest.json +7 -7
- package/dist/compass-web.d.ts +0 -3
- package/dist/compass-web.mjs +3 -3
- package/dist/index-0b9a48a6.9aa309748548a99d4422.mjs +29 -0
- package/dist/index-bde52cb3.59f201ba8c3ef2fff1bc.mjs +1 -0
- package/dist/tsdoc-metadata.json +1 -1
- package/package.json +41 -40
- package/dist/318.e28eef3a6f052df2dd22.mjs +0 -2
- package/dist/797.f011900fbc0adc5fef75.mjs +0 -23
- package/dist/872.8e7d5b8a3b8fcff75118.mjs +0 -2
- package/dist/872.8e7d5b8a3b8fcff75118.mjs.LICENSE.txt +0 -12
- package/dist/index-0b9a48a6.23a217523e1f14bb9fce.mjs +0 -29
- package/dist/index-bde52cb3.79ced92f5eb98874dbcb.mjs +0 -1
- /package/dist/{641.9949264e344f753ec909.mjs.LICENSE.txt → 641.49ac16a2a7f7a039c8be.mjs.LICENSE.txt} +0 -0
- /package/dist/{65.0f0eb2e998535a138203.mjs.LICENSE.txt → 65.3ea2ef32fab07ea8d2e0.mjs.LICENSE.txt} +0 -0
- /package/dist/{797.f011900fbc0adc5fef75.mjs.LICENSE.txt → 797.68f77c417486d68b045b.mjs.LICENSE.txt} +0 -0
- /package/dist/{318.e28eef3a6f052df2dd22.mjs.LICENSE.txt → 878.fdd80dc4332ed51995c7.mjs.LICENSE.txt} +0 -0
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
/*! For license information please see 872.8e7d5b8a3b8fcff75118.mjs.LICENSE.txt */
|
|
2
|
-
export const __webpack_esm_id__=872;export const __webpack_esm_ids__=[872];export const __webpack_esm_modules__={37:function(e,t,o){var n,r=this&&this.__extends||(n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])},n(e,t)},function(e,t){function o(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(o.prototype=t.prototype,new o)}),i=this&&this.__decorate||function(e,t,o,n){var r,i=arguments.length,s=i<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,n);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,o,s):r(t,o))||s);return i>3&&s&&Object.defineProperty(t,o,s),s},s=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0});var a=o(7611),l=o(17890),p=o(43510),u=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r(t,e),t.prototype.getDefaultType=function(){return a.BaseFilter.CONTAINS},t.prototype.customInit=function(){this.comparator=this.filterParams.textCustomComparator?this.filterParams.textCustomComparator:t.DEFAULT_COMPARATOR,this.formatter=this.filterParams.textFormatter?this.filterParams.textFormatter:1==this.filterParams.caseSensitive?t.DEFAULT_FORMATTER:t.DEFAULT_LOWERCASE_FORMATTER,e.prototype.customInit.call(this)},t.prototype.modelFromFloatingFilter=function(e){return{type:this.selectedFilter,filter:e,filterType:"text"}},t.prototype.getApplicableFilterTypes=function(){return[a.BaseFilter.EQUALS,a.BaseFilter.NOT_EQUAL,a.BaseFilter.STARTS_WITH,a.BaseFilter.ENDS_WITH,a.BaseFilter.CONTAINS,a.BaseFilter.NOT_CONTAINS]},t.prototype.bodyTemplate=function(e){var t=this.translate.bind(this);return'<div class="ag-filter-body">\n <div class="ag-input-text-wrapper">\n <input class="ag-filter-filter" id='+(e==a.FilterConditionType.MAIN?"filterText":"filterConditionText")+' type="text" placeholder="'+t("filterOoo","Filter...")+'"/>\n </div>\n </div>'},t.prototype.initialiseFilterBodyUi=function(t){e.prototype.initialiseFilterBodyUi.call(this,t),this.addFilterChangedListener(t),this.setFilter(this.filterConditionText,a.FilterConditionType.CONDITION),this.setFilterType(this.selectedFilterCondition,a.FilterConditionType.CONDITION)},t.prototype.addFilterChangedListener=function(e){var t=this,o=e===a.FilterConditionType.MAIN?this.eFilterTextField:this.eFilterConditionTextField,n=this.getDebounceMs(this.filterParams),r=p._.debounce((function(){return t.onFilterTextFieldChanged(e)}),n);this.addDestroyableEventListener(o,"input",r)},t.prototype.refreshFilterBodyUi=function(e){var t=e===a.FilterConditionType.MAIN?this.selectedFilter:this.selectedFilterCondition;this.eFilterConditionTextField&&this.addFilterChangedListener(a.FilterConditionType.CONDITION);var o=e===a.FilterConditionType.MAIN?this.eFilterTextField:this.eFilterConditionTextField;if(o){var n=!this.doesFilterHaveHiddenInput(t)&&t!==a.BaseFilter.EMPTY;p._.setVisible(o,n)}},t.prototype.afterGuiAttached=function(){this.eFilterTextField.focus()},t.prototype.filterValues=function(e){return e===a.FilterConditionType.MAIN?this.filterText:this.filterConditionText},t.prototype.individualFilterPasses=function(e,t){var o=t==a.FilterConditionType.MAIN?this.filterText:this.filterConditionText,n=t==a.FilterConditionType.MAIN?this.selectedFilter:this.selectedFilterCondition,r=this.customFilterOptions[n];if(r&&(null!=o||r.hideFilterInput)){var i=this.filterParams.valueGetter(e.node),s=this.formatter(i);return r.test(o,s)}return o?this.checkIndividualFilter(e,n,o):t===a.FilterConditionType.MAIN||"AND"===this.conditionValue},t.prototype.checkIndividualFilter=function(e,t,o){var n=this.filterParams.valueGetter(e.node),r=this.formatter(o);if(null==n||void 0===n)return t===a.BaseFilter.NOT_EQUAL||t===a.BaseFilter.NOT_CONTAINS;var i=this.formatter(n);return this.comparator(t,i,r)},t.prototype.onFilterTextFieldChanged=function(e){var t=e===a.FilterConditionType.MAIN?this.eFilterTextField.value:this.eFilterConditionTextField.value,o=e===a.FilterConditionType.MAIN?this.filterText:this.filterConditionText,n=p._.makeNull(t);if(n&&""===n.trim()&&(n=null),o!==n){var r=n&&1!=this.filterParams.caseSensitive?n.toLowerCase():n,i=o&&1!=this.filterParams.caseSensitive?o.toLowerCase():o;e===a.FilterConditionType.MAIN?this.filterText=this.formatter(n):this.filterConditionText=this.formatter(n),i!==r&&this.onFilterChanged()}},t.prototype.setFilter=function(e,t){if(e=p._.makeNull(e),t===a.FilterConditionType.MAIN)if(e){if(this.filterText=this.formatter(e),!this.eFilterTextField)return;this.eFilterTextField.value=e}else{if(this.filterText=null,!this.eFilterTextField)return;this.eFilterTextField.value=null}else if(e){if(this.filterConditionText=this.formatter(e),!this.eFilterConditionTextField)return;this.eFilterConditionTextField.value=e}else{if(this.filterConditionText=null,!this.eFilterConditionTextField)return;this.eFilterConditionTextField.value=null}},t.prototype.getFilter=function(){return this.filterText},t.prototype.resetState=function(e){void 0===e&&(e=!1),e||(this.setFilterType(this.defaultFilter,a.FilterConditionType.MAIN),this.setFilter(null,a.FilterConditionType.MAIN)),this.setFilterType(this.defaultFilter,a.FilterConditionType.CONDITION),this.setFilter(null,a.FilterConditionType.CONDITION)},t.prototype.serialize=function(e){var t=e===a.FilterConditionType.MAIN?this.selectedFilter:this.selectedFilterCondition,o=e===a.FilterConditionType.MAIN?this.filterText:this.filterConditionText;return{type:t||this.defaultFilter,filter:o,filterType:"text"}},t.prototype.parse=function(e,t){this.setFilterType(e.type,t),this.setFilter(e.filter,t)},t.prototype.setType=function(e,t){this.setFilterType(e,t)},t.DEFAULT_FORMATTER=function(e){return e},t.DEFAULT_LOWERCASE_FORMATTER=function(e){return null==e?null:e.toString().toLowerCase()},t.DEFAULT_COMPARATOR=function(e,o,n){switch(e){case t.CONTAINS:return o.indexOf(n)>=0;case t.NOT_CONTAINS:return-1===o.indexOf(n);case t.EQUALS:return o===n;case t.NOT_EQUAL:return o!=n;case t.STARTS_WITH:return 0===o.indexOf(n);case t.ENDS_WITH:var r=o.lastIndexOf(n);return r>=0&&r===o.length-n.length;default:return console.warn("invalid filter type "+e),!1}},i([l.QuerySelector("#filterText"),s("design:type",HTMLInputElement)],t.prototype,"eFilterTextField",void 0),i([l.QuerySelector("#filterConditionText"),s("design:type",HTMLInputElement)],t.prototype,"eFilterConditionTextField",void 0),t}(a.ComparableBaseFilter);t.TextFilter=u},1080:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0});var o=function(){function e(e,t){this.active=!0,this.nodeIdsToColumns={},this.mapToItems={},this.keepingColumns=e,this.pathRoot={rowNode:t,children:null},this.mapToItems[t.id]=this.pathRoot}return e.prototype.setInactive=function(){this.active=!1},e.prototype.isActive=function(){return this.active},e.prototype.depthFirstSearchChangedPath=function(e,t){if(e.children)for(var o=0;o<e.children.length;o++)this.depthFirstSearchChangedPath(e.children[o],t);t(e.rowNode)},e.prototype.depthFirstSearchEverything=function(e,t,o){if(e.childrenAfterGroup)for(var n=0;n<e.childrenAfterGroup.length;n++){var r=e.childrenAfterGroup[n];r.childrenAfterGroup?this.depthFirstSearchEverything(e.childrenAfterGroup[n],t,o):o&&t(r)}t(e)},e.prototype.forEachChangedNodeDepthFirst=function(e,t){void 0===t&&(t=!1),this.active?this.depthFirstSearchChangedPath(this.pathRoot,e):this.depthFirstSearchEverything(this.pathRoot.rowNode,e,t)},e.prototype.executeFromRootNode=function(e){e(this.pathRoot.rowNode)},e.prototype.createPathItems=function(e){for(var t=e,o=0;!this.mapToItems[t.id];){var n={rowNode:t,children:null};this.mapToItems[t.id]=n,o++,t=t.parent}return o},e.prototype.populateColumnsMap=function(e,t){var o=this;if(this.keepingColumns&&t)for(var n=e;n;)this.nodeIdsToColumns[n.id]||(this.nodeIdsToColumns[n.id]={}),t.forEach((function(e){return o.nodeIdsToColumns[n.id][e.getId()]=!0})),n=n.parent},e.prototype.linkPathItems=function(e,t){for(var o=e,n=0;n<t;n++){var r=this.mapToItems[o.id],i=this.mapToItems[o.parent.id];i.children||(i.children=[]),i.children.push(r),o=o.parent}},e.prototype.addParentNode=function(e,t){var o=this.createPathItems(e);this.linkPathItems(e,o),this.populateColumnsMap(e,t)},e.prototype.canSkip=function(e){return this.active&&!this.mapToItems[e.id]},e.prototype.getValueColumnsForNode=function(e,t){if(!this.keepingColumns)return t;var o=this.nodeIdsToColumns[e.id];return t.filter((function(e){return o[e.getId()]}))},e.prototype.getNotValueColumnsForNode=function(e,t){if(!this.keepingColumns)return null;var o=this.nodeIdsToColumns[e.id];return t.filter((function(e){return!o[e.getId()]}))},e}();t.ChangedPath=o},1659:function(e,t,o){var n,r=this&&this.__extends||(n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])},n(e,t)},function(e,t){function o(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(o.prototype=t.prototype,new o)}),i=this&&this.__decorate||function(e,t,o,n){var r,i=arguments.length,s=i<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,n);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,o,s):r(t,o))||s);return i>3&&s&&Object.defineProperty(t,o,s),s},s=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},a=this&&this.__param||function(e,t){return function(o,n){t(o,n,e)}};Object.defineProperty(t,"__esModule",{value:!0});var l=o(99162),p=o(6145),u=o(27490),c=o(3978),d=o(47304),h=o(16159),f=o(33018),g=o(44494),m=o(24421),y=o(59804),v=o(81404),C=o(51890),w=o(12427),_=o(42062),E=o(63833),b=o(21559),R=o(33669),S=o(72738),O=o(31551),P=o(5988),A=o(71627),T=o(15558),D=o(43980),N=o(43510),I=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.rowCompsByIndex={},t.floatingTopRowComps=[],t.floatingBottomRowComps=[],t.refreshInProgress=!1,t}return r(t,e),t.prototype.registerGridCore=function(e){this.gridCore=e},t.prototype.agWire=function(e){this.logger=e.create("RowRenderer")},t.prototype.registerGridComp=function(e){this.gridPanel=e,this.rowContainers=this.gridPanel.getRowContainers(),this.addDestroyableEventListener(this.eventService,f.Events.EVENT_PAGINATION_CHANGED,this.onPageLoaded.bind(this)),this.addDestroyableEventListener(this.eventService,f.Events.EVENT_PINNED_ROW_DATA_CHANGED,this.onPinnedRowDataChanged.bind(this)),this.addDestroyableEventListener(this.eventService,f.Events.EVENT_DISPLAYED_COLUMNS_CHANGED,this.onDisplayedColumnsChanged.bind(this)),this.addDestroyableEventListener(this.eventService,f.Events.EVENT_BODY_SCROLL,this.redrawAfterScroll.bind(this)),this.addDestroyableEventListener(this.eventService,f.Events.EVENT_BODY_HEIGHT_CHANGED,this.redrawAfterScroll.bind(this)),this.addDestroyableEventListener(this.gridOptionsWrapper,l.GridOptionsWrapper.PROP_DOM_LAYOUT,this.onDomLayoutChanged.bind(this)),this.printLayout=this.gridOptionsWrapper.getDomLayout()===g.Constants.DOM_LAYOUT_PRINT,this.embedFullWidthRows=this.printLayout||this.gridOptionsWrapper.isEmbedFullWidthRows(),this.redrawAfterModelUpdate()},t.prototype.onDomLayoutChanged=function(){var e=this.gridOptionsWrapper.getDomLayout()===g.Constants.DOM_LAYOUT_PRINT,t=e||this.gridOptionsWrapper.isEmbedFullWidthRows(),o=t!==this.embedFullWidthRows||this.printLayout!==e;this.printLayout=e,this.embedFullWidthRows=t,o&&this.redrawAfterModelUpdate()},t.prototype.datasourceChanged=function(){this.firstRenderedRow=0,this.lastRenderedRow=-1;var e=Object.keys(this.rowCompsByIndex);this.removeRowComps(e)},t.prototype.onPageLoaded=function(e){N._.missing(e)&&(e={type:f.Events.EVENT_MODEL_UPDATED,api:this.gridApi,columnApi:this.columnApi,animate:!1,keepRenderedRows:!1,newData:!1,newPage:!1}),this.onModelUpdated(e)},t.prototype.getAllCellsForColumn=function(e){var t=[];function o(o,n){var r=n.getCellForCol(e);r&&t.push(r)}return N._.iterateObject(this.rowCompsByIndex,o),N._.iterateObject(this.floatingBottomRowComps,o),N._.iterateObject(this.floatingTopRowComps,o),t},t.prototype.refreshFloatingRowComps=function(){this.refreshFloatingRows(this.floatingTopRowComps,this.pinnedRowModel.getPinnedTopRowData(),this.rowContainers.floatingTopPinnedLeft,this.rowContainers.floatingTopPinnedRight,this.rowContainers.floatingTop,this.rowContainers.floatingTopFullWidth),this.refreshFloatingRows(this.floatingBottomRowComps,this.pinnedRowModel.getPinnedBottomRowData(),this.rowContainers.floatingBottomPinnedLeft,this.rowContainers.floatingBottomPinnedRight,this.rowContainers.floatingBottom,this.rowContainers.floatingBottomFullWith)},t.prototype.refreshFloatingRows=function(e,t,o,n,r,i){var s=this;e.forEach((function(e){e.destroy()})),e.length=0,t&&t.forEach((function(t){var a=new h.RowComp(s.$scope,r,o,n,i,t,s.beans,!1,!1,s.printLayout,s.embedFullWidthRows);a.init(),e.push(a)})),this.flushContainers(e)},t.prototype.onPinnedRowDataChanged=function(){this.redrawAfterModelUpdate({recycleRows:!0})},t.prototype.onModelUpdated=function(e){var t={recycleRows:e.keepRenderedRows,animate:e.animate,newData:e.newData,newPage:e.newPage,onlyBody:!0};this.redrawAfterModelUpdate(t)},t.prototype.getRenderedIndexesForRowNodes=function(e){var t=[];return N._.missing(e)||N._.iterateObject(this.rowCompsByIndex,(function(o,n){var r=n.getRowNode();e.indexOf(r)>=0&&t.push(o)})),t},t.prototype.redrawRows=function(e){if(e&&0!=e.length){var t=this.getRenderedIndexesForRowNodes(e);this.removeRowComps(t),this.redrawAfterModelUpdate({recycleRows:!0})}},t.prototype.getCellToRestoreFocusToAfterRefresh=function(e){var t=e.suppressKeepFocus?null:this.focusedCellController.getFocusCellToUseAfterRefresh();if(N._.missing(t))return null;var o=document.activeElement,n=this.gridOptionsWrapper.getDomData(o,m.CellComp.DOM_DATA_KEY_CELL_COMP);return N._.missing(n)?null:t},t.prototype.redrawAfterModelUpdate=function(e){void 0===e&&(e={}),this.getLockOnRefresh();var t=this.getCellToRestoreFocusToAfterRefresh(e);this.sizeContainerToPageHeight(),this.scrollToTopIfNewData(e);var o=!this.printLayout&&e.recycleRows,n=e.animate&&this.gridOptionsWrapper.isAnimateRows(),r=this.binRowComps(o);this.redraw(r,n),e.onlyBody||this.refreshFloatingRowComps(),this.restoreFocusedCell(t),this.releaseLockOnRefresh()},t.prototype.scrollToTopIfNewData=function(e){var t=e.newData||e.newPage,o=this.gridOptionsWrapper.isSuppressScrollOnNewData();t&&!o&&this.gridPanel.scrollToTop()},t.prototype.sizeContainerToPageHeight=function(){var e=[this.rowContainers.body,this.rowContainers.fullWidth,this.rowContainers.pinnedLeft,this.rowContainers.pinnedRight];if(this.printLayout)e.forEach((function(e){return e.setHeight(null)}));else{var t=this.paginationProxy.getCurrentPageHeight();0===t&&(t=1),this.maxDivHeightScaler.setModelHeight(t);var o=this.maxDivHeightScaler.getUiContainerHeight();e.forEach((function(e){return e.setHeight(o)}))}},t.prototype.getLockOnRefresh=function(){if(this.refreshInProgress)throw new Error("ag-Grid: cannot get grid to draw rows when it is in the middle of drawing rows. Your code probably called a grid API method while the grid was in the render stage. To overcome this, put the API call into a timeout, eg instead of api.refreshView(), call setTimeout(function(){api.refreshView(),0}). To see what part of your code that caused the refresh check this stacktrace.");this.refreshInProgress=!0},t.prototype.releaseLockOnRefresh=function(){this.refreshInProgress=!1},t.prototype.restoreFocusedCell=function(e){e&&this.focusedCellController.setFocusedCell(e.rowIndex,e.column,e.floating,!0)},t.prototype.stopEditing=function(e){void 0===e&&(e=!1),this.forEachRowComp((function(t,o){o.stopEditing(e)}))},t.prototype.forEachCellComp=function(e){this.forEachRowComp((function(t,o){return o.forEachCellComp(e)}))},t.prototype.forEachRowComp=function(e){N._.iterateObject(this.rowCompsByIndex,e),N._.iterateObject(this.floatingTopRowComps,e),N._.iterateObject(this.floatingBottomRowComps,e)},t.prototype.addRenderedRowListener=function(e,t,o){var n=this.rowCompsByIndex[t];n&&n.addEventListener(e,o)},t.prototype.flashCells=function(e){void 0===e&&(e={}),this.forEachCellCompFiltered(e.rowNodes,e.columns,(function(e){return e.flashCell()}))},t.prototype.refreshCells=function(e){void 0===e&&(e={});var t={forceRefresh:e.force,newData:!1};this.forEachCellCompFiltered(e.rowNodes,e.columns,(function(e){return e.refreshCell(t)}))},t.prototype.getCellRendererInstances=function(e){var t=[];return this.forEachCellCompFiltered(e.rowNodes,e.columns,(function(e){var o=e.getCellRenderer();o&&t.push(o)})),t},t.prototype.getCellEditorInstances=function(e){var t=[];return this.forEachCellCompFiltered(e.rowNodes,e.columns,(function(e){var o=e.getCellEditor();o&&t.push(o)})),t},t.prototype.getEditingCells=function(){var e=[];return this.forEachCellComp((function(t){if(t.isEditing()){var o=t.getGridCell().getGridCellDef();e.push(o)}})),e},t.prototype.forEachCellCompFiltered=function(e,t,o){var n,r,i=this;N._.exists(e)&&(n={top:{},bottom:{},normal:{}},e.forEach((function(e){e.rowPinned===g.Constants.PINNED_TOP?n.top[e.id]=!0:e.rowPinned===g.Constants.PINNED_BOTTOM?n.bottom[e.id]=!0:n.normal[e.id]=!0}))),N._.exists(t)&&(r={},t.forEach((function(e){var t=i.columnController.getGridColumn(e);N._.exists(t)&&(r[t.getId()]=!0)})));var s=function(e){var t=e.getRowNode(),i=t.id,s=t.rowPinned;if(N._.exists(n))if(s===g.Constants.PINNED_BOTTOM){if(!n.bottom[i])return}else if(s===g.Constants.PINNED_TOP){if(!n.top[i])return}else if(!n.normal[i])return;e.forEachCellComp((function(e){var t=e.getColumn().getId();r&&!r[t]||o(e)}))};N._.iterateObject(this.rowCompsByIndex,(function(e,t){s(t)})),this.floatingTopRowComps&&this.floatingTopRowComps.forEach(s),this.floatingBottomRowComps&&this.floatingBottomRowComps.forEach(s)},t.prototype.destroy=function(){e.prototype.destroy.call(this);var t=Object.keys(this.rowCompsByIndex);this.removeRowComps(t)},t.prototype.binRowComps=function(e){var t,o=this,n={};return e?(t=[],N._.iterateObject(this.rowCompsByIndex,(function(e,r){var i=r.getRowNode();N._.exists(i.id)?(n[i.id]=r,delete o.rowCompsByIndex[e]):t.push(e)}))):t=Object.keys(this.rowCompsByIndex),this.removeRowComps(t),n},t.prototype.removeRowComps=function(e){var t=this;e.forEach((function(e){t.rowCompsByIndex[e].destroy(),delete t.rowCompsByIndex[e]}))},t.prototype.redrawAfterScroll=function(){this.getLockOnRefresh(),this.redraw(null,!1,!0),this.releaseLockOnRefresh()},t.prototype.removeRowCompsNotToDraw=function(e){var t={};e.forEach((function(e){return t[e]=!0}));var o=Object.keys(this.rowCompsByIndex),n=N._.filter(o,(function(e){return!t[e]}));this.removeRowComps(n)},t.prototype.calculateIndexesToDraw=function(){var e=this,t=N._.createArrayOfNumbers(this.firstRenderedRow,this.lastRenderedRow);return N._.iterateObject(this.rowCompsByIndex,(function(o,n){var r=Number(o);(r<e.firstRenderedRow||r>e.lastRenderedRow)&&e.keepRowBecauseEditingOrFocused(n)&&t.push(r)})),t.sort((function(e,t){return e-t})),t},t.prototype.redraw=function(e,t,o){var n=this;void 0===t&&(t=!1),void 0===o&&(o=!1),this.maxDivHeightScaler.updateOffset(),this.workOutFirstAndLastRowsToRender();var r=this.calculateIndexesToDraw();this.removeRowCompsNotToDraw(r),this.printLayout&&(t=!1);var i=[],s=[];r.forEach((function(r){var a=n.createOrUpdateRowComp(r,e,t,o);N._.exists(a)&&(s.push(a),N._.pushAll(i,a.getAndClearNextVMTurnFunctions()))})),this.flushContainers(s),N._.executeNextVMTurn(i),!o||this.gridOptionsWrapper.isSuppressAnimationFrame()||this.printLayout?this.destroyRowComps(e,t):this.beans.taskQueue.addP2Task(this.destroyRowComps.bind(this,e,t)),this.checkAngularCompile()},t.prototype.flushContainers=function(e){N._.iterateObject(this.rowContainers,(function(e,t){t&&t.flushRowTemplates()})),e.forEach((function(e){return e.afterFlush()}))},t.prototype.onDisplayedColumnsChanged=function(){var e=this.columnController.isPinningLeft(),t=this.columnController.isPinningRight();(this.pinningLeft!==e||t!==this.pinningRight)&&(this.pinningLeft=e,this.pinningRight=t,this.embedFullWidthRows&&this.redrawFullWidthEmbeddedRows())},t.prototype.redrawFullWidthEmbeddedRows=function(){var e=[];N._.iterateObject(this.rowCompsByIndex,(function(t,o){if(o.isFullWidth()){var n=o.getRowNode().rowIndex;e.push(n.toString())}})),this.refreshFloatingRowComps(),this.removeRowComps(e),this.redrawAfterScroll()},t.prototype.refreshFullWidthRows=function(){var e=[];N._.iterateObject(this.rowCompsByIndex,(function(t,o){if(o.isFullWidth()){var n=o.getRowNode().rowIndex;e.push(n.toString())}})),this.removeRowComps(e),this.redrawAfterScroll()},t.prototype.createOrUpdateRowComp=function(e,t,o,n){var r,i=this.rowCompsByIndex[e];if(i||(r=this.paginationProxy.getRow(e),N._.exists(r)&&N._.exists(t)&&t[r.id]&&r.alreadyRendered&&(i=t[r.id],t[r.id]=null)),i)i.ensureDomOrder();else{if(r||(r=this.paginationProxy.getRow(e)),!N._.exists(r))return;i=this.createRowComp(r,o,n)}return r&&(r.alreadyRendered=!0),this.rowCompsByIndex[e]=i,i},t.prototype.destroyRowComps=function(e,t){var o=[];N._.iterateObject(e,(function(e,n){n&&(n.destroy(t),N._.pushAll(o,n.getAndClearDelayedDestroyFunctions()))})),N._.executeInAWhile(o)},t.prototype.checkAngularCompile=function(){var e=this;this.gridOptionsWrapper.isAngularCompileRows()&&window.setTimeout((function(){e.$scope.$apply()}),0)},t.prototype.workOutFirstAndLastRowsToRender=function(){var e,t;if(this.paginationProxy.isRowsToRender())if(this.printLayout)e=this.paginationProxy.getPageFirstRow(),t=this.paginationProxy.getPageLastRow();else{var o=this.paginationProxy?this.paginationProxy.getPixelOffset():0,n=this.maxDivHeightScaler.getOffset(),r=this.gridPanel.getVScrollPosition(),i=r.top,s=r.bottom,a=this.gridOptionsWrapper.getRowBufferInPixels(),l=i+o+n-a,p=s+o+n+a;this.ensureAllRowsInRangeHaveHeightsCalculated(l,p);var u=this.paginationProxy.getRowIndexAtPixel(l),c=this.paginationProxy.getRowIndexAtPixel(p),d=this.paginationProxy.getPageFirstRow(),h=this.paginationProxy.getPageLastRow();u<d&&(u=d),c>h&&(c=h),e=u,t=c}else e=0,t=-1;var m=this.gridOptionsWrapper.getDomLayout()===g.Constants.DOM_LAYOUT_NORMAL,y=this.gridOptionsWrapper.isSuppressMaxRenderedRowRestriction();m&&!y&&t-e>500&&(t=e+500);var v=e!==this.firstRenderedRow,C=t!==this.lastRenderedRow;if(v||C){this.firstRenderedRow=e,this.lastRenderedRow=t;var w={type:f.Events.EVENT_VIEWPORT_CHANGED,firstRow:e,lastRow:t,api:this.gridApi,columnApi:this.columnApi};this.eventService.dispatchEvent(w)}if(this.paginationProxy.isRowsToRender()){var _={type:f.Events.EVENT_FIRST_DATA_RENDERED,firstRow:e,lastRow:t,api:this.gridApi,columnApi:this.columnApi};this.eventService.dispatchEventOnce(_)}},t.prototype.ensureAllRowsInRangeHaveHeightsCalculated=function(e,t){this.paginationProxy.ensureRowHeightsValid(e,t,-1,-1)&&(this.sizeContainerToPageHeight(),this.maxDivHeightScaler.updateOffset())},t.prototype.getFirstVirtualRenderedRow=function(){return this.firstRenderedRow},t.prototype.getLastVirtualRenderedRow=function(){return this.lastRenderedRow},t.prototype.keepRowBecauseEditingOrFocused=function(e){var t=e.getRowNode(),o=this.focusedCellController.isRowNodeFocused(t),n=e.isEditing();return(o||n)&&!!this.paginationProxy.isRowPresent(t)||!1},t.prototype.createRowComp=function(e,t,o){var n=this.gridOptionsWrapper.isSuppressAnimationFrame(),r=o&&!n&&!this.printLayout,i=new h.RowComp(this.$scope,this.rowContainers.body,this.rowContainers.pinnedLeft,this.rowContainers.pinnedRight,this.rowContainers.fullWidth,e,this.beans,t,r,this.printLayout,this.embedFullWidthRows);return i.init(),i},t.prototype.getRenderedNodes=function(){var e=this.rowCompsByIndex;return Object.keys(e).map((function(t){return e[t].getRowNode()}))},t.prototype.navigateToNextCell=function(e,t,o,n){for(var r;;){var i=this.getComponentForCell(o).getColSpanningList();if(t===g.Constants.KEY_RIGHT&&i.length>1&&(o=new b.GridCell({rowIndex:o.rowIndex,column:i[i.length-1],floating:o.floating})),r=this.cellNavigationService.getNextCellToFocus(t,o),N._.missing(r))break;if(!this.gridOptionsWrapper.isGroupUseEntireRow())break;if(!this.paginationProxy.getRow(r.rowIndex).group)break}if(r&&(r=this.getComponentForCell(r).getGridCell()),n){var s=this.gridOptionsWrapper.getNavigateToNextCellFunc();if(N._.exists(s)){var a=s({key:t,previousCellDef:o.getGridCellDef(),nextCellDef:r?r.getGridCellDef():null,event:e});r=N._.exists(a)?new b.GridCell(a):null}}if(r&&(this.ensureCellVisible(r),this.focusedCellController.setFocusedCell(r.rowIndex,r.column,r.floating,!0),this.rangeController)){var l=new b.GridCell({rowIndex:r.rowIndex,floating:r.floating,column:r.column});this.rangeController.setRangeToCell(l)}},t.prototype.ensureCellVisible=function(e){N._.missing(e.floating)&&this.gridPanel.ensureIndexVisible(e.rowIndex),e.column.isPinned()||this.gridPanel.ensureColumnVisible(e.column),this.gridPanel.horizontallyScrollHeaderCenterAndFloatingCenter(),this.animationFrameService.flushAllFrames()},t.prototype.startEditingCell=function(e,t,o){var n=this.getComponentForCell(e);n&&n.startRowOrCellEdit(t,o)},t.prototype.getComponentForCell=function(e){var t;switch(e.floating){case g.Constants.PINNED_TOP:t=this.floatingTopRowComps[e.rowIndex];break;case g.Constants.PINNED_BOTTOM:t=this.floatingBottomRowComps[e.rowIndex];break;default:t=this.rowCompsByIndex[e.rowIndex]}return t?t.getRenderedCellForColumn(e.column):null},t.prototype.onTabKeyDown=function(e,t){var o=t.shiftKey;this.moveToCellAfter(e,o)&&t.preventDefault()},t.prototype.tabToNextCell=function(e){var t=this.focusedCellController.getFocusedCell();if(N._.missing(t))return!1;var o=this.getComponentForCell(t);return!N._.missing(o)&&this.moveToCellAfter(o,e)},t.prototype.moveToCellAfter=function(e,t){return e.isEditing()?this.gridOptionsWrapper.isFullRowEdit()?this.moveToNextEditingRow(e,t):this.moveToNextEditingCell(e,t):this.moveToNextCellNotEditing(e,t)},t.prototype.moveToNextEditingCell=function(e,t){var o=e.getGridCell();e.stopEditing();var n=this.findNextCellToFocusOn(o,t,!0),r=N._.exists(n);return r&&(n.startEditingIfEnabled(null,null,!0),n.focusCell(!1)),r},t.prototype.moveToNextEditingRow=function(e,t){var o=e.getGridCell(),n=this.findNextCellToFocusOn(o,t,!0),r=N._.exists(n);return r&&this.moveEditToNextCellOrRow(e,n),r},t.prototype.moveToNextCellNotEditing=function(e,t){var o=e.getGridCell(),n=this.findNextCellToFocusOn(o,t,!1),r=N._.exists(n);return r&&n.focusCell(!0),r},t.prototype.moveEditToNextCellOrRow=function(e,t){var o=e.getGridCell(),n=t.getGridCell();if(o.rowIndex===n.rowIndex&&o.floating===n.floating)e.setFocusOutOnEditor(),t.setFocusInOnEditor();else{var r=e.getRenderedRow(),i=t.getRenderedRow();e.setFocusOutOnEditor(),r.stopEditing(),i.startRowEditing(),t.setFocusInOnEditor()}t.focusCell()},t.prototype.findNextCellToFocusOn=function(e,t,o){for(var n=e;;){n=this.cellNavigationService.getNextTabbedCell(n,t);var r=this.gridOptionsWrapper.getTabToNextCellFunc();if(N._.exists(r)){var i=r({backwards:t,editing:o,previousCellDef:e.getGridCellDef(),nextCellDef:n?n.getGridCellDef():null});n=N._.exists(i)?new b.GridCell(i):null}if(!n)return null;if(o){var s=this.lookupRowNodeForCell(n);if(!n.column.isCellEditable(s))continue}N._.missing(n.floating)&&this.gridPanel.ensureIndexVisible(n.rowIndex),n.column.isPinned()||this.gridPanel.ensureColumnVisible(n.column),this.gridPanel.horizontallyScrollHeaderCenterAndFloatingCenter(),this.animationFrameService.flushAllFrames();var a=this.getComponentForCell(n);if(!N._.missing(a)&&!a.isSuppressNavigable())return this.rangeController&&(e=new b.GridCell({rowIndex:n.rowIndex,floating:n.floating,column:n.column}),this.rangeController.setRangeToCell(e)),a}},t.prototype.lookupRowNodeForCell=function(e){return e.floating===g.Constants.PINNED_TOP?this.pinnedRowModel.getPinnedTopRow(e.rowIndex):e.floating===g.Constants.PINNED_BOTTOM?this.pinnedRowModel.getPinnedBottomRow(e.rowIndex):this.paginationProxy.getRow(e.rowIndex)},i([y.Autowired("paginationProxy"),s("design:type",S.PaginationProxy)],t.prototype,"paginationProxy",void 0),i([y.Autowired("columnController"),s("design:type",C.ColumnController)],t.prototype,"columnController",void 0),i([y.Autowired("gridOptionsWrapper"),s("design:type",l.GridOptionsWrapper)],t.prototype,"gridOptionsWrapper",void 0),i([y.Autowired("$scope"),s("design:type",Object)],t.prototype,"$scope",void 0),i([y.Autowired("expressionService"),s("design:type",p.ExpressionService)],t.prototype,"expressionService",void 0),i([y.Autowired("templateService"),s("design:type",u.TemplateService)],t.prototype,"templateService",void 0),i([y.Autowired("valueService"),s("design:type",c.ValueService)],t.prototype,"valueService",void 0),i([y.Autowired("eventService"),s("design:type",d.EventService)],t.prototype,"eventService",void 0),i([y.Autowired("pinnedRowModel"),s("design:type",P.PinnedRowModel)],t.prototype,"pinnedRowModel",void 0),i([y.Autowired("loggerFactory"),s("design:type",w.LoggerFactory)],t.prototype,"loggerFactory",void 0),i([y.Autowired("focusedCellController"),s("design:type",_.FocusedCellController)],t.prototype,"focusedCellController",void 0),i([y.Autowired("cellNavigationService"),s("design:type",E.CellNavigationService)],t.prototype,"cellNavigationService",void 0),i([y.Autowired("columnApi"),s("design:type",v.ColumnApi)],t.prototype,"columnApi",void 0),i([y.Autowired("gridApi"),s("design:type",O.GridApi)],t.prototype,"gridApi",void 0),i([y.Autowired("beans"),s("design:type",A.Beans)],t.prototype,"beans",void 0),i([y.Autowired("maxDivHeightScaler"),s("design:type",D.MaxDivHeightScaler)],t.prototype,"maxDivHeightScaler",void 0),i([y.Autowired("animationFrameService"),s("design:type",T.AnimationFrameService)],t.prototype,"animationFrameService",void 0),i([y.Optional("rangeController"),s("design:type",Object)],t.prototype,"rangeController",void 0),i([a(0,y.Qualifier("loggerFactory")),s("design:type",Function),s("design:paramtypes",[w.LoggerFactory]),s("design:returntype",void 0)],t.prototype,"agWire",null),i([y.Bean("rowRenderer")],t)}(R.BeanStub);t.RowRenderer=I},2511:(e,t,o)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.CommaAndColonSeparatedRecord=t.ConnectionString=t.redactConnectionString=void 0;const n=o(21655),r=o(86834);Object.defineProperty(t,"redactConnectionString",{enumerable:!0,get:function(){return r.redactConnectionString}});const i="__this_is_a_placeholder__",s=/^(?<protocol>[^/]+):\/\/(?:(?<username>[^:@]*)(?::(?<password>[^@]*))?@)?(?<hosts>(?!:)[^/?@]*)(?<rest>.*)/;class a extends Map{delete(e){return super.delete(this._normalizeKey(e))}get(e){return super.get(this._normalizeKey(e))}has(e){return super.has(this._normalizeKey(e))}set(e,t){return super.set(this._normalizeKey(e),t)}_normalizeKey(e){e=`${e}`;for(const t of this.keys())if(t.toLowerCase()===e.toLowerCase()){e=t;break}return e}}class l extends n.URL{}class p extends Error{get name(){return"MongoParseError"}}class u extends l{_hosts;constructor(e,t={}){const{looseValidation:o}=t;if(!o&&!(n=e).startsWith("mongodb://")&&!n.startsWith("mongodb+srv://"))throw new p('Invalid scheme, expected connection string to start with "mongodb://" or "mongodb+srv://"');var n;const r=e.match(s);if(!r)throw new p("Invalid connection string");const{protocol:l,username:c,password:d,hosts:h,rest:f}=r.groups??{};if(!o){if(!l||!h)throw new p("Protocol and host list are required in the uri");try{decodeURIComponent(c??""),decodeURIComponent(d??"")}catch(e){throw new p(e.message)}const t=/[:/?#[\]@]/gi;if(c?.match(t))throw new p(`Username contains unescaped characters ${c}`);if(!c||!d){const t=e.replace(`${l}://`,"");if(t.startsWith("@")||t.startsWith(":"))throw new p("URI contained empty userinfo section")}if(d?.match(t))throw new p("Password contains unescaped characters");if(f?.match(/^[^/?]*@/))throw new p("Invalid connection string")}let g="";"string"==typeof c&&(g+=c),"string"==typeof d&&(g+=`:${d}`),g&&(g+="@");try{super(`${l.toLowerCase()}://${g}${i}${f}`)}catch(n){throw o&&new u(e,{...t,looseValidation:!1}),"string"==typeof n.message&&(n.message=n.message.replace(i,h)),n}if(this._hosts=h.split(","),!o){if(this.isSRV&&1!==this.hosts.length)throw new p("mongodb+srv URI cannot have multiple service names");if(this.isSRV&&this.hosts.some((e=>e.includes(":"))))throw new p("mongodb+srv URI cannot have port number")}var m;this.pathname||(this.pathname="/"),Object.setPrototypeOf(this.searchParams,(m=this.searchParams.constructor,class extends m{append(e,t){return super.append(this._normalizeKey(e),t)}delete(e){return super.delete(this._normalizeKey(e))}get(e){return super.get(this._normalizeKey(e))}getAll(e){return super.getAll(this._normalizeKey(e))}has(e){return super.has(this._normalizeKey(e))}set(e,t){return super.set(this._normalizeKey(e),t)}keys(){return super.keys()}values(){return super.values()}entries(){return super.entries()}[Symbol.iterator](){return super[Symbol.iterator]()}_normalizeKey(e){return a.prototype._normalizeKey.call(this,e)}}).prototype)}get host(){return i}set host(e){throw new Error("No single host for connection string")}get hostname(){return i}set hostname(e){throw new Error("No single host for connection string")}get port(){return""}set port(e){throw new Error("No single host for connection string")}get href(){return this.toString()}set href(e){throw new Error("Cannot set href for connection strings")}get isSRV(){return this.protocol.includes("srv")}get hosts(){return this._hosts}set hosts(e){this._hosts=e}toString(){return super.toString().replace(i,this.hosts.join(","))}clone(){return new u(this.toString(),{looseValidation:!0})}redact(e){return(0,r.redactValidConnectionString)(this,e)}typedSearchParams(){return this.searchParams}[Symbol.for("nodejs.util.inspect.custom")](){const{href:e,origin:t,protocol:o,username:n,password:r,hosts:i,pathname:s,search:a,searchParams:l,hash:p}=this;return{href:e,origin:t,protocol:o,username:n,password:r,hosts:i,pathname:s,search:a,searchParams:l,hash:p}}}t.ConnectionString=u,t.CommaAndColonSeparatedRecord=class extends a{constructor(e){super();for(const t of(e??"").split(",")){if(!t)continue;const e=t.indexOf(":");-1===e?this.set(t,""):this.set(t.slice(0,e),t.slice(e+1))}}toString(){return[...this].map((e=>e.join(":"))).join(",")}},t.default=u},3978:function(e,t,o){var n=this&&this.__decorate||function(e,t,o,n){var r,i=arguments.length,s=i<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,n);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,o,s):r(t,o))||s);return i>3&&s&&Object.defineProperty(t,o,s),s},r=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0});var i=o(99162),s=o(6145),a=o(51890),l=o(59804),p=o(33018),u=o(47304),c=o(79255),d=o(43510),h=function(){function e(){this.initialised=!1}return e.prototype.init=function(){this.cellExpressions=this.gridOptionsWrapper.isEnableCellExpressions(),this.initialised=!0},e.prototype.getValue=function(e,t,o,n){if(void 0===o&&(o=!1),void 0===n&&(n=!1),this.initialised||this.init(),t){var r,i=e.getColDef(),s=i.field,a=e.getId(),l=t.data,p=t.groupData&&void 0!==t.groupData[a],u=!n&&t.aggData&&void 0!==t.aggData[a];if(o&&i.filterValueGetter?r=this.executeFilterValueGetter(i.filterValueGetter,l,e,t):this.gridOptionsWrapper.isTreeData()&&u?r=t.aggData[a]:this.gridOptionsWrapper.isTreeData()&&i.valueGetter?r=this.executeValueGetter(i.valueGetter,l,e,t):this.gridOptionsWrapper.isTreeData()&&s&&l?r=d._.getValueUsingField(l,s,e.isFieldContainsDots()):p?r=t.groupData[a]:u?r=t.aggData[a]:i.valueGetter?r=this.executeValueGetter(i.valueGetter,l,e,t):s&&l&&(r=d._.getValueUsingField(l,s,e.isFieldContainsDots())),this.cellExpressions&&"string"==typeof r&&0===r.indexOf("=")){var c=r.substring(1);r=this.executeValueGetter(c,l,e,t)}return r}},e.prototype.setValue=function(e,t,o){var n=this.columnController.getPrimaryColumn(t);if(e&&n){var r=e.data;d._.missing(r)&&(e.data={});var i=n.getColDef(),s=i.field,a=i.newValueHandler,l=i.valueSetter;if(d._.missing(s)&&d._.missing(a)&&d._.missing(l))console.warn("ag-Grid: you need either field or valueSetter set on colDef for editing to work");else{var u,c={node:e,data:e.data,oldValue:this.getValue(n,e),newValue:o,colDef:n.getColDef(),column:n,api:this.gridOptionsWrapper.getApi(),columnApi:this.gridOptionsWrapper.getColumnApi(),context:this.gridOptionsWrapper.getContext()};if(c.newValue=o,void 0===(u=a&&d._.exists(a)?a(c):d._.exists(l)?this.expressionService.evaluate(l,c):this.setValueUsingField(r,s,o,n.isFieldContainsDots()))&&(u=!0),u){e.resetQuickFilterAggregateText(),this.valueCache.onDataChanged(),c.newValue=this.getValue(n,e);var h=n.getColDef().onCellValueChanged;"function"==typeof h&&setTimeout((function(){return h(c)}),0);var f={type:p.Events.EVENT_CELL_VALUE_CHANGED,event:null,rowIndex:e.rowIndex,rowPinned:e.rowPinned,column:c.column,api:c.api,colDef:c.colDef,columnApi:c.columnApi,context:c.context,data:e.data,node:e,oldValue:c.oldValue,newValue:c.newValue,value:c.newValue};this.eventService.dispatchEvent(f)}}}},e.prototype.setValueUsingField=function(e,t,o,n){if(!t)return!1;if(n)for(var r=t.split("."),i=e;r.length>0&&i;){var s=r.shift();0===r.length?i[s]=o:i=i[s]}else e[t]=o;return!0},e.prototype.executeFilterValueGetter=function(e,t,o,n){var r={data:t,node:n,column:o,colDef:o.getColDef(),api:this.gridOptionsWrapper.getApi(),columnApi:this.gridOptionsWrapper.getColumnApi(),context:this.gridOptionsWrapper.getContext(),getValue:this.getValueCallback.bind(this,n)};return this.expressionService.evaluate(e,r)},e.prototype.executeValueGetter=function(e,t,o,n){var r=o.getId(),i=this.valueCache.getValue(n,r);if(void 0!==i)return i;var s={data:t,node:n,column:o,colDef:o.getColDef(),api:this.gridOptionsWrapper.getApi(),columnApi:this.gridOptionsWrapper.getColumnApi(),context:this.gridOptionsWrapper.getContext(),getValue:this.getValueCallback.bind(this,n)},a=this.expressionService.evaluate(e,s);return this.valueCache.setValue(n,r,a),a},e.prototype.getValueCallback=function(e,t){var o=this.columnController.getPrimaryColumn(t);return o?this.getValue(o,e):null},e.prototype.getKeyForNode=function(e,t){var o=this.getValue(e,t),n=e.getColDef().keyCreator,r=n?n({value:o}):o;return"string"==typeof r||null==r||"[object Object]"===(r=String(r))&&d._.doOnce((function(){console.warn("ag-Grid: a column you are grouping or pivoting by has objects as values. If you want to group by complex objects then either a) use a colDef.keyCreator (se ag-Grid docs) or b) to toString() on the object to return a key")}),"getKeyForNode - warn about [object,object]"),r},n([l.Autowired("gridOptionsWrapper"),r("design:type",i.GridOptionsWrapper)],e.prototype,"gridOptionsWrapper",void 0),n([l.Autowired("expressionService"),r("design:type",s.ExpressionService)],e.prototype,"expressionService",void 0),n([l.Autowired("columnController"),r("design:type",a.ColumnController)],e.prototype,"columnController",void 0),n([l.Autowired("eventService"),r("design:type",u.EventService)],e.prototype,"eventService",void 0),n([l.Autowired("valueCache"),r("design:type",c.ValueCache)],e.prototype,"valueCache",void 0),n([l.PostConstruct,r("design:type",Function),r("design:paramtypes",[]),r("design:returntype",void 0)],e.prototype,"init",null),n([l.Bean("valueService")],e)}();t.ValueService=h},4895:function(e,t,o){var n=this&&this.__decorate||function(e,t,o,n){var r,i=arguments.length,s=i<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,n);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,o,s):r(t,o))||s);return i>3&&s&&Object.defineProperty(t,o,s),s},r=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0});var i=o(59804),s=o(99162),a=o(47304),l=o(6145),p=o(74864),u=o(76414),c=o(16767),d=o(43510),h=function(){function e(){this.cellRendererMap={}}var t;return t=e,e.prototype.init=function(){this.cellRendererMap[t.ANIMATE_SLIDE]=p.AnimateSlideCellRenderer,this.cellRendererMap[t.ANIMATE_SHOW_CHANGE]=u.AnimateShowChangeCellRenderer,this.cellRendererMap[t.GROUP]=c.GroupCellRenderer},e.prototype.addCellRenderer=function(e,t){this.cellRendererMap[e]=t},e.prototype.getCellRenderer=function(e){var t=this.cellRendererMap[e];return d._.missing(t)?(console.warn("ag-Grid: unable to find cellRenderer for key "+e),null):t},e.ANIMATE_SLIDE="animateSlide",e.ANIMATE_SHOW_CHANGE="animateShowChange",e.GROUP="group",n([i.Autowired("gridOptionsWrapper"),r("design:type",s.GridOptionsWrapper)],e.prototype,"gridOptionsWrapper",void 0),n([i.Autowired("expressionService"),r("design:type",l.ExpressionService)],e.prototype,"expressionService",void 0),n([i.Autowired("eventService"),r("design:type",a.EventService)],e.prototype,"eventService",void 0),n([i.PostConstruct,r("design:type",Function),r("design:paramtypes",[]),r("design:returntype",void 0)],e.prototype,"init",null),t=n([i.Bean("cellRendererFactory")],e)}();t.CellRendererFactory=h},5364:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0});var o=function(){function e(){}return e.prototype.dateComponent=function(e){return e.dateComponent},e.prototype.colDefFloatingCellRenderer=function(e){return e.pinnedRowCellRenderer},e.prototype.colDefCellRenderer=function(e){return e.cellRenderer},e.prototype.colDefCellEditor=function(e){return e.cellEditor},e.prototype.colDefFilter=function(e){return e.filter},e.prototype.gridOptionsFullWidthCellRenderer=function(e){return e.fullWidthCellRenderer},e.prototype.gridOptionsGroupRowRenderer=function(e){return e.groupRowRenderer},e.prototype.gridOptionsGroupRowInnerRenderer=function(e){return e.groupRowInnerRenderer},e.prototype.setTimeout=function(e,t){window.setTimeout(e,t)},e}();t.BaseFrameworkFactory=o},5479:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.DefaultColumnTypes={numericColumn:{headerClass:"ag-numeric-header",cellClass:"ag-numeric-cell"}}},5652:function(e,t,o){var n,r=this&&this.__createBinding||(Object.create?function(e,t,o,n){void 0===n&&(n=o);var r=Object.getOwnPropertyDescriptor(t,o);r&&!("get"in r?!t.__esModule:r.writable||r.configurable)||(r={enumerable:!0,get:function(){return t[o]}}),Object.defineProperty(e,n,r)}:function(e,t,o,n){void 0===n&&(n=o),e[n]=t[o]}),i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),s=this&&this.__importStar||(n=function(e){return n=Object.getOwnPropertyNames||function(e){var t=[];for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[t.length]=o);return t},n(e)},function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var o=n(e),s=0;s<o.length;s++)"default"!==o[s]&&r(t,e,o[s]);return i(t,e),t});Object.defineProperty(t,"__esModule",{value:!0}),t.redactValidConnectionString=function(e,t){const o=e.clone(),n=t?.replacementString??"_credentials_",r=t?.redactUsernames??!0;if((o.username||o.password)&&r?(o.username=n,o.password=""):o.password&&(o.password=n),o.searchParams.has("authMechanismProperties")){const e=new a.CommaAndColonSeparatedRecord(o.searchParams.get("authMechanismProperties"));e.get("AWS_SESSION_TOKEN")&&(e.set("AWS_SESSION_TOKEN",n),o.searchParams.set("authMechanismProperties",e.toString()))}return o.searchParams.has("tlsCertificateKeyFilePassword")&&o.searchParams.set("tlsCertificateKeyFilePassword",n),o.searchParams.has("proxyUsername")&&r&&o.searchParams.set("proxyUsername",n),o.searchParams.has("proxyPassword")&&o.searchParams.set("proxyPassword",n),o},t.redactConnectionString=function(e,t){const o=t?.replacementString??"<credentials>",n=t?.redactUsernames??!0;let r;try{r=new a.default(e)}catch{}if(r)return t={...t,replacementString:"___credentials___"},r.redact(t).toString().replace(/___credentials___/g,o);const i=o,s=[e=>e.replace(n?/(\/\/)(.*)(@)/g:/(\/\/[^@]*:)(.*)(@)/g,`$1${i}$3`),e=>e.replace(/(AWS_SESSION_TOKEN(:|%3A))([^,&]+)/gi,`$1${i}`),e=>e.replace(/(tlsCertificateKeyFilePassword=)([^&]+)/gi,`$1${i}`),e=>n?e.replace(/(proxyUsername=)([^&]+)/gi,`$1${i}`):e,e=>e.replace(/(proxyPassword=)([^&]+)/gi,`$1${i}`)];for(const t of s)e=t(e);return e};const a=s(o(34633))},5747:function(e,t,o){var n=this&&this.__decorate||function(e,t,o,n){var r,i=arguments.length,s=i<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,n);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,o,s):r(t,o))||s);return i>3&&s&&Object.defineProperty(t,o,s),s},r=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0});var i=o(59804),s=o(21559),a=o(44494),l=o(36354),p=o(72738),u=o(42062),c=o(15558),d=o(51890),h=o(99162),f=o(43510),g=function(){function e(){this.timeLastPageEventProcessed=0}return e.prototype.init=function(){this.scrollWidth=this.gridOptionsWrapper.getScrollbarWidth()},e.prototype.registerGridComp=function(e){this.gridPanel=e},e.prototype.handlePageScrollingKey=function(e){var t=e.which||e.keyCode,o=e.altKey,n=e.ctrlKey,r=this.mouseEventService.getGridCellForEvent(e).getGridCellDef();if(!r)return!1;var i=!1;switch(t){case a.Constants.KEY_PAGE_HOME:case a.Constants.KEY_PAGE_END:n||o||(this.onHomeOrEndKey(t),i=!0);break;case a.Constants.KEY_LEFT:case a.Constants.KEY_RIGHT:n&&!o&&(this.onCtrlLeftOrRight(t,r),i=!0);break;case a.Constants.KEY_UP:case a.Constants.KEY_DOWN:n&&!o&&(this.onCtrlUpOrDown(t,r),i=!0);break;case a.Constants.KEY_PAGE_DOWN:n||o||(this.onPageDown(r),i=!0);break;case a.Constants.KEY_PAGE_UP:n||o||(this.onPageUp(r),i=!0)}return i&&e.preventDefault(),i},e.prototype.isTimeSinceLastPageEventToRecent=function(){return(new Date).getTime()-this.timeLastPageEventProcessed<100},e.prototype.setTimeLastPageEventProcessed=function(){this.timeLastPageEventProcessed=(new Date).getTime()},e.prototype.onPageDown=function(e){if(!this.isTimeSinceLastPageEventToRecent()){var t=this.gridPanel.getVScrollPosition(),o=t.bottom-t.top;this.gridPanel.isHorizontalScrollShowing()&&(o-=this.scrollWidth);var n=this.paginationProxy.getPixelOffset(),r=t.top+o,i=this.paginationProxy.getRowIndexAtPixel(r+n),s=this.paginationProxy.getRow(e.rowIndex).rowTop+o-n,a=this.paginationProxy.getRowIndexAtPixel(s+n),l=this.paginationProxy.getPageLastRow();a>l&&(a=l),i>l&&(i=l),this.navigateTo(i,"top",null,a,e.column),this.setTimeLastPageEventProcessed()}},e.prototype.onPageUp=function(e){if(!this.isTimeSinceLastPageEventToRecent()){var t=this.gridPanel.getVScrollPosition(),o=t.bottom-t.top;this.gridPanel.isHorizontalScrollShowing()&&(o-=this.scrollWidth);var n=this.paginationProxy.getPixelOffset(),r=t.top,i=this.paginationProxy.getRowIndexAtPixel(r+n),s=this.paginationProxy.getRow(e.rowIndex),a=s.rowTop+s.rowHeight-o-n,l=this.paginationProxy.getRowIndexAtPixel(a+n),p=this.paginationProxy.getPageFirstRow();l<p&&(l=p),i<p&&(i=p),this.navigateTo(i,"bottom",null,l,e.column),this.setTimeLastPageEventProcessed()}},e.prototype.navigateTo=function(e,t,o,n,r){if(f._.exists(o)&&this.gridPanel.ensureColumnVisible(o),f._.exists(e)&&this.gridPanel.ensureIndexVisible(e,t),this.animationFrameService.flushAllFrames(),this.focusedCellController.setFocusedCell(n,r,null,!0),this.rangeController){var i=new s.GridCell({rowIndex:n,floating:null,column:r});this.rangeController.setRangeToCell(i)}},e.prototype.onCtrlUpOrDown=function(e,t){var o=e===a.Constants.KEY_UP?0:this.paginationProxy.getPageLastRow();this.navigateTo(o,null,t.column,o,t.column)},e.prototype.onCtrlLeftOrRight=function(e,t){var o=e===a.Constants.KEY_LEFT,n=this.columnController.getAllDisplayedColumns(),r=o?n[0]:n[n.length-1];this.navigateTo(t.rowIndex,null,r,t.rowIndex,r)},e.prototype.onHomeOrEndKey=function(e){var t=e===a.Constants.KEY_PAGE_HOME,o=this.columnController.getAllDisplayedColumns(),n=t?o[0]:o[o.length-1],r=t?0:this.paginationProxy.getPageLastRow();this.navigateTo(r,null,n,r,n)},n([i.Autowired("mouseEventService"),r("design:type",l.MouseEventService)],e.prototype,"mouseEventService",void 0),n([i.Autowired("paginationProxy"),r("design:type",p.PaginationProxy)],e.prototype,"paginationProxy",void 0),n([i.Autowired("focusedCellController"),r("design:type",u.FocusedCellController)],e.prototype,"focusedCellController",void 0),n([i.Autowired("animationFrameService"),r("design:type",c.AnimationFrameService)],e.prototype,"animationFrameService",void 0),n([i.Optional("rangeController"),r("design:type",Object)],e.prototype,"rangeController",void 0),n([i.Autowired("columnController"),r("design:type",d.ColumnController)],e.prototype,"columnController",void 0),n([i.Autowired("gridOptionsWrapper"),r("design:type",h.GridOptionsWrapper)],e.prototype,"gridOptionsWrapper",void 0),n([i.PostConstruct,r("design:type",Function),r("design:paramtypes",[]),r("design:returntype",void 0)],e.prototype,"init",null),n([i.Bean("navigationService")],e)}();t.NavigationService=g},5988:function(e,t,o){var n=this&&this.__decorate||function(e,t,o,n){var r,i=arguments.length,s=i<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,n);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,o,s):r(t,o))||s);return i>3&&s&&Object.defineProperty(t,o,s),s},r=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0});var i=o(99162),s=o(77171),a=o(59804),l=o(47304),p=o(33018),u=o(44494),c=o(81404),d=o(31551),h=o(43510),f=function(){function e(){}return e.prototype.init=function(){this.setPinnedTopRowData(this.gridOptionsWrapper.getPinnedTopRowData()),this.setPinnedBottomRowData(this.gridOptionsWrapper.getPinnedBottomRowData())},e.prototype.isEmpty=function(e){var t=e===u.Constants.PINNED_TOP?this.pinnedTopRows:this.pinnedBottomRows;return h._.missingOrEmpty(t)},e.prototype.isRowsToRender=function(e){return!this.isEmpty(e)},e.prototype.getRowAtPixel=function(e,t){var o=t===u.Constants.PINNED_TOP?this.pinnedTopRows:this.pinnedBottomRows;if(h._.missingOrEmpty(o))return 0;for(var n=0;n<o.length;n++){var r=o[n];if(r.rowTop+r.rowHeight-1>=e)return n}return o.length-1},e.prototype.setPinnedTopRowData=function(e){this.pinnedTopRows=this.createNodesFromData(e,!0);var t={type:p.Events.EVENT_PINNED_ROW_DATA_CHANGED,api:this.gridApi,columnApi:this.columnApi};this.eventService.dispatchEvent(t)},e.prototype.setPinnedBottomRowData=function(e){this.pinnedBottomRows=this.createNodesFromData(e,!1);var t={type:p.Events.EVENT_PINNED_ROW_DATA_CHANGED,api:this.gridApi,columnApi:this.columnApi};this.eventService.dispatchEvent(t)},e.prototype.createNodesFromData=function(e,t){var o=this,n=[];if(e){var r=0;e.forEach((function(e,i){var a=new s.RowNode;o.context.wireBean(a),a.data=e,a.rowPinned=t?u.Constants.PINNED_TOP:u.Constants.PINNED_BOTTOM,a.setRowTop(r),a.setRowHeight(o.gridOptionsWrapper.getRowHeightForNode(a).height),a.setRowIndex(i),r+=a.rowHeight,n.push(a)}))}return n},e.prototype.getPinnedTopRowData=function(){return this.pinnedTopRows},e.prototype.getPinnedBottomRowData=function(){return this.pinnedBottomRows},e.prototype.getPinnedTopTotalHeight=function(){return this.getTotalHeight(this.pinnedTopRows)},e.prototype.getPinnedTopRowCount=function(){return this.pinnedTopRows?this.pinnedTopRows.length:0},e.prototype.getPinnedBottomRowCount=function(){return this.pinnedBottomRows?this.pinnedBottomRows.length:0},e.prototype.getPinnedTopRow=function(e){return this.pinnedTopRows[e]},e.prototype.getPinnedBottomRow=function(e){return this.pinnedBottomRows[e]},e.prototype.forEachPinnedTopRow=function(e){h._.missingOrEmpty(this.pinnedTopRows)||this.pinnedTopRows.forEach(e)},e.prototype.forEachPinnedBottomRow=function(e){h._.missingOrEmpty(this.pinnedBottomRows)||this.pinnedBottomRows.forEach(e)},e.prototype.getPinnedBottomTotalHeight=function(){return this.getTotalHeight(this.pinnedBottomRows)},e.prototype.getTotalHeight=function(e){if(e&&0!==e.length){var t=e[e.length-1];return t.rowTop+t.rowHeight}return 0},n([a.Autowired("gridOptionsWrapper"),r("design:type",i.GridOptionsWrapper)],e.prototype,"gridOptionsWrapper",void 0),n([a.Autowired("eventService"),r("design:type",l.EventService)],e.prototype,"eventService",void 0),n([a.Autowired("context"),r("design:type",a.Context)],e.prototype,"context",void 0),n([a.Autowired("columnApi"),r("design:type",c.ColumnApi)],e.prototype,"columnApi",void 0),n([a.Autowired("gridApi"),r("design:type",d.GridApi)],e.prototype,"gridApi",void 0),n([a.PostConstruct,r("design:type",Function),r("design:paramtypes",[]),r("design:returntype",void 0)],e.prototype,"init",null),n([a.Bean("pinnedRowModel")],e)}();t.PinnedRowModel=f},6079:function(e,t,o){var n,r=this&&this.__extends||(n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])},n(e,t)},function(e,t){function o(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(o.prototype=t.prototype,new o)}),i=this&&this.__decorate||function(e,t,o,n){var r,i=arguments.length,s=i<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,n);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,o,s):r(t,o))||s);return i>3&&s&&Object.defineProperty(t,o,s),s},s=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0});var a=o(79035),l=o(59804),p=o(38830),u=o(17890),c=function(e){function t(t,o){var n=e.call(this)||this;return n.title=t,n.message=o,n}return r(t,e),t.prototype.postConstruct=function(){var t=this;e.prototype.postConstruct.call(this),this.setTitle(this.title);var o=new d;this.addFeature(this.getContext(),o),o.setMessage(this.message),this.setBody(o.getGui()),this.addDestroyableEventListener(o,"onBtOk",(function(){return t.closePopup()}))},t}(a.PopupWindow);t.PopupMessageBox=c;var d=function(e){function t(){return e.call(this,t.TEMPLATE)||this}return r(t,e),t.prototype.setMessage=function(e){this.eCenter.innerText=e},t.prototype.postConstruct=function(){this.addDestroyableEventListener(this.eOk,"click",this.onBtOk.bind(this))},t.prototype.onBtOk=function(){this.dispatchEvent({type:"onBtOk"})},t.TEMPLATE='<div>\n <div ref="eCenter"></div>\n <div ref="eButtons">\n <button ref="eOk">OK</button>\n </div>\n </div>',i([u.RefSelector("eCenter"),s("design:type",HTMLElement)],t.prototype,"eCenter",void 0),i([u.RefSelector("eOk"),s("design:type",HTMLElement)],t.prototype,"eOk",void 0),i([l.PostConstruct,s("design:type",Function),s("design:paramtypes",[]),s("design:returntype",void 0)],t.prototype,"postConstruct",null),t}(p.Component)},6145:function(e,t,o){var n=this&&this.__decorate||function(e,t,o,n){var r,i=arguments.length,s=i<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,n);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,o,s):r(t,o))||s);return i>3&&s&&Object.defineProperty(t,o,s),s},r=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},i=this&&this.__param||function(e,t){return function(o,n){t(o,n,e)}};Object.defineProperty(t,"__esModule",{value:!0});var s=o(12427),a=o(59804),l=o(59804),p=function(){function e(){this.expressionToFunctionCache={}}return e.prototype.setBeans=function(e){this.logger=e.create("ExpressionService")},e.prototype.evaluate=function(e,t){if("function"==typeof e)return e(t);if("string"==typeof e){var o=e;return this.evaluateExpression(o,t)}console.error("ag-Grid: value should be either a string or a function",e)},e.prototype.evaluateExpression=function(e,t){try{return this.createExpressionFunction(e)(t.value,t.context,t.oldValue,t.newValue,t.value,t.node,t.data,t.colDef,t.rowIndex,t.api,t.columnApi,t.getValue,t.column,t.columnGroup)}catch(t){return console.log("Processing of the expression failed"),console.log("Expression = "+e),console.log("Exception = "+t),null}},e.prototype.createExpressionFunction=function(e){if(this.expressionToFunctionCache[e])return this.expressionToFunctionCache[e];var t=this.createFunctionBody(e),o=new Function("x, ctx, oldValue, newValue, value, node, data, colDef, rowIndex, api, columnApi, getValue, column, columnGroup",t);return this.expressionToFunctionCache[e]=o,o},e.prototype.createFunctionBody=function(e){return e.indexOf("return")>=0?e:"return "+e+";"},n([i(0,l.Qualifier("loggerFactory")),r("design:type",Function),r("design:paramtypes",[s.LoggerFactory]),r("design:returntype",void 0)],e.prototype,"setBeans",null),n([a.Bean("expressionService")],e)}();t.ExpressionService=p},6436:function(e,t,o){var n,r=this&&this.__extends||(n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])},n(e,t)},function(e,t){function o(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(o.prototype=t.prototype,new o)}),i=this&&this.__decorate||function(e,t,o,n){var r,i=arguments.length,s=i<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,n);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,o,s):r(t,o))||s);return i>3&&s&&Object.defineProperty(t,o,s),s},s=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0});var a=o(38830),l=o(59804),p=o(99162),u=o(17890),c=o(47304),d=o(33018),h=o(1659),f=o(72738),g=o(43510),m=function(e){function t(){return e.call(this)||this}return r(t,e),t.prototype.postConstruct=function(){this.setTemplate(this.getTemplate()),this.gridOptionsWrapper.isPagination()&&!this.gridOptionsWrapper.isSuppressPaginationPanel()?(this.addDestroyableEventListener(this.eventService,d.Events.EVENT_PAGINATION_CHANGED,this.onPaginationChanged.bind(this)),this.addDestroyableEventListener(this.btFirst,"click",this.onBtFirst.bind(this)),this.addDestroyableEventListener(this.btLast,"click",this.onBtLast.bind(this)),this.addDestroyableEventListener(this.btNext,"click",this.onBtNext.bind(this)),this.addDestroyableEventListener(this.btPrevious,"click",this.onBtPrevious.bind(this)),this.onPaginationChanged()):this.setVisible(!1)},t.prototype.onPaginationChanged=function(){this.enableOrDisableButtons(),this.updateRowLabels(),this.setCurrentPageLabel(),this.setTotalLabels()},t.prototype.setCurrentPageLabel=function(){var e=this.paginationProxy.getTotalPages()>0,t=this.paginationProxy.getCurrentPage(),o=e?t+1:0;this.lbCurrent.innerHTML=this.formatNumber(o)},t.prototype.formatNumber=function(e){var t=this.gridOptionsWrapper.getPaginationNumberFormatterFunc();return t?t({value:e}):g._.formatNumberCommas(e)},t.prototype.getTemplate=function(){var e=this.gridOptionsWrapper.getLocaleTextFunc(),t=e("page","Page"),o=e("to","to"),n=e("of","of");return'<div class="ag-paging-panel ag-unselectable">\n <span ref="eSummaryPanel" class="ag-paging-row-summary-panel">\n <span ref="lbFirstRowOnPage"></span> '+o+' <span ref="lbLastRowOnPage"></span> '+n+' <span ref="lbRecordCount"></span>\n </span>\n <span class="ag-paging-page-summary-panel">\n <button type="button" class="ag-paging-button" ref="btFirst">'+e("first","First")+'</button>\n <button type="button" class="ag-paging-button" ref="btPrevious">'+e("previous","Previous")+"</button>\n "+t+' <span ref="lbCurrent"></span> '+n+' <span ref="lbTotal"></span>\n <button type="button" class="ag-paging-button" ref="btNext">'+e("next","Next")+'</button>\n <button type="button" class="ag-paging-button" ref="btLast">'+e("last","Last")+"</button>\n </span>\n </div>"},t.prototype.onBtNext=function(){this.paginationProxy.goToNextPage()},t.prototype.onBtPrevious=function(){this.paginationProxy.goToPreviousPage()},t.prototype.onBtFirst=function(){this.paginationProxy.goToFirstPage()},t.prototype.onBtLast=function(){this.paginationProxy.goToLastPage()},t.prototype.enableOrDisableButtons=function(){var e=this.paginationProxy.getCurrentPage(),t=this.paginationProxy.isLastPageFound(),o=this.paginationProxy.getTotalPages(),n=0===e;this.btPrevious.disabled=n,this.btFirst.disabled=n;var r=this.isZeroPagesToDisplay(),i=t&&e===o-1||r;this.btNext.disabled=i;var s=!t||r||e===o-1;this.btLast.disabled=s},t.prototype.updateRowLabels=function(){var e,t,o=this.paginationProxy.getCurrentPage(),n=this.paginationProxy.getPageSize(),r=this.paginationProxy.isLastPageFound(),i=this.paginationProxy.isLastPageFound()?this.paginationProxy.getTotalRowCount():null;this.isZeroPagesToDisplay()?(e=0,t=0):(t=(e=n*o+1)+n-1,r&&t>i&&(t=i)),this.lbFirstRowOnPage.innerHTML=this.formatNumber(e),this.lbLastRowOnPage.innerHTML=this.formatNumber(t)},t.prototype.isZeroPagesToDisplay=function(){var e=this.paginationProxy.isLastPageFound(),t=this.paginationProxy.getTotalPages();return e&&0===t},t.prototype.setTotalLabels=function(){var e=this.paginationProxy.isLastPageFound(),t=this.paginationProxy.getTotalPages(),o=this.paginationProxy.isLastPageFound()?this.paginationProxy.getTotalRowCount():null;if(e)this.lbTotal.innerHTML=this.formatNumber(t),this.lbRecordCount.innerHTML=this.formatNumber(o);else{var n=this.gridOptionsWrapper.getLocaleTextFunc()("more","more");this.lbTotal.innerHTML=n,this.lbRecordCount.innerHTML=n}},i([l.Autowired("gridOptionsWrapper"),s("design:type",p.GridOptionsWrapper)],t.prototype,"gridOptionsWrapper",void 0),i([l.Autowired("eventService"),s("design:type",c.EventService)],t.prototype,"eventService",void 0),i([l.Autowired("paginationProxy"),s("design:type",f.PaginationProxy)],t.prototype,"paginationProxy",void 0),i([l.Autowired("rowRenderer"),s("design:type",h.RowRenderer)],t.prototype,"rowRenderer",void 0),i([u.RefSelector("btFirst"),s("design:type",HTMLButtonElement)],t.prototype,"btFirst",void 0),i([u.RefSelector("btPrevious"),s("design:type",HTMLButtonElement)],t.prototype,"btPrevious",void 0),i([u.RefSelector("btNext"),s("design:type",HTMLButtonElement)],t.prototype,"btNext",void 0),i([u.RefSelector("btLast"),s("design:type",HTMLButtonElement)],t.prototype,"btLast",void 0),i([u.RefSelector("lbRecordCount"),s("design:type",Object)],t.prototype,"lbRecordCount",void 0),i([u.RefSelector("lbFirstRowOnPage"),s("design:type",Object)],t.prototype,"lbFirstRowOnPage",void 0),i([u.RefSelector("lbLastRowOnPage"),s("design:type",Object)],t.prototype,"lbLastRowOnPage",void 0),i([u.RefSelector("eSummaryPanel"),s("design:type",Object)],t.prototype,"eSummaryPanel",void 0),i([u.RefSelector("lbCurrent"),s("design:type",Object)],t.prototype,"lbCurrent",void 0),i([u.RefSelector("lbTotal"),s("design:type",Object)],t.prototype,"lbTotal",void 0),i([l.PostConstruct,s("design:type",Function),s("design:paramtypes",[]),s("design:returntype",void 0)],t.prototype,"postConstruct",null),t}(a.Component);t.PaginationComp=m},6459:function(e,t,o){var n=this&&this.__decorate||function(e,t,o,n){var r,i=arguments.length,s=i<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,n);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,o,s):r(t,o))||s);return i>3&&s&&Object.defineProperty(t,o,s),s},r=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0});var i=o(59804),s=o(53628),a=o(43510),l=function(){function e(){}return e.prototype.adaptFunction=function(e,t,o,n){if(null==t)return{component:null,componentFromFramework:o,source:n,paramsFromSelector:null};var r=this.componentMetadataProvider.retrieve(e);return r&&r.functionAdapter?{componentFromFramework:o,component:r.functionAdapter(t),source:n,paramsFromSelector:null}:null},e.prototype.adaptCellRendererFunction=function(e){return function(){function t(){}return t.prototype.refresh=function(e){return!1},t.prototype.getGui=function(){var t=e(this.params),o=typeof t;return"string"===o||"number"===o||"boolean"===o?a._.loadTemplate("<span>"+t+"</span>"):t},t.prototype.init=function(e){this.params=e},t}()},e.prototype.doesImplementIComponent=function(e){return!!e&&e.prototype&&"getGui"in e.prototype},n([i.Autowired("componentMetadataProvider"),r("design:type",s.ComponentMetadataProvider)],e.prototype,"componentMetadataProvider",void 0),n([i.Bean("agComponentUtils")],e)}();t.AgComponentUtils=l},6658:function(e,t,o){var n,r=this&&this.__extends||(n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])},n(e,t)},function(e,t){function o(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(o.prototype=t.prototype,new o)});Object.defineProperty(t,"__esModule",{value:!0});var i=o(43510),s=o(77171),a=function(e){function t(o,n){var r=e.call(this)||this;return r.version=0,r.state=t.STATE_DIRTY,r.rowNodeCacheParams=n,r.blockNumber=o,r.startRow=o*n.blockSize,r.endRow=r.startRow+n.blockSize,r}return r(t,e),t.prototype.isAnyNodeOpen=function(e){var t=!1;return this.forEachNodeCallback((function(e){e.expanded&&(t=!0)}),e),t},t.prototype.forEachNodeCallback=function(e,t){for(var o=this.startRow;o<this.endRow;o++)o<t&&e(this.getRowUsingLocalIndex(o),o)},t.prototype.forEachNode=function(e,t,o,n){this.forEachNodeCallback((function(o){e(o,t.next()),n&&o.childrenCache&&o.childrenCache.forEachNodeDeep(e,t)}),o)},t.prototype.forEachNodeDeep=function(e,t,o){this.forEachNode(e,t,o,!0)},t.prototype.forEachNodeShallow=function(e,t,o){this.forEachNode(e,t,o,!1)},t.prototype.getVersion=function(){return this.version},t.prototype.getLastAccessed=function(){return this.lastAccessed},t.prototype.getRowUsingLocalIndex=function(e,t){void 0===t&&(t=!1),t||(this.lastAccessed=this.rowNodeCacheParams.lastAccessedSequence.next());var o=e-this.startRow;return this.rowNodes[o]},t.prototype.init=function(e){this.beans=e,this.createRowNodes()},t.prototype.getStartRow=function(){return this.startRow},t.prototype.getEndRow=function(){return this.endRow},t.prototype.getBlockNumber=function(){return this.blockNumber},t.prototype.setDirty=function(){this.version++,this.state=t.STATE_DIRTY},t.prototype.setDirtyAndPurge=function(){this.setDirty(),this.rowNodes.forEach((function(e){e.setData(null)}))},t.prototype.getState=function(){return this.state},t.prototype.setRowNode=function(e,t){var o=e-this.startRow;this.rowNodes[o]=t},t.prototype.setBlankRowNode=function(e){var t=e-this.startRow,o=this.createBlankRowNode(e);return this.rowNodes[t]=o,o},t.prototype.setNewData=function(e,t){var o=this.setBlankRowNode(e);return this.setDataAndId(o,t,this.startRow+e),o},t.prototype.createBlankRowNode=function(e){var t=new s.RowNode;return this.beans.context.wireBean(t),t.setRowHeight(this.rowNodeCacheParams.rowHeight),t},t.prototype.createRowNodes=function(){this.rowNodes=[];for(var e=0;e<this.rowNodeCacheParams.blockSize;e++){var t=this.startRow+e,o=this.createBlankRowNode(t);this.rowNodes.push(o)}},t.prototype.load=function(){this.state=t.STATE_LOADING,this.loadFromDatasource()},t.prototype.pageLoadFailed=function(){this.state=t.STATE_FAILED;var e={type:t.EVENT_LOAD_COMPLETE,success:!1,page:this,lastRow:null};this.dispatchEvent(e)},t.prototype.populateWithRowData=function(e){var t=this,o=[];this.rowNodes.forEach((function(n,r){var i=e[r];n.stub&&o.push(n),t.setDataAndId(n,i,t.startRow+r)})),o.length>0&&this.beans.rowRenderer.redrawRows(o)},t.prototype.destroy=function(){e.prototype.destroy.call(this),this.rowNodes.forEach((function(e){e.childrenCache&&(e.childrenCache.destroy(),e.childrenCache=null),e.clearRowTop()}))},t.prototype.pageLoaded=function(e,o,n){e===this.version&&(this.state=t.STATE_LOADED,this.populateWithRowData(o)),n=i._.cleanNumber(n);var r={type:t.EVENT_LOAD_COMPLETE,success:!0,page:this,lastRow:n};this.dispatchEvent(r)},t.EVENT_LOAD_COMPLETE="loadComplete",t.STATE_DIRTY="dirty",t.STATE_LOADING="loading",t.STATE_LOADED="loaded",t.STATE_FAILED="failed",t}(o(33669).BeanStub);t.RowNodeBlock=a},6659:function(e,t,o){var n=this&&this.__decorate||function(e,t,o,n){var r,i=arguments.length,s=i<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,n);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,o,s):r(t,o))||s);return i>3&&s&&Object.defineProperty(t,o,s),s},r=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0});var i=o(59804),s=o(99162),a=o(48644),l=o(43598),p=function(){function e(){}return e.prototype.execute=function(e){var t=e.rowNode,o=e.changedPath;this.filterService.filter(o),this.selectableService.updateSelectableAfterFiltering(t)},n([i.Autowired("gridOptionsWrapper"),r("design:type",s.GridOptionsWrapper)],e.prototype,"gridOptionsWrapper",void 0),n([i.Autowired("selectableService"),r("design:type",l.SelectableService)],e.prototype,"selectableService",void 0),n([i.Autowired("filterService"),r("design:type",a.FilterService)],e.prototype,"filterService",void 0),n([i.Bean("filterStage")],e)}();t.FilterStage=p},7386:(e,t,o)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.CommaAndColonSeparatedRecord=t.ConnectionString=t.redactConnectionString=void 0;const n=o(21655),r=o(91705);Object.defineProperty(t,"redactConnectionString",{enumerable:!0,get:function(){return r.redactConnectionString}});const i="__this_is_a_placeholder__",s=/^(?<protocol>[^/]+):\/\/(?:(?<username>[^:@]*)(?::(?<password>[^@]*))?@)?(?<hosts>(?!:)[^/?@]*)(?<rest>.*)/;class a extends Map{delete(e){return super.delete(this._normalizeKey(e))}get(e){return super.get(this._normalizeKey(e))}has(e){return super.has(this._normalizeKey(e))}set(e,t){return super.set(this._normalizeKey(e),t)}_normalizeKey(e){e=`${e}`;for(const t of this.keys())if(t.toLowerCase()===e.toLowerCase()){e=t;break}return e}}class l extends n.URL{}class p extends Error{get name(){return"MongoParseError"}}class u extends l{_hosts;constructor(e,t={}){const{looseValidation:o}=t;if(!o&&!(n=e).startsWith("mongodb://")&&!n.startsWith("mongodb+srv://"))throw new p('Invalid scheme, expected connection string to start with "mongodb://" or "mongodb+srv://"');var n;const r=e.match(s);if(!r)throw new p("Invalid connection string");const{protocol:l,username:c,password:d,hosts:h,rest:f}=r.groups??{};if(!o){if(!l||!h)throw new p("Protocol and host list are required in the uri");try{decodeURIComponent(c??""),decodeURIComponent(d??"")}catch(e){throw new p(e.message)}const t=/[:/?#[\]@]/gi;if(c?.match(t))throw new p(`Username contains unescaped characters ${c}`);if(!c||!d){const t=e.replace(`${l}://`,"");if(t.startsWith("@")||t.startsWith(":"))throw new p("URI contained empty userinfo section")}if(d?.match(t))throw new p("Password contains unescaped characters");if(f?.match(/^[^/?]*@/))throw new p("Invalid connection string")}let g="";"string"==typeof c&&(g+=c),"string"==typeof d&&(g+=`:${d}`),g&&(g+="@");try{super(`${l.toLowerCase()}://${g}${i}${f}`)}catch(n){throw o&&new u(e,{...t,looseValidation:!1}),"string"==typeof n.message&&(n.message=n.message.replace(i,h)),n}if(this._hosts=h.split(","),!o){if(this.isSRV&&1!==this.hosts.length)throw new p("mongodb+srv URI cannot have multiple service names");if(this.isSRV&&this.hosts.some((e=>e.includes(":"))))throw new p("mongodb+srv URI cannot have port number")}var m;this.pathname||(this.pathname="/"),Object.setPrototypeOf(this.searchParams,(m=this.searchParams.constructor,class extends m{append(e,t){return super.append(this._normalizeKey(e),t)}delete(e){return super.delete(this._normalizeKey(e))}get(e){return super.get(this._normalizeKey(e))}getAll(e){return super.getAll(this._normalizeKey(e))}has(e){return super.has(this._normalizeKey(e))}set(e,t){return super.set(this._normalizeKey(e),t)}keys(){return super.keys()}values(){return super.values()}entries(){return super.entries()}[Symbol.iterator](){return super[Symbol.iterator]()}_normalizeKey(e){return a.prototype._normalizeKey.call(this,e)}}).prototype)}get host(){return i}set host(e){throw new Error("No single host for connection string")}get hostname(){return i}set hostname(e){throw new Error("No single host for connection string")}get port(){return""}set port(e){throw new Error("No single host for connection string")}get href(){return this.toString()}set href(e){throw new Error("Cannot set href for connection strings")}get isSRV(){return this.protocol.includes("srv")}get hosts(){return this._hosts}set hosts(e){this._hosts=e}toString(){return super.toString().replace(i,this.hosts.join(","))}clone(){return new u(this.toString(),{looseValidation:!0})}redact(e){return(0,r.redactValidConnectionString)(this,e)}typedSearchParams(){return this.searchParams}[Symbol.for("nodejs.util.inspect.custom")](){const{href:e,origin:t,protocol:o,username:n,password:r,hosts:i,pathname:s,search:a,searchParams:l,hash:p}=this;return{href:e,origin:t,protocol:o,username:n,password:r,hosts:i,pathname:s,search:a,searchParams:l,hash:p}}}t.ConnectionString=u,t.CommaAndColonSeparatedRecord=class extends a{constructor(e){super();for(const t of(e??"").split(",")){if(!t)continue;const e=t.indexOf(":");-1===e?this.set(t,""):this.set(t.slice(0,e),t.slice(e+1))}}toString(){return[...this].map((e=>e.join(":"))).join(",")}},t.default=u},7611:function(e,t,o){var n,r=this&&this.__extends||(n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])},n(e,t)},function(e,t){function o(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(o.prototype=t.prototype,new o)}),i=this&&this.__decorate||function(e,t,o,n){var r,i=arguments.length,s=i<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,n);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,o,s):r(t,o))||s);return i>3&&s&&Object.defineProperty(t,o,s),s},s=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0});var a,l=o(38830),p=o(17890),u=o(59804),c=o(99162),d=o(43510);!function(e){e[e.MAIN=0]="MAIN",e[e.CONDITION=1]="CONDITION"}(a=t.FilterConditionType||(t.FilterConditionType={}));var h={loadingOoo:"Loading...",empty:"Choose One",equals:"Equals",notEqual:"Not equal",lessThan:"Less than",greaterThan:"Greater than",inRange:"In range",lessThanOrEqual:"Less than or equals",greaterThanOrEqual:"Greater than or equals",filterOoo:"Filter...",contains:"Contains",notContains:"Not contains",startsWith:"Starts with",endsWith:"Ends with",searchOoo:"Search...",selectAll:"Select All",applyFilter:"Apply Filter",clearFilter:"Clear Filter",andCondition:"AND",orCondition:"OR"},f=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.customFilterOptions={},t}return r(t,e),t.prototype.init=function(e){var t=this;if(this.filterParams=e,this.defaultFilter=this.filterParams.defaultOption,e.filterOptions&&e.filterOptions.forEach((function(e){"string"!=typeof e&&(e.displayKey?e.displayName?e.test?t.customFilterOptions[e.displayKey]=e:console.warn("ag-Grid: ignoring FilterOptionDef as it doesn't contain a 'test'"):console.warn("ag-Grid: ignoring FilterOptionDef as it doesn't contain a 'displayName'"):console.warn("ag-Grid: ignoring FilterOptionDef as it doesn't contain a 'displayKey'"))})),this.filterParams.filterOptions&&!this.defaultFilter){var o=this.filterParams.filterOptions[0];"string"==typeof o?this.defaultFilter=o:o.displayKey?this.defaultFilter=o.displayKey:console.warn("ag-Grid: invalid FilterOptionDef supplied as it doesn't contain a 'displayKey'")}this.customInit(),this.selectedFilter=this.defaultFilter,this.selectedFilterCondition=this.defaultFilter,this.clearActive=!0===e.clearButton,this.applyActive=!0===e.applyButton||!0===e.apply,this.newRowsActionKeep="keep"===e.newRowsAction,this.setTemplate(this.generateTemplate()),d._.setVisible(this.eApplyButton,this.applyActive),this.applyActive&&this.addDestroyableEventListener(this.eApplyButton,"click",this.filterParams.filterChangedCallback),d._.setVisible(this.eClearButton,this.clearActive),this.clearActive&&this.addDestroyableEventListener(this.eClearButton,"click",this.onClearButton.bind(this));var n=this.applyActive||this.clearActive;d._.setVisible(this.eButtonsPanel,n),this.initialiseFilterBodyUi(a.MAIN),this.refreshFilterBodyUi(a.MAIN)},t.prototype.onClearButton=function(){this.setModel(null),this.onFilterChanged()},t.prototype.floatingFilter=function(e){if(""!==e){var t=this.modelFromFloatingFilter(e);this.setModel(t)}else this.resetState();this.onFilterChanged()},t.prototype.onNewRowsLoaded=function(){this.newRowsActionKeep||this.resetState()},t.prototype.getModel=function(){return this.isFilterActive()?this.isFilterConditionActive(a.CONDITION)?{condition1:this.serialize(a.MAIN),condition2:this.serialize(a.CONDITION),operator:this.conditionValue}:this.serialize(a.MAIN):null},t.prototype.getNullableModel=function(){return this.isFilterConditionActive(a.CONDITION)?{condition1:this.serialize(a.MAIN),condition2:this.serialize(a.CONDITION),operator:this.conditionValue}:this.serialize(a.MAIN)},t.prototype.setModel=function(e){if(e)if(e.operator){var t=e;this.parse(t.condition1,a.MAIN),this.parse(t.condition2,a.CONDITION),this.conditionValue=t.operator}else this.resetState(),this.parse(e,a.MAIN);else this.resetState();this.redrawCondition(),this.refreshFilterBodyUi(a.MAIN),this.refreshFilterBodyUi(a.CONDITION)},t.prototype.doOnFilterChanged=function(e){void 0===e&&(e=!1),this.filterParams.filterModifiedCallback();var t=this.applyActive&&e,o=!this.applyActive||t;return o&&this.filterParams.filterChangedCallback(),this.refreshFilterBodyUi(a.MAIN),this.refreshFilterBodyUi(a.CONDITION),o},t.prototype.onFilterChanged=function(e){void 0===e&&(e=!1),this.doOnFilterChanged(e),this.redrawCondition(),this.refreshFilterBodyUi(a.MAIN),this.refreshFilterBodyUi(a.CONDITION)},t.prototype.redrawCondition=function(){var e=this,t=this.eFilterBodyWrapper.querySelector(".ag-filter-condition");if(!t&&this.isFilterActive()&&this.acceptsBooleanLogic()){this.eConditionWrapper=d._.loadTemplate(this.createConditionTemplate(a.CONDITION)),this.eFilterBodyWrapper.appendChild(this.eConditionWrapper),this.wireQuerySelectors();var o=this.refreshOperatorUi(),n=o.andButton,r=o.orButton;this.addDestroyableEventListener(n,"change",(function(){e.conditionValue="AND",e.onFilterChanged()})),this.addDestroyableEventListener(r,"change",(function(){e.conditionValue="OR",e.onFilterChanged()})),this.initialiseFilterBodyUi(a.CONDITION)}else t&&!this.isFilterActive()?(this.conditionValue="AND",this.resetState(!0),this.eFilterBodyWrapper.removeChild(this.eConditionWrapper),this.eConditionWrapper=null):(this.refreshFilterBodyUi(a.CONDITION),this.eConditionWrapper&&this.refreshOperatorUi())},t.prototype.refreshOperatorUi=function(){var e=this.eConditionWrapper.querySelector(".and"),t=this.eConditionWrapper.querySelector(".or");return this.conditionValue=null==this.conditionValue?"AND":this.conditionValue,e.checked="AND"===this.conditionValue,t.checked="OR"===this.conditionValue,{andButton:e,orButton:t}},t.prototype.onFloatingFilterChanged=function(e){var t=e;if(null==t)this.setModel(null);else if(this.isFilterConditionActive(a.CONDITION)){var o={condition1:t.model,condition2:this.serialize(a.CONDITION),operator:this.conditionValue};this.setModel(o)}else this.setModel(t?t.model:null);return this.doOnFilterChanged(!!t&&t.apply)},t.prototype.generateFilterHeader=function(e){return""},t.prototype.generateTemplate=function(){var e=this.translate.bind(this),t=this.createConditionBody(a.MAIN);return"<div>\n <div class='ag-filter-body-wrapper'>"+(this.acceptsBooleanLogic()?this.wrapCondition(t):t)+'</div>\n <div class="ag-filter-apply-panel" id="applyPanel">\n <button type="button" id="clearButton">'+e("clearFilter")+'</button>\n <button type="button" id="applyButton">'+e("applyFilter")+"</button>\n </div>\n </div>"},t.prototype.acceptsBooleanLogic=function(){return!1},t.prototype.wrapCondition=function(e){return this.isFilterActive()?""+e+this.createConditionTemplate(a.CONDITION):e},t.prototype.createConditionTemplate=function(e){return'<div class="ag-filter-condition">\n <input id="andId" type="radio" class="and" name="booleanLogic" value='+this.translate("AND")+'\n checked="checked" /><label style="display: inline" for="andId">'+this.translate("andCondition")+'</label>\n <input id="orId" type="radio" class="or" name="booleanLogic" value="OR" /><label style="display: inline"\n for="orId">'+this.translate("orCondition")+"</label>\n <div>"+this.createConditionBody(e)+"</div>\n </div>"},t.prototype.createConditionBody=function(e){var t=this.bodyTemplate(e);return this.generateFilterHeader(e)+t},t.prototype.translate=function(e){var t=this.gridOptionsWrapper.getLocaleTextFunc(),o=h[e];return!o&&this.customFilterOptions[e]&&(o=this.customFilterOptions[e].displayName),t(e,o)},t.prototype.getDebounceMs=function(e){return this.applyActive?(null!=e.debounceMs&&console.warn("ag-Grid: debounceMs is ignored when applyButton = true"),0):null!=e.debounceMs?e.debounceMs:500},t.prototype.doesFilterHaveHiddenInput=function(e){var t=this.customFilterOptions[e];return t&&t.hideFilterInput},t.EMPTY="empty",t.EQUALS="equals",t.NOT_EQUAL="notEqual",t.LESS_THAN="lessThan",t.LESS_THAN_OR_EQUAL="lessThanOrEqual",t.GREATER_THAN="greaterThan",t.GREATER_THAN_OR_EQUAL="greaterThanOrEqual",t.IN_RANGE="inRange",t.CONTAINS="contains",t.NOT_CONTAINS="notContains",t.STARTS_WITH="startsWith",t.ENDS_WITH="endsWith",i([p.QuerySelector("#applyPanel"),s("design:type",HTMLElement)],t.prototype,"eButtonsPanel",void 0),i([p.QuerySelector(".ag-filter-body-wrapper"),s("design:type",HTMLElement)],t.prototype,"eFilterBodyWrapper",void 0),i([p.QuerySelector("#applyButton"),s("design:type",HTMLElement)],t.prototype,"eApplyButton",void 0),i([p.QuerySelector("#clearButton"),s("design:type",HTMLElement)],t.prototype,"eClearButton",void 0),i([u.Autowired("gridOptionsWrapper"),s("design:type",c.GridOptionsWrapper)],t.prototype,"gridOptionsWrapper",void 0),t}(l.Component);t.BaseFilter=f;var g=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r(t,e),t.prototype.doesFilterPass=function(e){var t=this.individualFilterPasses(e,a.MAIN);if(null==this.eTypeConditionSelector)return t;var o=this.individualFilterPasses(e,a.CONDITION);return"AND"===this.conditionValue?t&&o:t||o},t.prototype.init=function(t){e.prototype.init.call(this,t),this.suppressAndOrCondition=t.suppressAndOrCondition},t.prototype.customInit=function(){this.defaultFilter||(this.defaultFilter=this.getDefaultType())},t.prototype.acceptsBooleanLogic=function(){return!0!==this.suppressAndOrCondition},t.prototype.generateFilterHeader=function(e){var t=this,o=this.getApplicableFilterTypes(),n=(this.filterParams.filterOptions||o).map((function(e){var o="string"==typeof e?e:e.displayKey;return'<option value="'+o+'">'+t.translate(o)+"</option>"})),r=1==n.length?"disabled":"",i=e==a.MAIN?"filterType":"filterConditionType";return n.length<=0?"":'<div>\n <select class="ag-filter-select" id="'+i+'" '+r+">\n "+n.join("")+"\n </select>\n </div>"},t.prototype.initialiseFilterBodyUi=function(e){var t=this;e===a.MAIN?(this.setFilterType(this.selectedFilter,e),this.addDestroyableEventListener(this.eTypeSelector,"change",(function(){return t.onFilterTypeChanged(e)}))):(this.setFilterType(this.selectedFilterCondition,e),this.addDestroyableEventListener(this.eTypeConditionSelector,"change",(function(){return t.onFilterTypeChanged(e)})))},t.prototype.onFilterTypeChanged=function(e){var t=this.selectedFilter;e===a.MAIN?this.selectedFilter=this.eTypeSelector.value:this.selectedFilterCondition=this.eTypeConditionSelector.value,this.refreshFilterBodyUi(e);var o=this.doesFilterHaveHiddenInput(t);(this.isFilterActive()||o)&&(this.selectedFilter===f.EMPTY&&this.resetState(),this.onFilterChanged())},t.prototype.isFilterActive=function(){if(this.doesFilterHaveHiddenInput(this.selectedFilter))return!0;var e=this.filterValues(a.MAIN);if(e&&this.selectedFilter===f.IN_RANGE){var t=e;return null!=t[0]&&null!=t[1]}return null!=e},t.prototype.setFilterType=function(e,t){if(t===a.MAIN){if(this.selectedFilter=e,!this.eTypeSelector)return;this.eTypeSelector.value=e}else{if(this.selectedFilterCondition=e,!this.eTypeConditionSelector)return;this.eTypeConditionSelector.value=e}},t.prototype.isFilterConditionActive=function(e){return null!=this.filterValues(e)},i([p.QuerySelector("#filterType"),s("design:type",HTMLSelectElement)],t.prototype,"eTypeSelector",void 0),i([p.QuerySelector("#filterConditionType"),s("design:type",HTMLSelectElement)],t.prototype,"eTypeConditionSelector",void 0),t}(f);t.ComparableBaseFilter=g;var m=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r(t,e),t.prototype.nullComparator=function(e){var t=this;return function(o,n){if(null==n){var r=t.translateNull(e);if(t.selectedFilter===f.EMPTY)return 0;if(t.selectedFilter===f.EQUALS)return r?0:1;if(t.selectedFilter===f.GREATER_THAN)return r?1:-1;if(t.selectedFilter===f.GREATER_THAN_OR_EQUAL)return r?1:-1;if(t.selectedFilter===f.LESS_THAN_OR_EQUAL)return r?-1:1;if(t.selectedFilter===f.LESS_THAN)return r?-1:1;if(t.selectedFilter===f.NOT_EQUAL)return r?1:0}return t.comparator()(o,n)}},t.prototype.getDefaultType=function(){return f.EQUALS},t.prototype.translateNull=function(e){var o=e.indexOf("greater")>-1?"greaterThan":e.indexOf("lessThan")>-1?"lessThan":"equals";return this.filterParams.nullComparator&&this.filterParams.nullComparator[o]?this.filterParams.nullComparator[o]:t.DEFAULT_NULL_COMPARATOR[o]},t.prototype.individualFilterPasses=function(e,t){return this.doIndividualFilterPasses(e,t,t===a.MAIN?this.selectedFilter:this.selectedFilterCondition)},t.prototype.doIndividualFilterPasses=function(e,t,o){var n=this.filterParams.valueGetter(e.node),r=this.filterValues(t),i=Array.isArray(r)?r[0]:r,s=this.customFilterOptions[o];if(s&&(null!=i||s.hideFilterInput))return s.test(i,n);if(null==i)return t===a.MAIN||"AND"===this.conditionValue;var l=this.nullComparator(o),p=l(i,n);if(o===f.EMPTY)return!1;if(o===f.EQUALS)return 0===p;if(o===f.GREATER_THAN)return p>0;if(o===f.GREATER_THAN_OR_EQUAL)return p>=0;if(o===f.LESS_THAN_OR_EQUAL)return p<=0;if(o===f.LESS_THAN)return p<0;if(o===f.NOT_EQUAL)return 0!=p;var u=l(r[1],n);if(o===f.IN_RANGE)return this.filterParams.inRangeInclusive?p>=0&&u<=0:p>0&&u<0;throw new Error("Unexpected type of filter: "+o)},t.DEFAULT_NULL_COMPARATOR={equals:!1,lessThan:!1,greaterThan:!1},t}(g);t.ScalarBaseFilter=m},8069:(e,t,o)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.CommaAndColonSeparatedRecord=t.ConnectionString=t.redactConnectionString=void 0;const n=o(21655),r=o(45928);Object.defineProperty(t,"redactConnectionString",{enumerable:!0,get:function(){return r.redactConnectionString}});const i="__this_is_a_placeholder__",s=/^(?<protocol>[^/]+):\/\/(?:(?<username>[^:@]*)(?::(?<password>[^@]*))?@)?(?<hosts>(?!:)[^/?@]*)(?<rest>.*)/;class a extends Map{delete(e){return super.delete(this._normalizeKey(e))}get(e){return super.get(this._normalizeKey(e))}has(e){return super.has(this._normalizeKey(e))}set(e,t){return super.set(this._normalizeKey(e),t)}_normalizeKey(e){e=`${e}`;for(const t of this.keys())if(t.toLowerCase()===e.toLowerCase()){e=t;break}return e}}class l extends n.URL{}class p extends Error{get name(){return"MongoParseError"}}class u extends l{_hosts;constructor(e,t={}){const{looseValidation:o}=t;if(!o&&!(n=e).startsWith("mongodb://")&&!n.startsWith("mongodb+srv://"))throw new p('Invalid scheme, expected connection string to start with "mongodb://" or "mongodb+srv://"');var n;const r=e.match(s);if(!r)throw new p("Invalid connection string");const{protocol:l,username:c,password:d,hosts:h,rest:f}=r.groups??{};if(!o){if(!l||!h)throw new p("Protocol and host list are required in the uri");try{decodeURIComponent(c??""),decodeURIComponent(d??"")}catch(e){throw new p(e.message)}const t=/[:/?#[\]@]/gi;if(c?.match(t))throw new p(`Username contains unescaped characters ${c}`);if(!c||!d){const t=e.replace(`${l}://`,"");if(t.startsWith("@")||t.startsWith(":"))throw new p("URI contained empty userinfo section")}if(d?.match(t))throw new p("Password contains unescaped characters");if(f?.match(/^[^/?]*@/))throw new p("Invalid connection string")}let g="";"string"==typeof c&&(g+=c),"string"==typeof d&&(g+=`:${d}`),g&&(g+="@");try{super(`${l.toLowerCase()}://${g}${i}${f}`)}catch(n){throw o&&new u(e,{...t,looseValidation:!1}),"string"==typeof n.message&&(n.message=n.message.replace(i,h)),n}if(this._hosts=h.split(","),!o){if(this.isSRV&&1!==this.hosts.length)throw new p("mongodb+srv URI cannot have multiple service names");if(this.isSRV&&this.hosts.some((e=>e.includes(":"))))throw new p("mongodb+srv URI cannot have port number")}var m;this.pathname||(this.pathname="/"),Object.setPrototypeOf(this.searchParams,(m=this.searchParams.constructor,class extends m{append(e,t){return super.append(this._normalizeKey(e),t)}delete(e){return super.delete(this._normalizeKey(e))}get(e){return super.get(this._normalizeKey(e))}getAll(e){return super.getAll(this._normalizeKey(e))}has(e){return super.has(this._normalizeKey(e))}set(e,t){return super.set(this._normalizeKey(e),t)}keys(){return super.keys()}values(){return super.values()}entries(){return super.entries()}[Symbol.iterator](){return super[Symbol.iterator]()}_normalizeKey(e){return a.prototype._normalizeKey.call(this,e)}}).prototype)}get host(){return i}set host(e){throw new Error("No single host for connection string")}get hostname(){return i}set hostname(e){throw new Error("No single host for connection string")}get port(){return""}set port(e){throw new Error("No single host for connection string")}get href(){return this.toString()}set href(e){throw new Error("Cannot set href for connection strings")}get isSRV(){return this.protocol.includes("srv")}get hosts(){return this._hosts}set hosts(e){this._hosts=e}toString(){return super.toString().replace(i,this.hosts.join(","))}clone(){return new u(this.toString(),{looseValidation:!0})}redact(e){return(0,r.redactValidConnectionString)(this,e)}typedSearchParams(){return this.searchParams}[Symbol.for("nodejs.util.inspect.custom")](){const{href:e,origin:t,protocol:o,username:n,password:r,hosts:i,pathname:s,search:a,searchParams:l,hash:p}=this;return{href:e,origin:t,protocol:o,username:n,password:r,hosts:i,pathname:s,search:a,searchParams:l,hash:p}}}t.ConnectionString=u,t.CommaAndColonSeparatedRecord=class extends a{constructor(e){super();for(const t of(e??"").split(",")){if(!t)continue;const e=t.indexOf(":");-1===e?this.set(t,""):this.set(t.slice(0,e),t.slice(e+1))}}toString(){return[...this].map((e=>e.join(":"))).join(",")}},t.default=u},8423:function(e,t,o){var n,r=this&&this.__extends||(n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])},n(e,t)},function(e,t){function o(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(o.prototype=t.prototype,new o)}),i=this&&this.__decorate||function(e,t,o,n){var r,i=arguments.length,s=i<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,n);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,o,s):r(t,o))||s);return i>3&&s&&Object.defineProperty(t,o,s),s},s=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0});var a=o(59804),l=o(99162),p=o(1080),u=o(1659),c=o(47304),d=o(44494),h=o(33669),f=o(33018),g=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r(t,e),t.prototype.init=function(){this.rowModel.getType()===d.Constants.ROW_MODEL_TYPE_CLIENT_SIDE&&(this.clientSideRowModel=this.rowModel),this.addDestroyableEventListener(this.eventService,f.Events.EVENT_CELL_VALUE_CHANGED,this.onCellValueChanged.bind(this))},t.prototype.onCellValueChanged=function(e){this.doChangeDetection(e.node,e.column)},t.prototype.doChangeDetection=function(e,t){if(!this.gridOptionsWrapper.isSuppressChangeDetection()){if(this.clientSideRowModel&&!e.isRowPinned()){var o=this.gridOptionsWrapper.isAggregateOnlyChangedColumns(),n=new p.ChangedPath(o,this.clientSideRowModel.getRootNode());n.addParentNode(e.parent,[t]),this.clientSideRowModel.doAggregate(n)}this.rowRenderer.refreshCells()}},i([a.Autowired("gridOptionsWrapper"),s("design:type",l.GridOptionsWrapper)],t.prototype,"gridOptionsWrapper",void 0),i([a.Autowired("rowModel"),s("design:type",Object)],t.prototype,"rowModel",void 0),i([a.Autowired("rowRenderer"),s("design:type",u.RowRenderer)],t.prototype,"rowRenderer",void 0),i([a.Autowired("eventService"),s("design:type",c.EventService)],t.prototype,"eventService",void 0),i([a.PostConstruct,s("design:type",Function),s("design:paramtypes",[]),s("design:returntype",void 0)],t.prototype,"init",null),i([a.Bean("changeDetectionService")],t)}(h.BeanStub);t.ChangeDetectionService=g},8458:function(e,t,o){var n,r=this&&this.__extends||(n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])},n(e,t)},function(e,t){function o(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(o.prototype=t.prototype,new o)}),i=this&&this.__decorate||function(e,t,o,n){var r,i=arguments.length,s=i<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,n);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,o,s):r(t,o))||s);return i>3&&s&&Object.defineProperty(t,o,s),s},s=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0});var a=o(38830),l=o(71569),p=o(30754),u=o(81404),c=o(51890),d=o(99162),h=o(56932),f=o(59804),g=o(23247),m=o(13161),y=o(98681),v=o(31551),C=o(36071),w=o(71627),_=o(21311),E=o(43510),b=function(e){function t(o,n,r){var i=e.call(this,t.TEMPLATE)||this;return i.childColumnsDestroyFuncs=[],i.columnGroup=o,i.dragSourceDropTarget=n,i.pinned=r,i}return r(t,e),t.prototype.postConstruct=function(){g.CssClassApplier.addHeaderClassesFromColDef(this.getComponentHolder(),this.getGui(),this.gridOptionsWrapper,null,this.columnGroup);var e=this.columnController.getDisplayNameForColumnGroup(this.columnGroup,"header");this.appendHeaderGroupComp(e),this.setupResize(),this.addClasses(),this.setupWidth(),this.addAttributes(),this.setupMovingCss(),this.setupTooltip(),this.addFeature(this.getContext(),new _.HoverFeature(this.columnGroup.getOriginalColumnGroup().getLeafColumns(),this.getGui()));var t=new y.SetLeftFeature(this.columnGroup,this.getGui(),this.beans);t.init(),this.addDestroyFunc(t.destroy.bind(t))},t.prototype.setupMovingCss=function(){var e=this;this.columnGroup.getOriginalColumnGroup().getLeafColumns().forEach((function(t){e.addDestroyableEventListener(t,l.Column.EVENT_MOVING_CHANGED,e.onColumnMovingChanged.bind(e))})),this.onColumnMovingChanged()},t.prototype.getComponentHolder=function(){return this.columnGroup.getColGroupDef()},t.prototype.getTooltipText=function(){var e=this.getComponentHolder();return e&&e.headerTooltip},t.prototype.setupTooltip=function(){var e=this.getTooltipText();null!=e&&(this.gridOptionsWrapper.isEnableBrowserTooltips()?this.getGui().setAttribute("title",e):this.beans.tooltipManager.registerTooltip(this))},t.prototype.onColumnMovingChanged=function(){E._.addOrRemoveCssClass(this.getGui(),"ag-header-cell-moving",this.columnGroup.isMoving())},t.prototype.addAttributes=function(){this.getGui().setAttribute("col-id",this.columnGroup.getUniqueId())},t.prototype.appendHeaderGroupComp=function(e){var t=this,o={displayName:e,columnGroup:this.columnGroup,setExpanded:function(e){t.columnController.setColumnGroupOpened(t.columnGroup.getOriginalColumnGroup(),e,"gridInitializing")},api:this.gridApi,columnApi:this.columnApi,context:this.gridOptionsWrapper.getContext()};if(!e){for(var n=this.columnGroup,r=n.getLeafColumns();n.getParent()&&n.getParent().getLeafColumns().length===r.length;)n=n.getParent();var i=n.getColGroupDef();i&&(e=i.headerName),e||(e=r?this.columnController.getDisplayNameForColumn(r[0],"header",!0):"")}var s=this.afterHeaderCompCreated.bind(this,e);this.userComponentFactory.newHeaderGroupComponent(o).then(s)},t.prototype.afterHeaderCompCreated=function(e,t){this.appendChild(t),this.setupMove(t.getGui(),e)},t.prototype.addClasses=function(){this.columnGroup.isPadding()?this.addCssClass("ag-header-group-cell-no-group"):this.addCssClass("ag-header-group-cell-with-group")},t.prototype.setupMove=function(e,t){var o=this;if(e&&!this.isSuppressMoving()){var n=this.columnGroup.getOriginalColumnGroup().getLeafColumns();if(e){var r={type:m.DragSourceType.HeaderCell,eElement:e,dragItemName:t,dragItemCallback:this.getDragItemForGroup.bind(this),dragSourceDropTarget:this.dragSourceDropTarget,dragStarted:function(){return n.forEach((function(e){return e.setMoving(!0,"uiColumnDragged")}))},dragStopped:function(){return n.forEach((function(e){return e.setMoving(!1,"uiColumnDragged")}))}};this.dragAndDropService.addDragSource(r,!0),this.addDestroyFunc((function(){return o.dragAndDropService.removeDragSource(r)}))}}},t.prototype.getDragItemForGroup=function(){var e=this.columnGroup.getOriginalColumnGroup().getLeafColumns(),t={};e.forEach((function(e){return t[e.getId()]=e.isVisible()}));var o=[];return this.columnController.getAllDisplayedColumns().forEach((function(t){e.indexOf(t)>=0&&(o.push(t),E._.removeFromArray(e,t))})),e.forEach((function(e){return o.push(e)})),{columns:o,visibleState:t}},t.prototype.isSuppressMoving=function(){var e=!1;return this.columnGroup.getLeafColumns().forEach((function(t){(t.getColDef().suppressMovable||t.isLockPosition())&&(e=!0)})),e||this.gridOptionsWrapper.isSuppressMovableColumns()},t.prototype.setupWidth=function(){this.addListenersToChildrenColumns(),this.addDestroyableEventListener(this.columnGroup,p.ColumnGroup.EVENT_DISPLAYED_CHILDREN_CHANGED,this.onDisplayedChildrenChanged.bind(this)),this.onWidthChanged(),this.addDestroyFunc(this.destroyListenersOnChildrenColumns.bind(this))},t.prototype.onDisplayedChildrenChanged=function(){this.addListenersToChildrenColumns(),this.onWidthChanged()},t.prototype.addListenersToChildrenColumns=function(){var e=this;this.destroyListenersOnChildrenColumns();var t=this.onWidthChanged.bind(this);this.columnGroup.getLeafColumns().forEach((function(o){o.addEventListener(l.Column.EVENT_WIDTH_CHANGED,t),o.addEventListener(l.Column.EVENT_VISIBLE_CHANGED,t),e.childColumnsDestroyFuncs.push((function(){o.removeEventListener(l.Column.EVENT_WIDTH_CHANGED,t),o.removeEventListener(l.Column.EVENT_VISIBLE_CHANGED,t)}))}))},t.prototype.destroyListenersOnChildrenColumns=function(){this.childColumnsDestroyFuncs.forEach((function(e){return e()})),this.childColumnsDestroyFuncs=[]},t.prototype.onWidthChanged=function(){this.getGui().style.width=this.columnGroup.getActualWidth()+"px"},t.prototype.setupResize=function(){var e=this;if(this.eHeaderCellResize=this.getRefElement("agResize"),this.columnGroup.isResizable()){var t=this.horizontalResizeService.addResizeBar({eResizeBar:this.eHeaderCellResize,onResizeStart:this.onResizeStart.bind(this),onResizing:this.onResizing.bind(this,!1),onResizeEnd:this.onResizing.bind(this,!0)});this.addDestroyFunc(t),this.gridOptionsWrapper.isSuppressAutoSize()||this.eHeaderCellResize.addEventListener("dblclick",(function(t){var o=[];e.columnGroup.getDisplayedLeafColumns().forEach((function(e){e.getColDef().suppressAutoSize||o.push(e.getColId())})),o.length>0&&e.columnController.autoSizeColumns(o,"uiColumnResized")}))}else E._.removeFromParent(this.eHeaderCellResize)},t.prototype.onResizeStart=function(e){var t=this,o=this.columnGroup.getDisplayedLeafColumns();this.resizeCols=E._.filter(o,(function(e){return e.isResizable()})),this.resizeStartWidth=0,this.resizeCols.forEach((function(e){return t.resizeStartWidth+=e.getActualWidth()})),this.resizeRatios=[],this.resizeCols.forEach((function(e){return t.resizeRatios.push(e.getActualWidth()/t.resizeStartWidth)}));var n=null;if(e&&(n=this.columnController.getDisplayedGroupAfter(this.columnGroup)),n){var r=n.getDisplayedLeafColumns();this.resizeTakeFromCols=E._.filter(r,(function(e){return e.isResizable()})),this.resizeTakeFromStartWidth=0,this.resizeTakeFromCols.forEach((function(e){return t.resizeTakeFromStartWidth+=e.getActualWidth()})),this.resizeTakeFromRatios=[],this.resizeTakeFromCols.forEach((function(e){return t.resizeTakeFromRatios.push(e.getActualWidth()/t.resizeTakeFromStartWidth)}))}else this.resizeTakeFromCols=null,this.resizeTakeFromStartWidth=null,this.resizeTakeFromRatios=null;E._.addCssClass(this.getGui(),"ag-column-resizing")},t.prototype.onResizing=function(e,t){var o=[],n=this.normaliseDragChange(t);o.push({columns:this.resizeCols,ratios:this.resizeRatios,width:this.resizeStartWidth+n}),this.resizeTakeFromCols&&o.push({columns:this.resizeTakeFromCols,ratios:this.resizeTakeFromRatios,width:this.resizeTakeFromStartWidth-n}),this.columnController.resizeColumnSets(o,e,"uiColumnDragged"),e&&E._.removeCssClass(this.getGui(),"ag-column-resizing")},t.prototype.normaliseDragChange=function(e){var t=e;return this.gridOptionsWrapper.isEnableRtl()?this.pinned!==l.Column.PINNED_LEFT&&(t*=-1):this.pinned===l.Column.PINNED_RIGHT&&(t*=-1),t},t.TEMPLATE='<div class="ag-header-group-cell"><div ref="agResize" class="ag-header-cell-resize"></div></div>',i([f.Autowired("gridOptionsWrapper"),s("design:type",d.GridOptionsWrapper)],t.prototype,"gridOptionsWrapper",void 0),i([f.Autowired("columnController"),s("design:type",c.ColumnController)],t.prototype,"columnController",void 0),i([f.Autowired("horizontalResizeService"),s("design:type",h.HorizontalResizeService)],t.prototype,"horizontalResizeService",void 0),i([f.Autowired("dragAndDropService"),s("design:type",m.DragAndDropService)],t.prototype,"dragAndDropService",void 0),i([f.Autowired("userComponentFactory"),s("design:type",C.UserComponentFactory)],t.prototype,"userComponentFactory",void 0),i([f.Autowired("gridApi"),s("design:type",v.GridApi)],t.prototype,"gridApi",void 0),i([f.Autowired("columnApi"),s("design:type",u.ColumnApi)],t.prototype,"columnApi",void 0),i([f.Autowired("beans"),s("design:type",w.Beans)],t.prototype,"beans",void 0),i([f.PostConstruct,s("design:type",Function),s("design:paramtypes",[]),s("design:returntype",void 0)],t.prototype,"postConstruct",null),t}(a.Component);t.HeaderGroupWrapperComp=b},8633:(e,t,o)=>{var n=o(15088).process;Object.defineProperty(t,"__esModule",{value:!0}),t.signals=void 0,t.signals=[],t.signals.push("SIGHUP","SIGINT","SIGTERM"),"win32"!==n.platform&&t.signals.push("SIGALRM","SIGABRT","SIGVTALRM","SIGXCPU","SIGXFSZ","SIGUSR2","SIGTRAP","SIGSYS","SIGQUIT","SIGIOT"),"linux"===n.platform&&t.signals.push("SIGIO","SIGPOLL","SIGPWR","SIGSTKFLT")},9743:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0});var o=function(){function e(){}return e.STRING_PROPERTIES=["headerName","columnGroupShow","headerClass","toolPanelClass","headerValueGetter","pivotKeys","groupId","colId","sort","field","type","tooltipComponent","tooltipField","headerTooltip","cellClass","showRowGroup","template","templateUrl","filter","aggFunc","cellRenderer","cellEditor","pinned"],e.OBJECT_PROPERTIES=["headerGroupComponent","headerGroupComponentFramework","headerGroupComponentParams","cellStyle","cellRendererParams","cellEditorFramework","cellEditorParams","pinnedRowCellRendererFramework","pinnedRowCellRendererParams","filterFramework","filterParams","pivotValueColumn","headerComponent","headerComponentFramework","headerComponentParams","floatingFilterComponent","floatingFilterComponentParams","floatingFilterComponentFramework","tooltipComponent","tooltipComponentParams","tooltipComponentFramework","refData"],e.ARRAY_PROPERTIES=["children","sortingOrder","allowedAggFuncs","menuTabs","pivotTotalColumnIds","cellClassRules","icons"],e.NUMBER_PROPERTIES=["sortedAt","width","minWidth","maxWidth","rowGroupIndex","pivotIndex"],e.BOOLEAN_PROPERTIES=["suppressCellFlash","suppressToolPanel","openByDefault","marryChildren","hide","rowGroup","pivot","checkboxSelection","headerCheckboxSelection","headerCheckboxSelectionFilteredOnly","suppressMenu","suppressSorting","suppressMovable","suppressFilter","lockPosition","lockVisible","lockPinned","unSortIcon","suppressSizeToFit","suppressResize","suppressAutoSize","enableRowGroup","enablePivot","enableValue","editable","suppressPaste","suppressNavigable","enableCellChangeFlash","rowDrag","autoHeight","sortable","resizable","singleClickEdit"],e.FUNCTION_PROPERTIES=["valueGetter","valueSetter","filterValueGetter","keyCreator","cellRenderer","cellRendererFramework","pinnedRowCellRenderer","valueFormatter","pinnedRowValueFormatter","valueParser","comparator","equals","pivotComparator","suppressKeyboardEvent","colSpan","rowSpan","getQuickFilterText","newValueHandler","onCellValueChanged","onCellClicked","onCellDoubleClicked","onCellContextMenu","tooltip","tooltipValueGetter","tooltipComponent","tooltipComponentFramework","cellRendererSelector","cellEditorSelector"],e.ALL_PROPERTIES=e.ARRAY_PROPERTIES.concat(e.OBJECT_PROPERTIES).concat(e.STRING_PROPERTIES).concat(e.NUMBER_PROPERTIES).concat(e.FUNCTION_PROPERTIES).concat(e.BOOLEAN_PROPERTIES),e.FRAMEWORK_PROPERTIES=["__ob__","__metadata__","mappedColumnProperties","hasChildColumns","toColDef","createColDefFromGridColumn"],e}();t.ColDefUtil=o},10017:function(e,t,o){var n=this&&this.__decorate||function(e,t,o,n){var r,i=arguments.length,s=i<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,n);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,o,s):r(t,o))||s);return i>3&&s&&Object.defineProperty(t,o,s),s},r=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},i=this&&this.__param||function(e,t){return function(o,n){t(o,n,e)}};Object.defineProperty(t,"__esModule",{value:!0});var s=o(6658),a=o(12427),l=o(59804),p=o(43510),u=function(){function e(e,t){this.activeBlockLoadsCount=0,this.blocks=[],this.active=!0,this.maxConcurrentRequests=e,t&&t>0&&(this.checkBlockToLoadDebounce=p._.debounce(this.performCheckBlocksToLoad.bind(this),t))}return e.prototype.setBeans=function(e){this.logger=e.create("RowNodeBlockLoader")},e.prototype.addBlock=function(e){this.blocks.push(e)},e.prototype.removeBlock=function(e){p._.removeFromArray(this.blocks,e)},e.prototype.destroy=function(){this.active=!1},e.prototype.loadComplete=function(){this.activeBlockLoadsCount--},e.prototype.checkBlockToLoad=function(){this.checkBlockToLoadDebounce?this.checkBlockToLoadDebounce():this.performCheckBlocksToLoad()},e.prototype.performCheckBlocksToLoad=function(){if(this.active)if(this.printCacheStatus(),this.activeBlockLoadsCount>=this.maxConcurrentRequests)this.logger.log("checkBlockToLoad: max loads exceeded");else{var e=null;this.blocks.forEach((function(t){t.getState()===s.RowNodeBlock.STATE_DIRTY&&(e=t)})),e?(e.load(),this.activeBlockLoadsCount++,this.logger.log("checkBlockToLoad: loading page "+e.getBlockNumber()),this.printCacheStatus()):this.logger.log("checkBlockToLoad: no pages to load")}},e.prototype.getBlockState=function(){var e={};return this.blocks.forEach((function(t){var o=t.getNodeIdPrefix(),n={blockNumber:t.getBlockNumber(),startRow:t.getStartRow(),endRow:t.getEndRow(),pageStatus:t.getState()};p._.exists(o)?e[o+t.getBlockNumber()]=n:e[t.getBlockNumber()]=n})),e},e.prototype.printCacheStatus=function(){this.logger.isLogging()&&this.logger.log("printCacheStatus: activePageLoadsCount = "+this.activeBlockLoadsCount+", blocks = "+JSON.stringify(this.getBlockState()))},n([i(0,l.Qualifier("loggerFactory")),r("design:type",Function),r("design:paramtypes",[a.LoggerFactory]),r("design:returntype",void 0)],e.prototype,"setBeans",null),e}();t.RowNodeBlockLoader=u},10228:function(e,t,o){var n=this&&this.__decorate||function(e,t,o,n){var r,i=arguments.length,s=i<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,n);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,o,s):r(t,o))||s);return i>3&&s&&Object.defineProperty(t,o,s),s},r=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0});var i=o(59804),s=o(44494),a=o(99162),l=o(43510),p=function(){function e(){}return e.prototype.postConstruct=function(){this.rowModel.getType()===s.Constants.ROW_MODEL_TYPE_CLIENT_SIDE&&(this.clientSideRowModel=this.rowModel)},e.prototype.createTransactionForRowData=function(e){if(l._.missing(this.clientSideRowModel))console.error("ag-Grid: ImmutableService only works with ClientSideRowModel");else{var t=this.gridOptionsWrapper.getRowNodeIdFunc();if(t&&!l._.missing(t)){var o={remove:[],update:[],add:[]},n=this.clientSideRowModel.getCopyOfNodesMap(),r=this.gridOptionsWrapper.isSuppressMaintainUnsortedOrder()?null:{};return l._.exists(e)&&e.forEach((function(e,i){var s=t(e),a=n[s];r&&(r[s]=i),a?(a.data!==e&&o.update.push(e),n[s]=void 0):o.add.push(e)})),l._.iterateObject(n,(function(e,t){t&&o.remove.push(t.data)})),[o,r]}console.error("ag-Grid: ImmutableService requires getRowNodeId() callback to be implemented, your row data need IDs!")}},n([i.Autowired("rowModel"),r("design:type",Object)],e.prototype,"rowModel",void 0),n([i.Autowired("gridOptionsWrapper"),r("design:type",a.GridOptionsWrapper)],e.prototype,"gridOptionsWrapper",void 0),n([i.PostConstruct,r("design:type",Function),r("design:paramtypes",[]),r("design:returntype",void 0)],e.prototype,"postConstruct",null),n([i.Bean("immutableService")],e)}();t.ImmutableService=p},11088:(e,t,o)=>{o.d(t,{Ay:()=>r,J0:()=>i});var n=o(8069);const r=n.default,i=(n.CommaAndColonSeparatedRecord,n.ConnectionString,n.redactConnectionString)},12427:function(e,t,o){var n=this&&this.__decorate||function(e,t,o,n){var r,i=arguments.length,s=i<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,n);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,o,s):r(t,o))||s);return i>3&&s&&Object.defineProperty(t,o,s),s},r=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},i=this&&this.__param||function(e,t){return function(o,n){t(o,n,e)}};Object.defineProperty(t,"__esModule",{value:!0});var s=o(99162),a=o(59804),l=o(59804),p=function(){function e(){}return e.prototype.setBeans=function(e){this.logging=e.isDebug()},e.prototype.create=function(e){return new u(e,this.isLogging.bind(this))},e.prototype.isLogging=function(){return this.logging},n([i(0,l.Qualifier("gridOptionsWrapper")),r("design:type",Function),r("design:paramtypes",[s.GridOptionsWrapper]),r("design:returntype",void 0)],e.prototype,"setBeans",null),n([a.Bean("loggerFactory")],e)}();t.LoggerFactory=p;var u=function(){function e(e,t){this.name=e,this.isLoggingFunc=t}return e.prototype.isLogging=function(){return this.isLoggingFunc()},e.prototype.log=function(e){this.isLoggingFunc()&&console.log("ag-Grid."+this.name+": "+e)},e}();t.Logger=u},12967:function(e,t,o){var n,r=this&&this.__extends||(n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])},n(e,t)},function(e,t){function o(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(o.prototype=t.prototype,new o)}),i=this&&this.__decorate||function(e,t,o,n){var r,i=arguments.length,s=i<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,n);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,o,s):r(t,o))||s);return i>3&&s&&Object.defineProperty(t,o,s),s},s=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0});var a=o(99162),l=o(59804),p=function(e){function t(){return e.call(this)||this}return r(t,e),t.prototype.init=function(e){var o=this.gridOptionsWrapper.getOverlayLoadingTemplate()?this.gridOptionsWrapper.getOverlayLoadingTemplate():t.DEFAULT_LOADING_OVERLAY_TEMPLATE,n=this.gridOptionsWrapper.getLocaleTextFunc(),r=o.replace("[LOADING...]",n("loadingOoo","Loading..."));this.setTemplate(r)},t.DEFAULT_LOADING_OVERLAY_TEMPLATE='<span class="ag-overlay-loading-center">[LOADING...]</span>',i([l.Autowired("gridOptionsWrapper"),s("design:type",a.GridOptionsWrapper)],t.prototype,"gridOptionsWrapper",void 0),t}(o(38830).Component);t.LoadingOverlayComponent=p},13068:(e,t,o)=>{var n=o(15088).process;e.exports=async function(e,t,o,i){o instanceof Function&&(i=o,o={});const u=async function(e,t,o={}){let i,u;"string"==typeof o&&(o={encoding:o});const c=s(h((()=>u))),g=a.resolve(e);try{await function(e){return new Promise((t=>{p[e]||(p[e]=[]),p[e].push(t),1===p[e].length&&t()}))}(g);const s=await l(r.realpath)(e).catch((()=>e));if(u=d(s),!o.mode||!o.chown){const e=await l(r.stat)(s).catch((()=>{}));e&&(null==o.mode&&(o.mode=e.mode),null==o.chown&&n.getuid&&(o.chown={uid:e.uid,gid:e.gid}))}i=await l(r.open)(u,"w",o.mode),o.tmpfileCreated&&await o.tmpfileCreated(u),ArrayBuffer.isView(t)?await l(r.write)(i,t,0,t.length,0):null!=t&&await l(r.write)(i,String(t),0,String(o.encoding||"utf8")),!1!==o.fsync&&await l(r.fsync)(i),await l(r.close)(i),i=null,o.chown&&await l(r.chown)(u,o.chown.uid,o.chown.gid).catch((e=>{if(!f(e))throw e})),o.mode&&await l(r.chmod)(u,o.mode).catch((e=>{if(!f(e))throw e})),await l(r.rename)(u,s)}finally{i&&await l(r.close)(i).catch((()=>{})),c(),await l(r.unlink)(u).catch((()=>{})),p[g].shift(),p[g].length>0?p[g][0]():delete p[g]}}(e,t,o);if(i)try{return i(await u)}catch(e){return i(e)}return u},e.exports.sync=function(e,t,o){"string"==typeof o?o={encoding:o}:o||(o={});try{e=r.realpathSync(e)}catch(e){}const i=d(e);if(!o.mode||!o.chown)try{const t=r.statSync(e);(o=Object.assign({},o)).mode||(o.mode=t.mode),!o.chown&&n.getuid&&(o.chown={uid:t.uid,gid:t.gid})}catch(e){}let a;const l=h(i),p=s(l);let u=!0;try{if(a=r.openSync(i,"w",o.mode||438),o.tmpfileCreated&&o.tmpfileCreated(i),ArrayBuffer.isView(t)?r.writeSync(a,t,0,t.length,0):null!=t&&r.writeSync(a,String(t),0,String(o.encoding||"utf8")),!1!==o.fsync&&r.fsyncSync(a),r.closeSync(a),a=null,o.chown)try{r.chownSync(i,o.chown.uid,o.chown.gid)}catch(e){if(!f(e))throw e}if(o.mode)try{r.chmodSync(i,o.mode)}catch(e){if(!f(e))throw e}r.renameSync(i,e),u=!1}finally{if(a)try{r.closeSync(a)}catch(e){}p(),u&&l()}},e.exports._getTmpname=d,e.exports._cleanupOnExit=h;const r=o(4308),i=o(53021),{onExit:s}=o(22784),a=o(78773),{promisify:l}=o(13390),p={},u=function(){try{return o(86983).threadId}catch(e){return 0}}();let c=0;function d(e){return e+"."+i("/index.js").hash(String(n.pid)).hash(String(u)).hash(String(++c)).result()}function h(e){return()=>{try{r.unlinkSync("function"==typeof e?e():e)}catch{}}}function f(e){return"ENOSYS"===e.code||!(n.getuid&&0===n.getuid()||"EINVAL"!==e.code&&"EPERM"!==e.code)}},13161:function(e,t,o){var n=this&&this.__decorate||function(e,t,o,n){var r,i=arguments.length,s=i<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,n);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,o,s):r(t,o))||s);return i>3&&s&&Object.defineProperty(t,o,s),s},r=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},i=this&&this.__param||function(e,t){return function(o,n){t(o,n,e)}};Object.defineProperty(t,"__esModule",{value:!0});var s,a,l,p=o(12427),u=o(59804),c=o(99162),d=o(56579),h=o(51890),f=o(17074),g=o(43510);!function(e){e[e.ToolPanel=0]="ToolPanel",e[e.HeaderCell=1]="HeaderCell",e[e.RowDrag=2]="RowDrag"}(s=t.DragSourceType||(t.DragSourceType={})),function(e){e[e.Up=0]="Up",e[e.Down=1]="Down"}(a=t.VDirection||(t.VDirection={})),function(e){e[e.Left=0]="Left",e[e.Right=1]="Right"}(l=t.HDirection||(t.HDirection={}));var m=function(){function e(){this.dragSourceAndParamsList=[],this.dropTargets=[]}var t;return t=e,e.prototype.init=function(){this.ePinnedIcon=g._.createIcon("columnMovePin",this.gridOptionsWrapper,null),this.ePlusIcon=g._.createIcon("columnMoveAdd",this.gridOptionsWrapper,null),this.eHiddenIcon=g._.createIcon("columnMoveHide",this.gridOptionsWrapper,null),this.eMoveIcon=g._.createIcon("columnMoveMove",this.gridOptionsWrapper,null),this.eLeftIcon=g._.createIcon("columnMoveLeft",this.gridOptionsWrapper,null),this.eRightIcon=g._.createIcon("columnMoveRight",this.gridOptionsWrapper,null),this.eGroupIcon=g._.createIcon("columnMoveGroup",this.gridOptionsWrapper,null),this.eAggregateIcon=g._.createIcon("columnMoveValue",this.gridOptionsWrapper,null),this.ePivotIcon=g._.createIcon("columnMovePivot",this.gridOptionsWrapper,null),this.eDropNotAllowedIcon=g._.createIcon("dropNotAllowed",this.gridOptionsWrapper,null)},e.prototype.setBeans=function(e){this.logger=e.create("OldToolPanelDragAndDropService")},e.prototype.getStringType=function(e){switch(e){case s.RowDrag:return"row";case s.HeaderCell:return"headerCell";case s.ToolPanel:return"toolPanel";default:return console.warn("ag-Grid: bug - unknown drag type "+e),null}},e.prototype.addDragSource=function(e,t){void 0===t&&(t=!1);var o={eElement:e.eElement,dragStartPixels:e.dragStartPixels,onDragStart:this.onDragStart.bind(this,e),onDragStop:this.onDragStop.bind(this),onDragging:this.onDragging.bind(this)};this.dragSourceAndParamsList.push({params:o,dragSource:e}),this.dragService.addDragSource(o,t)},e.prototype.removeDragSource=function(e){var t=g._.find(this.dragSourceAndParamsList,(function(t){return t.dragSource===e}));t&&(this.dragService.removeDragSource(t.params),g._.removeFromArray(this.dragSourceAndParamsList,t))},e.prototype.destroy=function(){var e=this;this.dragSourceAndParamsList.forEach((function(t){e.dragService.removeDragSource(t.params)})),this.dragSourceAndParamsList.length=0},e.prototype.nudge=function(){this.dragging&&this.onDragging(this.eventLastTime,!0)},e.prototype.onDragStart=function(e,t){this.dragging=!0,this.dragSource=e,this.eventLastTime=t,this.dragItem=this.dragSource.dragItemCallback(),this.lastDropTarget=this.dragSource.dragSourceDropTarget,this.dragSource.dragStarted&&this.dragSource.dragStarted(),this.createGhost()},e.prototype.onDragStop=function(e){if(this.eventLastTime=null,this.dragging=!1,this.dragSource.dragStopped&&this.dragSource.dragStopped(),this.lastDropTarget&&this.lastDropTarget.onDragStop){var t=this.createDropTargetEvent(this.lastDropTarget,e,null,null,!1);this.lastDropTarget.onDragStop(t)}this.lastDropTarget=null,this.dragItem=null,this.removeGhost()},e.prototype.onDragging=function(e,t){var o=this.workOutHDirection(e),n=this.workOutVDirection(e);this.eventLastTime=e,this.positionGhost(e);var r=g._.find(this.dropTargets,this.isMouseOnDropTarget.bind(this,e));if(r!==this.lastDropTarget)this.leaveLastTargetIfExists(e,o,n,t),this.enterDragTargetIfExists(r,e,o,n,t),this.lastDropTarget=r;else if(r){var i=this.createDropTargetEvent(r,e,o,n,t);r.onDragging(i)}},e.prototype.enterDragTargetIfExists=function(e,t,o,n,r){if(e){var i=this.createDropTargetEvent(e,t,o,n,r);e.onDragEnter(i),this.setGhostIcon(e.getIconName?e.getIconName():null)}},e.prototype.leaveLastTargetIfExists=function(e,t,o,n){if(this.lastDropTarget){var r=this.createDropTargetEvent(this.lastDropTarget,e,t,o,n);this.lastDropTarget.onDragLeave(r),this.setGhostIcon(null)}},e.prototype.getAllContainersFromDropTarget=function(e){var t=[e.getContainer()],o=e.getSecondaryContainers?e.getSecondaryContainers():null;return o&&(t=t.concat(o)),t},e.prototype.isMouseOnDropTarget=function(e,t){var o=this.getAllContainersFromDropTarget(t),n=!1;return o.forEach((function(t){if(t){var o=t.getBoundingClientRect();if(0!==o.width&&0!==o.height){var r=e.clientX>=o.left&&e.clientX<=o.right,i=e.clientY>=o.top&&e.clientY<=o.bottom;r&&i&&(n=!0)}}})),!!n&&t.isInterestedIn(this.dragSource.type)},e.prototype.addDropTarget=function(e){this.dropTargets.push(e)},e.prototype.workOutHDirection=function(e){return this.eventLastTime.clientX>e.clientX?l.Left:this.eventLastTime.clientX<e.clientX?l.Right:null},e.prototype.workOutVDirection=function(e){return this.eventLastTime.clientY>e.clientY?a.Up:this.eventLastTime.clientY<e.clientY?a.Down:null},e.prototype.createDropTargetEvent=function(e,t,o,n,r){var i=e.getContainer().getBoundingClientRect();return{event:t,x:t.clientX-i.left,y:t.clientY-i.top,vDirection:n,hDirection:o,dragSource:this.dragSource,fromNudge:r,dragItem:this.dragItem}},e.prototype.positionGhost=function(e){var t=this.eGhost.getBoundingClientRect().height,o=g._.getBodyWidth()-2,n=g._.getBodyHeight()-2,r=e.pageY-t/2,i=e.pageX-30,s=this.gridOptionsWrapper.getDocument(),a=window.pageYOffset||s.documentElement.scrollTop,l=window.pageXOffset||s.documentElement.scrollLeft;o>0&&i+this.eGhost.clientWidth>o+l&&(i=o+l-this.eGhost.clientWidth),i<0&&(i=0),n>0&&r+this.eGhost.clientHeight>n+a&&(r=n+a-this.eGhost.clientHeight),r<0&&(r=0),this.eGhost.style.left=i+"px",this.eGhost.style.top=r+"px"},e.prototype.removeGhost=function(){this.eGhost&&this.eGhostParent&&this.eGhostParent.removeChild(this.eGhost),this.eGhost=null},e.prototype.createGhost=function(){this.eGhost=g._.loadTemplate(t.GHOST_TEMPLATE);var e=this.environment.getTheme();e&&g._.addCssClass(this.eGhost,e),this.eGhostIcon=this.eGhost.querySelector(".ag-dnd-ghost-icon"),this.setGhostIcon(null),this.eGhost.querySelector(".ag-dnd-ghost-label").innerHTML=g._.escape(this.dragSource.dragItemName),this.eGhost.style.height="25px",this.eGhost.style.top="20px",this.eGhost.style.left="20px";var o=this.gridOptionsWrapper.getDocument();this.eGhostParent=o.querySelector("body"),this.eGhostParent?this.eGhostParent.appendChild(this.eGhost):console.warn("ag-Grid: could not find document body, it is needed for dragging columns")},e.prototype.setGhostIcon=function(e,o){var n;switch(void 0===o&&(o=!1),g._.clearElement(this.eGhostIcon),e){case t.ICON_ADD:n=this.ePlusIcon;break;case t.ICON_PINNED:n=this.ePinnedIcon;break;case t.ICON_MOVE:n=this.eMoveIcon;break;case t.ICON_LEFT:n=this.eLeftIcon;break;case t.ICON_RIGHT:n=this.eRightIcon;break;case t.ICON_GROUP:n=this.eGroupIcon;break;case t.ICON_AGGREGATE:n=this.eAggregateIcon;break;case t.ICON_PIVOT:n=this.ePivotIcon;break;case t.ICON_NOT_ALLOWED:n=this.eDropNotAllowedIcon;break;default:n=this.eHiddenIcon}this.eGhostIcon.appendChild(n),g._.addOrRemoveCssClass(this.eGhostIcon,"ag-shake-left-to-right",o)},e.ICON_PINNED="pinned",e.ICON_ADD="add",e.ICON_MOVE="move",e.ICON_LEFT="left",e.ICON_RIGHT="right",e.ICON_GROUP="group",e.ICON_AGGREGATE="aggregate",e.ICON_PIVOT="pivot",e.ICON_NOT_ALLOWED="notAllowed",e.GHOST_TEMPLATE='<div class="ag-dnd-ghost"> <span class="ag-dnd-ghost-icon ag-shake-left-to-right"></span> <div class="ag-dnd-ghost-label"> </div></div>',n([u.Autowired("gridOptionsWrapper"),r("design:type",c.GridOptionsWrapper)],e.prototype,"gridOptionsWrapper",void 0),n([u.Autowired("dragService"),r("design:type",d.DragService)],e.prototype,"dragService",void 0),n([u.Autowired("environment"),r("design:type",f.Environment)],e.prototype,"environment",void 0),n([u.Autowired("columnController"),r("design:type",h.ColumnController)],e.prototype,"columnController",void 0),n([u.PostConstruct,r("design:type",Function),r("design:paramtypes",[]),r("design:returntype",void 0)],e.prototype,"init",null),n([i(0,u.Qualifier("loggerFactory")),r("design:type",Function),r("design:paramtypes",[p.LoggerFactory]),r("design:returntype",void 0)],e.prototype,"setBeans",null),n([u.PreDestroy,r("design:type",Function),r("design:paramtypes",[]),r("design:returntype",void 0)],e.prototype,"destroy",null),t=n([u.Bean("dragAndDropService")],e)}();t.DragAndDropService=m},13310:(e,t,o)=>{o.d(t,{Ay:()=>r,J0:()=>a,QZ:()=>s,Y6:()=>i});var n=o(23409);const r=n.default,i=n.CommaAndColonSeparatedRecord,s=n.ConnectionString,a=n.redactConnectionString},14035:function(e,t,o){var n=this&&this.__decorate||function(e,t,o,n){var r,i=arguments.length,s=i<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,n);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,o,s):r(t,o))||s);return i>3&&s&&Object.defineProperty(t,o,s),s},r=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0});var i=o(71569),s=o(59804),a=o(99162),l=o(81404),p=o(51890),u=o(47304),c=o(33018),d=o(31551),h=o(43510),f=function(){function e(){}var t;return t=e,e.prototype.progressSort=function(e,t,o){void 0===o&&(o="api");var n=this.getNextSortDirection(e);this.setSortForColumn(e,n,t,o)},e.prototype.setSortForColumn=function(e,t,o,n){if(void 0===n&&(n="api"),t!==i.Column.SORT_ASC&&t!==i.Column.SORT_DESC&&(t=null),e.setSort(t,n),e.getSort()){var r=Number((new Date).valueOf());e.setSortedAt(r)}else e.setSortedAt(null);o&&!this.gridOptionsWrapper.isSuppressMultiSort()||this.clearSortBarThisColumn(e,n),this.dispatchSortChangedEvents()},e.prototype.onSortChanged=function(){this.dispatchSortChangedEvents()},e.prototype.dispatchSortChangedEvents=function(){var e={type:c.Events.EVENT_SORT_CHANGED,api:this.gridApi,columnApi:this.columnApi};this.eventService.dispatchEvent(e)},e.prototype.clearSortBarThisColumn=function(e,t){this.columnController.getPrimaryAndSecondaryAndAutoColumns().forEach((function(o){o!==e&&o.setSort(void 0,t)}))},e.prototype.getNextSortDirection=function(e){var o;if(o=e.getColDef().sortingOrder?e.getColDef().sortingOrder:this.gridOptionsWrapper.getSortingOrder()?this.gridOptionsWrapper.getSortingOrder():t.DEFAULT_SORTING_ORDER,!Array.isArray(o)||o.length<=0)return console.warn("ag-grid: sortingOrder must be an array with at least one element, currently it's "+o),null;var n,r=o.indexOf(e.getSort()),i=r<0,s=r==o.length-1;return n=i||s?o[0]:o[r+1],t.DEFAULT_SORTING_ORDER.indexOf(n)<0?(console.warn("ag-grid: invalid sort type "+n),null):n},e.prototype.getSortModel=function(){var e=this.getColumnsWithSortingOrdered();return h._.map(e,(function(e){return{colId:e.getColId(),sort:e.getSort()}}))},e.prototype.setSortModel=function(e,t){var o=this;void 0===t&&(t="api");var n=e&&e.length>0;this.columnController.getPrimaryAndSecondaryAndAutoColumns().forEach((function(r){var i=null,s=-1;if(n&&r.getColDef().sortable)for(var a=0;a<e.length;a++){var l=e[a];"string"==typeof l.colId&&"string"==typeof r.getColId()&&o.compareColIds(l,r)&&(i=l.sort,s=a)}i?(r.setSort(i,t),r.setSortedAt(s)):(r.setSort(null,t),r.setSortedAt(null))})),this.dispatchSortChangedEvents()},e.prototype.compareColIds=function(e,t){return e.colId===t.getColId()},e.prototype.getColumnsWithSortingOrdered=function(){var e=this.columnController.getPrimaryAndSecondaryAndAutoColumns(),t=h._.filter(e,(function(e){return!!e.getSort()}));return t.sort((function(e,t){return e.sortedAt-t.sortedAt})),t},e.prototype.getSortForRowController=function(){var e=this.getColumnsWithSortingOrdered();return h._.map(e,(function(e){return{inverter:e.getSort()===i.Column.SORT_ASC?1:-1,column:e}}))},e.DEFAULT_SORTING_ORDER=[i.Column.SORT_ASC,i.Column.SORT_DESC,null],n([s.Autowired("gridOptionsWrapper"),r("design:type",a.GridOptionsWrapper)],e.prototype,"gridOptionsWrapper",void 0),n([s.Autowired("columnController"),r("design:type",p.ColumnController)],e.prototype,"columnController",void 0),n([s.Autowired("eventService"),r("design:type",u.EventService)],e.prototype,"eventService",void 0),n([s.Autowired("columnApi"),r("design:type",l.ColumnApi)],e.prototype,"columnApi",void 0),n([s.Autowired("gridApi"),r("design:type",d.GridApi)],e.prototype,"gridApi",void 0),t=n([s.Bean("sortController")],e)}();t.SortController=f},15512:function(e,t,o){var n=this&&this.__decorate||function(e,t,o,n){var r,i=arguments.length,s=i<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,n);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,o,s):r(t,o))||s);return i>3&&s&&Object.defineProperty(t,o,s),s};Object.defineProperty(t,"__esModule",{value:!0});var r=o(59804),i="\r\n",s=function(){function e(){}return e.prototype.createHeader=function(e){void 0===e&&(e={});var t=["version"];return e.version||(e.version="1.0"),e.encoding&&t.push("encoding"),e.standalone&&t.push("standalone"),"<?xml "+t.map((function(t){return t+'="'+e[t]+'"'})).join(" ")+" ?>"},e.prototype.createXml=function(e,t){var o=this,n="";e.properties&&(e.properties.prefixedAttributes&&e.properties.prefixedAttributes.forEach((function(e){Object.keys(e.map).forEach((function(r){n+=o.returnAttributeIfPopulated(e.prefix+r,e.map[r],t)}))})),e.properties.rawMap&&Object.keys(e.properties.rawMap).forEach((function(r){n+=o.returnAttributeIfPopulated(r,e.properties.rawMap[r],t)})));var r="<"+e.name+n;return e.children||null!=e.textNode?null!=e.textNode?r+">"+e.textNode+"</"+e.name+">"+i:(r+=">\r\n",e.children&&e.children.forEach((function(e){r+=o.createXml(e,t)})),r+"</"+e.name+">"+i):r+"/>"+i},e.prototype.returnAttributeIfPopulated=function(e,t,o){if(!t&&""!==t&&0!==t)return"";var n=t;return"boolean"==typeof t&&o&&(n=o(t))," "+e+'="'+n+'"'},n([r.Bean("xmlFactory")],e)}();t.XmlFactory=s},15558:function(e,t,o){var n=this&&this.__decorate||function(e,t,o,n){var r,i=arguments.length,s=i<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,n);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,o,s):r(t,o))||s);return i>3&&s&&Object.defineProperty(t,o,s),s},r=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0});var i=o(59804),s=o(99162),a=o(64339),l=o(47304),p=function(){function e(){this.createRowTasks=[],this.destroyRowTasks=[],this.ticking=!1,this.scrollGoingDown=!0,this.lastScrollTop=0}return e.prototype.setScrollTop=function(e){this.scrollGoingDown=e>this.lastScrollTop,this.lastScrollTop=e},e.prototype.init=function(){this.useAnimationFrame=!this.gridOptionsWrapper.isSuppressAnimationFrame()},e.prototype.verifyAnimationFrameOn=function(e){!1===this.useAnimationFrame&&console.warn("ag-Grid: AnimationFrameService."+e+" called but animation frames are off")},e.prototype.addP1Task=function(e,t){this.verifyAnimationFrameOn("addP1Task");var o={task:e,index:t};this.createRowTasks.push(o),this.schedule()},e.prototype.addP2Task=function(e){this.verifyAnimationFrameOn("addP2Task"),this.destroyRowTasks.push(e),this.schedule()},e.prototype.executeFrame=function(e){this.verifyAnimationFrameOn("executeFrame"),this.scrollGoingDown?this.createRowTasks.sort((function(e,t){return t.index-e.index})):this.createRowTasks.sort((function(e,t){return e.index-t.index}));for(var t=(new Date).getTime(),o=(new Date).getTime()-t,n=e<=0;n||o<e;){if(this.createRowTasks.length>0)this.createRowTasks.pop().task();else{if(!(this.destroyRowTasks.length>0))break;this.destroyRowTasks.pop()()}o=(new Date).getTime()-t}this.createRowTasks.length>0||this.destroyRowTasks.length>0?this.requestFrame():this.stopTicking()},e.prototype.stopTicking=function(){this.ticking=!1;var e={type:a.Events.EVENT_ANIMATION_QUEUE_EMPTY,columnApi:this.gridOptionsWrapper.getColumnApi(),api:this.gridOptionsWrapper.getApi()};this.eventService.dispatchEvent(e)},e.prototype.flushAllFrames=function(){this.useAnimationFrame&&this.executeFrame(-1)},e.prototype.schedule=function(){this.useAnimationFrame&&(this.ticking||(this.ticking=!0,this.requestFrame()))},e.prototype.requestFrame=function(){var e=this.executeFrame.bind(this,60);window.requestAnimationFrame?window.requestAnimationFrame(e):window.webkitRequestAnimationFrame?window.webkitRequestAnimationFrame(e):window.setTimeout(e,0)},e.prototype.isQueueEmpty=function(){return this.ticking},n([i.Autowired("gridOptionsWrapper"),r("design:type",s.GridOptionsWrapper)],e.prototype,"gridOptionsWrapper",void 0),n([i.Autowired("eventService"),r("design:type",l.EventService)],e.prototype,"eventService",void 0),n([i.PostConstruct,r("design:type",Function),r("design:paramtypes",[]),r("design:returntype",void 0)],e.prototype,"init",null),n([i.Bean("animationFrameService")],e)}();t.AnimationFrameService=p},15644:function(e,t,o){var n,r=this&&this.__createBinding||(Object.create?function(e,t,o,n){void 0===n&&(n=o);var r=Object.getOwnPropertyDescriptor(t,o);r&&!("get"in r?!t.__esModule:r.writable||r.configurable)||(r={enumerable:!0,get:function(){return t[o]}}),Object.defineProperty(e,n,r)}:function(e,t,o,n){void 0===n&&(n=o),e[n]=t[o]}),i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),s=this&&this.__importStar||(n=function(e){return n=Object.getOwnPropertyNames||function(e){var t=[];for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[t.length]=o);return t},n(e)},function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var o=n(e),s=0;s<o.length;s++)"default"!==o[s]&&r(t,e,o[s]);return i(t,e),t});Object.defineProperty(t,"__esModule",{value:!0}),t.redactValidConnectionString=function(e,t){const o=e.clone(),n=t?.replacementString??"_credentials_",r=t?.redactUsernames??!0;if((o.username||o.password)&&r?(o.username=n,o.password=""):o.password&&(o.password=n),o.searchParams.has("authMechanismProperties")){const e=new a.CommaAndColonSeparatedRecord(o.searchParams.get("authMechanismProperties"));e.get("AWS_SESSION_TOKEN")&&(e.set("AWS_SESSION_TOKEN",n),o.searchParams.set("authMechanismProperties",e.toString()))}return o.searchParams.has("tlsCertificateKeyFilePassword")&&o.searchParams.set("tlsCertificateKeyFilePassword",n),o.searchParams.has("proxyUsername")&&r&&o.searchParams.set("proxyUsername",n),o.searchParams.has("proxyPassword")&&o.searchParams.set("proxyPassword",n),o},t.redactConnectionString=function(e,t){const o=t?.replacementString??"<credentials>",n=t?.redactUsernames??!0;let r;try{r=new a.default(e)}catch{}if(r)return t={...t,replacementString:"___credentials___"},r.redact(t).toString().replace(/___credentials___/g,o);const i=o,s=[e=>e.replace(n?/(\/\/)(.*)(@)/g:/(\/\/[^@]*:)(.*)(@)/g,`$1${i}$3`),e=>e.replace(/(AWS_SESSION_TOKEN(:|%3A))([^,&]+)/gi,`$1${i}`),e=>e.replace(/(tlsCertificateKeyFilePassword=)([^&]+)/gi,`$1${i}`),e=>n?e.replace(/(proxyUsername=)([^&]+)/gi,`$1${i}`):e,e=>e.replace(/(proxyPassword=)([^&]+)/gi,`$1${i}`)];for(const t of s)e=t(e);return e};const a=s(o(23409))},16159:function(e,t,o){var n,r=this&&this.__extends||(n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])},n(e,t)},function(e,t){function o(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(o.prototype=t.prototype,new o)}),i=this&&this.__assign||function(){return i=Object.assign||function(e){for(var t,o=1,n=arguments.length;o<n;o++)for(var r in t=arguments[o])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e},i.apply(this,arguments)};Object.defineProperty(t,"__esModule",{value:!0});var s=o(24421),a=o(77171),l=o(71569),p=o(33018),u=o(38830),c=o(43510),d=function(e){function t(t,o,n,r,i,s,a,l,p,u,c){var d=e.call(this)||this;return d.eAllRowContainers=[],d.active=!0,d.rowContainerReadyCount=0,d.refreshNeeded=!1,d.columnRefreshPending=!1,d.cellComps={},d.createSecondPassFuncs=[],d.removeFirstPassFuncs=[],d.removeSecondPassFuncs=[],d.initialised=!1,d.parentScope=t,d.beans=a,d.bodyContainerComp=o,d.pinnedLeftContainerComp=n,d.pinnedRightContainerComp=r,d.fullWidthContainerComp=i,d.rowNode=s,d.rowIsEven=d.rowNode.rowIndex%2==0,d.paginationPage=d.beans.paginationProxy.getCurrentPage(),d.useAnimationFrameForCreate=p,d.printLayout=u,d.embedFullWidth=c,d.setAnimateFlags(l),d}return r(t,e),t.prototype.init=function(){var e=this;this.rowFocused=this.beans.focusedCellController.isRowFocused(this.rowNode.rowIndex,this.rowNode.rowPinned),this.scope=this.createChildScopeOrNull(this.rowNode.data),this.setupRowContainers(),this.addListeners(),this.slideRowIn&&this.createSecondPassFuncs.push((function(){e.onTopChanged()})),this.fadeRowIn&&this.createSecondPassFuncs.push((function(){e.eAllRowContainers.forEach((function(e){return c._.removeCssClass(e,"ag-opacity-zero")}))}))},t.prototype.createTemplate=function(e,t){void 0===t&&(t=null);var o=[],n=this.rowNode.rowHeight,r=this.getInitialRowClasses(t).join(" "),i=c._.escape(this.rowNode.id),s=this.preProcessStylesFromGridOptions(),a=this.getRowBusinessKey(),l=c._.escape(a),p=this.getInitialRowTopStyle();return o.push("<div"),o.push(' role="row"'),o.push(' row-index="'+this.rowNode.getRowIndexString()+'"'),o.push(i?' row-id="'+i+'"':""),o.push(a?' row-business-key="'+l+'"':""),o.push(' comp-id="'+this.getCompId()+'"'),o.push(' class="'+r+'"'),o.push(' style="height: '+n+"px; "+p+" "+s+'">'),o.push(e),o.push("</div>"),o.join("")},t.prototype.getCellForCol=function(e){var t=this.cellComps[e.getColId()];return t?t.getGui():null},t.prototype.afterFlush=function(){this.initialised||(this.initialised=!0,this.executeProcessRowPostCreateFunc())},t.prototype.executeProcessRowPostCreateFunc=function(){var e=this.beans.gridOptionsWrapper.getProcessRowPostCreateFunc();e&&e({eRow:this.eBodyRow,ePinnedLeftRow:this.ePinnedLeftRow,ePinnedRightRow:this.ePinnedRightRow,node:this.rowNode,api:this.beans.gridOptionsWrapper.getApi(),rowIndex:this.rowNode.rowIndex,addRenderedRowListener:this.addEventListener.bind(this),columnApi:this.beans.gridOptionsWrapper.getColumnApi(),context:this.beans.gridOptionsWrapper.getContext()})},t.prototype.getInitialRowTopStyle=function(){if(this.printLayout)return"";var e=this.slideRowIn?this.roundRowTopToBounds(this.rowNode.oldRowTop):this.rowNode.rowTop,t=this.applyPaginationOffset(e),o=this.beans.maxDivHeightScaler.getRealPixelPosition(t);return this.beans.gridOptionsWrapper.isSuppressRowTransform()?"top: "+o+"px; ":"transform: translateY("+o+"px);"},t.prototype.getRowBusinessKey=function(){var e=this.beans.gridOptionsWrapper.getBusinessKeyForNodeFunc();if("function"==typeof e)return e(this.rowNode)},t.prototype.areAllContainersReady=function(){return 3===this.rowContainerReadyCount},t.prototype.lazyCreateCells=function(e,t){if(this.active){var o=this.createCells(e);t.innerHTML=o.template,this.callAfterRowAttachedOnCells(o.cellComps,t),this.rowContainerReadyCount++,this.areAllContainersReady()&&this.refreshNeeded&&this.refreshCells()}},t.prototype.createRowContainer=function(e,t,o){var n=this,r=this.useAnimationFrameForCreate,i=r?{cellComps:[],template:""}:this.createCells(t),s=this.createTemplate(i.template);e.appendRowTemplate(s,(function(){var s=e.getRowElement(n.getCompId());n.afterRowAttached(e,s),o(s),r?n.beans.taskQueue.addP1Task(n.lazyCreateCells.bind(n,t,s),n.rowNode.rowIndex):(n.callAfterRowAttachedOnCells(i.cellComps,s),n.rowContainerReadyCount=3)}))},t.prototype.createChildScopeOrNull=function(e){if(!this.beans.gridOptionsWrapper.isAngularCompileRows())return null;var t=this.parentScope.$new();return t.data=i({},e),t.rowNode=this.rowNode,t.context=this.beans.gridOptionsWrapper.getContext(),this.addDestroyFunc((function(){t.$destroy(),t.data=null,t.rowNode=null,t.context=null})),t},t.prototype.setupRowContainers=function(){var e=this.beans.gridOptionsWrapper.getIsFullWidthCellFunc(),o=!!e&&e(this.rowNode),n=this.beans.doingMasterDetail&&this.rowNode.detail,r=this.rowNode.group&&this.beans.gridOptionsWrapper.isGroupUseEntireRow();this.rowNode.stub?this.createFullWidthRows(t.LOADING_CELL_RENDERER,t.LOADING_CELL_RENDERER_COMP_NAME):n?this.createFullWidthRows(t.DETAIL_CELL_RENDERER,t.DETAIL_CELL_RENDERER_COMP_NAME):o?this.createFullWidthRows(t.FULL_WIDTH_CELL_RENDERER,null):r?this.createFullWidthRows(t.GROUP_ROW_RENDERER,t.GROUP_ROW_RENDERER_COMP_NAME):this.setupNormalRowContainers()},t.prototype.setupNormalRowContainers=function(){var e,t,o,n=this;this.printLayout?(e=this.beans.columnController.getAllDisplayedColumns(),t=[],o=[]):(e=this.beans.columnController.getAllDisplayedCenterVirtualColumnsForRow(this.rowNode),t=this.beans.columnController.getDisplayedLeftColumnsForRow(this.rowNode),o=this.beans.columnController.getDisplayedRightColumnsForRow(this.rowNode)),this.createRowContainer(this.bodyContainerComp,e,(function(e){return n.eBodyRow=e})),this.createRowContainer(this.pinnedRightContainerComp,o,(function(e){return n.ePinnedRightRow=e})),this.createRowContainer(this.pinnedLeftContainerComp,t,(function(e){return n.ePinnedLeftRow=e}))},t.prototype.createFullWidthRows=function(e,t){var o=this;this.fullWidthRow=!0,this.embedFullWidth?(this.createFullWidthRowContainer(this.bodyContainerComp,null,null,e,t,(function(e){o.eFullWidthRowBody=e}),(function(e){o.fullWidthRowComponentBody=e})),this.printLayout||(this.createFullWidthRowContainer(this.pinnedLeftContainerComp,l.Column.PINNED_LEFT,"ag-cell-last-left-pinned",e,t,(function(e){o.eFullWidthRowLeft=e}),(function(e){o.fullWidthRowComponentLeft=e})),this.createFullWidthRowContainer(this.pinnedRightContainerComp,l.Column.PINNED_RIGHT,"ag-cell-first-right-pinned",e,t,(function(e){o.eFullWidthRowRight=e}),(function(e){o.fullWidthRowComponentRight=e})))):this.createFullWidthRowContainer(this.fullWidthContainerComp,null,null,e,t,(function(e){o.eFullWidthRow=e}),(function(e){o.fullWidthRowComponent=e}))},t.prototype.setAnimateFlags=function(e){if(e){var t=c._.exists(this.rowNode.oldRowTop);this.slideRowIn=t,this.fadeRowIn=!t}else this.slideRowIn=!1,this.fadeRowIn=!1},t.prototype.isEditing=function(){return this.editingRow},t.prototype.stopRowEditing=function(e){this.stopEditing(e)},t.prototype.isFullWidth=function(){return this.fullWidthRow},t.prototype.addListeners=function(){this.addDestroyableEventListener(this.rowNode,a.RowNode.EVENT_HEIGHT_CHANGED,this.onRowHeightChanged.bind(this)),this.addDestroyableEventListener(this.rowNode,a.RowNode.EVENT_ROW_SELECTED,this.onRowSelected.bind(this)),this.addDestroyableEventListener(this.rowNode,a.RowNode.EVENT_ROW_INDEX_CHANGED,this.onRowIndexChanged.bind(this)),this.addDestroyableEventListener(this.rowNode,a.RowNode.EVENT_TOP_CHANGED,this.onTopChanged.bind(this)),this.addDestroyableEventListener(this.rowNode,a.RowNode.EVENT_EXPANDED_CHANGED,this.onExpandedChanged.bind(this)),this.addDestroyableEventListener(this.rowNode,a.RowNode.EVENT_DATA_CHANGED,this.onRowNodeDataChanged.bind(this)),this.addDestroyableEventListener(this.rowNode,a.RowNode.EVENT_CELL_CHANGED,this.onRowNodeCellChanged.bind(this)),this.addDestroyableEventListener(this.rowNode,a.RowNode.EVENT_DRAGGING_CHANGED,this.onRowNodeDraggingChanged.bind(this));var e=this.beans.eventService;this.addDestroyableEventListener(e,p.Events.EVENT_HEIGHT_SCALE_CHANGED,this.onTopChanged.bind(this)),this.addDestroyableEventListener(e,p.Events.EVENT_DISPLAYED_COLUMNS_CHANGED,this.onDisplayedColumnsChanged.bind(this)),this.addDestroyableEventListener(e,p.Events.EVENT_VIRTUAL_COLUMNS_CHANGED,this.onVirtualColumnsChanged.bind(this)),this.addDestroyableEventListener(e,p.Events.EVENT_COLUMN_RESIZED,this.onColumnResized.bind(this)),this.addDestroyableEventListener(e,p.Events.EVENT_CELL_FOCUSED,this.onCellFocusChanged.bind(this)),this.addDestroyableEventListener(e,p.Events.EVENT_PAGINATION_CHANGED,this.onPaginationChanged.bind(this)),this.addDestroyableEventListener(e,p.Events.EVENT_GRID_COLUMNS_CHANGED,this.onGridColumnsChanged.bind(this)),this.addDestroyableEventListener(e,p.Events.EVENT_MODEL_UPDATED,this.onModelUpdated.bind(this))},t.prototype.onGridColumnsChanged=function(){this.removeRenderedCells(Object.keys(this.cellComps))},t.prototype.onRowNodeDataChanged=function(e){this.forEachCellComp((function(t){return t.refreshCell({suppressFlash:!e.update,newData:!e.update})})),this.onRowSelected(),this.postProcessCss()},t.prototype.onRowNodeCellChanged=function(e){this.postProcessCss()},t.prototype.postProcessCss=function(){this.postProcessStylesFromGridOptions(),this.postProcessClassesFromGridOptions(),this.postProcessRowClassRules(),this.postProcessRowDragging()},t.prototype.onRowNodeDraggingChanged=function(){this.postProcessRowDragging()},t.prototype.postProcessRowDragging=function(){var e=this.rowNode.dragging;this.eAllRowContainers.forEach((function(t){return c._.addOrRemoveCssClass(t,"ag-row-dragging",e)}))},t.prototype.onExpandedChanged=function(){var e=this.rowNode;this.eAllRowContainers.forEach((function(t){return c._.addOrRemoveCssClass(t,"ag-row-group-expanded",e.expanded)})),this.eAllRowContainers.forEach((function(t){return c._.addOrRemoveCssClass(t,"ag-row-group-contracted",!e.expanded)}))},t.prototype.onDisplayedColumnsChanged=function(){this.fullWidthRow||this.refreshCells()},t.prototype.destroyFullWidthComponents=function(){this.fullWidthRowComponent&&(this.fullWidthRowComponent.destroy&&this.fullWidthRowComponent.destroy(),this.fullWidthRowComponent=null),this.fullWidthRowComponentBody&&(this.fullWidthRowComponentBody.destroy&&this.fullWidthRowComponentBody.destroy(),this.fullWidthRowComponent=null),this.fullWidthRowComponentLeft&&(this.fullWidthRowComponentLeft.destroy&&this.fullWidthRowComponentLeft.destroy(),this.fullWidthRowComponentLeft=null),this.fullWidthRowComponentRight&&(this.fullWidthRowComponentRight.destroy&&this.fullWidthRowComponentRight.destroy(),this.fullWidthRowComponent=null)},t.prototype.getContainerForCell=function(e){switch(e){case l.Column.PINNED_LEFT:return this.ePinnedLeftRow;case l.Column.PINNED_RIGHT:return this.ePinnedRightRow;default:return this.eBodyRow}},t.prototype.onVirtualColumnsChanged=function(){this.fullWidthRow||this.refreshCells()},t.prototype.onColumnResized=function(){this.fullWidthRow||this.refreshCells()},t.prototype.refreshCells=function(){if(this.areAllContainersReady())if(this.beans.gridOptionsWrapper.isSuppressAnimationFrame()||this.printLayout)this.refreshCellsInAnimationFrame();else{if(this.columnRefreshPending)return;this.beans.taskQueue.addP1Task(this.refreshCellsInAnimationFrame.bind(this),this.rowNode.rowIndex)}else this.refreshNeeded=!0},t.prototype.refreshCellsInAnimationFrame=function(){if(this.active){var e,t,o;this.columnRefreshPending=!1,this.printLayout?(e=this.beans.columnController.getAllDisplayedColumns(),t=[],o=[]):(e=this.beans.columnController.getAllDisplayedCenterVirtualColumnsForRow(this.rowNode),t=this.beans.columnController.getDisplayedLeftColumnsForRow(this.rowNode),o=this.beans.columnController.getDisplayedRightColumnsForRow(this.rowNode)),this.insertCellsIntoContainer(this.eBodyRow,e),this.insertCellsIntoContainer(this.ePinnedLeftRow,t),this.insertCellsIntoContainer(this.ePinnedRightRow,o);var n=Object.keys(this.cellComps);e.forEach((function(e){return c._.removeFromArray(n,e.getId())})),t.forEach((function(e){return c._.removeFromArray(n,e.getId())})),o.forEach((function(e){return c._.removeFromArray(n,e.getId())}));var r=c._.filter(n,this.isCellEligibleToBeRemoved.bind(this));this.removeRenderedCells(r)}},t.prototype.removeRenderedCells=function(e){var t=this;e.forEach((function(e){var o=t.cellComps[e];c._.missing(o)||(o.detach(),o.destroy(),t.cellComps[e]=null)}))},t.prototype.isCellEligibleToBeRemoved=function(e){var t=this.beans.columnController.getAllDisplayedColumns(),o=!0,n=this.cellComps[e];if(!n)return o;if(this.isCellInWrongRow(n))return o;var r=n.isEditing(),i=this.beans.focusedCellController.isCellFocused(n.getGridCell());if(r||i){var s=n.getColumn();return!(t.indexOf(s)>=0)&&o}return o},t.prototype.ensureCellInCorrectContainer=function(e){if(!this.printLayout){var t=e.getGui(),o=e.getColumn().getPinned(),n=this.getContainerForCell(o),r=e.getParentRow();r!==n&&(r&&r.removeChild(t),n.appendChild(t),e.setParentRow(n))}},t.prototype.isCellInWrongRow=function(e){var t=e.getColumn(),o=this.getContainerForCell(t.getPinned());return e.getParentRow()!==o},t.prototype.insertCellsIntoContainer=function(e,t){var o=this;if(e){var n=[],r=[];t.forEach((function(t){var i=t.getId(),s=o.cellComps[i];s?o.ensureCellInCorrectContainer(s):o.createNewCell(t,e,n,r)})),n.length>0&&(c._.appendHtml(e,n.join("")),this.callAfterRowAttachedOnCells(r,e))}},t.prototype.addDomData=function(e){var o=this.beans.gridOptionsWrapper;o.setDomData(e,t.DOM_DATA_KEY_RENDERED_ROW,this),this.addDestroyFunc((function(){o.setDomData(e,t.DOM_DATA_KEY_RENDERED_ROW,null)}))},t.prototype.createNewCell=function(e,t,o,n){var r=new s.CellComp(this.scope,this.beans,e,this.rowNode,this,!1,this.printLayout),i=r.getCreateTemplate();o.push(i),n.push(r),this.cellComps[e.getId()]=r,r.setParentRow(t)},t.prototype.onMouseEvent=function(e,t){switch(e){case"dblclick":this.onRowDblClick(t);break;case"click":this.onRowClick(t)}},t.prototype.createRowEvent=function(e,t){return{type:e,node:this.rowNode,data:this.rowNode.data,rowIndex:this.rowNode.rowIndex,rowPinned:this.rowNode.rowPinned,context:this.beans.gridOptionsWrapper.getContext(),api:this.beans.gridOptionsWrapper.getApi(),columnApi:this.beans.gridOptionsWrapper.getColumnApi(),event:t}},t.prototype.createRowEventWithSource=function(e,t){var o=this.createRowEvent(e,t);return o.source=this,o},t.prototype.onRowDblClick=function(e){if(!c._.isStopPropagationForAgGrid(e)){var t=this.createRowEventWithSource(p.Events.EVENT_ROW_DOUBLE_CLICKED,e);this.beans.eventService.dispatchEvent(t)}},t.prototype.onRowClick=function(e){if(!c._.isStopPropagationForAgGrid(e)){var t=this.createRowEventWithSource(p.Events.EVENT_ROW_CLICKED,e);this.beans.eventService.dispatchEvent(t);var o=e.ctrlKey||e.metaKey,n=e.shiftKey;if(!this.rowNode.group&&this.rowNode.selectable&&!this.rowNode.rowPinned&&this.beans.gridOptionsWrapper.isRowSelection()&&!this.beans.gridOptionsWrapper.isSuppressRowClickSelection()){var r=this.beans.gridOptionsWrapper.isRowMultiSelectWithClick(),i=this.beans.gridOptionsWrapper.isRowDeselection();if(this.rowNode.isSelected())r?this.rowNode.setSelectedParams({newValue:!1}):o?i&&this.rowNode.setSelectedParams({newValue:!1}):this.rowNode.setSelectedParams({newValue:!0,clearSelection:!0});else{var s=!r&&!o;this.rowNode.setSelectedParams({newValue:!0,clearSelection:s,rangeSelect:n})}}}},t.prototype.createFullWidthRowContainer=function(e,t,o,n,r,i,s){var a=this,l=this.createTemplate("",o);e.appendRowTemplate(l,(function(){var o=e.getRowElement(a.getCompId()),l=a.createFullWidthParams(o,t),p=a.beans.userComponentFactory.newFullWidthCellRenderer(l,n,r);p?(p.then((function(e){if(a.isAlive()){var t=e.getGui();o.appendChild(t),s(e)}else e.destroy&&e.destroy()})),a.afterRowAttached(e,o),i(o),a.beans.doingMasterDetail&&a.rowNode.detail||a.angular1Compile(o)):console.error("ag-Grid: fullWidthCellRenderer not defined")}))},t.prototype.angular1Compile=function(e){this.scope&&this.beans.$compile(e)(this.scope)},t.prototype.createFullWidthParams=function(e,t){return{fullWidth:!0,data:this.rowNode.data,node:this.rowNode,value:this.rowNode.key,$scope:this.scope?this.scope:this.parentScope,$compile:this.beans.$compile,rowIndex:this.rowNode.rowIndex,api:this.beans.gridOptionsWrapper.getApi(),columnApi:this.beans.gridOptionsWrapper.getColumnApi(),context:this.beans.gridOptionsWrapper.getContext(),eGridCell:e,eParentOfValue:e,pinned:t,addRenderedRowListener:this.addEventListener.bind(this)}},t.prototype.getInitialRowClasses=function(e){var t=[],o=this.beans.gridOptionsWrapper.isTreeData(),n=this.rowNode;return c._.exists(e)&&t.push(e),t.push("ag-row"),t.push(this.rowFocused?"ag-row-focus":"ag-row-no-focus"),this.fadeRowIn&&t.push("ag-opacity-zero"),t.push(this.rowIsEven?"ag-row-even":"ag-row-odd"),n.isSelected()&&t.push("ag-row-selected"),n.group?(t.push("ag-row-group"),t.push("ag-row-level-"+n.level),n.footer&&t.push("ag-row-footer")):t.push("ag-row-level-"+(n.parent?n.parent.level+1:"0")),n.stub&&t.push("ag-row-stub"),this.fullWidthRow&&t.push("ag-full-width-row"),(o?n.allChildrenCount:n.group&&!n.footer)&&t.push(n.expanded?"ag-row-group-expanded":"ag-row-group-contracted"),n.dragging&&t.push("ag-row-dragging"),c._.pushAll(t,this.processClassesFromGridOptions()),c._.pushAll(t,this.preProcessRowClassRules()),t.push(this.printLayout?"ag-row-position-relative":"ag-row-position-absolute"),this.firstRowOnPage=this.isFirstRowOnPage(),this.lastRowOnPage=this.isLastRowOnPage(),this.firstRowOnPage&&t.push("ag-row-first"),this.lastRowOnPage&&t.push("ag-row-last"),t},t.prototype.isFirstRowOnPage=function(){return this.rowNode.rowIndex===this.beans.paginationProxy.getPageFirstRow()},t.prototype.isLastRowOnPage=function(){return this.rowNode.rowIndex===this.beans.paginationProxy.getPageLastRow()},t.prototype.onModelUpdated=function(){var e=this.isFirstRowOnPage(),t=this.isLastRowOnPage();this.firstRowOnPage!==e&&(this.firstRowOnPage=e,this.eAllRowContainers.forEach((function(t){return c._.addOrRemoveCssClass(t,"ag-row-first",e)}))),this.lastRowOnPage!==t&&(this.lastRowOnPage=t,this.eAllRowContainers.forEach((function(e){return c._.addOrRemoveCssClass(e,"ag-row-last",t)})))},t.prototype.preProcessRowClassRules=function(){var e=[];return this.processRowClassRules((function(t){e.push(t)}),(function(e){})),e},t.prototype.processRowClassRules=function(e,t){this.beans.stylingService.processClassRules(this.beans.gridOptionsWrapper.rowClassRules(),{value:void 0,colDef:void 0,data:this.rowNode.data,node:this.rowNode,rowIndex:this.rowNode.rowIndex,api:this.beans.gridOptionsWrapper.getApi(),$scope:this.scope,context:this.beans.gridOptionsWrapper.getContext()},e,t)},t.prototype.stopEditing=function(e){if(void 0===e&&(e=!1),this.forEachCellComp((function(t){t.stopEditing(e)})),this.editingRow){if(!e){var t=this.createRowEvent(p.Events.EVENT_ROW_VALUE_CHANGED);this.beans.eventService.dispatchEvent(t)}this.setEditingRow(!1)}},t.prototype.setEditingRow=function(e){this.editingRow=e,this.eAllRowContainers.forEach((function(t){return c._.addOrRemoveCssClass(t,"ag-row-editing",e)}));var t=e?this.createRowEvent(p.Events.EVENT_ROW_EDITING_STARTED):this.createRowEvent(p.Events.EVENT_ROW_EDITING_STOPPED);this.beans.eventService.dispatchEvent(t)},t.prototype.startRowEditing=function(e,t,o){void 0===e&&(e=null),void 0===t&&(t=null),void 0===o&&(o=null),this.editingRow||(this.forEachCellComp((function(n){var r=n===o;r?n.startEditingIfEnabled(e,t,r):n.startEditingIfEnabled(null,null,r)})),this.setEditingRow(!0))},t.prototype.forEachCellComp=function(e){c._.iterateObject(this.cellComps,(function(t,o){o&&e(o)}))},t.prototype.postProcessClassesFromGridOptions=function(){var e=this,t=this.processClassesFromGridOptions();t&&t.length&&t.forEach((function(t){e.eAllRowContainers.forEach((function(e){return c._.addCssClass(e,t)}))}))},t.prototype.postProcessRowClassRules=function(){var e=this;this.processRowClassRules((function(t){e.eAllRowContainers.forEach((function(e){return c._.addCssClass(e,t)}))}),(function(t){e.eAllRowContainers.forEach((function(e){return c._.removeCssClass(e,t)}))}))},t.prototype.processClassesFromGridOptions=function(){var e=[],t=function(t){"string"==typeof t?e.push(t):Array.isArray(t)&&t.forEach((function(t){return e.push(t)}))},o=this.beans.gridOptionsWrapper.getRowClass();if(o){if("function"==typeof o)return void console.warn("ag-Grid: rowClass should not be a function, please use getRowClass instead");t(o)}var n=this.beans.gridOptionsWrapper.getRowClassFunc();return n&&t(n({node:this.rowNode,data:this.rowNode.data,rowIndex:this.rowNode.rowIndex,context:this.beans.gridOptionsWrapper.getContext(),api:this.beans.gridOptionsWrapper.getApi()})),e},t.prototype.preProcessStylesFromGridOptions=function(){var e=this.processStylesFromGridOptions();return c._.cssStyleObjectToMarkup(e)},t.prototype.postProcessStylesFromGridOptions=function(){var e=this.processStylesFromGridOptions();this.eAllRowContainers.forEach((function(t){return c._.addStylesToElement(t,e)}))},t.prototype.processStylesFromGridOptions=function(){var e=this.beans.gridOptionsWrapper.getRowStyle();if(!e||"function"!=typeof e){var t,o=this.beans.gridOptionsWrapper.getRowStyleFunc();return o&&(t=o({data:this.rowNode.data,node:this.rowNode,api:this.beans.gridOptionsWrapper.getApi(),context:this.beans.gridOptionsWrapper.getContext(),$scope:this.scope})),c._.assign({},e,t)}console.warn("ag-Grid: rowStyle should be an object of key/value styles, not be a function, use getRowStyle() instead")},t.prototype.createCells=function(e){var t=this,o=[],n=[];return e.forEach((function(e){var r=new s.CellComp(t.scope,t.beans,e,t.rowNode,t,!1,t.printLayout),i=r.getCreateTemplate();o.push(i),n.push(r),t.cellComps[e.getId()]=r})),{template:o.join(""),cellComps:n}},t.prototype.onRowSelected=function(){var e=this.rowNode.isSelected();this.eAllRowContainers.forEach((function(t){return c._.addOrRemoveCssClass(t,"ag-row-selected",e)}))},t.prototype.callAfterRowAttachedOnCells=function(e,t){var o=this;e.forEach((function(e){e.setParentRow(t),e.afterAttached(),o.editingRow&&e.startEditingIfEnabled()}))},t.prototype.afterRowAttached=function(e,t){var o=this;this.addDomData(t),this.removeSecondPassFuncs.push((function(){e.removeRowElement(t)})),this.removeFirstPassFuncs.push((function(){if(c._.exists(o.rowNode.rowTop)){var e=o.roundRowTopToBounds(o.rowNode.rowTop);o.setRowTop(e)}else c._.addCssClass(t,"ag-opacity-zero")})),this.eAllRowContainers.push(t),this.useAnimationFrameForCreate?this.beans.taskQueue.addP2Task(this.addHoverFunctionality.bind(this,t)):this.addHoverFunctionality(t)},t.prototype.addHoverFunctionality=function(e){var t=this;this.active&&(this.addDestroyableEventListener(e,"mouseenter",(function(){return t.rowNode.onMouseEnter()})),this.addDestroyableEventListener(e,"mouseleave",(function(){return t.rowNode.onMouseLeave()})),this.addDestroyableEventListener(this.rowNode,a.RowNode.EVENT_MOUSE_ENTER,(function(){t.beans.gridOptionsWrapper.isSuppressRowHoverHighlight()||c._.addCssClass(e,"ag-row-hover")})),this.addDestroyableEventListener(this.rowNode,a.RowNode.EVENT_MOUSE_LEAVE,(function(){c._.removeCssClass(e,"ag-row-hover")})))},t.prototype.roundRowTopToBounds=function(e){var t=this.beans.gridPanel.getVScrollPosition(),o=this.applyPaginationOffset(t.top,!0)-100,n=this.applyPaginationOffset(t.bottom,!0)+100;return Math.min(Math.max(o,e),n)},t.prototype.onRowHeightChanged=function(){if(c._.exists(this.rowNode.rowHeight)){var e=this.rowNode.rowHeight+"px";this.eAllRowContainers.forEach((function(t){return t.style.height=e}))}},t.prototype.addEventListener=function(t,o){"renderedRowRemoved"!==t&&"rowRemoved"!==t||(t=p.Events.EVENT_VIRTUAL_ROW_REMOVED,console.warn("ag-Grid: Since version 11, event renderedRowRemoved is now called "+p.Events.EVENT_VIRTUAL_ROW_REMOVED)),e.prototype.addEventListener.call(this,t,o)},t.prototype.removeEventListener=function(t,o){"renderedRowRemoved"!==t&&"rowRemoved"!==t||(t=p.Events.EVENT_VIRTUAL_ROW_REMOVED,console.warn("ag-Grid: Since version 11, event renderedRowRemoved and rowRemoved is now called "+p.Events.EVENT_VIRTUAL_ROW_REMOVED)),e.prototype.removeEventListener.call(this,t,o)},t.prototype.destroy=function(t){void 0===t&&(t=!1),e.prototype.destroy.call(this),this.active=!1,this.destroyFullWidthComponents(),t?(this.removeFirstPassFuncs.forEach((function(e){return e()})),this.removeSecondPassFuncs.push(this.destroyContainingCells.bind(this))):(this.destroyContainingCells(),this.getAndClearDelayedDestroyFunctions().forEach((function(e){return e()})));var o=this.createRowEvent(p.Events.EVENT_VIRTUAL_ROW_REMOVED);this.dispatchEvent(o),this.beans.eventService.dispatchEvent(o)},t.prototype.destroyContainingCells=function(){this.forEachCellComp((function(e){return e.destroy()})),this.destroyFullWidthComponents()},t.prototype.getAndClearDelayedDestroyFunctions=function(){var e=this.removeSecondPassFuncs;return this.removeSecondPassFuncs=[],e},t.prototype.onCellFocusChanged=function(){var e=this.beans.focusedCellController.isRowFocused(this.rowNode.rowIndex,this.rowNode.rowPinned);e!==this.rowFocused&&(this.eAllRowContainers.forEach((function(t){return c._.addOrRemoveCssClass(t,"ag-row-focus",e)})),this.eAllRowContainers.forEach((function(t){return c._.addOrRemoveCssClass(t,"ag-row-no-focus",!e)})),this.rowFocused=e),!e&&this.editingRow&&this.stopEditing(!1)},t.prototype.onPaginationChanged=function(){var e=this.beans.paginationProxy.getCurrentPage();this.paginationPage!==e&&(this.paginationPage=e,this.onTopChanged())},t.prototype.onTopChanged=function(){this.setRowTop(this.rowNode.rowTop)},t.prototype.applyPaginationOffset=function(e,t){return void 0===t&&(t=!1),this.rowNode.isRowPinned()?e:e+this.beans.paginationProxy.getPixelOffset()*(t?1:-1)},t.prototype.setRowTop=function(e){if(!this.printLayout&&c._.exists(e)){var t=this.applyPaginationOffset(e),o=this.beans.maxDivHeightScaler.getRealPixelPosition(t)+"px";this.beans.gridOptionsWrapper.isSuppressRowTransform()?this.eAllRowContainers.forEach((function(e){return e.style.top=o})):this.eAllRowContainers.forEach((function(e){return e.style.transform="translateY("+o+")"}))}},t.prototype.getAndClearNextVMTurnFunctions=function(){var e=this.createSecondPassFuncs;return this.createSecondPassFuncs=[],e},t.prototype.getRowNode=function(){return this.rowNode},t.prototype.getRenderedCellForColumn=function(e){var t=this,o=this.cellComps[e.getColId()];if(o)return o;var n=Object.keys(this.cellComps).map((function(e){return t.cellComps[e]})).filter((function(t){return-1!==t.getColSpanningList().indexOf(e)}));return n.length?n[0]:void 0},t.prototype.onRowIndexChanged=function(){this.onCellFocusChanged(),this.updateRowIndexes()},t.prototype.updateRowIndexes=function(){var e=this.rowNode.getRowIndexString(),t=this.rowNode.rowIndex%2==0,o=this.rowIsEven!==t;o&&(this.rowIsEven=t),this.eAllRowContainers.forEach((function(n){n.setAttribute("row-index",e),o&&(c._.addOrRemoveCssClass(n,"ag-row-even",t),c._.addOrRemoveCssClass(n,"ag-row-odd",!t))}))},t.prototype.ensureDomOrder=function(){[{el:this.getBodyRowElement(),ct:this.bodyContainerComp},{el:this.getPinnedLeftRowElement(),ct:this.pinnedLeftContainerComp},{el:this.getPinnedRightRowElement(),ct:this.pinnedRightContainerComp},{el:this.getFullWidthRowElement(),ct:this.fullWidthContainerComp}].forEach((function(e){e.el&&e.ct.ensureDomOrder(e.el)}))},t.prototype.getPinnedLeftRowElement=function(){return this.ePinnedLeftRow?this.ePinnedLeftRow:this.eFullWidthRowLeft},t.prototype.getPinnedRightRowElement=function(){return this.ePinnedRightRow?this.ePinnedRightRow:this.eFullWidthRowRight},t.prototype.getBodyRowElement=function(){return this.eBodyRow?this.eBodyRow:this.eFullWidthRowBody},t.prototype.getFullWidthRowElement=function(){return this.eFullWidthRow},t.DOM_DATA_KEY_RENDERED_ROW="renderedRow",t.FULL_WIDTH_CELL_RENDERER="fullWidthCellRenderer",t.GROUP_ROW_RENDERER="groupRowRenderer",t.GROUP_ROW_RENDERER_COMP_NAME="agGroupRowRenderer",t.LOADING_CELL_RENDERER="loadingCellRenderer",t.LOADING_CELL_RENDERER_COMP_NAME="agLoadingCellRenderer",t.DETAIL_CELL_RENDERER="detailCellRenderer",t.DETAIL_CELL_RENDERER_COMP_NAME="agDetailCellRenderer",t}(u.Component);t.RowComp=d},16636:function(e,t,o){var n,r=this&&this.__extends||(n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])},n(e,t)},function(e,t){function o(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(o.prototype=t.prototype,new o)});Object.defineProperty(t,"__esModule",{value:!0});var i=function(e){function t(){return e.call(this,'<div class="ag-tooltip"></div>')||this}return r(t,e),t.prototype.init=function(e){var t=e.value;this.getGui().innerHTML=t},t}(o(28348).PopupComponent);t.TooltipComponent=i},16767:function(e,t,o){var n,r=this&&this.__extends||(n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])},n(e,t)},function(e,t){function o(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(o.prototype=t.prototype,new o)}),i=this&&this.__decorate||function(e,t,o,n){var r,i=arguments.length,s=i<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,n);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,o,s):r(t,o))||s);return i>3&&s&&Object.defineProperty(t,o,s),s},s=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0});var a=o(99162),l=o(6145),p=o(47304),u=o(44494),c=o(59804),d=o(38830),h=o(77171),f=o(61164),g=o(81182),m=o(51890),y=o(71569),v=o(17890),C=o(36354),w=o(36071),_=o(43510),E=function(e){function t(){return e.call(this,t.TEMPLATE)||this}return r(t,e),t.prototype.init=function(e){this.params=e,this.gridOptionsWrapper.isGroupIncludeTotalFooter()&&this.assignBlankValueToGroupFooterCell(e);var t=this.isEmbeddedRowMismatch(),o=null==e.value;this.cellIsBlank=t||o,this.cellIsBlank||(this.setupDragOpenParents(),this.addExpandAndContract(),this.addCheckboxIfNeeded(),this.addValueElement(),this.setupIndent())},t.prototype.assignBlankValueToGroupFooterCell=function(e){e.value||-1!=e.node.level||(e.value="")},t.prototype.isEmbeddedRowMismatch=function(){if(this.params.fullWidth&&this.gridOptionsWrapper.isEmbedFullWidthRows()){var e=this.params.pinned===y.Column.PINNED_LEFT,t=this.params.pinned===y.Column.PINNED_RIGHT,o=!e&&!t;return this.gridOptionsWrapper.isEnableRtl()?this.columnController.isPinningLeft()?!t:!o:this.columnController.isPinningLeft()?!e:!o}return!1},t.prototype.setIndent=function(){if(!this.gridOptionsWrapper.isGroupHideOpenParents()){var e=this.params,t=e.node.uiLevel;e.padding>=0?this.setPaddingDeprecatedWay(t,e.padding):(this.indentClass&&this.removeCssClass(this.indentClass),this.indentClass="ag-row-group-indent-"+t,this.addCssClass(this.indentClass))}},t.prototype.setPaddingDeprecatedWay=function(e,t){_._.doOnce((function(){return console.warn("ag-Grid: since v14.2, configuring padding for groupCellRenderer should be done with Sass variables and themes. Please see the ag-Grid documentation page for Themes, in particular the property $row-group-indent-size.")}),"groupCellRenderer->doDeprecatedWay");var o=e*t;this.gridOptionsWrapper.isEnableRtl()?this.getGui().style.paddingRight=o+"px":this.getGui().style.paddingLeft=o+"px"},t.prototype.setupIndent=function(){var e=this.params.node;this.params.suppressPadding||(this.addDestroyableEventListener(e,h.RowNode.EVENT_UI_LEVEL_CHANGED,this.setIndent.bind(this)),this.setIndent())},t.prototype.addValueElement=function(){var e=this.params,t=this.displayedGroup;t.footer?this.createFooterCell():t.hasChildren()||_._.get(e.colDef,"cellRendererParams.innerRenderer",null)||_._.get(e.colDef,"cellRendererParams.innerRendererFramework",null)?(this.createGroupCell(),t.hasChildren()&&this.addChildCount()):this.createLeafCell()},t.prototype.createFooterCell=function(){var e,t=this.params.footerValueGetter;if(t){var o=_._.cloneObject(this.params);o.value=this.params.value,"function"==typeof t?e=t(o):"string"==typeof t?e=this.expressionService.evaluate(t,o):console.warn("ag-Grid: footerValueGetter should be either a function or a string (expression)")}else e="Total "+this.params.value;this.eValue.innerHTML=e},t.prototype.createGroupCell=function(){var e,t=this,o=this.params,n=this.displayedGroup.rowGroupColumn||o.column,r=this.params.value,i=n?this.valueFormatterService.formatValue(n,o.node,o.scope,r):null;o.valueFormatted=i,(e=1==o.fullWidth?this.useFullWidth(o):this.useInnerRenderer(this.params.colDef.cellRendererParams,n.getColDef(),o))&&e.then((function(e){t.innerCellRenderer=e}))},t.prototype.useInnerRenderer=function(e,t,o){var n=this,r=null,i=this.userComponentFactory.lookupComponentClassDef(e,"innerRenderer");if(i&&null!=i.component&&i.source!=w.ComponentSource.DEFAULT)r=this.userComponentFactory.newInnerCellRenderer(e,o);else{var s=this.userComponentFactory.lookupComponentClassDef(t,"cellRenderer");r=s&&s.source!=w.ComponentSource.DEFAULT?this.userComponentFactory.newCellRenderer(t,o):s&&s.source==w.ComponentSource.DEFAULT&&_._.get(t,"cellRendererParams.innerRenderer",null)?this.userComponentFactory.newInnerCellRenderer(t.cellRendererParams,o):this.userComponentFactory.newCellRenderer({},o)}return null!=r?r.then((function(e){null!=e?_._.bindCellRendererToHtmlElement(r,n.eValue):n.eValue.innerText=null!=o.valueFormatted?o.valueFormatted:o.value})):this.eValue.innerText=null!=o.valueFormatted?o.valueFormatted:o.value,r},t.prototype.useFullWidth=function(e){var t=this.userComponentFactory.newFullWidthGroupRowInnerCellRenderer(e);return null!=t?_._.bindCellRendererToHtmlElement(t,this.eValue):this.eValue.innerText=null!=e.valueFormatted?e.valueFormatted:e.value,t},t.prototype.addChildCount=function(){this.params.suppressCount||(this.addDestroyableEventListener(this.displayedGroup,h.RowNode.EVENT_ALL_CHILDREN_COUNT_CHANGED,this.updateChildCount.bind(this)),this.updateChildCount())},t.prototype.updateChildCount=function(){var e=this.displayedGroup.allChildrenCount;this.eChildCount.innerHTML=e>=0?"("+e+")":""},t.prototype.createLeafCell=function(){_._.exists(this.params.value)&&(this.eValue.innerHTML=this.params.valueFormatted?this.params.valueFormatted:this.params.value)},t.prototype.isUserWantsSelected=function(){var e=this.params.checkbox;return"function"==typeof e?e(this.params):!0===e},t.prototype.addCheckboxIfNeeded=function(){var e=this.displayedGroup,t=this.isUserWantsSelected()&&!e.footer&&!e.rowPinned&&!e.detail;if(t){var o=new g.CheckboxSelectionComponent;this.getContext().wireBean(o),o.init({rowNode:e,column:this.params.column}),this.eCheckbox.appendChild(o.getGui()),this.addDestroyFunc((function(){return o.destroy()}))}_._.addOrRemoveCssClass(this.eCheckbox,"ag-invisible",!t)},t.prototype.addExpandAndContract=function(){var e=this.params,t=e.eGridCell,o=_._.createIconNoSpan("groupExpanded",this.gridOptionsWrapper,null),n=_._.createIconNoSpan("groupContracted",this.gridOptionsWrapper,null);this.eExpanded.appendChild(o),this.eContracted.appendChild(n),this.addDestroyableEventListener(this.eExpanded,"click",this.onExpandClicked.bind(this)),this.addDestroyableEventListener(this.eContracted,"click",this.onExpandClicked.bind(this)),this.addDestroyableEventListener(t,"keydown",this.onKeyDown.bind(this),{capture:!0}),this.addDestroyableEventListener(e.node,h.RowNode.EVENT_EXPANDED_CHANGED,this.showExpandAndContractIcons.bind(this)),this.showExpandAndContractIcons(),this.addDestroyableEventListener(this.displayedGroup,h.RowNode.EVENT_ALL_CHILDREN_COUNT_CHANGED,this.onAllChildrenCountChanged.bind(this)),this.gridOptionsWrapper.isEnableGroupEdit()||!this.isExpandable()||e.suppressDoubleClickExpand||this.addDestroyableEventListener(t,"dblclick",this.onCellDblClicked.bind(this))},t.prototype.onAllChildrenCountChanged=function(){this.showExpandAndContractIcons(),this.setIndent()},t.prototype.onKeyDown=function(e){if(!e.defaultPrevented&&_._.isKeyPressed(e,u.Constants.KEY_ENTER)){if(this.params.column.isCellEditable(this.params.node))return;e.preventDefault(),this.onExpandOrContract()}},t.prototype.setupDragOpenParents=function(){var e=this.params.column,t=this.params.node;if(this.gridOptionsWrapper.isGroupHideOpenParents())if(t.hasChildren()){var o=t.rowGroupColumn;this.draggedFromHideOpenParents=!e.isRowGroupDisplayed(o.getId())}else this.draggedFromHideOpenParents=!0;else this.draggedFromHideOpenParents=!1;if(this.draggedFromHideOpenParents)for(var n=t.parent;!_._.missing(n);){if(n.rowGroupColumn&&e.isRowGroupDisplayed(n.rowGroupColumn.getId())){this.displayedGroup=n;break}n=n.parent}_._.missing(this.displayedGroup)&&(this.displayedGroup=t)},t.prototype.onExpandClicked=function(e){_._.isStopPropagationForAgGrid(e)||(_._.stopPropagationForAgGrid(e),this.onExpandOrContract())},t.prototype.onCellDblClicked=function(e){_._.isStopPropagationForAgGrid(e)||_._.isElementInEventPath(this.eExpanded,e)||_._.isElementInEventPath(this.eContracted,e)||this.onExpandOrContract()},t.prototype.onExpandOrContract=function(){var e=this.displayedGroup;e.setExpanded(!e.expanded)},t.prototype.isExpandable=function(){var e=this.params.node,t=this.columnController.isPivotMode()&&e.leafGroup;return this.draggedFromHideOpenParents||e.isExpandable()&&!e.footer&&!t},t.prototype.showExpandAndContractIcons=function(){var e=this.params.node;if(this.isExpandable()){var t=!!this.draggedFromHideOpenParents||e.expanded;_._.setVisible(this.eContracted,!t),_._.setVisible(this.eExpanded,t)}else _._.setVisible(this.eExpanded,!1),_._.setVisible(this.eContracted,!1);var o=this.displayedGroup,n=this.columnController.isPivotMode()&&o.leafGroup,r=!o.isExpandable(),i=o.footer||r||n;this.addOrRemoveCssClass("ag-row-group-leaf-indent",i)},t.prototype.destroy=function(){e.prototype.destroy.call(this),this.innerCellRenderer&&this.innerCellRenderer.destroy&&this.innerCellRenderer.destroy()},t.prototype.refresh=function(){return!1},t.TEMPLATE='<span><span class="ag-group-expanded" ref="eExpanded"></span><span class="ag-group-contracted" ref="eContracted"></span><span class="ag-group-checkbox ag-invisible" ref="eCheckbox"></span><span class="ag-group-value" ref="eValue"></span><span class="ag-group-child-count" ref="eChildCount"></span></span>',i([c.Autowired("gridOptionsWrapper"),s("design:type",a.GridOptionsWrapper)],t.prototype,"gridOptionsWrapper",void 0),i([c.Autowired("expressionService"),s("design:type",l.ExpressionService)],t.prototype,"expressionService",void 0),i([c.Autowired("eventService"),s("design:type",p.EventService)],t.prototype,"eventService",void 0),i([c.Autowired("valueFormatterService"),s("design:type",f.ValueFormatterService)],t.prototype,"valueFormatterService",void 0),i([c.Autowired("columnController"),s("design:type",m.ColumnController)],t.prototype,"columnController",void 0),i([c.Autowired("mouseEventService"),s("design:type",C.MouseEventService)],t.prototype,"mouseEventService",void 0),i([c.Autowired("userComponentFactory"),s("design:type",w.UserComponentFactory)],t.prototype,"userComponentFactory",void 0),i([v.RefSelector("eExpanded"),s("design:type",HTMLElement)],t.prototype,"eExpanded",void 0),i([v.RefSelector("eContracted"),s("design:type",HTMLElement)],t.prototype,"eContracted",void 0),i([v.RefSelector("eCheckbox"),s("design:type",HTMLElement)],t.prototype,"eCheckbox",void 0),i([v.RefSelector("eValue"),s("design:type",HTMLElement)],t.prototype,"eValue",void 0),i([v.RefSelector("eChildCount"),s("design:type",HTMLElement)],t.prototype,"eChildCount",void 0),t}(d.Component);t.GroupCellRenderer=E},16924:(e,t,o)=>{o.d(t,{ry:()=>sn});var n,r,i,s,a,l,p="vercel.ai.error",u=Symbol.for(p),c=class e extends(r=Error,n=u,r){constructor({name:e,message:t,cause:o}){super(t),this[n]=!0,this.name=e,this.cause=o}static isInstance(t){return e.hasMarker(t,p)}static hasMarker(e,t){const o=Symbol.for(t);return null!=e&&"object"==typeof e&&o in e&&"boolean"==typeof e[o]&&!0===e[o]}},d="AI_APICallError",h=`vercel.ai.error.${d}`,f=Symbol.for(h),g=class extends(s=c,i=f,s){constructor({message:e,url:t,requestBodyValues:o,statusCode:n,responseHeaders:r,responseBody:s,cause:a,isRetryable:l=null!=n&&(408===n||409===n||429===n||n>=500),data:p}){super({name:d,message:e,cause:a}),this[i]=!0,this.url=t,this.requestBodyValues=o,this.statusCode=n,this.responseHeaders=r,this.responseBody=s,this.isRetryable=l,this.data=p}static isInstance(e){return c.hasMarker(e,h)}},m="AI_EmptyResponseBodyError",y=`vercel.ai.error.${m}`,v=Symbol.for(y),C=class extends(l=c,a=v,l){constructor({message:e="Empty response body"}={}){super({name:m,message:e}),this[a]=!0}static isInstance(e){return c.hasMarker(e,y)}};function w(e){return null==e?"unknown error":"string"==typeof e?e:e instanceof Error?e.message:JSON.stringify(e)}var _,E,b,R,S,O,P,A,T,D,N,I,x,F,L,M,k="AI_InvalidArgumentError",G=`vercel.ai.error.${k}`,V=Symbol.for(G),j=class extends(E=c,_=V,E){constructor({message:e,cause:t,argument:o}){super({name:k,message:e,cause:t}),this[_]=!0,this.argument=o}static isInstance(e){return c.hasMarker(e,G)}},W="AI_InvalidPromptError",H=`vercel.ai.error.${W}`,B=Symbol.for(H),U=class extends(R=c,b=B,R){constructor({prompt:e,message:t,cause:o}){super({name:W,message:`Invalid prompt: ${t}`,cause:o}),this[b]=!0,this.prompt=e}static isInstance(e){return c.hasMarker(e,H)}},Y="AI_InvalidResponseDataError",z=`vercel.ai.error.${Y}`,$=Symbol.for(z),K=class extends(O=c,S=$,O){constructor({data:e,message:t=`Invalid response data: ${JSON.stringify(e)}.`}){super({name:Y,message:t}),this[S]=!0,this.data=e}static isInstance(e){return c.hasMarker(e,z)}},q="AI_JSONParseError",Z=`vercel.ai.error.${q}`,Q=Symbol.for(Z),X=class extends(A=c,P=Q,A){constructor({text:e,cause:t}){super({name:q,message:`JSON parsing failed: Text: ${e}.\nError message: ${w(t)}`,cause:t}),this[P]=!0,this.text=e}static isInstance(e){return c.hasMarker(e,Z)}},J="AI_LoadAPIKeyError",ee=`vercel.ai.error.${J}`,te=Symbol.for(ee),oe=class extends(D=c,T=te,D){constructor({message:e}){super({name:J,message:e}),this[T]=!0}static isInstance(e){return c.hasMarker(e,ee)}},ne=Symbol.for("vercel.ai.error.AI_LoadSettingError"),re=`vercel.ai.error.${"AI_NoContentGeneratedError"}`,ie=Symbol.for(re),se=`vercel.ai.error.${"AI_NoSuchModelError"}`,ae=Symbol.for(se),le="AI_TooManyEmbeddingValuesForCallError",pe=`vercel.ai.error.${le}`,ue=Symbol.for(pe),ce=class extends(I=c,N=ue,I){constructor(e){super({name:le,message:`Too many values for a single embedding call. The ${e.provider} model "${e.modelId}" can only embed up to ${e.maxEmbeddingsPerCall} values per call, but ${e.values.length} values were provided.`}),this[N]=!0,this.provider=e.provider,this.modelId=e.modelId,this.maxEmbeddingsPerCall=e.maxEmbeddingsPerCall,this.values=e.values}static isInstance(e){return c.hasMarker(e,pe)}},de="AI_TypeValidationError",he=`vercel.ai.error.${de}`,fe=Symbol.for(he),ge=class e extends(F=c,x=fe,F){constructor({value:e,cause:t}){super({name:de,message:`Type validation failed: Value: ${JSON.stringify(e)}.\nError message: ${w(t)}`,cause:t}),this[x]=!0,this.value=e}static isInstance(e){return c.hasMarker(e,he)}static wrap({value:t,cause:o}){return e.isInstance(o)&&o.value===t?o:new e({value:t,cause:o})}},me="AI_UnsupportedFunctionalityError",ye=`vercel.ai.error.${me}`,ve=Symbol.for(ye),Ce=class extends(M=c,L=ve,M){constructor({functionality:e,message:t=`'${e}' functionality not supported.`}){super({name:me,message:t}),this[L]=!0,this.functionality=e}static isInstance(e){return c.hasMarker(e,ye)}},we=o(58750),_e=o(9364),Ee=o(33868),be=o(24730),Re=o(15088).process;function Se(...e){return e.reduce(((e,t)=>({...e,...null!=t?t:{}})),{})}function Oe(e){return Object.fromEntries([...e.headers])}var{btoa:Pe,atob:Ae}=globalThis;function Te(e){const t=e.replace(/-/g,"+").replace(/_/g,"/"),o=Ae(t);return Uint8Array.from(o,(e=>e.codePointAt(0)))}function De(e){return e instanceof Uint8Array?function(e){let t="";for(let o=0;o<e.length;o++)t+=String.fromCodePoint(e[o]);return Pe(t)}(e):e}function Ne(e,t={}){const{useArrayBrackets:o=!0}=t,n=new FormData;for(const[t,r]of Object.entries(e))if(null!=r)if(Array.isArray(r)){if(1===r.length){n.append(t,r[0]);continue}const e=o?`${t}[]`:t;for(const t of r)n.append(e,t)}else n.append(t,r);return n}var Ie,xe,Fe="AI_DownloadError",Le=`vercel.ai.error.${Fe}`,Me=Symbol.for(Le),ke=class extends(xe=c,Ie=Me,xe){constructor({url:e,statusCode:t,statusText:o,cause:n,message:r=(null==n?`Failed to download ${e}: ${t} ${o}`:`Failed to download ${e}: ${n}`)}){super({name:Fe,message:r,cause:n}),this[Ie]=!0,this.url=e,this.statusCode=t,this.statusText=o}static isInstance(e){return c.hasMarker(e,Le)}};async function Ge(e){try{const t=await fetch(e);if(!t.ok)throw new ke({url:e,statusCode:t.status,statusText:t.statusText});return await t.blob()}catch(t){if(ke.isInstance(t))throw t;throw new ke({url:e,cause:t})}}var Ve=(({prefix:e,size:t=16,alphabet:o="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz",separator:n="-"}={})=>{const r=()=>{const e=o.length,n=new Array(t);for(let r=0;r<t;r++)n[r]=o[Math.random()*e|0];return n.join("")};if(null==e)return r;if(o.includes(n))throw new j({argument:"separator",message:`The separator "${n}" must not be part of the alphabet "${o}".`});return()=>`${e}${n}${r()}`})();function je(e){return(e instanceof Error||e instanceof DOMException)&&("AbortError"===e.name||"ResponseAborted"===e.name||"TimeoutError"===e.name)}var We=["fetch failed","failed to fetch"];function He(e=globalThis){var t,o,n;return e.window?"runtime/browser":(null==(t=e.navigator)?void 0:t.userAgent)?`runtime/${e.navigator.userAgent.toLowerCase()}`:(null==(n=null==(o=e.process)?void 0:o.versions)?void 0:n.node)?`runtime/node.js/${e.process.version.substring(0)}`:e.EdgeRuntime?"runtime/vercel-edge":"runtime/unknown"}function Be(e,...t){const o=new Headers(function(e){if(null==e)return{};const t={};if(e instanceof Headers)e.forEach(((e,o)=>{t[o.toLowerCase()]=e}));else{Array.isArray(e)||(e=Object.entries(e));for(const[o,n]of e)null!=n&&(t[o.toLowerCase()]=n)}return t}(e)),n=o.get("user-agent")||"";return o.set("user-agent",[n,...t].filter(Boolean).join(" ")),Object.fromEntries(o.entries())}function Ue(e){return null!=e}function Ye({apiKey:e,environmentVariableName:t,apiKeyParameterName:o="apiKey",description:n}){if("string"==typeof e)return e;if(null!=e)throw new oe({message:`${n} API key must be a string.`});if(void 0===Re)throw new oe({message:`${n} API key is missing. Pass it using the '${o}' parameter. Environment variables is not supported in this environment.`});if(null==(e=Re.env[t]))throw new oe({message:`${n} API key is missing. Pass it using the '${o}' parameter or the ${t} environment variable.`});if("string"!=typeof e)throw new oe({message:`${n} API key must be a string. The value of the ${t} environment variable is not a string.`});return e}var ze=/"__proto__"\s*:/,$e=/"constructor"\s*:/;function Ke(e){const t=JSON.parse(e);return null===t||"object"!=typeof t||!1===ze.test(e)&&!1===$e.test(e)?t:function(e){let t=[e];for(;t.length;){const e=t;t=[];for(const o of e){if(Object.prototype.hasOwnProperty.call(o,"__proto__"))throw new SyntaxError("Object contains forbidden prototype property");if(Object.prototype.hasOwnProperty.call(o,"constructor")&&Object.prototype.hasOwnProperty.call(o.constructor,"prototype"))throw new SyntaxError("Object contains forbidden prototype property");for(const e in o){const n=o[e];n&&"object"==typeof n&&t.push(n)}}}return e}(t)}function qe(e){const{stackTraceLimit:t}=Error;try{Error.stackTraceLimit=0}catch(t){return Ke(e)}try{return Ke(e)}finally{Error.stackTraceLimit=t}}function Ze(e){if("object"===e.type||Array.isArray(e.type)&&e.type.includes("object")){e.additionalProperties=!1;const{properties:t}=e;if(null!=t)for(const e of Object.keys(t))t[e]=Qe(t[e])}null!=e.items&&(e.items=Array.isArray(e.items)?e.items.map(Qe):Qe(e.items)),null!=e.anyOf&&(e.anyOf=e.anyOf.map(Qe)),null!=e.allOf&&(e.allOf=e.allOf.map(Qe)),null!=e.oneOf&&(e.oneOf=e.oneOf.map(Qe));const{definitions:t}=e;if(null!=t)for(const e of Object.keys(t))t[e]=Qe(t[e]);return e}function Qe(e){return"boolean"==typeof e?e:Ze(e)}var Xe=Symbol("Let zodToJsonSchema decide on which parser to use"),Je={name:void 0,$refStrategy:"root",basePath:["#"],effectStrategy:"input",pipeStrategy:"all",dateStrategy:"format:date-time",mapStrategy:"entries",removeAdditionalStrategy:"passthrough",allowedAdditionalProperties:!0,rejectedAdditionalProperties:!1,definitionPath:"definitions",strictUnions:!1,definitions:{},errorMessages:!1,patternStrategy:"escape",applyRegexFlags:!1,emailStrategy:"format:email",base64Strategy:"contentEncoding:base64",nameStrategy:"ref"};function et(e,t){return mt(e.type._def,t)}function tt(e,t,o){const n=null!=o?o:t.dateStrategy;if(Array.isArray(n))return{anyOf:n.map(((o,n)=>tt(e,t,o)))};switch(n){case"string":case"format:date-time":return{type:"string",format:"date-time"};case"format:date":return{type:"string",format:"date"};case"integer":return ot(e)}}var ot=e=>{const t={type:"integer",format:"unix-time"};for(const o of e.checks)switch(o.kind){case"min":t.minimum=o.value;break;case"max":t.maximum=o.value}return t},nt=void 0,rt={cuid:/^[cC][^\s-]{8,}$/,cuid2:/^[0-9a-z]+$/,ulid:/^[0-9A-HJKMNP-TV-Z]{26}$/,email:/^(?!\.)(?!.*\.\.)([a-zA-Z0-9_'+\-\.]*)[a-zA-Z0-9_+-]@([a-zA-Z0-9][a-zA-Z0-9\-]*\.)+[a-zA-Z]{2,}$/,emoji:()=>(void 0===nt&&(nt=RegExp("^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$","u")),nt),uuid:/^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$/,ipv4:/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$/,ipv4Cidr:/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\/(3[0-2]|[12]?[0-9])$/,ipv6:/^(([a-f0-9]{1,4}:){7}|::([a-f0-9]{1,4}:){0,6}|([a-f0-9]{1,4}:){1}:([a-f0-9]{1,4}:){0,5}|([a-f0-9]{1,4}:){2}:([a-f0-9]{1,4}:){0,4}|([a-f0-9]{1,4}:){3}:([a-f0-9]{1,4}:){0,3}|([a-f0-9]{1,4}:){4}:([a-f0-9]{1,4}:){0,2}|([a-f0-9]{1,4}:){5}:([a-f0-9]{1,4}:){0,1})([a-f0-9]{1,4}|(((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2}))\.){3}((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2})))$/,ipv6Cidr:/^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/,base64:/^([0-9a-zA-Z+/]{4})*(([0-9a-zA-Z+/]{2}==)|([0-9a-zA-Z+/]{3}=))?$/,base64url:/^([0-9a-zA-Z-_]{4})*(([0-9a-zA-Z-_]{2}(==)?)|([0-9a-zA-Z-_]{3}(=)?))?$/,nanoid:/^[a-zA-Z0-9_-]{21}$/,jwt:/^[A-Za-z0-9-_]+\.[A-Za-z0-9-_]+\.[A-Za-z0-9-_]*$/};function it(e,t){const o={type:"string"};if(e.checks)for(const n of e.checks)switch(n.kind){case"min":o.minLength="number"==typeof o.minLength?Math.max(o.minLength,n.value):n.value;break;case"max":o.maxLength="number"==typeof o.maxLength?Math.min(o.maxLength,n.value):n.value;break;case"email":switch(t.emailStrategy){case"format:email":lt(o,"email",n.message,t);break;case"format:idn-email":lt(o,"idn-email",n.message,t);break;case"pattern:zod":pt(o,rt.email,n.message,t)}break;case"url":lt(o,"uri",n.message,t);break;case"uuid":lt(o,"uuid",n.message,t);break;case"regex":pt(o,n.regex,n.message,t);break;case"cuid":pt(o,rt.cuid,n.message,t);break;case"cuid2":pt(o,rt.cuid2,n.message,t);break;case"startsWith":pt(o,RegExp(`^${st(n.value,t)}`),n.message,t);break;case"endsWith":pt(o,RegExp(`${st(n.value,t)}$`),n.message,t);break;case"datetime":lt(o,"date-time",n.message,t);break;case"date":lt(o,"date",n.message,t);break;case"time":lt(o,"time",n.message,t);break;case"duration":lt(o,"duration",n.message,t);break;case"length":o.minLength="number"==typeof o.minLength?Math.max(o.minLength,n.value):n.value,o.maxLength="number"==typeof o.maxLength?Math.min(o.maxLength,n.value):n.value;break;case"includes":pt(o,RegExp(st(n.value,t)),n.message,t);break;case"ip":"v6"!==n.version&<(o,"ipv4",n.message,t),"v4"!==n.version&<(o,"ipv6",n.message,t);break;case"base64url":pt(o,rt.base64url,n.message,t);break;case"jwt":pt(o,rt.jwt,n.message,t);break;case"cidr":"v6"!==n.version&&pt(o,rt.ipv4Cidr,n.message,t),"v4"!==n.version&&pt(o,rt.ipv6Cidr,n.message,t);break;case"emoji":pt(o,rt.emoji(),n.message,t);break;case"ulid":pt(o,rt.ulid,n.message,t);break;case"base64":switch(t.base64Strategy){case"format:binary":lt(o,"binary",n.message,t);break;case"contentEncoding:base64":o.contentEncoding="base64";break;case"pattern:zod":pt(o,rt.base64,n.message,t)}break;case"nanoid":pt(o,rt.nanoid,n.message,t)}return o}function st(e,t){return"escape"===t.patternStrategy?function(e){let t="";for(let o=0;o<e.length;o++)at.has(e[o])||(t+="\\"),t+=e[o];return t}(e):e}var at=new Set("ABCDEFGHIJKLMNOPQRSTUVXYZabcdefghijklmnopqrstuvxyz0123456789");function lt(e,t,o,n){var r;e.format||(null==(r=e.anyOf)?void 0:r.some((e=>e.format)))?(e.anyOf||(e.anyOf=[]),e.format&&(e.anyOf.push({format:e.format}),delete e.format),e.anyOf.push({format:t,...o&&n.errorMessages&&{errorMessage:{format:o}}})):e.format=t}function pt(e,t,o,n){var r;e.pattern||(null==(r=e.allOf)?void 0:r.some((e=>e.pattern)))?(e.allOf||(e.allOf=[]),e.pattern&&(e.allOf.push({pattern:e.pattern}),delete e.pattern),e.allOf.push({pattern:ut(t,n),...o&&n.errorMessages&&{errorMessage:{pattern:o}}})):e.pattern=ut(t,n)}function ut(e,t){var o;if(!t.applyRegexFlags||!e.flags)return e.source;const n=e.flags.includes("i"),r=e.flags.includes("m"),i=e.flags.includes("s"),s=n?e.source.toLowerCase():e.source;let a="",l=!1,p=!1,u=!1;for(let e=0;e<s.length;e++)if(l)a+=s[e],l=!1;else{if(n)if(p){if(s[e].match(/[a-z]/)){u?(a+=s[e],a+=`${s[e-2]}-${s[e]}`.toUpperCase(),u=!1):"-"===s[e+1]&&(null==(o=s[e+2])?void 0:o.match(/[a-z]/))?(a+=s[e],u=!0):a+=`${s[e]}${s[e].toUpperCase()}`;continue}}else if(s[e].match(/[a-z]/)){a+=`[${s[e]}${s[e].toUpperCase()}]`;continue}if(r){if("^"===s[e]){a+="(^|(?<=[\r\n]))";continue}if("$"===s[e]){a+="($|(?=[\r\n]))";continue}}i&&"."===s[e]?a+=p?`${s[e]}\r\n`:`[${s[e]}\r\n]`:(a+=s[e],"\\"===s[e]?l=!0:p&&"]"===s[e]?p=!1:p||"["!==s[e]||(p=!0))}try{new RegExp(a)}catch(o){return console.warn(`Could not convert regex pattern at ${t.currentPath.join("/")} to a flag-independent form! Falling back to the flag-ignorant source`),e.source}return a}function ct(e,t){var o,n,r,i,s,a;const l={type:"object",additionalProperties:null!=(o=mt(e.valueType._def,{...t,currentPath:[...t.currentPath,"additionalProperties"]}))?o:t.allowedAdditionalProperties};if((null==(n=e.keyType)?void 0:n._def.typeName)===Ee.kY.ZodString&&(null==(r=e.keyType._def.checks)?void 0:r.length)){const{type:o,...n}=it(e.keyType._def,t);return{...l,propertyNames:n}}if((null==(i=e.keyType)?void 0:i._def.typeName)===Ee.kY.ZodEnum)return{...l,propertyNames:{enum:e.keyType._def.values}};if((null==(s=e.keyType)?void 0:s._def.typeName)===Ee.kY.ZodBranded&&e.keyType._def.type._def.typeName===Ee.kY.ZodString&&(null==(a=e.keyType._def.type._def.checks)?void 0:a.length)){const{type:o,...n}=et(e.keyType._def,t);return{...l,propertyNames:n}}return l}var dt={ZodString:"string",ZodNumber:"number",ZodBigInt:"integer",ZodBoolean:"boolean",ZodNull:"null"};function ht(e){try{return e.isOptional()}catch(e){return!0}}var ft=(e,t,o)=>{switch(t){case Ee.kY.ZodString:return it(e,o);case Ee.kY.ZodNumber:return function(e){const t={type:"number"};if(!e.checks)return t;for(const o of e.checks)switch(o.kind){case"int":t.type="integer";break;case"min":o.inclusive?t.minimum=o.value:t.exclusiveMinimum=o.value;break;case"max":o.inclusive?t.maximum=o.value:t.exclusiveMaximum=o.value;break;case"multipleOf":t.multipleOf=o.value}return t}(e);case Ee.kY.ZodObject:return function(e,t){const o={type:"object",properties:{}},n=[],r=e.shape();for(const e in r){let i=r[e];if(void 0===i||void 0===i._def)continue;const s=ht(i),a=mt(i._def,{...t,currentPath:[...t.currentPath,"properties",e],propertyPath:[...t.currentPath,"properties",e]});void 0!==a&&(o.properties[e]=a,s||n.push(e))}n.length&&(o.required=n);const i=function(e,t){if("ZodNever"!==e.catchall._def.typeName)return mt(e.catchall._def,{...t,currentPath:[...t.currentPath,"additionalProperties"]});switch(e.unknownKeys){case"passthrough":return t.allowedAdditionalProperties;case"strict":return t.rejectedAdditionalProperties;case"strip":return"strict"===t.removeAdditionalStrategy?t.allowedAdditionalProperties:t.rejectedAdditionalProperties}}(e,t);return void 0!==i&&(o.additionalProperties=i),o}(e,o);case Ee.kY.ZodBigInt:return function(e){const t={type:"integer",format:"int64"};if(!e.checks)return t;for(const o of e.checks)switch(o.kind){case"min":o.inclusive?t.minimum=o.value:t.exclusiveMinimum=o.value;break;case"max":o.inclusive?t.maximum=o.value:t.exclusiveMaximum=o.value;break;case"multipleOf":t.multipleOf=o.value}return t}(e);case Ee.kY.ZodBoolean:return{type:"boolean"};case Ee.kY.ZodDate:return tt(e,o);case Ee.kY.ZodUndefined:return{not:{}};case Ee.kY.ZodNull:return{type:"null"};case Ee.kY.ZodArray:return function(e,t){var o,n,r;const i={type:"array"};return(null==(o=e.type)?void 0:o._def)&&(null==(r=null==(n=e.type)?void 0:n._def)?void 0:r.typeName)!==Ee.kY.ZodAny&&(i.items=mt(e.type._def,{...t,currentPath:[...t.currentPath,"items"]})),e.minLength&&(i.minItems=e.minLength.value),e.maxLength&&(i.maxItems=e.maxLength.value),e.exactLength&&(i.minItems=e.exactLength.value,i.maxItems=e.exactLength.value),i}(e,o);case Ee.kY.ZodUnion:case Ee.kY.ZodDiscriminatedUnion:return function(e,t){const o=e.options instanceof Map?Array.from(e.options.values()):e.options;if(o.every((e=>e._def.typeName in dt&&(!e._def.checks||!e._def.checks.length)))){const e=o.reduce(((e,t)=>{const o=dt[t._def.typeName];return o&&!e.includes(o)?[...e,o]:e}),[]);return{type:e.length>1?e:e[0]}}if(o.every((e=>"ZodLiteral"===e._def.typeName&&!e.description))){const e=o.reduce(((e,t)=>{const o=typeof t._def.value;switch(o){case"string":case"number":case"boolean":return[...e,o];case"bigint":return[...e,"integer"];case"object":if(null===t._def.value)return[...e,"null"];default:return e}}),[]);if(e.length===o.length){const t=e.filter(((e,t,o)=>o.indexOf(e)===t));return{type:t.length>1?t:t[0],enum:o.reduce(((e,t)=>e.includes(t._def.value)?e:[...e,t._def.value]),[])}}}else if(o.every((e=>"ZodEnum"===e._def.typeName)))return{type:"string",enum:o.reduce(((e,t)=>[...e,...t._def.values.filter((t=>!e.includes(t)))]),[])};return((e,t)=>{const o=(e.options instanceof Map?Array.from(e.options.values()):e.options).map(((e,o)=>mt(e._def,{...t,currentPath:[...t.currentPath,"anyOf",`${o}`]}))).filter((e=>!!e&&(!t.strictUnions||"object"==typeof e&&Object.keys(e).length>0)));return o.length?{anyOf:o}:void 0})(e,t)}(e,o);case Ee.kY.ZodIntersection:return function(e,t){const o=[mt(e.left._def,{...t,currentPath:[...t.currentPath,"allOf","0"]}),mt(e.right._def,{...t,currentPath:[...t.currentPath,"allOf","1"]})].filter((e=>!!e)),n=[];return o.forEach((e=>{if("type"in(t=e)&&"string"===t.type||!("allOf"in t)){let t=e;if("additionalProperties"in e&&!1===e.additionalProperties){const{additionalProperties:o,...n}=e;t=n}n.push(t)}else n.push(...e.allOf);var t})),n.length?{allOf:n}:void 0}(e,o);case Ee.kY.ZodTuple:return function(e,t){return e.rest?{type:"array",minItems:e.items.length,items:e.items.map(((e,o)=>mt(e._def,{...t,currentPath:[...t.currentPath,"items",`${o}`]}))).reduce(((e,t)=>void 0===t?e:[...e,t]),[]),additionalItems:mt(e.rest._def,{...t,currentPath:[...t.currentPath,"additionalItems"]})}:{type:"array",minItems:e.items.length,maxItems:e.items.length,items:e.items.map(((e,o)=>mt(e._def,{...t,currentPath:[...t.currentPath,"items",`${o}`]}))).reduce(((e,t)=>void 0===t?e:[...e,t]),[])}}(e,o);case Ee.kY.ZodRecord:return ct(e,o);case Ee.kY.ZodLiteral:return function(e){const t=typeof e.value;return"bigint"!==t&&"number"!==t&&"boolean"!==t&&"string"!==t?{type:Array.isArray(e.value)?"array":"object"}:{type:"bigint"===t?"integer":t,const:e.value}}(e);case Ee.kY.ZodEnum:return function(e){return{type:"string",enum:Array.from(e.values)}}(e);case Ee.kY.ZodNativeEnum:return function(e){const t=e.values,o=Object.keys(e.values).filter((e=>"number"!=typeof t[t[e]])).map((e=>t[e])),n=Array.from(new Set(o.map((e=>typeof e))));return{type:1===n.length?"string"===n[0]?"string":"number":["string","number"],enum:o}}(e);case Ee.kY.ZodNullable:return function(e,t){if(["ZodString","ZodNumber","ZodBigInt","ZodBoolean","ZodNull"].includes(e.innerType._def.typeName)&&(!e.innerType._def.checks||!e.innerType._def.checks.length))return{type:[dt[e.innerType._def.typeName],"null"]};const o=mt(e.innerType._def,{...t,currentPath:[...t.currentPath,"anyOf","0"]});return o&&{anyOf:[o,{type:"null"}]}}(e,o);case Ee.kY.ZodOptional:return((e,t)=>{var o;if(t.currentPath.toString()===(null==(o=t.propertyPath)?void 0:o.toString()))return mt(e.innerType._def,t);const n=mt(e.innerType._def,{...t,currentPath:[...t.currentPath,"anyOf","1"]});return n?{anyOf:[{not:{}},n]}:{}})(e,o);case Ee.kY.ZodMap:return function(e,t){return"record"===t.mapStrategy?ct(e,t):{type:"array",maxItems:125,items:{type:"array",items:[mt(e.keyType._def,{...t,currentPath:[...t.currentPath,"items","items","0"]})||{},mt(e.valueType._def,{...t,currentPath:[...t.currentPath,"items","items","1"]})||{}],minItems:2,maxItems:2}}}(e,o);case Ee.kY.ZodSet:return function(e,t){const o={type:"array",uniqueItems:!0,items:mt(e.valueType._def,{...t,currentPath:[...t.currentPath,"items"]})};return e.minSize&&(o.minItems=e.minSize.value),e.maxSize&&(o.maxItems=e.maxSize.value),o}(e,o);case Ee.kY.ZodLazy:return()=>e.getter()._def;case Ee.kY.ZodPromise:return function(e,t){return mt(e.type._def,t)}(e,o);case Ee.kY.ZodNaN:case Ee.kY.ZodNever:return{not:{}};case Ee.kY.ZodEffects:return function(e,t){return"input"===t.effectStrategy?mt(e.schema._def,t):{}}(e,o);case Ee.kY.ZodAny:case Ee.kY.ZodUnknown:return{};case Ee.kY.ZodDefault:return function(e,t){return{...mt(e.innerType._def,t),default:e.defaultValue()}}(e,o);case Ee.kY.ZodBranded:return et(e,o);case Ee.kY.ZodReadonly:case Ee.kY.ZodCatch:return((e,t)=>mt(e.innerType._def,t))(e,o);case Ee.kY.ZodPipeline:return((e,t)=>{if("input"===t.pipeStrategy)return mt(e.in._def,t);if("output"===t.pipeStrategy)return mt(e.out._def,t);const o=mt(e.in._def,{...t,currentPath:[...t.currentPath,"allOf","0"]});return{allOf:[o,mt(e.out._def,{...t,currentPath:[...t.currentPath,"allOf",o?"1":"0"]})].filter((e=>void 0!==e))}})(e,o);case Ee.kY.ZodFunction:case Ee.kY.ZodVoid:case Ee.kY.ZodSymbol:default:return}},gt=(e,t)=>{let o=0;for(;o<e.length&&o<t.length&&e[o]===t[o];o++);return[(e.length-o).toString(),...t.slice(o)].join("/")};function mt(e,t,o=!1){var n;const r=t.seen.get(e);if(t.override){const i=null==(n=t.override)?void 0:n.call(t,e,t,r,o);if(i!==Xe)return i}if(r&&!o){const e=yt(r,t);if(void 0!==e)return e}const i={def:e,path:t.currentPath,jsonSchema:void 0};t.seen.set(e,i);const s=ft(e,e.typeName,t),a="function"==typeof s?mt(s(),t):s;if(a&&vt(e,t,a),t.postProcess){const o=t.postProcess(a,e,t);return i.jsonSchema=a,o}return i.jsonSchema=a,a}var yt=(e,t)=>{switch(t.$refStrategy){case"root":return{$ref:e.path.join("/")};case"relative":return{$ref:gt(t.currentPath,e.path)};case"none":case"seen":return e.path.length<t.currentPath.length&&e.path.every(((e,o)=>t.currentPath[o]===e))?(console.warn(`Recursive reference detected at ${t.currentPath.join("/")}! Defaulting to any`),{}):"seen"===t.$refStrategy?{}:void 0}},vt=(e,t,o)=>(e.description&&(o.description=e.description),o),Ct=(e,t)=>{var o;const n=(e=>{const t=(e=>"string"==typeof e?{...Je,name:e}:{...Je,...e})(e),o=void 0!==t.name?[...t.basePath,t.definitionPath,t.name]:t.basePath;return{...t,currentPath:o,propertyPath:void 0,seen:new Map(Object.entries(t.definitions).map((([e,o])=>[o._def,{def:o._def,path:[...t.basePath,t.definitionPath,e],jsonSchema:void 0}])))}})(t);let r="object"==typeof t&&t.definitions?Object.entries(t.definitions).reduce(((e,[t,o])=>{var r;return{...e,[t]:null!=(r=mt(o._def,{...n,currentPath:[...n.basePath,n.definitionPath,t]},!0))?r:{}}}),{}):void 0;const i="string"==typeof t?t:"title"===(null==t?void 0:t.nameStrategy)||null==t?void 0:t.name,s=null!=(o=mt(e._def,void 0===i?n:{...n,currentPath:[...n.basePath,n.definitionPath,i]},!1))?o:{},a="object"==typeof t&&void 0!==t.name&&"title"===t.nameStrategy?t.name:void 0;void 0!==a&&(s.title=a);const l=void 0===i?r?{...s,[n.definitionPath]:r}:s:{$ref:[..."relative"===n.$refStrategy?[]:n.basePath,n.definitionPath,i].join("/"),[n.definitionPath]:{...r,[i]:s}};return l.$schema="http://json-schema.org/draft-07/schema#",l},wt=Symbol.for("vercel.ai.schema");function _t(e){let t;return()=>(null==t&&(t=e()),t)}function Et(e,{validate:t}={}){return{[wt]:!0,_type:void 0,get jsonSchema(){return"function"==typeof e&&(e=e()),e},validate:t}}function bt(e,t){return function(e){return"_zod"in e}(e)?function(e,t){var o;const n=null!=(o=null==t?void 0:t.useReferences)&&o;return Et((()=>Ze(we.b(e,{target:"draft-7",io:"input",reused:n?"ref":"inline"}))),{validate:async t=>{const o=await _e.bp(e,t);return o.success?{success:!0,value:o.data}:{success:!1,error:o.error}}})}(e,t):function(e,t){var o;const n=null!=(o=null==t?void 0:t.useReferences)&&o;return Et((()=>Ct(e,{$refStrategy:n?"root":"none"})),{validate:async t=>{const o=await e.safeParseAsync(t);return o.success?{success:!0,value:o.data}:{success:!1,error:o.error}}})}(e,t)}async function Rt({value:e,schema:t}){const o=await St({value:e,schema:t});if(!o.success)throw ge.wrap({value:e,cause:o.error});return o.value}async function St({value:e,schema:t}){const o=function(e){return null==e?Et({properties:{},additionalProperties:!1}):"object"==typeof(o=e)&&null!==o&&wt in o&&!0===o[wt]&&"jsonSchema"in o&&"validate"in o?e:"~standard"in e?"zod"===e["~standard"].vendor?bt(e):(t=e,Et((()=>Ze(t["~standard"].jsonSchema.input({target:"draft-07"}))),{validate:async e=>{const o=await t["~standard"].validate(e);return"value"in o?{success:!0,value:o.value}:{success:!1,error:new ge({value:e,cause:o.issues})}}})):e();var t,o}(t);try{if(null==o.validate)return{success:!0,value:e,rawValue:e};const t=await o.validate(e);return t.success?{success:!0,value:t.value,rawValue:e}:{success:!1,error:ge.wrap({value:e,cause:t.error}),rawValue:e}}catch(t){return{success:!1,error:ge.wrap({value:e,cause:t}),rawValue:e}}}async function Ot({text:e,schema:t}){try{const o=qe(e);return null==t?{success:!0,value:o,rawValue:o}:await St({value:o,schema:t})}catch(t){return{success:!1,error:X.isInstance(t)?t:new X({text:e,cause:t}),rawValue:void 0}}}function Pt(e){try{return qe(e),!0}catch(e){return!1}}function At({stream:e,schema:t}){return e.pipeThrough(new TextDecoderStream).pipeThrough(new be.Z).pipeThrough(new TransformStream({async transform({data:e},o){"[DONE]"!==e&&o.enqueue(await Ot({text:e,schema:t}))}}))}async function Tt({provider:e,providerOptions:t,schema:o}){if(null==(null==t?void 0:t[e]))return;const n=await St({value:t[e],schema:o});if(!n.success)throw new j({argument:"providerOptions",message:`invalid ${e} provider options`,cause:n.error});return n.value}var Dt=()=>globalThis.fetch,Nt=async({url:e,headers:t,body:o,failedResponseHandler:n,successfulResponseHandler:r,abortSignal:i,fetch:s})=>xt({url:e,headers:{"Content-Type":"application/json",...t},body:{content:JSON.stringify(o),values:o},failedResponseHandler:n,successfulResponseHandler:r,abortSignal:i,fetch:s}),It=async({url:e,headers:t,formData:o,failedResponseHandler:n,successfulResponseHandler:r,abortSignal:i,fetch:s})=>xt({url:e,headers:t,body:{content:o,values:Object.fromEntries(o.entries())},failedResponseHandler:n,successfulResponseHandler:r,abortSignal:i,fetch:s}),xt=async({url:e,headers:t={},body:o,successfulResponseHandler:n,failedResponseHandler:r,abortSignal:i,fetch:s=Dt()})=>{try{const a=await s(e,{method:"POST",headers:Be(t,"ai-sdk/provider-utils/4.0.5",He()),body:o.content,signal:i}),l=Oe(a);if(!a.ok){let t;try{t=await r({response:a,url:e,requestBodyValues:o.values})}catch(t){if(je(t)||g.isInstance(t))throw t;throw new g({message:"Failed to process error response",cause:t,statusCode:a.status,url:e,responseHeaders:l,requestBodyValues:o.values})}throw t.value}try{return await n({response:a,url:e,requestBodyValues:o.values})}catch(t){if(t instanceof Error&&(je(t)||g.isInstance(t)))throw t;throw new g({message:"Failed to process successful response",cause:t,statusCode:a.status,url:e,responseHeaders:l,requestBodyValues:o.values})}}catch(t){throw function({error:e,url:t,requestBodyValues:o}){if(je(e))return e;if(e instanceof TypeError&&We.includes(e.message.toLowerCase())){const n=e.cause;if(null!=n)return new g({message:`Cannot connect to API: ${n.message}`,cause:n,url:t,requestBodyValues:o,isRetryable:!0})}return e}({error:t,url:e,requestBodyValues:o.values})}};function Ft({id:e,inputSchema:t,outputSchema:o,supportsDeferredResults:n}){return({execute:r,needsApproval:i,toModelOutput:s,onInputStart:a,onInputDelta:l,onInputAvailable:p,...u})=>({type:"provider",id:e,args:u,inputSchema:t,outputSchema:o,execute:r,needsApproval:i,toModelOutput:s,onInputStart:a,onInputDelta:l,onInputAvailable:p,supportsDeferredResults:n})}var Lt=e=>async({response:t})=>{const o=Oe(t);if(null==t.body)throw new C({});return{responseHeaders:o,value:At({stream:t.body,schema:e})}},Mt=e=>async({response:t,url:o,requestBodyValues:n})=>{const r=await t.text(),i=await Ot({text:r,schema:e}),s=Oe(t);if(!i.success)throw new g({message:"Invalid JSON response",cause:i.error,statusCode:t.status,responseHeaders:s,responseBody:r,url:o,requestBodyValues:n});return{responseHeaders:s,value:i.value,rawValue:i.rawValue}},kt=o(42343),Gt=o(26070),Vt=o(21655).URL,jt=kt.Ik({error:kt.Ik({message:kt.Yj(),type:kt.Yj().nullish(),param:kt.bz().nullish(),code:kt.KC([kt.Yj(),kt.ai()]).nullish()})}),Wt=(({errorSchema:e,errorToMessage:t,isRetryable:o})=>async({response:n,url:r,requestBodyValues:i})=>{const s=await n.text(),a=Oe(n);if(""===s.trim())return{responseHeaders:a,value:new g({message:n.statusText,url:r,requestBodyValues:i,statusCode:n.status,responseHeaders:a,responseBody:s,isRetryable:null==o?void 0:o(n)})};try{const l=await async function({text:e,schema:t}){try{const o=qe(e);return null==t?o:Rt({value:o,schema:t})}catch(t){if(X.isInstance(t)||ge.isInstance(t))throw t;throw new X({text:e,cause:t})}}({text:s,schema:e});return{responseHeaders:a,value:new g({message:t(l),url:r,requestBodyValues:i,statusCode:n.status,responseHeaders:a,responseBody:s,data:l,isRetryable:null==o?void 0:o(n,l)})}}catch(e){return{responseHeaders:a,value:new g({message:n.statusText,url:r,requestBodyValues:i,statusCode:n.status,responseHeaders:a,responseBody:s,isRetryable:null==o?void 0:o(n)})}}})({errorSchema:jt,errorToMessage:e=>e.error.message});function Ht(e){const t=e.startsWith("o3")||e.startsWith("o4-mini")||e.startsWith("gpt-5")&&!e.startsWith("gpt-5-chat"),o=e.startsWith("gpt-4")||e.startsWith("gpt-5-mini")||e.startsWith("gpt-5")&&!e.startsWith("gpt-5-nano")&&!e.startsWith("gpt-5-chat")||e.startsWith("o3")||e.startsWith("o4-mini"),n=e.startsWith("o1")||e.startsWith("o3")||e.startsWith("o4-mini")||e.startsWith("codex-mini")||e.startsWith("computer-use-preview")||e.startsWith("gpt-5")&&!e.startsWith("gpt-5-chat");return{supportsFlexProcessing:t,supportsPriorityProcessing:o,isReasoningModel:n,systemMessageMode:n?"developer":"system",supportsNonReasoningParameters:e.startsWith("gpt-5.1")||e.startsWith("gpt-5.2")}}function Bt(e){var t,o,n,r,i,s;if(null==e)return{inputTokens:{total:void 0,noCache:void 0,cacheRead:void 0,cacheWrite:void 0},outputTokens:{total:void 0,text:void 0,reasoning:void 0},raw:void 0};const a=null!=(t=e.prompt_tokens)?t:0,l=null!=(o=e.completion_tokens)?o:0,p=null!=(r=null==(n=e.prompt_tokens_details)?void 0:n.cached_tokens)?r:0,u=null!=(s=null==(i=e.completion_tokens_details)?void 0:i.reasoning_tokens)?s:0;return{inputTokens:{total:a,noCache:a-p,cacheRead:p,cacheWrite:void 0},outputTokens:{total:l,text:l-u,reasoning:u},raw:e}}function Ut({id:e,model:t,created:o}){return{id:null!=e?e:void 0,modelId:null!=t?t:void 0,timestamp:o?new Date(1e3*o):void 0}}function Yt(e){switch(e){case"stop":return"stop";case"length":return"length";case"content_filter":return"content-filter";case"function_call":case"tool_calls":return"tool-calls";default:return"other"}}var zt=_t((()=>bt(kt.Ik({id:kt.Yj().nullish(),created:kt.ai().nullish(),model:kt.Yj().nullish(),choices:kt.YO(kt.Ik({message:kt.Ik({role:kt.eu("assistant").nullish(),content:kt.Yj().nullish(),tool_calls:kt.YO(kt.Ik({id:kt.Yj().nullish(),type:kt.eu("function"),function:kt.Ik({name:kt.Yj(),arguments:kt.Yj()})})).nullish(),annotations:kt.YO(kt.Ik({type:kt.eu("url_citation"),url_citation:kt.Ik({start_index:kt.ai(),end_index:kt.ai(),url:kt.Yj(),title:kt.Yj()})})).nullish()}),index:kt.ai(),logprobs:kt.Ik({content:kt.YO(kt.Ik({token:kt.Yj(),logprob:kt.ai(),top_logprobs:kt.YO(kt.Ik({token:kt.Yj(),logprob:kt.ai()}))})).nullish()}).nullish(),finish_reason:kt.Yj().nullish()})),usage:kt.Ik({prompt_tokens:kt.ai().nullish(),completion_tokens:kt.ai().nullish(),total_tokens:kt.ai().nullish(),prompt_tokens_details:kt.Ik({cached_tokens:kt.ai().nullish()}).nullish(),completion_tokens_details:kt.Ik({reasoning_tokens:kt.ai().nullish(),accepted_prediction_tokens:kt.ai().nullish(),rejected_prediction_tokens:kt.ai().nullish()}).nullish()}).nullish()})))),$t=_t((()=>bt(kt.KC([kt.Ik({id:kt.Yj().nullish(),created:kt.ai().nullish(),model:kt.Yj().nullish(),choices:kt.YO(kt.Ik({delta:kt.Ik({role:kt.k5(["assistant"]).nullish(),content:kt.Yj().nullish(),tool_calls:kt.YO(kt.Ik({index:kt.ai(),id:kt.Yj().nullish(),type:kt.eu("function").nullish(),function:kt.Ik({name:kt.Yj().nullish(),arguments:kt.Yj().nullish()})})).nullish(),annotations:kt.YO(kt.Ik({type:kt.eu("url_citation"),url_citation:kt.Ik({start_index:kt.ai(),end_index:kt.ai(),url:kt.Yj(),title:kt.Yj()})})).nullish()}).nullish(),logprobs:kt.Ik({content:kt.YO(kt.Ik({token:kt.Yj(),logprob:kt.ai(),top_logprobs:kt.YO(kt.Ik({token:kt.Yj(),logprob:kt.ai()}))})).nullish()}).nullish(),finish_reason:kt.Yj().nullish(),index:kt.ai()})),usage:kt.Ik({prompt_tokens:kt.ai().nullish(),completion_tokens:kt.ai().nullish(),total_tokens:kt.ai().nullish(),prompt_tokens_details:kt.Ik({cached_tokens:kt.ai().nullish()}).nullish(),completion_tokens_details:kt.Ik({reasoning_tokens:kt.ai().nullish(),accepted_prediction_tokens:kt.ai().nullish(),rejected_prediction_tokens:kt.ai().nullish()}).nullish()}).nullish()}),jt])))),Kt=_t((()=>bt(kt.Ik({logitBias:kt.g1(Gt.number(),kt.ai()).optional(),logprobs:kt.KC([kt.zM(),kt.ai()]).optional(),parallelToolCalls:kt.zM().optional(),user:kt.Yj().optional(),reasoningEffort:kt.k5(["none","minimal","low","medium","high","xhigh"]).optional(),maxCompletionTokens:kt.ai().optional(),store:kt.zM().optional(),metadata:kt.g1(kt.Yj().max(64),kt.Yj().max(512)).optional(),prediction:kt.g1(kt.Yj(),kt.bz()).optional(),serviceTier:kt.k5(["auto","flex","priority","default"]).optional(),strictJsonSchema:kt.zM().optional(),textVerbosity:kt.k5(["low","medium","high"]).optional(),promptCacheKey:kt.Yj().optional(),promptCacheRetention:kt.k5(["in_memory","24h"]).optional(),safetyIdentifier:kt.Yj().optional(),systemMessageMode:kt.k5(["system","developer","remove"]).optional(),forceReasoning:kt.zM().optional()})))),qt=class{constructor(e,t){this.specificationVersion="v3",this.supportedUrls={"image/*":[/^https?:\/\/.*$/]},this.modelId=e,this.config=t}get provider(){return this.config.provider}async getArgs({prompt:e,maxOutputTokens:t,temperature:o,topP:n,topK:r,frequencyPenalty:i,presencePenalty:s,stopSequences:a,responseFormat:l,seed:p,tools:u,toolChoice:c,providerOptions:d}){var h,f,g,m,y;const v=[],C=null!=(h=await Tt({provider:"openai",providerOptions:d,schema:Kt}))?h:{},w=Ht(this.modelId),_=null!=(f=C.forceReasoning)?f:w.isReasoningModel;null!=r&&v.push({type:"unsupported",feature:"topK"});const{messages:E,warnings:b}=function({prompt:e,systemMessageMode:t="system"}){var o;const n=[],r=[];for(const{role:i,content:s}of e)switch(i){case"system":switch(t){case"system":n.push({role:"system",content:s});break;case"developer":n.push({role:"developer",content:s});break;case"remove":r.push({type:"other",message:"system messages are removed for this model"});break;default:throw new Error(`Unsupported system message mode: ${t}`)}break;case"user":if(1===s.length&&"text"===s[0].type){n.push({role:"user",content:s[0].text});break}n.push({role:"user",content:s.map(((e,t)=>{var o,n,r;switch(e.type){case"text":return{type:"text",text:e.text};case"file":if(e.mediaType.startsWith("image/")){const t="image/*"===e.mediaType?"image/jpeg":e.mediaType;return{type:"image_url",image_url:{url:e.data instanceof Vt?e.data.toString():`data:${t};base64,${De(e.data)}`,detail:null==(n=null==(o=e.providerOptions)?void 0:o.openai)?void 0:n.imageDetail}}}if(!e.mediaType.startsWith("audio/")){if("application/pdf"===e.mediaType){if(e.data instanceof Vt)throw new Ce({functionality:"PDF file parts with URLs"});return{type:"file",file:"string"==typeof e.data&&e.data.startsWith("file-")?{file_id:e.data}:{filename:null!=(r=e.filename)?r:`part-${t}.pdf`,file_data:`data:application/pdf;base64,${De(e.data)}`}}}throw new Ce({functionality:`file part media type ${e.mediaType}`})}if(e.data instanceof Vt)throw new Ce({functionality:"audio file parts with URLs"});switch(e.mediaType){case"audio/wav":return{type:"input_audio",input_audio:{data:De(e.data),format:"wav"}};case"audio/mp3":case"audio/mpeg":return{type:"input_audio",input_audio:{data:De(e.data),format:"mp3"}};default:throw new Ce({functionality:`audio content parts with media type ${e.mediaType}`})}}}))});break;case"assistant":{let e="";const t=[];for(const o of s)switch(o.type){case"text":e+=o.text;break;case"tool-call":t.push({id:o.toolCallId,type:"function",function:{name:o.toolName,arguments:JSON.stringify(o.input)}})}n.push({role:"assistant",content:e,tool_calls:t.length>0?t:void 0});break}case"tool":for(const e of s){if("tool-approval-response"===e.type)continue;const t=e.output;let r;switch(t.type){case"text":case"error-text":r=t.value;break;case"execution-denied":r=null!=(o=t.reason)?o:"Tool execution denied.";break;case"content":case"json":case"error-json":r=JSON.stringify(t.value)}n.push({role:"tool",tool_call_id:e.toolCallId,content:r})}break;default:throw new Error(`Unsupported role: ${i}`)}return{messages:n,warnings:r}}({prompt:e,systemMessageMode:null!=(g=C.systemMessageMode)?g:_?"developer":w.systemMessageMode});v.push(...b);const R=null==(m=C.strictJsonSchema)||m,S={model:this.modelId,logit_bias:C.logitBias,logprobs:!0===C.logprobs||"number"==typeof C.logprobs||void 0,top_logprobs:"number"==typeof C.logprobs?C.logprobs:"boolean"==typeof C.logprobs&&C.logprobs?0:void 0,user:C.user,parallel_tool_calls:C.parallelToolCalls,max_tokens:t,temperature:o,top_p:n,frequency_penalty:i,presence_penalty:s,response_format:"json"===(null==l?void 0:l.type)?null!=l.schema?{type:"json_schema",json_schema:{schema:l.schema,strict:R,name:null!=(y=l.name)?y:"response",description:l.description}}:{type:"json_object"}:void 0,stop:a,seed:p,verbosity:C.textVerbosity,max_completion_tokens:C.maxCompletionTokens,store:C.store,metadata:C.metadata,prediction:C.prediction,reasoning_effort:C.reasoningEffort,service_tier:C.serviceTier,prompt_cache_key:C.promptCacheKey,prompt_cache_retention:C.promptCacheRetention,safety_identifier:C.safetyIdentifier,messages:E};_?("none"===C.reasoningEffort&&w.supportsNonReasoningParameters||(null!=S.temperature&&(S.temperature=void 0,v.push({type:"unsupported",feature:"temperature",details:"temperature is not supported for reasoning models"})),null!=S.top_p&&(S.top_p=void 0,v.push({type:"unsupported",feature:"topP",details:"topP is not supported for reasoning models"})),null!=S.logprobs&&(S.logprobs=void 0,v.push({type:"other",message:"logprobs is not supported for reasoning models"}))),null!=S.frequency_penalty&&(S.frequency_penalty=void 0,v.push({type:"unsupported",feature:"frequencyPenalty",details:"frequencyPenalty is not supported for reasoning models"})),null!=S.presence_penalty&&(S.presence_penalty=void 0,v.push({type:"unsupported",feature:"presencePenalty",details:"presencePenalty is not supported for reasoning models"})),null!=S.logit_bias&&(S.logit_bias=void 0,v.push({type:"other",message:"logitBias is not supported for reasoning models"})),null!=S.top_logprobs&&(S.top_logprobs=void 0,v.push({type:"other",message:"topLogprobs is not supported for reasoning models"})),null!=S.max_tokens&&(null==S.max_completion_tokens&&(S.max_completion_tokens=S.max_tokens),S.max_tokens=void 0)):(this.modelId.startsWith("gpt-4o-search-preview")||this.modelId.startsWith("gpt-4o-mini-search-preview"))&&null!=S.temperature&&(S.temperature=void 0,v.push({type:"unsupported",feature:"temperature",details:"temperature is not supported for the search preview models and has been removed."})),"flex"!==C.serviceTier||w.supportsFlexProcessing||(v.push({type:"unsupported",feature:"serviceTier",details:"flex processing is only available for o3, o4-mini, and gpt-5 models"}),S.service_tier=void 0),"priority"!==C.serviceTier||w.supportsPriorityProcessing||(v.push({type:"unsupported",feature:"serviceTier",details:"priority processing is only available for supported models (gpt-4, gpt-5, gpt-5-mini, o3, o4-mini) and requires Enterprise access. gpt-5-nano is not supported"}),S.service_tier=void 0);const{tools:O,toolChoice:P,toolWarnings:A}=function({tools:e,toolChoice:t}){const o=[];if(null==(e=(null==e?void 0:e.length)?e:void 0))return{tools:void 0,toolChoice:void 0,toolWarnings:o};const n=[];for(const t of e)"function"===t.type?n.push({type:"function",function:{name:t.name,description:t.description,parameters:t.inputSchema,...null!=t.strict?{strict:t.strict}:{}}}):o.push({type:"unsupported",feature:`tool type: ${t.type}`});if(null==t)return{tools:n,toolChoice:void 0,toolWarnings:o};const r=t.type;switch(r){case"auto":case"none":case"required":return{tools:n,toolChoice:r,toolWarnings:o};case"tool":return{tools:n,toolChoice:{type:"function",function:{name:t.toolName}},toolWarnings:o};default:throw new Ce({functionality:`tool choice type: ${r}`})}}({tools:u,toolChoice:c});return{args:{...S,tools:O,tool_choice:P},warnings:[...v,...A]}}async doGenerate(e){var t,o,n,r,i,s,a;const{args:l,warnings:p}=await this.getArgs(e),{responseHeaders:u,value:c,rawValue:d}=await Nt({url:this.config.url({path:"/chat/completions",modelId:this.modelId}),headers:Se(this.config.headers(),e.headers),body:l,failedResponseHandler:Wt,successfulResponseHandler:Mt(zt),abortSignal:e.abortSignal,fetch:this.config.fetch}),h=c.choices[0],f=[],g=h.message.content;null!=g&&g.length>0&&f.push({type:"text",text:g});for(const e of null!=(t=h.message.tool_calls)?t:[])f.push({type:"tool-call",toolCallId:null!=(o=e.id)?o:Ve(),toolName:e.function.name,input:e.function.arguments});for(const e of null!=(n=h.message.annotations)?n:[])f.push({type:"source",sourceType:"url",id:Ve(),url:e.url_citation.url,title:e.url_citation.title});const m=null==(r=c.usage)?void 0:r.completion_tokens_details,y=(null==(i=c.usage)||i.prompt_tokens_details,{openai:{}});return null!=(null==m?void 0:m.accepted_prediction_tokens)&&(y.openai.acceptedPredictionTokens=null==m?void 0:m.accepted_prediction_tokens),null!=(null==m?void 0:m.rejected_prediction_tokens)&&(y.openai.rejectedPredictionTokens=null==m?void 0:m.rejected_prediction_tokens),null!=(null==(s=h.logprobs)?void 0:s.content)&&(y.openai.logprobs=h.logprobs.content),{content:f,finishReason:{unified:Yt(h.finish_reason),raw:null!=(a=h.finish_reason)?a:void 0},usage:Bt(c.usage),request:{body:l},response:{...Ut(c),headers:u,body:d},warnings:p,providerMetadata:y}}async doStream(e){const{args:t,warnings:o}=await this.getArgs(e),n={...t,stream:!0,stream_options:{include_usage:!0}},{responseHeaders:r,value:i}=await Nt({url:this.config.url({path:"/chat/completions",modelId:this.modelId}),headers:Se(this.config.headers(),e.headers),body:n,failedResponseHandler:Wt,successfulResponseHandler:Lt($t),abortSignal:e.abortSignal,fetch:this.config.fetch}),s=[];let a,l={unified:"other",raw:void 0},p=!1,u=!1;const c={openai:{}};return{stream:i.pipeThrough(new TransformStream({start(e){e.enqueue({type:"stream-start",warnings:o})},transform(t,o){var n,r,i,d,h,f,g,m,y,v,C,w,_,E,b,R,S;if(e.includeRawChunks&&o.enqueue({type:"raw",rawValue:t.rawValue}),!t.success)return l={unified:"error",raw:void 0},void o.enqueue({type:"error",error:t.error});const O=t.value;if("error"in O)return l={unified:"error",raw:void 0},void o.enqueue({type:"error",error:O.error});if(!p){const e=Ut(O);Object.values(e).some(Boolean)&&(p=!0,o.enqueue({type:"response-metadata",...Ut(O)}))}null!=O.usage&&(a=O.usage,null!=(null==(n=O.usage.completion_tokens_details)?void 0:n.accepted_prediction_tokens)&&(c.openai.acceptedPredictionTokens=null==(r=O.usage.completion_tokens_details)?void 0:r.accepted_prediction_tokens),null!=(null==(i=O.usage.completion_tokens_details)?void 0:i.rejected_prediction_tokens)&&(c.openai.rejectedPredictionTokens=null==(d=O.usage.completion_tokens_details)?void 0:d.rejected_prediction_tokens));const P=O.choices[0];if(null!=(null==P?void 0:P.finish_reason)&&(l={unified:Yt(P.finish_reason),raw:P.finish_reason}),null!=(null==(h=null==P?void 0:P.logprobs)?void 0:h.content)&&(c.openai.logprobs=P.logprobs.content),null==(null==P?void 0:P.delta))return;const A=P.delta;if(null!=A.content&&(u||(o.enqueue({type:"text-start",id:"0"}),u=!0),o.enqueue({type:"text-delta",id:"0",delta:A.content})),null!=A.tool_calls)for(const e of A.tool_calls){const t=e.index;if(null==s[t]){if("function"!==e.type)throw new K({data:e,message:"Expected 'function' type."});if(null==e.id)throw new K({data:e,message:"Expected 'id' to be a string."});if(null==(null==(f=e.function)?void 0:f.name))throw new K({data:e,message:"Expected 'function.name' to be a string."});o.enqueue({type:"tool-input-start",id:e.id,toolName:e.function.name}),s[t]={id:e.id,type:"function",function:{name:e.function.name,arguments:null!=(g=e.function.arguments)?g:""},hasFinished:!1};const n=s[t];null!=(null==(m=n.function)?void 0:m.name)&&null!=(null==(y=n.function)?void 0:y.arguments)&&(n.function.arguments.length>0&&o.enqueue({type:"tool-input-delta",id:n.id,delta:n.function.arguments}),Pt(n.function.arguments)&&(o.enqueue({type:"tool-input-end",id:n.id}),o.enqueue({type:"tool-call",toolCallId:null!=(v=n.id)?v:Ve(),toolName:n.function.name,input:n.function.arguments}),n.hasFinished=!0));continue}const n=s[t];n.hasFinished||(null!=(null==(C=e.function)?void 0:C.arguments)&&(n.function.arguments+=null!=(_=null==(w=e.function)?void 0:w.arguments)?_:""),o.enqueue({type:"tool-input-delta",id:n.id,delta:null!=(E=e.function.arguments)?E:""}),null!=(null==(b=n.function)?void 0:b.name)&&null!=(null==(R=n.function)?void 0:R.arguments)&&Pt(n.function.arguments)&&(o.enqueue({type:"tool-input-end",id:n.id}),o.enqueue({type:"tool-call",toolCallId:null!=(S=n.id)?S:Ve(),toolName:n.function.name,input:n.function.arguments}),n.hasFinished=!0))}if(null!=A.annotations)for(const e of A.annotations)o.enqueue({type:"source",sourceType:"url",id:Ve(),url:e.url_citation.url,title:e.url_citation.title})},flush(e){u&&e.enqueue({type:"text-end",id:"0"}),e.enqueue({type:"finish",finishReason:l,usage:Bt(a),...null!=c?{providerMetadata:c}:{}})}})),request:{body:n},response:{headers:r}}}};function Zt(e){var t,o,n,r;if(null==e)return{inputTokens:{total:void 0,noCache:void 0,cacheRead:void 0,cacheWrite:void 0},outputTokens:{total:void 0,text:void 0,reasoning:void 0},raw:void 0};const i=null!=(t=e.prompt_tokens)?t:0,s=null!=(o=e.completion_tokens)?o:0;return{inputTokens:{total:null!=(n=e.prompt_tokens)?n:void 0,noCache:i,cacheRead:void 0,cacheWrite:void 0},outputTokens:{total:null!=(r=e.completion_tokens)?r:void 0,text:s,reasoning:void 0},raw:e}}function Qt({id:e,model:t,created:o}){return{id:null!=e?e:void 0,modelId:null!=t?t:void 0,timestamp:null!=o?new Date(1e3*o):void 0}}function Xt(e){switch(e){case"stop":return"stop";case"length":return"length";case"content_filter":return"content-filter";case"function_call":case"tool_calls":return"tool-calls";default:return"other"}}var Jt=_t((()=>bt(kt.Ik({id:kt.Yj().nullish(),created:kt.ai().nullish(),model:kt.Yj().nullish(),choices:kt.YO(kt.Ik({text:kt.Yj(),finish_reason:kt.Yj(),logprobs:kt.Ik({tokens:kt.YO(kt.Yj()),token_logprobs:kt.YO(kt.ai()),top_logprobs:kt.YO(kt.g1(kt.Yj(),kt.ai())).nullish()}).nullish()})),usage:kt.Ik({prompt_tokens:kt.ai(),completion_tokens:kt.ai(),total_tokens:kt.ai()}).nullish()})))),eo=_t((()=>bt(kt.KC([kt.Ik({id:kt.Yj().nullish(),created:kt.ai().nullish(),model:kt.Yj().nullish(),choices:kt.YO(kt.Ik({text:kt.Yj(),finish_reason:kt.Yj().nullish(),index:kt.ai(),logprobs:kt.Ik({tokens:kt.YO(kt.Yj()),token_logprobs:kt.YO(kt.ai()),top_logprobs:kt.YO(kt.g1(kt.Yj(),kt.ai())).nullish()}).nullish()})),usage:kt.Ik({prompt_tokens:kt.ai(),completion_tokens:kt.ai(),total_tokens:kt.ai()}).nullish()}),jt])))),to=_t((()=>bt(kt.Ik({echo:kt.zM().optional(),logitBias:kt.g1(kt.Yj(),kt.ai()).optional(),suffix:kt.Yj().optional(),user:kt.Yj().optional(),logprobs:kt.KC([kt.zM(),kt.ai()]).optional()})))),oo=class{constructor(e,t){this.specificationVersion="v3",this.supportedUrls={},this.modelId=e,this.config=t}get providerOptionsName(){return this.config.provider.split(".")[0].trim()}get provider(){return this.config.provider}async getArgs({prompt:e,maxOutputTokens:t,temperature:o,topP:n,topK:r,frequencyPenalty:i,presencePenalty:s,stopSequences:a,responseFormat:l,tools:p,toolChoice:u,seed:c,providerOptions:d}){const h=[],f={...await Tt({provider:"openai",providerOptions:d,schema:to}),...await Tt({provider:this.providerOptionsName,providerOptions:d,schema:to})};null!=r&&h.push({type:"unsupported",feature:"topK"}),(null==p?void 0:p.length)&&h.push({type:"unsupported",feature:"tools"}),null!=u&&h.push({type:"unsupported",feature:"toolChoice"}),null!=l&&"text"!==l.type&&h.push({type:"unsupported",feature:"responseFormat",details:"JSON response format is not supported."});const{prompt:g,stopSequences:m}=function({prompt:e,user:t="user",assistant:o="assistant"}){let n="";"system"===e[0].role&&(n+=`${e[0].content}\n\n`,e=e.slice(1));for(const{role:r,content:i}of e)switch(r){case"system":throw new U({message:"Unexpected system message in prompt: ${content}",prompt:e});case"user":n+=`${t}:\n${i.map((e=>{if("text"===e.type)return e.text})).filter(Boolean).join("")}\n\n`;break;case"assistant":n+=`${o}:\n${i.map((e=>{switch(e.type){case"text":return e.text;case"tool-call":throw new Ce({functionality:"tool-call messages"})}})).join("")}\n\n`;break;case"tool":throw new Ce({functionality:"tool messages"});default:throw new Error(`Unsupported role: ${r}`)}return n+=`${o}:\n`,{prompt:n,stopSequences:[`\n${t}:`]}}({prompt:e}),y=[...null!=m?m:[],...null!=a?a:[]];return{args:{model:this.modelId,echo:f.echo,logit_bias:f.logitBias,logprobs:!0===(null==f?void 0:f.logprobs)?0:!1===(null==f?void 0:f.logprobs)||null==f?void 0:f.logprobs,suffix:f.suffix,user:f.user,max_tokens:t,temperature:o,top_p:n,frequency_penalty:i,presence_penalty:s,seed:c,prompt:g,stop:y.length>0?y:void 0},warnings:h}}async doGenerate(e){var t;const{args:o,warnings:n}=await this.getArgs(e),{responseHeaders:r,value:i,rawValue:s}=await Nt({url:this.config.url({path:"/completions",modelId:this.modelId}),headers:Se(this.config.headers(),e.headers),body:o,failedResponseHandler:Wt,successfulResponseHandler:Mt(Jt),abortSignal:e.abortSignal,fetch:this.config.fetch}),a=i.choices[0],l={openai:{}};return null!=a.logprobs&&(l.openai.logprobs=a.logprobs),{content:[{type:"text",text:a.text}],usage:Zt(i.usage),finishReason:{unified:Xt(a.finish_reason),raw:null!=(t=a.finish_reason)?t:void 0},request:{body:o},response:{...Qt(i),headers:r,body:s},providerMetadata:l,warnings:n}}async doStream(e){const{args:t,warnings:o}=await this.getArgs(e),n={...t,stream:!0,stream_options:{include_usage:!0}},{responseHeaders:r,value:i}=await Nt({url:this.config.url({path:"/completions",modelId:this.modelId}),headers:Se(this.config.headers(),e.headers),body:n,failedResponseHandler:Wt,successfulResponseHandler:Lt(eo),abortSignal:e.abortSignal,fetch:this.config.fetch});let s={unified:"other",raw:void 0};const a={openai:{}};let l,p=!0;return{stream:i.pipeThrough(new TransformStream({start(e){e.enqueue({type:"stream-start",warnings:o})},transform(t,o){if(e.includeRawChunks&&o.enqueue({type:"raw",rawValue:t.rawValue}),!t.success)return s={unified:"error",raw:void 0},void o.enqueue({type:"error",error:t.error});const n=t.value;if("error"in n)return s={unified:"error",raw:void 0},void o.enqueue({type:"error",error:n.error});p&&(p=!1,o.enqueue({type:"response-metadata",...Qt(n)}),o.enqueue({type:"text-start",id:"0"})),null!=n.usage&&(l=n.usage);const r=n.choices[0];null!=(null==r?void 0:r.finish_reason)&&(s={unified:Xt(r.finish_reason),raw:r.finish_reason}),null!=(null==r?void 0:r.logprobs)&&(a.openai.logprobs=r.logprobs),null!=(null==r?void 0:r.text)&&r.text.length>0&&o.enqueue({type:"text-delta",id:"0",delta:r.text})},flush(e){p||e.enqueue({type:"text-end",id:"0"}),e.enqueue({type:"finish",finishReason:s,providerMetadata:a,usage:Zt(l)})}})),request:{body:n},response:{headers:r}}}},no=_t((()=>bt(kt.Ik({dimensions:kt.ai().optional(),user:kt.Yj().optional()})))),ro=_t((()=>bt(kt.Ik({data:kt.YO(kt.Ik({embedding:kt.YO(kt.ai())})),usage:kt.Ik({prompt_tokens:kt.ai()}).nullish()})))),io=class{constructor(e,t){this.specificationVersion="v3",this.maxEmbeddingsPerCall=2048,this.supportsParallelCalls=!0,this.modelId=e,this.config=t}get provider(){return this.config.provider}async doEmbed({values:e,headers:t,abortSignal:o,providerOptions:n}){var r;if(e.length>this.maxEmbeddingsPerCall)throw new ce({provider:this.provider,modelId:this.modelId,maxEmbeddingsPerCall:this.maxEmbeddingsPerCall,values:e});const i=null!=(r=await Tt({provider:"openai",providerOptions:n,schema:no}))?r:{},{responseHeaders:s,value:a,rawValue:l}=await Nt({url:this.config.url({path:"/embeddings",modelId:this.modelId}),headers:Se(this.config.headers(),t),body:{model:this.modelId,input:e,encoding_format:"float",dimensions:i.dimensions,user:i.user},failedResponseHandler:Wt,successfulResponseHandler:Mt(ro),abortSignal:o,fetch:this.config.fetch});return{warnings:[],embeddings:a.data.map((e=>e.embedding)),usage:a.usage?{tokens:a.usage.prompt_tokens}:void 0,response:{headers:s,body:l}}}},so=_t((()=>bt(kt.Ik({created:kt.ai().nullish(),data:kt.YO(kt.Ik({b64_json:kt.Yj(),revised_prompt:kt.Yj().nullish()})),background:kt.Yj().nullish(),output_format:kt.Yj().nullish(),size:kt.Yj().nullish(),quality:kt.Yj().nullish(),usage:kt.Ik({input_tokens:kt.ai().nullish(),output_tokens:kt.ai().nullish(),total_tokens:kt.ai().nullish(),input_tokens_details:kt.Ik({image_tokens:kt.ai().nullish(),text_tokens:kt.ai().nullish()}).nullish()}).nullish()})))),ao={"dall-e-3":1,"dall-e-2":10,"gpt-image-1":10,"gpt-image-1-mini":10,"gpt-image-1.5":10},lo=["gpt-image-1-mini","gpt-image-1.5","gpt-image-1"],po=class{constructor(e,t){this.modelId=e,this.config=t,this.specificationVersion="v3"}get maxImagesPerCall(){var e;return null!=(e=ao[this.modelId])?e:1}get provider(){return this.config.provider}async doGenerate({prompt:e,files:t,mask:o,n,size:r,aspectRatio:i,seed:s,providerOptions:a,headers:l,abortSignal:p}){var u,c,d,h,f,g,m,y,v,C,w;const _=[];null!=i&&_.push({type:"unsupported",feature:"aspectRatio",details:"This model does not support aspect ratio. Use `size` instead."}),null!=s&&_.push({type:"unsupported",feature:"seed"});const E=null!=(d=null==(c=null==(u=this.config._internal)?void 0:u.currentDate)?void 0:c.call(u))?d:new Date;if(null!=t){const{value:i,responseHeaders:s}=await It({url:this.config.url({path:"/images/edits",modelId:this.modelId}),headers:Se(this.config.headers(),l),formData:Ne({model:this.modelId,prompt:e,image:await Promise.all(t.map((e=>"file"===e.type?new Blob([e.data instanceof Uint8Array?new Blob([e.data],{type:e.mediaType}):new Blob([Te(e.data)],{type:e.mediaType})],{type:e.mediaType}):Ge(e.url)))),mask:null!=o?await uo(o):void 0,n,size:r,...null!=(h=a.openai)?h:{}}),failedResponseHandler:Wt,successfulResponseHandler:Mt(so),abortSignal:p,fetch:this.config.fetch});return{images:i.data.map((e=>e.b64_json)),warnings:_,usage:null!=i.usage?{inputTokens:null!=(f=i.usage.input_tokens)?f:void 0,outputTokens:null!=(g=i.usage.output_tokens)?g:void 0,totalTokens:null!=(m=i.usage.total_tokens)?m:void 0}:void 0,response:{timestamp:E,modelId:this.modelId,headers:s},providerMetadata:{openai:{images:i.data.map((e=>{var t,o,n,r,s;return{...e.revised_prompt?{revisedPrompt:e.revised_prompt}:{},created:null!=(t=i.created)?t:void 0,size:null!=(o=i.size)?o:void 0,quality:null!=(n=i.quality)?n:void 0,background:null!=(r=i.background)?r:void 0,outputFormat:null!=(s=i.output_format)?s:void 0}}))}}}}const{value:b,responseHeaders:R}=await Nt({url:this.config.url({path:"/images/generations",modelId:this.modelId}),headers:Se(this.config.headers(),l),body:{model:this.modelId,prompt:e,n,size:r,...null!=(y=a.openai)?y:{},...(S=this.modelId,lo.some((e=>S.startsWith(e)))?{}:{response_format:"b64_json"})},failedResponseHandler:Wt,successfulResponseHandler:Mt(so),abortSignal:p,fetch:this.config.fetch});var S;return{images:b.data.map((e=>e.b64_json)),warnings:_,usage:null!=b.usage?{inputTokens:null!=(v=b.usage.input_tokens)?v:void 0,outputTokens:null!=(C=b.usage.output_tokens)?C:void 0,totalTokens:null!=(w=b.usage.total_tokens)?w:void 0}:void 0,response:{timestamp:E,modelId:this.modelId,headers:R},providerMetadata:{openai:{images:b.data.map((e=>{var t,o,n,r,i;return{...e.revised_prompt?{revisedPrompt:e.revised_prompt}:{},created:null!=(t=b.created)?t:void 0,size:null!=(o=b.size)?o:void 0,quality:null!=(n=b.quality)?n:void 0,background:null!=(r=b.background)?r:void 0,outputFormat:null!=(i=b.output_format)?i:void 0}}))}}}}};async function uo(e){if(!e)return;if("url"===e.type)return Ge(e.url);const t=e.data instanceof Uint8Array?e.data:Te(e.data);return new Blob([t],{type:e.mediaType})}var co=_t((()=>bt(kt.Ik({callId:kt.Yj(),operation:kt.gM("type",[kt.Ik({type:kt.eu("create_file"),path:kt.Yj(),diff:kt.Yj()}),kt.Ik({type:kt.eu("delete_file"),path:kt.Yj()}),kt.Ik({type:kt.eu("update_file"),path:kt.Yj(),diff:kt.Yj()})])})))),ho=_t((()=>bt(kt.Ik({status:kt.k5(["completed","failed"]),output:kt.Yj().optional()})))),fo=(_t((()=>bt(kt.Ik({})))),Ft({id:"openai.apply_patch",inputSchema:co,outputSchema:ho})),go=_t((()=>bt(kt.Ik({code:kt.Yj().nullish(),containerId:kt.Yj()})))),mo=_t((()=>bt(kt.Ik({outputs:kt.YO(kt.gM("type",[kt.Ik({type:kt.eu("logs"),logs:kt.Yj()}),kt.Ik({type:kt.eu("image"),url:kt.Yj()})])).nullish()})))),yo=_t((()=>bt(kt.Ik({container:kt.KC([kt.Yj(),kt.Ik({fileIds:kt.YO(kt.Yj()).optional()})]).optional()})))),vo=Ft({id:"openai.code_interpreter",inputSchema:go,outputSchema:mo}),Co=kt.Ik({key:kt.Yj(),type:kt.k5(["eq","ne","gt","gte","lt","lte","in","nin"]),value:kt.KC([kt.Yj(),kt.ai(),kt.zM(),kt.YO(kt.Yj())])}),wo=kt.Ik({type:kt.k5(["and","or"]),filters:kt.YO(kt.KC([Co,kt.RZ((()=>wo))]))}),_o=_t((()=>bt(kt.Ik({vectorStoreIds:kt.YO(kt.Yj()),maxNumResults:kt.ai().optional(),ranking:kt.Ik({ranker:kt.Yj().optional(),scoreThreshold:kt.ai().optional()}).optional(),filters:kt.KC([Co,wo]).optional()})))),Eo=_t((()=>bt(kt.Ik({queries:kt.YO(kt.Yj()),results:kt.YO(kt.Ik({attributes:kt.g1(kt.Yj(),kt.L5()),fileId:kt.Yj(),filename:kt.Yj(),score:kt.ai(),text:kt.Yj()})).nullable()})))),bo=Ft({id:"openai.file_search",inputSchema:kt.Ik({}),outputSchema:Eo}),Ro=_t((()=>bt(kt.Ik({background:kt.k5(["auto","opaque","transparent"]).optional(),inputFidelity:kt.k5(["low","high"]).optional(),inputImageMask:kt.Ik({fileId:kt.Yj().optional(),imageUrl:kt.Yj().optional()}).optional(),model:kt.Yj().optional(),moderation:kt.k5(["auto"]).optional(),outputCompression:kt.ai().int().min(0).max(100).optional(),outputFormat:kt.k5(["png","jpeg","webp"]).optional(),partialImages:kt.ai().int().min(0).max(3).optional(),quality:kt.k5(["auto","low","medium","high"]).optional(),size:kt.k5(["1024x1024","1024x1536","1536x1024","auto"]).optional()}).strict()))),So=Ft({id:"openai.image_generation",inputSchema:_t((()=>bt(kt.Ik({})))),outputSchema:_t((()=>bt(kt.Ik({result:kt.Yj()}))))}),Oo=_t((()=>bt(kt.Ik({action:kt.Ik({type:kt.eu("exec"),command:kt.YO(kt.Yj()),timeoutMs:kt.ai().optional(),user:kt.Yj().optional(),workingDirectory:kt.Yj().optional(),env:kt.g1(kt.Yj(),kt.Yj()).optional()})})))),Po=_t((()=>bt(kt.Ik({output:kt.Yj()})))),Ao=Ft({id:"openai.local_shell",inputSchema:Oo,outputSchema:Po}),To=_t((()=>bt(kt.Ik({action:kt.Ik({commands:kt.YO(kt.Yj()),timeoutMs:kt.ai().optional(),maxOutputLength:kt.ai().optional()})})))),Do=_t((()=>bt(kt.Ik({output:kt.YO(kt.Ik({stdout:kt.Yj(),stderr:kt.Yj(),outcome:kt.gM("type",[kt.Ik({type:kt.eu("timeout")}),kt.Ik({type:kt.eu("exit"),exitCode:kt.ai()})])}))})))),No=Ft({id:"openai.shell",inputSchema:To,outputSchema:Do}),Io=_t((()=>bt(kt.Ik({externalWebAccess:kt.zM().optional(),filters:kt.Ik({allowedDomains:kt.YO(kt.Yj()).optional()}).optional(),searchContextSize:kt.k5(["low","medium","high"]).optional(),userLocation:kt.Ik({type:kt.eu("approximate"),country:kt.Yj().optional(),city:kt.Yj().optional(),region:kt.Yj().optional(),timezone:kt.Yj().optional()}).optional()})))),xo=Ft({id:"openai.web_search",inputSchema:_t((()=>bt(kt.Ik({})))),outputSchema:_t((()=>bt(kt.Ik({action:kt.gM("type",[kt.Ik({type:kt.eu("search"),query:kt.Yj().optional()}),kt.Ik({type:kt.eu("openPage"),url:kt.Yj().nullish()}),kt.Ik({type:kt.eu("findInPage"),url:kt.Yj().nullish(),pattern:kt.Yj().nullish()})]),sources:kt.YO(kt.gM("type",[kt.Ik({type:kt.eu("url"),url:kt.Yj()}),kt.Ik({type:kt.eu("api"),name:kt.Yj()})])).optional()}))))}),Fo=_t((()=>bt(kt.Ik({searchContextSize:kt.k5(["low","medium","high"]).optional(),userLocation:kt.Ik({type:kt.eu("approximate"),country:kt.Yj().optional(),city:kt.Yj().optional(),region:kt.Yj().optional(),timezone:kt.Yj().optional()}).optional()})))),Lo=Ft({id:"openai.web_search_preview",inputSchema:_t((()=>bt(kt.Ik({})))),outputSchema:_t((()=>bt(kt.Ik({action:kt.gM("type",[kt.Ik({type:kt.eu("search"),query:kt.Yj().optional()}),kt.Ik({type:kt.eu("openPage"),url:kt.Yj().nullish()}),kt.Ik({type:kt.eu("findInPage"),url:kt.Yj().nullish(),pattern:kt.Yj().nullish()})])}))))}),Mo=kt.RZ((()=>kt.KC([kt.Yj(),kt.ai(),kt.zM(),kt.ch(),kt.YO(Mo),kt.g1(kt.Yj(),Mo)]))),ko=_t((()=>bt(kt.Ik({serverLabel:kt.Yj(),allowedTools:kt.KC([kt.YO(kt.Yj()),kt.Ik({readOnly:kt.zM().optional(),toolNames:kt.YO(kt.Yj()).optional()})]).optional(),authorization:kt.Yj().optional(),connectorId:kt.Yj().optional(),headers:kt.g1(kt.Yj(),kt.Yj()).optional(),requireApproval:kt.KC([kt.k5(["always","never"]),kt.Ik({never:kt.Ik({toolNames:kt.YO(kt.Yj()).optional()}).optional()})]).optional(),serverDescription:kt.Yj().optional(),serverUrl:kt.Yj().optional()}).refine((e=>null!=e.serverUrl||null!=e.connectorId),"One of serverUrl or connectorId must be provided.")))),Go=Ft({id:"openai.mcp",inputSchema:_t((()=>bt(kt.Ik({})))),outputSchema:_t((()=>bt(kt.Ik({type:kt.eu("call"),serverLabel:kt.Yj(),name:kt.Yj(),arguments:kt.Yj(),output:kt.Yj().nullish(),error:kt.KC([kt.Yj(),Mo]).optional()}))))}),Vo={applyPatch:fo,codeInterpreter:(e={})=>vo(e),fileSearch:bo,imageGeneration:(e={})=>So(e),localShell:Ao,shell:No,webSearchPreview:Lo,webSearch:(e={})=>xo(e),mcp:e=>Go(e)};function jo(e){var t,o,n,r;if(null==e)return{inputTokens:{total:void 0,noCache:void 0,cacheRead:void 0,cacheWrite:void 0},outputTokens:{total:void 0,text:void 0,reasoning:void 0},raw:void 0};const i=e.input_tokens,s=e.output_tokens,a=null!=(o=null==(t=e.input_tokens_details)?void 0:t.cached_tokens)?o:0,l=null!=(r=null==(n=e.output_tokens_details)?void 0:n.reasoning_tokens)?r:0;return{inputTokens:{total:i,noCache:i-a,cacheRead:a,cacheWrite:void 0},outputTokens:{total:s,text:s-l,reasoning:l},raw:e}}function Wo(e,t){return!!t&&t.some((t=>e.startsWith(t)))}var Ho=kt.Ik({itemId:kt.Yj().nullish(),reasoningEncryptedContent:kt.Yj().nullish()});function Bo({finishReason:e,hasFunctionCall:t}){switch(e){case void 0:case null:return t?"tool-calls":"stop";case"max_output_tokens":return"length";case"content_filter":return"content-filter";default:return t?"tool-calls":"other"}}var Uo=_t((()=>bt(kt.KC([kt.Ik({type:kt.eu("response.output_text.delta"),item_id:kt.Yj(),delta:kt.Yj(),logprobs:kt.YO(kt.Ik({token:kt.Yj(),logprob:kt.ai(),top_logprobs:kt.YO(kt.Ik({token:kt.Yj(),logprob:kt.ai()}))})).nullish()}),kt.Ik({type:kt.k5(["response.completed","response.incomplete"]),response:kt.Ik({incomplete_details:kt.Ik({reason:kt.Yj()}).nullish(),usage:kt.Ik({input_tokens:kt.ai(),input_tokens_details:kt.Ik({cached_tokens:kt.ai().nullish()}).nullish(),output_tokens:kt.ai(),output_tokens_details:kt.Ik({reasoning_tokens:kt.ai().nullish()}).nullish()}),service_tier:kt.Yj().nullish()})}),kt.Ik({type:kt.eu("response.created"),response:kt.Ik({id:kt.Yj(),created_at:kt.ai(),model:kt.Yj(),service_tier:kt.Yj().nullish()})}),kt.Ik({type:kt.eu("response.output_item.added"),output_index:kt.ai(),item:kt.gM("type",[kt.Ik({type:kt.eu("message"),id:kt.Yj()}),kt.Ik({type:kt.eu("reasoning"),id:kt.Yj(),encrypted_content:kt.Yj().nullish()}),kt.Ik({type:kt.eu("function_call"),id:kt.Yj(),call_id:kt.Yj(),name:kt.Yj(),arguments:kt.Yj()}),kt.Ik({type:kt.eu("web_search_call"),id:kt.Yj(),status:kt.Yj()}),kt.Ik({type:kt.eu("computer_call"),id:kt.Yj(),status:kt.Yj()}),kt.Ik({type:kt.eu("file_search_call"),id:kt.Yj()}),kt.Ik({type:kt.eu("image_generation_call"),id:kt.Yj()}),kt.Ik({type:kt.eu("code_interpreter_call"),id:kt.Yj(),container_id:kt.Yj(),code:kt.Yj().nullable(),outputs:kt.YO(kt.gM("type",[kt.Ik({type:kt.eu("logs"),logs:kt.Yj()}),kt.Ik({type:kt.eu("image"),url:kt.Yj()})])).nullable(),status:kt.Yj()}),kt.Ik({type:kt.eu("mcp_call"),id:kt.Yj(),status:kt.Yj(),approval_request_id:kt.Yj().nullish()}),kt.Ik({type:kt.eu("mcp_list_tools"),id:kt.Yj()}),kt.Ik({type:kt.eu("mcp_approval_request"),id:kt.Yj()}),kt.Ik({type:kt.eu("apply_patch_call"),id:kt.Yj(),call_id:kt.Yj(),status:kt.k5(["in_progress","completed"]),operation:kt.gM("type",[kt.Ik({type:kt.eu("create_file"),path:kt.Yj(),diff:kt.Yj()}),kt.Ik({type:kt.eu("delete_file"),path:kt.Yj()}),kt.Ik({type:kt.eu("update_file"),path:kt.Yj(),diff:kt.Yj()})])}),kt.Ik({type:kt.eu("shell_call"),id:kt.Yj(),call_id:kt.Yj(),status:kt.k5(["in_progress","completed","incomplete"]),action:kt.Ik({commands:kt.YO(kt.Yj())})})])}),kt.Ik({type:kt.eu("response.output_item.done"),output_index:kt.ai(),item:kt.gM("type",[kt.Ik({type:kt.eu("message"),id:kt.Yj()}),kt.Ik({type:kt.eu("reasoning"),id:kt.Yj(),encrypted_content:kt.Yj().nullish()}),kt.Ik({type:kt.eu("function_call"),id:kt.Yj(),call_id:kt.Yj(),name:kt.Yj(),arguments:kt.Yj(),status:kt.eu("completed")}),kt.Ik({type:kt.eu("code_interpreter_call"),id:kt.Yj(),code:kt.Yj().nullable(),container_id:kt.Yj(),outputs:kt.YO(kt.gM("type",[kt.Ik({type:kt.eu("logs"),logs:kt.Yj()}),kt.Ik({type:kt.eu("image"),url:kt.Yj()})])).nullable()}),kt.Ik({type:kt.eu("image_generation_call"),id:kt.Yj(),result:kt.Yj()}),kt.Ik({type:kt.eu("web_search_call"),id:kt.Yj(),status:kt.Yj(),action:kt.gM("type",[kt.Ik({type:kt.eu("search"),query:kt.Yj().nullish(),sources:kt.YO(kt.gM("type",[kt.Ik({type:kt.eu("url"),url:kt.Yj()}),kt.Ik({type:kt.eu("api"),name:kt.Yj()})])).nullish()}),kt.Ik({type:kt.eu("open_page"),url:kt.Yj().nullish()}),kt.Ik({type:kt.eu("find_in_page"),url:kt.Yj().nullish(),pattern:kt.Yj().nullish()})])}),kt.Ik({type:kt.eu("file_search_call"),id:kt.Yj(),queries:kt.YO(kt.Yj()),results:kt.YO(kt.Ik({attributes:kt.g1(kt.Yj(),kt.KC([kt.Yj(),kt.ai(),kt.zM()])),file_id:kt.Yj(),filename:kt.Yj(),score:kt.ai(),text:kt.Yj()})).nullish()}),kt.Ik({type:kt.eu("local_shell_call"),id:kt.Yj(),call_id:kt.Yj(),action:kt.Ik({type:kt.eu("exec"),command:kt.YO(kt.Yj()),timeout_ms:kt.ai().optional(),user:kt.Yj().optional(),working_directory:kt.Yj().optional(),env:kt.g1(kt.Yj(),kt.Yj()).optional()})}),kt.Ik({type:kt.eu("computer_call"),id:kt.Yj(),status:kt.eu("completed")}),kt.Ik({type:kt.eu("mcp_call"),id:kt.Yj(),status:kt.Yj(),arguments:kt.Yj(),name:kt.Yj(),server_label:kt.Yj(),output:kt.Yj().nullish(),error:kt.KC([kt.Yj(),kt.Ik({type:kt.Yj().optional(),code:kt.KC([kt.ai(),kt.Yj()]).optional(),message:kt.Yj().optional()}).loose()]).nullish(),approval_request_id:kt.Yj().nullish()}),kt.Ik({type:kt.eu("mcp_list_tools"),id:kt.Yj(),server_label:kt.Yj(),tools:kt.YO(kt.Ik({name:kt.Yj(),description:kt.Yj().optional(),input_schema:kt.bz(),annotations:kt.g1(kt.Yj(),kt.L5()).optional()})),error:kt.KC([kt.Yj(),kt.Ik({type:kt.Yj().optional(),code:kt.KC([kt.ai(),kt.Yj()]).optional(),message:kt.Yj().optional()}).loose()]).optional()}),kt.Ik({type:kt.eu("mcp_approval_request"),id:kt.Yj(),server_label:kt.Yj(),name:kt.Yj(),arguments:kt.Yj(),approval_request_id:kt.Yj().optional()}),kt.Ik({type:kt.eu("apply_patch_call"),id:kt.Yj(),call_id:kt.Yj(),status:kt.k5(["in_progress","completed"]),operation:kt.gM("type",[kt.Ik({type:kt.eu("create_file"),path:kt.Yj(),diff:kt.Yj()}),kt.Ik({type:kt.eu("delete_file"),path:kt.Yj()}),kt.Ik({type:kt.eu("update_file"),path:kt.Yj(),diff:kt.Yj()})])}),kt.Ik({type:kt.eu("shell_call"),id:kt.Yj(),call_id:kt.Yj(),status:kt.k5(["in_progress","completed","incomplete"]),action:kt.Ik({commands:kt.YO(kt.Yj())})})])}),kt.Ik({type:kt.eu("response.function_call_arguments.delta"),item_id:kt.Yj(),output_index:kt.ai(),delta:kt.Yj()}),kt.Ik({type:kt.eu("response.image_generation_call.partial_image"),item_id:kt.Yj(),output_index:kt.ai(),partial_image_b64:kt.Yj()}),kt.Ik({type:kt.eu("response.code_interpreter_call_code.delta"),item_id:kt.Yj(),output_index:kt.ai(),delta:kt.Yj()}),kt.Ik({type:kt.eu("response.code_interpreter_call_code.done"),item_id:kt.Yj(),output_index:kt.ai(),code:kt.Yj()}),kt.Ik({type:kt.eu("response.output_text.annotation.added"),annotation:kt.gM("type",[kt.Ik({type:kt.eu("url_citation"),start_index:kt.ai(),end_index:kt.ai(),url:kt.Yj(),title:kt.Yj()}),kt.Ik({type:kt.eu("file_citation"),file_id:kt.Yj(),filename:kt.Yj(),index:kt.ai()}),kt.Ik({type:kt.eu("container_file_citation"),container_id:kt.Yj(),file_id:kt.Yj(),filename:kt.Yj(),start_index:kt.ai(),end_index:kt.ai()}),kt.Ik({type:kt.eu("file_path"),file_id:kt.Yj(),index:kt.ai()})])}),kt.Ik({type:kt.eu("response.reasoning_summary_part.added"),item_id:kt.Yj(),summary_index:kt.ai()}),kt.Ik({type:kt.eu("response.reasoning_summary_text.delta"),item_id:kt.Yj(),summary_index:kt.ai(),delta:kt.Yj()}),kt.Ik({type:kt.eu("response.reasoning_summary_part.done"),item_id:kt.Yj(),summary_index:kt.ai()}),kt.Ik({type:kt.eu("response.apply_patch_call_operation_diff.delta"),item_id:kt.Yj(),output_index:kt.ai(),delta:kt.Yj(),obfuscation:kt.Yj().nullish()}),kt.Ik({type:kt.eu("response.apply_patch_call_operation_diff.done"),item_id:kt.Yj(),output_index:kt.ai(),diff:kt.Yj()}),kt.Ik({type:kt.eu("error"),sequence_number:kt.ai(),error:kt.Ik({type:kt.Yj(),code:kt.Yj(),message:kt.Yj(),param:kt.Yj().nullish()})}),kt.Ik({type:kt.Yj()}).loose().transform((e=>({type:"unknown_chunk",message:e.type})))])))),Yo=_t((()=>bt(kt.Ik({id:kt.Yj().optional(),created_at:kt.ai().optional(),error:kt.Ik({message:kt.Yj(),type:kt.Yj(),param:kt.Yj().nullish(),code:kt.Yj()}).nullish(),model:kt.Yj().optional(),output:kt.YO(kt.gM("type",[kt.Ik({type:kt.eu("message"),role:kt.eu("assistant"),id:kt.Yj(),content:kt.YO(kt.Ik({type:kt.eu("output_text"),text:kt.Yj(),logprobs:kt.YO(kt.Ik({token:kt.Yj(),logprob:kt.ai(),top_logprobs:kt.YO(kt.Ik({token:kt.Yj(),logprob:kt.ai()}))})).nullish(),annotations:kt.YO(kt.gM("type",[kt.Ik({type:kt.eu("url_citation"),start_index:kt.ai(),end_index:kt.ai(),url:kt.Yj(),title:kt.Yj()}),kt.Ik({type:kt.eu("file_citation"),file_id:kt.Yj(),filename:kt.Yj(),index:kt.ai()}),kt.Ik({type:kt.eu("container_file_citation"),container_id:kt.Yj(),file_id:kt.Yj(),filename:kt.Yj(),start_index:kt.ai(),end_index:kt.ai()}),kt.Ik({type:kt.eu("file_path"),file_id:kt.Yj(),index:kt.ai()})]))}))}),kt.Ik({type:kt.eu("web_search_call"),id:kt.Yj(),status:kt.Yj(),action:kt.gM("type",[kt.Ik({type:kt.eu("search"),query:kt.Yj().nullish(),sources:kt.YO(kt.gM("type",[kt.Ik({type:kt.eu("url"),url:kt.Yj()}),kt.Ik({type:kt.eu("api"),name:kt.Yj()})])).nullish()}),kt.Ik({type:kt.eu("open_page"),url:kt.Yj().nullish()}),kt.Ik({type:kt.eu("find_in_page"),url:kt.Yj().nullish(),pattern:kt.Yj().nullish()})])}),kt.Ik({type:kt.eu("file_search_call"),id:kt.Yj(),queries:kt.YO(kt.Yj()),results:kt.YO(kt.Ik({attributes:kt.g1(kt.Yj(),kt.KC([kt.Yj(),kt.ai(),kt.zM()])),file_id:kt.Yj(),filename:kt.Yj(),score:kt.ai(),text:kt.Yj()})).nullish()}),kt.Ik({type:kt.eu("code_interpreter_call"),id:kt.Yj(),code:kt.Yj().nullable(),container_id:kt.Yj(),outputs:kt.YO(kt.gM("type",[kt.Ik({type:kt.eu("logs"),logs:kt.Yj()}),kt.Ik({type:kt.eu("image"),url:kt.Yj()})])).nullable()}),kt.Ik({type:kt.eu("image_generation_call"),id:kt.Yj(),result:kt.Yj()}),kt.Ik({type:kt.eu("local_shell_call"),id:kt.Yj(),call_id:kt.Yj(),action:kt.Ik({type:kt.eu("exec"),command:kt.YO(kt.Yj()),timeout_ms:kt.ai().optional(),user:kt.Yj().optional(),working_directory:kt.Yj().optional(),env:kt.g1(kt.Yj(),kt.Yj()).optional()})}),kt.Ik({type:kt.eu("function_call"),call_id:kt.Yj(),name:kt.Yj(),arguments:kt.Yj(),id:kt.Yj()}),kt.Ik({type:kt.eu("computer_call"),id:kt.Yj(),status:kt.Yj().optional()}),kt.Ik({type:kt.eu("reasoning"),id:kt.Yj(),encrypted_content:kt.Yj().nullish(),summary:kt.YO(kt.Ik({type:kt.eu("summary_text"),text:kt.Yj()}))}),kt.Ik({type:kt.eu("mcp_call"),id:kt.Yj(),status:kt.Yj(),arguments:kt.Yj(),name:kt.Yj(),server_label:kt.Yj(),output:kt.Yj().nullish(),error:kt.KC([kt.Yj(),kt.Ik({type:kt.Yj().optional(),code:kt.KC([kt.ai(),kt.Yj()]).optional(),message:kt.Yj().optional()}).loose()]).nullish(),approval_request_id:kt.Yj().nullish()}),kt.Ik({type:kt.eu("mcp_list_tools"),id:kt.Yj(),server_label:kt.Yj(),tools:kt.YO(kt.Ik({name:kt.Yj(),description:kt.Yj().optional(),input_schema:kt.bz(),annotations:kt.g1(kt.Yj(),kt.L5()).optional()})),error:kt.KC([kt.Yj(),kt.Ik({type:kt.Yj().optional(),code:kt.KC([kt.ai(),kt.Yj()]).optional(),message:kt.Yj().optional()}).loose()]).optional()}),kt.Ik({type:kt.eu("mcp_approval_request"),id:kt.Yj(),server_label:kt.Yj(),name:kt.Yj(),arguments:kt.Yj(),approval_request_id:kt.Yj().optional()}),kt.Ik({type:kt.eu("apply_patch_call"),id:kt.Yj(),call_id:kt.Yj(),status:kt.k5(["in_progress","completed"]),operation:kt.gM("type",[kt.Ik({type:kt.eu("create_file"),path:kt.Yj(),diff:kt.Yj()}),kt.Ik({type:kt.eu("delete_file"),path:kt.Yj()}),kt.Ik({type:kt.eu("update_file"),path:kt.Yj(),diff:kt.Yj()})])}),kt.Ik({type:kt.eu("shell_call"),id:kt.Yj(),call_id:kt.Yj(),status:kt.k5(["in_progress","completed","incomplete"]),action:kt.Ik({commands:kt.YO(kt.Yj())})})])).optional(),service_tier:kt.Yj().nullish(),incomplete_details:kt.Ik({reason:kt.Yj()}).nullish(),usage:kt.Ik({input_tokens:kt.ai(),input_tokens_details:kt.Ik({cached_tokens:kt.ai().nullish()}).nullish(),output_tokens:kt.ai(),output_tokens_details:kt.Ik({reasoning_tokens:kt.ai().nullish()}).nullish()}).optional()})))),zo=_t((()=>bt(kt.Ik({conversation:kt.Yj().nullish(),include:kt.YO(kt.k5(["reasoning.encrypted_content","file_search_call.results","message.output_text.logprobs"])).nullish(),instructions:kt.Yj().nullish(),logprobs:kt.KC([kt.zM(),kt.ai().min(1).max(20)]).optional(),maxToolCalls:kt.ai().nullish(),metadata:kt.bz().nullish(),parallelToolCalls:kt.zM().nullish(),previousResponseId:kt.Yj().nullish(),promptCacheKey:kt.Yj().nullish(),promptCacheRetention:kt.k5(["in_memory","24h"]).nullish(),reasoningEffort:kt.Yj().nullish(),reasoningSummary:kt.Yj().nullish(),safetyIdentifier:kt.Yj().nullish(),serviceTier:kt.k5(["auto","flex","priority","default"]).nullish(),store:kt.zM().nullish(),strictJsonSchema:kt.zM().nullish(),textVerbosity:kt.k5(["low","medium","high"]).nullish(),truncation:kt.k5(["auto","disabled"]).nullish(),user:kt.Yj().nullish(),systemMessageMode:kt.k5(["system","developer","remove"]).optional(),forceReasoning:kt.zM().optional()}))));function $o(e){var t,o;const n={};for(const r of e)if("assistant"===r.role)for(const e of r.content){if("tool-call"!==e.type)continue;const r=null==(o=null==(t=e.providerOptions)?void 0:t.openai)?void 0:o.approvalRequestId;null!=r&&(n[r]=e.toolCallId)}return n}var Ko=class{constructor(e,t){this.specificationVersion="v3",this.supportedUrls={"image/*":[/^https?:\/\/.*$/],"application/pdf":[/^https?:\/\/.*$/]},this.modelId=e,this.config=t}get provider(){return this.config.provider}async getArgs({maxOutputTokens:e,temperature:t,stopSequences:o,topP:n,topK:r,presencePenalty:i,frequencyPenalty:s,seed:a,prompt:l,providerOptions:p,tools:u,toolChoice:c,responseFormat:d}){var h,f,g,m,y,v;const C=[],w=Ht(this.modelId);null!=r&&C.push({type:"unsupported",feature:"topK"}),null!=a&&C.push({type:"unsupported",feature:"seed"}),null!=i&&C.push({type:"unsupported",feature:"presencePenalty"}),null!=s&&C.push({type:"unsupported",feature:"frequencyPenalty"}),null!=o&&C.push({type:"unsupported",feature:"stopSequences"});const _=this.config.provider.includes("azure")?"azure":"openai";let E=await Tt({provider:_,providerOptions:p,schema:zo});null==E&&"openai"!==_&&(E=await Tt({provider:"openai",providerOptions:p,schema:zo}));const b=null!=(h=null==E?void 0:E.forceReasoning)?h:w.isReasoningModel;(null==E?void 0:E.conversation)&&(null==E?void 0:E.previousResponseId)&&C.push({type:"unsupported",feature:"conversation",details:"conversation and previousResponseId cannot be used together"});const R=function({tools:e=[],providerToolNames:t}){const o={},n={};for(const r of e)if("provider"===r.type&&r.id in t){const e=t[r.id];o[r.name]=e,n[e]=r.name}return{toProviderToolName:e=>{var t;return null!=(t=o[e])?t:e},toCustomToolName:e=>{var t;return null!=(t=n[e])?t:e}}}({tools:u,providerToolNames:{"openai.code_interpreter":"code_interpreter","openai.file_search":"file_search","openai.image_generation":"image_generation","openai.local_shell":"local_shell","openai.shell":"shell","openai.web_search":"web_search","openai.web_search_preview":"web_search_preview","openai.mcp":"mcp","openai.apply_patch":"apply_patch"}}),{input:S,warnings:O}=await async function({prompt:e,toolNameMapping:t,systemMessageMode:o,providerOptionsName:n,fileIdPrefixes:r,store:i,hasLocalShellTool:s=!1,hasShellTool:a=!1,hasApplyPatchTool:l=!1}){var p,u,c,d,h,f,g,m,y,v,C,w,_;const E=[],b=[],R=new Set;for(const{role:S,content:O}of e)switch(S){case"system":switch(o){case"system":E.push({role:"system",content:O});break;case"developer":E.push({role:"developer",content:O});break;case"remove":b.push({type:"other",message:"system messages are removed for this model"});break;default:throw new Error(`Unsupported system message mode: ${o}`)}break;case"user":E.push({role:"user",content:O.map(((e,t)=>{var o,i,s;switch(e.type){case"text":return{type:"input_text",text:e.text};case"file":if(e.mediaType.startsWith("image/")){const t="image/*"===e.mediaType?"image/jpeg":e.mediaType;return{type:"input_image",...e.data instanceof Vt?{image_url:e.data.toString()}:"string"==typeof e.data&&Wo(e.data,r)?{file_id:e.data}:{image_url:`data:${t};base64,${De(e.data)}`},detail:null==(i=null==(o=e.providerOptions)?void 0:o[n])?void 0:i.imageDetail}}if("application/pdf"===e.mediaType)return e.data instanceof Vt?{type:"input_file",file_url:e.data.toString()}:{type:"input_file",..."string"==typeof e.data&&Wo(e.data,r)?{file_id:e.data}:{filename:null!=(s=e.filename)?s:`part-${t}.pdf`,file_data:`data:application/pdf;base64,${De(e.data)}`}};throw new Ce({functionality:`file part media type ${e.mediaType}`})}}))});break;case"assistant":{const e={};for(const o of O)switch(o.type){case"text":{const e=null==(u=null==(p=o.providerOptions)?void 0:p[n])?void 0:u.itemId;if(i&&null!=e){E.push({type:"item_reference",id:e});break}E.push({role:"assistant",content:[{type:"output_text",text:o.text}],id:e});break}case"tool-call":{const e=null!=(g=null==(d=null==(c=o.providerOptions)?void 0:c[n])?void 0:d.itemId)?g:null==(f=null==(h=o.providerMetadata)?void 0:h[n])?void 0:f.itemId;if(o.providerExecuted){i&&null!=e&&E.push({type:"item_reference",id:e});break}if(i&&null!=e){E.push({type:"item_reference",id:e});break}const r=t.toProviderToolName(o.toolName);if(s&&"local_shell"===r){const t=await Rt({value:o.input,schema:Oo});E.push({type:"local_shell_call",call_id:o.toolCallId,id:e,action:{type:"exec",command:t.action.command,timeout_ms:t.action.timeoutMs,user:t.action.user,working_directory:t.action.workingDirectory,env:t.action.env}});break}if(a&&"shell"===r){const t=await Rt({value:o.input,schema:To});E.push({type:"shell_call",call_id:o.toolCallId,id:e,status:"completed",action:{commands:t.action.commands,timeout_ms:t.action.timeoutMs,max_output_length:t.action.maxOutputLength}});break}E.push({type:"function_call",call_id:o.toolCallId,name:r,arguments:JSON.stringify(o.input),id:e});break}case"tool-result":if("execution-denied"===o.output.type||"json"===o.output.type&&"object"==typeof o.output.value&&null!=o.output.value&&"type"in o.output.value&&"execution-denied"===o.output.value.type)break;if(i){const e=null!=(v=null==(y=null==(m=o.providerMetadata)?void 0:m[n])?void 0:y.itemId)?v:o.toolCallId;E.push({type:"item_reference",id:e})}else b.push({type:"other",message:`Results for OpenAI tool ${o.toolName} are not sent to the API when store is false`});break;case"reasoning":{const t=await Tt({provider:n,providerOptions:o.providerOptions,schema:Ho}),r=null==t?void 0:t.itemId;if(null!=r){const n=e[r];if(i)void 0===n&&(E.push({type:"item_reference",id:r}),e[r]={type:"reasoning",id:r,summary:[]});else{const i=[];o.text.length>0?i.push({type:"summary_text",text:o.text}):void 0!==n&&b.push({type:"other",message:`Cannot append empty reasoning part to existing reasoning sequence. Skipping reasoning part: ${JSON.stringify(o)}.`}),void 0===n?(e[r]={type:"reasoning",id:r,encrypted_content:null==t?void 0:t.reasoningEncryptedContent,summary:i},E.push(e[r])):(n.summary.push(...i),null!=(null==t?void 0:t.reasoningEncryptedContent)&&(n.encrypted_content=t.reasoningEncryptedContent))}}else b.push({type:"other",message:`Non-OpenAI reasoning parts are not supported. Skipping reasoning part: ${JSON.stringify(o)}.`});break}}break}case"tool":for(const e of O){if("tool-approval-response"===e.type){const t=e;if(R.has(t.approvalId))continue;R.add(t.approvalId),i&&E.push({type:"item_reference",id:t.approvalId}),E.push({type:"mcp_approval_response",approval_request_id:t.approvalId,approve:t.approved});continue}const o=e.output;if("execution-denied"===o.type&&(null==(w=null==(C=o.providerOptions)?void 0:C.openai)?void 0:w.approvalId))continue;const n=t.toProviderToolName(e.toolName);if(s&&"local_shell"===n&&"json"===o.type){const t=await Rt({value:o.value,schema:Po});E.push({type:"local_shell_call_output",call_id:e.toolCallId,output:t.output});continue}if(a&&"shell"===n&&"json"===o.type){const t=await Rt({value:o.value,schema:Do});E.push({type:"shell_call_output",call_id:e.toolCallId,output:t.output.map((e=>({stdout:e.stdout,stderr:e.stderr,outcome:"timeout"===e.outcome.type?{type:"timeout"}:{type:"exit",exit_code:e.outcome.exitCode}})))});continue}if(l&&"apply_patch"===e.toolName&&"json"===o.type){const t=await Rt({value:o.value,schema:ho});E.push({type:"apply_patch_call_output",call_id:e.toolCallId,status:t.status,output:t.output});continue}let r;switch(o.type){case"text":case"error-text":r=o.value;break;case"execution-denied":r=null!=(_=o.reason)?_:"Tool execution denied.";break;case"json":case"error-json":r=JSON.stringify(o.value);break;case"content":r=o.value.map((e=>{var t;switch(e.type){case"text":return{type:"input_text",text:e.text};case"image-data":return{type:"input_image",image_url:`data:${e.mediaType};base64,${e.data}`};case"image-url":return{type:"input_image",image_url:e.url};case"file-data":return{type:"input_file",filename:null!=(t=e.filename)?t:"data",file_data:`data:${e.mediaType};base64,${e.data}`};default:return void b.push({type:"other",message:`unsupported tool content part type: ${e.type}`})}})).filter(Ue)}E.push({type:"function_call_output",call_id:e.toolCallId,output:r})}break;default:throw new Error(`Unsupported role: ${S}`)}return{input:E,warnings:b}}({prompt:l,toolNameMapping:R,systemMessageMode:null!=(f=null==E?void 0:E.systemMessageMode)?f:b?"developer":w.systemMessageMode,providerOptionsName:_,fileIdPrefixes:this.config.fileIdPrefixes,store:null==(g=null==E?void 0:E.store)||g,hasLocalShellTool:D("openai.local_shell"),hasShellTool:D("openai.shell"),hasApplyPatchTool:D("openai.apply_patch")});C.push(...O);const P=null==(m=null==E?void 0:E.strictJsonSchema)||m;let A=null==E?void 0:E.include;function T(e){null==A?A=[e]:A.includes(e)||(A=[...A,e])}function D(e){return null!=(null==u?void 0:u.find((t=>"provider"===t.type&&t.id===e)))}const N="number"==typeof(null==E?void 0:E.logprobs)?null==E?void 0:E.logprobs:!0===(null==E?void 0:E.logprobs)?20:void 0;N&&T("message.output_text.logprobs");const I=null==(y=null==u?void 0:u.find((e=>"provider"===e.type&&("openai.web_search"===e.id||"openai.web_search_preview"===e.id))))?void 0:y.name;I&&T("web_search_call.action.sources"),D("openai.code_interpreter")&&T("code_interpreter_call.outputs");const x=null==E?void 0:E.store;!1===x&&b&&T("reasoning.encrypted_content");const F={model:this.modelId,input:S,temperature:t,top_p:n,max_output_tokens:e,...("json"===(null==d?void 0:d.type)||(null==E?void 0:E.textVerbosity))&&{text:{..."json"===(null==d?void 0:d.type)&&{format:null!=d.schema?{type:"json_schema",strict:P,name:null!=(v=d.name)?v:"response",description:d.description,schema:d.schema}:{type:"json_object"}},...(null==E?void 0:E.textVerbosity)&&{verbosity:E.textVerbosity}}},conversation:null==E?void 0:E.conversation,max_tool_calls:null==E?void 0:E.maxToolCalls,metadata:null==E?void 0:E.metadata,parallel_tool_calls:null==E?void 0:E.parallelToolCalls,previous_response_id:null==E?void 0:E.previousResponseId,store:x,user:null==E?void 0:E.user,instructions:null==E?void 0:E.instructions,service_tier:null==E?void 0:E.serviceTier,include:A,prompt_cache_key:null==E?void 0:E.promptCacheKey,prompt_cache_retention:null==E?void 0:E.promptCacheRetention,safety_identifier:null==E?void 0:E.safetyIdentifier,top_logprobs:N,truncation:null==E?void 0:E.truncation,...b&&(null!=(null==E?void 0:E.reasoningEffort)||null!=(null==E?void 0:E.reasoningSummary))&&{reasoning:{...null!=(null==E?void 0:E.reasoningEffort)&&{effort:E.reasoningEffort},...null!=(null==E?void 0:E.reasoningSummary)&&{summary:E.reasoningSummary}}}};b?"none"===(null==E?void 0:E.reasoningEffort)&&w.supportsNonReasoningParameters||(null!=F.temperature&&(F.temperature=void 0,C.push({type:"unsupported",feature:"temperature",details:"temperature is not supported for reasoning models"})),null!=F.top_p&&(F.top_p=void 0,C.push({type:"unsupported",feature:"topP",details:"topP is not supported for reasoning models"}))):(null!=(null==E?void 0:E.reasoningEffort)&&C.push({type:"unsupported",feature:"reasoningEffort",details:"reasoningEffort is not supported for non-reasoning models"}),null!=(null==E?void 0:E.reasoningSummary)&&C.push({type:"unsupported",feature:"reasoningSummary",details:"reasoningSummary is not supported for non-reasoning models"})),"flex"!==(null==E?void 0:E.serviceTier)||w.supportsFlexProcessing||(C.push({type:"unsupported",feature:"serviceTier",details:"flex processing is only available for o3, o4-mini, and gpt-5 models"}),delete F.service_tier),"priority"!==(null==E?void 0:E.serviceTier)||w.supportsPriorityProcessing||(C.push({type:"unsupported",feature:"serviceTier",details:"priority processing is only available for supported models (gpt-4, gpt-5, gpt-5-mini, o3, o4-mini) and requires Enterprise access. gpt-5-nano is not supported"}),delete F.service_tier);const{tools:L,toolChoice:M,toolWarnings:k}=await async function({tools:e,toolChoice:t}){const o=[];if(null==(e=(null==e?void 0:e.length)?e:void 0))return{tools:void 0,toolChoice:void 0,toolWarnings:o};const n=[];for(const t of e)switch(t.type){case"function":n.push({type:"function",name:t.name,description:t.description,parameters:t.inputSchema,...null!=t.strict?{strict:t.strict}:{}});break;case"provider":switch(t.id){case"openai.file_search":{const e=await Rt({value:t.args,schema:_o});n.push({type:"file_search",vector_store_ids:e.vectorStoreIds,max_num_results:e.maxNumResults,ranking_options:e.ranking?{ranker:e.ranking.ranker,score_threshold:e.ranking.scoreThreshold}:void 0,filters:e.filters});break}case"openai.local_shell":n.push({type:"local_shell"});break;case"openai.shell":n.push({type:"shell"});break;case"openai.apply_patch":n.push({type:"apply_patch"});break;case"openai.web_search_preview":{const e=await Rt({value:t.args,schema:Fo});n.push({type:"web_search_preview",search_context_size:e.searchContextSize,user_location:e.userLocation});break}case"openai.web_search":{const e=await Rt({value:t.args,schema:Io});n.push({type:"web_search",filters:null!=e.filters?{allowed_domains:e.filters.allowedDomains}:void 0,external_web_access:e.externalWebAccess,search_context_size:e.searchContextSize,user_location:e.userLocation});break}case"openai.code_interpreter":{const e=await Rt({value:t.args,schema:yo});n.push({type:"code_interpreter",container:null==e.container?{type:"auto",file_ids:void 0}:"string"==typeof e.container?e.container:{type:"auto",file_ids:e.container.fileIds}});break}case"openai.image_generation":{const e=await Rt({value:t.args,schema:Ro});n.push({type:"image_generation",background:e.background,input_fidelity:e.inputFidelity,input_image_mask:e.inputImageMask?{file_id:e.inputImageMask.fileId,image_url:e.inputImageMask.imageUrl}:void 0,model:e.model,moderation:e.moderation,partial_images:e.partialImages,quality:e.quality,output_compression:e.outputCompression,output_format:e.outputFormat,size:e.size});break}case"openai.mcp":{const e=await Rt({value:t.args,schema:ko}),o=e=>({tool_names:e.toolNames}),r=e.requireApproval,i=null==r?void 0:"string"==typeof r?r:null!=r.never?{never:o(r.never)}:void 0;n.push({type:"mcp",server_label:e.serverLabel,allowed_tools:Array.isArray(e.allowedTools)?e.allowedTools:e.allowedTools?{read_only:e.allowedTools.readOnly,tool_names:e.allowedTools.toolNames}:void 0,authorization:e.authorization,connector_id:e.connectorId,headers:e.headers,require_approval:null!=i?i:"never",server_description:e.serverDescription,server_url:e.serverUrl});break}}break;default:o.push({type:"unsupported",feature:`function tool ${t}`})}if(null==t)return{tools:n,toolChoice:void 0,toolWarnings:o};const r=t.type;switch(r){case"auto":case"none":case"required":return{tools:n,toolChoice:r,toolWarnings:o};case"tool":return{tools:n,toolChoice:"code_interpreter"===t.toolName||"file_search"===t.toolName||"image_generation"===t.toolName||"web_search_preview"===t.toolName||"web_search"===t.toolName||"mcp"===t.toolName||"apply_patch"===t.toolName?{type:t.toolName}:{type:"function",name:t.toolName},toolWarnings:o};default:throw new Ce({functionality:`tool choice type: ${r}`})}}({tools:u,toolChoice:c});return{webSearchToolName:I,args:{...F,tools:L,tool_choice:M},warnings:[...C,...k],store:x,toolNameMapping:R,providerOptionsName:_}}async doGenerate(e){var t,o,n,r,i,s,a,l,p,u,c,d,h,f,m,y,v,C,w,_,E,b,R,S,O;const{args:P,warnings:A,webSearchToolName:T,toolNameMapping:D,providerOptionsName:N}=await this.getArgs(e),I=this.config.url({path:"/responses",modelId:this.modelId}),x=$o(e.prompt),{responseHeaders:F,value:L,rawValue:M}=await Nt({url:I,headers:Se(this.config.headers(),e.headers),body:P,failedResponseHandler:Wt,successfulResponseHandler:Mt(Yo),abortSignal:e.abortSignal,fetch:this.config.fetch});if(L.error)throw new g({message:L.error.message,url:I,requestBodyValues:P,statusCode:400,responseHeaders:F,responseBody:M,isRetryable:!1});const k=[],G=[];let V=!1;for(const g of L.output)switch(g.type){case"reasoning":0===g.summary.length&&g.summary.push({type:"summary_text",text:""});for(const e of g.summary)k.push({type:"reasoning",text:e.text,providerMetadata:{[N]:{itemId:g.id,reasoningEncryptedContent:null!=(t=g.encrypted_content)?t:null}}});break;case"image_generation_call":k.push({type:"tool-call",toolCallId:g.id,toolName:D.toCustomToolName("image_generation"),input:"{}",providerExecuted:!0}),k.push({type:"tool-result",toolCallId:g.id,toolName:D.toCustomToolName("image_generation"),result:{result:g.result}});break;case"local_shell_call":k.push({type:"tool-call",toolCallId:g.call_id,toolName:D.toCustomToolName("local_shell"),input:JSON.stringify({action:g.action}),providerMetadata:{[N]:{itemId:g.id}}});break;case"shell_call":k.push({type:"tool-call",toolCallId:g.call_id,toolName:D.toCustomToolName("shell"),input:JSON.stringify({action:{commands:g.action.commands}}),providerMetadata:{[N]:{itemId:g.id}}});break;case"message":for(const t of g.content){(null==(n=null==(o=e.providerOptions)?void 0:o[N])?void 0:n.logprobs)&&t.logprobs&&G.push(t.logprobs);const y={itemId:g.id,...t.annotations.length>0&&{annotations:t.annotations}};k.push({type:"text",text:t.text,providerMetadata:{[N]:y}});for(const e of t.annotations)"url_citation"===e.type?k.push({type:"source",sourceType:"url",id:null!=(s=null==(i=(r=this.config).generateId)?void 0:i.call(r))?s:Ve(),url:e.url,title:e.title}):"file_citation"===e.type?k.push({type:"source",sourceType:"document",id:null!=(p=null==(l=(a=this.config).generateId)?void 0:l.call(a))?p:Ve(),mediaType:"text/plain",title:e.filename,filename:e.filename,providerMetadata:{[N]:{type:e.type,fileId:e.file_id,index:e.index}}}):"container_file_citation"===e.type?k.push({type:"source",sourceType:"document",id:null!=(d=null==(c=(u=this.config).generateId)?void 0:c.call(u))?d:Ve(),mediaType:"text/plain",title:e.filename,filename:e.filename,providerMetadata:{[N]:{type:e.type,fileId:e.file_id,containerId:e.container_id}}}):"file_path"===e.type&&k.push({type:"source",sourceType:"document",id:null!=(m=null==(f=(h=this.config).generateId)?void 0:f.call(h))?m:Ve(),mediaType:"application/octet-stream",title:e.file_id,filename:e.file_id,providerMetadata:{[N]:{type:e.type,fileId:e.file_id,index:e.index}}})}break;case"function_call":V=!0,k.push({type:"tool-call",toolCallId:g.call_id,toolName:g.name,input:g.arguments,providerMetadata:{[N]:{itemId:g.id}}});break;case"web_search_call":k.push({type:"tool-call",toolCallId:g.id,toolName:D.toCustomToolName(null!=T?T:"web_search"),input:JSON.stringify({}),providerExecuted:!0}),k.push({type:"tool-result",toolCallId:g.id,toolName:D.toCustomToolName(null!=T?T:"web_search"),result:Zo(g.action)});break;case"mcp_call":{const e=null!=g.approval_request_id&&null!=(y=x[g.approval_request_id])?y:g.id,t=`mcp.${g.name}`;k.push({type:"tool-call",toolCallId:e,toolName:t,input:g.arguments,providerExecuted:!0,dynamic:!0}),k.push({type:"tool-result",toolCallId:e,toolName:t,result:{type:"call",serverLabel:g.server_label,name:g.name,arguments:g.arguments,...null!=g.output?{output:g.output}:{},...null!=g.error?{error:g.error}:{}},providerMetadata:{[N]:{itemId:g.id}}});break}case"mcp_list_tools":break;case"mcp_approval_request":{const e=null!=(v=g.approval_request_id)?v:g.id,t=null!=(_=null==(w=(C=this.config).generateId)?void 0:w.call(C))?_:Ve(),o=`mcp.${g.name}`;k.push({type:"tool-call",toolCallId:t,toolName:o,input:g.arguments,providerExecuted:!0,dynamic:!0}),k.push({type:"tool-approval-request",approvalId:e,toolCallId:t});break}case"computer_call":k.push({type:"tool-call",toolCallId:g.id,toolName:D.toCustomToolName("computer_use"),input:"",providerExecuted:!0}),k.push({type:"tool-result",toolCallId:g.id,toolName:D.toCustomToolName("computer_use"),result:{type:"computer_use_tool_result",status:g.status||"completed"}});break;case"file_search_call":k.push({type:"tool-call",toolCallId:g.id,toolName:D.toCustomToolName("file_search"),input:"{}",providerExecuted:!0}),k.push({type:"tool-result",toolCallId:g.id,toolName:D.toCustomToolName("file_search"),result:{queries:g.queries,results:null!=(b=null==(E=g.results)?void 0:E.map((e=>({attributes:e.attributes,fileId:e.file_id,filename:e.filename,score:e.score,text:e.text}))))?b:null}});break;case"code_interpreter_call":k.push({type:"tool-call",toolCallId:g.id,toolName:D.toCustomToolName("code_interpreter"),input:JSON.stringify({code:g.code,containerId:g.container_id}),providerExecuted:!0}),k.push({type:"tool-result",toolCallId:g.id,toolName:D.toCustomToolName("code_interpreter"),result:{outputs:g.outputs}});break;case"apply_patch_call":k.push({type:"tool-call",toolCallId:g.call_id,toolName:D.toCustomToolName("apply_patch"),input:JSON.stringify({callId:g.call_id,operation:g.operation}),providerMetadata:{[N]:{itemId:g.id}}})}const j={[N]:{responseId:L.id}};G.length>0&&(j[N].logprobs=G),"string"==typeof L.service_tier&&(j[N].serviceTier=L.service_tier);const W=L.usage;return{content:k,finishReason:{unified:Bo({finishReason:null==(R=L.incomplete_details)?void 0:R.reason,hasFunctionCall:V}),raw:null!=(O=null==(S=L.incomplete_details)?void 0:S.reason)?O:void 0},usage:jo(W),request:{body:P},response:{id:L.id,timestamp:new Date(1e3*L.created_at),modelId:L.model,headers:F,body:M},providerMetadata:j,warnings:A}}async doStream(e){const{args:t,warnings:o,webSearchToolName:n,toolNameMapping:r,store:i,providerOptionsName:s}=await this.getArgs(e),{responseHeaders:a,value:l}=await Nt({url:this.config.url({path:"/responses",modelId:this.modelId}),headers:Se(this.config.headers(),e.headers),body:{...t,stream:!0},failedResponseHandler:Wt,successfulResponseHandler:Lt(Uo),abortSignal:e.abortSignal,fetch:this.config.fetch}),p=this,u=$o(e.prompt),c=new Map;let d,h={unified:"other",raw:void 0};const f=[];let g=null;const m={},y=[];let v=!1;const C={};let w;return{stream:l.pipeThrough(new TransformStream({start(e){e.enqueue({type:"stream-start",warnings:o})},transform(t,o){var a,l,_,E,b,R,S,O,P,A,T,D,N,I,x,F,L,M,k,G,V,j,W,H,B,U,Y,z,$,K;if(e.includeRawChunks&&o.enqueue({type:"raw",rawValue:t.rawValue}),!t.success)return h={unified:"error",raw:void 0},void o.enqueue({type:"error",error:t.error});const q=t.value;if(qo(q))if("function_call"===q.item.type)m[q.output_index]={toolName:q.item.name,toolCallId:q.item.call_id},o.enqueue({type:"tool-input-start",id:q.item.call_id,toolName:q.item.name});else if("web_search_call"===q.item.type)m[q.output_index]={toolName:r.toCustomToolName(null!=n?n:"web_search"),toolCallId:q.item.id},o.enqueue({type:"tool-input-start",id:q.item.id,toolName:r.toCustomToolName(null!=n?n:"web_search"),providerExecuted:!0}),o.enqueue({type:"tool-input-end",id:q.item.id}),o.enqueue({type:"tool-call",toolCallId:q.item.id,toolName:r.toCustomToolName(null!=n?n:"web_search"),input:JSON.stringify({}),providerExecuted:!0});else if("computer_call"===q.item.type)m[q.output_index]={toolName:r.toCustomToolName("computer_use"),toolCallId:q.item.id},o.enqueue({type:"tool-input-start",id:q.item.id,toolName:r.toCustomToolName("computer_use"),providerExecuted:!0});else if("code_interpreter_call"===q.item.type)m[q.output_index]={toolName:r.toCustomToolName("code_interpreter"),toolCallId:q.item.id,codeInterpreter:{containerId:q.item.container_id}},o.enqueue({type:"tool-input-start",id:q.item.id,toolName:r.toCustomToolName("code_interpreter"),providerExecuted:!0}),o.enqueue({type:"tool-input-delta",id:q.item.id,delta:`{"containerId":"${q.item.container_id}","code":"`});else if("file_search_call"===q.item.type)o.enqueue({type:"tool-call",toolCallId:q.item.id,toolName:r.toCustomToolName("file_search"),input:"{}",providerExecuted:!0});else if("image_generation_call"===q.item.type)o.enqueue({type:"tool-call",toolCallId:q.item.id,toolName:r.toCustomToolName("image_generation"),input:"{}",providerExecuted:!0});else if("mcp_call"===q.item.type||"mcp_list_tools"===q.item.type||"mcp_approval_request"===q.item.type);else if("apply_patch_call"===q.item.type){const{call_id:e,operation:t}=q.item;if(m[q.output_index]={toolName:r.toCustomToolName("apply_patch"),toolCallId:e,applyPatch:{hasDiff:"delete_file"===t.type,endEmitted:"delete_file"===t.type}},o.enqueue({type:"tool-input-start",id:e,toolName:r.toCustomToolName("apply_patch")}),"delete_file"===t.type){const n=JSON.stringify({callId:e,operation:t});o.enqueue({type:"tool-input-delta",id:e,delta:n}),o.enqueue({type:"tool-input-end",id:e})}else o.enqueue({type:"tool-input-delta",id:e,delta:`{"callId":"${Qo(e)}","operation":{"type":"${Qo(t.type)}","path":"${Qo(t.path)}","diff":"`})}else"shell_call"===q.item.type?m[q.output_index]={toolName:r.toCustomToolName("shell"),toolCallId:q.item.call_id}:"message"===q.item.type?(y.splice(0,y.length),o.enqueue({type:"text-start",id:q.item.id,providerMetadata:{[s]:{itemId:q.item.id}}})):qo(q)&&"reasoning"===q.item.type&&(C[q.item.id]={encryptedContent:q.item.encrypted_content,summaryParts:{0:"active"}},o.enqueue({type:"reasoning-start",id:`${q.item.id}:0`,providerMetadata:{[s]:{itemId:q.item.id,reasoningEncryptedContent:null!=(a=q.item.encrypted_content)?a:null}}}));else if(function(e){return"response.output_item.done"===e.type}(q)){if("message"===q.item.type)o.enqueue({type:"text-end",id:q.item.id,providerMetadata:{[s]:{itemId:q.item.id,...y.length>0&&{annotations:y}}}});else if("function_call"===q.item.type)m[q.output_index]=void 0,v=!0,o.enqueue({type:"tool-input-end",id:q.item.call_id}),o.enqueue({type:"tool-call",toolCallId:q.item.call_id,toolName:q.item.name,input:q.item.arguments,providerMetadata:{[s]:{itemId:q.item.id}}});else if("web_search_call"===q.item.type)m[q.output_index]=void 0,o.enqueue({type:"tool-result",toolCallId:q.item.id,toolName:r.toCustomToolName(null!=n?n:"web_search"),result:Zo(q.item.action)});else if("computer_call"===q.item.type)m[q.output_index]=void 0,o.enqueue({type:"tool-input-end",id:q.item.id}),o.enqueue({type:"tool-call",toolCallId:q.item.id,toolName:r.toCustomToolName("computer_use"),input:"",providerExecuted:!0}),o.enqueue({type:"tool-result",toolCallId:q.item.id,toolName:r.toCustomToolName("computer_use"),result:{type:"computer_use_tool_result",status:q.item.status||"completed"}});else if("file_search_call"===q.item.type)m[q.output_index]=void 0,o.enqueue({type:"tool-result",toolCallId:q.item.id,toolName:r.toCustomToolName("file_search"),result:{queries:q.item.queries,results:null!=(_=null==(l=q.item.results)?void 0:l.map((e=>({attributes:e.attributes,fileId:e.file_id,filename:e.filename,score:e.score,text:e.text}))))?_:null}});else if("code_interpreter_call"===q.item.type)m[q.output_index]=void 0,o.enqueue({type:"tool-result",toolCallId:q.item.id,toolName:r.toCustomToolName("code_interpreter"),result:{outputs:q.item.outputs}});else if("image_generation_call"===q.item.type)o.enqueue({type:"tool-result",toolCallId:q.item.id,toolName:r.toCustomToolName("image_generation"),result:{result:q.item.result}});else if("mcp_call"===q.item.type){m[q.output_index]=void 0;const e=null!=(E=q.item.approval_request_id)?E:void 0,t=null!=e&&null!=(R=null!=(b=c.get(e))?b:u[e])?R:q.item.id,n=`mcp.${q.item.name}`;o.enqueue({type:"tool-call",toolCallId:t,toolName:n,input:q.item.arguments,providerExecuted:!0,dynamic:!0}),o.enqueue({type:"tool-result",toolCallId:t,toolName:n,result:{type:"call",serverLabel:q.item.server_label,name:q.item.name,arguments:q.item.arguments,...null!=q.item.output?{output:q.item.output}:{},...null!=q.item.error?{error:q.item.error}:{}},providerMetadata:{[s]:{itemId:q.item.id}}})}else if("mcp_list_tools"===q.item.type)m[q.output_index]=void 0;else if("apply_patch_call"===q.item.type){const e=m[q.output_index];(null==e?void 0:e.applyPatch)&&!e.applyPatch.endEmitted&&"delete_file"!==q.item.operation.type&&(e.applyPatch.hasDiff||o.enqueue({type:"tool-input-delta",id:e.toolCallId,delta:Qo(q.item.operation.diff)}),o.enqueue({type:"tool-input-delta",id:e.toolCallId,delta:'"}}'}),o.enqueue({type:"tool-input-end",id:e.toolCallId}),e.applyPatch.endEmitted=!0),e&&"completed"===q.item.status&&o.enqueue({type:"tool-call",toolCallId:e.toolCallId,toolName:r.toCustomToolName("apply_patch"),input:JSON.stringify({callId:q.item.call_id,operation:q.item.operation}),providerMetadata:{[s]:{itemId:q.item.id}}}),m[q.output_index]=void 0}else if("mcp_approval_request"===q.item.type){m[q.output_index]=void 0;const e=null!=(P=null==(O=(S=p.config).generateId)?void 0:O.call(S))?P:Ve(),t=null!=(A=q.item.approval_request_id)?A:q.item.id;c.set(t,e);const n=`mcp.${q.item.name}`;o.enqueue({type:"tool-call",toolCallId:e,toolName:n,input:q.item.arguments,providerExecuted:!0,dynamic:!0}),o.enqueue({type:"tool-approval-request",approvalId:t,toolCallId:e})}else if("local_shell_call"===q.item.type)m[q.output_index]=void 0,o.enqueue({type:"tool-call",toolCallId:q.item.call_id,toolName:r.toCustomToolName("local_shell"),input:JSON.stringify({action:{type:"exec",command:q.item.action.command,timeoutMs:q.item.action.timeout_ms,user:q.item.action.user,workingDirectory:q.item.action.working_directory,env:q.item.action.env}}),providerMetadata:{[s]:{itemId:q.item.id}}});else if("shell_call"===q.item.type)m[q.output_index]=void 0,o.enqueue({type:"tool-call",toolCallId:q.item.call_id,toolName:r.toCustomToolName("shell"),input:JSON.stringify({action:{commands:q.item.action.commands}}),providerMetadata:{[s]:{itemId:q.item.id}}});else if("reasoning"===q.item.type){const e=C[q.item.id],t=Object.entries(e.summaryParts).filter((([e,t])=>"active"===t||"can-conclude"===t)).map((([e])=>e));for(const e of t)o.enqueue({type:"reasoning-end",id:`${q.item.id}:${e}`,providerMetadata:{[s]:{itemId:q.item.id,reasoningEncryptedContent:null!=(T=q.item.encrypted_content)?T:null}}});delete C[q.item.id]}}else if(function(e){return"response.function_call_arguments.delta"===e.type}(q)){const e=m[q.output_index];null!=e&&o.enqueue({type:"tool-input-delta",id:e.toolCallId,delta:q.delta})}else if(function(e){return"response.apply_patch_call_operation_diff.delta"===e.type}(q)){const e=m[q.output_index];(null==e?void 0:e.applyPatch)&&(o.enqueue({type:"tool-input-delta",id:e.toolCallId,delta:Qo(q.delta)}),e.applyPatch.hasDiff=!0)}else if(function(e){return"response.apply_patch_call_operation_diff.done"===e.type}(q)){const e=m[q.output_index];(null==e?void 0:e.applyPatch)&&!e.applyPatch.endEmitted&&(e.applyPatch.hasDiff||(o.enqueue({type:"tool-input-delta",id:e.toolCallId,delta:Qo(q.diff)}),e.applyPatch.hasDiff=!0),o.enqueue({type:"tool-input-delta",id:e.toolCallId,delta:'"}}'}),o.enqueue({type:"tool-input-end",id:e.toolCallId}),e.applyPatch.endEmitted=!0)}else if(function(e){return"response.image_generation_call.partial_image"===e.type}(q))o.enqueue({type:"tool-result",toolCallId:q.item_id,toolName:r.toCustomToolName("image_generation"),result:{result:q.partial_image_b64},preliminary:!0});else if(function(e){return"response.code_interpreter_call_code.delta"===e.type}(q)){const e=m[q.output_index];null!=e&&o.enqueue({type:"tool-input-delta",id:e.toolCallId,delta:Qo(q.delta)})}else if(function(e){return"response.code_interpreter_call_code.done"===e.type}(q)){const e=m[q.output_index];null!=e&&(o.enqueue({type:"tool-input-delta",id:e.toolCallId,delta:'"}'}),o.enqueue({type:"tool-input-end",id:e.toolCallId}),o.enqueue({type:"tool-call",toolCallId:e.toolCallId,toolName:r.toCustomToolName("code_interpreter"),input:JSON.stringify({code:q.code,containerId:e.codeInterpreter.containerId}),providerExecuted:!0}))}else if(function(e){return"response.created"===e.type}(q))g=q.response.id,o.enqueue({type:"response-metadata",id:q.response.id,timestamp:new Date(1e3*q.response.created_at),modelId:q.response.model});else if(function(e){return"response.output_text.delta"===e.type}(q))o.enqueue({type:"text-delta",id:q.item_id,delta:q.delta}),(null==(N=null==(D=e.providerOptions)?void 0:D[s])?void 0:N.logprobs)&&q.logprobs&&f.push(q.logprobs);else if("response.reasoning_summary_part.added"===q.type){if(q.summary_index>0){const e=C[q.item_id];e.summaryParts[q.summary_index]="active";for(const t of Object.keys(e.summaryParts))"can-conclude"===e.summaryParts[t]&&(o.enqueue({type:"reasoning-end",id:`${q.item_id}:${t}`,providerMetadata:{[s]:{itemId:q.item_id}}}),e.summaryParts[t]="concluded");o.enqueue({type:"reasoning-start",id:`${q.item_id}:${q.summary_index}`,providerMetadata:{[s]:{itemId:q.item_id,reasoningEncryptedContent:null!=(x=null==(I=C[q.item_id])?void 0:I.encryptedContent)?x:null}}})}}else"response.reasoning_summary_text.delta"===q.type?o.enqueue({type:"reasoning-delta",id:`${q.item_id}:${q.summary_index}`,delta:q.delta,providerMetadata:{[s]:{itemId:q.item_id}}}):"response.reasoning_summary_part.done"===q.type?i?(o.enqueue({type:"reasoning-end",id:`${q.item_id}:${q.summary_index}`,providerMetadata:{[s]:{itemId:q.item_id}}}),C[q.item_id].summaryParts[q.summary_index]="concluded"):C[q.item_id].summaryParts[q.summary_index]="can-conclude":function(e){return"response.completed"===e.type||"response.incomplete"===e.type}(q)?(h={unified:Bo({finishReason:null==(F=q.response.incomplete_details)?void 0:F.reason,hasFunctionCall:v}),raw:null!=(M=null==(L=q.response.incomplete_details)?void 0:L.reason)?M:void 0},d=q.response.usage,"string"==typeof q.response.service_tier&&(w=q.response.service_tier)):function(e){return"response.output_text.annotation.added"===e.type}(q)?(y.push(q.annotation),"url_citation"===q.annotation.type?o.enqueue({type:"source",sourceType:"url",id:null!=(V=null==(G=(k=p.config).generateId)?void 0:G.call(k))?V:Ve(),url:q.annotation.url,title:q.annotation.title}):"file_citation"===q.annotation.type?o.enqueue({type:"source",sourceType:"document",id:null!=(H=null==(W=(j=p.config).generateId)?void 0:W.call(j))?H:Ve(),mediaType:"text/plain",title:q.annotation.filename,filename:q.annotation.filename,providerMetadata:{[s]:{type:q.annotation.type,fileId:q.annotation.file_id,index:q.annotation.index}}}):"container_file_citation"===q.annotation.type?o.enqueue({type:"source",sourceType:"document",id:null!=(Y=null==(U=(B=p.config).generateId)?void 0:U.call(B))?Y:Ve(),mediaType:"text/plain",title:q.annotation.filename,filename:q.annotation.filename,providerMetadata:{[s]:{type:q.annotation.type,fileId:q.annotation.file_id,containerId:q.annotation.container_id}}}):"file_path"===q.annotation.type&&o.enqueue({type:"source",sourceType:"document",id:null!=(K=null==($=(z=p.config).generateId)?void 0:$.call(z))?K:Ve(),mediaType:"application/octet-stream",title:q.annotation.file_id,filename:q.annotation.file_id,providerMetadata:{[s]:{type:q.annotation.type,fileId:q.annotation.file_id,index:q.annotation.index}}})):function(e){return"error"===e.type}(q)&&o.enqueue({type:"error",error:q})},flush(e){const t={[s]:{responseId:g}};f.length>0&&(t[s].logprobs=f),void 0!==w&&(t[s].serviceTier=w),e.enqueue({type:"finish",finishReason:h,usage:jo(d),providerMetadata:t})}})),request:{body:t},response:{headers:a}}}};function qo(e){return"response.output_item.added"===e.type}function Zo(e){var t;switch(e.type){case"search":return{action:{type:"search",query:null!=(t=e.query)?t:void 0},...null!=e.sources&&{sources:e.sources}};case"open_page":return{action:{type:"openPage",url:e.url}};case"find_in_page":return{action:{type:"findInPage",url:e.url,pattern:e.pattern}}}}function Qo(e){return JSON.stringify(e).slice(1,-1)}var Xo=_t((()=>bt(kt.Ik({instructions:kt.Yj().nullish(),speed:kt.ai().min(.25).max(4).default(1).nullish()})))),Jo=class{constructor(e,t){this.modelId=e,this.config=t,this.specificationVersion="v3"}get provider(){return this.config.provider}async getArgs({text:e,voice:t="alloy",outputFormat:o="mp3",speed:n,instructions:r,language:i,providerOptions:s}){const a=[],l=await Tt({provider:"openai",providerOptions:s,schema:Xo}),p={model:this.modelId,input:e,voice:t,response_format:"mp3",speed:n,instructions:r};if(o&&(["mp3","opus","aac","flac","wav","pcm"].includes(o)?p.response_format=o:a.push({type:"unsupported",feature:"outputFormat",details:`Unsupported output format: ${o}. Using mp3 instead.`})),l){const e={};for(const t in e){const o=e[t];void 0!==o&&(p[t]=o)}}return i&&a.push({type:"unsupported",feature:"language",details:`OpenAI speech models do not support language selection. Language parameter "${i}" was ignored.`}),{requestBody:p,warnings:a}}async doGenerate(e){var t,o,n;const r=null!=(n=null==(o=null==(t=this.config._internal)?void 0:t.currentDate)?void 0:o.call(t))?n:new Date,{requestBody:i,warnings:s}=await this.getArgs(e),{value:a,responseHeaders:l,rawValue:p}=await Nt({url:this.config.url({path:"/audio/speech",modelId:this.modelId}),headers:Se(this.config.headers(),e.headers),body:i,failedResponseHandler:Wt,successfulResponseHandler:async({response:e,url:t,requestBodyValues:o})=>{const n=Oe(e);if(!e.body)throw new g({message:"Response body is empty",url:t,requestBodyValues:o,statusCode:e.status,responseHeaders:n,responseBody:void 0});try{const t=await e.arrayBuffer();return{responseHeaders:n,value:new Uint8Array(t)}}catch(r){throw new g({message:"Failed to read response as array buffer",url:t,requestBodyValues:o,statusCode:e.status,responseHeaders:n,responseBody:void 0,cause:r})}},abortSignal:e.abortSignal,fetch:this.config.fetch});return{audio:a,warnings:s,request:{body:JSON.stringify(i)},response:{timestamp:r,modelId:this.modelId,headers:l,body:p}}}},en=_t((()=>bt(kt.Ik({text:kt.Yj(),language:kt.Yj().nullish(),duration:kt.ai().nullish(),words:kt.YO(kt.Ik({word:kt.Yj(),start:kt.ai(),end:kt.ai()})).nullish(),segments:kt.YO(kt.Ik({id:kt.ai(),seek:kt.ai(),start:kt.ai(),end:kt.ai(),text:kt.Yj(),tokens:kt.YO(kt.ai()),temperature:kt.ai(),avg_logprob:kt.ai(),compression_ratio:kt.ai(),no_speech_prob:kt.ai()})).nullish()})))),tn=_t((()=>bt(kt.Ik({include:kt.YO(kt.Yj()).optional(),language:kt.Yj().optional(),prompt:kt.Yj().optional(),temperature:kt.ai().min(0).max(1).default(0).optional(),timestampGranularities:kt.YO(kt.k5(["word","segment"])).default(["segment"]).optional()})))),on={afrikaans:"af",arabic:"ar",armenian:"hy",azerbaijani:"az",belarusian:"be",bosnian:"bs",bulgarian:"bg",catalan:"ca",chinese:"zh",croatian:"hr",czech:"cs",danish:"da",dutch:"nl",english:"en",estonian:"et",finnish:"fi",french:"fr",galician:"gl",german:"de",greek:"el",hebrew:"he",hindi:"hi",hungarian:"hu",icelandic:"is",indonesian:"id",italian:"it",japanese:"ja",kannada:"kn",kazakh:"kk",korean:"ko",latvian:"lv",lithuanian:"lt",macedonian:"mk",malay:"ms",marathi:"mr",maori:"mi",nepali:"ne",norwegian:"no",persian:"fa",polish:"pl",portuguese:"pt",romanian:"ro",russian:"ru",serbian:"sr",slovak:"sk",slovenian:"sl",spanish:"es",swahili:"sw",swedish:"sv",tagalog:"tl",tamil:"ta",thai:"th",turkish:"tr",ukrainian:"uk",urdu:"ur",vietnamese:"vi",welsh:"cy"},nn=class{constructor(e,t){this.modelId=e,this.config=t,this.specificationVersion="v3"}get provider(){return this.config.provider}async getArgs({audio:e,mediaType:t,providerOptions:o}){const n=await Tt({provider:"openai",providerOptions:o,schema:tn}),r=new FormData,i=e instanceof Uint8Array?new Blob([e]):new Blob([Te(e)]);r.append("model",this.modelId);const s=function(e){var t;const[o,n=""]=e.toLowerCase().split("/");return null!=(t={mpeg:"mp3","x-wav":"wav",opus:"ogg",mp4:"m4a","x-m4a":"m4a"}[n])?t:n}(t);if(r.append("file",new File([i],"audio",{type:t}),`audio.${s}`),n){const e={include:n.include,language:n.language,prompt:n.prompt,response_format:["gpt-4o-transcribe","gpt-4o-mini-transcribe"].includes(this.modelId)?"json":"verbose_json",temperature:n.temperature,timestamp_granularities:n.timestampGranularities};for(const[t,o]of Object.entries(e))if(null!=o)if(Array.isArray(o))for(const e of o)r.append(`${t}[]`,String(e));else r.append(t,String(o))}return{formData:r,warnings:[]}}async doGenerate(e){var t,o,n,r,i,s,a,l;const p=null!=(n=null==(o=null==(t=this.config._internal)?void 0:t.currentDate)?void 0:o.call(t))?n:new Date,{formData:u,warnings:c}=await this.getArgs(e),{value:d,responseHeaders:h,rawValue:f}=await It({url:this.config.url({path:"/audio/transcriptions",modelId:this.modelId}),headers:Se(this.config.headers(),e.headers),formData:u,failedResponseHandler:Wt,successfulResponseHandler:Mt(en),abortSignal:e.abortSignal,fetch:this.config.fetch}),g=null!=d.language&&d.language in on?on[d.language]:void 0;return{text:d.text,segments:null!=(a=null!=(s=null==(r=d.segments)?void 0:r.map((e=>({text:e.text,startSecond:e.start,endSecond:e.end}))))?s:null==(i=d.words)?void 0:i.map((e=>({text:e.word,startSecond:e.start,endSecond:e.end}))))?a:[],language:g,durationInSeconds:null!=(l=d.duration)?l:void 0,warnings:c,response:{timestamp:p,modelId:this.modelId,headers:h,body:f}}}},rn="3.0.9";function sn(e={}){var t,o;const n=null!=(t=null==(r=function({settingValue:e,environmentVariableName:t}){return"string"==typeof e||null==e&&void 0!==Re&&null!=(e=Re.env[t])&&"string"==typeof e?e:void 0}({settingValue:e.baseURL,environmentVariableName:"OPENAI_BASE_URL"}))?void 0:r.replace(/\/$/,""))?t:"https://api.openai.com/v1";var r;const i=null!=(o=e.name)?o:"openai",s=()=>Be({Authorization:`Bearer ${Ye({apiKey:e.apiKey,environmentVariableName:"OPENAI_API_KEY",description:"OpenAI"})}`,"OpenAI-Organization":e.organization,"OpenAI-Project":e.project,...e.headers},`ai-sdk/openai/${rn}`),a=t=>new io(t,{provider:`${i}.embedding`,url:({path:e})=>`${n}${e}`,headers:s,fetch:e.fetch}),l=t=>new po(t,{provider:`${i}.image`,url:({path:e})=>`${n}${e}`,headers:s,fetch:e.fetch}),p=t=>new nn(t,{provider:`${i}.transcription`,url:({path:e})=>`${n}${e}`,headers:s,fetch:e.fetch}),u=t=>new Jo(t,{provider:`${i}.speech`,url:({path:e})=>`${n}${e}`,headers:s,fetch:e.fetch}),c=e=>{if(new.target)throw new Error("The OpenAI model function cannot be called with the new keyword.");return d(e)},d=t=>new Ko(t,{provider:`${i}.responses`,url:({path:e})=>`${n}${e}`,headers:s,fetch:e.fetch,fileIdPrefixes:["file-"]}),h=function(e){return c(e)};return h.specificationVersion="v3",h.languageModel=c,h.chat=t=>new qt(t,{provider:`${i}.chat`,url:({path:e})=>`${n}${e}`,headers:s,fetch:e.fetch}),h.completion=t=>new oo(t,{provider:`${i}.completion`,url:({path:e})=>`${n}${e}`,headers:s,fetch:e.fetch}),h.responses=d,h.embedding=a,h.embeddingModel=a,h.textEmbedding=a,h.textEmbeddingModel=a,h.image=l,h.imageModel=l,h.transcription=p,h.transcriptionModel=p,h.speech=u,h.speechModel=u,h.tools=Vo,h}sn()},16974:function(e,t,o){var n,r=this&&this.__extends||(n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])},n(e,t)},function(e,t){function o(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(o.prototype=t.prototype,new o)}),i=this&&this.__decorate||function(e,t,o,n){var r,i=arguments.length,s=i<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,n);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,o,s):r(t,o))||s);return i>3&&s&&Object.defineProperty(t,o,s),s},s=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0});var a=o(38830),l=o(17890),p=o(7611),u=o(59804),c=o(36071),d=o(43510),h=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r(t,e),t.prototype.modelFromFloatingFilter=function(e){return{dateFrom:e,dateTo:this.getDateTo(),type:this.selectedFilter,filterType:"date"}},t.prototype.getApplicableFilterTypes=function(){return[p.BaseFilter.EQUALS,p.BaseFilter.GREATER_THAN,p.BaseFilter.LESS_THAN,p.BaseFilter.NOT_EQUAL,p.BaseFilter.IN_RANGE]},t.prototype.bodyTemplate=function(e){return'<div class="ag-filter-body">\n <div class="ag-filter-date-from" id="'+(e==p.FilterConditionType.MAIN?"filterDateFromPanel":"filterDateFromConditionPanel")+'">\n </div>\n <div class="ag-filter-date-to" id="'+(e==p.FilterConditionType.MAIN?"filterDateToPanel":"filterDateToConditionPanel")+'">\n </div>\n </div>'},t.prototype.initialiseFilterBodyUi=function(t){e.prototype.initialiseFilterBodyUi.call(this,t),this.createComponents(t),t===p.FilterConditionType.MAIN?(this.setDateFrom_date(this.dateFrom,p.FilterConditionType.MAIN),this.setDateTo_date(this.dateTo,p.FilterConditionType.MAIN),this.setFilterType(this.selectedFilter,p.FilterConditionType.MAIN)):(this.setDateFrom_date(this.dateFromCondition,p.FilterConditionType.CONDITION),this.setDateTo_date(this.dateToCondition,p.FilterConditionType.CONDITION),this.setFilterType(this.selectedFilterCondition,p.FilterConditionType.CONDITION))},t.prototype.createComponents=function(e){var t=this,o={onDateChanged:function(){t.onDateChanged(e)},filterParams:this.filterParams};this.userComponentFactory.newDateComponent(o).then((function(o){e===p.FilterConditionType.MAIN?t.dateToComponent=o:t.dateToConditionComponent=o;var n=o.getGui();e===p.FilterConditionType.MAIN?(t.eDateToPanel.appendChild(n),t.dateToComponent.afterGuiAttached&&t.dateToComponent.afterGuiAttached()):(t.eDateToConditionPanel.appendChild(n),t.dateToConditionComponent.afterGuiAttached&&t.dateToConditionComponent.afterGuiAttached())})),this.userComponentFactory.newDateComponent(o).then((function(o){e===p.FilterConditionType.MAIN?t.dateFromComponent=o:t.dateFromConditionComponent=o;var n=o.getGui();e===p.FilterConditionType.MAIN?(t.eDateFromPanel.appendChild(n),t.dateFromComponent.afterGuiAttached&&t.dateFromComponent.afterGuiAttached()):(t.eDateFromConditionPanel.appendChild(n),t.dateFromConditionComponent.afterGuiAttached&&t.dateFromConditionComponent.afterGuiAttached())}))},t.prototype.onDateChanged=function(e){e===p.FilterConditionType.MAIN?(this.dateFrom=t.removeTimezone(this.dateFromComponent.getDate()),this.dateTo=t.removeTimezone(this.dateToComponent.getDate())):(this.dateFromCondition=t.removeTimezone(this.dateFromComponent.getDate()),this.dateToCondition=t.removeTimezone(this.dateToComponent.getDate())),this.onFilterChanged()},t.prototype.refreshFilterBodyUi=function(e){var t,o;if(e===p.FilterConditionType.MAIN?(t=this.eDateToPanel,o=this.selectedFilter):(t=this.eDateToConditionPanel,o=this.selectedFilterCondition),t){var n=o===p.BaseFilter.IN_RANGE;d._.setVisible(t,n)}var r=e===p.FilterConditionType.MAIN?this.eDateFromPanel:this.eDateFromConditionPanel;if(r){var i=!this.doesFilterHaveHiddenInput(o)&&o!==p.BaseFilter.EMPTY;d._.setVisible(r,i)}},t.prototype.comparator=function(){return this.filterParams.comparator?this.filterParams.comparator:this.defaultComparator.bind(this)},t.prototype.defaultComparator=function(e,t){return t<e?-1:t>e?1:null!=t?0:-1},t.prototype.serialize=function(e){var t=e===p.FilterConditionType.MAIN?this.dateToComponent:this.dateToConditionComponent,o=e===p.FilterConditionType.MAIN?this.dateFromComponent:this.dateFromConditionComponent,n=e===p.FilterConditionType.MAIN?this.selectedFilter:this.selectedFilterCondition;return{dateTo:d._.serializeDateToYyyyMmDd(t.getDate(),"-"),dateFrom:d._.serializeDateToYyyyMmDd(o.getDate(),"-"),type:n||this.defaultFilter,filterType:"date"}},t.prototype.filterValues=function(e){return e===p.FilterConditionType.MAIN?this.dateFromComponent?this.selectedFilter!==p.BaseFilter.IN_RANGE?this.dateFromComponent.getDate():[this.dateFromComponent.getDate(),this.dateToComponent.getDate()]:null:this.dateFromConditionComponent?this.selectedFilterCondition!==p.BaseFilter.IN_RANGE?this.dateFromConditionComponent.getDate():[this.dateFromConditionComponent.getDate(),this.dateToConditionComponent.getDate()]:null},t.prototype.getDateFrom=function(){return d._.serializeDateToYyyyMmDd(this.dateFromComponent.getDate(),"-")},t.prototype.getDateTo=function(){return d._.serializeDateToYyyyMmDd(this.dateToComponent.getDate(),"-")},t.prototype.getFilterType=function(){return this.selectedFilter},t.prototype.setDateFrom=function(e,t){var o=d._.parseYyyyMmDdToDate(e,"-");this.setDateFrom_date(o,t)},t.prototype.setDateFrom_date=function(e,t){if(t===p.FilterConditionType.MAIN){if(this.dateFrom=e,!this.dateFromComponent)return;this.dateFromComponent.setDate(this.dateFrom)}else{if(this.dateFromCondition=e,!this.dateFromConditionComponent)return;this.dateFromConditionComponent.setDate(this.dateFromCondition)}},t.prototype.setDateTo=function(e,t){var o=d._.parseYyyyMmDdToDate(e,"-");this.setDateTo_date(o,t)},t.prototype.setDateTo_date=function(e,t){if(t===p.FilterConditionType.MAIN){if(this.dateTo=e,!this.dateToComponent)return;this.dateToComponent.setDate(this.dateTo)}else{if(this.dateToCondition=e,!this.dateToConditionComponent)return;this.dateToConditionComponent.setDate(this.dateToCondition)}},t.prototype.resetState=function(e){void 0===e&&(e=!1),e||(this.setDateFrom(null,p.FilterConditionType.MAIN),this.setDateTo(null,p.FilterConditionType.MAIN),this.setFilterType(this.defaultFilter,p.FilterConditionType.MAIN)),this.setFilterType(this.defaultFilter,p.FilterConditionType.CONDITION),this.setDateFrom(null,p.FilterConditionType.CONDITION),this.setDateTo(null,p.FilterConditionType.CONDITION)},t.prototype.parse=function(e,t){this.setDateFrom(e.dateFrom,t),this.setDateTo(e.dateTo,t),this.setFilterType(e.type,t)},t.prototype.setType=function(e,t){this.setFilterType(e,t)},t.removeTimezone=function(e){return e?new Date(e.getFullYear(),e.getMonth(),e.getDate()):null},i([u.Autowired("userComponentFactory"),s("design:type",c.UserComponentFactory)],t.prototype,"userComponentFactory",void 0),i([l.QuerySelector("#filterDateFromPanel"),s("design:type",HTMLElement)],t.prototype,"eDateFromPanel",void 0),i([l.QuerySelector("#filterDateFromConditionPanel"),s("design:type",HTMLElement)],t.prototype,"eDateFromConditionPanel",void 0),i([l.QuerySelector("#filterDateToPanel"),s("design:type",HTMLElement)],t.prototype,"eDateToPanel",void 0),i([l.QuerySelector("#filterDateToConditionPanel"),s("design:type",HTMLElement)],t.prototype,"eDateToConditionPanel",void 0),t}(p.ScalarBaseFilter);t.DateFilter=h;var f=function(e){function t(){return e.call(this,'<div class="ag-input-text-wrapper"><input class="ag-filter-filter" type="text" placeholder="yyyy-mm-dd"></div>')||this}return r(t,e),t.prototype.init=function(e){this.eDateInput=this.getGui().querySelector("input"),(d._.isBrowserChrome()||e.filterParams.browserDatePicker)&&(d._.isBrowserIE()?console.warn("ag-grid: browserDatePicker is specified to true, but it is not supported in IE 11, reverting to plain text date picker"):this.eDateInput.type="date"),this.listener=e.onDateChanged,this.addGuiEventListener("input",this.listener)},t.prototype.getDate=function(){return d._.parseYyyyMmDdToDate(this.eDateInput.value,"-")},t.prototype.setDate=function(e){this.eDateInput.value=d._.serializeDateToYyyyMmDd(e,"-")},t}(a.Component);t.DefaultDateComponent=f},17074:function(e,t,o){var n=this&&this.__decorate||function(e,t,o,n){var r,i=arguments.length,s=i<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,n);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,o,s):r(t,o))||s);return i>3&&s&&Object.defineProperty(t,o,s),s},r=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0});var i=o(59804),s=o(43510),a={"ag-theme-material":{headerHeight:56,virtualItemHeight:40,rowHeight:48},"ag-theme-classic":{headerHeight:25,virtualItemHeight:20,rowHeight:25},"ag-theme-balham":{headerHeight:32,virtualItemHeight:28,rowHeight:28}},l=function(){function e(){}return e.prototype.getSassVariable=function(e,t){return"ag-theme-material"==e?a["ag-theme-material"][t]:"ag-theme-balham"==e||"ag-theme-balham-dark"==e?a["ag-theme-balham"][t]:a["ag-theme-classic"][t]},e.prototype.getTheme=function(){for(var e,t=/\bag-(fresh|dark|blue|material|bootstrap|(?:theme-([\w\-]*)))\b/,o=this.eGridDiv;o&&(e=t.exec(o.className),null!=(o=o.parentElement)&&!e););if(e){var n=e[0];if(void 0===e[2]){var r=n.replace("ag-","ag-theme-");s._.doOnce((function(){return console.warn("ag-Grid: As of v19 old theme are no longer provided. Please replace "+n+" with "+r+".")}),"using-old-theme")}return n}},n([i.Autowired("eGridDiv"),r("design:type",HTMLElement)],e.prototype,"eGridDiv",void 0),n([i.Bean("environment")],e)}();t.Environment=l},17201:function(e,t,o){var n=this&&this.__decorate||function(e,t,o,n){var r,i=arguments.length,s=i<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,n);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,o,s):r(t,o))||s);return i>3&&s&&Object.defineProperty(t,o,s),s},r=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0});var i=o(59804),s=o(99162),a=o(43510),l=function(){function e(){}return e.prototype.observeResize=function(e,t){var o,n,r,i,s,l=this.frameworkFactory,p=this.gridOptionsWrapper.isSuppressBrowserResizeObserver();return window.ResizeObserver&&!p?((s=new window.ResizeObserver(t)).observe(e),function(){return s.disconnect()}):(o=a._.offsetWidth(e),n=a._.offsetHeight(e),r=!0,(i=function(){if(r){var s=a._.offsetWidth(e),p=a._.offsetHeight(e);(s!==o||p!==n)&&(o=s,n=p,t()),l.setTimeout(i,500)}})(),function(){return r=!1})},n([i.Autowired("gridOptionsWrapper"),r("design:type",s.GridOptionsWrapper)],e.prototype,"gridOptionsWrapper",void 0),n([i.Autowired("frameworkFactory"),r("design:type",Object)],e.prototype,"frameworkFactory",void 0),n([i.Bean("resizeObserverService")],e)}();t.ResizeObserverService=l},17307:function(e,t,o){var n,r=this&&this.__extends||(n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])},n(e,t)},function(e,t){function o(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(o.prototype=t.prototype,new o)}),i=this&&this.__decorate||function(e,t,o,n){var r,i=arguments.length,s=i<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,n);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,o,s):r(t,o))||s);return i>3&&s&&Object.defineProperty(t,o,s),s},s=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0});var a,l=o(38830),p=o(59804),u=o(99162),c=o(51890),d=o(71569),h=o(47304),f=o(33018),g=o(17722),m=o(8458),y=o(57663),v=o(31551),C=o(44494),w=o(43510),_=o(53705);!function(e){e[e.COLUMN_GROUP=0]="COLUMN_GROUP",e[e.COLUMN=1]="COLUMN",e[e.FLOATING_FILTER=2]="FLOATING_FILTER"}(a=t.HeaderRowType||(t.HeaderRowType={}));var E=function(e){function t(t,o,n,r){var i=e.call(this,'<div class="ag-header-row" role="presentation"/>')||this;return i.headerComps={},i.dept=t,i.type=o,i.pinned=n,i.dropTarget=r,i}return r(t,e),t.prototype.forEachHeaderElement=function(e){var t=this;Object.keys(this.headerComps).forEach((function(o){e(t.headerComps[o])}))},t.prototype.destroy=function(){var t=Object.keys(this.headerComps);this.removeAndDestroyChildComponents(t),e.prototype.destroy.call(this)},t.prototype.removeAndDestroyChildComponents=function(e){var t=this;e.forEach((function(e){var o=t.headerComps[e];t.getGui().removeChild(o.getGui()),o.destroy(),delete t.headerComps[e]}))},t.prototype.onRowHeightChanged=function(){var e,t,o=this.columnController.getHeaderRowCount(),n=[],r=0;this.columnController.isPivotMode()?(r=0,e=this.gridOptionsWrapper.getPivotGroupHeaderHeight(),t=this.gridOptionsWrapper.getPivotHeaderHeight()):(this.gridOptionsWrapper.isFloatingFilter()&&o++,r=this.gridOptionsWrapper.isFloatingFilter()?1:0,e=this.gridOptionsWrapper.getGroupHeaderHeight(),t=this.gridOptionsWrapper.getHeaderHeight());for(var i=o-(1+r),s=0;s<i;s++)n.push(e);for(n.push(t),s=0;s<r;s++)n.push(this.gridOptionsWrapper.getFloatingFiltersHeight());var a=0;for(s=0;s<this.dept;s++)a+=n[s];this.getGui().style.top=a+"px",this.getGui().style.height=n[this.dept]+"px"},t.prototype.init=function(){this.onRowHeightChanged(),this.onVirtualColumnsChanged(),this.setWidth(),this.addDestroyableEventListener(this.gridOptionsWrapper,u.GridOptionsWrapper.PROP_HEADER_HEIGHT,this.onRowHeightChanged.bind(this)),this.addDestroyableEventListener(this.gridOptionsWrapper,u.GridOptionsWrapper.PROP_PIVOT_HEADER_HEIGHT,this.onRowHeightChanged.bind(this)),this.addDestroyableEventListener(this.gridOptionsWrapper,u.GridOptionsWrapper.PROP_GROUP_HEADER_HEIGHT,this.onRowHeightChanged.bind(this)),this.addDestroyableEventListener(this.gridOptionsWrapper,u.GridOptionsWrapper.PROP_PIVOT_GROUP_HEADER_HEIGHT,this.onRowHeightChanged.bind(this)),this.addDestroyableEventListener(this.gridOptionsWrapper,u.GridOptionsWrapper.PROP_FLOATING_FILTERS_HEIGHT,this.onRowHeightChanged.bind(this)),this.addDestroyableEventListener(this.eventService,f.Events.EVENT_VIRTUAL_COLUMNS_CHANGED,this.onVirtualColumnsChanged.bind(this)),this.addDestroyableEventListener(this.eventService,f.Events.EVENT_DISPLAYED_COLUMNS_CHANGED,this.onDisplayedColumnsChanged.bind(this)),this.addDestroyableEventListener(this.eventService,f.Events.EVENT_COLUMN_RESIZED,this.onColumnResized.bind(this)),this.addDestroyableEventListener(this.eventService,f.Events.EVENT_GRID_COLUMNS_CHANGED,this.onGridColumnsChanged.bind(this))},t.prototype.onColumnResized=function(){this.setWidth()},t.prototype.setWidth=function(){var e=this.getWidthForRow();this.getGui().style.width=e+"px"},t.prototype.getWidthForRow=function(){return this.gridOptionsWrapper.getDomLayout()===C.Constants.DOM_LAYOUT_PRINT?w._.missing(this.pinned)?this.columnController.getContainerWidth(d.Column.PINNED_RIGHT)+this.columnController.getContainerWidth(d.Column.PINNED_LEFT)+this.columnController.getContainerWidth(null):0:this.columnController.getContainerWidth(this.pinned)},t.prototype.onGridColumnsChanged=function(){this.removeAndDestroyAllChildComponents()},t.prototype.removeAndDestroyAllChildComponents=function(){var e=Object.keys(this.headerComps);this.removeAndDestroyChildComponents(e)},t.prototype.onDisplayedColumnsChanged=function(){this.onVirtualColumnsChanged(),this.setWidth()},t.prototype.getItemsAtDept=function(){var e=this;if(this.gridOptionsWrapper.getDomLayout()===C.Constants.DOM_LAYOUT_PRINT){if(w._.missing(this.pinned)){var t=[];return[d.Column.PINNED_LEFT,null,d.Column.PINNED_RIGHT].forEach((function(o){var n=e.columnController.getVirtualHeaderGroupRow(o,e.type==a.FLOATING_FILTER?e.dept-1:e.dept);t=t.concat(n)})),t}return[]}return this.columnController.getVirtualHeaderGroupRow(this.pinned,this.type==a.FLOATING_FILTER?this.dept-1:this.dept)},t.prototype.onVirtualColumnsChanged=function(){var e,t=this,o=Object.keys(this.headerComps),n=this.getItemsAtDept(),r=this.gridOptionsWrapper.isEnsureDomOrder();n.forEach((function(n){if(!n.isEmptyGroup()){var i,s,a=n.getUniqueId(),l=t.getGui();o.indexOf(a)>=0?(w._.removeFromArray(o,a),s=(i=t.headerComps[a]).getGui(),r&&w._.ensureDomOrder(l,s,e),e=s):(i=t.createHeaderComp(n),t.headerComps[a]=i,s=i.getGui(),r?w._.insertWithDomOrder(l,s,e):l.appendChild(s),e=s)}})),this.removeAndDestroyChildComponents(o)},t.prototype.createHeaderComp=function(e){var t;switch(this.type){case a.COLUMN:t=new g.HeaderWrapperComp(e,this.dropTarget,this.pinned);break;case a.COLUMN_GROUP:t=new m.HeaderGroupWrapperComp(e,this.dropTarget,this.pinned);break;case a.FLOATING_FILTER:t=new _.FloatingFilterWrapper(e)}return this.getContext().wireBean(t),t},i([p.Autowired("gridOptionsWrapper"),s("design:type",u.GridOptionsWrapper)],t.prototype,"gridOptionsWrapper",void 0),i([p.Autowired("gridApi"),s("design:type",v.GridApi)],t.prototype,"gridApi",void 0),i([p.Autowired("columnController"),s("design:type",c.ColumnController)],t.prototype,"columnController",void 0),i([p.Autowired("eventService"),s("design:type",h.EventService)],t.prototype,"eventService",void 0),i([p.Autowired("filterManager"),s("design:type",y.FilterManager)],t.prototype,"filterManager",void 0),i([p.PostConstruct,s("design:type",Function),s("design:paramtypes",[]),s("design:returntype",void 0)],t.prototype,"init",null),t}(l.Component);t.HeaderRowComp=E},17722:function(e,t,o){var n,r=this&&this.__extends||(n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])},n(e,t)},function(e,t){function o(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(o.prototype=t.prototype,new o)}),i=this&&this.__decorate||function(e,t,o,n){var r,i=arguments.length,s=i<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,n);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,o,s):r(t,o))||s);return i>3&&s&&Object.defineProperty(t,o,s),s},s=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0});var a=o(38830),l=o(59804),p=o(71569),u=o(13161),c=o(81404),d=o(51890),h=o(56932),f=o(99162),g=o(23247),m=o(98681),y=o(31551),v=o(14035),C=o(47304),w=o(36071),_=o(85448),E=o(17890),b=o(92053),R=o(33018),S=o(94741),O=o(71627),P=o(21311),A=o(55758),T=o(43510),D=function(e){function t(o,n,r){var i=e.call(this,t.TEMPLATE)||this;return i.column=o,i.dragSourceDropTarget=n,i.pinned=r,i}return r(t,e),t.prototype.getColumn=function(){return this.column},t.prototype.getComponentHolder=function(){return this.column.getColDef()},t.prototype.init=function(){var e=this.getComponentHolder(),t=this.columnController.getDisplayNameForColumn(this.column,"header",!0),o=e.sortable,n=this.menuFactory.isMenuEnabled(this.column)&&!e.suppressMenu;this.appendHeaderComp(t,o,n),this.setupWidth(),this.setupMovingCss(),this.setupTooltip(),this.setupResize(),this.setupMenuClass(),this.setupSortableClass(o),this.addColumnHoverListener(),this.addFeature(this.getContext(),new P.HoverFeature([this.column],this.getGui())),this.addDestroyableEventListener(this.column,p.Column.EVENT_FILTER_ACTIVE_CHANGED,this.onFilterChanged.bind(this)),this.onFilterChanged(),this.addFeature(this.getContext(),new b.SelectAllFeature(this.cbSelectAll,this.column));var r=new m.SetLeftFeature(this.column,this.getGui(),this.beans);r.init(),this.addDestroyFunc(r.destroy.bind(r)),this.addAttributes(),g.CssClassApplier.addHeaderClassesFromColDef(e,this.getGui(),this.gridOptionsWrapper,this.column,null)},t.prototype.addColumnHoverListener=function(){this.addDestroyableEventListener(this.eventService,R.Events.EVENT_COLUMN_HOVER_CHANGED,this.onColumnHover.bind(this)),this.onColumnHover()},t.prototype.onColumnHover=function(){var e=this.columnHoverService.isHovered(this.column);T._.addOrRemoveCssClass(this.getGui(),"ag-column-hover",e)},t.prototype.setupSortableClass=function(e){if(e){var t=this.getGui();T._.addCssClass(t,"ag-header-cell-sortable")}},t.prototype.onFilterChanged=function(){var e=this.column.isFilterActive();T._.addOrRemoveCssClass(this.getGui(),"ag-header-cell-filtered",e)},t.prototype.appendHeaderComp=function(e,t,o){var n=this,r={column:this.column,displayName:e,enableSorting:t,enableMenu:o,showColumnMenu:function(e){n.gridApi.showColumnMenuAfterButtonClick(n.column,e)},progressSort:function(e){n.sortController.progressSort(n.column,!!e,"uiColumnSorted")},setSort:function(e,t){n.sortController.setSortForColumn(n.column,e,!!t,"uiColumnSorted")},api:this.gridApi,columnApi:this.columnApi,context:this.gridOptionsWrapper.getContext()},i=this.afterHeaderCompCreated.bind(this,e);this.userComponentFactory.newHeaderComponent(r).then(i)},t.prototype.afterHeaderCompCreated=function(e,t){this.appendChild(t),this.setupMove(t.getGui(),e)},t.prototype.onColumnMovingChanged=function(){this.column.isMoving()?T._.addCssClass(this.getGui(),"ag-header-cell-moving"):T._.removeCssClass(this.getGui(),"ag-header-cell-moving")},t.prototype.setupMove=function(e,t){var o=this;if(!(this.gridOptionsWrapper.isSuppressMovableColumns()||this.getComponentHolder().suppressMovable||this.column.isLockPosition())&&e){var n={type:u.DragSourceType.HeaderCell,eElement:e,dragItemCallback:function(){return o.createDragItem()},dragItemName:t,dragSourceDropTarget:this.dragSourceDropTarget,dragStarted:function(){return o.column.setMoving(!0,"uiColumnMoved")},dragStopped:function(){return o.column.setMoving(!1,"uiColumnMoved")}};this.dragAndDropService.addDragSource(n,!0),this.addDestroyFunc((function(){return o.dragAndDropService.removeDragSource(n)}))}},t.prototype.createDragItem=function(){var e={};return e[this.column.getId()]=this.column.isVisible(),{columns:[this.column],visibleState:e}},t.prototype.setupResize=function(){var e=this,t=this.getComponentHolder();if(this.eResize)if(this.column.isResizable()){var o=this.horizontalResizeService.addResizeBar({eResizeBar:this.eResize,onResizeStart:this.onResizeStart.bind(this),onResizing:this.onResizing.bind(this,!1),onResizeEnd:this.onResizing.bind(this,!0)});if(this.addDestroyFunc(o),!this.gridOptionsWrapper.isSuppressAutoSize()&&!t.suppressAutoSize){this.addDestroyableEventListener(this.eResize,"dblclick",(function(){e.columnController.autoSizeColumn(e.column,"uiColumnResized")}));var n=new A.TouchListener(this.eResize);this.addDestroyableEventListener(n,A.TouchListener.EVENT_DOUBLE_TAP,(function(){e.columnController.autoSizeColumn(e.column,"uiColumnResized")})),this.addDestroyFunc(n.destroy.bind(n))}}else T._.removeFromParent(this.eResize)},t.prototype.onResizing=function(e,t){var o=this.normaliseResizeAmount(t),n=this.resizeStartWidth+o;this.columnController.setColumnWidth(this.column,n,this.resizeWithShiftKey,e,"uiColumnDragged"),e&&T._.removeCssClass(this.getGui(),"ag-column-resizing")},t.prototype.onResizeStart=function(e){this.resizeStartWidth=this.column.getActualWidth(),this.resizeWithShiftKey=e,T._.addCssClass(this.getGui(),"ag-column-resizing")},t.prototype.getTooltipText=function(){return this.getComponentHolder().headerTooltip},t.prototype.setupTooltip=function(){var e=this.getTooltipText();null!=e&&(this.gridOptionsWrapper.isEnableBrowserTooltips()?this.getGui().setAttribute("title",e):this.beans.tooltipManager.registerTooltip(this))},t.prototype.setupMovingCss=function(){this.addDestroyableEventListener(this.column,p.Column.EVENT_MOVING_CHANGED,this.onColumnMovingChanged.bind(this)),this.onColumnMovingChanged()},t.prototype.addAttributes=function(){this.getGui().setAttribute("col-id",this.column.getColId())},t.prototype.setupWidth=function(){this.addDestroyableEventListener(this.column,p.Column.EVENT_WIDTH_CHANGED,this.onColumnWidthChanged.bind(this)),this.onColumnWidthChanged()},t.prototype.setupMenuClass=function(){this.addDestroyableEventListener(this.column,p.Column.EVENT_MENU_VISIBLE_CHANGED,this.onMenuVisible.bind(this)),this.onColumnWidthChanged()},t.prototype.onMenuVisible=function(){this.addOrRemoveCssClass("ag-column-menu-visible",this.column.isMenuVisible())},t.prototype.onColumnWidthChanged=function(){this.getGui().style.width=this.column.getActualWidth()+"px"},t.prototype.normaliseResizeAmount=function(e){var t=e;return this.gridOptionsWrapper.isEnableRtl()?this.pinned!==p.Column.PINNED_LEFT&&(t*=-1):this.pinned===p.Column.PINNED_RIGHT&&(t*=-1),t},t.TEMPLATE='<div class="ag-header-cell" role="presentation" unselectable="on"><div ref="eResize" class="ag-header-cell-resize" role="presentation"></div><ag-checkbox ref="cbSelectAll" class="ag-header-select-all" role="presentation"></ag-checkbox></div>',i([l.Autowired("gridOptionsWrapper"),s("design:type",f.GridOptionsWrapper)],t.prototype,"gridOptionsWrapper",void 0),i([l.Autowired("dragAndDropService"),s("design:type",u.DragAndDropService)],t.prototype,"dragAndDropService",void 0),i([l.Autowired("columnController"),s("design:type",d.ColumnController)],t.prototype,"columnController",void 0),i([l.Autowired("horizontalResizeService"),s("design:type",h.HorizontalResizeService)],t.prototype,"horizontalResizeService",void 0),i([l.Autowired("menuFactory"),s("design:type",Object)],t.prototype,"menuFactory",void 0),i([l.Autowired("gridApi"),s("design:type",y.GridApi)],t.prototype,"gridApi",void 0),i([l.Autowired("columnApi"),s("design:type",c.ColumnApi)],t.prototype,"columnApi",void 0),i([l.Autowired("sortController"),s("design:type",v.SortController)],t.prototype,"sortController",void 0),i([l.Autowired("eventService"),s("design:type",C.EventService)],t.prototype,"eventService",void 0),i([l.Autowired("userComponentFactory"),s("design:type",w.UserComponentFactory)],t.prototype,"userComponentFactory",void 0),i([l.Autowired("columnHoverService"),s("design:type",S.ColumnHoverService)],t.prototype,"columnHoverService",void 0),i([l.Autowired("beans"),s("design:type",O.Beans)],t.prototype,"beans",void 0),i([E.RefSelector("eResize"),s("design:type",HTMLElement)],t.prototype,"eResize",void 0),i([E.RefSelector("cbSelectAll"),s("design:type",_.AgCheckbox)],t.prototype,"cbSelectAll",void 0),i([l.PostConstruct,s("design:type",Function),s("design:paramtypes",[]),s("design:returntype",void 0)],t.prototype,"init",null),t}(a.Component);t.HeaderWrapperComp=D},17890:(e,t)=>{function o(e,t,o,n){null!==e?"number"!=typeof n?i(t,"querySelectors",{attributeName:o,querySelector:e}):console.error("ag-Grid: QuerySelector should be on an attribute"):console.error("ag-Grid: QuerySelector selector should not be null")}function n(e,t,o){null!==e?i(t,"listenerMethods",{methodName:o,eventName:e}):console.error("ag-Grid: EventListener eventName should not be null")}function r(e,t,o){null!==e?i(t,"methods",{methodName:o,alias:e}):console.error("ag-Grid: EventListener eventName should not be null")}function i(e,t,o){var n=function(e,t){return e.__agComponentMetaData||(e.__agComponentMetaData={}),e.__agComponentMetaData[t]||(e.__agComponentMetaData[t]={}),e.__agComponentMetaData[t]}(e,e.constructor.name);n[t]||(n[t]=[]),n[t].push(o)}Object.defineProperty(t,"__esModule",{value:!0}),t.QuerySelector=function(e){return o.bind(this,e)},t.RefSelector=function(e){return o.bind(this,"[ref="+e+"]")},t.Listener=function(e){return n.bind(this,e)},t.Method=function(e){return r.bind(this,e)}},18776:function(e,t){!function(e){var t=[509,0,227,0,150,4,294,9,1368,2,2,1,6,3,41,2,5,0,166,1,574,3,9,9,7,9,32,4,318,1,78,5,71,10,50,3,123,2,54,14,32,10,3,1,11,3,46,10,8,0,46,9,7,2,37,13,2,9,6,1,45,0,13,2,49,13,9,3,2,11,83,11,7,0,3,0,158,11,6,9,7,3,56,1,2,6,3,1,3,2,10,0,11,1,3,6,4,4,68,8,2,0,3,0,2,3,2,4,2,0,15,1,83,17,10,9,5,0,82,19,13,9,214,6,3,8,28,1,83,16,16,9,82,12,9,9,7,19,58,14,5,9,243,14,166,9,71,5,2,1,3,3,2,0,2,1,13,9,120,6,3,6,4,0,29,9,41,6,2,3,9,0,10,10,47,15,199,7,137,9,54,7,2,7,17,9,57,21,2,13,123,5,4,0,2,1,2,6,2,0,9,9,49,4,2,1,2,4,9,9,55,9,266,3,10,1,2,0,49,6,4,4,14,10,5350,0,7,14,11465,27,2343,9,87,9,39,4,60,6,26,9,535,9,470,0,2,54,8,3,82,0,12,1,19628,1,4178,9,519,45,3,22,543,4,4,5,9,7,3,6,31,3,149,2,1418,49,513,54,5,49,9,0,15,0,23,4,2,14,1361,6,2,16,3,6,2,1,2,4,101,0,161,6,10,9,357,0,62,13,499,13,245,1,2,9,233,0,3,0,8,1,6,0,475,6,110,6,6,9,4759,9,787719,239],o=[0,11,2,25,2,18,2,1,2,14,3,13,35,122,70,52,268,28,4,48,48,31,14,29,6,37,11,29,3,35,5,7,2,4,43,157,19,35,5,35,5,39,9,51,13,10,2,14,2,6,2,1,2,10,2,14,2,6,2,1,4,51,13,310,10,21,11,7,25,5,2,41,2,8,70,5,3,0,2,43,2,1,4,0,3,22,11,22,10,30,66,18,2,1,11,21,11,25,7,25,39,55,7,1,65,0,16,3,2,2,2,28,43,28,4,28,36,7,2,27,28,53,11,21,11,18,14,17,111,72,56,50,14,50,14,35,39,27,10,22,251,41,7,1,17,5,57,28,11,0,9,21,43,17,47,20,28,22,13,52,58,1,3,0,14,44,33,24,27,35,30,0,3,0,9,34,4,0,13,47,15,3,22,0,2,0,36,17,2,24,20,1,64,6,2,0,2,3,2,14,2,9,8,46,39,7,3,1,3,21,2,6,2,1,2,4,4,0,19,0,13,4,31,9,2,0,3,0,2,37,2,0,26,0,2,0,45,52,19,3,21,2,31,47,21,1,2,0,185,46,42,3,37,47,21,0,60,42,14,0,72,26,38,6,186,43,117,63,32,7,3,0,3,7,2,1,2,23,16,0,2,0,95,7,3,38,17,0,2,0,29,0,11,39,8,0,22,0,12,45,20,0,19,72,200,32,32,8,2,36,18,0,50,29,113,6,2,1,2,37,22,0,26,5,2,1,2,31,15,0,24,43,261,18,16,0,2,12,2,33,125,0,80,921,103,110,18,195,2637,96,16,1071,18,5,26,3994,6,582,6842,29,1763,568,8,30,18,78,18,29,19,47,17,3,32,20,6,18,433,44,212,63,33,24,3,24,45,74,6,0,67,12,65,1,2,0,15,4,10,7381,42,31,98,114,8702,3,2,6,2,1,2,290,16,0,30,2,3,0,15,3,9,395,2309,106,6,12,4,8,8,9,5991,84,2,70,2,1,3,0,3,1,3,3,2,11,2,0,2,6,2,64,2,3,3,7,2,6,2,27,2,3,2,4,2,0,4,6,2,339,3,24,2,24,2,30,2,24,2,30,2,24,2,30,2,24,2,30,2,24,2,7,1845,30,7,5,262,61,147,44,11,6,17,0,322,29,19,43,485,27,229,29,3,0,208,30,2,2,2,1,2,6,3,4,10,1,225,6,2,3,2,1,2,14,2,196,60,67,8,0,1205,3,2,26,2,1,2,0,3,0,2,9,2,3,2,0,2,0,7,0,5,0,2,0,2,0,2,2,2,1,2,0,3,0,2,0,2,0,2,0,2,0,2,1,2,0,3,3,2,6,2,3,2,3,2,0,2,9,2,16,6,2,2,4,2,16,4421,42719,33,4381,3,5773,3,7472,16,621,2467,541,1507,4938,6,8489],n="ªµºÀ-ÖØ-öø-ˁˆ-ˑˠ-ˤˬˮͰ-ʹͶͷͺ-ͽͿΆΈ-ΊΌΎ-ΡΣ-ϵϷ-ҁҊ-ԯԱ-Ֆՙՠ-ֈא-תׯ-ײؠ-يٮٯٱ-ۓەۥۦۮۯۺ-ۼۿܐܒ-ܯݍ-ޥޱߊ-ߪߴߵߺࠀ-ࠕࠚࠤࠨࡀ-ࡘࡠ-ࡪࡰ-ࢇࢉ-ࢠ-ࣉऄ-हऽॐक़-ॡॱ-ঀঅ-ঌএঐও-নপ-রলশ-হঽৎড়ঢ়য়-ৡৰৱৼਅ-ਊਏਐਓ-ਨਪ-ਰਲਲ਼ਵਸ਼ਸਹਖ਼-ੜਫ਼ੲ-ੴઅ-ઍએ-ઑઓ-નપ-રલળવ-હઽૐૠૡૹଅ-ଌଏଐଓ-ନପ-ରଲଳଵ-ହଽଡ଼ଢ଼ୟ-ୡୱஃஅ-ஊஎ-ஐஒ-கஙசஜஞடணதந-பம-ஹௐఅ-ఌఎ-ఐఒ-నప-హఽౘ-ౚౝౠౡಀಅ-ಌಎ-ಐಒ-ನಪ-ಳವ-ಹಽ-ೞೠೡೱೲഄ-ഌഎ-ഐഒ-ഺഽൎൔ-ൖൟ-ൡൺ-ൿඅ-ඖක-නඳ-රලව-ෆก-ะาำเ-ๆກຂຄຆ-ຊຌ-ຣລວ-ະາຳຽເ-ໄໆໜ-ໟༀཀ-ཇཉ-ཬྈ-ྌက-ဪဿၐ-ၕၚ-ၝၡၥၦၮ-ၰၵ-ႁႎႠ-ჅჇჍა-ჺჼ-ቈቊ-ቍቐ-ቖቘቚ-ቝበ-ኈኊ-ኍነ-ኰኲ-ኵኸ-ኾዀዂ-ዅወ-ዖዘ-ጐጒ-ጕጘ-ፚᎀ-ᎏᎠ-Ᏽᏸ-ᏽᐁ-ᙬᙯ-ᙿᚁ-ᚚᚠ-ᛪᛮ-ᛸᜀ-ᜑᜟ-ᜱᝀ-ᝑᝠ-ᝬᝮ-ᝰក-ឳៗៜᠠ-ᡸᢀ-ᢨᢪᢰ-ᣵᤀ-ᤞᥐ-ᥭᥰ-ᥴᦀ-ᦫᦰ-ᧉᨀ-ᨖᨠ-ᩔᪧᬅ-ᬳᭅ-ᭌᮃ-ᮠᮮᮯᮺ-ᯥᰀ-ᰣᱍ-ᱏᱚ-ᱽᲀ-Ა-ᲺᲽ-Ჿᳩ-ᳬᳮ-ᳳᳵᳶᳺᴀ-ᶿḀ-ἕἘ-Ἕἠ-ὅὈ-Ὅὐ-ὗὙὛὝὟ-ώᾀ-ᾴᾶ-ᾼιῂ-ῄῆ-ῌῐ-ΐῖ-Ίῠ-Ῥῲ-ῴῶ-ῼⁱⁿₐ-ₜℂℇℊ-ℓℕ℘-ℝℤΩℨK-ℹℼ-ℿⅅ-ⅉⅎⅠ-ↈⰀ-ⳤⳫ-ⳮⳲⳳⴀ-ⴥⴧⴭⴰ-ⵧⵯⶀ-ⶖⶠ-ⶦⶨ-ⶮⶰ-ⶶⶸ-ⶾⷀ-ⷆⷈ-ⷎⷐ-ⷖⷘ-ⷞ々-〇〡-〩〱-〵〸-〼ぁ-ゖ゛-ゟァ-ヺー-ヿㄅ-ㄯㄱ-ㆎㆠ-ㆿㇰ-ㇿ㐀-䶿一-ꒌꓐ-ꓽꔀ-ꘌꘐ-ꘟꘪꘫꙀ-ꙮꙿ-ꚝꚠ-ꛯꜗ-ꜟꜢ-ꞈꞋ--ꠁꠃ-ꠅꠇ-ꠊꠌ-ꠢꡀ-ꡳꢂ-ꢳꣲ-ꣷꣻꣽꣾꤊ-ꤥꤰ-ꥆꥠ-ꥼꦄ-ꦲꧏꧠ-ꧤꧦ-ꧯꧺ-ꧾꨀ-ꨨꩀ-ꩂꩄ-ꩋꩠ-ꩶꩺꩾ-ꪯꪱꪵꪶꪹ-ꪽꫀꫂꫛ-ꫝꫠ-ꫪꫲ-ꫴꬁ-ꬆꬉ-ꬎꬑ-ꬖꬠ-ꬦꬨ-ꬮꬰ-ꭚꭜ-ꭩꭰ-ꯢ가-힣ힰ-ퟆퟋ-ퟻ豈-舘並-龎ff-stﬓ-ﬗיִײַ-ﬨשׁ-זּטּ-לּמּנּסּףּפּצּ-ﮱﯓ-ﴽﵐ-ﶏﶒ-ﷇﷰ-ﷻﹰ-ﹴﹶ-ﻼA-Za-zヲ-하-ᅦᅧ-ᅬᅭ-ᅲᅳ-ᅵ",r={3:"abstract boolean byte char class double enum export extends final float goto implements import int interface long native package private protected public short static super synchronized throws transient volatile",5:"class enum extends super const export import",6:"enum",strict:"implements interface let package private protected public static yield",strictBind:"eval arguments"},i="break case catch continue debugger default do else finally for function if return switch throw try var while with null true false instanceof typeof void delete new in this",s={5:i,"5module":i+" export import",6:i+" const class extends export import super"},a=/^in(stanceof)?$/,l=new RegExp("["+n+"]"),p=new RegExp("["+n+"·̀-ͯ·҃-֑҇-ׇֽֿׁׂׅׄؐ-ًؚ-٩ٰۖ-ۜ۟-۪ۤۧۨ-ۭ۰-۹ܑܰ-݊ަ-ް߀-߉߫-߽߳ࠖ-࠙ࠛ-ࠣࠥ-ࠧࠩ-࡙࠭-࡛-࢟࣊-ࣣ࣡-ःऺ-़ा-ॏ॑-ॗॢॣ०-९ঁ-ঃ়া-ৄেৈো-্ৗৢৣ০-৯৾ਁ-ਃ਼ਾ-ੂੇੈੋ-੍ੑ੦-ੱੵઁ-ઃ઼ા-ૅે-ૉો-્ૢૣ૦-૯ૺ-૿ଁ-ଃ଼ା-ୄେୈୋ-୍୕-ୗୢୣ୦-୯ஂா-ூெ-ைொ-்ௗ௦-௯ఀ-ఄ఼ా-ౄె-ైొ-్ౕౖౢౣ౦-౯ಁ-ಃ಼ಾ-ೄೆ-ೈೊ-್ೕೖೢೣ೦-೯ೳഀ-ഃ഻഼ാ-ൄെ-ൈൊ-്ൗൢൣ൦-൯ඁ-ඃ්ා-ුූෘ-ෟ෦-෯ෲෳัิ-ฺ็-๎๐-๙ັິ-ຼ່-໎໐-໙༘༙༠-༩༹༵༷༾༿ཱ-྄྆྇ྍ-ྗྙ-ྼ࿆ါ-ှ၀-၉ၖ-ၙၞ-ၠၢ-ၤၧ-ၭၱ-ၴႂ-ႍႏ-ႝ፝-፟፩-፱ᜒ-᜕ᜲ-᜴ᝒᝓᝲᝳ឴-៓៝០-៩᠋-᠍᠏-᠙ᢩᤠ-ᤫᤰ-᤻᥆-᥏᧐-᧚ᨗ-ᨛᩕ-ᩞ᩠-᩿᩼-᪉᪐-᪙᪰-᪽ᪿ--ᬀ-ᬄ᬴-᭄᭐-᭙᭫-᭳ᮀ-ᮂᮡ-ᮭ᮰-᮹᯦-᯳ᰤ-᰷᱀-᱉᱐-᱙᳐-᳔᳒-᳨᳭᳴᳷-᳹᷀-᷿‿⁀⁔⃐-⃥⃜⃡-⃰⳯-⵿⳱ⷠ-〪ⷿ-゙゚〯・꘠-꘩꙯ꙴ-꙽ꚞꚟ꛰꛱ꠂ꠆ꠋꠣ-ꠧ꠬ꢀꢁꢴ-ꣅ꣐-꣙꣠-꣱ꣿ-꤉ꤦ-꤭ꥇ-꥓ꦀ-ꦃ꦳-꧀꧐-꧙ꧥ꧰-꧹ꨩ-ꨶꩃꩌꩍ꩐-꩙ꩻ-ꩽꪰꪲ-ꪴꪷꪸꪾ꪿꫁ꫫ-ꫯꫵ꫶ꯣ-ꯪ꯬꯭꯰-꯹ﬞ︀-️︠-︯︳︴﹍-﹏0-9_・]");function u(e,t){for(var o=65536,n=0;n<t.length;n+=2){if((o+=t[n])>e)return!1;if((o+=t[n+1])>=e)return!0}return!1}function c(e,t){return e<65?36===e:e<91||(e<97?95===e:e<123||(e<=65535?e>=170&&l.test(String.fromCharCode(e)):!1!==t&&u(e,o)))}function d(e,n){return e<48?36===e:e<58||!(e<65)&&(e<91||(e<97?95===e:e<123||(e<=65535?e>=170&&p.test(String.fromCharCode(e)):!1!==n&&(u(e,o)||u(e,t)))))}var h=function(e,t){void 0===t&&(t={}),this.label=e,this.keyword=t.keyword,this.beforeExpr=!!t.beforeExpr,this.startsExpr=!!t.startsExpr,this.isLoop=!!t.isLoop,this.isAssign=!!t.isAssign,this.prefix=!!t.prefix,this.postfix=!!t.postfix,this.binop=t.binop||null,this.updateContext=null};function f(e,t){return new h(e,{beforeExpr:!0,binop:t})}var g={beforeExpr:!0},m={startsExpr:!0},y={};function v(e,t){return void 0===t&&(t={}),t.keyword=e,y[e]=new h(e,t)}var C={num:new h("num",m),regexp:new h("regexp",m),string:new h("string",m),name:new h("name",m),privateId:new h("privateId",m),eof:new h("eof"),bracketL:new h("[",{beforeExpr:!0,startsExpr:!0}),bracketR:new h("]"),braceL:new h("{",{beforeExpr:!0,startsExpr:!0}),braceR:new h("}"),parenL:new h("(",{beforeExpr:!0,startsExpr:!0}),parenR:new h(")"),comma:new h(",",g),semi:new h(";",g),colon:new h(":",g),dot:new h("."),question:new h("?",g),questionDot:new h("?."),arrow:new h("=>",g),template:new h("template"),invalidTemplate:new h("invalidTemplate"),ellipsis:new h("...",g),backQuote:new h("`",m),dollarBraceL:new h("${",{beforeExpr:!0,startsExpr:!0}),eq:new h("=",{beforeExpr:!0,isAssign:!0}),assign:new h("_=",{beforeExpr:!0,isAssign:!0}),incDec:new h("++/--",{prefix:!0,postfix:!0,startsExpr:!0}),prefix:new h("!/~",{beforeExpr:!0,prefix:!0,startsExpr:!0}),logicalOR:f("||",1),logicalAND:f("&&",2),bitwiseOR:f("|",3),bitwiseXOR:f("^",4),bitwiseAND:f("&",5),equality:f("==/!=/===/!==",6),relational:f("</>/<=/>=",7),bitShift:f("<</>>/>>>",8),plusMin:new h("+/-",{beforeExpr:!0,binop:9,prefix:!0,startsExpr:!0}),modulo:f("%",10),star:f("*",10),slash:f("/",10),starstar:new h("**",{beforeExpr:!0}),coalesce:f("??",1),_break:v("break"),_case:v("case",g),_catch:v("catch"),_continue:v("continue"),_debugger:v("debugger"),_default:v("default",g),_do:v("do",{isLoop:!0,beforeExpr:!0}),_else:v("else",g),_finally:v("finally"),_for:v("for",{isLoop:!0}),_function:v("function",m),_if:v("if"),_return:v("return",g),_switch:v("switch"),_throw:v("throw",g),_try:v("try"),_var:v("var"),_const:v("const"),_while:v("while",{isLoop:!0}),_with:v("with"),_new:v("new",{beforeExpr:!0,startsExpr:!0}),_this:v("this",m),_super:v("super",m),_class:v("class",m),_extends:v("extends",g),_export:v("export"),_import:v("import",m),_null:v("null",m),_true:v("true",m),_false:v("false",m),_in:v("in",{beforeExpr:!0,binop:7}),_instanceof:v("instanceof",{beforeExpr:!0,binop:7}),_typeof:v("typeof",{beforeExpr:!0,prefix:!0,startsExpr:!0}),_void:v("void",{beforeExpr:!0,prefix:!0,startsExpr:!0}),_delete:v("delete",{beforeExpr:!0,prefix:!0,startsExpr:!0})},w=/\r\n?|\n|\u2028|\u2029/,_=new RegExp(w.source,"g");function E(e){return 10===e||13===e||8232===e||8233===e}function b(e,t,o){void 0===o&&(o=e.length);for(var n=t;n<o;n++){var r=e.charCodeAt(n);if(E(r))return n<o-1&&13===r&&10===e.charCodeAt(n+1)?n+2:n+1}return-1}var R=/[\u1680\u2000-\u200a\u202f\u205f\u3000\ufeff]/,S=/(?:\s|\/\/.*|\/\*[^]*?\*\/)*/g,O=Object.prototype,P=O.hasOwnProperty,A=O.toString,T=Object.hasOwn||function(e,t){return P.call(e,t)},D=Array.isArray||function(e){return"[object Array]"===A.call(e)},N=Object.create(null);function I(e){return N[e]||(N[e]=new RegExp("^(?:"+e.replace(/ /g,"|")+")$"))}function x(e){return e<=65535?String.fromCharCode(e):(e-=65536,String.fromCharCode(55296+(e>>10),56320+(1023&e)))}var F=/(?:[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])/,L=function(e,t){this.line=e,this.column=t};L.prototype.offset=function(e){return new L(this.line,this.column+e)};var M=function(e,t,o){this.start=t,this.end=o,null!==e.sourceFile&&(this.source=e.sourceFile)};function k(e,t){for(var o=1,n=0;;){var r=b(e,n,t);if(r<0)return new L(o,t-n);++o,n=r}}var G={ecmaVersion:null,sourceType:"script",onInsertedSemicolon:null,onTrailingComma:null,allowReserved:null,allowReturnOutsideFunction:!1,allowImportExportEverywhere:!1,allowAwaitOutsideFunction:null,allowSuperOutsideMethod:null,allowHashBang:!1,checkPrivateFields:!0,locations:!1,onToken:null,onComment:null,ranges:!1,program:null,sourceFile:null,directSourceFile:null,preserveParens:!1},V=!1;function j(e){var t={};for(var o in G)t[o]=e&&T(e,o)?e[o]:G[o];if("latest"===t.ecmaVersion?t.ecmaVersion=1e8:null==t.ecmaVersion?(!V&&"object"==typeof console&&console.warn&&(V=!0,console.warn("Since Acorn 8.0.0, options.ecmaVersion is required.\nDefaulting to 2020, but this will stop working in the future.")),t.ecmaVersion=11):t.ecmaVersion>=2015&&(t.ecmaVersion-=2009),null==t.allowReserved&&(t.allowReserved=t.ecmaVersion<5),e&&null!=e.allowHashBang||(t.allowHashBang=t.ecmaVersion>=14),D(t.onToken)){var n=t.onToken;t.onToken=function(e){return n.push(e)}}if(D(t.onComment)&&(t.onComment=function(e,t){return function(o,n,r,i,s,a){var l={type:o?"Block":"Line",value:n,start:r,end:i};e.locations&&(l.loc=new M(this,s,a)),e.ranges&&(l.range=[r,i]),t.push(l)}}(t,t.onComment)),"commonjs"===t.sourceType&&t.allowAwaitOutsideFunction)throw new Error("Cannot use allowAwaitOutsideFunction with sourceType: commonjs");return t}var W=256,H=259;function B(e,t){return 2|(e?4:0)|(t?8:0)}var U=function(e,t,o){this.options=e=j(e),this.sourceFile=e.sourceFile,this.keywords=I(s[e.ecmaVersion>=6?6:"module"===e.sourceType?"5module":5]);var n="";!0!==e.allowReserved&&(n=r[e.ecmaVersion>=6?6:5===e.ecmaVersion?5:3],"module"===e.sourceType&&(n+=" await")),this.reservedWords=I(n);var i=(n?n+" ":"")+r.strict;this.reservedWordsStrict=I(i),this.reservedWordsStrictBind=I(i+" "+r.strictBind),this.input=String(t),this.containsEsc=!1,o?(this.pos=o,this.lineStart=this.input.lastIndexOf("\n",o-1)+1,this.curLine=this.input.slice(0,this.lineStart).split(w).length):(this.pos=this.lineStart=0,this.curLine=1),this.type=C.eof,this.value=null,this.start=this.end=this.pos,this.startLoc=this.endLoc=this.curPosition(),this.lastTokEndLoc=this.lastTokStartLoc=null,this.lastTokStart=this.lastTokEnd=this.pos,this.context=this.initialContext(),this.exprAllowed=!0,this.inModule="module"===e.sourceType,this.strict=this.inModule||this.strictDirective(this.pos),this.potentialArrowAt=-1,this.potentialArrowInForAwait=!1,this.yieldPos=this.awaitPos=this.awaitIdentPos=0,this.labels=[],this.undefinedExports=Object.create(null),0===this.pos&&e.allowHashBang&&"#!"===this.input.slice(0,2)&&this.skipLineComment(2),this.scopeStack=[],this.enterScope("commonjs"===this.options.sourceType?2:1),this.regexpState=null,this.privateNameStack=[]},Y={inFunction:{configurable:!0},inGenerator:{configurable:!0},inAsync:{configurable:!0},canAwait:{configurable:!0},allowReturn:{configurable:!0},allowSuper:{configurable:!0},allowDirectSuper:{configurable:!0},treatFunctionsAsVar:{configurable:!0},allowNewDotTarget:{configurable:!0},allowUsing:{configurable:!0},inClassStaticBlock:{configurable:!0}};U.prototype.parse=function(){var e=this.options.program||this.startNode();return this.nextToken(),this.parseTopLevel(e)},Y.inFunction.get=function(){return(2&this.currentVarScope().flags)>0},Y.inGenerator.get=function(){return(8&this.currentVarScope().flags)>0},Y.inAsync.get=function(){return(4&this.currentVarScope().flags)>0},Y.canAwait.get=function(){for(var e=this.scopeStack.length-1;e>=0;e--){var t=this.scopeStack[e].flags;if(768&t)return!1;if(2&t)return(4&t)>0}return this.inModule&&this.options.ecmaVersion>=13||this.options.allowAwaitOutsideFunction},Y.allowReturn.get=function(){return!!this.inFunction||!!(this.options.allowReturnOutsideFunction&&1&this.currentVarScope().flags)},Y.allowSuper.get=function(){return(64&this.currentThisScope().flags)>0||this.options.allowSuperOutsideMethod},Y.allowDirectSuper.get=function(){return(128&this.currentThisScope().flags)>0},Y.treatFunctionsAsVar.get=function(){return this.treatFunctionsAsVarInScope(this.currentScope())},Y.allowNewDotTarget.get=function(){for(var e=this.scopeStack.length-1;e>=0;e--){var t=this.scopeStack[e].flags;if(768&t||2&t&&!(16&t))return!0}return!1},Y.allowUsing.get=function(){var e=this.currentScope().flags;return!(1024&e||!this.inModule&&1&e)},Y.inClassStaticBlock.get=function(){return(this.currentVarScope().flags&W)>0},U.extend=function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];for(var o=this,n=0;n<e.length;n++)o=e[n](o);return o},U.parse=function(e,t){return new this(t,e).parse()},U.parseExpressionAt=function(e,t,o){var n=new this(o,e,t);return n.nextToken(),n.parseExpression()},U.tokenizer=function(e,t){return new this(t,e)},Object.defineProperties(U.prototype,Y);var z=U.prototype,$=/^(?:'((?:\\[^]|[^'\\])*?)'|"((?:\\[^]|[^"\\])*?)")/;z.strictDirective=function(e){if(this.options.ecmaVersion<5)return!1;for(;;){S.lastIndex=e,e+=S.exec(this.input)[0].length;var t=$.exec(this.input.slice(e));if(!t)return!1;if("use strict"===(t[1]||t[2])){S.lastIndex=e+t[0].length;var o=S.exec(this.input),n=o.index+o[0].length,r=this.input.charAt(n);return";"===r||"}"===r||w.test(o[0])&&!(/[(`.[+\-/*%<>=,?^&]/.test(r)||"!"===r&&"="===this.input.charAt(n+1))}e+=t[0].length,S.lastIndex=e,e+=S.exec(this.input)[0].length,";"===this.input[e]&&e++}},z.eat=function(e){return this.type===e&&(this.next(),!0)},z.isContextual=function(e){return this.type===C.name&&this.value===e&&!this.containsEsc},z.eatContextual=function(e){return!!this.isContextual(e)&&(this.next(),!0)},z.expectContextual=function(e){this.eatContextual(e)||this.unexpected()},z.canInsertSemicolon=function(){return this.type===C.eof||this.type===C.braceR||w.test(this.input.slice(this.lastTokEnd,this.start))},z.insertSemicolon=function(){if(this.canInsertSemicolon())return this.options.onInsertedSemicolon&&this.options.onInsertedSemicolon(this.lastTokEnd,this.lastTokEndLoc),!0},z.semicolon=function(){this.eat(C.semi)||this.insertSemicolon()||this.unexpected()},z.afterTrailingComma=function(e,t){if(this.type===e)return this.options.onTrailingComma&&this.options.onTrailingComma(this.lastTokStart,this.lastTokStartLoc),t||this.next(),!0},z.expect=function(e){this.eat(e)||this.unexpected()},z.unexpected=function(e){this.raise(null!=e?e:this.start,"Unexpected token")};var K=function(){this.shorthandAssign=this.trailingComma=this.parenthesizedAssign=this.parenthesizedBind=this.doubleProto=-1};z.checkPatternErrors=function(e,t){if(e){e.trailingComma>-1&&this.raiseRecoverable(e.trailingComma,"Comma is not permitted after the rest element");var o=t?e.parenthesizedAssign:e.parenthesizedBind;o>-1&&this.raiseRecoverable(o,t?"Assigning to rvalue":"Parenthesized pattern")}},z.checkExpressionErrors=function(e,t){if(!e)return!1;var o=e.shorthandAssign,n=e.doubleProto;if(!t)return o>=0||n>=0;o>=0&&this.raise(o,"Shorthand property assignments are valid only in destructuring patterns"),n>=0&&this.raiseRecoverable(n,"Redefinition of __proto__ property")},z.checkYieldAwaitInDefaultParams=function(){this.yieldPos&&(!this.awaitPos||this.yieldPos<this.awaitPos)&&this.raise(this.yieldPos,"Yield expression cannot be a default value"),this.awaitPos&&this.raise(this.awaitPos,"Await expression cannot be a default value")},z.isSimpleAssignTarget=function(e){return"ParenthesizedExpression"===e.type?this.isSimpleAssignTarget(e.expression):"Identifier"===e.type||"MemberExpression"===e.type};var q=U.prototype;q.parseTopLevel=function(e){var t=Object.create(null);for(e.body||(e.body=[]);this.type!==C.eof;){var o=this.parseStatement(null,!0,t);e.body.push(o)}if(this.inModule)for(var n=0,r=Object.keys(this.undefinedExports);n<r.length;n+=1){var i=r[n];this.raiseRecoverable(this.undefinedExports[i].start,"Export '"+i+"' is not defined")}return this.adaptDirectivePrologue(e.body),this.next(),e.sourceType="commonjs"===this.options.sourceType?"script":this.options.sourceType,this.finishNode(e,"Program")};var Z={kind:"loop"},Q={kind:"switch"};q.isLet=function(e){if(this.options.ecmaVersion<6||!this.isContextual("let"))return!1;S.lastIndex=this.pos;var t=S.exec(this.input),o=this.pos+t[0].length,n=this.fullCharCodeAt(o);if(91===n||92===n)return!0;if(e)return!1;if(123===n)return!0;if(c(n)){var r=o;do{o+=n<=65535?1:2}while(d(n=this.fullCharCodeAt(o)));if(92===n)return!0;var i=this.input.slice(r,o);if(!a.test(i))return!0}return!1},q.isAsyncFunction=function(){if(this.options.ecmaVersion<8||!this.isContextual("async"))return!1;S.lastIndex=this.pos;var e,t=S.exec(this.input),o=this.pos+t[0].length;return!(w.test(this.input.slice(this.pos,o))||"function"!==this.input.slice(o,o+8)||o+8!==this.input.length&&(d(e=this.fullCharCodeAt(o+8))||92===e))},q.isUsingKeyword=function(e,t){if(this.options.ecmaVersion<17||!this.isContextual(e?"await":"using"))return!1;S.lastIndex=this.pos;var o=S.exec(this.input),n=this.pos+o[0].length;if(w.test(this.input.slice(this.pos,n)))return!1;if(e){var r,i=n+5;if("using"!==this.input.slice(n,i)||i===this.input.length||d(r=this.fullCharCodeAt(i))||92===r)return!1;S.lastIndex=i;var s=S.exec(this.input);if(n=i+s[0].length,s&&w.test(this.input.slice(i,n)))return!1}var l=this.fullCharCodeAt(n);if(!c(l)&&92!==l)return!1;var p=n;do{n+=l<=65535?1:2}while(d(l=this.fullCharCodeAt(n)));if(92===l)return!0;var u=this.input.slice(p,n);return!(a.test(u)||t&&"of"===u)},q.isAwaitUsing=function(e){return this.isUsingKeyword(!0,e)},q.isUsing=function(e){return this.isUsingKeyword(!1,e)},q.parseStatement=function(e,t,o){var n,r=this.type,i=this.startNode();switch(this.isLet(e)&&(r=C._var,n="let"),r){case C._break:case C._continue:return this.parseBreakContinueStatement(i,r.keyword);case C._debugger:return this.parseDebuggerStatement(i);case C._do:return this.parseDoStatement(i);case C._for:return this.parseForStatement(i);case C._function:return e&&(this.strict||"if"!==e&&"label"!==e)&&this.options.ecmaVersion>=6&&this.unexpected(),this.parseFunctionStatement(i,!1,!e);case C._class:return e&&this.unexpected(),this.parseClass(i,!0);case C._if:return this.parseIfStatement(i);case C._return:return this.parseReturnStatement(i);case C._switch:return this.parseSwitchStatement(i);case C._throw:return this.parseThrowStatement(i);case C._try:return this.parseTryStatement(i);case C._const:case C._var:return n=n||this.value,e&&"var"!==n&&this.unexpected(),this.parseVarStatement(i,n);case C._while:return this.parseWhileStatement(i);case C._with:return this.parseWithStatement(i);case C.braceL:return this.parseBlock(!0,i);case C.semi:return this.parseEmptyStatement(i);case C._export:case C._import:if(this.options.ecmaVersion>10&&r===C._import){S.lastIndex=this.pos;var s=S.exec(this.input),a=this.pos+s[0].length,l=this.input.charCodeAt(a);if(40===l||46===l)return this.parseExpressionStatement(i,this.parseExpression())}return this.options.allowImportExportEverywhere||(t||this.raise(this.start,"'import' and 'export' may only appear at the top level"),this.inModule||this.raise(this.start,"'import' and 'export' may appear only with 'sourceType: module'")),r===C._import?this.parseImport(i):this.parseExport(i,o);default:if(this.isAsyncFunction())return e&&this.unexpected(),this.next(),this.parseFunctionStatement(i,!0,!e);var p=this.isAwaitUsing(!1)?"await using":this.isUsing(!1)?"using":null;if(p)return this.allowUsing||this.raise(this.start,"Using declaration cannot appear in the top level when source type is `script` or in the bare case statement"),"await using"===p&&(this.canAwait||this.raise(this.start,"Await using cannot appear outside of async function"),this.next()),this.next(),this.parseVar(i,!1,p),this.semicolon(),this.finishNode(i,"VariableDeclaration");var u=this.value,c=this.parseExpression();return r===C.name&&"Identifier"===c.type&&this.eat(C.colon)?this.parseLabeledStatement(i,u,c,e):this.parseExpressionStatement(i,c)}},q.parseBreakContinueStatement=function(e,t){var o="break"===t;this.next(),this.eat(C.semi)||this.insertSemicolon()?e.label=null:this.type!==C.name?this.unexpected():(e.label=this.parseIdent(),this.semicolon());for(var n=0;n<this.labels.length;++n){var r=this.labels[n];if(null==e.label||r.name===e.label.name){if(null!=r.kind&&(o||"loop"===r.kind))break;if(e.label&&o)break}}return n===this.labels.length&&this.raise(e.start,"Unsyntactic "+t),this.finishNode(e,o?"BreakStatement":"ContinueStatement")},q.parseDebuggerStatement=function(e){return this.next(),this.semicolon(),this.finishNode(e,"DebuggerStatement")},q.parseDoStatement=function(e){return this.next(),this.labels.push(Z),e.body=this.parseStatement("do"),this.labels.pop(),this.expect(C._while),e.test=this.parseParenExpression(),this.options.ecmaVersion>=6?this.eat(C.semi):this.semicolon(),this.finishNode(e,"DoWhileStatement")},q.parseForStatement=function(e){this.next();var t=this.options.ecmaVersion>=9&&this.canAwait&&this.eatContextual("await")?this.lastTokStart:-1;if(this.labels.push(Z),this.enterScope(0),this.expect(C.parenL),this.type===C.semi)return t>-1&&this.unexpected(t),this.parseFor(e,null);var o=this.isLet();if(this.type===C._var||this.type===C._const||o){var n=this.startNode(),r=o?"let":this.value;return this.next(),this.parseVar(n,!0,r),this.finishNode(n,"VariableDeclaration"),this.parseForAfterInit(e,n,t)}var i=this.isContextual("let"),s=!1,a=this.isUsing(!0)?"using":this.isAwaitUsing(!0)?"await using":null;if(a){var l=this.startNode();return this.next(),"await using"===a&&(this.canAwait||this.raise(this.start,"Await using cannot appear outside of async function"),this.next()),this.parseVar(l,!0,a),this.finishNode(l,"VariableDeclaration"),this.parseForAfterInit(e,l,t)}var p=this.containsEsc,u=new K,c=this.start,d=t>-1?this.parseExprSubscripts(u,"await"):this.parseExpression(!0,u);return this.type===C._in||(s=this.options.ecmaVersion>=6&&this.isContextual("of"))?(t>-1?(this.type===C._in&&this.unexpected(t),e.await=!0):s&&this.options.ecmaVersion>=8&&(d.start!==c||p||"Identifier"!==d.type||"async"!==d.name?this.options.ecmaVersion>=9&&(e.await=!1):this.unexpected()),i&&s&&this.raise(d.start,"The left-hand side of a for-of loop may not start with 'let'."),this.toAssignable(d,!1,u),this.checkLValPattern(d),this.parseForIn(e,d)):(this.checkExpressionErrors(u,!0),t>-1&&this.unexpected(t),this.parseFor(e,d))},q.parseForAfterInit=function(e,t,o){return(this.type===C._in||this.options.ecmaVersion>=6&&this.isContextual("of"))&&1===t.declarations.length?(this.options.ecmaVersion>=9&&(this.type===C._in?o>-1&&this.unexpected(o):e.await=o>-1),this.parseForIn(e,t)):(o>-1&&this.unexpected(o),this.parseFor(e,t))},q.parseFunctionStatement=function(e,t,o){return this.next(),this.parseFunction(e,J|(o?0:ee),!1,t)},q.parseIfStatement=function(e){return this.next(),e.test=this.parseParenExpression(),e.consequent=this.parseStatement("if"),e.alternate=this.eat(C._else)?this.parseStatement("if"):null,this.finishNode(e,"IfStatement")},q.parseReturnStatement=function(e){return this.allowReturn||this.raise(this.start,"'return' outside of function"),this.next(),this.eat(C.semi)||this.insertSemicolon()?e.argument=null:(e.argument=this.parseExpression(),this.semicolon()),this.finishNode(e,"ReturnStatement")},q.parseSwitchStatement=function(e){var t;this.next(),e.discriminant=this.parseParenExpression(),e.cases=[],this.expect(C.braceL),this.labels.push(Q),this.enterScope(1024);for(var o=!1;this.type!==C.braceR;)if(this.type===C._case||this.type===C._default){var n=this.type===C._case;t&&this.finishNode(t,"SwitchCase"),e.cases.push(t=this.startNode()),t.consequent=[],this.next(),n?t.test=this.parseExpression():(o&&this.raiseRecoverable(this.lastTokStart,"Multiple default clauses"),o=!0,t.test=null),this.expect(C.colon)}else t||this.unexpected(),t.consequent.push(this.parseStatement(null));return this.exitScope(),t&&this.finishNode(t,"SwitchCase"),this.next(),this.labels.pop(),this.finishNode(e,"SwitchStatement")},q.parseThrowStatement=function(e){return this.next(),w.test(this.input.slice(this.lastTokEnd,this.start))&&this.raise(this.lastTokEnd,"Illegal newline after throw"),e.argument=this.parseExpression(),this.semicolon(),this.finishNode(e,"ThrowStatement")};var X=[];q.parseCatchClauseParam=function(){var e=this.parseBindingAtom(),t="Identifier"===e.type;return this.enterScope(t?32:0),this.checkLValPattern(e,t?4:2),this.expect(C.parenR),e},q.parseTryStatement=function(e){if(this.next(),e.block=this.parseBlock(),e.handler=null,this.type===C._catch){var t=this.startNode();this.next(),this.eat(C.parenL)?t.param=this.parseCatchClauseParam():(this.options.ecmaVersion<10&&this.unexpected(),t.param=null,this.enterScope(0)),t.body=this.parseBlock(!1),this.exitScope(),e.handler=this.finishNode(t,"CatchClause")}return e.finalizer=this.eat(C._finally)?this.parseBlock():null,e.handler||e.finalizer||this.raise(e.start,"Missing catch or finally clause"),this.finishNode(e,"TryStatement")},q.parseVarStatement=function(e,t,o){return this.next(),this.parseVar(e,!1,t,o),this.semicolon(),this.finishNode(e,"VariableDeclaration")},q.parseWhileStatement=function(e){return this.next(),e.test=this.parseParenExpression(),this.labels.push(Z),e.body=this.parseStatement("while"),this.labels.pop(),this.finishNode(e,"WhileStatement")},q.parseWithStatement=function(e){return this.strict&&this.raise(this.start,"'with' in strict mode"),this.next(),e.object=this.parseParenExpression(),e.body=this.parseStatement("with"),this.finishNode(e,"WithStatement")},q.parseEmptyStatement=function(e){return this.next(),this.finishNode(e,"EmptyStatement")},q.parseLabeledStatement=function(e,t,o,n){for(var r=0,i=this.labels;r<i.length;r+=1)i[r].name===t&&this.raise(o.start,"Label '"+t+"' is already declared");for(var s=this.type.isLoop?"loop":this.type===C._switch?"switch":null,a=this.labels.length-1;a>=0;a--){var l=this.labels[a];if(l.statementStart!==e.start)break;l.statementStart=this.start,l.kind=s}return this.labels.push({name:t,kind:s,statementStart:this.start}),e.body=this.parseStatement(n?-1===n.indexOf("label")?n+"label":n:"label"),this.labels.pop(),e.label=o,this.finishNode(e,"LabeledStatement")},q.parseExpressionStatement=function(e,t){return e.expression=t,this.semicolon(),this.finishNode(e,"ExpressionStatement")},q.parseBlock=function(e,t,o){for(void 0===e&&(e=!0),void 0===t&&(t=this.startNode()),t.body=[],this.expect(C.braceL),e&&this.enterScope(0);this.type!==C.braceR;){var n=this.parseStatement(null);t.body.push(n)}return o&&(this.strict=!1),this.next(),e&&this.exitScope(),this.finishNode(t,"BlockStatement")},q.parseFor=function(e,t){return e.init=t,this.expect(C.semi),e.test=this.type===C.semi?null:this.parseExpression(),this.expect(C.semi),e.update=this.type===C.parenR?null:this.parseExpression(),this.expect(C.parenR),e.body=this.parseStatement("for"),this.exitScope(),this.labels.pop(),this.finishNode(e,"ForStatement")},q.parseForIn=function(e,t){var o=this.type===C._in;return this.next(),"VariableDeclaration"===t.type&&null!=t.declarations[0].init&&(!o||this.options.ecmaVersion<8||this.strict||"var"!==t.kind||"Identifier"!==t.declarations[0].id.type)&&this.raise(t.start,(o?"for-in":"for-of")+" loop variable declaration may not have an initializer"),e.left=t,e.right=o?this.parseExpression():this.parseMaybeAssign(),this.expect(C.parenR),e.body=this.parseStatement("for"),this.exitScope(),this.labels.pop(),this.finishNode(e,o?"ForInStatement":"ForOfStatement")},q.parseVar=function(e,t,o,n){for(e.declarations=[],e.kind=o;;){var r=this.startNode();if(this.parseVarId(r,o),this.eat(C.eq)?r.init=this.parseMaybeAssign(t):n||"const"!==o||this.type===C._in||this.options.ecmaVersion>=6&&this.isContextual("of")?n||"using"!==o&&"await using"!==o||!(this.options.ecmaVersion>=17)||this.type===C._in||this.isContextual("of")?n||"Identifier"===r.id.type||t&&(this.type===C._in||this.isContextual("of"))?r.init=null:this.raise(this.lastTokEnd,"Complex binding patterns require an initialization value"):this.raise(this.lastTokEnd,"Missing initializer in "+o+" declaration"):this.unexpected(),e.declarations.push(this.finishNode(r,"VariableDeclarator")),!this.eat(C.comma))break}return e},q.parseVarId=function(e,t){e.id="using"===t||"await using"===t?this.parseIdent():this.parseBindingAtom(),this.checkLValPattern(e.id,"var"===t?1:2,!1)};var J=1,ee=2;function te(e,t){var o=t.key.name,n=e[o],r="true";return"MethodDefinition"!==t.type||"get"!==t.kind&&"set"!==t.kind||(r=(t.static?"s":"i")+t.kind),"iget"===n&&"iset"===r||"iset"===n&&"iget"===r||"sget"===n&&"sset"===r||"sset"===n&&"sget"===r?(e[o]="true",!1):!!n||(e[o]=r,!1)}function oe(e,t){var o=e.computed,n=e.key;return!o&&("Identifier"===n.type&&n.name===t||"Literal"===n.type&&n.value===t)}q.parseFunction=function(e,t,o,n,r){this.initFunction(e),(this.options.ecmaVersion>=9||this.options.ecmaVersion>=6&&!n)&&(this.type===C.star&&t&ee&&this.unexpected(),e.generator=this.eat(C.star)),this.options.ecmaVersion>=8&&(e.async=!!n),t&J&&(e.id=4&t&&this.type!==C.name?null:this.parseIdent(),!e.id||t&ee||this.checkLValSimple(e.id,this.strict||e.generator||e.async?this.treatFunctionsAsVar?1:2:3));var i=this.yieldPos,s=this.awaitPos,a=this.awaitIdentPos;return this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0,this.enterScope(B(e.async,e.generator)),t&J||(e.id=this.type===C.name?this.parseIdent():null),this.parseFunctionParams(e),this.parseFunctionBody(e,o,!1,r),this.yieldPos=i,this.awaitPos=s,this.awaitIdentPos=a,this.finishNode(e,t&J?"FunctionDeclaration":"FunctionExpression")},q.parseFunctionParams=function(e){this.expect(C.parenL),e.params=this.parseBindingList(C.parenR,!1,this.options.ecmaVersion>=8),this.checkYieldAwaitInDefaultParams()},q.parseClass=function(e,t){this.next();var o=this.strict;this.strict=!0,this.parseClassId(e,t),this.parseClassSuper(e);var n=this.enterClassBody(),r=this.startNode(),i=!1;for(r.body=[],this.expect(C.braceL);this.type!==C.braceR;){var s=this.parseClassElement(null!==e.superClass);s&&(r.body.push(s),"MethodDefinition"===s.type&&"constructor"===s.kind?(i&&this.raiseRecoverable(s.start,"Duplicate constructor in the same class"),i=!0):s.key&&"PrivateIdentifier"===s.key.type&&te(n,s)&&this.raiseRecoverable(s.key.start,"Identifier '#"+s.key.name+"' has already been declared"))}return this.strict=o,this.next(),e.body=this.finishNode(r,"ClassBody"),this.exitClassBody(),this.finishNode(e,t?"ClassDeclaration":"ClassExpression")},q.parseClassElement=function(e){if(this.eat(C.semi))return null;var t=this.options.ecmaVersion,o=this.startNode(),n="",r=!1,i=!1,s="method",a=!1;if(this.eatContextual("static")){if(t>=13&&this.eat(C.braceL))return this.parseClassStaticBlock(o),o;this.isClassElementNameStart()||this.type===C.star?a=!0:n="static"}if(o.static=a,!n&&t>=8&&this.eatContextual("async")&&(!this.isClassElementNameStart()&&this.type!==C.star||this.canInsertSemicolon()?n="async":i=!0),!n&&(t>=9||!i)&&this.eat(C.star)&&(r=!0),!n&&!i&&!r){var l=this.value;(this.eatContextual("get")||this.eatContextual("set"))&&(this.isClassElementNameStart()?s=l:n=l)}if(n?(o.computed=!1,o.key=this.startNodeAt(this.lastTokStart,this.lastTokStartLoc),o.key.name=n,this.finishNode(o.key,"Identifier")):this.parseClassElementName(o),t<13||this.type===C.parenL||"method"!==s||r||i){var p=!o.static&&oe(o,"constructor"),u=p&&e;p&&"method"!==s&&this.raise(o.key.start,"Constructor can't have get/set modifier"),o.kind=p?"constructor":s,this.parseClassMethod(o,r,i,u)}else this.parseClassField(o);return o},q.isClassElementNameStart=function(){return this.type===C.name||this.type===C.privateId||this.type===C.num||this.type===C.string||this.type===C.bracketL||this.type.keyword},q.parseClassElementName=function(e){this.type===C.privateId?("constructor"===this.value&&this.raise(this.start,"Classes can't have an element named '#constructor'"),e.computed=!1,e.key=this.parsePrivateIdent()):this.parsePropertyName(e)},q.parseClassMethod=function(e,t,o,n){var r=e.key;"constructor"===e.kind?(t&&this.raise(r.start,"Constructor can't be a generator"),o&&this.raise(r.start,"Constructor can't be an async method")):e.static&&oe(e,"prototype")&&this.raise(r.start,"Classes may not have a static property named prototype");var i=e.value=this.parseMethod(t,o,n);return"get"===e.kind&&0!==i.params.length&&this.raiseRecoverable(i.start,"getter should have no params"),"set"===e.kind&&1!==i.params.length&&this.raiseRecoverable(i.start,"setter should have exactly one param"),"set"===e.kind&&"RestElement"===i.params[0].type&&this.raiseRecoverable(i.params[0].start,"Setter cannot use rest params"),this.finishNode(e,"MethodDefinition")},q.parseClassField=function(e){return oe(e,"constructor")?this.raise(e.key.start,"Classes can't have a field named 'constructor'"):e.static&&oe(e,"prototype")&&this.raise(e.key.start,"Classes can't have a static field named 'prototype'"),this.eat(C.eq)?(this.enterScope(576),e.value=this.parseMaybeAssign(),this.exitScope()):e.value=null,this.semicolon(),this.finishNode(e,"PropertyDefinition")},q.parseClassStaticBlock=function(e){e.body=[];var t=this.labels;for(this.labels=[],this.enterScope(320);this.type!==C.braceR;){var o=this.parseStatement(null);e.body.push(o)}return this.next(),this.exitScope(),this.labels=t,this.finishNode(e,"StaticBlock")},q.parseClassId=function(e,t){this.type===C.name?(e.id=this.parseIdent(),t&&this.checkLValSimple(e.id,2,!1)):(!0===t&&this.unexpected(),e.id=null)},q.parseClassSuper=function(e){e.superClass=this.eat(C._extends)?this.parseExprSubscripts(null,!1):null},q.enterClassBody=function(){var e={declared:Object.create(null),used:[]};return this.privateNameStack.push(e),e.declared},q.exitClassBody=function(){var e=this.privateNameStack.pop(),t=e.declared,o=e.used;if(this.options.checkPrivateFields)for(var n=this.privateNameStack.length,r=0===n?null:this.privateNameStack[n-1],i=0;i<o.length;++i){var s=o[i];T(t,s.name)||(r?r.used.push(s):this.raiseRecoverable(s.start,"Private field '#"+s.name+"' must be declared in an enclosing class"))}},q.parseExportAllDeclaration=function(e,t){return this.options.ecmaVersion>=11&&(this.eatContextual("as")?(e.exported=this.parseModuleExportName(),this.checkExport(t,e.exported,this.lastTokStart)):e.exported=null),this.expectContextual("from"),this.type!==C.string&&this.unexpected(),e.source=this.parseExprAtom(),this.options.ecmaVersion>=16&&(e.attributes=this.parseWithClause()),this.semicolon(),this.finishNode(e,"ExportAllDeclaration")},q.parseExport=function(e,t){if(this.next(),this.eat(C.star))return this.parseExportAllDeclaration(e,t);if(this.eat(C._default))return this.checkExport(t,"default",this.lastTokStart),e.declaration=this.parseExportDefaultDeclaration(),this.finishNode(e,"ExportDefaultDeclaration");if(this.shouldParseExportStatement())e.declaration=this.parseExportDeclaration(e),"VariableDeclaration"===e.declaration.type?this.checkVariableExport(t,e.declaration.declarations):this.checkExport(t,e.declaration.id,e.declaration.id.start),e.specifiers=[],e.source=null,this.options.ecmaVersion>=16&&(e.attributes=[]);else{if(e.declaration=null,e.specifiers=this.parseExportSpecifiers(t),this.eatContextual("from"))this.type!==C.string&&this.unexpected(),e.source=this.parseExprAtom(),this.options.ecmaVersion>=16&&(e.attributes=this.parseWithClause());else{for(var o=0,n=e.specifiers;o<n.length;o+=1){var r=n[o];this.checkUnreserved(r.local),this.checkLocalExport(r.local),"Literal"===r.local.type&&this.raise(r.local.start,"A string literal cannot be used as an exported binding without `from`.")}e.source=null,this.options.ecmaVersion>=16&&(e.attributes=[])}this.semicolon()}return this.finishNode(e,"ExportNamedDeclaration")},q.parseExportDeclaration=function(e){return this.parseStatement(null)},q.parseExportDefaultDeclaration=function(){var e;if(this.type===C._function||(e=this.isAsyncFunction())){var t=this.startNode();return this.next(),e&&this.next(),this.parseFunction(t,4|J,!1,e)}if(this.type===C._class){var o=this.startNode();return this.parseClass(o,"nullableID")}var n=this.parseMaybeAssign();return this.semicolon(),n},q.checkExport=function(e,t,o){e&&("string"!=typeof t&&(t="Identifier"===t.type?t.name:t.value),T(e,t)&&this.raiseRecoverable(o,"Duplicate export '"+t+"'"),e[t]=!0)},q.checkPatternExport=function(e,t){var o=t.type;if("Identifier"===o)this.checkExport(e,t,t.start);else if("ObjectPattern"===o)for(var n=0,r=t.properties;n<r.length;n+=1){var i=r[n];this.checkPatternExport(e,i)}else if("ArrayPattern"===o)for(var s=0,a=t.elements;s<a.length;s+=1){var l=a[s];l&&this.checkPatternExport(e,l)}else"Property"===o?this.checkPatternExport(e,t.value):"AssignmentPattern"===o?this.checkPatternExport(e,t.left):"RestElement"===o&&this.checkPatternExport(e,t.argument)},q.checkVariableExport=function(e,t){if(e)for(var o=0,n=t;o<n.length;o+=1){var r=n[o];this.checkPatternExport(e,r.id)}},q.shouldParseExportStatement=function(){return"var"===this.type.keyword||"const"===this.type.keyword||"class"===this.type.keyword||"function"===this.type.keyword||this.isLet()||this.isAsyncFunction()},q.parseExportSpecifier=function(e){var t=this.startNode();return t.local=this.parseModuleExportName(),t.exported=this.eatContextual("as")?this.parseModuleExportName():t.local,this.checkExport(e,t.exported,t.exported.start),this.finishNode(t,"ExportSpecifier")},q.parseExportSpecifiers=function(e){var t=[],o=!0;for(this.expect(C.braceL);!this.eat(C.braceR);){if(o)o=!1;else if(this.expect(C.comma),this.afterTrailingComma(C.braceR))break;t.push(this.parseExportSpecifier(e))}return t},q.parseImport=function(e){return this.next(),this.type===C.string?(e.specifiers=X,e.source=this.parseExprAtom()):(e.specifiers=this.parseImportSpecifiers(),this.expectContextual("from"),e.source=this.type===C.string?this.parseExprAtom():this.unexpected()),this.options.ecmaVersion>=16&&(e.attributes=this.parseWithClause()),this.semicolon(),this.finishNode(e,"ImportDeclaration")},q.parseImportSpecifier=function(){var e=this.startNode();return e.imported=this.parseModuleExportName(),this.eatContextual("as")?e.local=this.parseIdent():(this.checkUnreserved(e.imported),e.local=e.imported),this.checkLValSimple(e.local,2),this.finishNode(e,"ImportSpecifier")},q.parseImportDefaultSpecifier=function(){var e=this.startNode();return e.local=this.parseIdent(),this.checkLValSimple(e.local,2),this.finishNode(e,"ImportDefaultSpecifier")},q.parseImportNamespaceSpecifier=function(){var e=this.startNode();return this.next(),this.expectContextual("as"),e.local=this.parseIdent(),this.checkLValSimple(e.local,2),this.finishNode(e,"ImportNamespaceSpecifier")},q.parseImportSpecifiers=function(){var e=[],t=!0;if(this.type===C.name&&(e.push(this.parseImportDefaultSpecifier()),!this.eat(C.comma)))return e;if(this.type===C.star)return e.push(this.parseImportNamespaceSpecifier()),e;for(this.expect(C.braceL);!this.eat(C.braceR);){if(t)t=!1;else if(this.expect(C.comma),this.afterTrailingComma(C.braceR))break;e.push(this.parseImportSpecifier())}return e},q.parseWithClause=function(){var e=[];if(!this.eat(C._with))return e;this.expect(C.braceL);for(var t={},o=!0;!this.eat(C.braceR);){if(o)o=!1;else if(this.expect(C.comma),this.afterTrailingComma(C.braceR))break;var n=this.parseImportAttribute(),r="Identifier"===n.key.type?n.key.name:n.key.value;T(t,r)&&this.raiseRecoverable(n.key.start,"Duplicate attribute key '"+r+"'"),t[r]=!0,e.push(n)}return e},q.parseImportAttribute=function(){var e=this.startNode();return e.key=this.type===C.string?this.parseExprAtom():this.parseIdent("never"!==this.options.allowReserved),this.expect(C.colon),this.type!==C.string&&this.unexpected(),e.value=this.parseExprAtom(),this.finishNode(e,"ImportAttribute")},q.parseModuleExportName=function(){if(this.options.ecmaVersion>=13&&this.type===C.string){var e=this.parseLiteral(this.value);return F.test(e.value)&&this.raise(e.start,"An export name cannot include a lone surrogate."),e}return this.parseIdent(!0)},q.adaptDirectivePrologue=function(e){for(var t=0;t<e.length&&this.isDirectiveCandidate(e[t]);++t)e[t].directive=e[t].expression.raw.slice(1,-1)},q.isDirectiveCandidate=function(e){return this.options.ecmaVersion>=5&&"ExpressionStatement"===e.type&&"Literal"===e.expression.type&&"string"==typeof e.expression.value&&('"'===this.input[e.start]||"'"===this.input[e.start])};var ne=U.prototype;ne.toAssignable=function(e,t,o){if(this.options.ecmaVersion>=6&&e)switch(e.type){case"Identifier":this.inAsync&&"await"===e.name&&this.raise(e.start,"Cannot use 'await' as identifier inside an async function");break;case"ObjectPattern":case"ArrayPattern":case"AssignmentPattern":case"RestElement":break;case"ObjectExpression":e.type="ObjectPattern",o&&this.checkPatternErrors(o,!0);for(var n=0,r=e.properties;n<r.length;n+=1){var i=r[n];this.toAssignable(i,t),"RestElement"!==i.type||"ArrayPattern"!==i.argument.type&&"ObjectPattern"!==i.argument.type||this.raise(i.argument.start,"Unexpected token")}break;case"Property":"init"!==e.kind&&this.raise(e.key.start,"Object pattern can't contain getter or setter"),this.toAssignable(e.value,t);break;case"ArrayExpression":e.type="ArrayPattern",o&&this.checkPatternErrors(o,!0),this.toAssignableList(e.elements,t);break;case"SpreadElement":e.type="RestElement",this.toAssignable(e.argument,t),"AssignmentPattern"===e.argument.type&&this.raise(e.argument.start,"Rest elements cannot have a default value");break;case"AssignmentExpression":"="!==e.operator&&this.raise(e.left.end,"Only '=' operator can be used for specifying default value."),e.type="AssignmentPattern",delete e.operator,this.toAssignable(e.left,t);break;case"ParenthesizedExpression":this.toAssignable(e.expression,t,o);break;case"ChainExpression":this.raiseRecoverable(e.start,"Optional chaining cannot appear in left-hand side");break;case"MemberExpression":if(!t)break;default:this.raise(e.start,"Assigning to rvalue")}else o&&this.checkPatternErrors(o,!0);return e},ne.toAssignableList=function(e,t){for(var o=e.length,n=0;n<o;n++){var r=e[n];r&&this.toAssignable(r,t)}if(o){var i=e[o-1];6===this.options.ecmaVersion&&t&&i&&"RestElement"===i.type&&"Identifier"!==i.argument.type&&this.unexpected(i.argument.start)}return e},ne.parseSpread=function(e){var t=this.startNode();return this.next(),t.argument=this.parseMaybeAssign(!1,e),this.finishNode(t,"SpreadElement")},ne.parseRestBinding=function(){var e=this.startNode();return this.next(),6===this.options.ecmaVersion&&this.type!==C.name&&this.unexpected(),e.argument=this.parseBindingAtom(),this.finishNode(e,"RestElement")},ne.parseBindingAtom=function(){if(this.options.ecmaVersion>=6)switch(this.type){case C.bracketL:var e=this.startNode();return this.next(),e.elements=this.parseBindingList(C.bracketR,!0,!0),this.finishNode(e,"ArrayPattern");case C.braceL:return this.parseObj(!0)}return this.parseIdent()},ne.parseBindingList=function(e,t,o,n){for(var r=[],i=!0;!this.eat(e);)if(i?i=!1:this.expect(C.comma),t&&this.type===C.comma)r.push(null);else{if(o&&this.afterTrailingComma(e))break;if(this.type===C.ellipsis){var s=this.parseRestBinding();this.parseBindingListItem(s),r.push(s),this.type===C.comma&&this.raiseRecoverable(this.start,"Comma is not permitted after the rest element"),this.expect(e);break}r.push(this.parseAssignableListItem(n))}return r},ne.parseAssignableListItem=function(e){var t=this.parseMaybeDefault(this.start,this.startLoc);return this.parseBindingListItem(t),t},ne.parseBindingListItem=function(e){return e},ne.parseMaybeDefault=function(e,t,o){if(o=o||this.parseBindingAtom(),this.options.ecmaVersion<6||!this.eat(C.eq))return o;var n=this.startNodeAt(e,t);return n.left=o,n.right=this.parseMaybeAssign(),this.finishNode(n,"AssignmentPattern")},ne.checkLValSimple=function(e,t,o){void 0===t&&(t=0);var n=0!==t;switch(e.type){case"Identifier":this.strict&&this.reservedWordsStrictBind.test(e.name)&&this.raiseRecoverable(e.start,(n?"Binding ":"Assigning to ")+e.name+" in strict mode"),n&&(2===t&&"let"===e.name&&this.raiseRecoverable(e.start,"let is disallowed as a lexically bound name"),o&&(T(o,e.name)&&this.raiseRecoverable(e.start,"Argument name clash"),o[e.name]=!0),5!==t&&this.declareName(e.name,t,e.start));break;case"ChainExpression":this.raiseRecoverable(e.start,"Optional chaining cannot appear in left-hand side");break;case"MemberExpression":n&&this.raiseRecoverable(e.start,"Binding member expression");break;case"ParenthesizedExpression":return n&&this.raiseRecoverable(e.start,"Binding parenthesized expression"),this.checkLValSimple(e.expression,t,o);default:this.raise(e.start,(n?"Binding":"Assigning to")+" rvalue")}},ne.checkLValPattern=function(e,t,o){switch(void 0===t&&(t=0),e.type){case"ObjectPattern":for(var n=0,r=e.properties;n<r.length;n+=1){var i=r[n];this.checkLValInnerPattern(i,t,o)}break;case"ArrayPattern":for(var s=0,a=e.elements;s<a.length;s+=1){var l=a[s];l&&this.checkLValInnerPattern(l,t,o)}break;default:this.checkLValSimple(e,t,o)}},ne.checkLValInnerPattern=function(e,t,o){switch(void 0===t&&(t=0),e.type){case"Property":this.checkLValInnerPattern(e.value,t,o);break;case"AssignmentPattern":this.checkLValPattern(e.left,t,o);break;case"RestElement":this.checkLValPattern(e.argument,t,o);break;default:this.checkLValPattern(e,t,o)}};var re=function(e,t,o,n,r){this.token=e,this.isExpr=!!t,this.preserveSpace=!!o,this.override=n,this.generator=!!r},ie={b_stat:new re("{",!1),b_expr:new re("{",!0),b_tmpl:new re("${",!1),p_stat:new re("(",!1),p_expr:new re("(",!0),q_tmpl:new re("`",!0,!0,(function(e){return e.tryReadTemplateToken()})),f_stat:new re("function",!1),f_expr:new re("function",!0),f_expr_gen:new re("function",!0,!1,null,!0),f_gen:new re("function",!1,!1,null,!0)},se=U.prototype;se.initialContext=function(){return[ie.b_stat]},se.curContext=function(){return this.context[this.context.length-1]},se.braceIsBlock=function(e){var t=this.curContext();return t===ie.f_expr||t===ie.f_stat||(e!==C.colon||t!==ie.b_stat&&t!==ie.b_expr?e===C._return||e===C.name&&this.exprAllowed?w.test(this.input.slice(this.lastTokEnd,this.start)):e===C._else||e===C.semi||e===C.eof||e===C.parenR||e===C.arrow||(e===C.braceL?t===ie.b_stat:e!==C._var&&e!==C._const&&e!==C.name&&!this.exprAllowed):!t.isExpr)},se.inGeneratorContext=function(){for(var e=this.context.length-1;e>=1;e--){var t=this.context[e];if("function"===t.token)return t.generator}return!1},se.updateContext=function(e){var t,o=this.type;o.keyword&&e===C.dot?this.exprAllowed=!1:(t=o.updateContext)?t.call(this,e):this.exprAllowed=o.beforeExpr},se.overrideContext=function(e){this.curContext()!==e&&(this.context[this.context.length-1]=e)},C.parenR.updateContext=C.braceR.updateContext=function(){if(1!==this.context.length){var e=this.context.pop();e===ie.b_stat&&"function"===this.curContext().token&&(e=this.context.pop()),this.exprAllowed=!e.isExpr}else this.exprAllowed=!0},C.braceL.updateContext=function(e){this.context.push(this.braceIsBlock(e)?ie.b_stat:ie.b_expr),this.exprAllowed=!0},C.dollarBraceL.updateContext=function(){this.context.push(ie.b_tmpl),this.exprAllowed=!0},C.parenL.updateContext=function(e){var t=e===C._if||e===C._for||e===C._with||e===C._while;this.context.push(t?ie.p_stat:ie.p_expr),this.exprAllowed=!0},C.incDec.updateContext=function(){},C._function.updateContext=C._class.updateContext=function(e){!e.beforeExpr||e===C._else||e===C.semi&&this.curContext()!==ie.p_stat||e===C._return&&w.test(this.input.slice(this.lastTokEnd,this.start))||(e===C.colon||e===C.braceL)&&this.curContext()===ie.b_stat?this.context.push(ie.f_stat):this.context.push(ie.f_expr),this.exprAllowed=!1},C.colon.updateContext=function(){"function"===this.curContext().token&&this.context.pop(),this.exprAllowed=!0},C.backQuote.updateContext=function(){this.curContext()===ie.q_tmpl?this.context.pop():this.context.push(ie.q_tmpl),this.exprAllowed=!1},C.star.updateContext=function(e){if(e===C._function){var t=this.context.length-1;this.context[t]===ie.f_expr?this.context[t]=ie.f_expr_gen:this.context[t]=ie.f_gen}this.exprAllowed=!0},C.name.updateContext=function(e){var t=!1;this.options.ecmaVersion>=6&&e!==C.dot&&("of"===this.value&&!this.exprAllowed||"yield"===this.value&&this.inGeneratorContext())&&(t=!0),this.exprAllowed=t};var ae=U.prototype;function le(e){return"Identifier"===e.type||"ParenthesizedExpression"===e.type&&le(e.expression)}function pe(e){return"MemberExpression"===e.type&&"PrivateIdentifier"===e.property.type||"ChainExpression"===e.type&&pe(e.expression)||"ParenthesizedExpression"===e.type&&pe(e.expression)}ae.checkPropClash=function(e,t,o){if(!(this.options.ecmaVersion>=9&&"SpreadElement"===e.type||this.options.ecmaVersion>=6&&(e.computed||e.method||e.shorthand))){var n,r=e.key;switch(r.type){case"Identifier":n=r.name;break;case"Literal":n=String(r.value);break;default:return}var i=e.kind;if(this.options.ecmaVersion>=6)"__proto__"===n&&"init"===i&&(t.proto&&(o?o.doubleProto<0&&(o.doubleProto=r.start):this.raiseRecoverable(r.start,"Redefinition of __proto__ property")),t.proto=!0);else{var s=t[n="$"+n];s?("init"===i?this.strict&&s.init||s.get||s.set:s.init||s[i])&&this.raiseRecoverable(r.start,"Redefinition of property"):s=t[n]={init:!1,get:!1,set:!1},s[i]=!0}}},ae.parseExpression=function(e,t){var o=this.start,n=this.startLoc,r=this.parseMaybeAssign(e,t);if(this.type===C.comma){var i=this.startNodeAt(o,n);for(i.expressions=[r];this.eat(C.comma);)i.expressions.push(this.parseMaybeAssign(e,t));return this.finishNode(i,"SequenceExpression")}return r},ae.parseMaybeAssign=function(e,t,o){if(this.isContextual("yield")){if(this.inGenerator)return this.parseYield(e);this.exprAllowed=!1}var n=!1,r=-1,i=-1,s=-1;t?(r=t.parenthesizedAssign,i=t.trailingComma,s=t.doubleProto,t.parenthesizedAssign=t.trailingComma=-1):(t=new K,n=!0);var a=this.start,l=this.startLoc;this.type!==C.parenL&&this.type!==C.name||(this.potentialArrowAt=this.start,this.potentialArrowInForAwait="await"===e);var p=this.parseMaybeConditional(e,t);if(o&&(p=o.call(this,p,a,l)),this.type.isAssign){var u=this.startNodeAt(a,l);return u.operator=this.value,this.type===C.eq&&(p=this.toAssignable(p,!1,t)),n||(t.parenthesizedAssign=t.trailingComma=t.doubleProto=-1),t.shorthandAssign>=p.start&&(t.shorthandAssign=-1),this.type===C.eq?this.checkLValPattern(p):this.checkLValSimple(p),u.left=p,this.next(),u.right=this.parseMaybeAssign(e),s>-1&&(t.doubleProto=s),this.finishNode(u,"AssignmentExpression")}return n&&this.checkExpressionErrors(t,!0),r>-1&&(t.parenthesizedAssign=r),i>-1&&(t.trailingComma=i),p},ae.parseMaybeConditional=function(e,t){var o=this.start,n=this.startLoc,r=this.parseExprOps(e,t);if(this.checkExpressionErrors(t))return r;if(this.eat(C.question)){var i=this.startNodeAt(o,n);return i.test=r,i.consequent=this.parseMaybeAssign(),this.expect(C.colon),i.alternate=this.parseMaybeAssign(e),this.finishNode(i,"ConditionalExpression")}return r},ae.parseExprOps=function(e,t){var o=this.start,n=this.startLoc,r=this.parseMaybeUnary(t,!1,!1,e);return this.checkExpressionErrors(t)||r.start===o&&"ArrowFunctionExpression"===r.type?r:this.parseExprOp(r,o,n,-1,e)},ae.parseExprOp=function(e,t,o,n,r){var i=this.type.binop;if(null!=i&&(!r||this.type!==C._in)&&i>n){var s=this.type===C.logicalOR||this.type===C.logicalAND,a=this.type===C.coalesce;a&&(i=C.logicalAND.binop);var l=this.value;this.next();var p=this.start,u=this.startLoc,c=this.parseExprOp(this.parseMaybeUnary(null,!1,!1,r),p,u,i,r),d=this.buildBinary(t,o,e,c,l,s||a);return(s&&this.type===C.coalesce||a&&(this.type===C.logicalOR||this.type===C.logicalAND))&&this.raiseRecoverable(this.start,"Logical expressions and coalesce expressions cannot be mixed. Wrap either by parentheses"),this.parseExprOp(d,t,o,n,r)}return e},ae.buildBinary=function(e,t,o,n,r,i){"PrivateIdentifier"===n.type&&this.raise(n.start,"Private identifier can only be left side of binary expression");var s=this.startNodeAt(e,t);return s.left=o,s.operator=r,s.right=n,this.finishNode(s,i?"LogicalExpression":"BinaryExpression")},ae.parseMaybeUnary=function(e,t,o,n){var r,i=this.start,s=this.startLoc;if(this.isContextual("await")&&this.canAwait)r=this.parseAwait(n),t=!0;else if(this.type.prefix){var a=this.startNode(),l=this.type===C.incDec;a.operator=this.value,a.prefix=!0,this.next(),a.argument=this.parseMaybeUnary(null,!0,l,n),this.checkExpressionErrors(e,!0),l?this.checkLValSimple(a.argument):this.strict&&"delete"===a.operator&&le(a.argument)?this.raiseRecoverable(a.start,"Deleting local variable in strict mode"):"delete"===a.operator&&pe(a.argument)?this.raiseRecoverable(a.start,"Private fields can not be deleted"):t=!0,r=this.finishNode(a,l?"UpdateExpression":"UnaryExpression")}else if(t||this.type!==C.privateId){if(r=this.parseExprSubscripts(e,n),this.checkExpressionErrors(e))return r;for(;this.type.postfix&&!this.canInsertSemicolon();){var p=this.startNodeAt(i,s);p.operator=this.value,p.prefix=!1,p.argument=r,this.checkLValSimple(r),this.next(),r=this.finishNode(p,"UpdateExpression")}}else(n||0===this.privateNameStack.length)&&this.options.checkPrivateFields&&this.unexpected(),r=this.parsePrivateIdent(),this.type!==C._in&&this.unexpected();return o||!this.eat(C.starstar)?r:t?void this.unexpected(this.lastTokStart):this.buildBinary(i,s,r,this.parseMaybeUnary(null,!1,!1,n),"**",!1)},ae.parseExprSubscripts=function(e,t){var o=this.start,n=this.startLoc,r=this.parseExprAtom(e,t);if("ArrowFunctionExpression"===r.type&&")"!==this.input.slice(this.lastTokStart,this.lastTokEnd))return r;var i=this.parseSubscripts(r,o,n,!1,t);return e&&"MemberExpression"===i.type&&(e.parenthesizedAssign>=i.start&&(e.parenthesizedAssign=-1),e.parenthesizedBind>=i.start&&(e.parenthesizedBind=-1),e.trailingComma>=i.start&&(e.trailingComma=-1)),i},ae.parseSubscripts=function(e,t,o,n,r){for(var i=this.options.ecmaVersion>=8&&"Identifier"===e.type&&"async"===e.name&&this.lastTokEnd===e.end&&!this.canInsertSemicolon()&&e.end-e.start==5&&this.potentialArrowAt===e.start,s=!1;;){var a=this.parseSubscript(e,t,o,n,i,s,r);if(a.optional&&(s=!0),a===e||"ArrowFunctionExpression"===a.type){if(s){var l=this.startNodeAt(t,o);l.expression=a,a=this.finishNode(l,"ChainExpression")}return a}e=a}},ae.shouldParseAsyncArrow=function(){return!this.canInsertSemicolon()&&this.eat(C.arrow)},ae.parseSubscriptAsyncArrow=function(e,t,o,n){return this.parseArrowExpression(this.startNodeAt(e,t),o,!0,n)},ae.parseSubscript=function(e,t,o,n,r,i,s){var a=this.options.ecmaVersion>=11,l=a&&this.eat(C.questionDot);n&&l&&this.raise(this.lastTokStart,"Optional chaining cannot appear in the callee of new expressions");var p=this.eat(C.bracketL);if(p||l&&this.type!==C.parenL&&this.type!==C.backQuote||this.eat(C.dot)){var u=this.startNodeAt(t,o);u.object=e,p?(u.property=this.parseExpression(),this.expect(C.bracketR)):this.type===C.privateId&&"Super"!==e.type?u.property=this.parsePrivateIdent():u.property=this.parseIdent("never"!==this.options.allowReserved),u.computed=!!p,a&&(u.optional=l),e=this.finishNode(u,"MemberExpression")}else if(!n&&this.eat(C.parenL)){var c=new K,d=this.yieldPos,h=this.awaitPos,f=this.awaitIdentPos;this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0;var g=this.parseExprList(C.parenR,this.options.ecmaVersion>=8,!1,c);if(r&&!l&&this.shouldParseAsyncArrow())return this.checkPatternErrors(c,!1),this.checkYieldAwaitInDefaultParams(),this.awaitIdentPos>0&&this.raise(this.awaitIdentPos,"Cannot use 'await' as identifier inside an async function"),this.yieldPos=d,this.awaitPos=h,this.awaitIdentPos=f,this.parseSubscriptAsyncArrow(t,o,g,s);this.checkExpressionErrors(c,!0),this.yieldPos=d||this.yieldPos,this.awaitPos=h||this.awaitPos,this.awaitIdentPos=f||this.awaitIdentPos;var m=this.startNodeAt(t,o);m.callee=e,m.arguments=g,a&&(m.optional=l),e=this.finishNode(m,"CallExpression")}else if(this.type===C.backQuote){(l||i)&&this.raise(this.start,"Optional chaining cannot appear in the tag of tagged template expressions");var y=this.startNodeAt(t,o);y.tag=e,y.quasi=this.parseTemplate({isTagged:!0}),e=this.finishNode(y,"TaggedTemplateExpression")}return e},ae.parseExprAtom=function(e,t,o){this.type===C.slash&&this.readRegexp();var n,r=this.potentialArrowAt===this.start;switch(this.type){case C._super:return this.allowSuper||this.raise(this.start,"'super' keyword outside a method"),n=this.startNode(),this.next(),this.type!==C.parenL||this.allowDirectSuper||this.raise(n.start,"super() call outside constructor of a subclass"),this.type!==C.dot&&this.type!==C.bracketL&&this.type!==C.parenL&&this.unexpected(),this.finishNode(n,"Super");case C._this:return n=this.startNode(),this.next(),this.finishNode(n,"ThisExpression");case C.name:var i=this.start,s=this.startLoc,a=this.containsEsc,l=this.parseIdent(!1);if(this.options.ecmaVersion>=8&&!a&&"async"===l.name&&!this.canInsertSemicolon()&&this.eat(C._function))return this.overrideContext(ie.f_expr),this.parseFunction(this.startNodeAt(i,s),0,!1,!0,t);if(r&&!this.canInsertSemicolon()){if(this.eat(C.arrow))return this.parseArrowExpression(this.startNodeAt(i,s),[l],!1,t);if(this.options.ecmaVersion>=8&&"async"===l.name&&this.type===C.name&&!a&&(!this.potentialArrowInForAwait||"of"!==this.value||this.containsEsc))return l=this.parseIdent(!1),!this.canInsertSemicolon()&&this.eat(C.arrow)||this.unexpected(),this.parseArrowExpression(this.startNodeAt(i,s),[l],!0,t)}return l;case C.regexp:var p=this.value;return(n=this.parseLiteral(p.value)).regex={pattern:p.pattern,flags:p.flags},n;case C.num:case C.string:return this.parseLiteral(this.value);case C._null:case C._true:case C._false:return(n=this.startNode()).value=this.type===C._null?null:this.type===C._true,n.raw=this.type.keyword,this.next(),this.finishNode(n,"Literal");case C.parenL:var u=this.start,c=this.parseParenAndDistinguishExpression(r,t);return e&&(e.parenthesizedAssign<0&&!this.isSimpleAssignTarget(c)&&(e.parenthesizedAssign=u),e.parenthesizedBind<0&&(e.parenthesizedBind=u)),c;case C.bracketL:return n=this.startNode(),this.next(),n.elements=this.parseExprList(C.bracketR,!0,!0,e),this.finishNode(n,"ArrayExpression");case C.braceL:return this.overrideContext(ie.b_expr),this.parseObj(!1,e);case C._function:return n=this.startNode(),this.next(),this.parseFunction(n,0);case C._class:return this.parseClass(this.startNode(),!1);case C._new:return this.parseNew();case C.backQuote:return this.parseTemplate();case C._import:return this.options.ecmaVersion>=11?this.parseExprImport(o):this.unexpected();default:return this.parseExprAtomDefault()}},ae.parseExprAtomDefault=function(){this.unexpected()},ae.parseExprImport=function(e){var t=this.startNode();if(this.containsEsc&&this.raiseRecoverable(this.start,"Escape sequence in keyword import"),this.next(),this.type===C.parenL&&!e)return this.parseDynamicImport(t);if(this.type===C.dot){var o=this.startNodeAt(t.start,t.loc&&t.loc.start);return o.name="import",t.meta=this.finishNode(o,"Identifier"),this.parseImportMeta(t)}this.unexpected()},ae.parseDynamicImport=function(e){if(this.next(),e.source=this.parseMaybeAssign(),this.options.ecmaVersion>=16)this.eat(C.parenR)?e.options=null:(this.expect(C.comma),this.afterTrailingComma(C.parenR)?e.options=null:(e.options=this.parseMaybeAssign(),this.eat(C.parenR)||(this.expect(C.comma),this.afterTrailingComma(C.parenR)||this.unexpected())));else if(!this.eat(C.parenR)){var t=this.start;this.eat(C.comma)&&this.eat(C.parenR)?this.raiseRecoverable(t,"Trailing comma is not allowed in import()"):this.unexpected(t)}return this.finishNode(e,"ImportExpression")},ae.parseImportMeta=function(e){this.next();var t=this.containsEsc;return e.property=this.parseIdent(!0),"meta"!==e.property.name&&this.raiseRecoverable(e.property.start,"The only valid meta property for import is 'import.meta'"),t&&this.raiseRecoverable(e.start,"'import.meta' must not contain escaped characters"),"module"===this.options.sourceType||this.options.allowImportExportEverywhere||this.raiseRecoverable(e.start,"Cannot use 'import.meta' outside a module"),this.finishNode(e,"MetaProperty")},ae.parseLiteral=function(e){var t=this.startNode();return t.value=e,t.raw=this.input.slice(this.start,this.end),110===t.raw.charCodeAt(t.raw.length-1)&&(t.bigint=null!=t.value?t.value.toString():t.raw.slice(0,-1).replace(/_/g,"")),this.next(),this.finishNode(t,"Literal")},ae.parseParenExpression=function(){this.expect(C.parenL);var e=this.parseExpression();return this.expect(C.parenR),e},ae.shouldParseArrow=function(e){return!this.canInsertSemicolon()},ae.parseParenAndDistinguishExpression=function(e,t){var o,n=this.start,r=this.startLoc,i=this.options.ecmaVersion>=8;if(this.options.ecmaVersion>=6){this.next();var s,a=this.start,l=this.startLoc,p=[],u=!0,c=!1,d=new K,h=this.yieldPos,f=this.awaitPos;for(this.yieldPos=0,this.awaitPos=0;this.type!==C.parenR;){if(u?u=!1:this.expect(C.comma),i&&this.afterTrailingComma(C.parenR,!0)){c=!0;break}if(this.type===C.ellipsis){s=this.start,p.push(this.parseParenItem(this.parseRestBinding())),this.type===C.comma&&this.raiseRecoverable(this.start,"Comma is not permitted after the rest element");break}p.push(this.parseMaybeAssign(!1,d,this.parseParenItem))}var g=this.lastTokEnd,m=this.lastTokEndLoc;if(this.expect(C.parenR),e&&this.shouldParseArrow(p)&&this.eat(C.arrow))return this.checkPatternErrors(d,!1),this.checkYieldAwaitInDefaultParams(),this.yieldPos=h,this.awaitPos=f,this.parseParenArrowList(n,r,p,t);p.length&&!c||this.unexpected(this.lastTokStart),s&&this.unexpected(s),this.checkExpressionErrors(d,!0),this.yieldPos=h||this.yieldPos,this.awaitPos=f||this.awaitPos,p.length>1?((o=this.startNodeAt(a,l)).expressions=p,this.finishNodeAt(o,"SequenceExpression",g,m)):o=p[0]}else o=this.parseParenExpression();if(this.options.preserveParens){var y=this.startNodeAt(n,r);return y.expression=o,this.finishNode(y,"ParenthesizedExpression")}return o},ae.parseParenItem=function(e){return e},ae.parseParenArrowList=function(e,t,o,n){return this.parseArrowExpression(this.startNodeAt(e,t),o,!1,n)};var ue=[];ae.parseNew=function(){this.containsEsc&&this.raiseRecoverable(this.start,"Escape sequence in keyword new");var e=this.startNode();if(this.next(),this.options.ecmaVersion>=6&&this.type===C.dot){var t=this.startNodeAt(e.start,e.loc&&e.loc.start);t.name="new",e.meta=this.finishNode(t,"Identifier"),this.next();var o=this.containsEsc;return e.property=this.parseIdent(!0),"target"!==e.property.name&&this.raiseRecoverable(e.property.start,"The only valid meta property for new is 'new.target'"),o&&this.raiseRecoverable(e.start,"'new.target' must not contain escaped characters"),this.allowNewDotTarget||this.raiseRecoverable(e.start,"'new.target' can only be used in functions and class static block"),this.finishNode(e,"MetaProperty")}var n=this.start,r=this.startLoc;return e.callee=this.parseSubscripts(this.parseExprAtom(null,!1,!0),n,r,!0,!1),this.eat(C.parenL)?e.arguments=this.parseExprList(C.parenR,this.options.ecmaVersion>=8,!1):e.arguments=ue,this.finishNode(e,"NewExpression")},ae.parseTemplateElement=function(e){var t=e.isTagged,o=this.startNode();return this.type===C.invalidTemplate?(t||this.raiseRecoverable(this.start,"Bad escape sequence in untagged template literal"),o.value={raw:this.value.replace(/\r\n?/g,"\n"),cooked:null}):o.value={raw:this.input.slice(this.start,this.end).replace(/\r\n?/g,"\n"),cooked:this.value},this.next(),o.tail=this.type===C.backQuote,this.finishNode(o,"TemplateElement")},ae.parseTemplate=function(e){void 0===e&&(e={});var t=e.isTagged;void 0===t&&(t=!1);var o=this.startNode();this.next(),o.expressions=[];var n=this.parseTemplateElement({isTagged:t});for(o.quasis=[n];!n.tail;)this.type===C.eof&&this.raise(this.pos,"Unterminated template literal"),this.expect(C.dollarBraceL),o.expressions.push(this.parseExpression()),this.expect(C.braceR),o.quasis.push(n=this.parseTemplateElement({isTagged:t}));return this.next(),this.finishNode(o,"TemplateLiteral")},ae.isAsyncProp=function(e){return!e.computed&&"Identifier"===e.key.type&&"async"===e.key.name&&(this.type===C.name||this.type===C.num||this.type===C.string||this.type===C.bracketL||this.type.keyword||this.options.ecmaVersion>=9&&this.type===C.star)&&!w.test(this.input.slice(this.lastTokEnd,this.start))},ae.parseObj=function(e,t){var o=this.startNode(),n=!0,r={};for(o.properties=[],this.next();!this.eat(C.braceR);){if(n)n=!1;else if(this.expect(C.comma),this.options.ecmaVersion>=5&&this.afterTrailingComma(C.braceR))break;var i=this.parseProperty(e,t);e||this.checkPropClash(i,r,t),o.properties.push(i)}return this.finishNode(o,e?"ObjectPattern":"ObjectExpression")},ae.parseProperty=function(e,t){var o,n,r,i,s=this.startNode();if(this.options.ecmaVersion>=9&&this.eat(C.ellipsis))return e?(s.argument=this.parseIdent(!1),this.type===C.comma&&this.raiseRecoverable(this.start,"Comma is not permitted after the rest element"),this.finishNode(s,"RestElement")):(s.argument=this.parseMaybeAssign(!1,t),this.type===C.comma&&t&&t.trailingComma<0&&(t.trailingComma=this.start),this.finishNode(s,"SpreadElement"));this.options.ecmaVersion>=6&&(s.method=!1,s.shorthand=!1,(e||t)&&(r=this.start,i=this.startLoc),e||(o=this.eat(C.star)));var a=this.containsEsc;return this.parsePropertyName(s),!e&&!a&&this.options.ecmaVersion>=8&&!o&&this.isAsyncProp(s)?(n=!0,o=this.options.ecmaVersion>=9&&this.eat(C.star),this.parsePropertyName(s)):n=!1,this.parsePropertyValue(s,e,o,n,r,i,t,a),this.finishNode(s,"Property")},ae.parseGetterSetter=function(e){var t=e.key.name;this.parsePropertyName(e),e.value=this.parseMethod(!1),e.kind=t;var o="get"===e.kind?0:1;if(e.value.params.length!==o){var n=e.value.start;"get"===e.kind?this.raiseRecoverable(n,"getter should have no params"):this.raiseRecoverable(n,"setter should have exactly one param")}else"set"===e.kind&&"RestElement"===e.value.params[0].type&&this.raiseRecoverable(e.value.params[0].start,"Setter cannot use rest params")},ae.parsePropertyValue=function(e,t,o,n,r,i,s,a){(o||n)&&this.type===C.colon&&this.unexpected(),this.eat(C.colon)?(e.value=t?this.parseMaybeDefault(this.start,this.startLoc):this.parseMaybeAssign(!1,s),e.kind="init"):this.options.ecmaVersion>=6&&this.type===C.parenL?(t&&this.unexpected(),e.method=!0,e.value=this.parseMethod(o,n),e.kind="init"):t||a||!(this.options.ecmaVersion>=5)||e.computed||"Identifier"!==e.key.type||"get"!==e.key.name&&"set"!==e.key.name||this.type===C.comma||this.type===C.braceR||this.type===C.eq?this.options.ecmaVersion>=6&&!e.computed&&"Identifier"===e.key.type?((o||n)&&this.unexpected(),this.checkUnreserved(e.key),"await"!==e.key.name||this.awaitIdentPos||(this.awaitIdentPos=r),t?e.value=this.parseMaybeDefault(r,i,this.copyNode(e.key)):this.type===C.eq&&s?(s.shorthandAssign<0&&(s.shorthandAssign=this.start),e.value=this.parseMaybeDefault(r,i,this.copyNode(e.key))):e.value=this.copyNode(e.key),e.kind="init",e.shorthand=!0):this.unexpected():((o||n)&&this.unexpected(),this.parseGetterSetter(e))},ae.parsePropertyName=function(e){if(this.options.ecmaVersion>=6){if(this.eat(C.bracketL))return e.computed=!0,e.key=this.parseMaybeAssign(),this.expect(C.bracketR),e.key;e.computed=!1}return e.key=this.type===C.num||this.type===C.string?this.parseExprAtom():this.parseIdent("never"!==this.options.allowReserved)},ae.initFunction=function(e){e.id=null,this.options.ecmaVersion>=6&&(e.generator=e.expression=!1),this.options.ecmaVersion>=8&&(e.async=!1)},ae.parseMethod=function(e,t,o){var n=this.startNode(),r=this.yieldPos,i=this.awaitPos,s=this.awaitIdentPos;return this.initFunction(n),this.options.ecmaVersion>=6&&(n.generator=e),this.options.ecmaVersion>=8&&(n.async=!!t),this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0,this.enterScope(64|B(t,n.generator)|(o?128:0)),this.expect(C.parenL),n.params=this.parseBindingList(C.parenR,!1,this.options.ecmaVersion>=8),this.checkYieldAwaitInDefaultParams(),this.parseFunctionBody(n,!1,!0,!1),this.yieldPos=r,this.awaitPos=i,this.awaitIdentPos=s,this.finishNode(n,"FunctionExpression")},ae.parseArrowExpression=function(e,t,o,n){var r=this.yieldPos,i=this.awaitPos,s=this.awaitIdentPos;return this.enterScope(16|B(o,!1)),this.initFunction(e),this.options.ecmaVersion>=8&&(e.async=!!o),this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0,e.params=this.toAssignableList(t,!0),this.parseFunctionBody(e,!0,!1,n),this.yieldPos=r,this.awaitPos=i,this.awaitIdentPos=s,this.finishNode(e,"ArrowFunctionExpression")},ae.parseFunctionBody=function(e,t,o,n){var r=t&&this.type!==C.braceL,i=this.strict,s=!1;if(r)e.body=this.parseMaybeAssign(n),e.expression=!0,this.checkParams(e,!1);else{var a=this.options.ecmaVersion>=7&&!this.isSimpleParamList(e.params);i&&!a||(s=this.strictDirective(this.end))&&a&&this.raiseRecoverable(e.start,"Illegal 'use strict' directive in function with non-simple parameter list");var l=this.labels;this.labels=[],s&&(this.strict=!0),this.checkParams(e,!i&&!s&&!t&&!o&&this.isSimpleParamList(e.params)),this.strict&&e.id&&this.checkLValSimple(e.id,5),e.body=this.parseBlock(!1,void 0,s&&!i),e.expression=!1,this.adaptDirectivePrologue(e.body.body),this.labels=l}this.exitScope()},ae.isSimpleParamList=function(e){for(var t=0,o=e;t<o.length;t+=1)if("Identifier"!==o[t].type)return!1;return!0},ae.checkParams=function(e,t){for(var o=Object.create(null),n=0,r=e.params;n<r.length;n+=1){var i=r[n];this.checkLValInnerPattern(i,1,t?null:o)}},ae.parseExprList=function(e,t,o,n){for(var r=[],i=!0;!this.eat(e);){if(i)i=!1;else if(this.expect(C.comma),t&&this.afterTrailingComma(e))break;var s=void 0;o&&this.type===C.comma?s=null:this.type===C.ellipsis?(s=this.parseSpread(n),n&&this.type===C.comma&&n.trailingComma<0&&(n.trailingComma=this.start)):s=this.parseMaybeAssign(!1,n),r.push(s)}return r},ae.checkUnreserved=function(e){var t=e.start,o=e.end,n=e.name;this.inGenerator&&"yield"===n&&this.raiseRecoverable(t,"Cannot use 'yield' as identifier inside a generator"),this.inAsync&&"await"===n&&this.raiseRecoverable(t,"Cannot use 'await' as identifier inside an async function"),this.currentThisScope().flags&H||"arguments"!==n||this.raiseRecoverable(t,"Cannot use 'arguments' in class field initializer"),!this.inClassStaticBlock||"arguments"!==n&&"await"!==n||this.raise(t,"Cannot use "+n+" in class static initialization block"),this.keywords.test(n)&&this.raise(t,"Unexpected keyword '"+n+"'"),this.options.ecmaVersion<6&&-1!==this.input.slice(t,o).indexOf("\\")||(this.strict?this.reservedWordsStrict:this.reservedWords).test(n)&&(this.inAsync||"await"!==n||this.raiseRecoverable(t,"Cannot use keyword 'await' outside an async function"),this.raiseRecoverable(t,"The keyword '"+n+"' is reserved"))},ae.parseIdent=function(e){var t=this.parseIdentNode();return this.next(!!e),this.finishNode(t,"Identifier"),e||(this.checkUnreserved(t),"await"!==t.name||this.awaitIdentPos||(this.awaitIdentPos=t.start)),t},ae.parseIdentNode=function(){var e=this.startNode();return this.type===C.name?e.name=this.value:this.type.keyword?(e.name=this.type.keyword,"class"!==e.name&&"function"!==e.name||this.lastTokEnd===this.lastTokStart+1&&46===this.input.charCodeAt(this.lastTokStart)||this.context.pop(),this.type=C.name):this.unexpected(),e},ae.parsePrivateIdent=function(){var e=this.startNode();return this.type===C.privateId?e.name=this.value:this.unexpected(),this.next(),this.finishNode(e,"PrivateIdentifier"),this.options.checkPrivateFields&&(0===this.privateNameStack.length?this.raise(e.start,"Private field '#"+e.name+"' must be declared in an enclosing class"):this.privateNameStack[this.privateNameStack.length-1].used.push(e)),e},ae.parseYield=function(e){this.yieldPos||(this.yieldPos=this.start);var t=this.startNode();return this.next(),this.type===C.semi||this.canInsertSemicolon()||this.type!==C.star&&!this.type.startsExpr?(t.delegate=!1,t.argument=null):(t.delegate=this.eat(C.star),t.argument=this.parseMaybeAssign(e)),this.finishNode(t,"YieldExpression")},ae.parseAwait=function(e){this.awaitPos||(this.awaitPos=this.start);var t=this.startNode();return this.next(),t.argument=this.parseMaybeUnary(null,!0,!1,e),this.finishNode(t,"AwaitExpression")};var ce=U.prototype;ce.raise=function(e,t){var o=k(this.input,e);t+=" ("+o.line+":"+o.column+")",this.sourceFile&&(t+=" in "+this.sourceFile);var n=new SyntaxError(t);throw n.pos=e,n.loc=o,n.raisedAt=this.pos,n},ce.raiseRecoverable=ce.raise,ce.curPosition=function(){if(this.options.locations)return new L(this.curLine,this.pos-this.lineStart)};var de=U.prototype,he=function(e){this.flags=e,this.var=[],this.lexical=[],this.functions=[]};de.enterScope=function(e){this.scopeStack.push(new he(e))},de.exitScope=function(){this.scopeStack.pop()},de.treatFunctionsAsVarInScope=function(e){return 2&e.flags||!this.inModule&&1&e.flags},de.declareName=function(e,t,o){var n=!1;if(2===t){var r=this.currentScope();n=r.lexical.indexOf(e)>-1||r.functions.indexOf(e)>-1||r.var.indexOf(e)>-1,r.lexical.push(e),this.inModule&&1&r.flags&&delete this.undefinedExports[e]}else if(4===t)this.currentScope().lexical.push(e);else if(3===t){var i=this.currentScope();n=this.treatFunctionsAsVar?i.lexical.indexOf(e)>-1:i.lexical.indexOf(e)>-1||i.var.indexOf(e)>-1,i.functions.push(e)}else for(var s=this.scopeStack.length-1;s>=0;--s){var a=this.scopeStack[s];if(a.lexical.indexOf(e)>-1&&!(32&a.flags&&a.lexical[0]===e)||!this.treatFunctionsAsVarInScope(a)&&a.functions.indexOf(e)>-1){n=!0;break}if(a.var.push(e),this.inModule&&1&a.flags&&delete this.undefinedExports[e],a.flags&H)break}n&&this.raiseRecoverable(o,"Identifier '"+e+"' has already been declared")},de.checkLocalExport=function(e){-1===this.scopeStack[0].lexical.indexOf(e.name)&&-1===this.scopeStack[0].var.indexOf(e.name)&&(this.undefinedExports[e.name]=e)},de.currentScope=function(){return this.scopeStack[this.scopeStack.length-1]},de.currentVarScope=function(){for(var e=this.scopeStack.length-1;;e--){var t=this.scopeStack[e];if(771&t.flags)return t}},de.currentThisScope=function(){for(var e=this.scopeStack.length-1;;e--){var t=this.scopeStack[e];if(771&t.flags&&!(16&t.flags))return t}};var fe=function(e,t,o){this.type="",this.start=t,this.end=0,e.options.locations&&(this.loc=new M(e,o)),e.options.directSourceFile&&(this.sourceFile=e.options.directSourceFile),e.options.ranges&&(this.range=[t,0])},ge=U.prototype;function me(e,t,o,n){return e.type=t,e.end=o,this.options.locations&&(e.loc.end=n),this.options.ranges&&(e.range[1]=o),e}ge.startNode=function(){return new fe(this,this.start,this.startLoc)},ge.startNodeAt=function(e,t){return new fe(this,e,t)},ge.finishNode=function(e,t){return me.call(this,e,t,this.lastTokEnd,this.lastTokEndLoc)},ge.finishNodeAt=function(e,t,o,n){return me.call(this,e,t,o,n)},ge.copyNode=function(e){var t=new fe(this,e.start,this.startLoc);for(var o in e)t[o]=e[o];return t};var ye,ve,Ce="ASCII ASCII_Hex_Digit AHex Alphabetic Alpha Any Assigned Bidi_Control Bidi_C Bidi_Mirrored Bidi_M Case_Ignorable CI Cased Changes_When_Casefolded CWCF Changes_When_Casemapped CWCM Changes_When_Lowercased CWL Changes_When_NFKC_Casefolded CWKCF Changes_When_Titlecased CWT Changes_When_Uppercased CWU Dash Default_Ignorable_Code_Point DI Deprecated Dep Diacritic Dia Emoji Emoji_Component Emoji_Modifier Emoji_Modifier_Base Emoji_Presentation Extender Ext Grapheme_Base Gr_Base Grapheme_Extend Gr_Ext Hex_Digit Hex IDS_Binary_Operator IDSB IDS_Trinary_Operator IDST ID_Continue IDC ID_Start IDS Ideographic Ideo Join_Control Join_C Logical_Order_Exception LOE Lowercase Lower Math Noncharacter_Code_Point NChar Pattern_Syntax Pat_Syn Pattern_White_Space Pat_WS Quotation_Mark QMark Radical Regional_Indicator RI Sentence_Terminal STerm Soft_Dotted SD Terminal_Punctuation Term Unified_Ideograph UIdeo Uppercase Upper Variation_Selector VS White_Space space XID_Continue XIDC XID_Start XIDS",we=Ce+" Extended_Pictographic",_e=we+" EBase EComp EMod EPres ExtPict",Ee={9:Ce,10:we,11:we,12:_e,13:_e,14:_e},be={9:"",10:"",11:"",12:"",13:"",14:"Basic_Emoji Emoji_Keycap_Sequence RGI_Emoji_Modifier_Sequence RGI_Emoji_Flag_Sequence RGI_Emoji_Tag_Sequence RGI_Emoji_ZWJ_Sequence RGI_Emoji"},Re="Cased_Letter LC Close_Punctuation Pe Connector_Punctuation Pc Control Cc cntrl Currency_Symbol Sc Dash_Punctuation Pd Decimal_Number Nd digit Enclosing_Mark Me Final_Punctuation Pf Format Cf Initial_Punctuation Pi Letter L Letter_Number Nl Line_Separator Zl Lowercase_Letter Ll Mark M Combining_Mark Math_Symbol Sm Modifier_Letter Lm Modifier_Symbol Sk Nonspacing_Mark Mn Number N Open_Punctuation Ps Other C Other_Letter Lo Other_Number No Other_Punctuation Po Other_Symbol So Paragraph_Separator Zp Private_Use Co Punctuation P punct Separator Z Space_Separator Zs Spacing_Mark Mc Surrogate Cs Symbol S Titlecase_Letter Lt Unassigned Cn Uppercase_Letter Lu",Se="Adlam Adlm Ahom Anatolian_Hieroglyphs Hluw Arabic Arab Armenian Armn Avestan Avst Balinese Bali Bamum Bamu Bassa_Vah Bass Batak Batk Bengali Beng Bhaiksuki Bhks Bopomofo Bopo Brahmi Brah Braille Brai Buginese Bugi Buhid Buhd Canadian_Aboriginal Cans Carian Cari Caucasian_Albanian Aghb Chakma Cakm Cham Cham Cherokee Cher Common Zyyy Coptic Copt Qaac Cuneiform Xsux Cypriot Cprt Cyrillic Cyrl Deseret Dsrt Devanagari Deva Duployan Dupl Egyptian_Hieroglyphs Egyp Elbasan Elba Ethiopic Ethi Georgian Geor Glagolitic Glag Gothic Goth Grantha Gran Greek Grek Gujarati Gujr Gurmukhi Guru Han Hani Hangul Hang Hanunoo Hano Hatran Hatr Hebrew Hebr Hiragana Hira Imperial_Aramaic Armi Inherited Zinh Qaai Inscriptional_Pahlavi Phli Inscriptional_Parthian Prti Javanese Java Kaithi Kthi Kannada Knda Katakana Kana Kayah_Li Kali Kharoshthi Khar Khmer Khmr Khojki Khoj Khudawadi Sind Lao Laoo Latin Latn Lepcha Lepc Limbu Limb Linear_A Lina Linear_B Linb Lisu Lisu Lycian Lyci Lydian Lydi Mahajani Mahj Malayalam Mlym Mandaic Mand Manichaean Mani Marchen Marc Masaram_Gondi Gonm Meetei_Mayek Mtei Mende_Kikakui Mend Meroitic_Cursive Merc Meroitic_Hieroglyphs Mero Miao Plrd Modi Mongolian Mong Mro Mroo Multani Mult Myanmar Mymr Nabataean Nbat New_Tai_Lue Talu Newa Newa Nko Nkoo Nushu Nshu Ogham Ogam Ol_Chiki Olck Old_Hungarian Hung Old_Italic Ital Old_North_Arabian Narb Old_Permic Perm Old_Persian Xpeo Old_South_Arabian Sarb Old_Turkic Orkh Oriya Orya Osage Osge Osmanya Osma Pahawh_Hmong Hmng Palmyrene Palm Pau_Cin_Hau Pauc Phags_Pa Phag Phoenician Phnx Psalter_Pahlavi Phlp Rejang Rjng Runic Runr Samaritan Samr Saurashtra Saur Sharada Shrd Shavian Shaw Siddham Sidd SignWriting Sgnw Sinhala Sinh Sora_Sompeng Sora Soyombo Soyo Sundanese Sund Syloti_Nagri Sylo Syriac Syrc Tagalog Tglg Tagbanwa Tagb Tai_Le Tale Tai_Tham Lana Tai_Viet Tavt Takri Takr Tamil Taml Tangut Tang Telugu Telu Thaana Thaa Thai Thai Tibetan Tibt Tifinagh Tfng Tirhuta Tirh Ugaritic Ugar Vai Vaii Warang_Citi Wara Yi Yiii Zanabazar_Square Zanb",Oe=Se+" Dogra Dogr Gunjala_Gondi Gong Hanifi_Rohingya Rohg Makasar Maka Medefaidrin Medf Old_Sogdian Sogo Sogdian Sogd",Pe=Oe+" Elymaic Elym Nandinagari Nand Nyiakeng_Puachue_Hmong Hmnp Wancho Wcho",Ae=Pe+" Chorasmian Chrs Diak Dives_Akuru Khitan_Small_Script Kits Yezi Yezidi",Te=Ae+" Cypro_Minoan Cpmn Old_Uyghur Ougr Tangsa Tnsa Toto Vithkuqi Vith",De={9:Se,10:Oe,11:Pe,12:Ae,13:Te,14:Te+" Berf Beria_Erfe Gara Garay Gukh Gurung_Khema Hrkt Katakana_Or_Hiragana Kawi Kirat_Rai Krai Nag_Mundari Nagm Ol_Onal Onao Sidetic Sidt Sunu Sunuwar Tai_Yo Tayo Todhri Todr Tolong_Siki Tols Tulu_Tigalari Tutg Unknown Zzzz"},Ne={};for(var Ie=0,xe=[9,10,11,12,13,14];Ie<xe.length;Ie+=1)ve=void 0,(ve=Ne[ye=xe[Ie]]={binary:I(Ee[ye]+" "+Re),binaryOfStrings:I(be[ye]),nonBinary:{General_Category:I(Re),Script:I(De[ye])}}).nonBinary.Script_Extensions=ve.nonBinary.Script,ve.nonBinary.gc=ve.nonBinary.General_Category,ve.nonBinary.sc=ve.nonBinary.Script,ve.nonBinary.scx=ve.nonBinary.Script_Extensions;var Fe=U.prototype,Le=function(e,t){this.parent=e,this.base=t||this};Le.prototype.separatedFrom=function(e){for(var t=this;t;t=t.parent)for(var o=e;o;o=o.parent)if(t.base===o.base&&t!==o)return!0;return!1},Le.prototype.sibling=function(){return new Le(this.parent,this.base)};var Me=function(e){this.parser=e,this.validFlags="gim"+(e.options.ecmaVersion>=6?"uy":"")+(e.options.ecmaVersion>=9?"s":"")+(e.options.ecmaVersion>=13?"d":"")+(e.options.ecmaVersion>=15?"v":""),this.unicodeProperties=Ne[e.options.ecmaVersion>=14?14:e.options.ecmaVersion],this.source="",this.flags="",this.start=0,this.switchU=!1,this.switchV=!1,this.switchN=!1,this.pos=0,this.lastIntValue=0,this.lastStringValue="",this.lastAssertionIsQuantifiable=!1,this.numCapturingParens=0,this.maxBackReference=0,this.groupNames=Object.create(null),this.backReferenceNames=[],this.branchID=null};function ke(e){return 105===e||109===e||115===e}function Ge(e){return 36===e||e>=40&&e<=43||46===e||63===e||e>=91&&e<=94||e>=123&&e<=125}function Ve(e){return e>=65&&e<=90||e>=97&&e<=122}Me.prototype.reset=function(e,t,o){var n=-1!==o.indexOf("v"),r=-1!==o.indexOf("u");this.start=0|e,this.source=t+"",this.flags=o,n&&this.parser.options.ecmaVersion>=15?(this.switchU=!0,this.switchV=!0,this.switchN=!0):(this.switchU=r&&this.parser.options.ecmaVersion>=6,this.switchV=!1,this.switchN=r&&this.parser.options.ecmaVersion>=9)},Me.prototype.raise=function(e){this.parser.raiseRecoverable(this.start,"Invalid regular expression: /"+this.source+"/: "+e)},Me.prototype.at=function(e,t){void 0===t&&(t=!1);var o=this.source,n=o.length;if(e>=n)return-1;var r=o.charCodeAt(e);if(!t&&!this.switchU||r<=55295||r>=57344||e+1>=n)return r;var i=o.charCodeAt(e+1);return i>=56320&&i<=57343?(r<<10)+i-56613888:r},Me.prototype.nextIndex=function(e,t){void 0===t&&(t=!1);var o=this.source,n=o.length;if(e>=n)return n;var r,i=o.charCodeAt(e);return!t&&!this.switchU||i<=55295||i>=57344||e+1>=n||(r=o.charCodeAt(e+1))<56320||r>57343?e+1:e+2},Me.prototype.current=function(e){return void 0===e&&(e=!1),this.at(this.pos,e)},Me.prototype.lookahead=function(e){return void 0===e&&(e=!1),this.at(this.nextIndex(this.pos,e),e)},Me.prototype.advance=function(e){void 0===e&&(e=!1),this.pos=this.nextIndex(this.pos,e)},Me.prototype.eat=function(e,t){return void 0===t&&(t=!1),this.current(t)===e&&(this.advance(t),!0)},Me.prototype.eatChars=function(e,t){void 0===t&&(t=!1);for(var o=this.pos,n=0,r=e;n<r.length;n+=1){var i=r[n],s=this.at(o,t);if(-1===s||s!==i)return!1;o=this.nextIndex(o,t)}return this.pos=o,!0},Fe.validateRegExpFlags=function(e){for(var t=e.validFlags,o=e.flags,n=!1,r=!1,i=0;i<o.length;i++){var s=o.charAt(i);-1===t.indexOf(s)&&this.raise(e.start,"Invalid regular expression flag"),o.indexOf(s,i+1)>-1&&this.raise(e.start,"Duplicate regular expression flag"),"u"===s&&(n=!0),"v"===s&&(r=!0)}this.options.ecmaVersion>=15&&n&&r&&this.raise(e.start,"Invalid regular expression flag")},Fe.validateRegExpPattern=function(e){this.regexp_pattern(e),!e.switchN&&this.options.ecmaVersion>=9&&function(e){for(var t in e)return!0;return!1}(e.groupNames)&&(e.switchN=!0,this.regexp_pattern(e))},Fe.regexp_pattern=function(e){e.pos=0,e.lastIntValue=0,e.lastStringValue="",e.lastAssertionIsQuantifiable=!1,e.numCapturingParens=0,e.maxBackReference=0,e.groupNames=Object.create(null),e.backReferenceNames.length=0,e.branchID=null,this.regexp_disjunction(e),e.pos!==e.source.length&&(e.eat(41)&&e.raise("Unmatched ')'"),(e.eat(93)||e.eat(125))&&e.raise("Lone quantifier brackets")),e.maxBackReference>e.numCapturingParens&&e.raise("Invalid escape");for(var t=0,o=e.backReferenceNames;t<o.length;t+=1){var n=o[t];e.groupNames[n]||e.raise("Invalid named capture referenced")}},Fe.regexp_disjunction=function(e){var t=this.options.ecmaVersion>=16;for(t&&(e.branchID=new Le(e.branchID,null)),this.regexp_alternative(e);e.eat(124);)t&&(e.branchID=e.branchID.sibling()),this.regexp_alternative(e);t&&(e.branchID=e.branchID.parent),this.regexp_eatQuantifier(e,!0)&&e.raise("Nothing to repeat"),e.eat(123)&&e.raise("Lone quantifier brackets")},Fe.regexp_alternative=function(e){for(;e.pos<e.source.length&&this.regexp_eatTerm(e););},Fe.regexp_eatTerm=function(e){return this.regexp_eatAssertion(e)?(e.lastAssertionIsQuantifiable&&this.regexp_eatQuantifier(e)&&e.switchU&&e.raise("Invalid quantifier"),!0):!!(e.switchU?this.regexp_eatAtom(e):this.regexp_eatExtendedAtom(e))&&(this.regexp_eatQuantifier(e),!0)},Fe.regexp_eatAssertion=function(e){var t=e.pos;if(e.lastAssertionIsQuantifiable=!1,e.eat(94)||e.eat(36))return!0;if(e.eat(92)){if(e.eat(66)||e.eat(98))return!0;e.pos=t}if(e.eat(40)&&e.eat(63)){var o=!1;if(this.options.ecmaVersion>=9&&(o=e.eat(60)),e.eat(61)||e.eat(33))return this.regexp_disjunction(e),e.eat(41)||e.raise("Unterminated group"),e.lastAssertionIsQuantifiable=!o,!0}return e.pos=t,!1},Fe.regexp_eatQuantifier=function(e,t){return void 0===t&&(t=!1),!!this.regexp_eatQuantifierPrefix(e,t)&&(e.eat(63),!0)},Fe.regexp_eatQuantifierPrefix=function(e,t){return e.eat(42)||e.eat(43)||e.eat(63)||this.regexp_eatBracedQuantifier(e,t)},Fe.regexp_eatBracedQuantifier=function(e,t){var o=e.pos;if(e.eat(123)){var n=0,r=-1;if(this.regexp_eatDecimalDigits(e)&&(n=e.lastIntValue,e.eat(44)&&this.regexp_eatDecimalDigits(e)&&(r=e.lastIntValue),e.eat(125)))return-1!==r&&r<n&&!t&&e.raise("numbers out of order in {} quantifier"),!0;e.switchU&&!t&&e.raise("Incomplete quantifier"),e.pos=o}return!1},Fe.regexp_eatAtom=function(e){return this.regexp_eatPatternCharacters(e)||e.eat(46)||this.regexp_eatReverseSolidusAtomEscape(e)||this.regexp_eatCharacterClass(e)||this.regexp_eatUncapturingGroup(e)||this.regexp_eatCapturingGroup(e)},Fe.regexp_eatReverseSolidusAtomEscape=function(e){var t=e.pos;if(e.eat(92)){if(this.regexp_eatAtomEscape(e))return!0;e.pos=t}return!1},Fe.regexp_eatUncapturingGroup=function(e){var t=e.pos;if(e.eat(40)){if(e.eat(63)){if(this.options.ecmaVersion>=16){var o=this.regexp_eatModifiers(e),n=e.eat(45);if(o||n){for(var r=0;r<o.length;r++){var i=o.charAt(r);o.indexOf(i,r+1)>-1&&e.raise("Duplicate regular expression modifiers")}if(n){var s=this.regexp_eatModifiers(e);o||s||58!==e.current()||e.raise("Invalid regular expression modifiers");for(var a=0;a<s.length;a++){var l=s.charAt(a);(s.indexOf(l,a+1)>-1||o.indexOf(l)>-1)&&e.raise("Duplicate regular expression modifiers")}}}}if(e.eat(58)){if(this.regexp_disjunction(e),e.eat(41))return!0;e.raise("Unterminated group")}}e.pos=t}return!1},Fe.regexp_eatCapturingGroup=function(e){if(e.eat(40)){if(this.options.ecmaVersion>=9?this.regexp_groupSpecifier(e):63===e.current()&&e.raise("Invalid group"),this.regexp_disjunction(e),e.eat(41))return e.numCapturingParens+=1,!0;e.raise("Unterminated group")}return!1},Fe.regexp_eatModifiers=function(e){for(var t="",o=0;-1!==(o=e.current())&&ke(o);)t+=x(o),e.advance();return t},Fe.regexp_eatExtendedAtom=function(e){return e.eat(46)||this.regexp_eatReverseSolidusAtomEscape(e)||this.regexp_eatCharacterClass(e)||this.regexp_eatUncapturingGroup(e)||this.regexp_eatCapturingGroup(e)||this.regexp_eatInvalidBracedQuantifier(e)||this.regexp_eatExtendedPatternCharacter(e)},Fe.regexp_eatInvalidBracedQuantifier=function(e){return this.regexp_eatBracedQuantifier(e,!0)&&e.raise("Nothing to repeat"),!1},Fe.regexp_eatSyntaxCharacter=function(e){var t=e.current();return!!Ge(t)&&(e.lastIntValue=t,e.advance(),!0)},Fe.regexp_eatPatternCharacters=function(e){for(var t=e.pos,o=0;-1!==(o=e.current())&&!Ge(o);)e.advance();return e.pos!==t},Fe.regexp_eatExtendedPatternCharacter=function(e){var t=e.current();return!(-1===t||36===t||t>=40&&t<=43||46===t||63===t||91===t||94===t||124===t||(e.advance(),0))},Fe.regexp_groupSpecifier=function(e){if(e.eat(63)){this.regexp_eatGroupName(e)||e.raise("Invalid group");var t=this.options.ecmaVersion>=16,o=e.groupNames[e.lastStringValue];if(o)if(t)for(var n=0,r=o;n<r.length;n+=1)r[n].separatedFrom(e.branchID)||e.raise("Duplicate capture group name");else e.raise("Duplicate capture group name");t?(o||(e.groupNames[e.lastStringValue]=[])).push(e.branchID):e.groupNames[e.lastStringValue]=!0}},Fe.regexp_eatGroupName=function(e){if(e.lastStringValue="",e.eat(60)){if(this.regexp_eatRegExpIdentifierName(e)&&e.eat(62))return!0;e.raise("Invalid capture group name")}return!1},Fe.regexp_eatRegExpIdentifierName=function(e){if(e.lastStringValue="",this.regexp_eatRegExpIdentifierStart(e)){for(e.lastStringValue+=x(e.lastIntValue);this.regexp_eatRegExpIdentifierPart(e);)e.lastStringValue+=x(e.lastIntValue);return!0}return!1},Fe.regexp_eatRegExpIdentifierStart=function(e){var t=e.pos,o=this.options.ecmaVersion>=11,n=e.current(o);return e.advance(o),92===n&&this.regexp_eatRegExpUnicodeEscapeSequence(e,o)&&(n=e.lastIntValue),function(e){return c(e,!0)||36===e||95===e}(n)?(e.lastIntValue=n,!0):(e.pos=t,!1)},Fe.regexp_eatRegExpIdentifierPart=function(e){var t=e.pos,o=this.options.ecmaVersion>=11,n=e.current(o);return e.advance(o),92===n&&this.regexp_eatRegExpUnicodeEscapeSequence(e,o)&&(n=e.lastIntValue),function(e){return d(e,!0)||36===e||95===e||8204===e||8205===e}(n)?(e.lastIntValue=n,!0):(e.pos=t,!1)},Fe.regexp_eatAtomEscape=function(e){return!!(this.regexp_eatBackReference(e)||this.regexp_eatCharacterClassEscape(e)||this.regexp_eatCharacterEscape(e)||e.switchN&&this.regexp_eatKGroupName(e))||(e.switchU&&(99===e.current()&&e.raise("Invalid unicode escape"),e.raise("Invalid escape")),!1)},Fe.regexp_eatBackReference=function(e){var t=e.pos;if(this.regexp_eatDecimalEscape(e)){var o=e.lastIntValue;if(e.switchU)return o>e.maxBackReference&&(e.maxBackReference=o),!0;if(o<=e.numCapturingParens)return!0;e.pos=t}return!1},Fe.regexp_eatKGroupName=function(e){if(e.eat(107)){if(this.regexp_eatGroupName(e))return e.backReferenceNames.push(e.lastStringValue),!0;e.raise("Invalid named reference")}return!1},Fe.regexp_eatCharacterEscape=function(e){return this.regexp_eatControlEscape(e)||this.regexp_eatCControlLetter(e)||this.regexp_eatZero(e)||this.regexp_eatHexEscapeSequence(e)||this.regexp_eatRegExpUnicodeEscapeSequence(e,!1)||!e.switchU&&this.regexp_eatLegacyOctalEscapeSequence(e)||this.regexp_eatIdentityEscape(e)},Fe.regexp_eatCControlLetter=function(e){var t=e.pos;if(e.eat(99)){if(this.regexp_eatControlLetter(e))return!0;e.pos=t}return!1},Fe.regexp_eatZero=function(e){return 48===e.current()&&!He(e.lookahead())&&(e.lastIntValue=0,e.advance(),!0)},Fe.regexp_eatControlEscape=function(e){var t=e.current();return 116===t?(e.lastIntValue=9,e.advance(),!0):110===t?(e.lastIntValue=10,e.advance(),!0):118===t?(e.lastIntValue=11,e.advance(),!0):102===t?(e.lastIntValue=12,e.advance(),!0):114===t&&(e.lastIntValue=13,e.advance(),!0)},Fe.regexp_eatControlLetter=function(e){var t=e.current();return!!Ve(t)&&(e.lastIntValue=t%32,e.advance(),!0)},Fe.regexp_eatRegExpUnicodeEscapeSequence=function(e,t){void 0===t&&(t=!1);var o,n=e.pos,r=t||e.switchU;if(e.eat(117)){if(this.regexp_eatFixedHexDigits(e,4)){var i=e.lastIntValue;if(r&&i>=55296&&i<=56319){var s=e.pos;if(e.eat(92)&&e.eat(117)&&this.regexp_eatFixedHexDigits(e,4)){var a=e.lastIntValue;if(a>=56320&&a<=57343)return e.lastIntValue=1024*(i-55296)+(a-56320)+65536,!0}e.pos=s,e.lastIntValue=i}return!0}if(r&&e.eat(123)&&this.regexp_eatHexDigits(e)&&e.eat(125)&&((o=e.lastIntValue)>=0&&o<=1114111))return!0;r&&e.raise("Invalid unicode escape"),e.pos=n}return!1},Fe.regexp_eatIdentityEscape=function(e){if(e.switchU)return!!this.regexp_eatSyntaxCharacter(e)||!!e.eat(47)&&(e.lastIntValue=47,!0);var t=e.current();return!(99===t||e.switchN&&107===t||(e.lastIntValue=t,e.advance(),0))},Fe.regexp_eatDecimalEscape=function(e){e.lastIntValue=0;var t=e.current();if(t>=49&&t<=57){do{e.lastIntValue=10*e.lastIntValue+(t-48),e.advance()}while((t=e.current())>=48&&t<=57);return!0}return!1};function je(e){return Ve(e)||95===e}function We(e){return je(e)||He(e)}function He(e){return e>=48&&e<=57}function Be(e){return e>=48&&e<=57||e>=65&&e<=70||e>=97&&e<=102}function Ue(e){return e>=65&&e<=70?e-65+10:e>=97&&e<=102?e-97+10:e-48}function Ye(e){return e>=48&&e<=55}Fe.regexp_eatCharacterClassEscape=function(e){var t=e.current();if(function(e){return 100===e||68===e||115===e||83===e||119===e||87===e}(t))return e.lastIntValue=-1,e.advance(),1;var o=!1;if(e.switchU&&this.options.ecmaVersion>=9&&((o=80===t)||112===t)){var n;if(e.lastIntValue=-1,e.advance(),e.eat(123)&&(n=this.regexp_eatUnicodePropertyValueExpression(e))&&e.eat(125))return o&&2===n&&e.raise("Invalid property name"),n;e.raise("Invalid property name")}return 0},Fe.regexp_eatUnicodePropertyValueExpression=function(e){var t=e.pos;if(this.regexp_eatUnicodePropertyName(e)&&e.eat(61)){var o=e.lastStringValue;if(this.regexp_eatUnicodePropertyValue(e)){var n=e.lastStringValue;return this.regexp_validateUnicodePropertyNameAndValue(e,o,n),1}}if(e.pos=t,this.regexp_eatLoneUnicodePropertyNameOrValue(e)){var r=e.lastStringValue;return this.regexp_validateUnicodePropertyNameOrValue(e,r)}return 0},Fe.regexp_validateUnicodePropertyNameAndValue=function(e,t,o){T(e.unicodeProperties.nonBinary,t)||e.raise("Invalid property name"),e.unicodeProperties.nonBinary[t].test(o)||e.raise("Invalid property value")},Fe.regexp_validateUnicodePropertyNameOrValue=function(e,t){return e.unicodeProperties.binary.test(t)?1:e.switchV&&e.unicodeProperties.binaryOfStrings.test(t)?2:void e.raise("Invalid property name")},Fe.regexp_eatUnicodePropertyName=function(e){var t=0;for(e.lastStringValue="";je(t=e.current());)e.lastStringValue+=x(t),e.advance();return""!==e.lastStringValue},Fe.regexp_eatUnicodePropertyValue=function(e){var t=0;for(e.lastStringValue="";We(t=e.current());)e.lastStringValue+=x(t),e.advance();return""!==e.lastStringValue},Fe.regexp_eatLoneUnicodePropertyNameOrValue=function(e){return this.regexp_eatUnicodePropertyValue(e)},Fe.regexp_eatCharacterClass=function(e){if(e.eat(91)){var t=e.eat(94),o=this.regexp_classContents(e);return e.eat(93)||e.raise("Unterminated character class"),t&&2===o&&e.raise("Negated character class may contain strings"),!0}return!1},Fe.regexp_classContents=function(e){return 93===e.current()?1:e.switchV?this.regexp_classSetExpression(e):(this.regexp_nonEmptyClassRanges(e),1)},Fe.regexp_nonEmptyClassRanges=function(e){for(;this.regexp_eatClassAtom(e);){var t=e.lastIntValue;if(e.eat(45)&&this.regexp_eatClassAtom(e)){var o=e.lastIntValue;!e.switchU||-1!==t&&-1!==o||e.raise("Invalid character class"),-1!==t&&-1!==o&&t>o&&e.raise("Range out of order in character class")}}},Fe.regexp_eatClassAtom=function(e){var t=e.pos;if(e.eat(92)){if(this.regexp_eatClassEscape(e))return!0;if(e.switchU){var o=e.current();(99===o||Ye(o))&&e.raise("Invalid class escape"),e.raise("Invalid escape")}e.pos=t}var n=e.current();return 93!==n&&(e.lastIntValue=n,e.advance(),!0)},Fe.regexp_eatClassEscape=function(e){var t=e.pos;if(e.eat(98))return e.lastIntValue=8,!0;if(e.switchU&&e.eat(45))return e.lastIntValue=45,!0;if(!e.switchU&&e.eat(99)){if(this.regexp_eatClassControlLetter(e))return!0;e.pos=t}return this.regexp_eatCharacterClassEscape(e)||this.regexp_eatCharacterEscape(e)},Fe.regexp_classSetExpression=function(e){var t,o=1;if(this.regexp_eatClassSetRange(e));else if(t=this.regexp_eatClassSetOperand(e)){2===t&&(o=2);for(var n=e.pos;e.eatChars([38,38]);)38!==e.current()&&(t=this.regexp_eatClassSetOperand(e))?2!==t&&(o=1):e.raise("Invalid character in character class");if(n!==e.pos)return o;for(;e.eatChars([45,45]);)this.regexp_eatClassSetOperand(e)||e.raise("Invalid character in character class");if(n!==e.pos)return o}else e.raise("Invalid character in character class");for(;;)if(!this.regexp_eatClassSetRange(e)){if(!(t=this.regexp_eatClassSetOperand(e)))return o;2===t&&(o=2)}},Fe.regexp_eatClassSetRange=function(e){var t=e.pos;if(this.regexp_eatClassSetCharacter(e)){var o=e.lastIntValue;if(e.eat(45)&&this.regexp_eatClassSetCharacter(e)){var n=e.lastIntValue;return-1!==o&&-1!==n&&o>n&&e.raise("Range out of order in character class"),!0}e.pos=t}return!1},Fe.regexp_eatClassSetOperand=function(e){return this.regexp_eatClassSetCharacter(e)?1:this.regexp_eatClassStringDisjunction(e)||this.regexp_eatNestedClass(e)},Fe.regexp_eatNestedClass=function(e){var t=e.pos;if(e.eat(91)){var o=e.eat(94),n=this.regexp_classContents(e);if(e.eat(93))return o&&2===n&&e.raise("Negated character class may contain strings"),n;e.pos=t}if(e.eat(92)){var r=this.regexp_eatCharacterClassEscape(e);if(r)return r;e.pos=t}return null},Fe.regexp_eatClassStringDisjunction=function(e){var t=e.pos;if(e.eatChars([92,113])){if(e.eat(123)){var o=this.regexp_classStringDisjunctionContents(e);if(e.eat(125))return o}else e.raise("Invalid escape");e.pos=t}return null},Fe.regexp_classStringDisjunctionContents=function(e){for(var t=this.regexp_classString(e);e.eat(124);)2===this.regexp_classString(e)&&(t=2);return t},Fe.regexp_classString=function(e){for(var t=0;this.regexp_eatClassSetCharacter(e);)t++;return 1===t?1:2},Fe.regexp_eatClassSetCharacter=function(e){var t=e.pos;if(e.eat(92))return!(!this.regexp_eatCharacterEscape(e)&&!this.regexp_eatClassSetReservedPunctuator(e)&&(e.eat(98)?(e.lastIntValue=8,0):(e.pos=t,1)));var o=e.current();return!(o<0||o===e.lookahead()&&function(e){return 33===e||e>=35&&e<=38||e>=42&&e<=44||46===e||e>=58&&e<=64||94===e||96===e||126===e}(o)||function(e){return 40===e||41===e||45===e||47===e||e>=91&&e<=93||e>=123&&e<=125}(o)||(e.advance(),e.lastIntValue=o,0))},Fe.regexp_eatClassSetReservedPunctuator=function(e){var t=e.current();return!!function(e){return 33===e||35===e||37===e||38===e||44===e||45===e||e>=58&&e<=62||64===e||96===e||126===e}(t)&&(e.lastIntValue=t,e.advance(),!0)},Fe.regexp_eatClassControlLetter=function(e){var t=e.current();return!(!He(t)&&95!==t||(e.lastIntValue=t%32,e.advance(),0))},Fe.regexp_eatHexEscapeSequence=function(e){var t=e.pos;if(e.eat(120)){if(this.regexp_eatFixedHexDigits(e,2))return!0;e.switchU&&e.raise("Invalid escape"),e.pos=t}return!1},Fe.regexp_eatDecimalDigits=function(e){var t=e.pos,o=0;for(e.lastIntValue=0;He(o=e.current());)e.lastIntValue=10*e.lastIntValue+(o-48),e.advance();return e.pos!==t},Fe.regexp_eatHexDigits=function(e){var t=e.pos,o=0;for(e.lastIntValue=0;Be(o=e.current());)e.lastIntValue=16*e.lastIntValue+Ue(o),e.advance();return e.pos!==t},Fe.regexp_eatLegacyOctalEscapeSequence=function(e){if(this.regexp_eatOctalDigit(e)){var t=e.lastIntValue;if(this.regexp_eatOctalDigit(e)){var o=e.lastIntValue;t<=3&&this.regexp_eatOctalDigit(e)?e.lastIntValue=64*t+8*o+e.lastIntValue:e.lastIntValue=8*t+o}else e.lastIntValue=t;return!0}return!1},Fe.regexp_eatOctalDigit=function(e){var t=e.current();return Ye(t)?(e.lastIntValue=t-48,e.advance(),!0):(e.lastIntValue=0,!1)},Fe.regexp_eatFixedHexDigits=function(e,t){var o=e.pos;e.lastIntValue=0;for(var n=0;n<t;++n){var r=e.current();if(!Be(r))return e.pos=o,!1;e.lastIntValue=16*e.lastIntValue+Ue(r),e.advance()}return!0};var ze=function(e){this.type=e.type,this.value=e.value,this.start=e.start,this.end=e.end,e.options.locations&&(this.loc=new M(e,e.startLoc,e.endLoc)),e.options.ranges&&(this.range=[e.start,e.end])},$e=U.prototype;function Ke(e){return"function"!=typeof BigInt?null:BigInt(e.replace(/_/g,""))}$e.next=function(e){!e&&this.type.keyword&&this.containsEsc&&this.raiseRecoverable(this.start,"Escape sequence in keyword "+this.type.keyword),this.options.onToken&&this.options.onToken(new ze(this)),this.lastTokEnd=this.end,this.lastTokStart=this.start,this.lastTokEndLoc=this.endLoc,this.lastTokStartLoc=this.startLoc,this.nextToken()},$e.getToken=function(){return this.next(),new ze(this)},"undefined"!=typeof Symbol&&($e[Symbol.iterator]=function(){var e=this;return{next:function(){var t=e.getToken();return{done:t.type===C.eof,value:t}}}}),$e.nextToken=function(){var e=this.curContext();return e&&e.preserveSpace||this.skipSpace(),this.start=this.pos,this.options.locations&&(this.startLoc=this.curPosition()),this.pos>=this.input.length?this.finishToken(C.eof):e.override?e.override(this):void this.readToken(this.fullCharCodeAtPos())},$e.readToken=function(e){return c(e,this.options.ecmaVersion>=6)||92===e?this.readWord():this.getTokenFromCode(e)},$e.fullCharCodeAt=function(e){var t=this.input.charCodeAt(e);if(t<=55295||t>=56320)return t;var o=this.input.charCodeAt(e+1);return o<=56319||o>=57344?t:(t<<10)+o-56613888},$e.fullCharCodeAtPos=function(){return this.fullCharCodeAt(this.pos)},$e.skipBlockComment=function(){var e=this.options.onComment&&this.curPosition(),t=this.pos,o=this.input.indexOf("*/",this.pos+=2);if(-1===o&&this.raise(this.pos-2,"Unterminated comment"),this.pos=o+2,this.options.locations)for(var n=void 0,r=t;(n=b(this.input,r,this.pos))>-1;)++this.curLine,r=this.lineStart=n;this.options.onComment&&this.options.onComment(!0,this.input.slice(t+2,o),t,this.pos,e,this.curPosition())},$e.skipLineComment=function(e){for(var t=this.pos,o=this.options.onComment&&this.curPosition(),n=this.input.charCodeAt(this.pos+=e);this.pos<this.input.length&&!E(n);)n=this.input.charCodeAt(++this.pos);this.options.onComment&&this.options.onComment(!1,this.input.slice(t+e,this.pos),t,this.pos,o,this.curPosition())},$e.skipSpace=function(){e:for(;this.pos<this.input.length;){var e=this.input.charCodeAt(this.pos);switch(e){case 32:case 160:++this.pos;break;case 13:10===this.input.charCodeAt(this.pos+1)&&++this.pos;case 10:case 8232:case 8233:++this.pos,this.options.locations&&(++this.curLine,this.lineStart=this.pos);break;case 47:switch(this.input.charCodeAt(this.pos+1)){case 42:this.skipBlockComment();break;case 47:this.skipLineComment(2);break;default:break e}break;default:if(!(e>8&&e<14||e>=5760&&R.test(String.fromCharCode(e))))break e;++this.pos}}},$e.finishToken=function(e,t){this.end=this.pos,this.options.locations&&(this.endLoc=this.curPosition());var o=this.type;this.type=e,this.value=t,this.updateContext(o)},$e.readToken_dot=function(){var e=this.input.charCodeAt(this.pos+1);if(e>=48&&e<=57)return this.readNumber(!0);var t=this.input.charCodeAt(this.pos+2);return this.options.ecmaVersion>=6&&46===e&&46===t?(this.pos+=3,this.finishToken(C.ellipsis)):(++this.pos,this.finishToken(C.dot))},$e.readToken_slash=function(){var e=this.input.charCodeAt(this.pos+1);return this.exprAllowed?(++this.pos,this.readRegexp()):61===e?this.finishOp(C.assign,2):this.finishOp(C.slash,1)},$e.readToken_mult_modulo_exp=function(e){var t=this.input.charCodeAt(this.pos+1),o=1,n=42===e?C.star:C.modulo;return this.options.ecmaVersion>=7&&42===e&&42===t&&(++o,n=C.starstar,t=this.input.charCodeAt(this.pos+2)),61===t?this.finishOp(C.assign,o+1):this.finishOp(n,o)},$e.readToken_pipe_amp=function(e){var t=this.input.charCodeAt(this.pos+1);return t===e?this.options.ecmaVersion>=12&&61===this.input.charCodeAt(this.pos+2)?this.finishOp(C.assign,3):this.finishOp(124===e?C.logicalOR:C.logicalAND,2):61===t?this.finishOp(C.assign,2):this.finishOp(124===e?C.bitwiseOR:C.bitwiseAND,1)},$e.readToken_caret=function(){return 61===this.input.charCodeAt(this.pos+1)?this.finishOp(C.assign,2):this.finishOp(C.bitwiseXOR,1)},$e.readToken_plus_min=function(e){var t=this.input.charCodeAt(this.pos+1);return t===e?45!==t||this.inModule||62!==this.input.charCodeAt(this.pos+2)||0!==this.lastTokEnd&&!w.test(this.input.slice(this.lastTokEnd,this.pos))?this.finishOp(C.incDec,2):(this.skipLineComment(3),this.skipSpace(),this.nextToken()):61===t?this.finishOp(C.assign,2):this.finishOp(C.plusMin,1)},$e.readToken_lt_gt=function(e){var t=this.input.charCodeAt(this.pos+1),o=1;return t===e?(o=62===e&&62===this.input.charCodeAt(this.pos+2)?3:2,61===this.input.charCodeAt(this.pos+o)?this.finishOp(C.assign,o+1):this.finishOp(C.bitShift,o)):33!==t||60!==e||this.inModule||45!==this.input.charCodeAt(this.pos+2)||45!==this.input.charCodeAt(this.pos+3)?(61===t&&(o=2),this.finishOp(C.relational,o)):(this.skipLineComment(4),this.skipSpace(),this.nextToken())},$e.readToken_eq_excl=function(e){var t=this.input.charCodeAt(this.pos+1);return 61===t?this.finishOp(C.equality,61===this.input.charCodeAt(this.pos+2)?3:2):61===e&&62===t&&this.options.ecmaVersion>=6?(this.pos+=2,this.finishToken(C.arrow)):this.finishOp(61===e?C.eq:C.prefix,1)},$e.readToken_question=function(){var e=this.options.ecmaVersion;if(e>=11){var t=this.input.charCodeAt(this.pos+1);if(46===t){var o=this.input.charCodeAt(this.pos+2);if(o<48||o>57)return this.finishOp(C.questionDot,2)}if(63===t)return e>=12&&61===this.input.charCodeAt(this.pos+2)?this.finishOp(C.assign,3):this.finishOp(C.coalesce,2)}return this.finishOp(C.question,1)},$e.readToken_numberSign=function(){var e=35;if(this.options.ecmaVersion>=13&&(++this.pos,c(e=this.fullCharCodeAtPos(),!0)||92===e))return this.finishToken(C.privateId,this.readWord1());this.raise(this.pos,"Unexpected character '"+x(e)+"'")},$e.getTokenFromCode=function(e){switch(e){case 46:return this.readToken_dot();case 40:return++this.pos,this.finishToken(C.parenL);case 41:return++this.pos,this.finishToken(C.parenR);case 59:return++this.pos,this.finishToken(C.semi);case 44:return++this.pos,this.finishToken(C.comma);case 91:return++this.pos,this.finishToken(C.bracketL);case 93:return++this.pos,this.finishToken(C.bracketR);case 123:return++this.pos,this.finishToken(C.braceL);case 125:return++this.pos,this.finishToken(C.braceR);case 58:return++this.pos,this.finishToken(C.colon);case 96:if(this.options.ecmaVersion<6)break;return++this.pos,this.finishToken(C.backQuote);case 48:var t=this.input.charCodeAt(this.pos+1);if(120===t||88===t)return this.readRadixNumber(16);if(this.options.ecmaVersion>=6){if(111===t||79===t)return this.readRadixNumber(8);if(98===t||66===t)return this.readRadixNumber(2)}case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:return this.readNumber(!1);case 34:case 39:return this.readString(e);case 47:return this.readToken_slash();case 37:case 42:return this.readToken_mult_modulo_exp(e);case 124:case 38:return this.readToken_pipe_amp(e);case 94:return this.readToken_caret();case 43:case 45:return this.readToken_plus_min(e);case 60:case 62:return this.readToken_lt_gt(e);case 61:case 33:return this.readToken_eq_excl(e);case 63:return this.readToken_question();case 126:return this.finishOp(C.prefix,1);case 35:return this.readToken_numberSign()}this.raise(this.pos,"Unexpected character '"+x(e)+"'")},$e.finishOp=function(e,t){var o=this.input.slice(this.pos,this.pos+t);return this.pos+=t,this.finishToken(e,o)},$e.readRegexp=function(){for(var e,t,o=this.pos;;){this.pos>=this.input.length&&this.raise(o,"Unterminated regular expression");var n=this.input.charAt(this.pos);if(w.test(n)&&this.raise(o,"Unterminated regular expression"),e)e=!1;else{if("["===n)t=!0;else if("]"===n&&t)t=!1;else if("/"===n&&!t)break;e="\\"===n}++this.pos}var r=this.input.slice(o,this.pos);++this.pos;var i=this.pos,s=this.readWord1();this.containsEsc&&this.unexpected(i);var a=this.regexpState||(this.regexpState=new Me(this));a.reset(o,r,s),this.validateRegExpFlags(a),this.validateRegExpPattern(a);var l=null;try{l=new RegExp(r,s)}catch(e){}return this.finishToken(C.regexp,{pattern:r,flags:s,value:l})},$e.readInt=function(e,t,o){for(var n=this.options.ecmaVersion>=12&&void 0===t,r=o&&48===this.input.charCodeAt(this.pos),i=this.pos,s=0,a=0,l=0,p=null==t?1/0:t;l<p;++l,++this.pos){var u=this.input.charCodeAt(this.pos),c=void 0;if(n&&95===u)r&&this.raiseRecoverable(this.pos,"Numeric separator is not allowed in legacy octal numeric literals"),95===a&&this.raiseRecoverable(this.pos,"Numeric separator must be exactly one underscore"),0===l&&this.raiseRecoverable(this.pos,"Numeric separator is not allowed at the first of digits"),a=u;else{if((c=u>=97?u-97+10:u>=65?u-65+10:u>=48&&u<=57?u-48:1/0)>=e)break;a=u,s=s*e+c}}return n&&95===a&&this.raiseRecoverable(this.pos-1,"Numeric separator is not allowed at the last of digits"),this.pos===i||null!=t&&this.pos-i!==t?null:s},$e.readRadixNumber=function(e){var t=this.pos;this.pos+=2;var o=this.readInt(e);return null==o&&this.raise(this.start+2,"Expected number in radix "+e),this.options.ecmaVersion>=11&&110===this.input.charCodeAt(this.pos)?(o=Ke(this.input.slice(t,this.pos)),++this.pos):c(this.fullCharCodeAtPos())&&this.raise(this.pos,"Identifier directly after number"),this.finishToken(C.num,o)},$e.readNumber=function(e){var t=this.pos;e||null!==this.readInt(10,void 0,!0)||this.raise(t,"Invalid number");var o=this.pos-t>=2&&48===this.input.charCodeAt(t);o&&this.strict&&this.raise(t,"Invalid number");var n=this.input.charCodeAt(this.pos);if(!o&&!e&&this.options.ecmaVersion>=11&&110===n){var r=Ke(this.input.slice(t,this.pos));return++this.pos,c(this.fullCharCodeAtPos())&&this.raise(this.pos,"Identifier directly after number"),this.finishToken(C.num,r)}o&&/[89]/.test(this.input.slice(t,this.pos))&&(o=!1),46!==n||o||(++this.pos,this.readInt(10),n=this.input.charCodeAt(this.pos)),69!==n&&101!==n||o||(43!==(n=this.input.charCodeAt(++this.pos))&&45!==n||++this.pos,null===this.readInt(10)&&this.raise(t,"Invalid number")),c(this.fullCharCodeAtPos())&&this.raise(this.pos,"Identifier directly after number");var i,s=(i=this.input.slice(t,this.pos),o?parseInt(i,8):parseFloat(i.replace(/_/g,"")));return this.finishToken(C.num,s)},$e.readCodePoint=function(){var e;if(123===this.input.charCodeAt(this.pos)){this.options.ecmaVersion<6&&this.unexpected();var t=++this.pos;e=this.readHexChar(this.input.indexOf("}",this.pos)-this.pos),++this.pos,e>1114111&&this.invalidStringToken(t,"Code point out of bounds")}else e=this.readHexChar(4);return e},$e.readString=function(e){for(var t="",o=++this.pos;;){this.pos>=this.input.length&&this.raise(this.start,"Unterminated string constant");var n=this.input.charCodeAt(this.pos);if(n===e)break;92===n?(t+=this.input.slice(o,this.pos),t+=this.readEscapedChar(!1),o=this.pos):8232===n||8233===n?(this.options.ecmaVersion<10&&this.raise(this.start,"Unterminated string constant"),++this.pos,this.options.locations&&(this.curLine++,this.lineStart=this.pos)):(E(n)&&this.raise(this.start,"Unterminated string constant"),++this.pos)}return t+=this.input.slice(o,this.pos++),this.finishToken(C.string,t)};var qe={};$e.tryReadTemplateToken=function(){this.inTemplateElement=!0;try{this.readTmplToken()}catch(e){if(e!==qe)throw e;this.readInvalidTemplateToken()}this.inTemplateElement=!1},$e.invalidStringToken=function(e,t){if(this.inTemplateElement&&this.options.ecmaVersion>=9)throw qe;this.raise(e,t)},$e.readTmplToken=function(){for(var e="",t=this.pos;;){this.pos>=this.input.length&&this.raise(this.start,"Unterminated template");var o=this.input.charCodeAt(this.pos);if(96===o||36===o&&123===this.input.charCodeAt(this.pos+1))return this.pos!==this.start||this.type!==C.template&&this.type!==C.invalidTemplate?(e+=this.input.slice(t,this.pos),this.finishToken(C.template,e)):36===o?(this.pos+=2,this.finishToken(C.dollarBraceL)):(++this.pos,this.finishToken(C.backQuote));if(92===o)e+=this.input.slice(t,this.pos),e+=this.readEscapedChar(!0),t=this.pos;else if(E(o)){switch(e+=this.input.slice(t,this.pos),++this.pos,o){case 13:10===this.input.charCodeAt(this.pos)&&++this.pos;case 10:e+="\n";break;default:e+=String.fromCharCode(o)}this.options.locations&&(++this.curLine,this.lineStart=this.pos),t=this.pos}else++this.pos}},$e.readInvalidTemplateToken=function(){for(;this.pos<this.input.length;this.pos++)switch(this.input[this.pos]){case"\\":++this.pos;break;case"$":if("{"!==this.input[this.pos+1])break;case"`":return this.finishToken(C.invalidTemplate,this.input.slice(this.start,this.pos));case"\r":"\n"===this.input[this.pos+1]&&++this.pos;case"\n":case"\u2028":case"\u2029":++this.curLine,this.lineStart=this.pos+1}this.raise(this.start,"Unterminated template")},$e.readEscapedChar=function(e){var t=this.input.charCodeAt(++this.pos);switch(++this.pos,t){case 110:return"\n";case 114:return"\r";case 120:return String.fromCharCode(this.readHexChar(2));case 117:return x(this.readCodePoint());case 116:return"\t";case 98:return"\b";case 118:return"\v";case 102:return"\f";case 13:10===this.input.charCodeAt(this.pos)&&++this.pos;case 10:return this.options.locations&&(this.lineStart=this.pos,++this.curLine),"";case 56:case 57:if(this.strict&&this.invalidStringToken(this.pos-1,"Invalid escape sequence"),e){var o=this.pos-1;this.invalidStringToken(o,"Invalid escape sequence in template string")}default:if(t>=48&&t<=55){var n=this.input.substr(this.pos-1,3).match(/^[0-7]+/)[0],r=parseInt(n,8);return r>255&&(n=n.slice(0,-1),r=parseInt(n,8)),this.pos+=n.length-1,t=this.input.charCodeAt(this.pos),"0"===n&&56!==t&&57!==t||!this.strict&&!e||this.invalidStringToken(this.pos-1-n.length,e?"Octal literal in template string":"Octal literal in strict mode"),String.fromCharCode(r)}return E(t)?(this.options.locations&&(this.lineStart=this.pos,++this.curLine),""):String.fromCharCode(t)}},$e.readHexChar=function(e){var t=this.pos,o=this.readInt(16,e);return null===o&&this.invalidStringToken(t,"Bad character escape sequence"),o},$e.readWord1=function(){this.containsEsc=!1;for(var e="",t=!0,o=this.pos,n=this.options.ecmaVersion>=6;this.pos<this.input.length;){var r=this.fullCharCodeAtPos();if(d(r,n))this.pos+=r<=65535?1:2;else{if(92!==r)break;this.containsEsc=!0,e+=this.input.slice(o,this.pos);var i=this.pos;117!==this.input.charCodeAt(++this.pos)&&this.invalidStringToken(this.pos,"Expecting Unicode escape sequence \\uXXXX"),++this.pos;var s=this.readCodePoint();(t?c:d)(s,n)||this.invalidStringToken(i,"Invalid Unicode escape"),e+=x(s),o=this.pos}t=!1}return e+this.input.slice(o,this.pos)},$e.readWord=function(){var e=this.readWord1(),t=C.name;return this.keywords.test(e)&&(t=y[e]),this.finishToken(t,e)};var Ze="8.16.0";U.acorn={Parser:U,version:Ze,defaultOptions:G,Position:L,SourceLocation:M,getLineInfo:k,Node:fe,TokenType:h,tokTypes:C,keywordTypes:y,TokContext:re,tokContexts:ie,isIdentifierChar:d,isIdentifierStart:c,Token:ze,isNewLine:E,lineBreak:w,lineBreakG:_,nonASCIIwhitespace:R},e.Node=fe,e.Parser=U,e.Position=L,e.SourceLocation=M,e.TokContext=re,e.Token=ze,e.TokenType=h,e.defaultOptions=G,e.getLineInfo=k,e.isIdentifierChar=d,e.isIdentifierStart=c,e.isNewLine=E,e.keywordTypes=y,e.lineBreak=w,e.lineBreakG=_,e.nonASCIIwhitespace=R,e.parse=function(e,t){return U.parse(e,t)},e.parseExpressionAt=function(e,t,o){return U.parseExpressionAt(e,t,o)},e.tokContexts=ie,e.tokTypes=C,e.tokenizer=function(e,t){return U.tokenizer(e,t)},e.version=Ze}(t)},19135:function(e,t,o){var n=this&&this.__decorate||function(e,t,o,n){var r,i=arguments.length,s=i<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,n);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,o,s):r(t,o))||s);return i>3&&s&&Object.defineProperty(t,o,s),s},r=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0});var i=o(59804),s=o(30754),a=o(71569),l=o(47304),p=o(81404),u=o(31551),c=function(){function e(e,t,o,n){this.localEventService=new l.EventService,this.expandable=!1,this.colGroupDef=e,this.groupId=t,this.expanded=e&&!!e.openByDefault,this.padding=o,this.level=n}return e.prototype.setOriginalParent=function(e){this.originalParent=this.originalParent},e.prototype.getOriginalParent=function(){return this.originalParent},e.prototype.getLevel=function(){return this.level},e.prototype.isVisible=function(){return!!this.children&&this.children.some((function(e){return e.isVisible()}))},e.prototype.isPadding=function(){return this.padding},e.prototype.setExpanded=function(t){this.expanded=void 0!==t&&t;var o={type:e.EVENT_EXPANDED_CHANGED};this.localEventService.dispatchEvent(o)},e.prototype.isExpandable=function(){return this.expandable},e.prototype.isExpanded=function(){return this.expanded},e.prototype.getGroupId=function(){return this.groupId},e.prototype.getId=function(){return this.getGroupId()},e.prototype.setChildren=function(e){this.children=e},e.prototype.getChildren=function(){return this.children},e.prototype.getColGroupDef=function(){return this.colGroupDef},e.prototype.getLeafColumns=function(){var e=[];return this.addLeafColumns(e),e},e.prototype.addLeafColumns=function(t){this.children&&this.children.forEach((function(o){o instanceof a.Column?t.push(o):o instanceof e&&o.addLeafColumns(t)}))},e.prototype.getColumnGroupShow=function(){return this.padding?this.children[0].getColumnGroupShow():this.colGroupDef.columnGroupShow},e.prototype.setupExpandable=function(){var e=this;this.setExpandable(),this.getLeafColumns().forEach((function(t){return t.addEventListener(a.Column.EVENT_VISIBLE_CHANGED,e.onColumnVisibilityChanged.bind(e))}))},e.prototype.setExpandable=function(){if(!this.isPadding()){for(var t=!1,o=!1,n=!1,r=this.findChildren(),i=0,a=r.length;i<a;i++){var l=r[i];if(l.isVisible()){var p=l.getColumnGroupShow();p===s.ColumnGroup.HEADER_GROUP_SHOW_OPEN?(t=!0,n=!0):p===s.ColumnGroup.HEADER_GROUP_SHOW_CLOSED?(o=!0,n=!0):(t=!0,o=!0)}}var u=t&&o&&n;if(this.expandable!==u){this.expandable=u;var c={type:e.EVENT_EXPANDABLE_CHANGED};this.localEventService.dispatchEvent(c)}}},e.prototype.findChildren=function(){var t=this.children,o=t[0];if(o&&(!o.isPadding||!o.isPadding()))return t;for(;1===t.length&&t[0]instanceof e;)t=t[0].children;return t},e.prototype.onColumnVisibilityChanged=function(){this.setExpandable()},e.prototype.addEventListener=function(e,t){this.localEventService.addEventListener(e,t)},e.prototype.removeEventListener=function(e,t){this.localEventService.removeEventListener(e,t)},e.EVENT_EXPANDED_CHANGED="expandedChanged",e.EVENT_EXPANDABLE_CHANGED="expandableChanged",n([i.Autowired("columnApi"),r("design:type",p.ColumnApi)],e.prototype,"columnApi",void 0),n([i.Autowired("gridApi"),r("design:type",u.GridApi)],e.prototype,"gridApi",void 0),e}();t.OriginalColumnGroup=c},20455:(e,t,o)=>{Object.defineProperty(t,"__esModule",{value:!0});var n=o(33018),r=o(72346),i=o(99162),s=o(43510),a=function(){function e(){}return e.getEventCallbacks=function(){return e.EVENT_CALLBACKS||(e.EVENT_CALLBACKS=[],e.EVENT_CALLBACKS_NO_PREFIX=[],e.EVENTS.forEach((function(t){e.EVENT_CALLBACKS.push(e.getCallbackForEvent(t)),e.EVENT_CALLBACKS_NO_PREFIX.push(t)}))),e.EVENT_CALLBACKS},e.copyAttributesToGridOptions=function(t,o,n){void 0===n&&(n=!1),l(o),"object"!=typeof t&&(t={});var r=t;return e.ARRAY_PROPERTIES.concat(e.STRING_PROPERTIES).concat(e.OBJECT_PROPERTIES).concat(e.FUNCTION_PROPERTIES).forEach((function(e){void 0!==o[e]&&(r[e]=o[e])})),e.BOOLEAN_PROPERTIES.forEach((function(t){void 0!==o[t]&&(r[t]=e.toBoolean(o[t]))})),e.NUMBER_PROPERTIES.forEach((function(t){void 0!==o[t]&&(r[t]=e.toNumber(o[t]))})),e.getEventCallbacks().forEach((function(e){void 0!==o[e]&&(r[e]=o[e])})),n||e.EVENT_CALLBACKS_NO_PREFIX.forEach((function(t){var n=e.getCallbackForEvent(t);void 0===o[t]&&void 0===o[n]||i.GridOptionsWrapper.checkEventDeprecation(t)})),t},e.getCallbackForEvent=function(e){return!e||e.length<2?e:"on"+e[0].toUpperCase()+e.substr(1)},e.processOnChange=function(t,o,r,i){if(t){l(t);var a=o;e.ARRAY_PROPERTIES.concat(e.OBJECT_PROPERTIES).concat(e.STRING_PROPERTIES).forEach((function(e){t[e]&&(a[e]=t[e].currentValue)})),e.BOOLEAN_PROPERTIES.forEach((function(o){t[o]&&(a[o]=e.toBoolean(t[o].currentValue))})),e.NUMBER_PROPERTIES.forEach((function(o){t[o]&&(a[o]=e.toNumber(t[o].currentValue))})),e.getEventCallbacks().forEach((function(e){t[e]&&(a[e]=t[e].currentValue)})),t.enableCellTextSelection&&r.setEnableCellTextSelection(e.toBoolean(t.enableCellTextSelection.currentValue)),t.showToolPanel&&r.showToolPanel(e.toBoolean(t.showToolPanel.currentValue)),t.quickFilterText&&r.setQuickFilter(t.quickFilterText.currentValue),t.rowData&&r.setRowData(t.rowData.currentValue),t.pinnedTopRowData&&r.setPinnedTopRowData(t.pinnedTopRowData.currentValue),t.pinnedBottomRowData&&r.setPinnedBottomRowData(t.pinnedBottomRowData.currentValue),t.columnDefs&&r.setColumnDefs(t.columnDefs.currentValue,"gridOptionsChanged"),t.datasource&&r.setDatasource(t.datasource.currentValue),t.headerHeight&&r.setHeaderHeight(e.toNumber(t.headerHeight.currentValue)),t.paginationPageSize&&r.paginationSetPageSize(e.toNumber(t.paginationPageSize.currentValue)),t.pivotMode&&i.setPivotMode(e.toBoolean(t.pivotMode.currentValue)),t.groupRemoveSingleChildren&&r.setGroupRemoveSingleChildren(e.toBoolean(t.groupRemoveSingleChildren.currentValue)),t.suppressRowDrag&&r.setSuppressRowDrag(e.toBoolean(t.suppressRowDrag.currentValue)),t.gridAutoHeight&&r.setGridAutoHeight(e.toBoolean(t.gridAutoHeight.currentValue)),t.suppressClipboardPaste&&r.setSuppressClipboardPaste(e.toBoolean(t.suppressClipboardPaste.currentValue)),t.sideBar&&r.setSideBar(t.sideBar.currentValue),t.datasource&&r.setDatasource(t.datasource.currentValue);var p={type:n.Events.EVENT_COMPONENT_STATE_CHANGED,api:o.api,columnApi:o.columnApi};s._.iterateObject(t,(function(e,t){p[e]=t})),r.dispatchEvent(p)}},e.toBoolean=function(e){return"boolean"==typeof e?e:"string"==typeof e&&("TRUE"===e.toUpperCase()||""==e)},e.toNumber=function(e){return"number"==typeof e?e:"string"==typeof e?Number(e):void 0},e.EVENTS=[],e.STRING_PROPERTIES=r.PropertyKeys.STRING_PROPERTIES,e.OBJECT_PROPERTIES=r.PropertyKeys.OBJECT_PROPERTIES,e.ARRAY_PROPERTIES=r.PropertyKeys.ARRAY_PROPERTIES,e.NUMBER_PROPERTIES=r.PropertyKeys.NUMBER_PROPERTIES,e.BOOLEAN_PROPERTIES=r.PropertyKeys.BOOLEAN_PROPERTIES,e.FUNCTION_PROPERTIES=r.PropertyKeys.FUNCTION_PROPERTIES,e.ALL_PROPERTIES=r.PropertyKeys.ALL_PROPERTIES,e}();function l(e){(e.rowDeselected||e.onRowDeselected)&&console.warn("ag-grid: as of v3.4 rowDeselected no longer exists. Please check the docs.")}t.ComponentUtil=a,s._.iterateObject(n.Events,(function(e,t){a.EVENTS.push(t)}))},20930:e=>{e.exports=function(e,t){if(t.styleSheet)t.styleSheet.cssText=e;else{for(;t.firstChild;)t.removeChild(t.firstChild);t.appendChild(document.createTextNode(e))}}},21311:function(e,t,o){var n,r=this&&this.__extends||(n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])},n(e,t)},function(e,t){function o(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(o.prototype=t.prototype,new o)}),i=this&&this.__decorate||function(e,t,o,n){var r,i=arguments.length,s=i<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,n);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,o,s):r(t,o))||s);return i>3&&s&&Object.defineProperty(t,o,s),s},s=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0});var a=o(33669),l=o(59804),p=o(94741),u=function(e){function t(t,o){var n=e.call(this)||this;return n.columns=t,n.addMouseHoverListeners(o),n}return r(t,e),t.prototype.addMouseHoverListeners=function(e){this.addDestroyableEventListener(e,"mouseout",this.onMouseOut.bind(this)),this.addDestroyableEventListener(e,"mouseover",this.onMouseOver.bind(this))},t.prototype.onMouseOut=function(){this.columnHoverService.clearMouseOver()},t.prototype.onMouseOver=function(){this.columnHoverService.setMouseOver(this.columns)},i([l.Autowired("columnHoverService"),s("design:type",p.ColumnHoverService)],t.prototype,"columnHoverService",void 0),t}(a.BeanStub);t.HoverFeature=u},21452:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0});var o=function(){function e(){this.isLayoutPanel=!0,this.childPanels=[],this.eGui=document.createElement("div"),this.eGui.style.height="100%"}return e.prototype.addPanel=function(e,t){var o;e.isLayoutPanel?(this.childPanels.push(e),o=e.getGui()):o=e,t&&(o.style.height=t),this.eGui.appendChild(o)},e.prototype.getGui=function(){return this.eGui},e.prototype.doLayout=function(){for(var e=0;e<this.childPanels.length;e++)this.childPanels[e].doLayout()},e}();t.VerticalStack=o},21559:(e,t,o)=>{Object.defineProperty(t,"__esModule",{value:!0});var n=o(66895),r=o(43510),i=function(){function e(e){this.rowIndex=e.rowIndex,this.column=e.column,this.floating=r._.makeNull(e.floating)}return e.prototype.getGridCellDef=function(){return{rowIndex:this.rowIndex,column:this.column,floating:this.floating}},e.prototype.getGridRow=function(){return new n.GridRow(this.rowIndex,this.floating)},e.prototype.toString=function(){return"rowIndex = "+this.rowIndex+", floating = "+this.floating+", column = "+(this.column?this.column.getId():null)},e.prototype.createId=function(){return this.rowIndex+"."+this.floating+"."+this.column.getId()},e.prototype.equals=function(e){var t=this.column===e.column,o=this.floating===e.floating,n=this.rowIndex===e.rowIndex;return t&&o&&n},e}();t.GridCell=i},22697:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0});var o=function(){function e(){}return e.prototype.wrap=function(e,t,o,n){var r=this;void 0===o&&(o=[]);var i=this.createWrapper(e,n);return t.forEach((function(e){r.createMethod(i,e,!0)})),o.forEach((function(e){r.createMethod(i,e,!1)})),i},e.prototype.createMethod=function(e,t,o){e.addMethod(t,this.createMethodProxy(e,t,o))},e.prototype.createMethodProxy=function(e,t,o){return function(){return e.hasMethod(t)?e.callMethod(t,arguments):(o&&console.warn("ag-Grid: Framework component is missing the method "+t+"()"),null)}},e}();t.BaseComponentWrapper=o},22784:(e,t,o)=>{var n;Object.defineProperty(t,"__esModule",{value:!0}),t.unload=t.load=t.onExit=t.signals=void 0;const r=o(8633);Object.defineProperty(t,"signals",{enumerable:!0,get:function(){return r.signals}});const i=e=>!!e&&"object"==typeof e&&"function"==typeof e.removeListener&&"function"==typeof e.emit&&"function"==typeof e.reallyExit&&"function"==typeof e.listeners&&"function"==typeof e.kill&&"number"==typeof e.pid&&"function"==typeof e.on,s=Symbol.for("signal-exit emitter"),a=globalThis,l=Object.defineProperty.bind(Object);class p{emitted={afterExit:!1,exit:!1};listeners={afterExit:[],exit:[]};count=0;id=Math.random();constructor(){if(a[s])return a[s];l(a,s,{value:this,writable:!1,enumerable:!1,configurable:!1})}on(e,t){this.listeners[e].push(t)}removeListener(e,t){const o=this.listeners[e],n=o.indexOf(t);-1!==n&&(0===n&&1===o.length?o.length=0:o.splice(n,1))}emit(e,t,o){if(this.emitted[e])return!1;this.emitted[e]=!0;let n=!1;for(const r of this.listeners[e])n=!0===r(t,o)||n;return"exit"===e&&(n=this.emit("afterExit",t,o)||n),n}}class u{}const c=globalThis.process;var d;d=i(c)?new class extends u{#e="win32"===c.platform?"SIGINT":"SIGHUP";#t=new p;#o;#n;#r;#i={};#s=!1;constructor(e){super(),this.#o=e,this.#i={};for(const t of r.signals)this.#i[t]=()=>{const o=this.#o.listeners(t);let{count:n}=this.#t;const r=e;if("object"==typeof r.__signal_exit_emitter__&&"number"==typeof r.__signal_exit_emitter__.count&&(n+=r.__signal_exit_emitter__.count),o.length===n){this.unload();const o=this.#t.emit("exit",null,t),n="SIGHUP"===t?this.#e:t;o||e.kill(e.pid,n)}};this.#r=e.reallyExit,this.#n=e.emit}onExit(e,t){if(!i(this.#o))return()=>{};!1===this.#s&&this.load();const o=t?.alwaysLast?"afterExit":"exit";return this.#t.on(o,e),()=>{this.#t.removeListener(o,e),0===this.#t.listeners.exit.length&&0===this.#t.listeners.afterExit.length&&this.unload()}}load(){if(!this.#s){this.#s=!0,this.#t.count+=1;for(const e of r.signals)try{const t=this.#i[e];t&&this.#o.on(e,t)}catch(e){}this.#o.emit=(e,...t)=>this.#a(e,...t),this.#o.reallyExit=e=>this.#l(e)}}unload(){this.#s&&(this.#s=!1,r.signals.forEach((e=>{const t=this.#i[e];if(!t)throw new Error("Listener not defined for signal: "+e);try{this.#o.removeListener(e,t)}catch(e){}})),this.#o.emit=this.#n,this.#o.reallyExit=this.#r,this.#t.count-=1)}#l(e){return i(this.#o)?(this.#o.exitCode=e||0,this.#t.emit("exit",this.#o.exitCode,null),this.#r.call(this.#o,this.#o.exitCode)):0}#a(e,...t){const o=this.#n;if("exit"===e&&i(this.#o)){"number"==typeof t[0]&&(this.#o.exitCode=t[0]);const n=o.call(this.#o,e,...t);return this.#t.emit("exit",this.#o.exitCode,null),n}return o.call(this.#o,e,...t)}}(c):new class extends u{onExit(){return()=>{}}load(){}unload(){}},n={onExit:(e,t)=>d.onExit(e,t),load:()=>d.load(),unload:()=>d.unload()},t.onExit=n.onExit,t.load=n.load,t.unload=n.unload},23247:(e,t,o)=>{Object.defineProperty(t,"__esModule",{value:!0});var n=o(43510),r=function(){function e(){}return e.addHeaderClassesFromColDef=function(e,t,o,r,i){n._.missing(e)||this.addColumnClassesFromCollDef(e.headerClass,e,t,o,r,i)},e.addToolPanelClassesFromColDef=function(e,t,o,r,i){n._.missing(e)||this.addColumnClassesFromCollDef(e.toolPanelClass,e,t,o,r,i)},e.addColumnClassesFromCollDef=function(e,t,o,r,i,s){var a;n._.missing(e)||("string"==typeof(a="function"==typeof e?e({colDef:t,column:i,columnGroup:s,context:r.getContext(),api:r.getApi()}):e)?n._.addCssClass(o,a):Array.isArray(a)&&a.forEach((function(e){n._.addCssClass(o,e)})))},e}();t.CssClassApplier=r},23396:function(e,t,o){var n,r=this&&this.__extends||(n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])},n(e,t)},function(e,t){function o(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(o.prototype=t.prototype,new o)});Object.defineProperty(t,"__esModule",{value:!0});var i=o(96652),s=o(46410),a=o(57265),l=o(57265),p=function(e){function t(o,n){var r=e.call(this)||this;return r.portal=null,r.componentWrappingElement="div",r.reactComponent=o,r.parentComponent=n,r.statelessComponent=t.isStateless(r.reactComponent),r}return r(t,e),t.prototype.getFrameworkComponentInstance=function(){return this.componentInstance},t.prototype.isStatelesComponent=function(){return this.statelessComponent},t.prototype.getReactComponentName=function(){return this.reactComponent.name},t.prototype.init=function(e){var t=this;return new l.Promise((function(o){t.eParentElement=t.createParentElement(e),t.createReactComponent(e,o)}))},t.prototype.getGui=function(){return this.eParentElement},t.prototype.destroy=function(){return this.parentComponent.destroyPortal(this.portal)},t.prototype.createReactComponent=function(e,t){var o=this;this.statelessComponent||(e.ref=function(e){o.componentInstance=e});var n=i.createElement(this.reactComponent,e),r=s.createPortal(n,this.eParentElement);this.portal=r,this.parentComponent.mountReactPortal(r,this,t)},t.prototype.createParentElement=function(e){var t=document.createElement(this.parentComponent.props.componentWrappingElement||"div");return a.Utils.addCssClass(t,"ag-react-container"),e.reactContainer=this.eParentElement,t},t.isStateless=function(e){return"function"==typeof e&&!(e.prototype&&e.prototype.isReactComponent)},t}(o(61129).BaseReactComponent);t.ReactComponent=p},23409:(e,t,o)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.CommaAndColonSeparatedRecord=t.ConnectionString=t.redactConnectionString=void 0;const n=o(21655),r=o(15644);Object.defineProperty(t,"redactConnectionString",{enumerable:!0,get:function(){return r.redactConnectionString}});const i="__this_is_a_placeholder__",s=/^(?<protocol>[^/]+):\/\/(?:(?<username>[^:@]*)(?::(?<password>[^@]*))?@)?(?<hosts>(?!:)[^/?@]*)(?<rest>.*)/;class a extends Map{delete(e){return super.delete(this._normalizeKey(e))}get(e){return super.get(this._normalizeKey(e))}has(e){return super.has(this._normalizeKey(e))}set(e,t){return super.set(this._normalizeKey(e),t)}_normalizeKey(e){e=`${e}`;for(const t of this.keys())if(t.toLowerCase()===e.toLowerCase()){e=t;break}return e}}class l extends n.URL{}class p extends Error{get name(){return"MongoParseError"}}class u extends l{_hosts;constructor(e,t={}){const{looseValidation:o}=t;if(!o&&!(n=e).startsWith("mongodb://")&&!n.startsWith("mongodb+srv://"))throw new p('Invalid scheme, expected connection string to start with "mongodb://" or "mongodb+srv://"');var n;const r=e.match(s);if(!r)throw new p("Invalid connection string");const{protocol:l,username:c,password:d,hosts:h,rest:f}=r.groups??{};if(!o){if(!l||!h)throw new p("Protocol and host list are required in the uri");try{decodeURIComponent(c??""),decodeURIComponent(d??"")}catch(e){throw new p(e.message)}const t=/[:/?#[\]@]/gi;if(c?.match(t))throw new p(`Username contains unescaped characters ${c}`);if(!c||!d){const t=e.replace(`${l}://`,"");if(t.startsWith("@")||t.startsWith(":"))throw new p("URI contained empty userinfo section")}if(d?.match(t))throw new p("Password contains unescaped characters");if(f?.match(/^[^/?]*@/))throw new p("Invalid connection string")}let g="";"string"==typeof c&&(g+=c),"string"==typeof d&&(g+=`:${d}`),g&&(g+="@");try{super(`${l.toLowerCase()}://${g}${i}${f}`)}catch(n){throw o&&new u(e,{...t,looseValidation:!1}),"string"==typeof n.message&&(n.message=n.message.replace(i,h)),n}if(this._hosts=h.split(","),!o){if(this.isSRV&&1!==this.hosts.length)throw new p("mongodb+srv URI cannot have multiple service names");if(this.isSRV&&this.hosts.some((e=>e.includes(":"))))throw new p("mongodb+srv URI cannot have port number")}var m;this.pathname||(this.pathname="/"),Object.setPrototypeOf(this.searchParams,(m=this.searchParams.constructor,class extends m{append(e,t){return super.append(this._normalizeKey(e),t)}delete(e){return super.delete(this._normalizeKey(e))}get(e){return super.get(this._normalizeKey(e))}getAll(e){return super.getAll(this._normalizeKey(e))}has(e){return super.has(this._normalizeKey(e))}set(e,t){return super.set(this._normalizeKey(e),t)}keys(){return super.keys()}values(){return super.values()}entries(){return super.entries()}[Symbol.iterator](){return super[Symbol.iterator]()}_normalizeKey(e){return a.prototype._normalizeKey.call(this,e)}}).prototype)}get host(){return i}set host(e){throw new Error("No single host for connection string")}get hostname(){return i}set hostname(e){throw new Error("No single host for connection string")}get port(){return""}set port(e){throw new Error("No single host for connection string")}get href(){return this.toString()}set href(e){throw new Error("Cannot set href for connection strings")}get isSRV(){return this.protocol.includes("srv")}get hosts(){return this._hosts}set hosts(e){this._hosts=e}toString(){return super.toString().replace(i,this.hosts.join(","))}clone(){return new u(this.toString(),{looseValidation:!0})}redact(e){return(0,r.redactValidConnectionString)(this,e)}typedSearchParams(){return this.searchParams}[Symbol.for("nodejs.util.inspect.custom")](){const{href:e,origin:t,protocol:o,username:n,password:r,hosts:i,pathname:s,search:a,searchParams:l,hash:p}=this;return{href:e,origin:t,protocol:o,username:n,password:r,hosts:i,pathname:s,search:a,searchParams:l,hash:p}}}t.ConnectionString=u,t.CommaAndColonSeparatedRecord=class extends a{constructor(e){super();for(const t of(e??"").split(",")){if(!t)continue;const e=t.indexOf(":");-1===e?this.set(t,""):this.set(t.slice(0,e),t.slice(e+1))}}toString(){return[...this].map((e=>e.join(":"))).join(",")}},t.default=u},24421:function(e,t,o){var n,r=this&&this.__extends||(n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])},n(e,t)},function(e,t){function o(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(o.prototype=t.prototype,new o)}),i=this&&this.__assign||function(){return i=Object.assign||function(e){for(var t,o=1,n=arguments.length;o<n;o++)for(var r in t=arguments[o])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e},i.apply(this,arguments)};Object.defineProperty(t,"__esModule",{value:!0});var s=o(71569),a=o(77171),l=o(44494),p=o(33018),u=o(21559),c=o(38830),d=o(81182),h=o(68817),f=o(83531),g=o(43510),m=function(e){function t(t,o,n,r,i,s,a){var l=e.call(this)||this;return l.editingCell=!1,l.suppressRefreshCell=!1,l.scope=null,l.cellEditorVersion=0,l.cellRendererVersion=0,l.scope=t,l.beans=o,l.column=n,l.rowNode=r,l.rowComp=i,l.autoHeightCell=s,l.printLayout=a,l.createGridCellVo(),l.rangeSelectionEnabled=o.enterprise&&o.gridOptionsWrapper.isEnableRangeSelection(),l.cellFocused=l.beans.focusedCellController.isCellFocused(l.gridCell),l.firstRightPinned=l.column.isFirstRightPinned(),l.lastLeftPinned=l.column.isLastLeftPinned(),l.rangeSelectionEnabled&&(l.rangeCount=l.beans.rangeController.getCellRangeCount(l.gridCell)),l.getValueAndFormat(),l.setUsingWrapper(),l.chooseCellRenderer(),l.setupColSpan(),l.rowSpan=l.column.getRowSpan(l.rowNode),l}return r(t,e),t.prototype.getCreateTemplate=function(){var e=this.beans.gridOptionsWrapper.isEnableCellTextSelection()?"":'unselectable="on"',t=[],o=this.column,n=this.getCellWidth(),r=this.modifyLeftForPrintLayout(o.getLeft()),i=this.getInitialValueToRender(),s=g._.get(this.column,"colDef.template",null)?i:g._.escape(i);this.tooltip=this.getToolTip();var a=g._.escape(this.tooltip),l=g._.escape(o.getId()),p="",u="",c=this.preProcessStylesFromColDef(),d=this.getInitialCssClasses(),h=this.getStylesForRowSpanning();return this.usingWrapper&&(p='<span ref="eCellWrapper" class="ag-cell-wrapper"><span ref="eCellValue" class="ag-cell-value" '+e+">",u="</span></span>"),t.push("<div"),t.push(' tabindex="-1"'),t.push(" "+e),t.push(' role="gridcell"'),t.push(' comp-id="'+this.getCompId()+'" '),t.push(' col-id="'+l+'"'),t.push(' class="'+d.join(" ")+'"'),this.beans.gridOptionsWrapper.isEnableBrowserTooltips()&&g._.exists(a)&&t.push('title="'+a+'"'),t.push(' style="width: '+n+"px; left: "+r+"px; "+c+" "+h+'" >'),t.push(p),g._.exists(s,!0)&&t.push(s),t.push(u),t.push("</div>"),t.join("")},t.prototype.getStylesForRowSpanning=function(){return 1===this.rowSpan?"":"height: "+this.beans.gridOptionsWrapper.getRowHeightAsNumber()*this.rowSpan+"px; z-index: 1;"},t.prototype.afterAttached=function(){var e='[comp-id="'+this.getCompId()+'"]',t=this.eParentRow.querySelector(e);this.setGui(t),this.addDomData(),this.populateTemplate(),this.attachCellRenderer(),this.angular1Compile(),this.addDestroyableEventListener(this.beans.eventService,p.Events.EVENT_CELL_FOCUSED,this.onCellFocused.bind(this)),this.addDestroyableEventListener(this.beans.eventService,p.Events.EVENT_FLASH_CELLS,this.onFlashCells.bind(this)),this.addDestroyableEventListener(this.beans.eventService,p.Events.EVENT_COLUMN_HOVER_CHANGED,this.onColumnHover.bind(this)),this.addDestroyableEventListener(this.rowNode,a.RowNode.EVENT_ROW_INDEX_CHANGED,this.onRowIndexChanged.bind(this)),this.addDestroyableEventListener(this.rowNode,a.RowNode.EVENT_CELL_CHANGED,this.onCellChanged.bind(this)),this.addDestroyableEventListener(this.column,s.Column.EVENT_LEFT_CHANGED,this.onLeftChanged.bind(this)),this.addDestroyableEventListener(this.column,s.Column.EVENT_WIDTH_CHANGED,this.onWidthChanged.bind(this)),this.addDestroyableEventListener(this.column,s.Column.EVENT_FIRST_RIGHT_PINNED_CHANGED,this.onFirstRightPinnedChanged.bind(this)),this.addDestroyableEventListener(this.column,s.Column.EVENT_LAST_LEFT_PINNED_CHANGED,this.onLastLeftPinnedChanged.bind(this)),this.printLayout&&this.addDestroyableEventListener(this.beans.eventService,p.Events.EVENT_DISPLAYED_COLUMNS_WIDTH_CHANGED,this.onLeftChanged.bind(this)),this.rangeSelectionEnabled&&this.addDestroyableEventListener(this.beans.eventService,p.Events.EVENT_RANGE_SELECTION_CHANGED,this.onRangeSelectionChanged.bind(this)),this.tooltip&&!this.beans.gridOptionsWrapper.isEnableBrowserTooltips()&&this.beans.tooltipManager.registerTooltip(this)},t.prototype.onColumnHover=function(){var e=this.beans.columnHoverService.isHovered(this.column);g._.addOrRemoveCssClass(this.getGui(),"ag-column-hover",e)},t.prototype.onCellChanged=function(e){e.column===this.column&&this.refreshCell({})},t.prototype.getCellLeft=function(){return(this.beans.gridOptionsWrapper.isEnableRtl()&&this.colsSpanning?this.colsSpanning[this.colsSpanning.length-1]:this.column).getLeft()},t.prototype.getCellWidth=function(){if(!this.colsSpanning)return this.column.getActualWidth();var e=0;return this.colsSpanning.forEach((function(t){return e+=t.getActualWidth()})),e},t.prototype.onFlashCells=function(e){var t=this.gridCell.createId();e.cells[t]&&this.animateCell("highlight")},t.prototype.setupColSpan=function(){g._.missing(this.getComponentHolder().colSpan)||(this.addDestroyableEventListener(this.beans.eventService,p.Events.EVENT_DISPLAYED_COLUMNS_CHANGED,this.onDisplayColumnsChanged.bind(this)),this.addDestroyableEventListener(this.beans.eventService,p.Events.EVENT_DISPLAYED_COLUMNS_WIDTH_CHANGED,this.onWidthChanged.bind(this)),this.colsSpanning=this.getColSpanningList())},t.prototype.getColSpanningList=function(){var e=this.column.getColSpan(this.rowNode),t=[];if(1===e)t.push(this.column);else for(var o=this.column,n=this.column.getPinned(),r=0;o&&r<e&&(t.push(o),(o=this.beans.columnController.getDisplayedColAfter(o))&&!g._.missing(o))&&n===o.getPinned();r++);return t},t.prototype.onDisplayColumnsChanged=function(){var e=this.getColSpanningList();g._.compareArrays(this.colsSpanning,e)||(this.colsSpanning=e,this.onWidthChanged(),this.onLeftChanged())},t.prototype.getInitialCssClasses=function(){var e=["ag-cell","ag-cell-not-inline-editing"];return this.autoHeightCell||e.push("ag-cell-with-height"),!this.beans.gridOptionsWrapper.isSuppressCellSelection()&&this.cellFocused&&e.push("ag-cell-focus"),this.firstRightPinned&&e.push("ag-cell-first-right-pinned"),this.lastLeftPinned&&e.push("ag-cell-last-left-pinned"),this.beans.columnHoverService.isHovered(this.column)&&e.push("ag-column-hover"),g._.pushAll(e,this.preProcessClassesFromColDef()),g._.pushAll(e,this.preProcessCellClassRules()),g._.pushAll(e,this.getRangeClasses()),this.usingWrapper||e.push("ag-cell-value"),e},t.prototype.getInitialValueToRender=function(){if(this.usingCellRenderer)return"string"==typeof this.cellRendererGui?this.cellRendererGui:"";var e=this.getComponentHolder();return e.template?e.template:e.templateUrl?this.beans.templateService.getTemplate(e.templateUrl,this.refreshCell.bind(this,!0))||"":this.getValueToUse()},t.prototype.getRenderedRow=function(){return this.rowComp},t.prototype.isSuppressNavigable=function(){return this.column.isSuppressNavigable(this.rowNode)},t.prototype.getCellRenderer=function(){return this.cellRenderer},t.prototype.getCellEditor=function(){return this.cellEditor},t.prototype.refreshCell=function(e){if(!this.editingCell&&!this.suppressRefreshCell){var t=this.getComponentHolder(),o=e&&e.newData,n=e&&e.suppressFlash||t.suppressCellFlash,r=e&&e.forceRefresh,i=this.value;this.getValueAndFormat();var s=!this.valuesAreEqual(i,this.value);(r||s)&&(!o&&this.attemptCellRendererRefresh()||this.replaceContentsAfterRefresh(),!n&&(this.beans.gridOptionsWrapper.isEnableCellChangeFlash()||t.enableCellChangeFlash)&&this.flashCell(),this.postProcessStylesFromColDef(),this.postProcessClassesFromColDef()),this.updateAngular1ScopeAndCompile(),this.refreshToolTip(),this.postProcessCellClassRules()}},t.prototype.flashCell=function(){this.animateCell("data-changed")},t.prototype.animateCell=function(e){var t="ag-cell-"+e,o="ag-cell-"+e+"-animation",n=this.getGui();g._.addCssClass(n,t),g._.removeCssClass(n,o),window.setTimeout((function(){g._.removeCssClass(n,t),g._.addCssClass(n,o),window.setTimeout((function(){g._.removeCssClass(n,o)}),1e3)}),500)},t.prototype.replaceContentsAfterRefresh=function(){g._.clearElement(this.eParentOfValue),this.cellRenderer&&this.cellRenderer.destroy&&this.cellRenderer.destroy(),this.cellRenderer=null,this.cellRendererGui=null,this.putDataIntoCellAfterRefresh(),this.updateAngular1ScopeAndCompile()},t.prototype.updateAngular1ScopeAndCompile=function(){this.beans.gridOptionsWrapper.isAngularCompileRows()&&this.scope&&(this.scope.data=i({},this.rowNode.data),this.angular1Compile())},t.prototype.angular1Compile=function(){if(this.beans.gridOptionsWrapper.isAngularCompileRows()){var e=this.getGui();if(!e.classList.contains("ng-scope")||0===e.childElementCount){var t=this.beans.$compile(e)(this.scope);this.addDestroyFunc((function(){t.remove()}))}}},t.prototype.postProcessStylesFromColDef=function(){var e=this.processStylesFromColDef();e&&g._.addStylesToElement(this.getGui(),e)},t.prototype.preProcessStylesFromColDef=function(){var e=this.processStylesFromColDef();return g._.cssStyleObjectToMarkup(e)},t.prototype.processStylesFromColDef=function(){var e=this.getComponentHolder();if(e.cellStyle){var t=void 0;if("function"==typeof e.cellStyle){var o={value:this.value,data:this.rowNode.data,node:this.rowNode,colDef:e,column:this.column,$scope:this.scope,context:this.beans.gridOptionsWrapper.getContext(),api:this.beans.gridOptionsWrapper.getApi()};t=(0,e.cellStyle)(o)}else t=e.cellStyle;return t}},t.prototype.postProcessClassesFromColDef=function(){var e=this;this.processClassesFromColDef((function(t){return g._.addCssClass(e.getGui(),t)}))},t.prototype.preProcessClassesFromColDef=function(){var e=[];return this.processClassesFromColDef((function(t){return e.push(t)})),e},t.prototype.processClassesFromColDef=function(e){var t=this.getComponentHolder();this.beans.stylingService.processStaticCellClasses(t,{value:this.value,data:this.rowNode.data,node:this.rowNode,colDef:t,rowIndex:this.rowNode.rowIndex,$scope:this.scope,api:this.beans.gridOptionsWrapper.getApi(),context:this.beans.gridOptionsWrapper.getContext()},e)},t.prototype.putDataIntoCellAfterRefresh=function(){var e=this.getComponentHolder();if(e.template)this.eParentOfValue.innerHTML=e.template;else if(e.templateUrl){var t=this.beans.templateService.getTemplate(e.templateUrl,this.refreshCell.bind(this,!0));t&&(this.eParentOfValue.innerHTML=t)}else if(this.usingCellRenderer&&(this.attachCellRenderer()||(this.usingCellRenderer=!1)),!this.usingCellRenderer){var o=this.getValueToUse();null!=o&&(this.eParentOfValue.innerHTML=g._.escape(o))}},t.prototype.attemptCellRendererRefresh=function(){if(g._.missing(this.cellRenderer)||!this.cellRenderer||g._.missing(this.cellRenderer.refresh))return!1;var e=this.createCellRendererParams(),t=this.beans.userComponentFactory.createFinalParams(this.getComponentHolder(),this.cellRendererType,e),o=this.cellRenderer.refresh(t);return!0===o||void 0===o},t.prototype.refreshToolTip=function(){var e=this.getToolTip();if(this.tooltip!==e){if(this.tooltip=e,!this.beans.gridOptionsWrapper.isEnableBrowserTooltips())return;if(g._.exists(e)){var t=g._.escape(this.tooltip);this.eParentOfValue.setAttribute("title",t)}else this.eParentOfValue.removeAttribute("title")}},t.prototype.valuesAreEqual=function(e,t){var o=this.getComponentHolder(),n=o?o.equals:null;return n?n(e,t):e===t},t.prototype.getToolTip=function(){var e=this.getComponentHolder(),t=this.rowNode.data;if(e.tooltipField&&g._.exists(t))return g._.getValueUsingField(t,e.tooltipField,this.column.isTooltipFieldContainsDots());var o=e.tooltipValueGetter||e.tooltip;return o?o({api:this.beans.gridOptionsWrapper.getApi(),columnApi:this.beans.gridOptionsWrapper.getColumnApi(),colDef:e,column:this.getColumn(),context:this.beans.gridOptionsWrapper.getContext(),value:this.value,valueFormatted:this.valueFormatted,rowIndex:this.gridCell.rowIndex,node:this.rowNode,data:this.rowNode.data,$scope:this.scope}):null},t.prototype.getTooltipText=function(e){return void 0===e&&(e=!0),e?g._.escape(this.tooltip):this.tooltip},t.prototype.processCellClassRules=function(e,t){var o=this.getComponentHolder();this.beans.stylingService.processClassRules(o.cellClassRules,{value:this.value,data:this.rowNode.data,node:this.rowNode,colDef:o,rowIndex:this.gridCell.rowIndex,api:this.beans.gridOptionsWrapper.getApi(),$scope:this.scope,context:this.beans.gridOptionsWrapper.getContext()},e,t)},t.prototype.postProcessCellClassRules=function(){var e=this;this.processCellClassRules((function(t){g._.addCssClass(e.getGui(),t)}),(function(t){g._.removeCssClass(e.getGui(),t)}))},t.prototype.preProcessCellClassRules=function(){var e=[];return this.processCellClassRules((function(t){e.push(t)}),(function(e){})),e},t.prototype.setUsingWrapper=function(){var e=this.getComponentHolder();if(this.rowNode.rowPinned)return this.usingWrapper=!1,this.includeSelectionComponent=!1,void(this.includeRowDraggingComponent=!1);var t="function"==typeof e.checkboxSelection,o="function"==typeof e.rowDrag;this.includeSelectionComponent=t||!0===e.checkboxSelection,this.includeRowDraggingComponent=o||!0===e.rowDrag,this.usingWrapper=this.includeRowDraggingComponent||this.includeSelectionComponent},t.prototype.chooseCellRenderer=function(){var e=this.getComponentHolder();if(e.template||e.templateUrl)this.usingCellRenderer=!1;else{var o=this.createCellRendererParams(),n=this.beans.userComponentFactory.lookupComponentClassDef(e,"cellRenderer",o);this.beans.userComponentFactory.lookupComponentClassDef(e,"pinnedRowCellRenderer",o)&&this.rowNode.rowPinned?(this.cellRendererType=t.CELL_RENDERER_TYPE_PINNED,this.usingCellRenderer=!0):n?(this.cellRendererType=t.CELL_RENDERER_TYPE_NORMAL,this.usingCellRenderer=!0):this.usingCellRenderer=!1}},t.prototype.createCellRendererInstance=function(){var e=this.createCellRendererParams();this.cellRendererVersion++;var o,n=this.afterCellRendererCreated.bind(this,this.cellRendererVersion);return!!(o=this.cellRendererType===t.CELL_RENDERER_TYPE_NORMAL?this.beans.userComponentFactory.newCellRenderer(this.getComponentHolder(),e):this.beans.userComponentFactory.newPinnedRowCellRenderer(this.getComponentHolder(),e))&&(o.then(n),!0)},t.prototype.afterCellRendererCreated=function(e,t){this.isAlive()&&e===this.cellRendererVersion?(this.cellRenderer=t,this.cellRendererGui=this.cellRenderer.getGui(),g._.missing(this.cellRendererGui)||this.editingCell||this.eParentOfValue.appendChild(this.cellRendererGui)):t.destroy&&t.destroy()},t.prototype.attachCellRenderer=function(){return!!this.usingCellRenderer&&this.createCellRendererInstance()},t.prototype.createCellRendererParams=function(){var e=this;return{value:this.value,valueFormatted:this.valueFormatted,getValue:this.getValue.bind(this),setValue:function(t){e.beans.valueService.setValue(e.rowNode,e.column,t)},formatValue:this.formatValue.bind(this),data:this.rowNode.data,node:this.rowNode,colDef:this.getComponentHolder(),column:this.column,$scope:this.scope,rowIndex:this.gridCell.rowIndex,api:this.beans.gridOptionsWrapper.getApi(),columnApi:this.beans.gridOptionsWrapper.getColumnApi(),context:this.beans.gridOptionsWrapper.getContext(),refreshCell:this.refreshCell.bind(this),eGridCell:this.getGui(),eParentOfValue:this.eParentOfValue,addRowCompListener:this.rowComp?this.rowComp.addEventListener.bind(this.rowComp):null,addRenderedRowListener:function(t,o){console.warn("ag-Grid: since ag-Grid .v11, params.addRenderedRowListener() is now params.addRowCompListener()"),e.rowComp&&e.rowComp.addEventListener(t,o)}}},t.prototype.formatValue=function(e){var t=this.beans.valueFormatterService.formatValue(this.column,this.rowNode,this.scope,e);return null!=t?t:e},t.prototype.getValueToUse=function(){return null!==this.valueFormatted&&void 0!==this.valueFormatted?this.valueFormatted:this.value},t.prototype.getValueAndFormat=function(){this.value=this.getValue(),this.valueFormatted=this.beans.valueFormatterService.formatValue(this.column,this.rowNode,this.scope,this.value)},t.prototype.getValue=function(){var e=this.rowNode.leafGroup&&this.beans.columnController.isPivotMode(),t=this.rowNode.group&&this.rowNode.expanded&&!this.rowNode.footer&&!e,o=this.beans.gridOptionsWrapper.isGroupIncludeFooter(),n=this.beans.gridOptionsWrapper.isGroupSuppressBlankHeader(),r=t&&o&&!n;return this.beans.valueService.getValue(this.column,this.rowNode,!1,r)},t.prototype.onMouseEvent=function(e,t){if(!g._.isStopPropagationForAgGrid(t))switch(e){case"click":this.onCellClicked(t);break;case"mousedown":this.onMouseDown(t);break;case"dblclick":this.onCellDoubleClicked(t);break;case"mouseout":this.onMouseOut(t);break;case"mouseover":this.onMouseOver(t)}},t.prototype.dispatchCellContextMenuEvent=function(e){var t=this.getComponentHolder(),o=this.createEvent(e,p.Events.EVENT_CELL_CONTEXT_MENU);this.beans.eventService.dispatchEvent(o),t.onCellContextMenu&&window.setTimeout((function(){return t.onCellContextMenu(o)}),0)},t.prototype.createEvent=function(e,t){var o={node:this.rowNode,data:this.rowNode.data,value:this.value,column:this.column,colDef:this.getComponentHolder(),context:this.beans.gridOptionsWrapper.getContext(),api:this.beans.gridApi,columnApi:this.beans.columnApi,rowPinned:this.rowNode.rowPinned,event:e,type:t,rowIndex:this.rowNode.rowIndex};return this.scope&&(o.$scope=this.scope),o},t.prototype.onMouseOut=function(e){var t=this.createEvent(e,p.Events.EVENT_CELL_MOUSE_OUT);this.beans.eventService.dispatchEvent(t),this.beans.columnHoverService.clearMouseOver()},t.prototype.onMouseOver=function(e){var t=this.createEvent(e,p.Events.EVENT_CELL_MOUSE_OVER);this.beans.eventService.dispatchEvent(t),this.beans.columnHoverService.setMouseOver([this.column])},t.prototype.onCellDoubleClicked=function(e){var t=this.getComponentHolder(),o=this.createEvent(e,p.Events.EVENT_CELL_DOUBLE_CLICKED);this.beans.eventService.dispatchEvent(o),"function"==typeof t.onCellDoubleClicked&&window.setTimeout((function(){return t.onCellDoubleClicked(o)}),0),!this.beans.gridOptionsWrapper.isSingleClickEdit()&&!this.beans.gridOptionsWrapper.isSuppressClickEdit()&&this.startRowOrCellEdit()},t.prototype.startRowOrCellEdit=function(e,t){this.beans.gridOptionsWrapper.isFullRowEdit()?this.rowComp.startRowEditing(e,t,this):this.startEditingIfEnabled(e,t,!0)},t.prototype.isCellEditable=function(){return this.column.isCellEditable(this.rowNode)},t.prototype.startEditingIfEnabled=function(e,t,o){if(void 0===e&&(e=null),void 0===t&&(t=null),void 0===o&&(o=!1),this.isCellEditable()&&!this.editingCell){this.editingCell=!0,this.cellEditorVersion++;var n=this.afterCellEditorCreated.bind(this,this.cellEditorVersion),r=this.createCellEditorParams(e,t,o);this.createCellEditor(r).then(n),g._.missing(this.cellEditor)&&o&&this.focusCell(!0)}},t.prototype.createCellEditor=function(e){var t=this;return this.beans.userComponentFactory.newCellEditor(this.column.getColDef(),e).map((function(o){if(!o.isPopup||!o.isPopup())return o;t.beans.gridOptionsWrapper.isFullRowEdit()&&console.warn("ag-Grid: popup cellEditor does not work with fullRowEdit - you cannot use them both - either turn off fullRowEdit, or stop using popup editors.");var n=new f.PopupEditorWrapper(o);return t.beans.context.wireBean(n),n.init(e),n}))},t.prototype.afterCellEditorCreated=function(e,t){if(e===this.cellEditorVersion&&this.editingCell){if(t.isCancelBeforeStart&&t.isCancelBeforeStart())return t.destroy&&t.destroy(),void(this.editingCell=!1);if(!t.getGui)return console.warn("ag-Grid: cellEditor for column "+this.column.getId()+" is missing getGui() method"),t.render&&console.warn("ag-Grid: we found 'render' on the component, are you trying to set a React renderer but added it as colDef.cellEditor instead of colDef.cellEditorFmk?"),t.destroy&&t.destroy(),void(this.editingCell=!1);this.cellEditor=t,this.cellEditorInPopup=void 0!==t.isPopup&&t.isPopup(),this.setInlineEditingClass(),this.cellEditorInPopup?this.addPopupCellEditor():this.addInCellEditor(),t.afterGuiAttached&&t.afterGuiAttached();var o=this.createEvent(null,p.Events.EVENT_CELL_EDITING_STARTED);this.beans.eventService.dispatchEvent(o)}else t.destroy&&t.destroy()},t.prototype.addInCellEditor=function(){g._.clearElement(this.getGui()),this.cellEditor&&this.getGui().appendChild(this.cellEditor.getGui()),this.angular1Compile()},t.prototype.addPopupCellEditor=function(){var e=this,t=this.cellEditor?this.cellEditor.getGui():null;this.hideEditorPopup=this.beans.popupService.addAsModalPopup(t,!0,(function(){e.onPopupEditorClosed()})),this.beans.popupService.positionPopupOverComponent({column:this.column,rowNode:this.rowNode,type:"popupCellEditor",eventSource:this.getGui(),ePopup:t,keepWithinBounds:!0}),this.angular1Compile()},t.prototype.onPopupEditorClosed=function(){this.editingCell&&(this.stopRowOrCellEdit(),this.beans.focusedCellController.isCellFocused(this.gridCell)&&this.focusCell(!0))},t.prototype.setInlineEditingClass=function(){var e=this.editingCell&&!this.cellEditorInPopup,t=this.editingCell&&this.cellEditorInPopup;g._.addOrRemoveCssClass(this.getGui(),"ag-cell-inline-editing",e),g._.addOrRemoveCssClass(this.getGui(),"ag-cell-not-inline-editing",!e),g._.addOrRemoveCssClass(this.getGui(),"ag-cell-popup-editing",t),g._.addOrRemoveCssClass(this.getGui().parentNode,"ag-row-inline-editing",e),g._.addOrRemoveCssClass(this.getGui().parentNode,"ag-row-not-inline-editing",!e)},t.prototype.createCellEditorParams=function(e,t,o){return{value:this.getValue(),keyPress:e,charPress:t,column:this.column,colDef:this.column.getColDef(),rowIndex:this.gridCell.rowIndex,node:this.rowNode,data:this.rowNode.data,api:this.beans.gridOptionsWrapper.getApi(),cellStartedEdit:o,columnApi:this.beans.gridOptionsWrapper.getColumnApi(),context:this.beans.gridOptionsWrapper.getContext(),$scope:this.scope,onKeyDown:this.onKeyDown.bind(this),stopEditing:this.stopEditingAndFocus.bind(this),eGridCell:this.getGui(),parseValue:this.parseValue.bind(this),formatValue:this.formatValue.bind(this)}},t.prototype.stopEditingAndFocus=function(e){void 0===e&&(e=!1),this.stopRowOrCellEdit(),this.focusCell(!0),e||this.navigateAfterEdit()},t.prototype.parseValue=function(e){var t=this.getComponentHolder(),o={node:this.rowNode,data:this.rowNode.data,oldValue:this.value,newValue:e,colDef:t,column:this.column,api:this.beans.gridOptionsWrapper.getApi(),columnApi:this.beans.gridOptionsWrapper.getColumnApi(),context:this.beans.gridOptionsWrapper.getContext()},n=t.valueParser;return g._.exists(n)?this.beans.expressionService.evaluate(n,o):e},t.prototype.focusCell=function(e){void 0===e&&(e=!1),this.beans.focusedCellController.setFocusedCell(this.gridCell.rowIndex,this.column,this.rowNode.rowPinned,e)},t.prototype.setFocusInOnEditor=function(){this.editingCell&&(this.cellEditor&&this.cellEditor.focusIn?this.cellEditor.focusIn():this.focusCell(!0))},t.prototype.isEditing=function(){return this.editingCell},t.prototype.onKeyDown=function(e){var t=e.which||e.keyCode;switch(t){case l.Constants.KEY_ENTER:this.onEnterKeyDown();break;case l.Constants.KEY_F2:this.onF2KeyDown();break;case l.Constants.KEY_ESCAPE:this.onEscapeKeyDown();break;case l.Constants.KEY_TAB:this.onTabKeyDown(e);break;case l.Constants.KEY_BACKSPACE:case l.Constants.KEY_DELETE:this.onBackspaceOrDeleteKeyPressed(t);break;case l.Constants.KEY_DOWN:case l.Constants.KEY_UP:case l.Constants.KEY_RIGHT:case l.Constants.KEY_LEFT:this.onNavigationKeyPressed(e,t)}},t.prototype.setFocusOutOnEditor=function(){this.editingCell&&this.cellEditor&&this.cellEditor.focusOut&&this.cellEditor.focusOut()},t.prototype.onNavigationKeyPressed=function(e,t){this.editingCell||(e.shiftKey&&this.rangeSelectionEnabled?this.onShiftRangeSelect(t):this.beans.rowRenderer.navigateToNextCell(e,t,this.gridCell,!0),e.preventDefault())},t.prototype.onShiftRangeSelect=function(e){if(this.beans.rangeController.extendRangeInDirection(this.gridCell,e)){var t=this.beans.rangeController.getCellRanges();if(!g._.missing(t)&&t&&1===t.length){var o=t[0].end;this.beans.rowRenderer.ensureCellVisible(o)}}},t.prototype.onTabKeyDown=function(e){this.beans.rowRenderer.onTabKeyDown(this,e)},t.prototype.onBackspaceOrDeleteKeyPressed=function(e){this.editingCell||this.startRowOrCellEdit(e)},t.prototype.onEnterKeyDown=function(){this.editingCell||this.rowComp.isEditing()?this.stopEditingAndFocus():this.beans.gridOptionsWrapper.isEnterMovesDown()?this.beans.rowRenderer.navigateToNextCell(null,l.Constants.KEY_DOWN,this.gridCell,!1):this.startRowOrCellEdit(l.Constants.KEY_ENTER)},t.prototype.navigateAfterEdit=function(){this.beans.gridOptionsWrapper.isFullRowEdit()||this.beans.gridOptionsWrapper.isEnterMovesDownAfterEdit()&&this.beans.rowRenderer.navigateToNextCell(null,l.Constants.KEY_DOWN,this.gridCell,!1)},t.prototype.onF2KeyDown=function(){this.editingCell||this.startRowOrCellEdit(l.Constants.KEY_F2)},t.prototype.onEscapeKeyDown=function(){this.editingCell&&(this.stopRowOrCellEdit(!0),this.focusCell(!0))},t.prototype.onKeyPress=function(e){if(g._.getTarget(e)===this.getGui()&&!this.editingCell){var t=String.fromCharCode(e.charCode);" "===t?this.onSpaceKeyPressed(e):g._.isEventFromPrintableCharacter(e)&&(this.startRowOrCellEdit(null,t),e.preventDefault())}},t.prototype.onSpaceKeyPressed=function(e){if(!this.editingCell&&this.beans.gridOptionsWrapper.isRowSelection()){var t=this.rowNode.isSelected();this.rowNode.setSelected(!t)}e.preventDefault()},t.prototype.onMouseDown=function(e){var t=!1;if(!g._.isElementChildOfClass(e.target,"ag-selection-checkbox",3)){if(g._.isBrowserIE()&&e.target.classList.contains("ag-cell")&&(t=!0),this.focusCell(t),g._.isLeftClick(e)&&this.beans.rangeController){var o=this.gridCell;if(e.shiftKey)this.beans.rangeController.extendRangeToCell(o);else{var n=e.ctrlKey||e.metaKey;this.beans.rangeController.setRangeToCell(o,n)}}var r=this.createEvent(e,p.Events.EVENT_CELL_MOUSE_DOWN);this.beans.eventService.dispatchEvent(r)}},t.prototype.isDoubleClickOnIPad=function(){if(!g._.isUserAgentIPad())return!1;var e=(new Date).getTime(),t=e-this.lastIPadMouseClickEvent<200;return this.lastIPadMouseClickEvent=e,t},t.prototype.onCellClicked=function(e){if(this.isDoubleClickOnIPad())return this.onCellDoubleClicked(e),void e.preventDefault();var t=this.createEvent(e,p.Events.EVENT_CELL_CLICKED);this.beans.eventService.dispatchEvent(t);var o=this.getComponentHolder();o.onCellClicked&&window.setTimeout((function(){return o.onCellClicked(t)}),0),(this.beans.gridOptionsWrapper.isSingleClickEdit()||o.singleClickEdit)&&!this.beans.gridOptionsWrapper.isSuppressClickEdit()&&this.startRowOrCellEdit(),g._.doIeFocusHack(this.getGui())},t.prototype.createGridCellVo=function(){var e={rowIndex:this.rowNode.rowIndex,floating:this.rowNode.rowPinned,column:this.column};this.gridCell=new u.GridCell(e)},t.prototype.getGridCell=function(){return this.gridCell},t.prototype.getParentRow=function(){return this.eParentRow},t.prototype.setParentRow=function(e){this.eParentRow=e},t.prototype.getColumn=function(){return this.column},t.prototype.getComponentHolder=function(){return this.column.getColDef()},t.prototype.detach=function(){this.eParentRow.removeChild(this.getGui())},t.prototype.destroy=function(){e.prototype.destroy.call(this),this.cellEditor&&this.cellEditor.destroy&&(this.cellEditor.destroy(),this.cellEditor=null),this.cellRenderer&&this.cellRenderer.destroy&&(this.cellRenderer.destroy(),this.cellRenderer=null)},t.prototype.onLeftChanged=function(){var e=this.modifyLeftForPrintLayout(this.getCellLeft());this.getGui().style.left=e+"px"},t.prototype.modifyLeftForPrintLayout=function(e){return this.printLayout?this.column.getPinned()===s.Column.PINNED_LEFT?e:this.column.getPinned()===s.Column.PINNED_RIGHT?this.beans.columnController.getPinnedLeftContainerWidth()+this.beans.columnController.getBodyContainerWidth()+e:this.beans.columnController.getPinnedLeftContainerWidth()+e:e},t.prototype.onWidthChanged=function(){var e=this.getCellWidth();this.getGui().style.width=e+"px"},t.prototype.getRangeClasses=function(){var e=[];return this.rangeSelectionEnabled?(0!==this.rangeCount&&e.push("ag-cell-range-selected"),1===this.rangeCount&&e.push("ag-cell-range-selected-1"),2===this.rangeCount&&e.push("ag-cell-range-selected-2"),3===this.rangeCount&&e.push("ag-cell-range-selected-3"),this.rangeCount>=4&&e.push("ag-cell-range-selected-4"),e):e},t.prototype.onRowIndexChanged=function(){this.createGridCellVo(),this.onCellFocused(),this.onRangeSelectionChanged()},t.prototype.onRangeSelectionChanged=function(){if(this.beans.enterprise){var e=this.beans.rangeController.getCellRangeCount(this.gridCell),t=this.getGui();this.rangeCount!==e&&(g._.addOrRemoveCssClass(t,"ag-cell-range-selected",0!==e),g._.addOrRemoveCssClass(t,"ag-cell-range-selected-1",1===e),g._.addOrRemoveCssClass(t,"ag-cell-range-selected-2",2===e),g._.addOrRemoveCssClass(t,"ag-cell-range-selected-3",3===e),g._.addOrRemoveCssClass(t,"ag-cell-range-selected-4",e>=4),this.rangeCount=e)}},t.prototype.onFirstRightPinnedChanged=function(){var e=this.column.isFirstRightPinned();this.firstRightPinned!==e&&(this.firstRightPinned=e,g._.addOrRemoveCssClass(this.getGui(),"ag-cell-first-right-pinned",e))},t.prototype.onLastLeftPinnedChanged=function(){var e=this.column.isLastLeftPinned();this.lastLeftPinned!==e&&(this.lastLeftPinned=e,g._.addOrRemoveCssClass(this.getGui(),"ag-cell-last-left-pinned",e))},t.prototype.populateTemplate=function(){this.usingWrapper?(this.eParentOfValue=this.getRefElement("eCellValue"),this.eCellWrapper=this.getRefElement("eCellWrapper"),this.includeRowDraggingComponent&&this.addRowDragging(),this.includeSelectionComponent&&this.addSelectionCheckbox()):this.eParentOfValue=this.getGui()},t.prototype.addRowDragging=function(){if(this.beans.gridOptionsWrapper.isRowModelDefault())if(this.beans.gridOptionsWrapper.isPagination())g._.doOnce((function(){return console.warn("ag-Grid: row dragging is not possible when doing pagination")}),"CellComp.addRowDragging");else{var e=new h.RowDragComp(this.rowNode,this.column,this.getValueToUse(),this.beans);this.addFeature(this.beans.context,e),this.eCellWrapper.insertBefore(e.getGui(),this.eParentOfValue)}else g._.doOnce((function(){return console.warn("ag-Grid: row dragging is only allowed in the In Memory Row Model")}),"CellComp.addRowDragging")},t.prototype.addSelectionCheckbox=function(){var e=new d.CheckboxSelectionComponent;this.beans.context.wireBean(e);var t=this.getComponentHolder().checkboxSelection;t="function"==typeof t?t:null,e.init({rowNode:this.rowNode,column:this.column,visibleFunc:t}),this.addDestroyFunc((function(){return e.destroy()})),this.eCellWrapper.insertBefore(e.getGui(),this.eParentOfValue)},t.prototype.addDomData=function(){var e=this,o=this.getGui();this.beans.gridOptionsWrapper.setDomData(o,t.DOM_DATA_KEY_CELL_COMP,this),this.addDestroyFunc((function(){return e.beans.gridOptionsWrapper.setDomData(o,t.DOM_DATA_KEY_CELL_COMP,null)}))},t.prototype.onCellFocused=function(e){var t=this.beans.focusedCellController.isCellFocused(this.gridCell);if(t!==this.cellFocused&&(!this.beans.gridOptionsWrapper.isSuppressCellSelection()&&g._.addOrRemoveCssClass(this.getGui(),"ag-cell-focus",t),this.cellFocused=t),t&&e&&e.forceBrowserFocus){var o=this.getGui();o.focus(),g._.doIeFocusHack(o)}var n=this.beans.gridOptionsWrapper.isFullRowEdit();t||n||!this.editingCell||this.stopRowOrCellEdit()},t.prototype.stopRowOrCellEdit=function(e){void 0===e&&(e=!1),this.beans.gridOptionsWrapper.isFullRowEdit()?this.rowComp.stopRowEditing(e):this.stopEditing(e)},t.prototype.stopEditing=function(e){if(void 0===e&&(e=!1),this.editingCell)if(this.cellEditor){var t,o=!1;if(e||this.cellEditor.isCancelAfterEnd&&this.cellEditor.isCancelAfterEnd()||(t=this.cellEditor.getValue(),o=!0),this.editingCell=!1,this.cellEditor.destroy&&this.cellEditor.destroy(),this.cellEditor=null,this.cellEditorInPopup&&this.hideEditorPopup)this.hideEditorPopup(),this.hideEditorPopup=null;else if(g._.clearElement(this.getGui()),this.usingWrapper)this.getGui().appendChild(this.eCellWrapper);else if(this.cellRenderer){var n=this.cellRendererGui;n&&this.getGui().appendChild(n)}this.setInlineEditingClass(),o&&(this.suppressRefreshCell=!0,this.rowNode.setDataValue(this.column,t),this.suppressRefreshCell=!1),this.refreshCell({forceRefresh:!0,suppressFlash:!0});var r=this.createEvent(null,p.Events.EVENT_CELL_EDITING_STOPPED);this.beans.eventService.dispatchEvent(r)}else this.editingCell=!1},t.DOM_DATA_KEY_CELL_COMP="cellComp",t.CELL_RENDERER_TYPE_NORMAL="cellRenderer",t.CELL_RENDERER_TYPE_PINNED="pinnedRowCellRenderer",t}(c.Component);t.CellComp=m},24728:(e,t)=>{var o;Object.defineProperty(t,"__esModule",{value:!0}),function(e){e.IdentityCheck="IdentityCheck",e.DeepValueCheck="DeepValueCheck",e.NoCheck="NoCheck"}(o=t.ChangeDetectionStrategyType||(t.ChangeDetectionStrategyType={}));var n=function(){function e(){var e;this.strategyMap=((e={})[o.DeepValueCheck]=new i,e[o.IdentityCheck]=new r((function(e,t){return e===t})),e[o.NoCheck]=new r((function(e,t){return!0})),e)}return e.prototype.getStrategy=function(e){return this.strategyMap[e]},e}();t.ChangeDetectionService=n;var r=function(){function e(e){this.strategy=e}return e.prototype.areEqual=function(e,t){return this.strategy(e,t)},e}(),i=function(){function e(){}return e.prototype.areEqual=function(t,o){return e.areEquivalent(e.copy(t),e.copy(o))},e.unwrapStringOrNumber=function(e){return e instanceof Number||e instanceof String?e.valueOf():e},e.copy=function(e){if(!e)return e;if(Array.isArray(e)){for(var t=[],o=0;o<e.length;o++)t.push(this.copy(e[o]));return t}return"object"!=typeof e?e:[{},e].reduce((function(e,t){return Object.keys(t).forEach((function(o){e[o]=t[o]})),e}),{})},e.areEquivalent=function(t,o){if(t=e.unwrapStringOrNumber(t),o=e.unwrapStringOrNumber(o),t===o)return!0;if(null===t||null===o||typeof t!=typeof o)return!1;if(t instanceof Date)return o instanceof Date&&t.valueOf()===o.valueOf();if("function"==typeof t)return t.toString()===o.toString();if("object"!=typeof t)return t==o;var n=void 0===t.areEquivPropertyTracking,r=void 0===o.areEquivPropertyTracking;try{var i=void 0;if(n)t.areEquivPropertyTracking=[];else if(t.areEquivPropertyTracking.some((function(e){return e===o})))return!0;if(r)o.areEquivPropertyTracking=[];else if(o.areEquivPropertyTracking.some((function(e){return e===t})))return!0;t.areEquivPropertyTracking.push(o),o.areEquivPropertyTracking.push(t);var s={};for(i in t)"areEquivPropertyTracking"!=i&&(s[i]=null);for(i in o)"areEquivPropertyTracking"!=i&&(s[i]=null);for(i in s)if(!this.areEquivalent(t[i],o[i]))return!1;return!0}finally{n&&delete t.areEquivPropertyTracking,r&&delete o.areEquivPropertyTracking}},e}()},25557:function(e,t,o){var n,r=this&&this.__extends||(n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])},n(e,t)},function(e,t){function o(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(o.prototype=t.prototype,new o)}),i=this&&this.__decorate||function(e,t,o,n){var r,i=arguments.length,s=i<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,n);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,o,s):r(t,o))||s);return i>3&&s&&Object.defineProperty(t,o,s),s},s=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},a=this&&this.__param||function(e,t){return function(o,n){t(o,n,e)}};Object.defineProperty(t,"__esModule",{value:!0});var l=o(59804),p=o(47304),u=o(33018),c=o(12427),d=o(95242),h=o(53421),f=o(31551),g=o(81404),m=function(e){function t(t){return e.call(this,t)||this}return r(t,e),t.prototype.setBeans=function(e){this.logger=e.create("InfiniteCache")},t.prototype.init=function(){e.prototype.init.call(this),this.getRow(0)},t.prototype.moveItemsDown=function(e,t,o){for(var n=e.getStartRow(),r=t+o,i=e.getEndRow()-1;i>=n;i--)if(!(i<r)){var s=i-o,a=this.getRow(s,!0);a?e.setRowNode(i,a):(e.setBlankRowNode(i),e.setDirty())}},t.prototype.insertItems=function(e,t,o){for(var n=e.getStartRow(),r=e.getEndRow(),i=[],s=0;s<o.length;s++){var a=t+s;if(a>=n&&a<r){var l=o[s],p=e.setNewData(a,l);i.push(p)}}return i},t.prototype.insertItemsAtIndex=function(e,t){var o=this,n=[];this.forEachBlockInReverseOrder((function(r){r.getEndRow()<=e||(o.moveItemsDown(r,e,t.length),o.insertItems(r,e,t).forEach((function(e){return n.push(e)})))})),this.isMaxRowFound()&&this.hack_setVirtualRowCount(this.getVirtualRowCount()+t.length),this.onCacheUpdated();var r={type:u.Events.EVENT_ROW_DATA_UPDATED,api:this.gridApi,columnApi:this.columnApi};this.eventService.dispatchEvent(r)},t.prototype.getRow=function(e,t){void 0===t&&(t=!1);var o=Math.floor(e/this.cacheParams.blockSize),n=this.getBlock(o);if(!n){if(t)return null;n=this.createBlock(o)}return n.getRow(e)},t.prototype.createBlock=function(e){var t=new d.InfiniteBlock(e,this.cacheParams);return this.getContext().wireBean(t),this.postCreateBlock(t),t},t.prototype.refreshCache=function(){this.forEachBlockInOrder((function(e){return e.setDirty()})),this.checkBlockToLoad()},i([l.Autowired("eventService"),s("design:type",p.EventService)],t.prototype,"eventService",void 0),i([l.Autowired("columnApi"),s("design:type",g.ColumnApi)],t.prototype,"columnApi",void 0),i([l.Autowired("gridApi"),s("design:type",f.GridApi)],t.prototype,"gridApi",void 0),i([a(0,l.Qualifier("loggerFactory")),s("design:type",Function),s("design:paramtypes",[c.LoggerFactory]),s("design:returntype",void 0)],t.prototype,"setBeans",null),i([l.PostConstruct,s("design:type",Function),s("design:paramtypes",[]),s("design:returntype",void 0)],t.prototype,"init",null),t}(h.RowNodeCache);t.InfiniteCache=m},25599:function(e,t,o){var n,r=this&&this.__extends||(n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])},n(e,t)},function(e,t){function o(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(o.prototype=t.prototype,new o)}),i=this&&this.__decorate||function(e,t,o,n){var r,i=arguments.length,s=i<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,n);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,o,s):r(t,o))||s);return i>3&&s&&Object.defineProperty(t,o,s),s},s=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0});var a=o(99162),l=o(59804),p=function(e){function t(){return e.call(this)||this}return r(t,e),t.prototype.init=function(e){var o=this.gridOptionsWrapper.getOverlayNoRowsTemplate()?this.gridOptionsWrapper.getOverlayNoRowsTemplate():t.DEFAULT_NO_ROWS_TEMPLATE,n=this.gridOptionsWrapper.getLocaleTextFunc(),r=o.replace("[NO_ROWS_TO_SHOW]",n("noRowsToShow","No Rows To Show"));this.setTemplate(r)},t.DEFAULT_NO_ROWS_TEMPLATE='<span class="ag-overlay-no-rows-center">[NO_ROWS_TO_SHOW]</span>',i([l.Autowired("gridOptionsWrapper"),s("design:type",a.GridOptionsWrapper)],t.prototype,"gridOptionsWrapper",void 0),t}(o(38830).Component);t.NoRowsOverlayComponent=p},27322:function(e,t,o){var n=this&&this.__decorate||function(e,t,o,n){var r,i=arguments.length,s=i<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,n);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,o,s):r(t,o))||s);return i>3&&s&&Object.defineProperty(t,o,s),s},r=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0});var i=o(59804),s=o(14035),a=o(3978),l=o(99162),p=o(51890),u=o(43510),c=function(){function e(){}return e.prototype.init=function(){this.postSortFunc=this.gridOptionsWrapper.getPostSortFunc()},e.prototype.sort=function(e,t,o,n,r,i){var s=this;r.forEachChangedNodeDepthFirst((function(a){if(s.pullDownGroupDataForHideOpenParents(a.childrenAfterFilter,!0),t){var l=o?s.doDeltaSort(a,e,n,r,i):s.doFullSort(a,e);a.childrenAfterSort=l.map((function(e){return e.rowNode}))}else a.childrenAfterSort=a.childrenAfterFilter.slice(0);s.updateChildIndexes(a),s.postSortFunc&&s.postSortFunc(a.childrenAfterSort)})),this.updateGroupDataForHiddenOpenParents(r)},e.prototype.doFullSort=function(e,t){var o=e.childrenAfterFilter.map(this.mapNodeToSortedNode.bind(this));return o.sort(this.compareRowNodes.bind(this,t)),o},e.prototype.mapNodeToSortedNode=function(e,t){return{currentPos:t,rowNode:e}},e.prototype.doDeltaSort=function(e,t,o,n,r){var i=e.childrenAfterSort.filter((function(e){var t=!o[e.id],i=r||n.canSkip(e);return t&&i})).map(this.mapNodeToSortedNode.bind(this)),s={};i.forEach((function(e){return s[e.rowNode.id]=e.rowNode}));var a=e.childrenAfterFilter.filter((function(e){return!s[e.id]})).map(this.mapNodeToSortedNode.bind(this));return a.sort(this.compareRowNodes.bind(this,t)),0===a.length?i:0===i.length?a:this.mergeSortedArrays(t,i,a)},e.prototype.mergeSortedArrays=function(e,t,o){for(var n=[],r=0,i=0;r<t.length&&i<o.length;)this.compareRowNodes(e,t[r],o[i])<0?n.push(t[r++]):n.push(o[i++]);for(;r<t.length;)n.push(t[r++]);for(;i<o.length;)n.push(o[i++]);return n},e.prototype.compareRowNodes=function(e,t,o){for(var n=t.rowNode,r=o.rowNode,i=0,s=e.length;i<s;i++){var a,l=e[i],p=-1===l.inverter,c=this.getValue(n,l.column),d=this.getValue(r,l.column);if(0!==(a=l.column.getColDef().comparator?l.column.getColDef().comparator(c,d,n,r,p):u._.defaultComparator(c,d,this.gridOptionsWrapper.isAccentedSort())))return a*l.inverter}return t.currentPos-o.currentPos},e.prototype.getValue=function(e,t){return this.valueService.getValue(t,e)},e.prototype.updateChildIndexes=function(e){if(!u._.missing(e.childrenAfterSort))for(var t=e.childrenAfterSort,o=0;o<t.length;o++){var n=t[o],r=0===o,i=o===e.childrenAfterSort.length-1;n.setFirstChild(r),n.setLastChild(i),n.setChildIndex(o)}},e.prototype.updateGroupDataForHiddenOpenParents=function(e){var t=this;if(this.gridOptionsWrapper.isGroupHideOpenParents()){var o=function(e){t.pullDownGroupDataForHideOpenParents(e.childrenAfterSort,!1),e.childrenAfterSort.forEach((function(e){e.hasChildren()&&o(e)}))};e.executeFromRootNode((function(e){return o(e)}))}},e.prototype.pullDownGroupDataForHideOpenParents=function(e,t){var o=this;u._.missing(e)||this.gridOptionsWrapper.isGroupHideOpenParents()&&e.forEach((function(e){o.columnController.getGroupDisplayColumns().forEach((function(n){var r=n.getColDef().showRowGroup;if("string"==typeof r){var i=r,s=o.columnController.getPrimaryColumn(i);if(s!==e.rowGroupColumn)if(t)e.setGroupValue(n.getId(),null);else{var a=e.getFirstChildOfFirstChild(s);a&&e.setGroupValue(n.getId(),a.key)}}else console.error("ag-Grid: groupHideOpenParents only works when specifying specific columns for colDef.showRowGroup")}))}))},n([i.Autowired("sortController"),r("design:type",s.SortController)],e.prototype,"sortController",void 0),n([i.Autowired("columnController"),r("design:type",p.ColumnController)],e.prototype,"columnController",void 0),n([i.Autowired("valueService"),r("design:type",a.ValueService)],e.prototype,"valueService",void 0),n([i.Autowired("gridOptionsWrapper"),r("design:type",l.GridOptionsWrapper)],e.prototype,"gridOptionsWrapper",void 0),n([i.PostConstruct,r("design:type",Function),r("design:paramtypes",[]),r("design:returntype",void 0)],e.prototype,"init",null),n([i.Bean("sortService")],e)}();t.SortService=c},27490:function(e,t,o){var n=this&&this.__decorate||function(e,t,o,n){var r,i=arguments.length,s=i<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,n);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,o,s):r(t,o))||s);return i>3&&s&&Object.defineProperty(t,o,s),s},r=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0});var i=o(59804),s=o(59804),a=function(){function e(){this.templateCache={},this.waitingCallbacks={}}return e.prototype.getTemplate=function(e,t){var o=this.templateCache[e];if(o)return o;var n=this.waitingCallbacks[e],r=this;if(!n){n=[],this.waitingCallbacks[e]=n;var i=new XMLHttpRequest;i.onload=function(){r.handleHttpResult(this,e)},i.open("GET",e),i.send()}return t&&n.push(t),null},e.prototype.handleHttpResult=function(e,t){if(200===e.status&&null!==e.response){this.templateCache[t]=e.response||e.responseText;for(var o=this.waitingCallbacks[t],n=0;n<o.length;n++)(0,o[n])();if(this.$scope){var r=this;window.setTimeout((function(){r.$scope.$apply()}),0)}}else console.warn("Unable to get template error "+e.status+" - "+t)},n([s.Autowired("$scope"),r("design:type",Object)],e.prototype,"$scope",void 0),n([i.Bean("templateService")],e)}();t.TemplateService=a},28348:function(e,t,o){var n,r=this&&this.__extends||(n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])},n(e,t)},function(e,t){function o(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(o.prototype=t.prototype,new o)});Object.defineProperty(t,"__esModule",{value:!0});var i=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r(t,e),t.prototype.isPopup=function(){return!0},t}(o(38830).Component);t.PopupComponent=i},28742:e=>{var t={};e.exports=function(e,o){var n=function(e){if(void 0===t[e]){var o=document.querySelector(e);if(window.HTMLIFrameElement&&o instanceof window.HTMLIFrameElement)try{o=o.contentDocument.head}catch(e){o=null}t[e]=o}return t[e]}(e);if(!n)throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");n.appendChild(o)}},30149:function(e,t,o){var n,r=this&&this.__createBinding||(Object.create?function(e,t,o,n){void 0===n&&(n=o);var r=Object.getOwnPropertyDescriptor(t,o);r&&!("get"in r?!t.__esModule:r.writable||r.configurable)||(r={enumerable:!0,get:function(){return t[o]}}),Object.defineProperty(e,n,r)}:function(e,t,o,n){void 0===n&&(n=o),e[n]=t[o]}),i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),s=this&&this.__importStar||(n=function(e){return n=Object.getOwnPropertyNames||function(e){var t=[];for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[t.length]=o);return t},n(e)},function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var o=n(e),s=0;s<o.length;s++)"default"!==o[s]&&r(t,e,o[s]);return i(t,e),t});Object.defineProperty(t,"__esModule",{value:!0}),t.redactValidConnectionString=function(e,t){const o=e.clone(),n=t?.replacementString??"_credentials_",r=t?.redactUsernames??!0;if((o.username||o.password)&&r?(o.username=n,o.password=""):o.password&&(o.password=n),o.searchParams.has("authMechanismProperties")){const e=new a.CommaAndColonSeparatedRecord(o.searchParams.get("authMechanismProperties"));e.get("AWS_SESSION_TOKEN")&&(e.set("AWS_SESSION_TOKEN",n),o.searchParams.set("authMechanismProperties",e.toString()))}return o.searchParams.has("tlsCertificateKeyFilePassword")&&o.searchParams.set("tlsCertificateKeyFilePassword",n),o.searchParams.has("proxyUsername")&&r&&o.searchParams.set("proxyUsername",n),o.searchParams.has("proxyPassword")&&o.searchParams.set("proxyPassword",n),o},t.redactConnectionString=function(e,t){const o=t?.replacementString??"<credentials>",n=t?.redactUsernames??!0;let r;try{r=new a.default(e)}catch{}if(r)return t={...t,replacementString:"___credentials___"},r.redact(t).toString().replace(/___credentials___/g,o);const i=o,s=[e=>e.replace(n?/(\/\/)(.*)(@)/g:/(\/\/[^@]*:)(.*)(@)/g,`$1${i}$3`),e=>e.replace(/(AWS_SESSION_TOKEN(:|%3A))([^,&]+)/gi,`$1${i}`),e=>e.replace(/(tlsCertificateKeyFilePassword=)([^&]+)/gi,`$1${i}`),e=>n?e.replace(/(proxyUsername=)([^&]+)/gi,`$1${i}`):e,e=>e.replace(/(proxyPassword=)([^&]+)/gi,`$1${i}`)];for(const t of s)e=t(e);return e};const a=s(o(68446))},30476:function(e,t,o){var n=this&&this.__decorate||function(e,t,o,n){var r,i=arguments.length,s=i<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,n);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,o,s):r(t,o))||s);return i>3&&s&&Object.defineProperty(t,o,s),s},r=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0});var i=o(59804),s=o(12427),a=o(51890),l=o(71569),p=o(43510),u=o(13161),c=o(99162),d=function(){function e(e,t){this.needToMoveLeft=!1,this.needToMoveRight=!1,this.pinned=e,this.eContainer=t,this.centerContainer=!p._.exists(e)}return e.prototype.registerGridComp=function(e){this.gridPanel=e},e.prototype.init=function(){this.logger=this.loggerFactory.create("MoveColumnController")},e.prototype.getIconName=function(){return this.pinned?u.DragAndDropService.ICON_PINNED:u.DragAndDropService.ICON_MOVE},e.prototype.onDragEnter=function(e){var t=e.dragItem.columns;if(e.dragSource.type===u.DragSourceType.ToolPanel)this.setColumnsVisible(t,!0,"uiColumnDragged");else{var o=e.dragItem.visibleState,n=t.filter((function(e){return o[e.getId()]}));this.setColumnsVisible(n,!0,"uiColumnDragged")}this.setColumnsPinned(t,this.pinned,"uiColumnDragged"),this.onDragging(e,!0)},e.prototype.onDragLeave=function(e){if(!this.gridOptionsWrapper.isSuppressDragLeaveHidesColumns()&&!e.fromNudge){var t=e.dragSource.dragItemCallback().columns;this.setColumnsVisible(t,!1,"uiColumnDragged")}this.ensureIntervalCleared()},e.prototype.setColumnsVisible=function(e,t,o){if(void 0===o&&(o="api"),e){var n=e.filter((function(e){return!e.isLockVisible()}));this.columnController.setColumnsVisible(n,t,o)}},e.prototype.setColumnsPinned=function(e,t,o){if(void 0===o&&(o="api"),e){var n=e.filter((function(e){return!e.isLockPinned()}));this.columnController.setColumnsPinned(n,t,o)}},e.prototype.onDragStop=function(){this.ensureIntervalCleared()},e.prototype.normaliseX=function(e){return this.gridOptionsWrapper.isEnableRtl()&&(e=this.eContainer.clientWidth-e),this.centerContainer&&(e+=this.gridPanel.getCenterViewportScrollLeft()),e},e.prototype.checkCenterForScrolling=function(e){if(this.centerContainer){var t=this.gridPanel.getCenterViewportScrollLeft(),o=t+this.gridPanel.getCenterWidth();this.gridOptionsWrapper.isEnableRtl()?(this.needToMoveRight=e<t+50,this.needToMoveLeft=e>o-50):(this.needToMoveLeft=e<t+50,this.needToMoveRight=e>o-50),this.needToMoveLeft||this.needToMoveRight?this.ensureIntervalStarted():this.ensureIntervalCleared()}},e.prototype.onDragging=function(e,t){var o=this;if(void 0===t&&(t=!1),this.lastDraggingEvent=e,!p._.missing(e.hDirection)){var n=this.normaliseX(e.x);t||this.checkCenterForScrolling(n);var r=this.normaliseDirection(e.hDirection),i=e.dragSource.type,s=e.dragSource.dragItemCallback().columns;s=s.filter((function(e){return!e.isLockPinned()||e.getPinned()==o.pinned})),this.attemptMoveColumns(i,s,r,n,t)}},e.prototype.normaliseDirection=function(e){if(!this.gridOptionsWrapper.isEnableRtl())return e;switch(e){case u.HDirection.Left:return u.HDirection.Right;case u.HDirection.Right:return u.HDirection.Left;default:console.error("ag-Grid: Unknown direction "+e)}},e.prototype.calculateOldIndex=function(e){var t=this.columnController.getAllGridColumns(),o=[];e.forEach((function(e){return o.push(t.indexOf(e))})),p._.sortNumberArray(o);var n=o[0];return o[o.length-1]-n!=o.length-1?null:n},e.prototype.attemptMoveColumns=function(e,t,o,n,r){for(var i=o===u.HDirection.Left,s=o===u.HDirection.Right,a=this.calculateValidMoves(t,s,n),l=this.calculateOldIndex(t),p=0;p<a.length;p++){var c=a[p],d=null!==l&&!r;if(e==u.DragSourceType.HeaderCell&&(d=null!==l),d){if(i&&c>=l)continue;if(s&&c<=l)continue}if(this.columnController.doesMovePassRules(t,c))return void this.columnController.moveColumns(t,c,"uiColumnDragged")}},e.prototype.calculateValidMoves=function(e,t,o){var n,r=this.columnController.getDisplayedColumns(this.pinned),i=this.columnController.getAllGridColumns(),s=function(t){return e.indexOf(t)<0},a=r.filter((function(t){return e.indexOf(t)>=0})),l=r.filter(s),u=i.filter(s),c=0,d=o;if(t){var h=0;a.forEach((function(e){return h+=e.getActualWidth()})),d-=h}if(d>0){for(var f=0;f<l.length&&!((d-=l[f].getActualWidth())<0);f++)c++;t&&c++}if(c>0){var g=l[c-1];n=u.indexOf(g)+1}else n=0;for(var m=[n],y=i[n];p._.exists(y)&&this.isColumnHidden(r,y);)n++,m.push(n),y=i[n];return m},e.prototype.isColumnHidden=function(e,t){return e.indexOf(t)<0},e.prototype.ensureIntervalStarted=function(){this.movingIntervalId||(this.intervalCount=0,this.failedMoveAttempts=0,this.movingIntervalId=window.setInterval(this.moveInterval.bind(this),100),this.needToMoveLeft?this.dragAndDropService.setGhostIcon(u.DragAndDropService.ICON_LEFT,!0):this.dragAndDropService.setGhostIcon(u.DragAndDropService.ICON_RIGHT,!0))},e.prototype.ensureIntervalCleared=function(){this.moveInterval&&(window.clearInterval(this.movingIntervalId),this.movingIntervalId=null,this.dragAndDropService.setGhostIcon(u.DragAndDropService.ICON_MOVE))},e.prototype.moveInterval=function(){var e,t;if(this.intervalCount++,(e=10+5*this.intervalCount)>100&&(e=100),this.needToMoveLeft?t=this.gridPanel.scrollHorizontally(-e):this.needToMoveRight&&(t=this.gridPanel.scrollHorizontally(e)),0!==t)this.onDragging(this.lastDraggingEvent),this.failedMoveAttempts=0;else{this.failedMoveAttempts++;var o=this.lastDraggingEvent.dragItem.columns.filter((function(e){return!e.isLockPinned()}));if(o.length>0&&(this.dragAndDropService.setGhostIcon(u.DragAndDropService.ICON_PINNED),this.failedMoveAttempts>7)){var n=this.needToMoveLeft?l.Column.PINNED_LEFT:l.Column.PINNED_RIGHT;this.setColumnsPinned(o,n,"uiColumnDragged"),this.dragAndDropService.nudge()}}},n([i.Autowired("loggerFactory"),r("design:type",s.LoggerFactory)],e.prototype,"loggerFactory",void 0),n([i.Autowired("columnController"),r("design:type",a.ColumnController)],e.prototype,"columnController",void 0),n([i.Autowired("dragAndDropService"),r("design:type",u.DragAndDropService)],e.prototype,"dragAndDropService",void 0),n([i.Autowired("gridOptionsWrapper"),r("design:type",c.GridOptionsWrapper)],e.prototype,"gridOptionsWrapper",void 0),n([i.PostConstruct,r("design:type",Function),r("design:paramtypes",[]),r("design:returntype",void 0)],e.prototype,"init",null),e}();t.MoveColumnController=d},30754:function(e,t,o){var n=this&&this.__decorate||function(e,t,o,n){var r,i=arguments.length,s=i<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,n);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,o,s):r(t,o))||s);return i>3&&s&&Object.defineProperty(t,o,s),s},r=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0});var i=o(71569),s=o(47304),a=o(59804),l=o(99162),p=o(81404),u=o(31551),c=function(){function e(e,t,o,n){this.displayedChildren=[],this.localEventService=new s.EventService,this.groupId=t,this.instanceId=o,this.originalColumnGroup=e,this.pinned=n}return e.createUniqueId=function(e,t){return e+"_"+t},e.prototype.reset=function(){this.parent=null,this.children=null,this.displayedChildren=null},e.prototype.getParent=function(){return this.parent},e.prototype.setParent=function(e){this.parent=e},e.prototype.getUniqueId=function(){return e.createUniqueId(this.groupId,this.instanceId)},e.prototype.isEmptyGroup=function(){return 0===this.displayedChildren.length},e.prototype.isMoving=function(){var e=this.getOriginalColumnGroup().getLeafColumns();if(!e||0===e.length)return!1;var t=!0;return e.forEach((function(e){e.isMoving()||(t=!1)})),t},e.prototype.checkLeft=function(){if(this.displayedChildren.forEach((function(t){t instanceof e&&t.checkLeft()})),this.displayedChildren.length>0)if(this.gridOptionsWrapper.isEnableRtl()){var t=this.displayedChildren[this.displayedChildren.length-1].getLeft();this.setLeft(t)}else{var o=this.displayedChildren[0].getLeft();this.setLeft(o)}else this.setLeft(null)},e.prototype.getLeft=function(){return this.left},e.prototype.getOldLeft=function(){return this.oldLeft},e.prototype.setLeft=function(t){this.oldLeft=t,this.left!==t&&(this.left=t,this.localEventService.dispatchEvent(this.createAgEvent(e.EVENT_LEFT_CHANGED)))},e.prototype.getPinned=function(){return this.pinned},e.prototype.createAgEvent=function(e){return{type:e}},e.prototype.addEventListener=function(e,t){this.localEventService.addEventListener(e,t)},e.prototype.removeEventListener=function(e,t){this.localEventService.removeEventListener(e,t)},e.prototype.getGroupId=function(){return this.groupId},e.prototype.getInstanceId=function(){return this.instanceId},e.prototype.isChildInThisGroupDeepSearch=function(t){var o=!1;return this.children.forEach((function(n){t===n&&(o=!0),n instanceof e&&n.isChildInThisGroupDeepSearch(t)&&(o=!0)})),o},e.prototype.getActualWidth=function(){var e=0;return this.displayedChildren&&this.displayedChildren.forEach((function(t){e+=t.getActualWidth()})),e},e.prototype.isResizable=function(){if(!this.displayedChildren)return!1;var e=!1;return this.displayedChildren.forEach((function(t){t.isResizable()&&(e=!0)})),e},e.prototype.getMinWidth=function(){var e=0;return this.displayedChildren.forEach((function(t){e+=t.getMinWidth()})),e},e.prototype.addChild=function(e){this.children||(this.children=[]),this.children.push(e)},e.prototype.getDisplayedChildren=function(){return this.displayedChildren},e.prototype.getLeafColumns=function(){var e=[];return this.addLeafColumns(e),e},e.prototype.getDisplayedLeafColumns=function(){var e=[];return this.addDisplayedLeafColumns(e),e},e.prototype.getDefinition=function(){return this.originalColumnGroup.getColGroupDef()},e.prototype.getColGroupDef=function(){return this.originalColumnGroup.getColGroupDef()},e.prototype.isPadding=function(){return this.originalColumnGroup.isPadding()},e.prototype.isExpandable=function(){return this.originalColumnGroup.isExpandable()},e.prototype.isExpanded=function(){return this.originalColumnGroup.isExpanded()},e.prototype.setExpanded=function(e){this.originalColumnGroup.setExpanded(e)},e.prototype.addDisplayedLeafColumns=function(t){this.displayedChildren.forEach((function(o){o instanceof i.Column?t.push(o):o instanceof e&&o.addDisplayedLeafColumns(t)}))},e.prototype.addLeafColumns=function(t){this.children.forEach((function(o){o instanceof i.Column?t.push(o):o instanceof e&&o.addLeafColumns(t)}))},e.prototype.getChildren=function(){return this.children},e.prototype.getColumnGroupShow=function(){return this.originalColumnGroup.getColumnGroupShow()},e.prototype.getOriginalColumnGroup=function(){return this.originalColumnGroup},e.prototype.calculateDisplayedColumns=function(){var t=this;this.displayedChildren=[];var o=this;if(this.isPadding())for(;o.getParent()&&o.isPadding();)o=o.getParent();o.originalColumnGroup.isExpandable()?this.children.forEach((function(n){switch(n.getColumnGroupShow()){case e.HEADER_GROUP_SHOW_OPEN:o.originalColumnGroup.isExpanded()&&t.displayedChildren.push(n);break;case e.HEADER_GROUP_SHOW_CLOSED:o.originalColumnGroup.isExpanded()||t.displayedChildren.push(n);break;default:t.displayedChildren.push(n)}})):this.displayedChildren=this.children,this.localEventService.dispatchEvent(this.createAgEvent(e.EVENT_DISPLAYED_CHILDREN_CHANGED))},e.HEADER_GROUP_SHOW_OPEN="open",e.HEADER_GROUP_SHOW_CLOSED="closed",e.EVENT_LEFT_CHANGED="leftChanged",e.EVENT_DISPLAYED_CHILDREN_CHANGED="displayedChildrenChanged",n([a.Autowired("gridOptionsWrapper"),r("design:type",l.GridOptionsWrapper)],e.prototype,"gridOptionsWrapper",void 0),n([a.Autowired("columnApi"),r("design:type",p.ColumnApi)],e.prototype,"columnApi",void 0),n([a.Autowired("gridApi"),r("design:type",u.GridApi)],e.prototype,"gridApi",void 0),e}();t.ColumnGroup=c},31551:function(e,t,o){var n=this&&this.__decorate||function(e,t,o,n){var r,i=arguments.length,s=i<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,n);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,o,s):r(t,o))||s);return i>3&&s&&Object.defineProperty(t,o,s),s},r=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0});var i=o(77769),s=o(1659),a=o(57663),l=o(51890),p=o(83921),u=o(99162),c=o(3978),d=o(47304),h=o(44494),f=o(59804),g=o(14035),m=o(42062),y=o(21559),v=o(4895),C=o(72738),w=o(10228),_=o(79255),E=o(65499),b=o(5988),R=o(15558),S=o(43510),O=function(){function e(){this.detailGridInfoMap={}}return e.prototype.registerGridComp=function(e){this.gridPanel=e},e.prototype.registerGridCore=function(e){this.gridCore=e},e.prototype.registerHeaderRootComp=function(e){this.headerRootComp=e},e.prototype.init=function(){switch(this.rowModel.getType()){case h.Constants.ROW_MODEL_TYPE_CLIENT_SIDE:this.clientSideRowModel=this.rowModel;break;case h.Constants.ROW_MODEL_TYPE_INFINITE:this.infinitePageRowModel=this.rowModel;break;case h.Constants.ROW_MODEL_TYPE_SERVER_SIDE:this.serverSideRowModel=this.rowModel}},e.prototype.__getAlignedGridService=function(){return this.alignedGridsService},e.prototype.addDetailGridInfo=function(e,t){this.detailGridInfoMap[e]=t},e.prototype.removeDetailGridInfo=function(e){this.detailGridInfoMap[e]=void 0},e.prototype.getDetailGridInfo=function(e){return this.detailGridInfoMap[e]},e.prototype.forEachDetailGridInfo=function(e){var t=0;S._.iterateObject(this.detailGridInfoMap,(function(o,n){S._.exists(n)&&(e(n,t),t++)}))},e.prototype.getDataAsCsv=function(e){return this.csvCreator.getDataAsCsv(e)},e.prototype.exportDataAsCsv=function(e){this.csvCreator.exportDataAsCsv(e)},e.prototype.getDataAsExcel=function(e){return this.excelCreator||console.warn("ag-Grid: Excel export is only available in ag-Grid Enterprise"),this.excelCreator.getDataAsExcelXml(e)},e.prototype.exportDataAsExcel=function(e){this.excelCreator||console.warn("ag-Grid: Excel export is only available in ag-Grid Enterprise"),this.excelCreator.exportDataAsExcel(e)},e.prototype.setEnterpriseDatasource=function(e){console.warn("ag-grid: since version 18.x, api.setEnterpriseDatasource() should be replaced with api.setServerSideDatasource()"),this.setServerSideDatasource(e)},e.prototype.setServerSideDatasource=function(e){this.gridOptionsWrapper.isRowModelServerSide()?this.rowModel.setDatasource(e):console.warn("ag-Grid: you can only use an enterprise datasource when gridOptions.rowModelType is '"+h.Constants.ROW_MODEL_TYPE_SERVER_SIDE+"'")},e.prototype.setDatasource=function(e){this.gridOptionsWrapper.isRowModelInfinite()?this.rowModel.setDatasource(e):console.warn("ag-Grid: you can only use a datasource when gridOptions.rowModelType is '"+h.Constants.ROW_MODEL_TYPE_INFINITE+"'")},e.prototype.setViewportDatasource=function(e){this.gridOptionsWrapper.isRowModelViewport()?this.rowModel.setViewportDatasource(e):console.warn("ag-Grid: you can only use a viewport datasource when gridOptions.rowModelType is '"+h.Constants.ROW_MODEL_TYPE_VIEWPORT+"'")},e.prototype.setRowData=function(e){if(this.gridOptionsWrapper.isRowModelDefault())if(this.gridOptionsWrapper.isDeltaRowDataMode()){var t=this.immutableService.createTransactionForRowData(e),o=t[0],n=t[1];this.clientSideRowModel.updateRowData(o,n),this.rowRenderer.refreshFullWidthRows()}else this.selectionController.reset(),this.clientSideRowModel.setRowData(e);else console.warn("cannot call setRowData unless using normal row model")},e.prototype.setFloatingTopRowData=function(e){console.warn("ag-Grid: since v12, api.setFloatingTopRowData() is now api.setPinnedTopRowData()"),this.setPinnedTopRowData(e)},e.prototype.setFloatingBottomRowData=function(e){console.warn("ag-Grid: since v12, api.setFloatingBottomRowData() is now api.setPinnedBottomRowData()"),this.setPinnedBottomRowData(e)},e.prototype.getFloatingTopRowCount=function(){return console.warn("ag-Grid: since v12, api.getFloatingTopRowCount() is now api.getPinnedTopRowCount()"),this.getPinnedTopRowCount()},e.prototype.getFloatingBottomRowCount=function(){return console.warn("ag-Grid: since v12, api.getFloatingBottomRowCount() is now api.getPinnedBottomRowCount()"),this.getPinnedBottomRowCount()},e.prototype.getFloatingTopRow=function(e){return console.warn("ag-Grid: since v12, api.getFloatingTopRow() is now api.getPinnedTopRow()"),this.getPinnedTopRow(e)},e.prototype.getFloatingBottomRow=function(e){return console.warn("ag-Grid: since v12, api.getFloatingBottomRow() is now api.getPinnedBottomRow()"),this.getPinnedBottomRow(e)},e.prototype.setPinnedTopRowData=function(e){this.pinnedRowModel.setPinnedTopRowData(e)},e.prototype.setPinnedBottomRowData=function(e){this.pinnedRowModel.setPinnedBottomRowData(e)},e.prototype.getPinnedTopRowCount=function(){return this.pinnedRowModel.getPinnedTopRowCount()},e.prototype.getPinnedBottomRowCount=function(){return this.pinnedRowModel.getPinnedBottomRowCount()},e.prototype.getPinnedTopRow=function(e){return this.pinnedRowModel.getPinnedTopRow(e)},e.prototype.getPinnedBottomRow=function(e){return this.pinnedRowModel.getPinnedBottomRow(e)},e.prototype.setColumnDefs=function(e,t){void 0===t&&(t="api"),this.columnController.setColumnDefs(e,t)},e.prototype.expireValueCache=function(){this.valueCache.expire()},e.prototype.getVerticalPixelRange=function(){return this.gridPanel.getVScrollPosition()},e.prototype.getHorizontalPixelRange=function(){return this.gridPanel.getHScrollPosition()},e.prototype.setAlwaysShowVerticalScroll=function(e){this.gridOptionsWrapper.setProperty("alwaysShowVerticalScroll",e)},e.prototype.refreshToolPanel=function(){this.gridCore.refreshSideBar()},e.prototype.refreshCells=function(e){void 0===e&&(e={}),Array.isArray(e)?console.warn("since ag-Grid v11.1, refreshCells() now takes parameters, please see the documentation."):this.rowRenderer.refreshCells(e)},e.prototype.flashCells=function(e){void 0===e&&(e={}),this.rowRenderer.flashCells(e)},e.prototype.redrawRows=function(e){void 0===e&&(e={}),e&&e.rowNodes?this.rowRenderer.redrawRows(e.rowNodes):this.rowRenderer.redrawAfterModelUpdate()},e.prototype.timeFullRedraw=function(e){void 0===e&&(e=1);var t=0,o=0,n=0,r=this;!function i(){var s=(new Date).getTime();r.rowRenderer.redrawAfterModelUpdate();var a=(new Date).getTime();window.setTimeout((function(){var r=(new Date).getTime(),l=a-s,p=r-a;console.log("duration: processing = "+l+"ms, reflow = "+p+"ms"),t++,o+=l,n+=p,t<e?window.setTimeout(i,1e3):(console.log("tests complete. iteration count = "+t),console.log("average processing = "+o/t+"ms"),console.log("average reflow = "+n/t+"ms"))}),0)}()},e.prototype.refreshView=function(){console.warn("ag-Grid: since v11.1, refreshView() is deprecated, please call refreshCells() or redrawRows() instead"),this.redrawRows()},e.prototype.refreshRows=function(e){console.warn("since ag-Grid v11.1, refreshRows() is deprecated, please use refreshCells({rowNodes: rows}) or redrawRows({rowNodes: rows}) instead"),this.refreshCells({rowNodes:e})},e.prototype.rowDataChanged=function(e){console.warn("ag-Grid: rowDataChanged is deprecated, either call refreshView() to refresh everything, or call rowNode.setRowData(newData) to set value on a particular node"),this.redrawRows()},e.prototype.softRefreshView=function(){console.error("ag-Grid: since v16, softRefreshView() is no longer supported. Please check the documentation on how to refresh.")},e.prototype.refreshGroupRows=function(){console.warn("ag-Grid: since v11.1, refreshGroupRows() is no longer supported, call refreshCells() instead. Because refreshCells() now does dirty checking, it will only refresh cells that have changed, so it should not be necessary to only refresh the group rows."),this.refreshCells()},e.prototype.setFunctionsReadOnly=function(e){this.gridOptionsWrapper.setProperty("functionsReadOnly",e)},e.prototype.refreshHeader=function(){this.headerRootComp.refreshHeader(),this.gridPanel.setHeaderAndFloatingHeights()},e.prototype.isAnyFilterPresent=function(){return this.filterManager.isAnyFilterPresent()},e.prototype.isAdvancedFilterPresent=function(){return console.warn("ag-Grid: isAdvancedFilterPresent() is deprecated, please use isColumnFilterPresent()"),this.isColumnFilterPresent()},e.prototype.isColumnFilterPresent=function(){return this.filterManager.isAdvancedFilterPresent()},e.prototype.isQuickFilterPresent=function(){return this.filterManager.isQuickFilterPresent()},e.prototype.getModel=function(){return this.rowModel},e.prototype.onGroupExpandedOrCollapsed=function(e){S._.missing(this.clientSideRowModel)&&console.warn("ag-Grid: cannot call onGroupExpandedOrCollapsed unless using normal row model"),S._.exists(e)&&console.warn("ag-Grid: api.onGroupExpandedOrCollapsed - refreshFromIndex parameter is no longer used, the grid will refresh all rows"),this.clientSideRowModel.refreshModel({step:h.Constants.STEP_MAP})},e.prototype.refreshInMemoryRowModel=function(e){console.warn("ag-grid: since version 18.x, api.refreshInMemoryRowModel() should be replaced with api.refreshClientSideRowModel()"),this.refreshClientSideRowModel(e)},e.prototype.refreshClientSideRowModel=function(e){S._.missing(this.clientSideRowModel)&&console.warn("cannot call refreshClientSideRowModel unless using normal row model");var t=h.Constants.STEP_EVERYTHING,o={group:h.Constants.STEP_EVERYTHING,filter:h.Constants.STEP_FILTER,map:h.Constants.STEP_MAP,aggregate:h.Constants.STEP_AGGREGATE,sort:h.Constants.STEP_SORT,pivot:h.Constants.STEP_PIVOT};if(S._.exists(e)&&(t=o[e]),S._.missing(t))console.error("ag-Grid: invalid step "+e+", available steps are "+Object.keys(o).join(", "));else{var n={step:t,keepRenderedRows:!0,animate:!0,keepEditingRows:!0};this.clientSideRowModel.refreshModel(n)}},e.prototype.isAnimationFrameQueueEmpty=function(){return this.animationFrameService.isQueueEmpty()},e.prototype.getRowNode=function(e){return this.rowModel.getRowNode(e)},e.prototype.expandAll=function(){S._.missing(this.clientSideRowModel)?console.warn("ag-Grid: cannot call expandAll unless using normal row model"):this.clientSideRowModel.expandOrCollapseAll(!0)},e.prototype.collapseAll=function(){S._.missing(this.clientSideRowModel)?console.warn("ag-Grid: cannot call collapseAll unless using normal row model"):this.clientSideRowModel.expandOrCollapseAll(!1)},e.prototype.addVirtualRowListener=function(e,t,o){"string"!=typeof e&&console.warn("ag-Grid: addVirtualRowListener is deprecated, please use addRenderedRowListener."),this.addRenderedRowListener(e,t,o)},e.prototype.addRenderedRowListener=function(e,t,o){"virtualRowSelected"===e&&console.warn("ag-Grid: event virtualRowSelected is deprecated, to register for individual row\n selection events, add a listener directly to the row node."),this.rowRenderer.addRenderedRowListener(e,t,o)},e.prototype.setQuickFilter=function(e){this.filterManager.setQuickFilter(e)},e.prototype.selectIndex=function(e,t,o){console.warn("ag-Grid: do not use api for selection, call node.setSelected(value) instead"),o&&console.warn("ag-Grid: suppressEvents is no longer supported, stop listening for the event if you no longer want it"),this.selectionController.selectIndex(e,t)},e.prototype.deselectIndex=function(e,t){void 0===t&&(t=!1),console.warn("ag-Grid: do not use api for selection, call node.setSelected(value) instead"),t&&console.warn("ag-Grid: suppressEvents is no longer supported, stop listening for the event if you no longer want it"),this.selectionController.deselectIndex(e)},e.prototype.selectNode=function(e,t,o){void 0===t&&(t=!1),void 0===o&&(o=!1),console.warn("ag-Grid: API for selection is deprecated, call node.setSelected(value) instead"),o&&console.warn("ag-Grid: suppressEvents is no longer supported, stop listening for the event if you no longer want it"),e.setSelectedParams({newValue:!0,clearSelection:!t})},e.prototype.deselectNode=function(e,t){void 0===t&&(t=!1),console.warn("ag-Grid: API for selection is deprecated, call node.setSelected(value) instead"),t&&console.warn("ag-Grid: suppressEvents is no longer supported, stop listening for the event if you no longer want it"),e.setSelectedParams({newValue:!1})},e.prototype.selectAll=function(){this.selectionController.selectAllRowNodes()},e.prototype.deselectAll=function(){this.selectionController.deselectAllRowNodes()},e.prototype.selectAllFiltered=function(){this.selectionController.selectAllRowNodes(!0)},e.prototype.deselectAllFiltered=function(){this.selectionController.deselectAllRowNodes(!0)},e.prototype.recomputeAggregates=function(){S._.missing(this.clientSideRowModel)&&console.warn("cannot call recomputeAggregates unless using normal row model"),console.warn("recomputeAggregates is deprecated, please call api.refreshClientSideRowModel('aggregate') instead"),this.clientSideRowModel.refreshModel({step:h.Constants.STEP_AGGREGATE})},e.prototype.sizeColumnsToFit=function(){this.gridPanel.sizeColumnsToFit()},e.prototype.showLoadingOverlay=function(){this.gridPanel.showLoadingOverlay()},e.prototype.showNoRowsOverlay=function(){this.gridPanel.showNoRowsOverlay()},e.prototype.hideOverlay=function(){this.gridPanel.hideOverlay()},e.prototype.isNodeSelected=function(e){return console.warn("ag-Grid: no need to call api.isNodeSelected(), just call node.isSelected() instead"),e.isSelected()},e.prototype.getSelectedNodesById=function(){return console.error("ag-Grid: since version 3.4, getSelectedNodesById no longer exists, use getSelectedNodes() instead"),null},e.prototype.getSelectedNodes=function(){return this.selectionController.getSelectedNodes()},e.prototype.getSelectedRows=function(){return this.selectionController.getSelectedRows()},e.prototype.getBestCostNodeSelection=function(){return this.selectionController.getBestCostNodeSelection()},e.prototype.getRenderedNodes=function(){return this.rowRenderer.getRenderedNodes()},e.prototype.ensureColIndexVisible=function(e){console.warn("ag-Grid: ensureColIndexVisible(index) no longer supported, use ensureColumnVisible(colKey) instead.")},e.prototype.ensureColumnVisible=function(e){this.gridPanel.ensureColumnVisible(e)},e.prototype.ensureIndexVisible=function(e,t){this.gridPanel.ensureIndexVisible(e,t)},e.prototype.ensureNodeVisible=function(e,t){this.gridCore.ensureNodeVisible(e,t)},e.prototype.forEachLeafNode=function(e){S._.missing(this.clientSideRowModel)&&console.warn("cannot call forEachNode unless using normal row model"),this.clientSideRowModel.forEachLeafNode(e)},e.prototype.forEachNode=function(e){this.rowModel.forEachNode(e)},e.prototype.forEachNodeAfterFilter=function(e){S._.missing(this.clientSideRowModel)&&console.warn("cannot call forEachNodeAfterFilter unless using normal row model"),this.clientSideRowModel.forEachNodeAfterFilter(e)},e.prototype.forEachNodeAfterFilterAndSort=function(e){S._.missing(this.clientSideRowModel)&&console.warn("cannot call forEachNodeAfterFilterAndSort unless using normal row model"),this.clientSideRowModel.forEachNodeAfterFilterAndSort(e)},e.prototype.getFilterApiForColDef=function(e){return console.warn("ag-grid API method getFilterApiForColDef deprecated, use getFilterApi instead"),this.getFilterInstance(e)},e.prototype.getFilterInstance=function(e){var t=this.columnController.getPrimaryColumn(e);if(t)return this.filterManager.getFilterComponent(t,"NO_UI").resolveNow(null,(function(e){return e}))},e.prototype.getFilterApi=function(e){return console.warn("ag-Grid: getFilterApi is deprecated, use getFilterInstance instead"),this.getFilterInstance(e)},e.prototype.destroyFilter=function(e){var t=this.columnController.getPrimaryColumn(e);if(t)return this.filterManager.destroyFilter(t,"filterDestroyed")},e.prototype.getStatusPanel=function(e){if(this.statusBarService)return this.statusBarService.getStatusPanel(e)},e.prototype.getColumnDef=function(e){var t=this.columnController.getPrimaryColumn(e);return t?t.getColDef():null},e.prototype.onFilterChanged=function(){this.filterManager.onFilterChanged()},e.prototype.onSortChanged=function(){this.sortController.onSortChanged()},e.prototype.setSortModel=function(e,t){void 0===t&&(t="api"),this.sortController.setSortModel(e,t)},e.prototype.getSortModel=function(){return this.sortController.getSortModel()},e.prototype.setFilterModel=function(e){this.filterManager.setFilterModel(e)},e.prototype.getFilterModel=function(){return this.filterManager.getFilterModel()},e.prototype.getFocusedCell=function(){return this.focusedCellController.getFocusedCell()},e.prototype.clearFocusedCell=function(){return this.focusedCellController.clearFocusedCell()},e.prototype.setFocusedCell=function(e,t,o){this.focusedCellController.setFocusedCell(e,t,o,!0)},e.prototype.setSuppressRowDrag=function(e){this.gridOptionsWrapper.setProperty(u.GridOptionsWrapper.PROP_SUPPRESS_ROW_DRAG,e)},e.prototype.setHeaderHeight=function(e){this.gridOptionsWrapper.setProperty(u.GridOptionsWrapper.PROP_HEADER_HEIGHT,e),this.doLayout()},e.prototype.setGridAutoHeight=function(e){console.warn("api.setGridAutoHeight(boolean) is deprecated, please use api.setDomLayout() instead"),this.setDomLayout(e?"autoHeight":"normal")},e.prototype.setDomLayout=function(e){this.gridOptionsWrapper.setProperty(u.GridOptionsWrapper.PROP_DOM_LAYOUT,e)},e.prototype.setEnableCellTextSelection=function(e){this.gridPanel.setCellTextSelection(e)},e.prototype.setGroupHeaderHeight=function(e){this.gridOptionsWrapper.setProperty(u.GridOptionsWrapper.PROP_GROUP_HEADER_HEIGHT,e),this.doLayout()},e.prototype.setFloatingFiltersHeight=function(e){this.gridOptionsWrapper.setProperty(u.GridOptionsWrapper.PROP_FLOATING_FILTERS_HEIGHT,e),this.doLayout()},e.prototype.setPivotGroupHeaderHeight=function(e){this.gridOptionsWrapper.setProperty(u.GridOptionsWrapper.PROP_PIVOT_GROUP_HEADER_HEIGHT,e),this.doLayout()},e.prototype.setPivotHeaderHeight=function(e){this.gridOptionsWrapper.setProperty(u.GridOptionsWrapper.PROP_PIVOT_HEADER_HEIGHT,e),this.doLayout()},e.prototype.isSideBarVisible=function(){return this.gridCore.isSideBarVisible()},e.prototype.setSideBarVisible=function(e){this.gridCore.setSideBarVisible(e)},e.prototype.showToolPanel=function(e){console.warn("ag-grid: from v19 api.showToolPanel has been deprecated in favour of api.setSideBarVisible"),this.setSideBarVisible(e)},e.prototype.openToolPanel=function(e){this.gridCore.openToolPanel(e)},e.prototype.closeToolPanel=function(){this.gridCore.closeToolPanel()},e.prototype.getOpenedToolPanel=function(){return this.gridCore.getOpenedToolPanel()},e.prototype.getSideBar=function(){return this.gridCore.getSideBar()},e.prototype.setSideBar=function(e){return this.gridCore.setSideBar(e)},e.prototype.setSuppressClipboardPaste=function(e){this.gridOptionsWrapper.setProperty(u.GridOptionsWrapper.PROP_SUPPRESS_CLIPBOARD_PASTE,e)},e.prototype.isToolPanelShowing=function(){return this.gridCore.isToolPanelShowing()},e.prototype.doLayout=function(){this.gridPanel.checkViewportAndScrolls()},e.prototype.resetRowHeights=function(){S._.exists(this.clientSideRowModel)&&this.clientSideRowModel.resetRowHeights()},e.prototype.setGroupRemoveSingleChildren=function(e){this.gridOptionsWrapper.setProperty(u.GridOptionsWrapper.PROP_GROUP_REMOVE_SINGLE_CHILDREN,e)},e.prototype.setGroupRemoveLowestSingleChildren=function(e){this.gridOptionsWrapper.setProperty(u.GridOptionsWrapper.PROP_GROUP_REMOVE_LOWEST_SINGLE_CHILDREN,e)},e.prototype.onRowHeightChanged=function(){S._.exists(this.clientSideRowModel)&&this.clientSideRowModel.onRowHeightChanged()},e.prototype.getValue=function(e,t){var o=this.columnController.getPrimaryColumn(e);return S._.missing(o)&&(o=this.columnController.getGridColumn(e)),S._.missing(o)?null:this.valueService.getValue(o,t)},e.prototype.addEventListener=function(e,t){var o=this.gridOptionsWrapper.useAsyncEvents();this.eventService.addEventListener(e,t,o)},e.prototype.addGlobalListener=function(e){var t=this.gridOptionsWrapper.useAsyncEvents();this.eventService.addGlobalListener(e,t)},e.prototype.removeEventListener=function(e,t){var o=this.gridOptionsWrapper.useAsyncEvents();this.eventService.removeEventListener(e,t,o)},e.prototype.removeGlobalListener=function(e){var t=this.gridOptionsWrapper.useAsyncEvents();this.eventService.removeGlobalListener(e,t)},e.prototype.dispatchEvent=function(e){this.eventService.dispatchEvent(e)},e.prototype.destroy=function(){this.gridCore.destroy(),this.context.destroy()},e.prototype.resetQuickFilter=function(){this.rowModel.forEachNode((function(e){return e.quickFilterAggregateText=null}))},e.prototype.getRangeSelections=function(){return this.rangeController?this.rangeController.getCellRanges():(console.warn("ag-Grid: cell range selection is only available in ag-Grid Enterprise"),null)},e.prototype.camelCaseToHumanReadable=function(e){return S._.camelCaseToHumanText(e)},e.prototype.addRangeSelection=function(e){this.rangeController||console.warn("ag-Grid: cell range selection is only available in ag-Grid Enterprise"),this.rangeController.addRange(e)},e.prototype.clearRangeSelection=function(){this.rangeController||console.warn("ag-Grid: cell range selection is only available in ag-Grid Enterprise"),this.rangeController.clearSelection()},e.prototype.copySelectedRowsToClipboard=function(e,t){this.clipboardService||console.warn("ag-Grid: clipboard is only available in ag-Grid Enterprise"),this.clipboardService.copySelectedRowsToClipboard(e,t)},e.prototype.copySelectedRangeToClipboard=function(e){this.clipboardService||console.warn("ag-Grid: clipboard is only available in ag-Grid Enterprise"),this.clipboardService.copySelectedRangeToClipboard(e)},e.prototype.copySelectedRangeDown=function(){this.clipboardService||console.warn("ag-Grid: clipboard is only available in ag-Grid Enterprise"),this.clipboardService.copyRangeDown()},e.prototype.showColumnMenuAfterButtonClick=function(e,t){var o=this.columnController.getPrimaryColumn(e);this.menuFactory.showMenuAfterButtonClick(o,t)},e.prototype.showColumnMenuAfterMouseClick=function(e,t){var o=this.columnController.getPrimaryColumn(e);this.menuFactory.showMenuAfterMouseEvent(o,t)},e.prototype.hidePopupMenu=function(){this.contextMenuFactory&&this.contextMenuFactory.hideActiveMenu(),this.menuFactory.hideActiveMenu()},e.prototype.setPopupParent=function(e){this.gridOptionsWrapper.setProperty(u.GridOptionsWrapper.PROP_POPUP_PARENT,e)},e.prototype.tabToNextCell=function(){return this.rowRenderer.tabToNextCell(!1)},e.prototype.tabToPreviousCell=function(){return this.rowRenderer.tabToNextCell(!0)},e.prototype.getCellRendererInstances=function(e){return void 0===e&&(e={}),this.rowRenderer.getCellRendererInstances(e)},e.prototype.getCellEditorInstances=function(e){return void 0===e&&(e={}),this.rowRenderer.getCellEditorInstances(e)},e.prototype.getEditingCells=function(){return this.rowRenderer.getEditingCells()},e.prototype.stopEditing=function(e){void 0===e&&(e=!1),this.rowRenderer.stopEditing(e)},e.prototype.startEditingCell=function(e){var t=this.columnController.getGridColumn(e.colKey);if(t){var o={rowIndex:e.rowIndex,floating:e.rowPinned,column:t},n=new y.GridCell(o);S._.missing(e.rowPinned)&&this.gridPanel.ensureIndexVisible(e.rowIndex),this.rowRenderer.startEditingCell(n,e.keyPress,e.charPress)}else console.warn("ag-Grid: no column found for "+e.colKey)},e.prototype.addAggFunc=function(e,t){this.aggFuncService&&this.aggFuncService.addAggFunc(e,t)},e.prototype.addAggFuncs=function(e){this.aggFuncService&&this.aggFuncService.addAggFuncs(e)},e.prototype.clearAggFuncs=function(){this.aggFuncService&&this.aggFuncService.clear()},e.prototype.updateRowData=function(e){var t=null;return this.clientSideRowModel?t=this.clientSideRowModel.updateRowData(e):this.infinitePageRowModel?this.infinitePageRowModel.updateRowData(e):console.error("ag-Grid: updateRowData() only works with ClientSideRowModel and InfiniteRowModel."),this.rowRenderer.refreshFullWidthRows(),this.gridOptionsWrapper.isSuppressChangeDetection()||this.rowRenderer.refreshCells(),t},e.prototype.batchUpdateRowData=function(e,t){this.clientSideRowModel?this.clientSideRowModel.batchUpdateRowData(e,t):console.error("ag-Grid: api.batchUpdateRowData() only works with ClientSideRowModel.")},e.prototype.insertItemsAtIndex=function(e,t,o){void 0===o&&(o=!1),console.warn("ag-Grid: insertItemsAtIndex() is deprecated, use updateRowData(transaction) instead."),this.updateRowData({add:t,addIndex:e,update:null,remove:null})},e.prototype.removeItems=function(e,t){void 0===t&&(t=!1),console.warn("ag-Grid: removeItems() is deprecated, use updateRowData(transaction) instead.");var o=e.map((function(e){return e.data}));this.updateRowData({add:null,addIndex:null,update:null,remove:o})},e.prototype.addItems=function(e,t){void 0===t&&(t=!1),console.warn("ag-Grid: addItems() is deprecated, use updateRowData(transaction) instead."),this.updateRowData({add:e,addIndex:null,update:null,remove:null})},e.prototype.refreshVirtualPageCache=function(){console.warn("ag-Grid: refreshVirtualPageCache() is now called refreshInfiniteCache(), please call refreshInfiniteCache() instead"),this.refreshInfiniteCache()},e.prototype.refreshInfinitePageCache=function(){console.warn("ag-Grid: refreshInfinitePageCache() is now called refreshInfiniteCache(), please call refreshInfiniteCache() instead"),this.refreshInfiniteCache()},e.prototype.refreshInfiniteCache=function(){this.infinitePageRowModel?this.infinitePageRowModel.refreshCache():console.warn("ag-Grid: api.refreshInfiniteCache is only available when rowModelType='infinite'.")},e.prototype.purgeVirtualPageCache=function(){console.warn("ag-Grid: purgeVirtualPageCache() is now called purgeInfiniteCache(), please call purgeInfiniteCache() instead"),this.purgeInfinitePageCache()},e.prototype.purgeInfinitePageCache=function(){console.warn("ag-Grid: purgeInfinitePageCache() is now called purgeInfiniteCache(), please call purgeInfiniteCache() instead"),this.purgeInfiniteCache()},e.prototype.purgeInfiniteCache=function(){this.infinitePageRowModel?this.infinitePageRowModel.purgeCache():console.warn("ag-Grid: api.purgeInfiniteCache is only available when rowModelType='infinite'.")},e.prototype.purgeEnterpriseCache=function(e){console.warn("ag-grid: since version 18.x, api.purgeEnterpriseCache() should be replaced with api.purgeServerSideCache()"),this.purgeServerSideCache(e)},e.prototype.purgeServerSideCache=function(e){this.serverSideRowModel?this.serverSideRowModel.purgeCache(e):console.warn("ag-Grid: api.purgeServerSideCache is only available when rowModelType='enterprise'.")},e.prototype.getVirtualRowCount=function(){return console.warn("ag-Grid: getVirtualRowCount() is now called getInfiniteRowCount(), please call getInfiniteRowCount() instead"),this.getInfiniteRowCount()},e.prototype.getInfiniteRowCount=function(){if(this.infinitePageRowModel)return this.infinitePageRowModel.getVirtualRowCount();console.warn("ag-Grid: api.getVirtualRowCount is only available when rowModelType='virtual'.")},e.prototype.isMaxRowFound=function(){if(this.infinitePageRowModel)return this.infinitePageRowModel.isMaxRowFound();console.warn("ag-Grid: api.isMaxRowFound is only available when rowModelType='virtual'.")},e.prototype.setVirtualRowCount=function(e,t){console.warn("ag-Grid: setVirtualRowCount() is now called setInfiniteRowCount(), please call setInfiniteRowCount() instead"),this.setInfiniteRowCount(e,t)},e.prototype.setInfiniteRowCount=function(e,t){this.infinitePageRowModel?this.infinitePageRowModel.setVirtualRowCount(e,t):console.warn("ag-Grid: api.setVirtualRowCount is only available when rowModelType='virtual'.")},e.prototype.getVirtualPageState=function(){return console.warn("ag-Grid: getVirtualPageState() is now called getCacheBlockState(), please call getCacheBlockState() instead"),this.getCacheBlockState()},e.prototype.getInfinitePageState=function(){return console.warn("ag-Grid: getInfinitePageState() is now called getCacheBlockState(), please call getCacheBlockState() instead"),this.getCacheBlockState()},e.prototype.getCacheBlockState=function(){return this.infinitePageRowModel?this.infinitePageRowModel.getBlockState():this.serverSideRowModel?this.serverSideRowModel.getBlockState():void console.warn("ag-Grid: api.getCacheBlockState() is only available when rowModelType='infinite' or rowModelType='serverSide'.")},e.prototype.checkGridSize=function(){this.gridPanel.setHeaderAndFloatingHeights()},e.prototype.getFirstRenderedRow=function(){return console.warn("in ag-Grid v12, getFirstRenderedRow() was renamed to getFirstDisplayedRow()"),this.getFirstDisplayedRow()},e.prototype.getFirstDisplayedRow=function(){return this.rowRenderer.getFirstVirtualRenderedRow()},e.prototype.getLastRenderedRow=function(){return console.warn("in ag-Grid v12, getLastRenderedRow() was renamed to getLastDisplayedRow()"),this.getLastDisplayedRow()},e.prototype.getLastDisplayedRow=function(){return this.rowRenderer.getLastVirtualRenderedRow()},e.prototype.getDisplayedRowAtIndex=function(e){return this.rowModel.getRow(e)},e.prototype.getDisplayedRowCount=function(){return this.rowModel.getRowCount()},e.prototype.paginationIsLastPageFound=function(){return this.paginationProxy.isLastPageFound()},e.prototype.paginationGetPageSize=function(){return this.paginationProxy.getPageSize()},e.prototype.paginationSetPageSize=function(e){this.gridOptionsWrapper.setProperty("paginationPageSize",e)},e.prototype.paginationGetCurrentPage=function(){return this.paginationProxy.getCurrentPage()},e.prototype.paginationGetTotalPages=function(){return this.paginationProxy.getTotalPages()},e.prototype.paginationGetRowCount=function(){return this.paginationProxy.getTotalRowCount()},e.prototype.paginationGoToNextPage=function(){this.paginationProxy.goToNextPage()},e.prototype.paginationGoToPreviousPage=function(){this.paginationProxy.goToPreviousPage()},e.prototype.paginationGoToFirstPage=function(){this.paginationProxy.goToFirstPage()},e.prototype.paginationGoToLastPage=function(){this.paginationProxy.goToLastPage()},e.prototype.paginationGoToPage=function(e){this.paginationProxy.goToPage(e)},n([f.Autowired("immutableService"),r("design:type",w.ImmutableService)],e.prototype,"immutableService",void 0),n([f.Autowired("csvCreator"),r("design:type",i.CsvCreator)],e.prototype,"csvCreator",void 0),n([f.Optional("excelCreator"),r("design:type",Object)],e.prototype,"excelCreator",void 0),n([f.Autowired("rowRenderer"),r("design:type",s.RowRenderer)],e.prototype,"rowRenderer",void 0),n([f.Autowired("filterManager"),r("design:type",a.FilterManager)],e.prototype,"filterManager",void 0),n([f.Autowired("columnController"),r("design:type",l.ColumnController)],e.prototype,"columnController",void 0),n([f.Autowired("selectionController"),r("design:type",p.SelectionController)],e.prototype,"selectionController",void 0),n([f.Autowired("gridOptionsWrapper"),r("design:type",u.GridOptionsWrapper)],e.prototype,"gridOptionsWrapper",void 0),n([f.Autowired("valueService"),r("design:type",c.ValueService)],e.prototype,"valueService",void 0),n([f.Autowired("alignedGridsService"),r("design:type",E.AlignedGridsService)],e.prototype,"alignedGridsService",void 0),n([f.Autowired("eventService"),r("design:type",d.EventService)],e.prototype,"eventService",void 0),n([f.Autowired("pinnedRowModel"),r("design:type",b.PinnedRowModel)],e.prototype,"pinnedRowModel",void 0),n([f.Autowired("context"),r("design:type",f.Context)],e.prototype,"context",void 0),n([f.Autowired("rowModel"),r("design:type",Object)],e.prototype,"rowModel",void 0),n([f.Autowired("sortController"),r("design:type",g.SortController)],e.prototype,"sortController",void 0),n([f.Autowired("paginationProxy"),r("design:type",C.PaginationProxy)],e.prototype,"paginationProxy",void 0),n([f.Autowired("focusedCellController"),r("design:type",m.FocusedCellController)],e.prototype,"focusedCellController",void 0),n([f.Optional("rangeController"),r("design:type",Object)],e.prototype,"rangeController",void 0),n([f.Optional("clipboardService"),r("design:type",Object)],e.prototype,"clipboardService",void 0),n([f.Optional("aggFuncService"),r("design:type",Object)],e.prototype,"aggFuncService",void 0),n([f.Autowired("menuFactory"),r("design:type",Object)],e.prototype,"menuFactory",void 0),n([f.Optional("contextMenuFactory"),r("design:type",Object)],e.prototype,"contextMenuFactory",void 0),n([f.Autowired("cellRendererFactory"),r("design:type",v.CellRendererFactory)],e.prototype,"cellRendererFactory",void 0),n([f.Autowired("valueCache"),r("design:type",_.ValueCache)],e.prototype,"valueCache",void 0),n([f.Optional("sideBarComp"),r("design:type",Object)],e.prototype,"sideBarComp",void 0),n([f.Autowired("animationFrameService"),r("design:type",R.AnimationFrameService)],e.prototype,"animationFrameService",void 0),n([f.Optional("statusBarService"),r("design:type",Object)],e.prototype,"statusBarService",void 0),n([f.PostConstruct,r("design:type",Function),r("design:paramtypes",[]),r("design:returntype",void 0)],e.prototype,"init",null),n([f.Bean("gridApi")],e)}();t.GridApi=O},33018:(e,t,o)=>{Object.defineProperty(t,"__esModule",{value:!0});var n=o(64339);t.Events=n.Events},33669:function(e,t,o){var n=this&&this.__decorate||function(e,t,o,n){var r,i=arguments.length,s=i<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,n);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,o,s):r(t,o))||s);return i>3&&s&&Object.defineProperty(t,o,s),s},r=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0});var i=o(47304),s=o(99162),a=o(59804),l=o(43510),p=function(){function e(){this.destroyFunctions=[],this.destroyed=!1}return e.prototype.getContext=function(){return this.context},e.prototype.destroy=function(){this.destroyFunctions.forEach((function(e){return e()})),this.destroyFunctions.length=0,this.destroyed=!0,this.dispatchEvent({type:e.EVENT_DESTROYED})},e.prototype.addEventListener=function(e,t){this.localEventService||(this.localEventService=new i.EventService),this.localEventService.addEventListener(e,t)},e.prototype.removeEventListener=function(e,t){this.localEventService&&this.localEventService.removeEventListener(e,t)},e.prototype.dispatchEventAsync=function(e){var t=this;window.setTimeout((function(){return t.dispatchEvent(e)}),0)},e.prototype.dispatchEvent=function(e){this.localEventService&&this.localEventService.dispatchEvent(e)},e.prototype.addDestroyableEventListener=function(e,t,o,n){this.destroyed||(e instanceof HTMLElement?l._.addSafePassiveEventListener(e,t,o,n):(e instanceof Window||s.GridOptionsWrapper,e.addEventListener(t,o)),this.destroyFunctions.push((function(){e instanceof HTMLElement||e instanceof Window||s.GridOptionsWrapper,e.removeEventListener(t,o)})))},e.prototype.isAlive=function(){return!this.destroyed},e.prototype.addDestroyFunc=function(e){this.isAlive()?this.destroyFunctions.push(e):e()},e.EVENT_DESTROYED="destroyed",n([a.Autowired("context"),r("design:type",a.Context)],e.prototype,"context",void 0),n([a.PreDestroy,r("design:type",Function),r("design:paramtypes",[]),r("design:returntype",void 0)],e.prototype,"destroy",null),e}();t.BeanStub=p},33680:function(e,t,o){var n,r=this&&this.__extends||(n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])},n(e,t)},function(e,t){function o(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(o.prototype=t.prototype,new o)}),i=this&&this.__decorate||function(e,t,o,n){var r,i=arguments.length,s=i<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,n);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,o,s):r(t,o))||s);return i>3&&s&&Object.defineProperty(t,o,s),s},s=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0});var a=o(28348),l=o(44494),p=o(59804),u=o(99162),c=o(61164),d=o(43510),h=function(e){function t(){var t=e.call(this,'<div class="ag-cell-edit-input"><select class="ag-cell-edit-input"/></div>')||this;return t.eSelect=t.getGui().querySelector("select"),t}return r(t,e),t.prototype.init=function(e){var t=this;this.focusAfterAttached=e.cellStartedEdit,d._.missing(e.values)?console.warn("ag-Grid: no values found for select cellEditor"):(e.values.forEach((function(o){var n=document.createElement("option");n.value=o;var r=t.valueFormatterService.formatValue(e.column,null,null,o),i=null!=r;n.text=i?r:o,e.value===o&&(n.selected=!0),t.eSelect.appendChild(n)})),this.gridOptionsWrapper.isFullRowEdit()||this.addDestroyableEventListener(this.eSelect,"change",(function(){return e.stopEditing()})),this.addDestroyableEventListener(this.eSelect,"keydown",(function(e){(e.keyCode===l.Constants.KEY_UP||e.keyCode===l.Constants.KEY_DOWN)&&e.stopPropagation()})),this.addDestroyableEventListener(this.eSelect,"mousedown",(function(e){e.stopPropagation()})))},t.prototype.afterGuiAttached=function(){this.focusAfterAttached&&this.eSelect.focus()},t.prototype.focusIn=function(){this.eSelect.focus()},t.prototype.getValue=function(){return this.eSelect.value},t.prototype.isPopup=function(){return!1},i([p.Autowired("gridOptionsWrapper"),s("design:type",u.GridOptionsWrapper)],t.prototype,"gridOptionsWrapper",void 0),i([p.Autowired("valueFormatterService"),s("design:type",c.ValueFormatterService)],t.prototype,"valueFormatterService",void 0),t}(a.PopupComponent);t.SelectCellEditor=h},33997:(e,t,o)=>{o.d(t,{$C:()=>P,$b:()=>G,Ds:()=>Ie,G1:()=>x,GU:()=>Oe,ID:()=>ye,N8:()=>be,R:()=>V,W:()=>R,WZ:()=>L,Z9:()=>m,ZZ:()=>Ee,_Z:()=>Re,ae:()=>Fe,cS:()=>S,cV:()=>xe,cb:()=>u,e1:()=>d,hK:()=>O,hd:()=>De,jN:()=>we,k5:()=>_e,m2:()=>p,mD:()=>Ce,nV:()=>b,n_:()=>y,o8:()=>Le,qs:()=>j,qx:()=>F,sl:()=>Ne,u1:()=>A,wA:()=>Te,x3:()=>W,z6:()=>Ae,zf:()=>T});var n=o(86637),r=o(9364),i=o(58750),s=o(33868),a=o(24730),l=o(15088).process;function p(...e){return e.reduce(((e,t)=>({...e,...null!=t?t:{}})),{})}async function u(e,t){if(null==e)return Promise.resolve();const o=null==t?void 0:t.abortSignal;return new Promise(((t,n)=>{if(null==o?void 0:o.aborted)return void n(c());const r=setTimeout((()=>{i(),t()}),e),i=()=>{clearTimeout(r),null==o||o.removeEventListener("abort",s)},s=()=>{i(),n(c())};null==o||o.addEventListener("abort",s)}))}function c(){return new DOMException("Delay was aborted","AbortError")}var d=class{constructor(){this.status={type:"pending"},this._resolve=void 0,this._reject=void 0}get promise(){return this._promise||(this._promise=new Promise(((e,t)=>{"resolved"===this.status.type?e(this.status.value):"rejected"===this.status.type&&t(this.status.error),this._resolve=e,this._reject=t}))),this._promise}resolve(e){var t;this.status={type:"resolved",value:e},this._promise&&(null==(t=this._resolve)||t.call(this,e))}reject(e){var t;this.status={type:"rejected",error:e},this._promise&&(null==(t=this._reject)||t.call(this,e))}isResolved(){return"resolved"===this.status.type}isRejected(){return"rejected"===this.status.type}isPending(){return"pending"===this.status.type}};function h(e){return Object.fromEntries([...e.headers])}var{btoa:f,atob:g}=globalThis;function m(e){const t=e.replace(/-/g,"+").replace(/_/g,"/"),o=g(t);return Uint8Array.from(o,(e=>e.codePointAt(0)))}function y(e){let t="";for(let o=0;o<e.length;o++)t+=String.fromCodePoint(e[o]);return f(t)}var v,C,w="AI_DownloadError",_=`vercel.ai.error.${w}`,E=Symbol.for(_),b=class extends(C=n.bD,v=E,C){constructor({url:e,statusCode:t,statusText:o,cause:n,message:r=(null==n?`Failed to download ${e}: ${t} ${o}`:`Failed to download ${e}: ${n}`)}){super({name:w,message:r,cause:n}),this[v]=!0,this.url=e,this.statusCode=t,this.statusText=o}static isInstance(e){return n.bD.hasMarker(e,_)}},R=2147483648;async function S({response:e,url:t,maxBytes:o=R}){const n=e.headers.get("content-length");if(null!=n){const e=parseInt(n,10);if(!isNaN(e)&&e>o)throw new b({url:t,message:`Download of ${t} exceeded maximum size of ${o} bytes (Content-Length: ${e}).`})}const r=e.body;if(null==r)return new Uint8Array(0);const i=r.getReader(),s=[];let a=0;try{for(;;){const{done:e,value:n}=await i.read();if(e)break;if(a+=n.length,a>o)throw new b({url:t,message:`Download of ${t} exceeded maximum size of ${o} bytes.`});s.push(n)}}finally{try{await i.cancel()}finally{i.releaseLock()}}const l=new Uint8Array(a);let p=0;for(const e of s)l.set(e,p),p+=e.length;return l}var O=({prefix:e,size:t=16,alphabet:o="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz",separator:r="-"}={})=>{const i=()=>{const e=o.length,n=new Array(t);for(let r=0;r<t;r++)n[r]=o[Math.random()*e|0];return n.join("")};if(null==e)return i;if(o.includes(r))throw new n.Di({argument:"separator",message:`The separator "${r}" must not be part of the alphabet "${o}".`});return()=>`${e}${r}${i()}`},P=O();function A(e){return null==e?"unknown error":"string"==typeof e?e:e instanceof Error?e.message:JSON.stringify(e)}function T(e){return(e instanceof Error||e instanceof DOMException)&&("AbortError"===e.name||"ResponseAborted"===e.name||"TimeoutError"===e.name)}var D=["fetch failed","failed to fetch"],N=["ConnectionRefused","ConnectionClosed","FailedToOpenSocket","ECONNRESET","ECONNREFUSED","ETIMEDOUT","EPIPE"];function I({error:e,url:t,requestBodyValues:o}){if(T(e))return e;if(e instanceof TypeError&&D.includes(e.message.toLowerCase())){const r=e.cause;if(null!=r)return new n.hL({message:`Cannot connect to API: ${r.message}`,cause:r,url:t,requestBodyValues:o,isRetryable:!0})}return function(e){if(!(e instanceof Error))return!1;const t=e.code;return!("string"!=typeof t||!N.includes(t))}(e)?new n.hL({message:`Cannot connect to API: ${e.message}`,cause:e,url:t,requestBodyValues:o,isRetryable:!0}):e}function x(e=globalThis){var t,o,n;return e.window?"runtime/browser":(null==(t=e.navigator)?void 0:t.userAgent)?`runtime/${e.navigator.userAgent.toLowerCase()}`:(null==(n=null==(o=e.process)?void 0:o.versions)?void 0:n.node)?`runtime/node.js/${e.process.version.substring(0)}`:e.EdgeRuntime?"runtime/vercel-edge":"runtime/unknown"}function F(e){if(null==e)return{};const t={};if(e instanceof Headers)e.forEach(((e,o)=>{t[o.toLowerCase()]=e}));else{Array.isArray(e)||(e=Object.entries(e));for(const[o,n]of e)null!=n&&(t[o.toLowerCase()]=n)}return t}function L(e,...t){const o=new Headers(F(e)),n=o.get("user-agent")||"";return o.set("user-agent",[n,...t].filter(Boolean).join(" ")),Object.fromEntries(o.entries())}var M="4.0.15",k=()=>globalThis.fetch,G=async({url:e,headers:t={},successfulResponseHandler:o,failedResponseHandler:r,abortSignal:i,fetch:s=k()})=>{try{const a=await s(e,{method:"GET",headers:L(t,`ai-sdk/provider-utils/${M}`,x()),signal:i}),l=h(a);if(!a.ok){let t;try{t=await r({response:a,url:e,requestBodyValues:{}})}catch(t){if(T(t)||n.hL.isInstance(t))throw t;throw new n.hL({message:"Failed to process error response",cause:t,statusCode:a.status,url:e,responseHeaders:l,requestBodyValues:{}})}throw t.value}try{return await o({response:a,url:e,requestBodyValues:{}})}catch(t){if(t instanceof Error&&(T(t)||n.hL.isInstance(t)))throw t;throw new n.hL({message:"Failed to process successful response",cause:t,statusCode:a.status,url:e,responseHeaders:l,requestBodyValues:{}})}}catch(t){throw I({error:t,url:e,requestBodyValues:{}})}};function V(e){return null!=e}function j({mediaType:e,url:t,supportedUrls:o}){return t=t.toLowerCase(),e=e.toLowerCase(),Object.entries(o).map((([e,t])=>{const o=e.toLowerCase();return"*"===o||"*/*"===o?{mediaTypePrefix:"",regexes:t}:{mediaTypePrefix:o.replace(/\*/,""),regexes:t}})).filter((({mediaTypePrefix:t})=>e.startsWith(t))).flatMap((({regexes:e})=>e)).some((e=>e.test(t)))}function W({settingValue:e,environmentVariableName:t}){return"string"==typeof e||null==e&&void 0!==l&&null!=(e=l.env[t])&&"string"==typeof e?e:void 0}var H=/"__proto__"\s*:/,B=/"constructor"\s*:/;function U(e){const t=JSON.parse(e);return null===t||"object"!=typeof t||!1===H.test(e)&&!1===B.test(e)?t:function(e){let t=[e];for(;t.length;){const e=t;t=[];for(const o of e){if(Object.prototype.hasOwnProperty.call(o,"__proto__"))throw new SyntaxError("Object contains forbidden prototype property");if(Object.prototype.hasOwnProperty.call(o,"constructor")&&Object.prototype.hasOwnProperty.call(o.constructor,"prototype"))throw new SyntaxError("Object contains forbidden prototype property");for(const e in o){const n=o[e];n&&"object"==typeof n&&t.push(n)}}}return e}(t)}function Y(e){const{stackTraceLimit:t}=Error;try{Error.stackTraceLimit=0}catch(t){return U(e)}try{return U(e)}finally{Error.stackTraceLimit=t}}function z(e){if("object"===e.type||Array.isArray(e.type)&&e.type.includes("object")){e.additionalProperties=!1;const{properties:t}=e;if(null!=t)for(const e of Object.keys(t))t[e]=$(t[e])}null!=e.items&&(e.items=Array.isArray(e.items)?e.items.map($):$(e.items)),null!=e.anyOf&&(e.anyOf=e.anyOf.map($)),null!=e.allOf&&(e.allOf=e.allOf.map($)),null!=e.oneOf&&(e.oneOf=e.oneOf.map($));const{definitions:t}=e;if(null!=t)for(const e of Object.keys(t))t[e]=$(t[e]);return e}function $(e){return"boolean"==typeof e?e:z(e)}var K=Symbol("Let zodToJsonSchema decide on which parser to use"),q={name:void 0,$refStrategy:"root",basePath:["#"],effectStrategy:"input",pipeStrategy:"all",dateStrategy:"format:date-time",mapStrategy:"entries",removeAdditionalStrategy:"passthrough",allowedAdditionalProperties:!0,rejectedAdditionalProperties:!1,definitionPath:"definitions",strictUnions:!1,definitions:{},errorMessages:!1,patternStrategy:"escape",applyRegexFlags:!1,emailStrategy:"format:email",base64Strategy:"contentEncoding:base64",nameStrategy:"ref"};function Z(e,t){return de(e.type._def,t)}function Q(e,t,o){const n=null!=o?o:t.dateStrategy;if(Array.isArray(n))return{anyOf:n.map(((o,n)=>Q(e,t,o)))};switch(n){case"string":case"format:date-time":return{type:"string",format:"date-time"};case"format:date":return{type:"string",format:"date"};case"integer":return X(e)}}var X=e=>{const t={type:"integer",format:"unix-time"};for(const o of e.checks)switch(o.kind){case"min":t.minimum=o.value;break;case"max":t.maximum=o.value}return t},J=void 0,ee={cuid:/^[cC][^\s-]{8,}$/,cuid2:/^[0-9a-z]+$/,ulid:/^[0-9A-HJKMNP-TV-Z]{26}$/,email:/^(?!\.)(?!.*\.\.)([a-zA-Z0-9_'+\-\.]*)[a-zA-Z0-9_+-]@([a-zA-Z0-9][a-zA-Z0-9\-]*\.)+[a-zA-Z]{2,}$/,emoji:()=>(void 0===J&&(J=RegExp("^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$","u")),J),uuid:/^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$/,ipv4:/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$/,ipv4Cidr:/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\/(3[0-2]|[12]?[0-9])$/,ipv6:/^(([a-f0-9]{1,4}:){7}|::([a-f0-9]{1,4}:){0,6}|([a-f0-9]{1,4}:){1}:([a-f0-9]{1,4}:){0,5}|([a-f0-9]{1,4}:){2}:([a-f0-9]{1,4}:){0,4}|([a-f0-9]{1,4}:){3}:([a-f0-9]{1,4}:){0,3}|([a-f0-9]{1,4}:){4}:([a-f0-9]{1,4}:){0,2}|([a-f0-9]{1,4}:){5}:([a-f0-9]{1,4}:){0,1})([a-f0-9]{1,4}|(((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2}))\.){3}((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2})))$/,ipv6Cidr:/^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/,base64:/^([0-9a-zA-Z+/]{4})*(([0-9a-zA-Z+/]{2}==)|([0-9a-zA-Z+/]{3}=))?$/,base64url:/^([0-9a-zA-Z-_]{4})*(([0-9a-zA-Z-_]{2}(==)?)|([0-9a-zA-Z-_]{3}(=)?))?$/,nanoid:/^[a-zA-Z0-9_-]{21}$/,jwt:/^[A-Za-z0-9-_]+\.[A-Za-z0-9-_]+\.[A-Za-z0-9-_]*$/};function te(e,t){const o={type:"string"};if(e.checks)for(const n of e.checks)switch(n.kind){case"min":o.minLength="number"==typeof o.minLength?Math.max(o.minLength,n.value):n.value;break;case"max":o.maxLength="number"==typeof o.maxLength?Math.min(o.maxLength,n.value):n.value;break;case"email":switch(t.emailStrategy){case"format:email":re(o,"email",n.message,t);break;case"format:idn-email":re(o,"idn-email",n.message,t);break;case"pattern:zod":ie(o,ee.email,n.message,t)}break;case"url":re(o,"uri",n.message,t);break;case"uuid":re(o,"uuid",n.message,t);break;case"regex":ie(o,n.regex,n.message,t);break;case"cuid":ie(o,ee.cuid,n.message,t);break;case"cuid2":ie(o,ee.cuid2,n.message,t);break;case"startsWith":ie(o,RegExp(`^${oe(n.value,t)}`),n.message,t);break;case"endsWith":ie(o,RegExp(`${oe(n.value,t)}$`),n.message,t);break;case"datetime":re(o,"date-time",n.message,t);break;case"date":re(o,"date",n.message,t);break;case"time":re(o,"time",n.message,t);break;case"duration":re(o,"duration",n.message,t);break;case"length":o.minLength="number"==typeof o.minLength?Math.max(o.minLength,n.value):n.value,o.maxLength="number"==typeof o.maxLength?Math.min(o.maxLength,n.value):n.value;break;case"includes":ie(o,RegExp(oe(n.value,t)),n.message,t);break;case"ip":"v6"!==n.version&&re(o,"ipv4",n.message,t),"v4"!==n.version&&re(o,"ipv6",n.message,t);break;case"base64url":ie(o,ee.base64url,n.message,t);break;case"jwt":ie(o,ee.jwt,n.message,t);break;case"cidr":"v6"!==n.version&&ie(o,ee.ipv4Cidr,n.message,t),"v4"!==n.version&&ie(o,ee.ipv6Cidr,n.message,t);break;case"emoji":ie(o,ee.emoji(),n.message,t);break;case"ulid":ie(o,ee.ulid,n.message,t);break;case"base64":switch(t.base64Strategy){case"format:binary":re(o,"binary",n.message,t);break;case"contentEncoding:base64":o.contentEncoding="base64";break;case"pattern:zod":ie(o,ee.base64,n.message,t)}break;case"nanoid":ie(o,ee.nanoid,n.message,t)}return o}function oe(e,t){return"escape"===t.patternStrategy?function(e){let t="";for(let o=0;o<e.length;o++)ne.has(e[o])||(t+="\\"),t+=e[o];return t}(e):e}var ne=new Set("ABCDEFGHIJKLMNOPQRSTUVXYZabcdefghijklmnopqrstuvxyz0123456789");function re(e,t,o,n){var r;e.format||(null==(r=e.anyOf)?void 0:r.some((e=>e.format)))?(e.anyOf||(e.anyOf=[]),e.format&&(e.anyOf.push({format:e.format}),delete e.format),e.anyOf.push({format:t,...o&&n.errorMessages&&{errorMessage:{format:o}}})):e.format=t}function ie(e,t,o,n){var r;e.pattern||(null==(r=e.allOf)?void 0:r.some((e=>e.pattern)))?(e.allOf||(e.allOf=[]),e.pattern&&(e.allOf.push({pattern:e.pattern}),delete e.pattern),e.allOf.push({pattern:se(t,n),...o&&n.errorMessages&&{errorMessage:{pattern:o}}})):e.pattern=se(t,n)}function se(e,t){var o;if(!t.applyRegexFlags||!e.flags)return e.source;const n=e.flags.includes("i"),r=e.flags.includes("m"),i=e.flags.includes("s"),s=n?e.source.toLowerCase():e.source;let a="",l=!1,p=!1,u=!1;for(let e=0;e<s.length;e++)if(l)a+=s[e],l=!1;else{if(n)if(p){if(s[e].match(/[a-z]/)){u?(a+=s[e],a+=`${s[e-2]}-${s[e]}`.toUpperCase(),u=!1):"-"===s[e+1]&&(null==(o=s[e+2])?void 0:o.match(/[a-z]/))?(a+=s[e],u=!0):a+=`${s[e]}${s[e].toUpperCase()}`;continue}}else if(s[e].match(/[a-z]/)){a+=`[${s[e]}${s[e].toUpperCase()}]`;continue}if(r){if("^"===s[e]){a+="(^|(?<=[\r\n]))";continue}if("$"===s[e]){a+="($|(?=[\r\n]))";continue}}i&&"."===s[e]?a+=p?`${s[e]}\r\n`:`[${s[e]}\r\n]`:(a+=s[e],"\\"===s[e]?l=!0:p&&"]"===s[e]?p=!1:p||"["!==s[e]||(p=!0))}try{new RegExp(a)}catch(o){return console.warn(`Could not convert regex pattern at ${t.currentPath.join("/")} to a flag-independent form! Falling back to the flag-ignorant source`),e.source}return a}function ae(e,t){var o,n,r,i,a,l;const p={type:"object",additionalProperties:null!=(o=de(e.valueType._def,{...t,currentPath:[...t.currentPath,"additionalProperties"]}))?o:t.allowedAdditionalProperties};if((null==(n=e.keyType)?void 0:n._def.typeName)===s.kY.ZodString&&(null==(r=e.keyType._def.checks)?void 0:r.length)){const{type:o,...n}=te(e.keyType._def,t);return{...p,propertyNames:n}}if((null==(i=e.keyType)?void 0:i._def.typeName)===s.kY.ZodEnum)return{...p,propertyNames:{enum:e.keyType._def.values}};if((null==(a=e.keyType)?void 0:a._def.typeName)===s.kY.ZodBranded&&e.keyType._def.type._def.typeName===s.kY.ZodString&&(null==(l=e.keyType._def.type._def.checks)?void 0:l.length)){const{type:o,...n}=Z(e.keyType._def,t);return{...p,propertyNames:n}}return p}var le={ZodString:"string",ZodNumber:"number",ZodBigInt:"integer",ZodBoolean:"boolean",ZodNull:"null"};function pe(e){try{return e.isOptional()}catch(e){return!0}}var ue=(e,t,o)=>{switch(t){case s.kY.ZodString:return te(e,o);case s.kY.ZodNumber:return function(e){const t={type:"number"};if(!e.checks)return t;for(const o of e.checks)switch(o.kind){case"int":t.type="integer";break;case"min":o.inclusive?t.minimum=o.value:t.exclusiveMinimum=o.value;break;case"max":o.inclusive?t.maximum=o.value:t.exclusiveMaximum=o.value;break;case"multipleOf":t.multipleOf=o.value}return t}(e);case s.kY.ZodObject:return function(e,t){const o={type:"object",properties:{}},n=[],r=e.shape();for(const e in r){let i=r[e];if(void 0===i||void 0===i._def)continue;const s=pe(i),a=de(i._def,{...t,currentPath:[...t.currentPath,"properties",e],propertyPath:[...t.currentPath,"properties",e]});void 0!==a&&(o.properties[e]=a,s||n.push(e))}n.length&&(o.required=n);const i=function(e,t){if("ZodNever"!==e.catchall._def.typeName)return de(e.catchall._def,{...t,currentPath:[...t.currentPath,"additionalProperties"]});switch(e.unknownKeys){case"passthrough":return t.allowedAdditionalProperties;case"strict":return t.rejectedAdditionalProperties;case"strip":return"strict"===t.removeAdditionalStrategy?t.allowedAdditionalProperties:t.rejectedAdditionalProperties}}(e,t);return void 0!==i&&(o.additionalProperties=i),o}(e,o);case s.kY.ZodBigInt:return function(e){const t={type:"integer",format:"int64"};if(!e.checks)return t;for(const o of e.checks)switch(o.kind){case"min":o.inclusive?t.minimum=o.value:t.exclusiveMinimum=o.value;break;case"max":o.inclusive?t.maximum=o.value:t.exclusiveMaximum=o.value;break;case"multipleOf":t.multipleOf=o.value}return t}(e);case s.kY.ZodBoolean:return{type:"boolean"};case s.kY.ZodDate:return Q(e,o);case s.kY.ZodUndefined:return{not:{}};case s.kY.ZodNull:return{type:"null"};case s.kY.ZodArray:return function(e,t){var o,n,r;const i={type:"array"};return(null==(o=e.type)?void 0:o._def)&&(null==(r=null==(n=e.type)?void 0:n._def)?void 0:r.typeName)!==s.kY.ZodAny&&(i.items=de(e.type._def,{...t,currentPath:[...t.currentPath,"items"]})),e.minLength&&(i.minItems=e.minLength.value),e.maxLength&&(i.maxItems=e.maxLength.value),e.exactLength&&(i.minItems=e.exactLength.value,i.maxItems=e.exactLength.value),i}(e,o);case s.kY.ZodUnion:case s.kY.ZodDiscriminatedUnion:return function(e,t){const o=e.options instanceof Map?Array.from(e.options.values()):e.options;if(o.every((e=>e._def.typeName in le&&(!e._def.checks||!e._def.checks.length)))){const e=o.reduce(((e,t)=>{const o=le[t._def.typeName];return o&&!e.includes(o)?[...e,o]:e}),[]);return{type:e.length>1?e:e[0]}}if(o.every((e=>"ZodLiteral"===e._def.typeName&&!e.description))){const e=o.reduce(((e,t)=>{const o=typeof t._def.value;switch(o){case"string":case"number":case"boolean":return[...e,o];case"bigint":return[...e,"integer"];case"object":if(null===t._def.value)return[...e,"null"];default:return e}}),[]);if(e.length===o.length){const t=e.filter(((e,t,o)=>o.indexOf(e)===t));return{type:t.length>1?t:t[0],enum:o.reduce(((e,t)=>e.includes(t._def.value)?e:[...e,t._def.value]),[])}}}else if(o.every((e=>"ZodEnum"===e._def.typeName)))return{type:"string",enum:o.reduce(((e,t)=>[...e,...t._def.values.filter((t=>!e.includes(t)))]),[])};return((e,t)=>{const o=(e.options instanceof Map?Array.from(e.options.values()):e.options).map(((e,o)=>de(e._def,{...t,currentPath:[...t.currentPath,"anyOf",`${o}`]}))).filter((e=>!!e&&(!t.strictUnions||"object"==typeof e&&Object.keys(e).length>0)));return o.length?{anyOf:o}:void 0})(e,t)}(e,o);case s.kY.ZodIntersection:return function(e,t){const o=[de(e.left._def,{...t,currentPath:[...t.currentPath,"allOf","0"]}),de(e.right._def,{...t,currentPath:[...t.currentPath,"allOf","1"]})].filter((e=>!!e)),n=[];return o.forEach((e=>{if("type"in(t=e)&&"string"===t.type||!("allOf"in t)){let t=e;if("additionalProperties"in e&&!1===e.additionalProperties){const{additionalProperties:o,...n}=e;t=n}n.push(t)}else n.push(...e.allOf);var t})),n.length?{allOf:n}:void 0}(e,o);case s.kY.ZodTuple:return function(e,t){return e.rest?{type:"array",minItems:e.items.length,items:e.items.map(((e,o)=>de(e._def,{...t,currentPath:[...t.currentPath,"items",`${o}`]}))).reduce(((e,t)=>void 0===t?e:[...e,t]),[]),additionalItems:de(e.rest._def,{...t,currentPath:[...t.currentPath,"additionalItems"]})}:{type:"array",minItems:e.items.length,maxItems:e.items.length,items:e.items.map(((e,o)=>de(e._def,{...t,currentPath:[...t.currentPath,"items",`${o}`]}))).reduce(((e,t)=>void 0===t?e:[...e,t]),[])}}(e,o);case s.kY.ZodRecord:return ae(e,o);case s.kY.ZodLiteral:return function(e){const t=typeof e.value;return"bigint"!==t&&"number"!==t&&"boolean"!==t&&"string"!==t?{type:Array.isArray(e.value)?"array":"object"}:{type:"bigint"===t?"integer":t,const:e.value}}(e);case s.kY.ZodEnum:return function(e){return{type:"string",enum:Array.from(e.values)}}(e);case s.kY.ZodNativeEnum:return function(e){const t=e.values,o=Object.keys(e.values).filter((e=>"number"!=typeof t[t[e]])).map((e=>t[e])),n=Array.from(new Set(o.map((e=>typeof e))));return{type:1===n.length?"string"===n[0]?"string":"number":["string","number"],enum:o}}(e);case s.kY.ZodNullable:return function(e,t){if(["ZodString","ZodNumber","ZodBigInt","ZodBoolean","ZodNull"].includes(e.innerType._def.typeName)&&(!e.innerType._def.checks||!e.innerType._def.checks.length))return{type:[le[e.innerType._def.typeName],"null"]};const o=de(e.innerType._def,{...t,currentPath:[...t.currentPath,"anyOf","0"]});return o&&{anyOf:[o,{type:"null"}]}}(e,o);case s.kY.ZodOptional:return((e,t)=>{var o;if(t.currentPath.toString()===(null==(o=t.propertyPath)?void 0:o.toString()))return de(e.innerType._def,t);const n=de(e.innerType._def,{...t,currentPath:[...t.currentPath,"anyOf","1"]});return n?{anyOf:[{not:{}},n]}:{}})(e,o);case s.kY.ZodMap:return function(e,t){return"record"===t.mapStrategy?ae(e,t):{type:"array",maxItems:125,items:{type:"array",items:[de(e.keyType._def,{...t,currentPath:[...t.currentPath,"items","items","0"]})||{},de(e.valueType._def,{...t,currentPath:[...t.currentPath,"items","items","1"]})||{}],minItems:2,maxItems:2}}}(e,o);case s.kY.ZodSet:return function(e,t){const o={type:"array",uniqueItems:!0,items:de(e.valueType._def,{...t,currentPath:[...t.currentPath,"items"]})};return e.minSize&&(o.minItems=e.minSize.value),e.maxSize&&(o.maxItems=e.maxSize.value),o}(e,o);case s.kY.ZodLazy:return()=>e.getter()._def;case s.kY.ZodPromise:return function(e,t){return de(e.type._def,t)}(e,o);case s.kY.ZodNaN:case s.kY.ZodNever:return{not:{}};case s.kY.ZodEffects:return function(e,t){return"input"===t.effectStrategy?de(e.schema._def,t):{}}(e,o);case s.kY.ZodAny:case s.kY.ZodUnknown:return{};case s.kY.ZodDefault:return function(e,t){return{...de(e.innerType._def,t),default:e.defaultValue()}}(e,o);case s.kY.ZodBranded:return Z(e,o);case s.kY.ZodReadonly:case s.kY.ZodCatch:return((e,t)=>de(e.innerType._def,t))(e,o);case s.kY.ZodPipeline:return((e,t)=>{if("input"===t.pipeStrategy)return de(e.in._def,t);if("output"===t.pipeStrategy)return de(e.out._def,t);const o=de(e.in._def,{...t,currentPath:[...t.currentPath,"allOf","0"]});return{allOf:[o,de(e.out._def,{...t,currentPath:[...t.currentPath,"allOf",o?"1":"0"]})].filter((e=>void 0!==e))}})(e,o);case s.kY.ZodFunction:case s.kY.ZodVoid:case s.kY.ZodSymbol:default:return}},ce=(e,t)=>{let o=0;for(;o<e.length&&o<t.length&&e[o]===t[o];o++);return[(e.length-o).toString(),...t.slice(o)].join("/")};function de(e,t,o=!1){var n;const r=t.seen.get(e);if(t.override){const i=null==(n=t.override)?void 0:n.call(t,e,t,r,o);if(i!==K)return i}if(r&&!o){const e=he(r,t);if(void 0!==e)return e}const i={def:e,path:t.currentPath,jsonSchema:void 0};t.seen.set(e,i);const s=ue(e,e.typeName,t),a="function"==typeof s?de(s(),t):s;if(a&&fe(e,t,a),t.postProcess){const o=t.postProcess(a,e,t);return i.jsonSchema=a,o}return i.jsonSchema=a,a}var he=(e,t)=>{switch(t.$refStrategy){case"root":return{$ref:e.path.join("/")};case"relative":return{$ref:ce(t.currentPath,e.path)};case"none":case"seen":return e.path.length<t.currentPath.length&&e.path.every(((e,o)=>t.currentPath[o]===e))?(console.warn(`Recursive reference detected at ${t.currentPath.join("/")}! Defaulting to any`),{}):"seen"===t.$refStrategy?{}:void 0}},fe=(e,t,o)=>(e.description&&(o.description=e.description),o),ge=(e,t)=>{var o;const n=(e=>{const t=(e=>"string"==typeof e?{...q,name:e}:{...q,...e})(e),o=void 0!==t.name?[...t.basePath,t.definitionPath,t.name]:t.basePath;return{...t,currentPath:o,propertyPath:void 0,seen:new Map(Object.entries(t.definitions).map((([e,o])=>[o._def,{def:o._def,path:[...t.basePath,t.definitionPath,e],jsonSchema:void 0}])))}})(t);let r="object"==typeof t&&t.definitions?Object.entries(t.definitions).reduce(((e,[t,o])=>{var r;return{...e,[t]:null!=(r=de(o._def,{...n,currentPath:[...n.basePath,n.definitionPath,t]},!0))?r:{}}}),{}):void 0;const i="string"==typeof t?t:"title"===(null==t?void 0:t.nameStrategy)||null==t?void 0:t.name,s=null!=(o=de(e._def,void 0===i?n:{...n,currentPath:[...n.basePath,n.definitionPath,i]},!1))?o:{},a="object"==typeof t&&void 0!==t.name&&"title"===t.nameStrategy?t.name:void 0;void 0!==a&&(s.title=a);const l=void 0===i?r?{...s,[n.definitionPath]:r}:s:{$ref:[..."relative"===n.$refStrategy?[]:n.basePath,n.definitionPath,i].join("/"),[n.definitionPath]:{...r,[i]:s}};return l.$schema="http://json-schema.org/draft-07/schema#",l},me=Symbol.for("vercel.ai.schema");function ye(e){let t;return()=>(null==t&&(t=e()),t)}function ve(e,{validate:t}={}){return{[me]:!0,_type:void 0,get jsonSchema(){return"function"==typeof e&&(e=e()),e},validate:t}}function Ce(e){return null==e?ve({properties:{},additionalProperties:!1}):"object"==typeof(o=e)&&null!==o&&me in o&&!0===o[me]&&"jsonSchema"in o&&"validate"in o?e:"~standard"in e?"zod"===e["~standard"].vendor?we(e):(t=e,ve((()=>z(t["~standard"].jsonSchema.input({target:"draft-07"}))),{validate:async e=>{const o=await t["~standard"].validate(e);return"value"in o?{success:!0,value:o.value}:{success:!1,error:new n.iM({value:e,cause:o.issues})}}})):e();var t,o}function we(e,t){return function(e){return"_zod"in e}(e)?function(e,t){var o;const n=null!=(o=null==t?void 0:t.useReferences)&&o;return ve((()=>z(i.b(e,{target:"draft-7",io:"input",reused:n?"ref":"inline"}))),{validate:async t=>{const o=await r.bp(e,t);return o.success?{success:!0,value:o.data}:{success:!1,error:o.error}}})}(e,t):function(e,t){var o;const n=null!=(o=null==t?void 0:t.useReferences)&&o;return ve((()=>ge(e,{$refStrategy:n?"root":"none"})),{validate:async t=>{const o=await e.safeParseAsync(t);return o.success?{success:!0,value:o.data}:{success:!1,error:o.error}}})}(e,t)}async function _e({value:e,schema:t,context:o}){const r=await Ee({value:e,schema:t,context:o});if(!r.success)throw n.iM.wrap({value:e,cause:r.error,context:o});return r.value}async function Ee({value:e,schema:t,context:o}){const r=Ce(t);try{if(null==r.validate)return{success:!0,value:e,rawValue:e};const t=await r.validate(e);return t.success?{success:!0,value:t.value,rawValue:e}:{success:!1,error:n.iM.wrap({value:e,cause:t.error,context:o}),rawValue:e}}catch(t){return{success:!1,error:n.iM.wrap({value:e,cause:t,context:o}),rawValue:e}}}async function be({text:e,schema:t}){try{const o=Y(e);return null==t?{success:!0,value:o,rawValue:o}:await Ee({value:o,schema:t})}catch(t){return{success:!1,error:n.u6.isInstance(t)?t:new n.u6({text:e,cause:t}),rawValue:void 0}}}function Re({stream:e,schema:t}){return e.pipeThrough(new TextDecoderStream).pipeThrough(new a.Z).pipeThrough(new TransformStream({async transform({data:e},o){"[DONE]"!==e&&o.enqueue(await be({text:e,schema:t}))}}))}var Se=()=>globalThis.fetch,Oe=async({url:e,headers:t,body:o,failedResponseHandler:n,successfulResponseHandler:r,abortSignal:i,fetch:s})=>Pe({url:e,headers:{"Content-Type":"application/json",...t},body:{content:JSON.stringify(o),values:o},failedResponseHandler:n,successfulResponseHandler:r,abortSignal:i,fetch:s}),Pe=async({url:e,headers:t={},body:o,successfulResponseHandler:r,failedResponseHandler:i,abortSignal:s,fetch:a=Se()})=>{try{const l=await a(e,{method:"POST",headers:L(t,`ai-sdk/provider-utils/${M}`,x()),body:o.content,signal:s}),p=h(l);if(!l.ok){let t;try{t=await i({response:l,url:e,requestBodyValues:o.values})}catch(t){if(T(t)||n.hL.isInstance(t))throw t;throw new n.hL({message:"Failed to process error response",cause:t,statusCode:l.status,url:e,responseHeaders:p,requestBodyValues:o.values})}throw t.value}try{return await r({response:l,url:e,requestBodyValues:o.values})}catch(t){if(t instanceof Error&&(T(t)||n.hL.isInstance(t)))throw t;throw new n.hL({message:"Failed to process successful response",cause:t,statusCode:l.status,url:e,responseHeaders:p,requestBodyValues:o.values})}}catch(t){throw I({error:t,url:e,requestBodyValues:o.values})}};function Ae(e){return e}function Te({id:e,inputSchema:t,outputSchema:o,supportsDeferredResults:n}){return({execute:r,needsApproval:i,toModelOutput:s,onInputStart:a,onInputDelta:l,onInputAvailable:p,...u})=>({type:"provider",id:e,args:u,inputSchema:t,outputSchema:o,execute:r,needsApproval:i,toModelOutput:s,onInputStart:a,onInputDelta:l,onInputAvailable:p,supportsDeferredResults:n})}async function De(e){return"function"==typeof e&&(e=e()),Promise.resolve(e)}var Ne=({errorSchema:e,errorToMessage:t,isRetryable:o})=>async({response:r,url:i,requestBodyValues:s})=>{const a=await r.text(),l=h(r);if(""===a.trim())return{responseHeaders:l,value:new n.hL({message:r.statusText,url:i,requestBodyValues:s,statusCode:r.status,responseHeaders:l,responseBody:a,isRetryable:null==o?void 0:o(r)})};try{const p=await async function({text:e,schema:t}){try{const o=Y(e);return null==t?o:_e({value:o,schema:t})}catch(t){if(n.u6.isInstance(t)||n.iM.isInstance(t))throw t;throw new n.u6({text:e,cause:t})}}({text:a,schema:e});return{responseHeaders:l,value:new n.hL({message:t(p),url:i,requestBodyValues:s,statusCode:r.status,responseHeaders:l,responseBody:a,data:p,isRetryable:null==o?void 0:o(r,p)})}}catch(e){return{responseHeaders:l,value:new n.hL({message:r.statusText,url:i,requestBodyValues:s,statusCode:r.status,responseHeaders:l,responseBody:a,isRetryable:null==o?void 0:o(r)})}}},Ie=e=>async({response:t})=>{const o=h(t);if(null==t.body)throw new n.Tt({});return{responseHeaders:o,value:Re({stream:t.body,schema:e})}},xe=e=>async({response:t,url:o,requestBodyValues:r})=>{const i=await t.text(),s=await be({text:i,schema:e}),a=h(t);if(!s.success)throw new n.hL({message:"Invalid JSON response",cause:s.error,statusCode:t.status,responseHeaders:a,responseBody:i,url:o,requestBodyValues:r});return{responseHeaders:a,value:s.value,rawValue:s.rawValue}};function Fe(e){return null==e?void 0:e.replace(/\/$/,"")}async function*Le({execute:e,input:t,options:o}){const n=e(t,o);if(null!=(r=n)&&"function"==typeof r[Symbol.asyncIterator]){let e;for await(const t of n)e=t,yield{type:"preliminary",output:t};yield{type:"final",output:e}}else yield{type:"final",output:await n};var r}},34633:(e,t,o)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.CommaAndColonSeparatedRecord=t.ConnectionString=t.redactConnectionString=void 0;const n=o(21655),r=o(5652);Object.defineProperty(t,"redactConnectionString",{enumerable:!0,get:function(){return r.redactConnectionString}});const i="__this_is_a_placeholder__",s=/^(?<protocol>[^/]+):\/\/(?:(?<username>[^:@]*)(?::(?<password>[^@]*))?@)?(?<hosts>(?!:)[^/?@]*)(?<rest>.*)/;class a extends Map{delete(e){return super.delete(this._normalizeKey(e))}get(e){return super.get(this._normalizeKey(e))}has(e){return super.has(this._normalizeKey(e))}set(e,t){return super.set(this._normalizeKey(e),t)}_normalizeKey(e){e=`${e}`;for(const t of this.keys())if(t.toLowerCase()===e.toLowerCase()){e=t;break}return e}}class l extends n.URL{}class p extends Error{get name(){return"MongoParseError"}}class u extends l{_hosts;constructor(e,t={}){const{looseValidation:o}=t;if(!o&&!(n=e).startsWith("mongodb://")&&!n.startsWith("mongodb+srv://"))throw new p('Invalid scheme, expected connection string to start with "mongodb://" or "mongodb+srv://"');var n;const r=e.match(s);if(!r)throw new p("Invalid connection string");const{protocol:l,username:c,password:d,hosts:h,rest:f}=r.groups??{};if(!o){if(!l||!h)throw new p("Protocol and host list are required in the uri");try{decodeURIComponent(c??""),decodeURIComponent(d??"")}catch(e){throw new p(e.message)}const t=/[:/?#[\]@]/gi;if(c?.match(t))throw new p(`Username contains unescaped characters ${c}`);if(!c||!d){const t=e.replace(`${l}://`,"");if(t.startsWith("@")||t.startsWith(":"))throw new p("URI contained empty userinfo section")}if(d?.match(t))throw new p("Password contains unescaped characters");if(f?.match(/^[^/?]*@/))throw new p("Invalid connection string")}let g="";"string"==typeof c&&(g+=c),"string"==typeof d&&(g+=`:${d}`),g&&(g+="@");try{super(`${l.toLowerCase()}://${g}${i}${f}`)}catch(n){throw o&&new u(e,{...t,looseValidation:!1}),"string"==typeof n.message&&(n.message=n.message.replace(i,h)),n}if(this._hosts=h.split(","),!o){if(this.isSRV&&1!==this.hosts.length)throw new p("mongodb+srv URI cannot have multiple service names");if(this.isSRV&&this.hosts.some((e=>e.includes(":"))))throw new p("mongodb+srv URI cannot have port number")}var m;this.pathname||(this.pathname="/"),Object.setPrototypeOf(this.searchParams,(m=this.searchParams.constructor,class extends m{append(e,t){return super.append(this._normalizeKey(e),t)}delete(e){return super.delete(this._normalizeKey(e))}get(e){return super.get(this._normalizeKey(e))}getAll(e){return super.getAll(this._normalizeKey(e))}has(e){return super.has(this._normalizeKey(e))}set(e,t){return super.set(this._normalizeKey(e),t)}keys(){return super.keys()}values(){return super.values()}entries(){return super.entries()}[Symbol.iterator](){return super[Symbol.iterator]()}_normalizeKey(e){return a.prototype._normalizeKey.call(this,e)}}).prototype)}get host(){return i}set host(e){throw new Error("No single host for connection string")}get hostname(){return i}set hostname(e){throw new Error("No single host for connection string")}get port(){return""}set port(e){throw new Error("No single host for connection string")}get href(){return this.toString()}set href(e){throw new Error("Cannot set href for connection strings")}get isSRV(){return this.protocol.includes("srv")}get hosts(){return this._hosts}set hosts(e){this._hosts=e}toString(){return super.toString().replace(i,this.hosts.join(","))}clone(){return new u(this.toString(),{looseValidation:!0})}redact(e){return(0,r.redactValidConnectionString)(this,e)}typedSearchParams(){return this.searchParams}[Symbol.for("nodejs.util.inspect.custom")](){const{href:e,origin:t,protocol:o,username:n,password:r,hosts:i,pathname:s,search:a,searchParams:l,hash:p}=this;return{href:e,origin:t,protocol:o,username:n,password:r,hosts:i,pathname:s,search:a,searchParams:l,hash:p}}}t.ConnectionString=u,t.CommaAndColonSeparatedRecord=class extends a{constructor(e){super();for(const t of(e??"").split(",")){if(!t)continue;const e=t.indexOf(":");-1===e?this.set(t,""):this.set(t.slice(0,e),t.slice(e+1))}}toString(){return[...this].map((e=>e.join(":"))).join(",")}},t.default=u},34836:(e,t,o)=>{Object.defineProperty(t,"__esModule",{value:!0});var n=o(77171),r=o(33018),i=o(43510),s=function(){function e(t,o,n,r,i,s,a,l){this.nextId=0,this.allNodesMap={},this.rootNode=t,this.gridOptionsWrapper=o,this.context=n,this.eventService=r,this.columnController=i,this.gridApi=s,this.columnApi=a,this.selectionController=l,this.rootNode.group=!0,this.rootNode.level=-1,this.rootNode.id=e.ROOT_NODE_ID,this.rootNode.allLeafChildren=[],this.rootNode.childrenAfterGroup=[],this.rootNode.childrenAfterSort=[],this.rootNode.childrenAfterFilter=[],this.postConstruct()}return e.prototype.postConstruct=function(){this.getNodeChildDetails=this.gridOptionsWrapper.getNodeChildDetailsFunc(),this.suppressParentsInRowNodes=this.gridOptionsWrapper.isSuppressParentsInRowNodes(),this.doesDataFlower=this.gridOptionsWrapper.getDoesDataFlowerFunc(),this.isRowMasterFunc=this.gridOptionsWrapper.getIsRowMasterFunc(),this.doingLegacyTreeData=i._.exists(this.getNodeChildDetails),this.doingMasterDetail=this.gridOptionsWrapper.isMasterDetail()},e.prototype.getCopyOfNodesMap=function(){return i._.cloneObject(this.allNodesMap)},e.prototype.getRowNode=function(e){return this.allNodesMap[e]},e.prototype.setRowData=function(t){if(this.rootNode.childrenAfterFilter=null,this.rootNode.childrenAfterGroup=null,this.rootNode.childrenAfterSort=null,this.rootNode.childrenMapped=null,this.nextId=0,this.allNodesMap={},!t)return this.rootNode.allLeafChildren=[],void(this.rootNode.childrenAfterGroup=[]);var o=this.recursiveFunction(t,this.rootNode,e.TOP_LEVEL);this.doingLegacyTreeData?(this.rootNode.childrenAfterGroup=o,this.setLeafChildren(this.rootNode)):this.rootNode.allLeafChildren=o},e.prototype.updateRowData=function(e,t){var o=this;if(this.isLegacyTreeData())return null;var n=e.add,s=e.addIndex,a=e.remove,l=e.update,p={remove:[],update:[],add:[]};if(i._.exists(n)&&("number"==typeof s&&s>=0?n.reverse().forEach((function(e){var t=o.addRowNode(e,s);p.add.push(t)})):n.forEach((function(e){var t=o.addRowNode(e);p.add.push(t)}))),i._.exists(a)){var u=!1;if(a.forEach((function(e){var t=o.lookupRowNode(e);t&&(t.isSelected()&&(u=!0),o.updatedRowNode(t,e,!1),p.remove.push(t))})),u){this.selectionController.updateGroupsFromChildrenSelections();var c={type:r.Events.EVENT_SELECTION_CHANGED,api:this.gridApi,columnApi:this.columnApi};this.eventService.dispatchEvent(c)}}return i._.exists(l)&&l.forEach((function(e){var t=o.lookupRowNode(e);t&&(o.updatedRowNode(t,e,!0),p.update.push(t))})),t&&i._.sortRowNodesByOrder(this.rootNode.allLeafChildren,t),p},e.prototype.addRowNode=function(t,o){var n=this.createNode(t,this.rootNode,e.TOP_LEVEL);return i._.exists(o)?i._.insertIntoArray(this.rootNode.allLeafChildren,n,o):this.rootNode.allLeafChildren.push(n),n},e.prototype.lookupRowNode=function(e){var t,o=this.gridOptionsWrapper.getRowNodeIdFunc();if(i._.exists(o)){var n=o(e);if(!(t=this.allNodesMap[n]))return console.error("ag-Grid: could not find row id="+n+", data item was not found for this id"),null}else if(!(t=i._.find(this.rootNode.allLeafChildren,(function(t){return t.data===e}))))return console.error("ag-Grid: could not find data item as object was not found",e),null;return t},e.prototype.updatedRowNode=function(e,t,o){o?e.updateData(t):(e.setSelected(!1,!1,!0),e.clearRowTop(),i._.removeFromArray(this.rootNode.allLeafChildren,e),delete this.allNodesMap[e.id])},e.prototype.recursiveFunction=function(e,t,o){var n=this;if("string"!=typeof e){var r=[];return e.forEach((function(e){var i=n.createNode(e,t,o);r.push(i)})),r}console.warn("ag-Grid: rowData must be an array, however you passed in a string. If you are loading JSON, make sure you convert the JSON string to JavaScript objects first")},e.prototype.createNode=function(e,t,o){var r=new n.RowNode;this.context.wireBean(r);var s=this.gridOptionsWrapper.isTreeData(),a=!s&&i._.exists(this.getNodeChildDetails)?this.getNodeChildDetails(e):null;if(a&&a.group)r.group=!0,r.childrenAfterGroup=this.recursiveFunction(a.children,r,o+1),r.expanded=!0===a.expanded,r.field=a.field,r.key=a.key,r.canFlower=r.master,this.setLeafChildren(r);else if(r.group=!1,s)r.master=!1,r.expanded=!1;else{this.doesDataFlower?r.master=this.doesDataFlower(e):this.doingMasterDetail?this.isRowMasterFunc?r.master=this.isRowMasterFunc(e):r.master=!0:r.master=!1;var l=this.columnController.getRowGroupColumns(),p=o+(l?l.length:0);r.expanded=!!r.master&&this.isExpanded(p)}return r.canFlower=r.master,t&&!this.suppressParentsInRowNodes&&(r.parent=t),r.level=o,r.setDataAndId(e,this.nextId.toString()),this.allNodesMap[r.id]&&console.warn("ag-grid: duplicate node id '"+r.id+"' detected from getRowNodeId callback, this could cause issues in your grid."),this.allNodesMap[r.id]=r,this.nextId++,r},e.prototype.isExpanded=function(e){var t=this.gridOptionsWrapper.getGroupDefaultExpanded();return-1===t||e<t},e.prototype.setLeafChildren=function(e){e.allLeafChildren=[],e.childrenAfterGroup&&e.childrenAfterGroup.forEach((function(t){t.group?t.allLeafChildren&&t.allLeafChildren.forEach((function(t){return e.allLeafChildren.push(t)})):e.allLeafChildren.push(t)}))},e.prototype.isLegacyTreeData=function(){return!!i._.exists(this.gridOptionsWrapper.getNodeChildDetailsFunc())&&(console.warn("ag-Grid: adding and removing rows is not supported when using nodeChildDetailsFunc, ie it is not supported for legacy tree data. Please see the docs on the new preferred way of providing tree data that works with delta updates."),!0)},e.TOP_LEVEL=0,e.ROOT_NODE_ID="ROOT_NODE_ID",e}();t.ClientSideNodeManager=s},34980:function(e,t,o){var n,r=this&&this.__extends||(n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])},n(e,t)},function(e,t){function o(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(o.prototype=t.prototype,new o)});Object.defineProperty(t,"__esModule",{value:!0});var i=o(28348),s=o(44494),a=o(43510),l=function(e){function t(){return e.call(this,t.TEMPLATE)||this}return r(t,e),t.prototype.init=function(e){this.params=e,this.focusAfterAttached=e.cellStartedEdit,this.textarea=document.createElement("textarea"),this.textarea.maxLength=e.maxLength?e.maxLength:"200",this.textarea.cols=e.cols?e.cols:"60",this.textarea.rows=e.rows?e.rows:"10",a._.exists(e.value)&&(this.textarea.value=e.value.toString()),this.getGui().querySelector(".ag-large-textarea").appendChild(this.textarea),this.addGuiEventListener("keydown",this.onKeyDown.bind(this))},t.prototype.onKeyDown=function(e){var t=e.which||e.keyCode;(t==s.Constants.KEY_LEFT||t==s.Constants.KEY_UP||t==s.Constants.KEY_RIGHT||t==s.Constants.KEY_DOWN||e.shiftKey&&t==s.Constants.KEY_ENTER)&&e.stopPropagation()},t.prototype.afterGuiAttached=function(){this.focusAfterAttached&&this.textarea.focus()},t.prototype.getValue=function(){return this.params.parseValue(this.textarea.value)},t.TEMPLATE='<div class="ag-large-text" tabindex="0"><div class="ag-large-textarea"></div></div>',t}(i.PopupComponent);t.LargeTextCellEditor=l},35312:function(e,t,o){var n=this&&this.__decorate||function(e,t,o,n){var r,i=arguments.length,s=i<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,n);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,o,s):r(t,o))||s);return i>3&&s&&Object.defineProperty(t,o,s),s},r=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0});var i=o(13161),s=o(59804),a=o(42062),l=o(99162),p=o(47304),u=o(64339),c=o(44494),d=function(){function e(e,t){this.eContainer=e,this.gridPanel=t}return e.prototype.postConstruct=function(){this.gridOptionsWrapper.isRowModelDefault()&&(this.clientSideRowModel=this.rowModel)},e.prototype.getContainer=function(){return this.eContainer},e.prototype.isInterestedIn=function(e){return e===i.DragSourceType.RowDrag},e.prototype.getIconName=function(){return i.DragAndDropService.ICON_MOVE},e.prototype.onDragEnter=function(e){this.dispatchEvent(u.Events.EVENT_ROW_DRAG_ENTER,e),this.dragAndDropService.setGhostIcon(i.DragAndDropService.ICON_MOVE),e.dragItem.rowNode.setDragging(!0),this.onEnterOrDragging(e)},e.prototype.onDragging=function(e){this.onEnterOrDragging(e)},e.prototype.onEnterOrDragging=function(e){this.dispatchEvent(u.Events.EVENT_ROW_DRAG_MOVE,e),this.lastDraggingEvent=e;var t=this.normaliseForScroll(e.y);this.gridOptionsWrapper.isRowDragManaged()&&this.doManagedDrag(e,t),this.checkCenterForScrolling(t)},e.prototype.doManagedDrag=function(e,t){var o=e.dragItem.rowNode;this.clientSideRowModel.ensureRowAtPixel(o,t)&&(this.focusedCellController.clearFocusedCell(),this.rangeController&&this.rangeController.clearSelection())},e.prototype.normaliseForScroll=function(e){return this.gridOptionsWrapper.getDomLayout()===c.Constants.DOM_LAYOUT_NORMAL?e+this.gridPanel.getVScrollPosition().top:e},e.prototype.checkCenterForScrolling=function(e){var t=this.gridPanel.getVScrollPosition();this.needToMoveUp=e<t.top+50,this.needToMoveDown=e>t.bottom-50,this.needToMoveUp||this.needToMoveDown?this.ensureIntervalStarted():this.ensureIntervalCleared()},e.prototype.ensureIntervalStarted=function(){this.movingIntervalId||(this.intervalCount=0,this.movingIntervalId=window.setInterval(this.moveInterval.bind(this),100))},e.prototype.ensureIntervalCleared=function(){this.moveInterval&&(window.clearInterval(this.movingIntervalId),this.movingIntervalId=null)},e.prototype.moveInterval=function(){var e,t;this.intervalCount++,(e=10+5*this.intervalCount)>100&&(e=100),this.needToMoveDown?t=this.gridPanel.scrollVertically(e):this.needToMoveUp&&(t=this.gridPanel.scrollVertically(-e)),0!==t&&this.onDragging(this.lastDraggingEvent)},e.prototype.dispatchEvent=function(e,t){var o,n=this.normaliseForScroll(t.y),r=-1,s=null;switch(n>this.rowModel.getCurrentPageHeight()||(r=this.rowModel.getRowIndexAtPixel(n),s=this.rowModel.getRow(r)),t.vDirection){case i.VDirection.Down:o="down";break;case i.VDirection.Up:o="up";break;default:o=null}var a={type:e,api:this.gridOptionsWrapper.getApi(),columnApi:this.gridOptionsWrapper.getColumnApi(),event:t.event,node:t.dragItem.rowNode,overIndex:r,overNode:s,y:n,vDirection:o};this.eventService.dispatchEvent(a)},e.prototype.onDragLeave=function(e){this.dispatchEvent(u.Events.EVENT_ROW_DRAG_LEAVE,e),this.stopDragging(e)},e.prototype.onDragStop=function(e){this.dispatchEvent(u.Events.EVENT_ROW_DRAG_END,e),this.stopDragging(e)},e.prototype.stopDragging=function(e){this.ensureIntervalCleared(),e.dragItem.rowNode.setDragging(!1)},n([s.Autowired("dragAndDropService"),r("design:type",i.DragAndDropService)],e.prototype,"dragAndDropService",void 0),n([s.Autowired("rowModel"),r("design:type",Object)],e.prototype,"rowModel",void 0),n([s.Autowired("focusedCellController"),r("design:type",a.FocusedCellController)],e.prototype,"focusedCellController",void 0),n([s.Autowired("gridOptionsWrapper"),r("design:type",l.GridOptionsWrapper)],e.prototype,"gridOptionsWrapper",void 0),n([s.Optional("rangeController"),r("design:type",Object)],e.prototype,"rangeController",void 0),n([s.Autowired("eventService"),r("design:type",p.EventService)],e.prototype,"eventService",void 0),n([s.PostConstruct,r("design:type",Function),r("design:paramtypes",[]),r("design:returntype",void 0)],e.prototype,"postConstruct",null),e}();t.RowDragFeature=d},36071:function(e,t,o){var n=this&&this.__decorate||function(e,t,o,n){var r,i=arguments.length,s=i<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,n);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,o,s):r(t,o))||s);return i>3&&s&&Object.defineProperty(t,o,s),s},r=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0});var i,s=o(59804),a=o(99162),l=o(54078),p=o(6459),u=o(53628),c=o(43510);!function(e){e[e.DEFAULT=0]="DEFAULT",e[e.REGISTERED_BY_NAME=1]="REGISTERED_BY_NAME",e[e.HARDCODED=2]="HARDCODED"}(i=t.ComponentSource||(t.ComponentSource={}));var d=function(){function e(){}return e.prototype.newDateComponent=function(e){return this.createAndInitUserComponent(this.gridOptions,e,"dateComponent","agDateInput")},e.prototype.newHeaderComponent=function(e){return this.createAndInitUserComponent(e.column.getColDef(),e,"headerComponent","agColumnHeader")},e.prototype.newHeaderGroupComponent=function(e){return this.createAndInitUserComponent(e.columnGroup.getColGroupDef(),e,"headerGroupComponent","agColumnGroupHeader")},e.prototype.newFullWidthGroupRowInnerCellRenderer=function(e){return this.createAndInitUserComponent(this.gridOptions,e,"groupRowInnerRenderer",null,!0)},e.prototype.newFullWidthCellRenderer=function(e,t,o){return this.createAndInitUserComponent(null,e,t,o)},e.prototype.newCellRenderer=function(e,t){return this.createAndInitUserComponent(e,t,"cellRenderer",null,!0)},e.prototype.newPinnedRowCellRenderer=function(e,t){return this.createAndInitUserComponent(e,t,"pinnedRowCellRenderer",null,!0)},e.prototype.newCellEditor=function(e,t){return this.createAndInitUserComponent(e,t,"cellEditor","agCellEditor")},e.prototype.newInnerCellRenderer=function(e,t){return this.createAndInitUserComponent(e,t,"innerRenderer",null)},e.prototype.newLoadingOverlayComponent=function(e){return this.createAndInitUserComponent(this.gridOptions,e,"loadingOverlayComponent","agLoadingOverlay")},e.prototype.newNoRowsOverlayComponent=function(e){return this.createAndInitUserComponent(this.gridOptions,e,"noRowsOverlayComponent","agNoRowsOverlay")},e.prototype.newTooltipComponent=function(e){var t=e.column&&e.column.getColDef();return this.createAndInitUserComponent(t,e,"tooltipComponent","agTooltipComponent")},e.prototype.newFilterComponent=function(e,t,o,n){return this.createAndInitUserComponent(e,t,"filter",o,!1,n)},e.prototype.newFloatingFilterComponent=function(e,t,o){return this.createAndInitUserComponent(e,t,"floatingFilterComponent",o,!0)},e.prototype.newToolPanelComponent=function(e,t){return this.createAndInitUserComponent(e,t,"toolPanel")},e.prototype.newStatusPanelComponent=function(e,t){return this.createAndInitUserComponent(e,t,"statusPanel")},e.prototype.createAndInitUserComponent=function(e,t,o,n,r,i){void 0===r&&(r=!1),e||(e=this.gridOptions);var s=this.createComponentInstance(e,o,t,n,r);if(!s)return null;var a=s.componentInstance,l=this.createFinalParams(e,o,t,s.paramsFromSelector);this.addReactHacks(l);var p=i?i(l,a):l,u=this.initComponent(a,p);return null==u?c.Promise.resolve(a):u.map((function(e){return a}))},e.prototype.addReactHacks=function(e){var t=this.context.getBean("agGridReact");t&&(e.agGridReact=c._.cloneObject(t));var o=this.context.getBean("frameworkComponentWrapper");o&&(e.frameworkComponentWrapper=o)},e.prototype.createUserComponentFromConcreteClass=function(e,t){var o=new e;return this.initComponent(o,t),o},e.prototype.lookupComponentClassDef=function(e,t,o,n){void 0===o&&(o=null);var r,s=null,a=null,l=null,p=null;if(null!=e){var u=e[t];null==u||!0===u||("string"==typeof u?s=u:"boolean"==typeof u||(this.agComponentUtils.doesImplementIComponent(u)?a=u:l=u)),p=e[t+"Framework"],r=e[t+"Selector"]}if(a&&p||s&&p||l&&p)throw Error("ag-grid: you are trying to specify: "+t+" twice as a component.");if(p&&!this.frameworkComponentWrapper)throw Error("ag-grid: you are specifying a framework component but you are not using a framework version of ag-grid for : "+t);if(r&&(s||a||l||p))throw Error("ag-grid: you can't specify both, the selector and the component of ag-grid for : "+t);if(p)return{componentFromFramework:!0,component:p,source:i.HARDCODED,paramsFromSelector:null};if(a)return{componentFromFramework:!1,component:a,source:i.HARDCODED,paramsFromSelector:null};if(l)return this.agComponentUtils.adaptFunction(t,l,!1,i.HARDCODED);var c,d=r?r(o):null;if(!(c=d&&d.component?d.component:s||n))return null;var h=this.lookupFromRegisteredComponents(t,c);return{componentFromFramework:h.componentFromFramework,component:h.component,source:h.source,paramsFromSelector:d?d.params:null}},e.prototype.lookupFromRegisteredComponents=function(e,t){var o=null!=t?t:e,n=this.userComponentRegistry.retrieve(o);return null==n?null:n.componentFromFramework?{component:n.component,componentFromFramework:!0,source:i.REGISTERED_BY_NAME,paramsFromSelector:null}:this.agComponentUtils.doesImplementIComponent(n.component)?{component:n.component,componentFromFramework:!1,source:n.source==l.RegisteredComponentSource.REGISTERED?i.REGISTERED_BY_NAME:i.DEFAULT,paramsFromSelector:null}:this.agComponentUtils.adaptFunction(e,n.component,n.componentFromFramework,n.source==l.RegisteredComponentSource.REGISTERED?i.REGISTERED_BY_NAME:i.DEFAULT)},e.prototype.createFinalParams=function(e,t,o,n){void 0===n&&(n=null);var r={};c._.mergeDeep(r,o);var i=e?e[t+"Params"]:null;return null!=i&&("function"==typeof i?c._.mergeDeep(r,i(o)):"object"==typeof i&&c._.mergeDeep(r,i)),c._.mergeDeep(r,n),r},e.prototype.createComponentInstance=function(e,t,o,n,r){var i,s=this.lookupComponentClassDef(e,t,o,n);if(!s||!s.component)return r||console.error("Error creating component "+t+"=>"+n),null;if(s.componentFromFramework){var a=s.component,l=this.componentMetadataProvider.retrieve(t);i=this.frameworkComponentWrapper.wrap(a,l.mandatoryMethodList,l.optionalMethodList,n)}else i=new s.component;return{componentInstance:i,paramsFromSelector:s.paramsFromSelector}},e.prototype.initComponent=function(e,t){return this.context.wireBean(e),null==e.init?void 0:e.init(t)},n([s.Autowired("gridOptions"),r("design:type",Object)],e.prototype,"gridOptions",void 0),n([s.Autowired("gridOptionsWrapper"),r("design:type",a.GridOptionsWrapper)],e.prototype,"gridOptionsWrapper",void 0),n([s.Autowired("context"),r("design:type",s.Context)],e.prototype,"context",void 0),n([s.Autowired("agComponentUtils"),r("design:type",p.AgComponentUtils)],e.prototype,"agComponentUtils",void 0),n([s.Autowired("componentMetadataProvider"),r("design:type",u.ComponentMetadataProvider)],e.prototype,"componentMetadataProvider",void 0),n([s.Autowired("userComponentRegistry"),r("design:type",l.UserComponentRegistry)],e.prototype,"userComponentRegistry",void 0),n([s.Optional("frameworkComponentWrapper"),r("design:type",Object)],e.prototype,"frameworkComponentWrapper",void 0),n([s.Bean("userComponentFactory")],e)}();t.UserComponentFactory=d},36354:function(e,t,o){var n=this&&this.__decorate||function(e,t,o,n){var r,i=arguments.length,s=i<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,n);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,o,s):r(t,o))||s);return i>3&&s&&Object.defineProperty(t,o,s),s},r=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0});var i=o(59804),s=o(59804),a=o(99162),l=o(43510),p=function(){function e(){this.gridInstanceId=t.gridInstanceSequence.next()}var t;return t=e,e.prototype.init=function(){this.stampDomElementWithGridInstance()},e.prototype.stampDomElementWithGridInstance=function(){this.eGridDiv[t.GRID_DOM_KEY]=this.gridInstanceId},e.prototype.getRenderedCellForEvent=function(e){return l._.getCellCompForEvent(this.gridOptionsWrapper,e)},e.prototype.isEventFromThisGrid=function(e){for(var o=l._.getEventPath(e),n=0;n<o.length;n++){var r=o[n][t.GRID_DOM_KEY];if(l._.exists(r))return r===this.gridInstanceId}return!1},e.prototype.getGridCellForEvent=function(e){var t=this.getRenderedCellForEvent(e);return t?t.getGridCell():null},e.gridInstanceSequence=new l.NumberSequence,e.GRID_DOM_KEY="__ag_grid_instance",n([s.Autowired("gridOptionsWrapper"),r("design:type",a.GridOptionsWrapper)],e.prototype,"gridOptionsWrapper",void 0),n([s.Autowired("eGridDiv"),r("design:type",HTMLElement)],e.prototype,"eGridDiv",void 0),n([i.PostConstruct,r("design:type",Function),r("design:paramtypes",[]),r("design:returntype",void 0)],e.prototype,"init",null),t=n([i.Bean("mouseEventService")],e)}();t.MouseEventService=p},36743:(e,t,o)=>{o.d(t,{A:()=>g});const n={strip:["script"],clobberPrefix:"user-content-",clobber:["name","id"],ancestors:{tbody:["table"],tfoot:["table"],thead:["table"],td:["table"],th:["table"],tr:["table"]},protocols:{href:["http","https","mailto","xmpp","irc","ircs"],cite:["http","https"],src:["http","https"],longDesc:["http","https"]},tagNames:["h1","h2","h3","h4","h5","h6","br","b","i","strong","em","a","pre","code","img","tt","div","ins","del","sup","sub","p","ol","ul","table","thead","tbody","tfoot","blockquote","dl","dt","dd","kbd","q","samp","var","hr","ruby","rt","rp","li","tr","td","th","s","strike","summary","details","caption","figure","figcaption","abbr","bdo","cite","dfn","mark","small","span","time","wbr","input"],attributes:{a:["href"],img:["src","longDesc"],input:[["type","checkbox"],["disabled",!0]],li:[["className","task-list-item"]],div:["itemScope","itemType"],blockquote:["cite"],del:["cite"],ins:["cite"],q:["cite"],"*":["abbr","accept","acceptCharset","accessKey","action","align","alt","ariaDescribedBy","ariaHidden","ariaLabel","ariaLabelledBy","axis","border","cellPadding","cellSpacing","char","charOff","charSet","checked","clear","cols","colSpan","color","compact","coords","dateTime","dir","disabled","encType","htmlFor","frame","headers","height","hrefLang","hSpace","isMap","id","label","lang","maxLength","media","method","multiple","name","noHref","noShade","noWrap","open","prompt","readOnly","rel","rev","rows","rowSpan","rules","scope","selected","shape","size","span","start","summary","tabIndex","target","title","type","useMap","vAlign","value","vSpace","width","itemProp"]},required:{input:{type:"checkbox",disabled:!0}}},r={}.hasOwnProperty,i={root:{children:a},doctype:function(e){return e.allowDoctypes?{name:l}:void 0},comment:function(e){return e.allowComments?{value:u}:void 0},element:{tagName:p,properties:function(e,t,o,n){const i=p(e,o.tagName,0,n),s=e.attributes||{},a=e.required||{},l=t||{},u=Object.assign({},f(s["*"]),f(i&&r.call(s,i)?s[i]:[])),c={};let g;for(g in l)if(r.call(l,g)){let t,o=l[g];if(r.call(u,g))t=u[g];else{if(!((m=g).length>4&&"data"===m.slice(0,4).toLowerCase()&&r.call(u,"data*")))continue;t=u["data*"]}o=Array.isArray(o)?d(e,o,g,t):h(e,o,g,t),null!=o&&(c[g]=o)}var m;if(i&&r.call(a,i))for(g in a[i])r.call(c,g)||(c[g]=a[i][g]);return c},children:a},text:{value:function(e,t){return"string"==typeof t?t:""}},"*":{data:c,position:c}};function s(e,t,o){const n=t&&t.type,s={type:t.type};let a;if(r.call(i,n)){let l=i[n];if("function"==typeof l&&(l=l(e,t)),l){const n=Object.assign({},l,i["*"]);let p;for(p in a=!0,n)if(r.call(n,p)){const r=n[p](e,t[p],t,o);!1===r?(a=void 0,s[p]=t[p]):null!=r&&(s[p]=r)}}}return a?s:"element"===s.type&&e.strip&&!e.strip.includes(s.tagName)?s.children:void 0}function a(e,t,o,n){const r=[];if(Array.isArray(t)){let i=-1;for("element"===o.type&&n.push(o.tagName);++i<t.length;){const o=s(e,t[i],n);o&&(Array.isArray(o)?r.push(...o):r.push(o))}"element"===o.type&&n.pop()}return r}function l(){return"html"}function p(e,t,o,n){const i="string"==typeof t?t:"";let s=-1;if(!i||"*"===i||e.tagNames&&!e.tagNames.includes(i))return!1;if(e.ancestors&&r.call(e.ancestors,i)){for(;++s<e.ancestors[i].length;)if(n.includes(e.ancestors[i][s]))return i;return!1}return i}function u(e,t){const o="string"==typeof t?t:"",n=o.indexOf("--\x3e");return n<0?o:o.slice(0,n)}function c(e,t){return t}function d(e,t,o,n){let r=-1;const i=[];for(;++r<t.length;){const s=h(e,t[r],o,n);null!=s&&i.push(s)}return i}function h(e,t,o,n){if(("boolean"==typeof t||"number"==typeof t||"string"==typeof t)&&function(e,t,o){const n=String(t),i=n.indexOf(":"),s=n.indexOf("?"),a=n.indexOf("#"),l=n.indexOf("/"),p=e.protocols&&r.call(e.protocols,o)?e.protocols[o].concat():[];let u=-1;if(0===p.length||i<0||l>-1&&i>l||s>-1&&i>s||a>-1&&i>a)return!0;for(;++u<p.length;)if(i===p[u].length&&n.slice(0,p[u].length)===p[u])return!0;return!1}(e,t,o)&&(0===n.length||n.some((e=>e&&"object"==typeof e&&"flags"in e?e.test(String(t)):e===t))))return e.clobberPrefix&&e.clobber&&e.clobber.includes(o)?e.clobberPrefix+t:t}function f(e){const t={};let o=-1;for(;++o<e.length;){const n=e[o];Array.isArray(n)?t[n[0]]=n.slice(1):t[n]=[]}return t}function g(e=n){return t=>function(e,t){let o={type:"root",children:[]};if(e&&"object"==typeof e&&e.type){const r=s(Object.assign({},n,t||{}),e,[]);r&&(Array.isArray(r)?1===r.length?o=r[0]:o.children=r:o=r)}return o}(t,e)}},37385:(e,t,o)=>{e.exports=function(e){var t=o.nc;t&&e.setAttribute("nonce",t)}},37879:function(e,t,o){var n=this&&this.__decorate||function(e,t,o,n){var r,i=arguments.length,s=i<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,n);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,o,s):r(t,o))||s);return i>3&&s&&Object.defineProperty(t,o,s),s};Object.defineProperty(t,"__esModule",{value:!0});var r=o(59804),i=o(43510),s=[0,1996959894,-301047508,-1727442502,124634137,1886057615,-379345611,-1637575261,249268274,2044508324,-522852066,-1747789432,162941995,2125561021,-407360249,-1866523247,498536548,1789927666,-205950648,-2067906082,450548861,1843258603,-187386543,-2083289657,325883990,1684777152,-43845254,-1973040660,335633487,1661365465,-99664541,-1928851979,997073096,1281953886,-715111964,-1570279054,1006888145,1258607687,-770865667,-1526024853,901097722,1119000684,-608450090,-1396901568,853044451,1172266101,-589951537,-1412350631,651767980,1373503546,-925412992,-1076862698,565507253,1454621731,-809855591,-1195530993,671266974,1594198024,-972236366,-1324619484,795835527,1483230225,-1050600021,-1234817731,1994146192,31158534,-1731059524,-271249366,1907459465,112637215,-1614814043,-390540237,2013776290,251722036,-1777751922,-519137256,2137656763,141376813,-1855689577,-429695999,1802195444,476864866,-2056965928,-228458418,1812370925,453092731,-2113342271,-183516073,1706088902,314042704,-1950435094,-54949764,1658658271,366619977,-1932296973,-69972891,1303535960,984961486,-1547960204,-725929758,1256170817,1037604311,-1529756563,-740887301,1131014506,879679996,-1385723834,-631195440,1141124467,855842277,-1442165665,-586318647,1342533948,654459306,-1106571248,-921952122,1466479909,544179635,-1184443383,-832445281,1591671054,702138776,-1328506846,-942167884,1504918807,783551873,-1212326853,-1061524307,-306674912,-1698712650,62317068,1957810842,-355121351,-1647151185,81470997,1943803523,-480048366,-1805370492,225274430,2053790376,-468791541,-1828061283,167816743,2097651377,-267414716,-2029476910,503444072,1762050814,-144550051,-2140837941,426522225,1852507879,-19653770,-1982649376,282753626,1742555852,-105259153,-1900089351,397917763,1622183637,-690576408,-1580100738,953729732,1340076626,-776247311,-1497606297,1068828381,1219638859,-670225446,-1358292148,906185462,1090812512,-547295293,-1469587627,829329135,1181335161,-882789492,-1134132454,628085408,1382605366,-871598187,-1156888829,570562233,1426400815,-977650754,-1296233688,733239954,1555261956,-1026031705,-1244606671,752459403,1541320221,-1687895376,-328994266,1969922972,40735498,-1677130071,-351390145,1913087877,83908371,-1782625662,-491226604,2075208622,213261112,-1831694693,-438977011,2094854071,198958881,-2032938284,-237706686,1759359992,534414190,-2118248755,-155638181,1873836001,414664567,-2012718362,-15766928,1711684554,285281116,-1889165569,-127750551,1634467795,376229701,-1609899400,-686959890,1308918612,956543938,-1486412191,-799009033,1231636301,1047427035,-1362007478,-640263460,1088359270,936918e3,-1447252397,-558129467,1202900863,817233897,-1111625188,-893730166,1404277552,615818150,-1160759803,-841546093,1423857449,601450431,-1285129682,-1000256840,1567103746,711928724,-1274298825,-1022587231,1510334235,755167117],a=function(){function e(){var e=this;this.folders=[],this.files=[],this.addFolder=function(t){e.folders.push({path:t,created:new Date})}}return e.prototype.addFolders=function(e){e.forEach(this.addFolder)},e.prototype.addFile=function(e,t){this.files.push({path:e,created:new Date,content:t})},e.prototype.clearStream=function(){this.folders=[],this.files=[]},e.prototype.getContent=function(e){void 0===e&&(e="application/zip");var t=this.buildFileStream(),o=this.buildUint8Array(t);return this.clearStream(),new Blob([o],{type:e})},e.prototype.buildFileStream=function(e){void 0===e&&(e="");for(var t=this.folders.concat(this.files),o=t.length,n="",r=0,i=0,s=0,a=t;s<a.length;s++){var l=a[s],p=this.getHeader(l,r),u=p.fileHeader,c=p.folderHeader,d=p.content;r+=u.length+d.length,i+=c.length,e+=u+d,n+=c}return e+n+this.buildFolderEnd(o,i,r)},e.prototype.getHeader=function(e,t){var o=e.content,n=e.path,r=e.created,s=i._.utf8_encode,a=i._.decToHex,l=s(n),p=l!==n,u=this.convertTime(r),c=this.convertDate(r),d="";if(p){var h=a(1,1)+a(this.getFromCrc32Table(l),4)+l;d="up"+a(h.length,2)+h}var f="\n\0"+(p?"\0\b":"\0\0")+"\0\0"+a(u,2)+a(c,2)+a(o?this.getFromCrc32Table(o):0,4)+a(o?o.length:0,4)+a(o?o.length:0,4)+a(l.length,2)+a(d.length,2);return{fileHeader:"PK"+f+l+d,folderHeader:"PK\0"+f+"\0\0\0\0\0\0"+(o?"\0\0\0\0":"\0\0\0")+a(t,4)+l+d,content:o||""}},e.prototype.buildFolderEnd=function(e,t,o){var n=i._.decToHex;return"PK\0\0\0\0"+n(e,2)+n(e,2)+n(t,4)+n(o,4)+"\0\0"},e.prototype.buildUint8Array=function(e){for(var t=new Uint8Array(e.length),o=0;o<t.length;o++)t[o]=e.charCodeAt(o);return t},e.prototype.getFromCrc32Table=function(e,t){if(void 0===t&&(t=0),!e.length)return 0;t^=-1;for(var o=0,n=0;n<e.length;n++)o=e.charCodeAt(n),t=t>>>8^s[255&(t^o)];return~t},e.prototype.convertTime=function(e){var t=e.getHours();return t<<=6,t|=e.getMinutes(),(t<<=5)|e.getSeconds()/2},e.prototype.convertDate=function(e){var t=e.getFullYear()-1980;return t<<=4,t|=e.getMonth()+1,(t<<=5)|e.getDate()},n([r.Bean("zipContainer")],e)}();t.ZipContainer=a},38830:function(e,t,o){var n,r=this&&this.__extends||(n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])},n(e,t)},function(e,t){function o(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(o.prototype=t.prototype,new o)}),i=this&&this.__decorate||function(e,t,o,n){var r,i=arguments.length,s=i<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,n);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,o,s):r(t,o))||s);return i>3&&s&&Object.defineProperty(t,o,s),s},s=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0});var a=o(59804),l=o(33669),p=o(43510),u=new p.NumberSequence,c=function(e){function t(t){var o=e.call(this)||this;return o.childComponents=[],o.annotatedEventListeners=[],o.visible=!0,o.compId=u.next(),t&&o.setTemplate(t),o}return r(t,e),t.prototype.getCompId=function(){return this.compId},t.prototype.createChildComponentsFromTags=function(e){var t=this;p._.copyNodeList(e.childNodes).forEach((function(o){var n=t.getContext().createComponentFromElement(o,(function(e){t.copyAttributesFromNode(o,e.getGui())}));n?t.swapComponentForNode(n,e,o):o.childNodes&&t.createChildComponentsFromTags(o)}))},t.prototype.copyAttributesFromNode=function(e,t){p._.iterateNamedNodeMap(e.attributes,(function(e,o){t.setAttribute(e,o)}))},t.prototype.swapComponentForNode=function(e,t,o){var n=e.getGui();t.replaceChild(n,o),t.insertBefore(document.createComment(o.nodeName),n),this.childComponents.push(e),this.swapInComponentForQuerySelectors(e,o)},t.prototype.swapInComponentForQuerySelectors=function(e,t){for(var o=Object.getPrototypeOf(this),n=this;null!=o;){var r=o.__agComponentMetaData,i=o.constructor.name;r&&r[i]&&r[i].querySelectors&&r[i].querySelectors.forEach((function(o){n[o.attributeName]===t&&(n[o.attributeName]=e)})),o=Object.getPrototypeOf(o)}},t.prototype.setTemplate=function(e){var t=p._.loadTemplate(e);this.setTemplateFromElement(t)},t.prototype.setTemplateFromElement=function(e){this.eGui=e,this.eGui.__agComponent=this,this.addAnnotatedEventListeners(),this.wireQuerySelectors(),this.getContext()&&this.createChildComponentsFromTags(this.getGui())},t.prototype.createChildComponentsPreConstruct=function(){this.getGui()&&this.createChildComponentsFromTags(this.getGui())},t.prototype.wireQuerySelectors=function(){var e=this;if(this.eGui)for(var t=Object.getPrototypeOf(this),o=function(){var o=t.__agComponentMetaData,r=t.constructor.name;if(o&&o[r]&&o[r].querySelectors){var i=n;o[r].querySelectors.forEach((function(t){var o=e.eGui.querySelector(t.querySelector);if(o){var n=o.__agComponent;i[t.attributeName]=n||o}}))}t=Object.getPrototypeOf(t)},n=this;null!=t;)o()},t.prototype.addAnnotatedEventListeners=function(){var e=this;if(this.removeAnnotatedEventListeners(),this.eGui){var t=this.getAgComponentMetaData("listenerMethods");p._.missingOrEmpty(t)||(this.annotatedEventListeners||(this.annotatedEventListeners=[]),t.forEach((function(t){var o=e[t.methodName].bind(e);e.eGui.addEventListener(t.eventName,o),e.annotatedEventListeners.push({eventName:t.eventName,listener:o})})))}},t.prototype.getAgComponentMetaData=function(e){for(var t=[],o=Object.getPrototypeOf(this);null!=o;){var n=o.__agComponentMetaData,r=o.constructor.name;n&&n[r]&&n[r][e]&&(t=t.concat(n[r][e])),o=Object.getPrototypeOf(o)}return t},t.prototype.removeAnnotatedEventListeners=function(){var e=this;this.annotatedEventListeners&&this.eGui&&(this.annotatedEventListeners.forEach((function(t){e.eGui.removeEventListener(t.eventName,t.listener)})),this.annotatedEventListeners=[])},t.prototype.getGui=function(){return this.eGui},t.prototype.setGui=function(e){this.eGui=e},t.prototype.queryForHtmlElement=function(e){return this.eGui.querySelector(e)},t.prototype.queryForHtmlInputElement=function(e){return this.eGui.querySelector(e)},t.prototype.appendChild=function(e){if(p._.isNodeOrElement(e))this.eGui.appendChild(e);else{var t=e;this.eGui.appendChild(t.getGui()),this.childComponents.push(t)}},t.prototype.addFeature=function(e,t){e.wireBean(t),t.destroy&&this.addDestroyFunc(t.destroy.bind(t))},t.prototype.isVisible=function(){return this.visible},t.prototype.setVisible=function(e,o){var n="visibility"!==o;if(e!==this.visible){this.visible=e,p._.addOrRemoveCssClass(this.eGui,n?"ag-hidden":"ag-invisible",!e);var r={type:t.EVENT_VISIBLE_CHANGED,visible:this.visible};this.dispatchEvent(r)}},t.prototype.addOrRemoveCssClass=function(e,t){p._.addOrRemoveCssClass(this.eGui,e,t)},t.prototype.destroy=function(){e.prototype.destroy.call(this),this.childComponents.forEach((function(e){e&&e.destroy&&e.destroy()})),this.childComponents.length=0,this.removeAnnotatedEventListeners()},t.prototype.addGuiEventListener=function(e,t){var o=this;this.getGui().addEventListener(e,t),this.addDestroyFunc((function(){return o.getGui().removeEventListener(e,t)}))},t.prototype.addCssClass=function(e){p._.addCssClass(this.getGui(),e)},t.prototype.removeCssClass=function(e){p._.removeCssClass(this.getGui(),e)},t.prototype.getAttribute=function(e){var t=this.getGui();return t?t.getAttribute(e):null},t.prototype.getRefElement=function(e){return this.queryForHtmlElement('[ref="'+e+'"]')},t.EVENT_VISIBLE_CHANGED="visibleChanged",i([a.PreConstruct,s("design:type",Function),s("design:paramtypes",[]),s("design:returntype",void 0)],t.prototype,"createChildComponentsPreConstruct",null),t}(l.BeanStub);t.Component=c},39128:function(e,t,o){var n=this&&this.__decorate||function(e,t,o,n){var r,i=arguments.length,s=i<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,n);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,o,s):r(t,o))||s);return i>3&&s&&Object.defineProperty(t,o,s),s},r=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0});var i=o(44494),s=o(59804),a=o(99162),l=o(17074),p=o(47304),u=o(33018),c=o(43510),d=function(){function e(){this.activePopupElements=[]}return e.prototype.registerGridCore=function(e){this.gridCore=e},e.prototype.getDocument=function(){return this.gridOptionsWrapper.getDocument()},e.prototype.getPopupParent=function(){return this.gridOptionsWrapper.getPopupParent()||this.gridCore.getRootGui()},e.prototype.positionPopupForMenu=function(e){var t,o=e.eventSource.getBoundingClientRect(),n=this.getDocument(),r=this.getPopupParent();t=r===n.body?n.documentElement.getBoundingClientRect():r.getBoundingClientRect();var i=o.top-t.top;i=this.keepYWithinBounds(e,i);var s=e.ePopup.clientWidth>0?e.ePopup.clientWidth:200;e.ePopup.style.minWidth=s+"px";var a,l=t.right-t.left-s;function p(){return o.right-t.left-2}function u(){return o.left-t.left-s}this.gridOptionsWrapper.isEnableRtl()?((a=u())<0&&(a=p()),a>l&&(a=0)):((a=p())>l&&(a=u()),a<0&&(a=0)),e.ePopup.style.left=a+"px",e.ePopup.style.top=i+"px"},e.prototype.positionPopupUnderMouseEvent=function(e){var t=this.calculatePointerAlign(e.mouseEvent),o=t.x,n=t.y,r=e.ePopup,i=e.nudgeX,s=e.nudgeY;this.positionPopup({ePopup:r,x:o,y:n,nudgeX:i,nudgeY:s,keepWithinBounds:!0}),this.callPostProcessPopup(e.ePopup,null,e.mouseEvent,e.type,e.column,e.rowNode)},e.prototype.calculatePointerAlign=function(e){var t=this.getDocument(),o=this.getPopupParent(),n=o.getBoundingClientRect(),r=t.documentElement.getBoundingClientRect();return{x:e.clientX-(o===t.body?r.left:n.left),y:e.clientY-(o===t.body?r.top:n.top)}},e.prototype.positionPopupUnderComponent=function(e){var t,o=e.eventSource.getBoundingClientRect(),n=this.getDocument(),r=this.getPopupParent();t=r===n.body?n.documentElement.getBoundingClientRect():r.getBoundingClientRect(),this.positionPopup({ePopup:e.ePopup,minWidth:e.minWidth,minHeight:e.minHeight,nudgeX:e.nudgeX,nudgeY:e.nudgeY,x:o.left-t.left,y:o.top-t.top+o.height,keepWithinBounds:e.keepWithinBounds}),this.callPostProcessPopup(e.ePopup,e.eventSource,null,e.type,e.column,e.rowNode)},e.prototype.callPostProcessPopup=function(e,t,o,n,r,i){var s=this.gridOptionsWrapper.getPostProcessPopupFunc();s&&s({column:r,rowNode:i,ePopup:e,type:n,eventSource:t,mouseEvent:o})},e.prototype.positionPopupOverComponent=function(e){var t,o=e.eventSource.getBoundingClientRect(),n=this.getDocument(),r=this.getPopupParent();t=r===n.body?n.documentElement.getBoundingClientRect():r.getBoundingClientRect(),this.positionPopup({ePopup:e.ePopup,minWidth:e.minWidth,nudgeX:e.nudgeX,nudgeY:e.nudgeY,x:o.left-t.left,y:o.top-t.top,keepWithinBounds:e.keepWithinBounds}),this.callPostProcessPopup(e.ePopup,e.eventSource,null,e.type,e.column,e.rowNode)},e.prototype.positionPopup=function(e){var t=e.x,o=e.y;e.nudgeX&&(t+=e.nudgeX),e.nudgeY&&(o+=e.nudgeY),e.keepWithinBounds&&(t=this.keepXWithinBounds(e,t),o=this.keepYWithinBounds(e,o)),e.ePopup.style.left=t+"px",e.ePopup.style.top=o+"px"},e.prototype.keepYWithinBounds=function(e,t){var o=this.gridOptionsWrapper.getDocument(),n=o.documentElement,r=this.getPopupParent(),i=r.getBoundingClientRect(),s=o.documentElement.getBoundingClientRect(),a=r===o.body,l=Math.min(200,i.height),p=0;e.minHeight&&e.minHeight<l?l=e.minHeight:e.ePopup.offsetHeight>0&&(l=e.ePopup.clientHeight,p=c._.getAbsoluteHeight(e.ePopup)-l);var u=a?c._.getAbsoluteHeight(n)+n.scrollTop:i.height;a&&(u-=Math.abs(s.top-i.top));var d=u-l-p-3;return Math.min(Math.max(t,0),Math.abs(d))},e.prototype.keepXWithinBounds=function(e,t){var o=this.gridOptionsWrapper.getDocument(),n=o.documentElement,r=this.getPopupParent(),i=r.getBoundingClientRect(),s=o.documentElement.getBoundingClientRect(),a=r===o.body,l=Math.min(200,i.width),p=0;e.minWidth&&e.minWidth<l?l=e.minWidth:e.ePopup.clientWidth>0&&(l=e.ePopup.clientWidth,e.ePopup.style.minWidth=l+"px",p=c._.getAbsoluteWidth(e.ePopup)-l);var u=a?c._.getAbsoluteWidth(n)+n.scrollLeft:i.width;a&&(u-=Math.abs(s.left-i.left));var d=u-l-p-3;return Math.min(Math.max(t,0),Math.abs(d))},e.prototype.addAsModalPopup=function(e,t,o,n){return this.addPopup(!0,e,t,o,n)},e.prototype.addPopup=function(e,t,o,n,r){var s=this,a=this.gridOptionsWrapper.getDocument();if(!a)return console.warn("ag-grid: could not find the document, document is empty"),function(){};t.style.top="0px",t.style.left="0px";var l=this.getPopupParent();if(c._.isVisible(t)&&l.contains(t))return function(){};var p=document.createElement("div"),d=this.environment.getTheme();d&&c._.addCssClass(p,d),p.appendChild(t),l.appendChild(p),this.activePopupElements.push(t);var h=!1,f=function(e){(e.which||e.keyCode)===i.Constants.KEY_ESCAPE&&y(null)},g=function(e){y(e)},m=function(e){y(null,e)},y=function(e,o){s.isEventFromCurrentPopup(e,o,t)||s.isEventSameChainAsOriginalEvent(r,e,o)||h||(h=!0,l.removeChild(p),c._.removeFromArray(s.activePopupElements,t),a.removeEventListener("keydown",f),a.removeEventListener("click",g),a.removeEventListener("touchstart",m),a.removeEventListener("contextmenu",g),s.eventService.removeEventListener(u.Events.EVENT_DRAG_STARTED,g),n&&n())};return window.setTimeout((function(){o&&a.addEventListener("keydown",f),e&&(a.addEventListener("click",g),s.eventService.addEventListener(u.Events.EVENT_DRAG_STARTED,g),a.addEventListener("touchstart",m),a.addEventListener("contextmenu",g))}),0),y},e.prototype.isEventFromCurrentPopup=function(e,t,o){var n=e||t;if(n){for(var r=this.activePopupElements.indexOf(o);r<this.activePopupElements.length;r++){var i=this.activePopupElements[r];if(c._.isElementInEventPath(i,n))return!0}for(var s=n.target;s&&s!=document.body;){if(s.classList.contains("ag-custom-component-popup")||null===s.parentElement)return!0;s=s.parentElement}}return!1},e.prototype.isEventSameChainAsOriginalEvent=function(e,t,o){var n=null;if(t?n=t:o&&(n=o.touches[0]),n&&e){var r=t?t.screenX:0,i=t?t.screenY:0,s=Math.abs(e.screenX-r)<5,a=Math.abs(e.screenY-i)<5;if(s&&a)return!0}return!1},n([s.Autowired("gridOptionsWrapper"),r("design:type",a.GridOptionsWrapper)],e.prototype,"gridOptionsWrapper",void 0),n([s.Autowired("environment"),r("design:type",l.Environment)],e.prototype,"environment",void 0),n([s.Autowired("eventService"),r("design:type",p.EventService)],e.prototype,"eventService",void 0),n([s.Bean("popupService")],e)}();t.PopupService=d},41758:function(e,t,o){var n=this&&this.__decorate||function(e,t,o,n){var r,i=arguments.length,s=i<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,n);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,o,s):r(t,o))||s);return i>3&&s&&Object.defineProperty(t,o,s),s},r=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},i=this&&this.__param||function(e,t){return function(o,n){t(o,n,e)}};Object.defineProperty(t,"__esModule",{value:!0});var s=o(99162),a=o(12427),l=o(79705),p=o(46243),u=o(19135),c=o(71569),d=o(59804),h=o(5479),f=o(43510),g=function(){function e(){}return e.prototype.setBeans=function(e){this.logger=e.create("ColumnFactory")},e.prototype.createColumnTree=function(e,t,o){var n=new p.ColumnKeyCreator;if(o){var r=o.map((function(e){return e.getId()}));n.addExistingKeys(r)}var i=o?o.slice():null,s=this.recursivelyCreateColumns(e,0,t,i,n,null),a=this.findMaxDept(s,0);this.logger.log("Number of levels for grouped columns is "+a);var l=this.balanceColumnTree(s,0,a,n);return this.columnUtils.depthFirstOriginalTreeSearch(null,l,(function(e,t){e instanceof u.OriginalColumnGroup&&e.setupExpandable(),e.setOriginalParent(t)})),{columnTree:l,treeDept:a}},e.prototype.createForAutoGroups=function(e,t){var o=this,n=[];return e.forEach((function(e){var r=o.createAutoGroupTreeItem(t,e);n.push(r)})),n},e.prototype.createAutoGroupTreeItem=function(e,t){for(var o=t,n=this.findDepth(e)-1;n>=0;n--){var r=new u.OriginalColumnGroup(null,"FAKE_PATH_"+t.getId()+"}_"+n,!0,n);this.context.wireBean(r),r.setChildren([o]),o.setOriginalParent(r),o=r}return o},e.prototype.findDepth=function(e){for(var t=0,o=e;o&&o[0]&&o[0]instanceof u.OriginalColumnGroup;)t++,o=o[0].getChildren();return t},e.prototype.balanceColumnTree=function(e,t,o,n){for(var r=[],i=0;i<e.length;i++){var s=e[i];if(s instanceof u.OriginalColumnGroup){var a=s,l=this.balanceColumnTree(a.getChildren(),t+1,o,n);a.setChildren(l),r.push(a)}else{for(var p=void 0,c=void 0,d=o-1;d>=t;d--){var h=n.getUniqueKey(null,null),f=this.createMergedColGroupDef(null),g=new u.OriginalColumnGroup(f,h,!0,t);this.context.wireBean(g),c&&c.setChildren([g]),c=g,p||(p=c)}if(p){r.push(p);var m=e.some((function(e){return e instanceof u.OriginalColumnGroup}));if(m){c.setChildren([s]);continue}c.setChildren(e);break}r.push(s)}}return r},e.prototype.findMaxDept=function(e,t){for(var o=t,n=0;n<e.length;n++){var r=e[n];if(r instanceof u.OriginalColumnGroup){var i=r,s=this.findMaxDept(i.getChildren(),t+1);o<s&&(o=s)}}return o},e.prototype.recursivelyCreateColumns=function(e,t,o,n,r,i){var s=this,a=[];return e?(e.forEach((function(e){var l;l=s.isColumnGroup(e)?s.createColumnGroup(o,e,t,n,r,i):s.createColumn(o,e,n,r,i),a.push(l)})),a):a},e.prototype.createColumnGroup=function(e,t,o,n,r,i){var s=this.createMergedColGroupDef(t),a=r.getUniqueKey(s.groupId,null),l=new u.OriginalColumnGroup(s,a,!1,o);this.context.wireBean(l);var p=this.recursivelyCreateColumns(s.children,o+1,e,n,r,l);return l.setChildren(p),l},e.prototype.createMergedColGroupDef=function(e){var t={};return f._.assign(t,this.gridOptionsWrapper.getDefaultColGroupDef()),f._.assign(t,e),this.checkForDeprecatedItems(t),t},e.prototype.createColumn=function(e,t,o,n,r){var i=this.mergeColDefs(t);this.checkForDeprecatedItems(i);var s=this.findExistingColumn(t,o);if(s)s.setColDef(i,t);else{var a=n.getUniqueKey(i.colId,i.field);s=new c.Column(i,t,a,e),this.context.wireBean(s)}return s},e.prototype.findExistingColumn=function(e,t){var o=f._.find(t,(function(t){var o=t.getUserProvidedColDef();return!(!o||o!==e&&(null===o.colId||void 0===o.colId||o.colId!==e.colId))}));return o&&f._.removeFromArray(t,o),o},e.prototype.mergeColDefs=function(e){var t={};return f._.assign(t,this.gridOptionsWrapper.getDefaultColDef()),e.type&&this.assignColumnTypes(e,t),f._.assign(t,e),t},e.prototype.assignColumnTypes=function(e,t){var o;if(e.type instanceof Array)e.type.some((function(e){return"string"!=typeof e}))?console.warn("ag-grid: if colDef.type is supplied an array it should be of type 'string[]'"):o=e.type;else{if("string"!=typeof e.type)return void console.warn("ag-grid: colDef.type should be of type 'string' | 'string[]'");o=e.type.split(",")}var n=f._.assign({},this.gridOptionsWrapper.getColumnTypes(),h.DefaultColumnTypes);o.forEach((function(e){var o=n[e.trim()];o?f._.assign(t,o):console.warn("ag-grid: colDef.type '"+e+"' does not correspond to defined gridOptions.columnTypes")}))},e.prototype.checkForDeprecatedItems=function(e){if(e){var t=e;void 0!==t.group&&console.warn("ag-grid: colDef.group is invalid, please check documentation on how to do grouping as it changed in version 3"),void 0!==t.headerGroup&&console.warn("ag-grid: colDef.headerGroup is invalid, please check documentation on how to do grouping as it changed in version 3"),void 0!==t.headerGroupShow&&console.warn("ag-grid: colDef.headerGroupShow is invalid, should be columnGroupShow, please check documentation on how to do grouping as it changed in version 3"),void 0!==t.suppressRowGroup&&console.warn("ag-grid: colDef.suppressRowGroup is deprecated, please use colDef.type instead"),void 0!==t.suppressAggregation&&console.warn("ag-grid: colDef.suppressAggregation is deprecated, please use colDef.type instead"),(t.suppressRowGroup||t.suppressAggregation)&&console.warn("ag-grid: colDef.suppressAggregation and colDef.suppressRowGroup are deprecated, use allowRowGroup, allowPivot and allowValue instead"),t.displayName&&(console.warn("ag-grid: Found displayName "+t.displayName+", please use headerName instead, displayName is deprecated."),t.headerName=t.displayName)}},e.prototype.isColumnGroup=function(e){return void 0!==e.children},n([d.Autowired("gridOptionsWrapper"),r("design:type",s.GridOptionsWrapper)],e.prototype,"gridOptionsWrapper",void 0),n([d.Autowired("columnUtils"),r("design:type",l.ColumnUtils)],e.prototype,"columnUtils",void 0),n([d.Autowired("context"),r("design:type",d.Context)],e.prototype,"context",void 0),n([i(0,d.Qualifier("loggerFactory")),r("design:type",Function),r("design:paramtypes",[a.LoggerFactory]),r("design:returntype",void 0)],e.prototype,"setBeans",null),n([d.Bean("columnFactory")],e)}();t.ColumnFactory=g},42062:function(e,t,o){var n=this&&this.__decorate||function(e,t,o,n){var r,i=arguments.length,s=i<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,n);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,o,s):r(t,o))||s);return i>3&&s&&Object.defineProperty(t,o,s),s},r=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0});var i=o(59804),s=o(47304),a=o(33018),l=o(99162),p=o(81404),u=o(51890),c=o(21559),d=o(31551),h=o(24421),f=o(43510),g=function(){function e(){}return e.prototype.init=function(){this.eventService.addEventListener(a.Events.EVENT_COLUMN_PIVOT_MODE_CHANGED,this.clearFocusedCell.bind(this)),this.eventService.addEventListener(a.Events.EVENT_COLUMN_EVERYTHING_CHANGED,this.clearFocusedCell.bind(this)),this.eventService.addEventListener(a.Events.EVENT_COLUMN_GROUP_OPENED,this.clearFocusedCell.bind(this)),this.eventService.addEventListener(a.Events.EVENT_COLUMN_MOVED,this.clearFocusedCell.bind(this)),this.eventService.addEventListener(a.Events.EVENT_COLUMN_PINNED,this.clearFocusedCell.bind(this)),this.eventService.addEventListener(a.Events.EVENT_COLUMN_ROW_GROUP_CHANGED,this.clearFocusedCell.bind(this)),this.eventService.addEventListener(a.Events.EVENT_COLUMN_VISIBLE,this.clearFocusedCell.bind(this))},e.prototype.clearFocusedCell=function(){this.focusedCell=null,this.onCellFocused(!1)},e.prototype.getFocusedCell=function(){return this.focusedCell},e.prototype.getFocusCellToUseAfterRefresh=function(){return this.gridOptionsWrapper.isSuppressFocusAfterRefresh()?null:this.focusedCell&&this.getGridCellForDomElement(document.activeElement)?this.focusedCell:null},e.prototype.getGridCellForDomElement=function(e){for(var t=e;t;){var o=this.gridOptionsWrapper.getDomData(t,h.CellComp.DOM_DATA_KEY_CELL_COMP);if(o)return o.getGridCell();t=t.parentNode}return null},e.prototype.setFocusedCell=function(e,t,o,n){void 0===n&&(n=!1);var r=f._.makeNull(this.columnController.getGridColumn(t));this.focusedCell=new c.GridCell({rowIndex:e,floating:f._.makeNull(o),column:r}),this.onCellFocused(n)},e.prototype.isCellFocused=function(e){return!f._.missing(this.focusedCell)&&this.focusedCell.column===e.column&&this.isRowFocused(e.rowIndex,e.floating)},e.prototype.isRowNodeFocused=function(e){return this.isRowFocused(e.rowIndex,e.rowPinned)},e.prototype.isAnyCellFocused=function(){return!!this.focusedCell},e.prototype.isRowFocused=function(e,t){if(f._.missing(this.focusedCell))return!1;var o=f._.makeNull(t);return this.focusedCell.rowIndex===e&&this.focusedCell.floating===o},e.prototype.onCellFocused=function(e){var t={type:a.Events.EVENT_CELL_FOCUSED,forceBrowserFocus:e,rowIndex:null,column:null,floating:null,api:this.gridApi,columnApi:this.columnApi,rowPinned:null};this.focusedCell&&(t.rowIndex=this.focusedCell.rowIndex,t.column=this.focusedCell.column,t.rowPinned=this.focusedCell.floating),this.eventService.dispatchEvent(t)},n([i.Autowired("eventService"),r("design:type",s.EventService)],e.prototype,"eventService",void 0),n([i.Autowired("gridOptionsWrapper"),r("design:type",l.GridOptionsWrapper)],e.prototype,"gridOptionsWrapper",void 0),n([i.Autowired("columnController"),r("design:type",u.ColumnController)],e.prototype,"columnController",void 0),n([i.Autowired("columnApi"),r("design:type",p.ColumnApi)],e.prototype,"columnApi",void 0),n([i.Autowired("gridApi"),r("design:type",d.GridApi)],e.prototype,"gridApi",void 0),n([i.PostConstruct,r("design:type",Function),r("design:paramtypes",[]),r("design:returntype",void 0)],e.prototype,"init",null),n([i.Bean("focusedCellController")],e)}();t.FocusedCellController=g},42447:(e,t,o)=>{t.AgGridReact=o(99807).AgGridReact,o(70304).AgGridColumn},43510:(e,t,o)=>{Object.defineProperty(t,"__esModule",{value:!0});var n=o(44494),r=/((\/\/.*$)|(\/\*[\s\S]*?\*\/))/gm,i=/([^\s,]+)/g,s="__ag_Grid_Stop_Propagation",a=function(){function e(){this.timestamp=(new Date).getTime()}return e.prototype.print=function(e){var t=(new Date).getTime()-this.timestamp;console.info(e+" = "+t),this.timestamp=(new Date).getTime()},e}();t.Timer=a;var l={"&":"&","<":"<",">":">",'"':""","'":"'"},p=/[&<>"']/g,u=function(){function e(){}return e.doIeFocusHack=function(e){(t._.isBrowserIE()||t._.isBrowserEdge())&&(t._.missing(document.activeElement)||document.activeElement===document.body)&&e.focus()},e.doOnce=function(e,t){this.doOnceFlags[t]||(e(),this.doOnceFlags[t]=!0)},e.isLeftClick=function(e){return"buttons"in e?1==e.buttons:1==(e.which||e.button)},e.areEventsNear=function(e,t,o){if(0===o)return!1;var n=Math.abs(e.clientX-t.clientX),r=Math.abs(e.clientY-t.clientY);return Math.max(n,r)<=o},e.jsonEquals=function(e,t){return(e?JSON.stringify(e):null)===(t?JSON.stringify(t):null)},e.shallowCompare=function(e,t){if(this.missing(e)&&this.missing(t))return!0;if(this.missing(e)||this.missing(t))return!1;if(e.length!==t.length)return!1;for(var o=0;o<e.length;o++)if(e[o]!==t[o])return!1;return!0},e.getNameOfClass=function(e){var t=e.toString(),o=/function (.{1,})\(/.exec(t);return o&&o.length>1?o[1]:""},e.values=function(e){var t=[];return this.iterateObject(e,(function(e,o){t.push(o)})),t},e.getValueUsingField=function(e,t,o){if(t&&e){if(o){for(var n=t.split("."),r=e,i=0;i<n.length;i++)if(r=r[n[i]],this.missing(r))return null;return r}return e[t]}},e.getAbsoluteHeight=function(e){var t=window.getComputedStyle(e),o=parseFloat(t.marginTop)+parseFloat(t.marginBottom);return Math.ceil(e.offsetHeight+o)},e.getAbsoluteWidth=function(e){var t=window.getComputedStyle(e),o=parseFloat(t.marginLeft)+parseFloat(t.marginRight);return Math.ceil(e.offsetWidth+o)},e.getScrollLeft=function(e,t){var o=e.scrollLeft;return t&&(o=Math.abs(o),this.isBrowserChrome()&&(o=e.scrollWidth-e.clientWidth-o)),o},e.cleanNumber=function(e){return"string"==typeof e&&(e=parseInt(e,10)),"number"==typeof e?Math.floor(e):null},e.setScrollLeft=function(e,t,o){o&&((this.isBrowserSafari()||this.isBrowserChrome())&&(t=e.scrollWidth-e.clientWidth-t),this.isBrowserFirefox()&&(t*=-1)),e.scrollLeft=t},e.iterateNamedNodeMap=function(e,t){if(e)for(var o=0;o<e.length;o++){var n=e[o];t(n.name,n.value)}},e.iterateObject=function(e,t){if(e&&!this.missing(e))if(Array.isArray(e))e.forEach((function(e,o){t(o+"",e)}));else for(var o=Object.keys(e),n=0;n<o.length;n++){var r=o[n],i=e[r];t(r,i)}},e.cloneObject=function(e){for(var t={},o=Object.keys(e),n=0;n<o.length;n++){var r=o[n],i=e[r];t[r]=i}return t},e.deepCloneObject=function(e){return JSON.parse(JSON.stringify(e))},e.map=function(e,t){for(var o=[],n=0;n<e.length;n++){var r=t(e[n],n);o.push(r)}return o},e.mapObject=function(t,o){var n=[];return e.iterateObject(t,(function(e,t){n.push(o(t))})),n},e.forEach=function(e,t){if(e)for(var o=0;o<e.length;o++)t(e[o],o)},e.filter=function(e,t){var o=[];return e.forEach((function(e){t(e)&&o.push(e)})),o},e.getAllKeysInObjects=function(e){var t={};return e.forEach((function(e){e&&Object.keys(e).forEach((function(e){return t[e]=null}))})),Object.keys(t)},e.mergeDeep=function(t,o){this.exists(o)&&this.iterateObject(o,(function(o,n){var r=t[o];r!==n&&("object"==typeof r&&"object"==typeof n?e.mergeDeep(r,n):t[o]=n)}))},e.assign=function(e){for(var t=this,o=[],n=1;n<arguments.length;n++)o[n-1]=arguments[n];return o.forEach((function(o){t.exists(o)&&t.iterateObject(o,(function(t,o){e[t]=o}))})),e},e.parseYyyyMmDdToDate=function(e,t){try{if(!e)return null;if(-1===e.indexOf(t))return null;var o=e.split(t);return 3!=o.length?null:new Date(Number(o[0]),Number(o[1])-1,Number(o[2]))}catch(e){return null}},e.serializeDateToYyyyMmDd=function(t,o){return t?t.getFullYear()+o+e.pad(t.getMonth()+1,2)+o+e.pad(t.getDate(),2):null},e.pad=function(e,t){for(var o=e+"";o.length<t;)o="0"+o;return o},e.pushAll=function(e,t){this.missing(t)||this.missing(e)||t.forEach((function(t){return e.push(t)}))},e.createArrayOfNumbers=function(e,t){for(var o=[],n=e;n<=t;n++)o.push(n);return o},e.getFunctionParameters=function(e){var t=e.toString().replace(r,""),o=t.slice(t.indexOf("(")+1,t.indexOf(")")).match(i);return null===o?[]:o},e.find=function(e,t,o){if(null==e)return null;if(!Array.isArray(e)){var n=this.values(e);return this.find(n,t,o)}for(var r=e,i=null,s=0;s<r.length;s++){var a=r[s];if("string"==typeof t){if(a[t]===o){i=a;break}}else if(t(a)){i=a;break}}return i},e.toStrings=function(e){return this.map(e,(function(e){return null!=e&&e.toString?e.toString():null}))},e.iterateArray=function(e,t){for(var o=0;o<e.length;o++)t(e[o],o)},e.isNode=function(e){return"function"==typeof Node?e instanceof Node:e&&"object"==typeof e&&"number"==typeof e.nodeType&&"string"==typeof e.nodeName},e.isElement=function(e){return"function"==typeof HTMLElement?e instanceof HTMLElement:e&&"object"==typeof e&&null!==e&&1===e.nodeType&&"string"==typeof e.nodeName},e.isNodeOrElement=function(e){return this.isNode(e)||this.isElement(e)},e.copyNodeList=function(e){for(var t=e?e.length:0,o=[],n=0;n<t;n++)o.push(e[n]);return o},e.isEventFromPrintableCharacter=function(o){var r=String.fromCharCode(o.charCode);if(this.isKeyPressed(o,n.Constants.KEY_NEW_LINE))return!1;if(o.altKey||o.ctrlKey)return!1;if(t._.exists(o.key)){var i=1===o.key.length,s=e.isNumpadDelWithNumlockOnForEdgeOrIe(o);return i||s}return e.PRINTABLE_CHARACTERS.indexOf(r)>=0},e.isUserSuppressingKeyboardEvent=function(e,t,o,n,r){var i=e.getSuppressKeyboardEventFunc(),s=n.getColDef().suppressKeyboardEvent;if(!i&&!s)return!1;var a={event:t,editing:r,column:n,api:e.getApi(),node:o,data:o.data,colDef:n.getColDef(),context:e.getContext(),columnApi:e.getColumnApi()};return!(!s||!s(a))||!!i&&i(a)},e.getCellCompForEvent=function(e,t){for(var o=this.getTarget(t);o;){var n=e.getDomData(o,"cellComp");if(n)return n;o=o.parentElement}return null},e.addChangeListener=function(e,t){e.addEventListener("changed",t),e.addEventListener("paste",t),e.addEventListener("input",t),e.addEventListener("keydown",t),e.addEventListener("keyup",t)},e.makeNull=function(e){return null==e||""===e?null:e},e.missing=function(e){return!this.exists(e)},e.missingOrEmpty=function(e){return!e||this.missing(e)||0===e.length},e.missingOrEmptyObject=function(e){return this.missing(e)||0===Object.keys(e).length},e.exists=function(e,t){return void 0===t&&(t=!1),null!=e&&(""!==e||t)},e.firstExistingValue=function(){for(var e=[],o=0;o<arguments.length;o++)e[o]=arguments[o];for(var n=0;n<e.length;n++){var r=e[n];if(t._.exists(r))return r}return null},e.anyExists=function(e){if(e)for(var t=0;t<e.length;t++)if(this.exists(e[t]))return!0;return!1},e.existsAndNotEmpty=function(e){return null!=e&&this.exists(e)&&e.length>0},e.clearElement=function(e){for(;e&&e.firstChild;)e.removeChild(e.firstChild)},e.removeElement=function(e,t){this.removeFromParent(e.querySelector(t))},e.removeFromParent=function(e){e&&e.parentNode&&e.parentNode.removeChild(e)},e.isVisible=function(e){return null!==e.offsetParent},e.loadTemplate=function(e){var t=document.createElement("div");return t.innerHTML=e,t.firstChild},e.appendHtml=function(e,t){e.lastChild?e.insertAdjacentHTML("afterbegin",t):e.innerHTML=t},e.addOrRemoveCssClass=function(e,t,o){o?this.addCssClass(e,t):this.removeCssClass(e,t)},e.callIfPresent=function(e){e&&e()},e.addCssClass=function(e,t){var o=this;if(t&&0!==t.length)if(t.indexOf(" ")>=0)t.split(" ").forEach((function(t){return o.addCssClass(e,t)}));else if(e.classList)e.classList.contains(t)||e.classList.add(t);else if(e.className&&e.className.length>0){var n=e.className.split(" ");n.indexOf(t)<0&&(n.push(t),e.setAttribute("class",n.join(" ")))}else e.setAttribute("class",t)},e.containsClass=function(e,t){if(e.classList)return e.classList.contains(t);if(e.className){var o=e.className===t,n=e.className.indexOf(" "+t+" ")>=0,r=0===e.className.indexOf(t+" "),i=e.className.lastIndexOf(" "+t)===e.className.length-t.length-1;return o||n||r||i}return!1},e.getElementAttribute=function(e,t){return e.attributes&&e.attributes[t]?e.attributes[t].value:null},e.offsetHeight=function(e){return e&&e.clientHeight?e.clientHeight:0},e.offsetWidth=function(e){return e&&e.clientWidth?e.clientWidth:0},e.sortNumberArray=function(e){e.sort((function(e,t){return e-t}))},e.removeCssClass=function(e,t){if(e.classList)e.classList.contains(t)&&e.classList.remove(t);else if(e.className&&e.className.length>0){var o=e.className.split(" ");if(o.indexOf(t)>=0){for(;o.indexOf(t)>=0;)o.splice(o.indexOf(t),1);e.setAttribute("class",o.join(" "))}}},e.removeRepeatsFromArray=function(e,t){if(e)for(var o=e.length-2;o>=0;o--){var n=e[o]===t,r=e[o+1]===t;n&&r&&e.splice(o+1,1)}},e.removeFromArray=function(e,t){e.indexOf(t)>=0&&e.splice(e.indexOf(t),1)},e.removeAllFromArray=function(e,t){t.forEach((function(t){e.indexOf(t)>=0&&e.splice(e.indexOf(t),1)}))},e.insertIntoArray=function(e,t,o){e.splice(o,0,t)},e.insertArrayIntoArray=function(e,t,o){if(!this.missing(e)&&!this.missing(t))for(var n=t.length-1;n>=0;n--){var r=t[n];this.insertIntoArray(e,r,o)}},e.moveInArray=function(e,t,o){var n=this;t.forEach((function(t){n.removeFromArray(e,t)})),t.slice().reverse().forEach((function(t){n.insertIntoArray(e,t,o)}))},e.defaultComparator=function(e,t,o){void 0===o&&(o=!1);var n=null==e,r=null==t;if(e&&e.toNumber&&(e=e.toNumber()),t&&t.toNumber&&(t=t.toNumber()),n&&r)return 0;if(n)return-1;if(r)return 1;if("string"==typeof e){if(!o)return i(e,t);try{return e.localeCompare(t)}catch(o){return i(e,t)}}return e<t?-1:e>t?1:0;function i(e,t){return e>t?1:e<t?-1:0}},e.compareArrays=function(e,t){if(this.missing(e)&&this.missing(t))return!0;if(this.missing(e)||this.missing(t)||!e||!t)return!1;if(e.length!==t.length)return!1;for(var o=0;o<e.length;o++)if(e[o]!==t[o])return!1;return!0},e.ensureDomOrder=function(e,t,o){o&&o.nextSibling===t||(o?o.nextSibling?e.insertBefore(t,o.nextSibling):e.appendChild(t):e.firstChild&&e.firstChild!==t&&e.insertAdjacentElement("afterbegin",t))},e.insertWithDomOrder=function(e,t,o){o?o.nextSibling?e.insertBefore(t,o.nextSibling):e.appendChild(t):e.firstChild?e.insertBefore(t,e.firstChild):e.appendChild(t)},e.insertTemplateWithDomOrder=function(e,t,o){var n;return o?(o.insertAdjacentHTML("afterend",t),n=o.nextSibling):(e.firstChild?e.insertAdjacentHTML("afterbegin",t):e.innerHTML=t,n=e.firstChild),n},e.every=function(e,t){if(!e||0===e.length)return!0;for(var o=0;o<e.length;o++)if(!t(e[o]))return!1;return!0},e.toStringOrNull=function(e){return this.exists(e)&&e.toString?e.toString():null},e.formatSize=function(e){return"number"==typeof e?e+"px":e},e.formatNumberTwoDecimalPlacesAndCommas=function(e){return"number"!=typeof e?"":(Math.round(100*e)/100).toString().replace(/(\d)(?=(\d{3})+(?!\d))/g,"$1,")},e.formatNumberCommas=function(e){return"number"!=typeof e?"":e.toString().replace(/(\d)(?=(\d{3})+(?!\d))/g,"$1,")},e.prependDC=function(e,t){this.exists(e.firstChild)?e.insertBefore(t,e.firstChild):e.appendChild(t)},e.createIcon=function(e,t,o){var n=this.createIconNoSpan(e,t,o);if(n.className.indexOf("ag-icon")>-1)return n;var r=document.createElement("span");return r.appendChild(n),r},e.createIconNoSpan=function(e,t,o){var n=null,r=o&&o.getColDef().icons?o.getColDef().icons:null;if(r&&(n=r[e]),!n&&t.getIcons()&&(n=t.getIcons()[e]),n){var i=void 0;if("function"==typeof n)i=n();else{if("string"!=typeof n)throw new Error("icon from grid options needs to be a string or a function");i=n}if("string"==typeof i)return this.loadTemplate(i);if(this.isNodeOrElement(i))return i;throw new Error("iconRenderer should return back a string or a dom object")}var s=document.createElement("span"),a=this.iconNameClassMap[e];if(!a)throw new Error(e+" did not find class");return s.setAttribute("class","ag-icon ag-icon-"+a),s.setAttribute("unselectable","on"),s},e.addStylesToElement=function(e,t){var o=this;t&&Object.keys(t).forEach((function(n){var r=o.hyphenToCamelCase(n);r&&(e.style[r]=t[n])}))},e.isHorizontalScrollShowing=function(e){return e.clientWidth<e.scrollWidth},e.isVerticalScrollShowing=function(e){return e.clientHeight<e.scrollHeight},e.getMaxDivHeight=function(){if(!document.body)return-1;var e=1e6,t=navigator.userAgent.toLowerCase().match(/firefox/)?6e6:1e9,o=this.loadTemplate("<div/>");for(document.body.appendChild(o);;){var n=2*e;if(o.style.height=n+"px",n>t||o.clientHeight!==n)break;e=n}return document.body.removeChild(o),e},e.getScrollbarWidth=function(){var e=document.createElement("div");e.style.visibility="hidden",e.style.width="100px",e.style.msOverflowStyle="scrollbar",document.body.appendChild(e);var t=e.offsetWidth;e.style.overflow="scroll";var o=document.createElement("div");o.style.width="100%",e.appendChild(o);var n=o.offsetWidth;return e.parentNode&&e.parentNode.removeChild(e),t-n},e.hasOverflowScrolling=function(){var e=["webkit","moz","o","ms"],t=document.createElement("div"),o=!1;document.getElementsByTagName("body")[0].appendChild(t),t.setAttribute("style",e.map((function(e){return"-"+e+"-overflow-scrolling: touch"})).concat("overflow-scrolling: touch").join(";"));var n=window.getComputedStyle(t);if("touch"===n.overflowScrolling&&(o=!0),!o)for(var r=0,i=e;r<i.length;r++)if("touch"===n[i[r]+"OverflowScrolling"]){o=!0;break}return t.parentNode&&t.parentNode.removeChild(t),o},e.isKeyPressed=function(e,t){return(e.which||e.keyCode)===t},e.setVisible=function(e,t){this.addOrRemoveCssClass(e,"ag-hidden",!t)},e.setHidden=function(e,t){this.addOrRemoveCssClass(e,"ag-invisible",t)},e.setFixedWidth=function(e,t){t=this.formatSize(t),e.style.width=t,e.style.maxWidth=t,e.style.minWidth=t},e.setFixedHeight=function(e,t){t=this.formatSize(t),e.style.height=t,e.style.maxHeight=t,e.style.minHeight=t},e.isBrowserIE=function(){return void 0===this.isIE&&(this.isIE=!!document.documentMode),this.isIE},e.isBrowserEdge=function(){return void 0===this.isEdge&&(this.isEdge=!this.isBrowserIE()&&!!window.StyleMedia),this.isEdge},e.isBrowserSafari=function(){if(void 0===this.isSafari){var e=window;this.isSafari=Object.prototype.toString.call(e.HTMLElement).indexOf("Constructor")>0||!!(t=!e.safari||e.safari.pushNotification)&&"[object SafariRemoteNotification]"===t.toString()}var t;return this.isSafari},e.isBrowserChrome=function(){if(void 0===this.isChrome){var e=window;this.isChrome=!!e.chrome&&(!!e.chrome.webstore||!!e.chrome.runtime)||/Chrome/.test(navigator.userAgent)&&/Google Inc/.test(navigator.vendor)}return this.isChrome},e.isBrowserFirefox=function(){if(void 0===this.isFirefox){var e=window;this.isFirefox=void 0!==e.InstallTrigger}return this.isFirefox},e.isUserAgentIPad=function(){return void 0===this.isIPad&&(this.isIPad=null!=navigator.userAgent.match(/iPad|iPhone/i)),this.isIPad},e.getTarget=function(e){var t=e;return t.target||t.srcElement},e.isElementChildOfClass=function(e,t,o){for(var n=0;e;){if(this.containsClass(e,t))return!0;if(e=e.parentElement,o&&++n>o)break}return!1},e.isElementInEventPath=function(e,o){return!(!o||!e)&&t._.getEventPath(o).indexOf(e)>=0},e.isFunction=function(e){return!!(e&&e.constructor&&e.call&&e.apply)},e.createEventPath=function(e){for(var o=[],n=t._.getTarget(e);n;)o.push(n),n=n.parentElement;return o},e.addAgGridEventPath=function(e){e.__agGridEventPath=this.getEventPath(e)},e.getEventPath=function(e){var t=e;return t.deepPath?t.deepPath():t.path?t.path:t.composedPath?t.composedPath():t.__agGridEventPath?t.__agGridEventPath:this.createEventPath(e)},e.forEachSnapshotFirst=function(e,t){e&&e.slice(0).forEach(t)},e.getBodyWidth=function(){return document.body?document.body.clientWidth:window.innerHeight?window.innerWidth:document.documentElement&&document.documentElement.clientWidth?document.documentElement.clientWidth:-1},e.getBodyHeight=function(){return document.body?document.body.clientHeight:window.innerHeight?window.innerHeight:document.documentElement&&document.documentElement.clientHeight?document.documentElement.clientHeight:-1},e.setCheckboxState=function(e,t){"boolean"==typeof t?(e.checked=t,e.indeterminate=!1):e.indeterminate=!0},e.traverseNodesWithKey=function(e,t){var o=[];!function e(n){n.forEach((function(n){if(n.group||n.hasChildren()){o.push(n.key);var r=o.join("|");t(n,r),e(n.childrenAfterGroup),o.pop()}}))}(e)},e.camelCaseToHyphen=function(e){return null==e?null:e.replace(/([A-Z])/g,(function(e){return"-"+e[0].toLowerCase()}))},e.hyphenToCamelCase=function(e){return null==e?null:e.replace(/-([a-z])/g,(function(e){return e[1].toUpperCase()}))},e.cssStyleObjectToMarkup=function(e){var t=this;if(!e)return"";var o=[];return this.iterateObject(e,(function(e,n){var r=t.camelCaseToHyphen(e);o.push(r+": "+n+";")})),o.join(" ")},e.isNumeric=function(e){return""!==e&&!isNaN(parseFloat(e))&&isFinite(e)},e.escape=function(e){return null!=e&&e.replace?e.replace(p,(function(e){return l[e]})):e},e.normalizeWheel=function(e){var t=0,o=0,n=0,r=0;return"detail"in e&&(o=e.detail),"wheelDelta"in e&&(o=-e.wheelDelta/120),"wheelDeltaY"in e&&(o=-e.wheelDeltaY/120),"wheelDeltaX"in e&&(t=-e.wheelDeltaX/120),"axis"in e&&e.axis===e.HORIZONTAL_AXIS&&(t=o,o=0),n=10*t,r=10*o,"deltaY"in e&&(r=e.deltaY),"deltaX"in e&&(n=e.deltaX),(n||r)&&e.deltaMode&&(1==e.deltaMode?(n*=40,r*=40):(n*=800,r*=800)),n&&!t&&(t=n<1?-1:1),r&&!o&&(o=r<1?-1:1),{spinX:t,spinY:o,pixelX:n,pixelY:r}},e.debounce=function(e,t,o){var n;return void 0===o&&(o=!1),function(){for(var r=[],i=0;i<arguments.length;i++)r[i]=arguments[i];var s=this,a=o&&!n;window.clearTimeout(n),n=window.setTimeout((function(){n=null,o||e.apply(s,r)}),t),a&&e.apply(s,r)}},e.stopPropagationForAgGrid=function(e){e[s]=!0},e.isStopPropagationForAgGrid=function(e){return!0===e[s]},e.executeInAWhile=function(e){this.executeAfter(e,400)},e.executeNextVMTurn=function(e){this.executeAfter(e,0)},e.executeAfter=function(e,t){e.length>0&&window.setTimeout((function(){e.forEach((function(e){return e()}))}),t)},e.referenceCompare=function(e,t){return null==e&&null==t||(null!=e||!t)&&(!e||null!=t)&&e===t},e.get=function(t,o,n){if(null==t)return n;if(o.indexOf(".")>-1){var r=o.split(".");return null!=(i=t[r[0]])?e.get(i,r.slice(1,r.length).join("."),n):n}var i;return null!=(i=t[o])?i:n},e.addSafePassiveEventListener=function(t,o,n,r){-1!==e.passiveEvents.indexOf(o)&&(void 0===r?r={}:"boolean"==typeof r&&(r={capture:r}),r.passive=!0),t.addEventListener(o,n,r)},e.camelCaseToHumanText=function(e){return e&&null!=e?e.replace(/([A-Z])([A-Z])([a-z])|([a-z])([A-Z])/g,"$1$4 $2$3$5").replace("."," ").split(" ").map((function(e){return e.substring(0,1).toUpperCase()+(e.length>1?e.substring(1,e.length):"")})).join(" "):null},e.message=function(e){var t=document.createElement("div");t.innerHTML=e;var o=document.querySelector("#__ag__message");o||(o=this.loadTemplate('<div id="__ag__message" style="display: inline-block; position: absolute; top: 0px; left: 0px; color: white; background-color: black; z-index: 20; padding: 2px; border: 1px solid darkred; height: 200px; overflow-y: auto;"></div>'),document.body&&document.body.appendChild(o)),o.insertBefore(t,o.children[0])},e.sortRowNodesByOrder=function(e,t){if(e){for(var o=function(e,o){var n=t[e.id],r=t[o.id],i=void 0!==n,s=void 0!==r;return i&&s?n-r:i||s?i?1:-1:e.__objectId-o.__objectId},n=!1,r=0;r<e.length-1;r++)if(o(e[r],e[r+1])>0){n=!0;break}n&&e.sort(o)}},e.fuzzyCheckStrings=function(e,t,o){var n=this,r={},i=e.filter((function(e){return!t.some((function(t){return t===e}))}));return i.length>0&&i.forEach((function(e){return r[e]=n.fuzzySuggestions(e,t,o)})),r},e.fuzzySuggestions=function(e,o,n){var r=n.slice(0);return r.sort((function(o,n){var r=t._.string_similarity(o.toLowerCase(),e.toLowerCase()),i=t._.string_similarity(n.toLowerCase(),e.toLowerCase());return r>i?-1:r===i?0:1})),r},e.get_bigrams=function(e){var t,o,n,r=e.toLowerCase(),i=new Array(r.length-1);for(t=o=0,n=i.length;o<=n;t=o+=1)i[t]=r.slice(t,t+2);return i},e.isNumpadDelWithNumlockOnForEdgeOrIe=function(t){return!(!e.isBrowserEdge()&&!e.isBrowserIE())&&t.key===e.NUMPAD_DEL_NUMLOCK_ON_KEY&&t.charCode===e.NUMPAD_DEL_NUMLOCK_ON_CHARCODE},e.bindCellRendererToHtmlElement=function(e,t){e.then((function(e){var o=e.getGui();null!=o&&("object"==typeof o?t.appendChild(o):t.innerHTML=o)}))},e.PRINTABLE_CHARACTERS="qwertyuiopasdfghjklzxcvbnmQWERTYUIOPASDFGHJKLZXCVBNM1234567890!\"£$%^&*()_+-=[];'#,./\\|<>?:@~{}",e.NUMPAD_DEL_NUMLOCK_ON_KEY="Del",e.NUMPAD_DEL_NUMLOCK_ON_CHARCODE=46,e.doOnceFlags={},e.compose=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return function(t){return e.reduce((function(e,t){return t(e)}),t)}},e.decToHex=function(e,t){for(var o="",n=0;n<t;n++)o+=String.fromCharCode(255&e),e>>>=8;return o},e.utf8_encode=function(e){for(var t="",o=0,n=(e=e.replace(/\r\n/g,"\n")).length;o<n;o++){var r=e.charCodeAt(o);r<128?t+=String.fromCharCode(r):r>127&&r<2048?(t+=String.fromCharCode(r>>6|192),t+=String.fromCharCode(63&r|128)):(t+=String.fromCharCode(r>>12|224),t+=String.fromCharCode(r>>6&63|128),t+=String.fromCharCode(63&r|128))}return t},e.iconNameClassMap={columnGroupOpened:"expanded",columnGroupClosed:"contracted",columnSelectClosed:"tree-closed",columnSelectOpen:"tree-open",columnMovePin:"pin",columnMoveAdd:"plus",columnMoveHide:"eye-slash",columnMoveMove:"arrows",columnMoveLeft:"left",columnMoveRight:"right",columnMoveGroup:"group",columnMoveValue:"aggregation",columnMovePivot:"pivot",dropNotAllowed:"not-allowed",groupContracted:"expanded",groupExpanded:"contracted",checkboxChecked:"checkbox-checked",checkboxUnchecked:"checkbox-unchecked",checkboxIndeterminate:"checkbox-indeterminate",checkboxCheckedReadOnly:"checkbox-checked-readonly",checkboxUncheckedReadOnly:"checkbox-unchecked-readonly",checkboxIndeterminateReadOnly:"checkbox-indeterminate-readonly",groupLoading:"loading",menu:"menu",filter:"filter",columns:"columns",menuPin:"pin",menuValue:"aggregation",menuAddRowGroup:"group",menuRemoveRowGroup:"group",clipboardCopy:"copy",clipboardCut:"cut",clipboardPaste:"paste",pivotPanel:"pivot",rowGroupPanel:"group",valuePanel:"aggregation",columnDrag:"column-drag",rowDrag:"row-drag",sortAscending:"asc",sortDescending:"desc",sortUnSort:"none"},e.passiveEvents=["touchstart","touchend","touchmove","touchcancel"],e.string_similarity=function(t,o){if(t.length>0&&o.length>0){var n,r=e.get_bigrams(t),i=e.get_bigrams(o),s=r.length+i.length,a=0,l=void 0;for(l=0,n=r.length;l<n;l++){var p,u=r[l],c=void 0;for(c=0,p=i.length;c<p;c++)u===i[c]&&a++}if(a>0)return 2*a/s}return 0},e}();t.Utils=u;var c,d=function(){function e(e,t){void 0===e&&(e=0),void 0===t&&(t=1),this.nextValue=e,this.step=t}return e.prototype.next=function(){var e=this.nextValue;return this.nextValue+=this.step,e},e.prototype.peek=function(){return this.nextValue},e.prototype.skip=function(e){this.nextValue+=e},e}();t.NumberSequence=d,t._=u,function(e){e[e.IN_PROGRESS=0]="IN_PROGRESS",e[e.RESOLVED=1]="RESOLVED"}(c=t.PromiseStatus||(t.PromiseStatus={}));var h=function(){function e(e){this.status=c.IN_PROGRESS,this.resolution=null,this.listOfWaiters=[],e(this.onDone.bind(this),this.onReject.bind(this))}return e.all=function(t){return new e((function(e){var o=[],n=t.length;t.forEach((function(t,r){t.then((function(t){n--,o[r]=t,0==n&&e(o)})),o.push(null)}))}))},e.resolve=function(t){return new e((function(e){return e(t)}))},e.external=function(){var t;return{promise:new e((function(e){t=e})),resolve:function(e){t(e)}}},e.prototype.then=function(e){this.status===c.IN_PROGRESS?this.listOfWaiters.push(e):e(this.resolution)},e.prototype.firstOneOnly=function(e){this.status===c.IN_PROGRESS?0===this.listOfWaiters.length&&this.listOfWaiters.push(e):e(this.resolution)},e.prototype.map=function(t){var o=this;return new e((function(e){o.then((function(o){e(t(o))}))}))},e.prototype.resolveNow=function(e,t){return this.status==c.IN_PROGRESS?e:t(this.resolution)},e.prototype.onDone=function(e){this.status=c.RESOLVED,this.resolution=e,this.listOfWaiters.forEach((function(t){return t(e)}))},e.prototype.onReject=function(e){console.warn("TBI")},e}();t.Promise=h},43598:function(e,t,o){var n=this&&this.__decorate||function(e,t,o,n){var r,i=arguments.length,s=i<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,n);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,o,s):r(t,o))||s);return i>3&&s&&Object.defineProperty(t,o,s),s},r=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0});var i=o(59804),s=o(99162),a=o(43510),l=function(){function e(){}return e.prototype.init=function(){this.groupSelectsChildren=this.gridOptionsWrapper.isGroupSelectsChildren(),this.isRowSelectableFunc=this.gridOptionsWrapper.getIsRowSelectableFunc()},e.prototype.updateSelectableAfterGrouping=function(e){this.isRowSelectableFunc&&this.recurseDown(e.childrenAfterGroup,(function(e){return e.childrenAfterGroup}))},e.prototype.updateSelectableAfterFiltering=function(e){this.isRowSelectableFunc&&this.recurseDown(e.childrenAfterGroup,(function(e){return e.childrenAfterFilter}))},e.prototype.recurseDown=function(e,t){var o=this;e.forEach((function(e){if(e.group){var n;if(e.hasChildren()&&o.recurseDown(t(e),t),o.groupSelectsChildren){var r=a._.find(t(e),"selectable",!0);n=a._.exists(r)}else n=!!o.isRowSelectableFunc&&o.isRowSelectableFunc(e);e.setRowSelectable(n)}}))},n([i.Autowired("gridOptionsWrapper"),r("design:type",s.GridOptionsWrapper)],e.prototype,"gridOptionsWrapper",void 0),n([i.PostConstruct,r("design:type",Function),r("design:paramtypes",[]),r("design:returntype",void 0)],e.prototype,"init",null),n([i.Bean("selectableService")],e)}();t.SelectableService=l},43980:function(e,t,o){var n,r=this&&this.__extends||(n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])},n(e,t)},function(e,t){function o(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(o.prototype=t.prototype,new o)}),i=this&&this.__decorate||function(e,t,o,n){var r,i=arguments.length,s=i<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,n);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,o,s):r(t,o))||s);return i>3&&s&&Object.defineProperty(t,o,s),s},s=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0});var a=o(33669),l=o(59804),p=o(47304),u=o(64339),c=o(43510),d=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.scrollY=0,t.uiBodyHeight=0,t}return r(t,e),t.prototype.postConstruct=function(){this.addDestroyableEventListener(this.eventService,u.Events.EVENT_BODY_HEIGHT_CHANGED,this.updateOffset.bind(this)),this.scrollBarWidth=c._.getScrollbarWidth(),this.maxDivHeight=c._.getMaxDivHeight()},t.prototype.registerGridComp=function(e){this.gridPanel=e},t.prototype.isScaling=function(){return this.scaling},t.prototype.getOffset=function(){return this.offset},t.prototype.updateOffset=function(){if(this.scaling){var e=this.gridPanel.getVScrollPosition().top,t=this.getUiBodyHeight();(e!==this.scrollY||t!==this.uiBodyHeight)&&(this.scrollY=e,this.uiBodyHeight=t,this.calculateOffset())}},t.prototype.calculateOffset=function(){this.uiContainerHeight=this.maxDivHeight,this.pixelsToShave=this.modelHeight-this.uiContainerHeight,this.maxScrollY=this.uiContainerHeight-this.uiBodyHeight;var e=this.scrollY/this.maxScrollY;this.setOffset(e*this.pixelsToShave)},t.prototype.clearOffset=function(){this.uiContainerHeight=this.modelHeight,this.pixelsToShave=0,this.setOffset(0)},t.prototype.setOffset=function(e){var t="number"==typeof e?Math.floor(e):null;this.offset!==t&&(this.offset=t,this.eventService.dispatchEvent({type:u.Events.EVENT_HEIGHT_SCALE_CHANGED}))},t.prototype.setModelHeight=function(e){this.modelHeight=e,this.scaling=this.maxDivHeight>0&&e>this.maxDivHeight,this.scaling?this.calculateOffset():this.clearOffset()},t.prototype.getUiContainerHeight=function(){return this.uiContainerHeight},t.prototype.getRealPixelPosition=function(e){return e-this.offset},t.prototype.getUiBodyHeight=function(){var e=this.gridPanel.getVScrollPosition();return e.bottom-e.top},t.prototype.getScrollPositionForPixel=function(e){if(this.pixelsToShave<=0)return e;var t=e/(this.modelHeight-this.getUiBodyHeight());return this.maxScrollY*t},i([l.Autowired("eventService"),s("design:type",p.EventService)],t.prototype,"eventService",void 0),i([l.PostConstruct,s("design:type",Function),s("design:paramtypes",[]),s("design:returntype",void 0)],t.prototype,"postConstruct",null),i([l.Bean("maxDivHeightScaler")],t)}(a.BeanStub);t.MaxDivHeightScaler=d},44494:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0});var o=function(){function e(){}return e.STEP_EVERYTHING=0,e.STEP_FILTER=1,e.STEP_SORT=2,e.STEP_MAP=3,e.STEP_AGGREGATE=4,e.STEP_PIVOT=5,e.ROW_BUFFER_SIZE=10,e.LAYOUT_INTERVAL=500,e.BATCH_WAIT_MILLIS=50,e.EXPORT_TYPE_DRAG_COPY="dragCopy",e.EXPORT_TYPE_CLIPBOARD="clipboard",e.EXPORT_TYPE_EXCEL="excel",e.EXPORT_TYPE_CSV="csv",e.KEY_BACKSPACE=8,e.KEY_TAB=9,e.KEY_NEW_LINE=10,e.KEY_ENTER=13,e.KEY_SHIFT=16,e.KEY_ESCAPE=27,e.KEY_SPACE=32,e.KEY_LEFT=37,e.KEY_UP=38,e.KEY_RIGHT=39,e.KEY_DOWN=40,e.KEY_DELETE=46,e.KEY_A=65,e.KEY_C=67,e.KEY_V=86,e.KEY_D=68,e.KEY_F2=113,e.KEY_PAGE_UP=33,e.KEY_PAGE_DOWN=34,e.KEY_PAGE_HOME=36,e.KEY_PAGE_END=35,e.ROW_MODEL_TYPE_INFINITE="infinite",e.ROW_MODEL_TYPE_VIEWPORT="viewport",e.ROW_MODEL_TYPE_CLIENT_SIDE="clientSide",e.ROW_MODEL_TYPE_SERVER_SIDE="serverSide",e.DEPRECATED_ROW_MODEL_TYPE_NORMAL="normal",e.ALWAYS="always",e.ONLY_WHEN_GROUPING="onlyWhenGrouping",e.PINNED_TOP="top",e.PINNED_BOTTOM="bottom",e.DOM_LAYOUT_NORMAL="normal",e.DOM_LAYOUT_PRINT="print",e.DOM_LAYOUT_AUTO_HEIGHT="autoHeight",e.GROUP_AUTO_COLUMN_ID="ag-Grid-AutoColumn",e}();t.Constants=o},45212:function(e,t,o){var n,r=this&&this.__extends||(n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])},n(e,t)},function(e,t){function o(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(o.prototype=t.prototype,new o)}),i=this&&this.__decorate||function(e,t,o,n){var r,i=arguments.length,s=i<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,n);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,o,s):r(t,o))||s);return i>3&&s&&Object.defineProperty(t,o,s),s},s=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0});var a=o(59804),l=o(16974),p=o(17890),u=o(36071),c=o(38830),d=o(44494),h=o(43510),f=function(e){function t(){var t=e.call(this,'<div class="ag-input-text-wrapper"><input ref="eColumnFloatingFilter" class="ag-floating-filter-input"></div>')||this;return t.lastKnownModel=null,t}return r(t,e),t.prototype.init=function(e){this.onFloatingFilterChanged=e.onFloatingFilterChanged,this.currentParentModel=e.currentParentModel;var t=null!=e.debounceMs?e.debounceMs:500,o=h._.debounce(this.syncUpWithParentFilter.bind(this),t);this.addDestroyableEventListener(this.eColumnFloatingFilter,"input",o),this.addDestroyableEventListener(this.eColumnFloatingFilter,"keypress",o),this.addDestroyableEventListener(this.eColumnFloatingFilter,"keydown",o);var n=e.column.getDefinition();n.filterParams&&n.filterParams.filterOptions&&1===n.filterParams.filterOptions.length&&"inRange"===n.filterParams.filterOptions[0]&&(this.eColumnFloatingFilter.disabled=!0)},t.prototype.onParentModelChanged=function(e,t){if(null!=t)return this.eColumnFloatingFilter.value=this.parseAsText(t.condition1)+" "+t.operator+" "+this.parseAsText(t.condition2),this.eColumnFloatingFilter.disabled=!0,this.lastKnownModel=null,this.eColumnFloatingFilter.title=this.eColumnFloatingFilter.value,void(this.eColumnFloatingFilter.style.cursor="default");if(this.eColumnFloatingFilter.disabled=!1,this.equalModels(this.lastKnownModel,e))this.lastKnownModel||e||(this.eColumnFloatingFilter.value="");else{this.lastKnownModel=e;var o=this.asFloatingFilterText(e);o!==this.eColumnFloatingFilter.value&&(this.eColumnFloatingFilter.value=o,this.eColumnFloatingFilter.title="")}},t.prototype.syncUpWithParentFilter=function(e){var t=this.asParentModel();this.equalModels(this.lastKnownModel,t)||(h._.isKeyPressed(e,d.Constants.KEY_ENTER)?this.onFloatingFilterChanged({model:t,apply:!0}):this.onFloatingFilterChanged({model:t,apply:!1}))&&(this.lastKnownModel=t)},t.prototype.equalModels=function(e,t){return!!h._.referenceCompare(e,t)||!(!e||!t)&&!Array.isArray(e)&&!Array.isArray(t)&&h._.referenceCompare(e.type,t.type)&&h._.referenceCompare(e.filter,t.filter)&&h._.referenceCompare(e.filterTo,t.filterTo)&&h._.referenceCompare(e.filterType,t.filterType)},i([p.RefSelector("eColumnFloatingFilter"),s("design:type",HTMLInputElement)],t.prototype,"eColumnFloatingFilter",void 0),t}(c.Component);t.InputTextFloatingFilterComp=f;var g=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r(t,e),t.prototype.asFloatingFilterText=function(e){return e?e.filter:""},t.prototype.asParentModel=function(){return{type:this.currentParentModel().type,filter:this.eColumnFloatingFilter.value,filterType:"text"}},t.prototype.parseAsText=function(e){return this.asFloatingFilterText(e)},t}(f);t.TextFloatingFilterComp=g;var m=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.lastKnownModel=null,t}return r(t,e),t.prototype.init=function(e){this.onFloatingFilterChanged=e.onFloatingFilterChanged,this.currentParentModel=e.currentParentModel;var t=null!=e.debounceMs?e.debounceMs:500,o={onDateChanged:h._.debounce(this.onDateChanged.bind(this),t),filterParams:e.column.getColDef().filterParams};this.dateComponentPromise=this.userComponentFactory.newDateComponent(o);var n=h._.loadTemplate("<div></div>");this.dateComponentPromise.then((function(t){n.appendChild(t.getGui());var o=e.column.getDefinition(),r=o.filterParams&&o.filterParams.filterOptions&&1===o.filterParams.filterOptions.length&&"inRange"===o.filterParams.filterOptions[0];t.eDateInput&&(t.eDateInput.disabled=r)})),n.style.width="100%",n.style.height="100%",this.setTemplateFromElement(n)},t.prototype.onDateChanged=function(){var e=this.currentParentModel(),t=this.asParentModel();this.equalModels(e,t)||(this.onFloatingFilterChanged({model:t,apply:!0}),this.lastKnownModel=t)},t.prototype.equalModels=function(e,t){return!!h._.referenceCompare(e,t)||!(!e||!t)&&!Array.isArray(e)&&!Array.isArray(t)&&h._.referenceCompare(e.type,t.type)&&h._.referenceCompare(e.dateFrom,t.dateFrom)&&h._.referenceCompare(e.dateTo,t.dateTo)&&h._.referenceCompare(e.filterType,t.filterType)},t.prototype.asParentModel=function(){var e=this.currentParentModel(),t=this.dateComponentPromise.resolveNow(null,(function(e){return e.getDate()})),o=h._.serializeDateToYyyyMmDd(l.DateFilter.removeTimezone(t),"-");return{type:e.type,dateFrom:o,dateTo:e?e.dateTo:null,filterType:"date"}},t.prototype.onParentModelChanged=function(e){var t=this;this.lastKnownModel=e,this.dateComponentPromise.then((function(o){e&&e.dateFrom?(t.enrichDateInput(e.type,e.dateFrom,e.dateTo,o),o.setDate(h._.parseYyyyMmDdToDate(e.dateFrom,"-"))):o.setDate(null)}))},t.prototype.enrichDateInput=function(e,t,o,n){n.eDateInput&&("inRange"===e?(n.eDateInput.title=t+" to "+o,n.eDateInput.disabled=!0):(n.eDateInput.title="",n.eDateInput.disabled=!1))},i([a.Autowired("userComponentFactory"),s("design:type",u.UserComponentFactory)],t.prototype,"userComponentFactory",void 0),t}(c.Component);t.DateFloatingFilterComp=m;var y=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r(t,e),t.prototype.asFloatingFilterText=function(e){var t=this.currentParentModel();return null==e&&null==t?"":null==e&&null!=t&&"inRange"!==t.type?(this.eColumnFloatingFilter.disabled=!1,""):null!=t&&"inRange"===t.type?(this.eColumnFloatingFilter.disabled=!0,this.parseAsText(t)):(this.eColumnFloatingFilter.disabled=!1,this.parseAsText(e))},t.prototype.parseAsText=function(e){var t=this.asNumber(e.filter);if(e.type&&"inRange"===e.type){var o=this.asNumber(e.filterTo);return(t?t+"":"")+"-"+(o?o+"":"")}return null!=t?t+"":""},t.prototype.asParentModel=function(){var e,t=this.currentParentModel(),o=this.asNumber(this.eColumnFloatingFilter.value),n=this.eColumnFloatingFilter.value;return e=null==o&&""===n?null:null==o?t.filter:o,{type:t.type,filter:e,filterTo:t?t.filterTo:null,filterType:"number"}},t.prototype.asNumber=function(e){if(null==e)return null;if(""===e)return null;var t=Number(e);return h._.isNumeric(t)?t:null},t}(f);t.NumberFloatingFilterComp=y;var v=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r(t,e),t.prototype.init=function(t){e.prototype.init.call(this,t),this.eColumnFloatingFilter.disabled=!0},t.prototype.asFloatingFilterText=function(e){if(this.eColumnFloatingFilter.disabled=!0,!e)return"";var t=e instanceof Array?e:e.values;if(0===t.length)return"";var o=t.length>10?t.slice(0,10).concat("..."):t;return"("+t.length+") "+o.join(",")},t.prototype.parseAsText=function(e){return this.asFloatingFilterText(e)},t.prototype.asParentModel=function(){return null==this.eColumnFloatingFilter.value||""===this.eColumnFloatingFilter.value?{values:[],filterType:"set"}:{values:this.eColumnFloatingFilter.value.split(","),filterType:"set"}},t.prototype.equalModels=function(e,t){return!1},t}(f);t.SetFloatingFilterComp=v;var C=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r(t,e),t.prototype.init=function(t){e.prototype.init.call(this,t),this.eColumnFloatingFilter.disabled=!0},t.prototype.onParentModelChanged=function(e){this.eColumnFloatingFilter.value=this.asFloatingFilterText(this.currentParentModel())},t.prototype.asFloatingFilterText=function(e){return e},t.prototype.parseAsText=function(e){return e},t.prototype.asParentModel=function(){return null},t}(f);t.ReadModelAsStringFloatingFilterComp=C},45928:function(e,t,o){var n,r=this&&this.__createBinding||(Object.create?function(e,t,o,n){void 0===n&&(n=o);var r=Object.getOwnPropertyDescriptor(t,o);r&&!("get"in r?!t.__esModule:r.writable||r.configurable)||(r={enumerable:!0,get:function(){return t[o]}}),Object.defineProperty(e,n,r)}:function(e,t,o,n){void 0===n&&(n=o),e[n]=t[o]}),i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),s=this&&this.__importStar||(n=function(e){return n=Object.getOwnPropertyNames||function(e){var t=[];for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[t.length]=o);return t},n(e)},function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var o=n(e),s=0;s<o.length;s++)"default"!==o[s]&&r(t,e,o[s]);return i(t,e),t});Object.defineProperty(t,"__esModule",{value:!0}),t.redactValidConnectionString=function(e,t){const o=e.clone(),n=t?.replacementString??"_credentials_",r=t?.redactUsernames??!0;if((o.username||o.password)&&r?(o.username=n,o.password=""):o.password&&(o.password=n),o.searchParams.has("authMechanismProperties")){const e=new a.CommaAndColonSeparatedRecord(o.searchParams.get("authMechanismProperties"));e.get("AWS_SESSION_TOKEN")&&(e.set("AWS_SESSION_TOKEN",n),o.searchParams.set("authMechanismProperties",e.toString()))}return o.searchParams.has("tlsCertificateKeyFilePassword")&&o.searchParams.set("tlsCertificateKeyFilePassword",n),o.searchParams.has("proxyUsername")&&r&&o.searchParams.set("proxyUsername",n),o.searchParams.has("proxyPassword")&&o.searchParams.set("proxyPassword",n),o},t.redactConnectionString=function(e,t){const o=t?.replacementString??"<credentials>",n=t?.redactUsernames??!0;let r;try{r=new a.default(e)}catch{}if(r)return t={...t,replacementString:"___credentials___"},r.redact(t).toString().replace(/___credentials___/g,o);const i=o,s=[e=>e.replace(n?/(\/\/)(.*)(@)/g:/(\/\/[^@]*:)(.*)(@)/g,`$1${i}$3`),e=>e.replace(/(AWS_SESSION_TOKEN(:|%3A))([^,&]+)/gi,`$1${i}`),e=>e.replace(/(tlsCertificateKeyFilePassword=)([^&]+)/gi,`$1${i}`),e=>n?e.replace(/(proxyUsername=)([^&]+)/gi,`$1${i}`):e,e=>e.replace(/(proxyPassword=)([^&]+)/gi,`$1${i}`)];for(const t of s)e=t(e);return e};const a=s(o(8069))},46158:function(e,t,o){var n=this&&this.__decorate||function(e,t,o,n){var r,i=arguments.length,s=i<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,n);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,o,s):r(t,o))||s);return i>3&&s&&Object.defineProperty(t,o,s),s},r=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0});var i=o(59804),s=o(99162),a=o(43510),l=function(){function e(e){this.childCount=0,this.rowTemplatesToAdd=[],this.afterGuiAttachedCallbacks=[],this.lastMadeVisibleTime=0,this.eContainer=e.eContainer,this.eViewport=e.eViewport,e.eWrapper&&(this.eWrapper=e.eWrapper),this.hideWhenNoChildren=e.hideWhenNoChildren}return e.prototype.setVerticalScrollPosition=function(e){this.scrollTop=e},e.prototype.postConstruct=function(){this.checkDomOrder(),this.checkVisibility(),this.gridOptionsWrapper.addEventListener(s.GridOptionsWrapper.PROP_DOM_LAYOUT,this.checkDomOrder.bind(this))},e.prototype.checkDomOrder=function(){this.domOrder=this.gridOptionsWrapper.isEnsureDomOrder()},e.prototype.getRowElement=function(e){return this.eContainer.querySelector('[comp-id="'+e+'"]')},e.prototype.setHeight=function(e){null!=e?(this.eContainer.style.height=e+"px",this.eWrapper&&(this.eWrapper.style.height=e+"px")):this.eContainer.style.height=""},e.prototype.flushRowTemplates=function(){if(0!==this.rowTemplatesToAdd.length){var e=this.rowTemplatesToAdd.join("");a._.appendHtml(this.eContainer,e),this.rowTemplatesToAdd.length=0}this.afterGuiAttachedCallbacks.forEach((function(e){return e()})),this.afterGuiAttachedCallbacks.length=0,this.lastPlacedElement=null},e.prototype.appendRowTemplate=function(e,t){this.domOrder?this.lastPlacedElement=a._.insertTemplateWithDomOrder(this.eContainer,e,this.lastPlacedElement):this.rowTemplatesToAdd.push(e),this.afterGuiAttachedCallbacks.push(t),this.childCount++,this.checkVisibility()},e.prototype.ensureDomOrder=function(e){this.domOrder&&(a._.ensureDomOrder(this.eContainer,e,this.lastPlacedElement),this.lastPlacedElement=e)},e.prototype.removeRowElement=function(e){this.eContainer.removeChild(e),this.childCount--,this.checkVisibility()},e.prototype.checkVisibility=function(){if(this.hideWhenNoChildren){var e=this.eViewport?this.eViewport:this.eContainer,t=this.childCount>0;this.visible!==t&&(this.visible=t,this.lastMadeVisibleTime=(new Date).getTime(),a._.setVisible(e,t),t&&this.eViewport&&(this.eViewport.scrollTop=this.scrollTop))}},e.prototype.isMadeVisibleRecently=function(){return(new Date).getTime()-this.lastMadeVisibleTime<500},n([i.Autowired("gridOptionsWrapper"),r("design:type",s.GridOptionsWrapper)],e.prototype,"gridOptionsWrapper",void 0),n([i.PostConstruct,r("design:type",Function),r("design:paramtypes",[]),r("design:returntype",void 0)],e.prototype,"postConstruct",null),e}();t.RowContainerComponent=l},46243:(e,t,o)=>{Object.defineProperty(t,"__esModule",{value:!0});var n=o(43510),r=function(){function e(){this.existingKeys=[]}return e.prototype.addExistingKeys=function(e){this.existingKeys=this.existingKeys.concat(e)},e.prototype.getUniqueKey=function(e,t){e=n._.toStringOrNull(e);for(var o=0;;){var r=void 0;if(e?(r=e,0!==o&&(r+="_"+o)):t?(r=t,0!==o&&(r+="_"+o)):r=""+o,this.existingKeys.indexOf(r)<0)return this.existingKeys.push(r),r;o++}},e}();t.ColumnKeyCreator=r},47304:function(e,t,o){var n=this&&this.__decorate||function(e,t,o,n){var r,i=arguments.length,s=i<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,n);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,o,s):r(t,o))||s);return i>3&&s&&Object.defineProperty(t,o,s),s},r=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},i=this&&this.__param||function(e,t){return function(o,n){t(o,n,e)}};Object.defineProperty(t,"__esModule",{value:!0});var s=o(12427),a=o(59804),l=o(59804),p=o(99162),u=o(43510),c=function(){function e(){this.allSyncListeners={},this.allAsyncListeners={},this.globalSyncListeners=[],this.globalAsyncListeners=[],this.asyncFunctionsQueue=[],this.scheduled=!1,this.firedEvents={}}var t;return t=e,e.prototype.setBeans=function(e,t,o){if(void 0===o&&(o=null),this.logger=e.create("EventService"),o){var n=t.useAsyncEvents();this.addGlobalListener(o,n)}},e.prototype.getListenerList=function(e,t){var o=t?this.allAsyncListeners:this.allSyncListeners,n=o[e];return n||(n=[],o[e]=n),n},e.prototype.addEventListener=function(e,t,o){void 0===o&&(o=!1);var n=this.getListenerList(e,o);n.indexOf(t)<0&&n.push(t)},e.prototype.addModalPriorityEventListener=function(e,o,n){void 0===n&&(n=!1),this.addEventListener(e+t.PRIORITY,o,n)},e.prototype.addGlobalListener=function(e,t){void 0===t&&(t=!1),t?this.globalAsyncListeners.push(e):this.globalSyncListeners.push(e)},e.prototype.removeEventListener=function(e,t,o){void 0===o&&(o=!1);var n=this.getListenerList(e,o);u._.removeFromArray(n,t)},e.prototype.removeGlobalListener=function(e,t){void 0===t&&(t=!1),t?u._.removeFromArray(this.globalAsyncListeners,e):u._.removeFromArray(this.globalSyncListeners,e)},e.prototype.dispatchEvent=function(e){this.dispatchToListeners(e,!0),this.dispatchToListeners(e,!1),this.firedEvents[e.type]=!0},e.prototype.dispatchEventOnce=function(e){this.firedEvents[e.type]||this.dispatchEvent(e)},e.prototype.dispatchToListeners=function(e,o){var n=this,r=o?this.globalAsyncListeners:this.globalSyncListeners,i=e.type,s=this.getListenerList(i+t.PRIORITY,o);u._.forEachSnapshotFirst(s,(function(t){o?n.dispatchAsync((function(){return t(e)})):t(e)}));var a=this.getListenerList(i,o);u._.forEachSnapshotFirst(a,(function(t){o?n.dispatchAsync((function(){return t(e)})):t(e)})),u._.forEachSnapshotFirst(r,(function(t){o?n.dispatchAsync((function(){return t(i,e)})):t(i,e)}))},e.prototype.dispatchAsync=function(e){this.asyncFunctionsQueue.push(e),this.scheduled||(window.setTimeout(this.flushAsyncQueue.bind(this),0),this.scheduled=!0)},e.prototype.flushAsyncQueue=function(){this.scheduled=!1;var e=this.asyncFunctionsQueue.slice();this.asyncFunctionsQueue=[],e.forEach((function(e){return e()}))},e.PRIORITY="-P1",n([i(0,l.Qualifier("loggerFactory")),i(1,l.Qualifier("gridOptionsWrapper")),i(2,l.Qualifier("globalEventListener")),r("design:type",Function),r("design:paramtypes",[s.LoggerFactory,p.GridOptionsWrapper,Function]),r("design:returntype",void 0)],e.prototype,"setBeans",null),t=n([a.Bean("eventService")],e)}();t.EventService=c},47661:function(e,t,o){var n=this&&this.__decorate||function(e,t,o,n){var r,i=arguments.length,s=i<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,n);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,o,s):r(t,o))||s);return i>3&&s&&Object.defineProperty(t,o,s),s},r=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0});var i=o(13161),s=o(51890),a=o(59804),l=o(99162),p=function(){function e(e){this.columnsToAggregate=[],this.columnsToGroup=[],this.columnsToPivot=[],this.pinned=e}return e.prototype.onDragEnter=function(e){var t=this;this.clearColumnsList(),this.gridOptionsWrapper.isFunctionsReadOnly()||e.dragItem.columns.forEach((function(e){e.isPrimary()&&(e.isAnyFunctionActive()||(e.isAllowValue()?t.columnsToAggregate.push(e):e.isAllowRowGroup()?t.columnsToGroup.push(e):e.isAllowRowGroup()&&t.columnsToPivot.push(e)))}))},e.prototype.getIconName=function(){return this.columnsToAggregate.length+this.columnsToGroup.length+this.columnsToPivot.length>0?this.pinned?i.DragAndDropService.ICON_PINNED:i.DragAndDropService.ICON_MOVE:null},e.prototype.onDragLeave=function(e){this.clearColumnsList()},e.prototype.clearColumnsList=function(){this.columnsToAggregate.length=0,this.columnsToGroup.length=0,this.columnsToPivot.length=0},e.prototype.onDragging=function(e){},e.prototype.onDragStop=function(e){this.columnsToAggregate.length>0&&this.columnController.addValueColumns(this.columnsToAggregate,"toolPanelDragAndDrop"),this.columnsToGroup.length>0&&this.columnController.addRowGroupColumns(this.columnsToGroup,"toolPanelDragAndDrop"),this.columnsToPivot.length>0&&this.columnController.addPivotColumns(this.columnsToPivot,"toolPanelDragAndDrop")},n([a.Autowired("columnController"),r("design:type",s.ColumnController)],e.prototype,"columnController",void 0),n([a.Autowired("gridOptionsWrapper"),r("design:type",l.GridOptionsWrapper)],e.prototype,"gridOptionsWrapper",void 0),e}();t.BodyDropPivotTarget=p},47772:(e,t,o)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.CommaAndColonSeparatedRecord=t.ConnectionString=t.redactConnectionString=void 0;const n=o(21655),r=o(66099);Object.defineProperty(t,"redactConnectionString",{enumerable:!0,get:function(){return r.redactConnectionString}});const i="__this_is_a_placeholder__",s=/^(?<protocol>[^/]+):\/\/(?:(?<username>[^:@]*)(?::(?<password>[^@]*))?@)?(?<hosts>(?!:)[^/?@]*)(?<rest>.*)/;class a extends Map{delete(e){return super.delete(this._normalizeKey(e))}get(e){return super.get(this._normalizeKey(e))}has(e){return super.has(this._normalizeKey(e))}set(e,t){return super.set(this._normalizeKey(e),t)}_normalizeKey(e){e=`${e}`;for(const t of this.keys())if(t.toLowerCase()===e.toLowerCase()){e=t;break}return e}}class l extends n.URL{}class p extends Error{get name(){return"MongoParseError"}}class u extends l{_hosts;constructor(e,t={}){const{looseValidation:o}=t;if(!o&&!(n=e).startsWith("mongodb://")&&!n.startsWith("mongodb+srv://"))throw new p('Invalid scheme, expected connection string to start with "mongodb://" or "mongodb+srv://"');var n;const r=e.match(s);if(!r)throw new p("Invalid connection string");const{protocol:l,username:c,password:d,hosts:h,rest:f}=r.groups??{};if(!o){if(!l||!h)throw new p("Protocol and host list are required in the uri");try{decodeURIComponent(c??""),decodeURIComponent(d??"")}catch(e){throw new p(e.message)}const t=/[:/?#[\]@]/gi;if(c?.match(t))throw new p(`Username contains unescaped characters ${c}`);if(!c||!d){const t=e.replace(`${l}://`,"");if(t.startsWith("@")||t.startsWith(":"))throw new p("URI contained empty userinfo section")}if(d?.match(t))throw new p("Password contains unescaped characters");if(f?.match(/^[^/?]*@/))throw new p("Invalid connection string")}let g="";"string"==typeof c&&(g+=c),"string"==typeof d&&(g+=`:${d}`),g&&(g+="@");try{super(`${l.toLowerCase()}://${g}${i}${f}`)}catch(n){throw o&&new u(e,{...t,looseValidation:!1}),"string"==typeof n.message&&(n.message=n.message.replace(i,h)),n}if(this._hosts=h.split(","),!o){if(this.isSRV&&1!==this.hosts.length)throw new p("mongodb+srv URI cannot have multiple service names");if(this.isSRV&&this.hosts.some((e=>e.includes(":"))))throw new p("mongodb+srv URI cannot have port number")}var m;this.pathname||(this.pathname="/"),Object.setPrototypeOf(this.searchParams,(m=this.searchParams.constructor,class extends m{append(e,t){return super.append(this._normalizeKey(e),t)}delete(e){return super.delete(this._normalizeKey(e))}get(e){return super.get(this._normalizeKey(e))}getAll(e){return super.getAll(this._normalizeKey(e))}has(e){return super.has(this._normalizeKey(e))}set(e,t){return super.set(this._normalizeKey(e),t)}keys(){return super.keys()}values(){return super.values()}entries(){return super.entries()}[Symbol.iterator](){return super[Symbol.iterator]()}_normalizeKey(e){return a.prototype._normalizeKey.call(this,e)}}).prototype)}get host(){return i}set host(e){throw new Error("No single host for connection string")}get hostname(){return i}set hostname(e){throw new Error("No single host for connection string")}get port(){return""}set port(e){throw new Error("No single host for connection string")}get href(){return this.toString()}set href(e){throw new Error("Cannot set href for connection strings")}get isSRV(){return this.protocol.includes("srv")}get hosts(){return this._hosts}set hosts(e){this._hosts=e}toString(){return super.toString().replace(i,this.hosts.join(","))}clone(){return new u(this.toString(),{looseValidation:!0})}redact(e){return(0,r.redactValidConnectionString)(this,e)}typedSearchParams(){return this.searchParams}[Symbol.for("nodejs.util.inspect.custom")](){const{href:e,origin:t,protocol:o,username:n,password:r,hosts:i,pathname:s,search:a,searchParams:l,hash:p}=this;return{href:e,origin:t,protocol:o,username:n,password:r,hosts:i,pathname:s,search:a,searchParams:l,hash:p}}}t.ConnectionString=u,t.CommaAndColonSeparatedRecord=class extends a{constructor(e){super();for(const t of(e??"").split(",")){if(!t)continue;const e=t.indexOf(":");-1===e?this.set(t,""):this.set(t.slice(0,e),t.slice(e+1))}}toString(){return[...this].map((e=>e.join(":"))).join(",")}},t.default=u},48644:function(e,t,o){var n=this&&this.__decorate||function(e,t,o,n){var r,i=arguments.length,s=i<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,n);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,o,s):r(t,o))||s);return i>3&&s&&Object.defineProperty(t,o,s),s},r=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0});var i=o(59804),s=o(57663),a=o(99162),l=function(){function e(){}return e.prototype.postConstruct=function(){this.doingTreeData=this.gridOptionsWrapper.isTreeData()},e.prototype.filter=function(e){var t=this.filterManager.isAnyFilterPresent();this.filterNodes(t,e)},e.prototype.filterNodes=function(e,t){var o=this,n=function(t,n){t.hasChildren()?(t.childrenAfterFilter=e&&!n?t.childrenAfterGroup.filter((function(e){var t=e.childrenAfterFilter&&e.childrenAfterFilter.length>0,n=e.data&&o.filterManager.doesRowPassFilter(e);return t||n})):t.childrenAfterGroup,o.setAllChildrenCount(t)):(t.childrenAfterFilter=t.childrenAfterGroup,t.setAllChildrenCount(null))};if(this.doingTreeDataFiltering()){var r=function(e,t){if(e.childrenAfterGroup)for(var i=0;i<e.childrenAfterGroup.length;i++){var s=e.childrenAfterGroup[i],a=t||o.filterManager.doesRowPassFilter(s);s.childrenAfterGroup?r(e.childrenAfterGroup[i],a):n(s,a)}n(e,t)};t.executeFromRootNode((function(e){return r(e,!1)}))}else t.forEachChangedNodeDepthFirst((function(e){return n(e,!1)}),!0)},e.prototype.setAllChildrenCountTreeData=function(e){var t=0;e.childrenAfterFilter.forEach((function(e){t++,t+=e.allChildrenCount})),e.setAllChildrenCount(t)},e.prototype.setAllChildrenCountGridGrouping=function(e){var t=0;e.childrenAfterFilter.forEach((function(e){e.group?t+=e.allChildrenCount:t++})),e.setAllChildrenCount(t)},e.prototype.setAllChildrenCount=function(e){this.doingTreeData?this.setAllChildrenCountTreeData(e):this.setAllChildrenCountGridGrouping(e)},e.prototype.doingTreeDataFiltering=function(){return this.gridOptionsWrapper.isTreeData()&&!this.gridOptionsWrapper.isExcludeChildrenWhenTreeDataFiltering()},n([i.Autowired("filterManager"),r("design:type",s.FilterManager)],e.prototype,"filterManager",void 0),n([i.Autowired("gridOptionsWrapper"),r("design:type",a.GridOptionsWrapper)],e.prototype,"gridOptionsWrapper",void 0),n([i.PostConstruct,r("design:type",Function),r("design:paramtypes",[]),r("design:returntype",void 0)],e.prototype,"postConstruct",null),n([i.Bean("filterService")],e)}();t.FilterService=l},50853:function(e,t,o){var n,r=this&&this.__extends||(n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])},n(e,t)},function(e,t){function o(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(o.prototype=t.prototype,new o)});Object.defineProperty(t,"__esModule",{value:!0});var i=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r(t,e),t.prototype.isPopup=function(){return!0},t}(o(55971).TextCellEditor);t.PopupTextCellEditor=i},51261:function(e,t,o){var n=this&&this.__decorate||function(e,t,o,n){var r,i=arguments.length,s=i<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,n);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,o,s):r(t,o))||s);return i>3&&s&&Object.defineProperty(t,o,s),s},r=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0});var i=o(59804),s=o(71569),a=o(99162),l=o(51890),p=o(41758),u=o(44494),c=o(43510),d=function(){function e(){}var t;return t=e,e.prototype.createAutoGroupColumns=function(e){var t=this,o=[],n=this.gridOptionsWrapper.isTreeData(),r=this.gridOptionsWrapper.isGroupMultiAutoColumn();return n&&r&&(console.warn("ag-Grid: you cannot mix groupMultiAutoColumn with treeData, only one column can be used to display groups when doing tree data"),r=!1),r?e.forEach((function(e,n){o.push(t.createOneAutoGroupColumn(e,n))})):o.push(this.createOneAutoGroupColumn()),o},e.prototype.createOneAutoGroupColumn=function(e,o){var n,r=this.generateDefaultColDef(e);n=e?u.Constants.GROUP_AUTO_COLUMN_ID+"-"+e.getId():t.GROUP_AUTO_COLUMN_BUNDLE_ID;var i=this.gridOptionsWrapper.getAutoGroupColumnDef();c._.mergeDeep(r,i),(r=this.columnFactory.mergeColDefs(r)).colId=n,this.gridOptionsWrapper.isTreeData()||c._.missing(r.field)&&c._.missing(r.valueGetter)&&c._.missing(r.filterValueGetter)&&(r.filter=!1),o&&o>0&&(r.headerCheckboxSelection=!1);var a=new s.Column(r,null,n,!0);return this.context.wireBean(a),a},e.prototype.generateDefaultColDef=function(e){var t=this.gridOptionsWrapper.getAutoGroupColumnDef(),o={headerName:this.gridOptionsWrapper.getLocaleTextFunc()("group","Group"),enableRowGroup:!0};if(t&&(t.cellRenderer||t.cellRendererFramework)||(o.cellRenderer="agGroupCellRenderer"),e){var n=e.getColDef();c._.assign(o,{headerName:this.columnController.getDisplayNameForColumn(e,"header"),headerValueGetter:n.headerValueGetter}),n.cellRenderer&&c._.assign(o,{cellRendererParams:{innerRenderer:n.cellRenderer,innerRendererParams:n.cellRendererParams}}),o.showRowGroup=e.getColId()}else o.showRowGroup=!0;return o},e.GROUP_AUTO_COLUMN_BUNDLE_ID=u.Constants.GROUP_AUTO_COLUMN_ID,n([i.Autowired("gridOptionsWrapper"),r("design:type",a.GridOptionsWrapper)],e.prototype,"gridOptionsWrapper",void 0),n([i.Autowired("context"),r("design:type",i.Context)],e.prototype,"context",void 0),n([i.Autowired("columnController"),r("design:type",l.ColumnController)],e.prototype,"columnController",void 0),n([i.Autowired("columnFactory"),r("design:type",p.ColumnFactory)],e.prototype,"columnFactory",void 0),t=n([i.Bean("autoGroupColService")],e)}();t.AutoGroupColService=d},51890:function(e,t,o){var n=this&&this.__decorate||function(e,t,o,n){var r,i=arguments.length,s=i<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,n);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,o,s):r(t,o))||s);return i>3&&s&&Object.defineProperty(t,o,s),s},r=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},i=this&&this.__param||function(e,t){return function(o,n){t(o,n,e)}};Object.defineProperty(t,"__esModule",{value:!0});var s=o(30754),a=o(71569),l=o(99162),p=o(6145),u=o(41758),c=o(70424),d=o(67469),h=o(47304),f=o(79705),g=o(12427),m=o(33018),y=o(19135),v=o(59891),C=o(59804),w=o(91901),_=o(51261),E=o(79255),b=o(31551),R=o(81404),S=o(43510),O=function(){function e(){this.primaryHeaderRowCount=0,this.secondaryHeaderRowCount=0,this.secondaryColumnsPresent=!1,this.gridHeaderRowCount=0,this.displayedLeftColumns=[],this.displayedRightColumns=[],this.displayedCenterColumns=[],this.allDisplayedColumns=[],this.allDisplayedVirtualColumns=[],this.allDisplayedCenterVirtualColumns=[],this.rowGroupColumns=[],this.valueColumns=[],this.pivotColumns=[],this.ready=!1,this.autoGroupsNeedBuilding=!1,this.pivotMode=!1,this.bodyWidth=0,this.leftWidth=0,this.rightWidth=0,this.bodyWidthDirty=!0}return e.prototype.init=function(){var e=this.gridOptionsWrapper.isPivotMode();this.suppressColumnVirtualisation=this.gridOptionsWrapper.isSuppressColumnVirtualisation(),this.isPivotSettingAllowed(e)&&(this.pivotMode=e),this.usingTreeData=this.gridOptionsWrapper.isTreeData()},e.prototype.setColumnDefs=function(e,t){void 0===t&&(t="api");var o=!!this.columnDefs;this.columnDefs=e,this.valueCache.expire(),this.autoGroupsNeedBuilding=!0;var n=this.primaryColumns,r=this.columnFactory.createColumnTree(e,!0,n);this.primaryColumnTree=r.columnTree,this.primaryHeaderRowCount=r.treeDept+1,this.primaryColumns=this.getColumnsFromTree(this.primaryColumnTree),this.extractRowGroupColumns(t,n),this.extractPivotColumns(t,n),this.createValueColumns(t,n),this.ready=!0,this.updateGridColumns(),this.updateDisplayedColumns(t),this.checkDisplayedVirtualColumns(),this.gridOptionsWrapper.isDeltaColumnMode()&&o&&this.resetColumnState(!0,t);var i={type:m.Events.EVENT_COLUMN_EVERYTHING_CHANGED,api:this.gridApi,columnApi:this.columnApi,source:t};this.eventService.dispatchEvent(i);var s={type:m.Events.EVENT_NEW_COLUMNS_LOADED,api:this.gridApi,columnApi:this.columnApi};this.eventService.dispatchEvent(s)},e.prototype.isAutoRowHeightActive=function(){return this.autoRowHeightColumns&&this.autoRowHeightColumns.length>0},e.prototype.getAllAutoRowHeightCols=function(){return this.autoRowHeightColumns},e.prototype.setVirtualViewportLeftAndRight=function(){this.gridOptionsWrapper.isEnableRtl()?(this.viewportLeft=this.bodyWidth-this.scrollPosition-this.scrollWidth,this.viewportRight=this.bodyWidth-this.scrollPosition):(this.viewportLeft=this.scrollPosition,this.viewportRight=this.scrollWidth+this.scrollPosition)},e.prototype.getDisplayedColumnsStartingAt=function(e){for(var t=e,o=[];t&&S._.exists(t);)o.push(t),t=this.getDisplayedColAfter(t);return o},e.prototype.checkDisplayedVirtualColumns=function(){if(S._.exists(this.displayedCenterColumns)){var e=this.allDisplayedVirtualColumns.map((function(e){return e.getId()})).join("#");if(this.updateVirtualSets(),e!==this.allDisplayedVirtualColumns.map((function(e){return e.getId()})).join("#")){var t={type:m.Events.EVENT_VIRTUAL_COLUMNS_CHANGED,api:this.gridApi,columnApi:this.columnApi};this.eventService.dispatchEvent(t)}}},e.prototype.setVirtualViewportPosition=function(e,t){(e!==this.scrollWidth||t!==this.scrollPosition||this.bodyWidthDirty)&&(this.scrollWidth=e,this.scrollPosition=t,this.bodyWidthDirty=!0,this.setVirtualViewportLeftAndRight(),this.ready&&this.checkDisplayedVirtualColumns())},e.prototype.isPivotMode=function(){return this.pivotMode},e.prototype.isPivotSettingAllowed=function(e){return!e||!this.gridOptionsWrapper.isTreeData()||(console.warn("ag-Grid: Pivot mode not available in conjunction Tree Data i.e. 'gridOptions.treeData: true'"),!1)},e.prototype.setPivotMode=function(e,t){if(void 0===t&&(t="api"),e!==this.pivotMode&&this.isPivotSettingAllowed(this.pivotMode)){this.pivotMode=e,this.updateDisplayedColumns(t);var o={type:m.Events.EVENT_COLUMN_PIVOT_MODE_CHANGED,api:this.gridApi,columnApi:this.columnApi};this.eventService.dispatchEvent(o)}},e.prototype.getSecondaryPivotColumn=function(e,t){if(!this.secondaryColumnsPresent)return null;var o=this.getPrimaryColumn(t),n=null;return this.secondaryColumns&&this.secondaryColumns.forEach((function(t){var r=t.getColDef().pivotKeys,i=t.getColDef().pivotValueColumn;S._.compareArrays(r,e)&&i===o&&(n=t)})),n},e.prototype.setBeans=function(e){this.logger=e.create("ColumnController")},e.prototype.setFirstRightAndLastLeftPinned=function(e){var t,o;this.gridOptionsWrapper.isEnableRtl()?(t=this.displayedLeftColumns?this.displayedLeftColumns[0]:null,o=this.displayedRightColumns?this.displayedRightColumns[this.displayedRightColumns.length-1]:null):(t=this.displayedLeftColumns?this.displayedLeftColumns[this.displayedLeftColumns.length-1]:null,o=this.displayedRightColumns?this.displayedRightColumns[0]:null),this.gridColumns.forEach((function(n){n.setLastLeftPinned(n===t,e),n.setFirstRightPinned(n===o,e)}))},e.prototype.autoSizeColumns=function(e,t){var o=this;void 0===t&&(t="api");for(var n=[],r=-1;0!==r;)r=0,this.actionOnGridColumns(e,(function(e){if(n.indexOf(e)>=0)return!1;var i=o.autoWidthCalculator.getPreferredWidthForColumn(e);if(i>0){var s=o.normaliseColumnWidth(e,i);e.setActualWidth(s,t),n.push(e),r++}return!0}),t);if(n.length>0){var i={type:m.Events.EVENT_COLUMN_RESIZED,columns:n,column:1===n.length?n[0]:null,finished:!0,api:this.gridApi,columnApi:this.columnApi,source:"autosizeColumns"};this.eventService.dispatchEvent(i)}},e.prototype.autoSizeColumn=function(e,t){void 0===t&&(t="api"),e&&this.autoSizeColumns([e],t)},e.prototype.autoSizeAllColumns=function(e){void 0===e&&(e="api");var t=this.getAllDisplayedColumns();this.autoSizeColumns(t,e)},e.prototype.getColumnsFromTree=function(e){var t=[];return function e(o){for(var n=0;n<o.length;n++){var r=o[n];r instanceof a.Column?t.push(r):r instanceof y.OriginalColumnGroup&&e(r.getChildren())}}(e),t},e.prototype.getAllDisplayedColumnGroups=function(){return this.displayedLeftColumnTree&&this.displayedRightColumnTree&&this.displayedCentreColumnTree?this.displayedLeftColumnTree.concat(this.displayedCentreColumnTree).concat(this.displayedRightColumnTree):null},e.prototype.getPrimaryColumnTree=function(){return this.primaryColumnTree},e.prototype.getHeaderRowCount=function(){return this.gridHeaderRowCount},e.prototype.getLeftDisplayedColumnGroups=function(){return this.displayedLeftColumnTree},e.prototype.getRightDisplayedColumnGroups=function(){return this.displayedRightColumnTree},e.prototype.getCenterDisplayedColumnGroups=function(){return this.displayedCentreColumnTree},e.prototype.getDisplayedColumnGroups=function(e){switch(e){case a.Column.PINNED_LEFT:return this.getLeftDisplayedColumnGroups();case a.Column.PINNED_RIGHT:return this.getRightDisplayedColumnGroups();default:return this.getCenterDisplayedColumnGroups()}},e.prototype.isColumnDisplayed=function(e){return this.getAllDisplayedColumns().indexOf(e)>=0},e.prototype.getAllDisplayedColumns=function(){return this.allDisplayedColumns},e.prototype.getAllDisplayedVirtualColumns=function(){return this.allDisplayedVirtualColumns},e.prototype.getDisplayedLeftColumnsForRow=function(e){return this.colSpanActive?this.getDisplayedColumnsForRow(e,this.displayedLeftColumns):this.displayedLeftColumns},e.prototype.getDisplayedRightColumnsForRow=function(e){return this.colSpanActive?this.getDisplayedColumnsForRow(e,this.displayedRightColumns):this.displayedRightColumns},e.prototype.getDisplayedColumnsForRow=function(e,t,o,n){for(var r,i=[],s=null,a=function(a){var l,p=t[a],u=t.length-a,c=Math.min(p.getColSpan(e),u),d=[p];if(c>1){for(var h=c-1,f=1;f<=h;f++)d.push(t[a+f]);a+=h}o?(l=!1,d.forEach((function(e){o(e)&&(l=!0)}))):l=!0,l&&(0===i.length&&s&&n&&n(p)&&i.push(s),i.push(p)),s=p,r=a},l=0;l<t.length;l++)a(l),l=r;return i},e.prototype.getAllDisplayedCenterVirtualColumnsForRow=function(e){var t=this;if(!this.colSpanActive)return this.allDisplayedCenterVirtualColumns;var o=this.suppressColumnVirtualisation?null:this.isColumnInViewport.bind(this);return this.getDisplayedColumnsForRow(e,this.displayedCenterColumns,o,(function(e){return e.getLeft()>t.viewportLeft}))},e.prototype.isColumnInViewport=function(e){var t=e.getLeft(),o=e.getLeft()+e.getActualWidth(),n=this.viewportLeft-200,r=this.viewportRight+200;return!(t<n&&o<n||t>r&&o>r)},e.prototype.getPinnedLeftContainerWidth=function(){return this.getWidthOfColsInList(this.displayedLeftColumns)},e.prototype.getPinnedRightContainerWidth=function(){return this.getWidthOfColsInList(this.displayedRightColumns)},e.prototype.updatePrimaryColumnList=function(e,t,o,n,r,i){var s=this;if(void 0===i&&(i="api"),e&&!S._.missingOrEmpty(e)){var a=!1;if(e.forEach((function(e){var r=s.getPrimaryColumn(e);if(r){if(o){if(t.indexOf(r)>=0)return;t.push(r)}else{if(t.indexOf(r)<0)return;S._.removeFromArray(t,r)}n(r),a=!0}})),a){this.autoGroupsNeedBuilding&&this.updateGridColumns(),this.updateDisplayedColumns(i);var l={type:r,columns:t,column:1===t.length?t[0]:null,api:this.gridApi,columnApi:this.columnApi,source:i};this.eventService.dispatchEvent(l)}}},e.prototype.setRowGroupColumns=function(e,t){void 0===t&&(t="api"),this.autoGroupsNeedBuilding=!0,this.setPrimaryColumnList(e,this.rowGroupColumns,m.Events.EVENT_COLUMN_ROW_GROUP_CHANGED,this.setRowGroupActive.bind(this),t)},e.prototype.setRowGroupActive=function(e,t,o){e!==t.isRowGroupActive()&&(t.setRowGroupActive(e,o),e||this.gridOptionsWrapper.isSuppressMakeColumnVisibleAfterUnGroup()||t.setVisible(!0,o))},e.prototype.addRowGroupColumn=function(e,t){void 0===t&&(t="api"),e&&this.addRowGroupColumns([e],t)},e.prototype.addRowGroupColumns=function(e,t){void 0===t&&(t="api"),this.autoGroupsNeedBuilding=!0,this.updatePrimaryColumnList(e,this.rowGroupColumns,!0,this.setRowGroupActive.bind(this,!0),m.Events.EVENT_COLUMN_ROW_GROUP_CHANGED,t)},e.prototype.removeRowGroupColumns=function(e,t){void 0===t&&(t="api"),this.autoGroupsNeedBuilding=!0,this.updatePrimaryColumnList(e,this.rowGroupColumns,!1,this.setRowGroupActive.bind(this,!1),m.Events.EVENT_COLUMN_ROW_GROUP_CHANGED,t)},e.prototype.removeRowGroupColumn=function(e,t){void 0===t&&(t="api"),e&&this.removeRowGroupColumns([e],t)},e.prototype.addPivotColumns=function(e,t){void 0===t&&(t="api"),this.updatePrimaryColumnList(e,this.pivotColumns,!0,(function(e){return e.setPivotActive(!0,t)}),m.Events.EVENT_COLUMN_PIVOT_CHANGED,t)},e.prototype.setPivotColumns=function(e,t){void 0===t&&(t="api"),this.setPrimaryColumnList(e,this.pivotColumns,m.Events.EVENT_COLUMN_PIVOT_CHANGED,(function(e,o){o.setPivotActive(e,t)}),t)},e.prototype.addPivotColumn=function(e,t){void 0===t&&(t="api"),this.addPivotColumns([e],t)},e.prototype.removePivotColumns=function(e,t){void 0===t&&(t="api"),this.updatePrimaryColumnList(e,this.pivotColumns,!1,(function(e){return e.setPivotActive(!1,t)}),m.Events.EVENT_COLUMN_PIVOT_CHANGED,t)},e.prototype.removePivotColumn=function(e,t){void 0===t&&(t="api"),this.removePivotColumns([e],t)},e.prototype.setPrimaryColumnList=function(e,t,o,n,r){var i=this;t.length=0,S._.exists(e)&&e.forEach((function(e){var o=i.getPrimaryColumn(e);o&&t.push(o)})),this.primaryColumns.forEach((function(e){var o=t.indexOf(e)>=0;n(o,e)})),this.autoGroupsNeedBuilding&&this.updateGridColumns(),this.updateDisplayedColumns(r);var s={type:o,columns:t,column:1===t.length?t[0]:null,api:this.gridApi,columnApi:this.columnApi,source:r};this.eventService.dispatchEvent(s)},e.prototype.setValueColumns=function(e,t){void 0===t&&(t="api"),this.setPrimaryColumnList(e,this.valueColumns,m.Events.EVENT_COLUMN_VALUE_CHANGED,this.setValueActive.bind(this),t)},e.prototype.setValueActive=function(e,t,o){if(e!==t.isValueActive()&&(t.setValueActive(e,o),e&&!t.getAggFunc())){var n=this.aggFuncService.getDefaultAggFunc(t);t.setAggFunc(n)}},e.prototype.addValueColumns=function(e,t){void 0===t&&(t="api"),this.updatePrimaryColumnList(e,this.valueColumns,!0,this.setValueActive.bind(this,!0),m.Events.EVENT_COLUMN_VALUE_CHANGED,t)},e.prototype.addValueColumn=function(e,t){void 0===t&&(t="api"),e&&this.addValueColumns([e],t)},e.prototype.removeValueColumn=function(e,t){void 0===t&&(t="api"),this.removeValueColumns([e],t)},e.prototype.removeValueColumns=function(e,t){void 0===t&&(t="api"),this.updatePrimaryColumnList(e,this.valueColumns,!1,this.setValueActive.bind(this,!1),m.Events.EVENT_COLUMN_VALUE_CHANGED,t)},e.prototype.normaliseColumnWidth=function(e,t){return t<e.getMinWidth()&&(t=e.getMinWidth()),e.isGreaterThanMax(t)&&(t=e.getMaxWidth()),t},e.prototype.getPrimaryOrGridColumn=function(e){return this.getPrimaryColumn(e)||this.getGridColumn(e)},e.prototype.setColumnWidth=function(e,t,o,n,r){void 0===r&&(r="api");var i=this.getPrimaryOrGridColumn(e);if(i){var s=[];if(s.push({width:t,ratios:[1],columns:[i]}),"shift"===this.gridOptionsWrapper.getColResizeDefault()&&(o=!o),o){var a=this.getDisplayedColAfter(i);if(!a)return;var l=i.getActualWidth()-t,p=a.getActualWidth()+l;s.push({width:p,ratios:[1],columns:[a]})}this.resizeColumnSets(s,n,r)}},e.prototype.checkMinAndMaxWidthsForSet=function(e){var t=e.columns,o=e.width,n=0,r=0,i=!0;return t.forEach((function(e){n+=e.getMinWidth(),e.getMaxWidth()>0?r+=e.getMaxWidth():i=!1})),o>=n&&(!i||o<=r)},e.prototype.resizeColumnSets=function(e,t,o){if(S._.every(e,this.checkMinAndMaxWidthsForSet.bind(this))){var n=[],r=[];e.forEach((function(e){var t=e.width,o=e.columns,i=e.ratios,s={},a={};o.forEach((function(e){return r.push(e)}));for(var l=!0,p=0,u=function(){if(++p>1e3)return console.error("ag-Grid: infinite loop in resizeColumnSets"),"break";l=!1;var e=[],n=[],r=0,u=t;o.forEach((function(t,o){if(a[t.getId()])u-=s[t.getId()];else{e.push(t);var l=i[o];r+=l,n.push(l)}}));var c=1/r;e.forEach((function(o,n){var r;n===e.length-1?r=u:(r=Math.round(i[n]*t*c),u-=r),r<o.getMinWidth()?(r=o.getMinWidth(),a[o.getId()]=!0,l=!0):o.getMaxWidth()>0&&r>o.getMaxWidth()&&(r=o.getMaxWidth(),a[o.getId()]=!0,l=!0),s[o.getId()]=r}))};l&&"break"!==u(););o.forEach((function(e){var t=s[e.getId()];e.getActualWidth()!==t&&(e.setActualWidth(t),n.push(e))}))}));var i=n.length>0;if(i&&(this.setLeftValues(o),this.updateBodyWidths(),this.checkDisplayedVirtualColumns()),i||t){var s={type:m.Events.EVENT_COLUMN_RESIZED,columns:r,column:1===r.length?r[0]:null,finished:t,api:this.gridApi,columnApi:this.columnApi,source:o};this.eventService.dispatchEvent(s)}}else if(t){var a=e&&e.length>0?e[0].columns:null,l={type:m.Events.EVENT_COLUMN_RESIZED,columns:a,column:a&&1===a.length?a[0]:null,finished:t,api:this.gridApi,columnApi:this.columnApi,source:o};this.eventService.dispatchEvent(l)}},e.prototype.setColumnAggFunc=function(e,t,o){if(void 0===o&&(o="api"),e){e.setAggFunc(t);var n={type:m.Events.EVENT_COLUMN_VALUE_CHANGED,columns:[e],column:e,api:this.gridApi,columnApi:this.columnApi,source:o};this.eventService.dispatchEvent(n)}},e.prototype.moveRowGroupColumn=function(e,t,o){void 0===o&&(o="api");var n=this.rowGroupColumns[e];this.rowGroupColumns.splice(e,1),this.rowGroupColumns.splice(t,0,n);var r={type:m.Events.EVENT_COLUMN_ROW_GROUP_CHANGED,columns:this.rowGroupColumns,column:1===this.rowGroupColumns.length?this.rowGroupColumns[0]:null,api:this.gridApi,columnApi:this.columnApi,source:o};this.eventService.dispatchEvent(r)},e.prototype.moveColumns=function(e,t,o){if(void 0===o&&(o="api"),this.columnAnimationService.start(),t>this.gridColumns.length-e.length)return console.warn("ag-Grid: tried to insert columns in invalid location, toIndex = "+t),void console.warn("ag-Grid: remember that you should not count the moving columns when calculating the new index");var n=this.getGridColumns(e);if(this.doesMovePassRules(n,t)){S._.moveInArray(this.gridColumns,n,t),this.updateDisplayedColumns(o);var r={type:m.Events.EVENT_COLUMN_MOVED,columns:n,column:1===n.length?n[0]:null,toIndex:t,api:this.gridApi,columnApi:this.columnApi,source:o};this.eventService.dispatchEvent(r),this.columnAnimationService.finish()}},e.prototype.doesMovePassRules=function(e,t){var o=this.gridColumns.slice();return S._.moveInArray(o,e,t),!!this.doesMovePassMarryChildren(o)&&!!this.doesMovePassLockedPositions(o)},e.prototype.doesMovePassLockedPositions=function(e){var t=!1,o=!0;return e.forEach((function(e){e.isLockPosition()?t&&(o=!1):t=!0})),o},e.prototype.doesMovePassMarryChildren=function(e){var t=!0;return this.columnUtils.depthFirstOriginalTreeSearch(null,this.gridBalancedTree,(function(o){if(o instanceof y.OriginalColumnGroup){var n=o;if(n.getColGroupDef()&&n.getColGroupDef().marryChildren){var r=[];n.getLeafColumns().forEach((function(t){var o=e.indexOf(t);r.push(o)})),Math.max.apply(Math,r)-Math.min.apply(Math,r)>n.getLeafColumns().length-1&&(t=!1)}}})),t},e.prototype.moveColumn=function(e,t,o){void 0===o&&(o="api"),this.moveColumns([e],t,o)},e.prototype.moveColumnByIndex=function(e,t,o){void 0===o&&(o="api");var n=this.gridColumns[e];this.moveColumn(n,t,o)},e.prototype.getBodyContainerWidth=function(){return this.bodyWidth},e.prototype.getContainerWidth=function(e){switch(e){case a.Column.PINNED_LEFT:return this.leftWidth;case a.Column.PINNED_RIGHT:return this.rightWidth;default:return this.bodyWidth}},e.prototype.updateBodyWidths=function(){var e=this.getWidthOfColsInList(this.displayedCenterColumns),t=this.getWidthOfColsInList(this.displayedLeftColumns),o=this.getWidthOfColsInList(this.displayedRightColumns);if(this.bodyWidthDirty=this.bodyWidth!==e,this.bodyWidth!==e||this.leftWidth!==t||this.rightWidth!==o){this.bodyWidth=e,this.leftWidth=t,this.rightWidth=o;var n={type:m.Events.EVENT_DISPLAYED_COLUMNS_WIDTH_CHANGED,api:this.gridApi,columnApi:this.columnApi};this.eventService.dispatchEvent(n)}},e.prototype.getValueColumns=function(){return this.valueColumns?this.valueColumns:[]},e.prototype.getPivotColumns=function(){return this.pivotColumns?this.pivotColumns:[]},e.prototype.isPivotActive=function(){return this.pivotColumns&&this.pivotColumns.length>0&&this.pivotMode},e.prototype.getRowGroupColumns=function(){return this.rowGroupColumns?this.rowGroupColumns:[]},e.prototype.getDisplayedCenterColumns=function(){return this.displayedCenterColumns},e.prototype.getDisplayedLeftColumns=function(){return this.displayedLeftColumns},e.prototype.getDisplayedRightColumns=function(){return this.displayedRightColumns},e.prototype.getDisplayedColumns=function(e){switch(e){case a.Column.PINNED_LEFT:return this.getDisplayedLeftColumns();case a.Column.PINNED_RIGHT:return this.getDisplayedRightColumns();default:return this.getDisplayedCenterColumns()}},e.prototype.getAllPrimaryColumns=function(){return this.primaryColumns?this.primaryColumns.slice():null},e.prototype.getSecondaryColumns=function(){return this.secondaryColumns?this.secondaryColumns.slice():null},e.prototype.getAllColumnsForQuickFilter=function(){return this.columnsForQuickFilter},e.prototype.getAllGridColumns=function(){return this.gridColumns},e.prototype.isEmpty=function(){return S._.missingOrEmpty(this.gridColumns)},e.prototype.isRowGroupEmpty=function(){return S._.missingOrEmpty(this.rowGroupColumns)},e.prototype.setColumnVisible=function(e,t,o){void 0===o&&(o="api"),this.setColumnsVisible([e],t,o)},e.prototype.setColumnsVisible=function(e,t,o){var n=this;void 0===o&&(o="api"),this.columnAnimationService.start(),this.actionOnGridColumns(e,(function(e){return e.isVisible()!==t&&(e.setVisible(t,o),!0)}),o,(function(){return{type:m.Events.EVENT_COLUMN_VISIBLE,visible:t,column:null,columns:null,api:n.gridApi,columnApi:n.columnApi,source:o}})),this.columnAnimationService.finish()},e.prototype.setColumnPinned=function(e,t,o){void 0===o&&(o="api"),e&&this.setColumnsPinned([e],t,o)},e.prototype.setColumnsPinned=function(e,t,o){var n,r=this;void 0===o&&(o="api"),"print"!==this.gridOptionsWrapper.getDomLayout()?(this.columnAnimationService.start(),n=!0===t||t===a.Column.PINNED_LEFT?a.Column.PINNED_LEFT:t===a.Column.PINNED_RIGHT?a.Column.PINNED_RIGHT:null,this.actionOnGridColumns(e,(function(e){return e.getPinned()!==n&&(e.setPinned(n),!0)}),o,(function(){return{type:m.Events.EVENT_COLUMN_PINNED,pinned:n,column:null,columns:null,api:r.gridApi,columnApi:r.columnApi,source:o}})),this.columnAnimationService.finish()):console.warn("Changing the column pinning status is not allowed with domLayout='print'")},e.prototype.actionOnGridColumns=function(e,t,o,n){var r=this;if(!S._.missingOrEmpty(e)){var i=[];if(e.forEach((function(e){var o=r.getGridColumn(e);o&&!1!==t(o)&&i.push(o)})),0!==i.length&&(this.updateDisplayedColumns(o),S._.exists(n)&&n)){var s=n();s.columns=i,s.column=1===i.length?i[0]:null,this.eventService.dispatchEvent(s)}}},e.prototype.getDisplayedColBefore=function(e){var t=this.getAllDisplayedColumns(),o=t.indexOf(e);return o>0?t[o-1]:null},e.prototype.getDisplayedColAfter=function(e){var t=this.getAllDisplayedColumns(),o=t.indexOf(e);return o<t.length-1?t[o+1]:null},e.prototype.getDisplayedGroupAfter=function(e){for(var t=e.getDisplayedLeafColumns()[0],o=e.getOriginalColumnGroup().getLevel();;){if(!(t=this.getDisplayedColAfter(t)))return null;for(var n=t.getParent();n.getOriginalColumnGroup().getLevel()!==o;)n=n.getParent();if(n!==e)return n}},e.prototype.isPinningLeft=function(){return this.displayedLeftColumns.length>0},e.prototype.isPinningRight=function(){return this.displayedRightColumns.length>0},e.prototype.getPrimaryAndSecondaryAndAutoColumns=function(){var e=this.primaryColumns?this.primaryColumns.slice(0):[];return this.groupAutoColumns&&S._.exists(this.groupAutoColumns)&&this.groupAutoColumns.forEach((function(t){return e.push(t)})),this.secondaryColumnsPresent&&this.secondaryColumns&&this.secondaryColumns.forEach((function(t){return e.push(t)})),e},e.prototype.createStateItemFromColumn=function(e){var t=e.isRowGroupActive()?this.rowGroupColumns.indexOf(e):null,o=e.isPivotActive()?this.pivotColumns.indexOf(e):null,n=e.isValueActive()?e.getAggFunc():null;return{colId:e.getColId(),hide:!e.isVisible(),aggFunc:n,width:e.getActualWidth(),pivotIndex:o,pinned:e.getPinned(),rowGroupIndex:t}},e.prototype.getColumnState=function(){if(S._.missing(this.primaryColumns))return[];var e=this.primaryColumns.map(this.createStateItemFromColumn.bind(this)),t=(this.groupAutoColumns?this.groupAutoColumns.map(this.createStateItemFromColumn.bind(this)):[]).concat(e);return this.pivotMode||this.orderColumnStateList(t),t},e.prototype.orderColumnStateList=function(e){var t=this.gridColumns.map((function(e){return e.getColId()}));e.sort((function(e,o){return t.indexOf(e.colId)-t.indexOf(o.colId)}))},e.prototype.resetColumnState=function(e,t){void 0===e&&(e=!1),void 0===t&&(t="api");var o=this.getColumnsFromTree(this.primaryColumnTree),n=[],r=1e3,i=1e3;o&&o.forEach((function(e){var t=e.getColDef().rowGroupIndex,o=e.getColDef().rowGroup,s=e.getColDef().pivotIndex,a=e.getColDef().pivot,l={colId:e.getColId(),aggFunc:e.getColDef().aggFunc,hide:e.getColDef().hide,pinned:e.getColDef().pinned,rowGroupIndex:t,pivotIndex:e.getColDef().pivotIndex,width:e.getColDef().width};S._.missing(t)&&o&&(l.rowGroupIndex=r++),S._.missing(s)&&a&&(l.pivotIndex=i++),n.push(l)})),this.setColumnState(n,e,t)},e.prototype.setColumnState=function(e,t,o){var n=this;if(void 0===t&&(t=!1),void 0===o&&(o="api"),S._.missingOrEmpty(this.primaryColumns))return!1;var r=this.getColumnState();this.autoGroupsNeedBuilding=!0;var i=this.primaryColumns.slice();this.rowGroupColumns=[],this.valueColumns=[],this.pivotColumns=[];var s=!0,a={},l={},p=[];if(e&&e.forEach((function(e){if(S._.exists(n.getAutoColumn(e.colId)))p.push(e);else{var t=n.getPrimaryColumn(e.colId);t?(n.syncColumnWithStateItem(t,e,a,l,o),S._.removeFromArray(i,t)):(console.warn("ag-grid: column "+e.colId+" not found"),s=!1)}})),i.forEach(this.syncColumnWithNoState.bind(this)),this.rowGroupColumns.sort(this.sortColumnListUsingIndexes.bind(this,a)),this.pivotColumns.sort(this.sortColumnListUsingIndexes.bind(this,l)),this.updateGridColumns(),p.forEach((function(e){var t=n.getAutoColumn(e.colId);n.syncColumnWithStateItem(t,e,a,l,o)})),e){var u=e.map((function(e){return e.colId}));this.gridColumns.sort((function(e,t){return u.indexOf(e.getId())-u.indexOf(t.getId())}))}if(this.updateDisplayedColumns(o),!t){var c={type:m.Events.EVENT_COLUMN_EVERYTHING_CHANGED,api:this.gridApi,columnApi:this.columnApi,source:o};this.eventService.dispatchEvent(c)}return this.raiseColumnEvents(r,o),s},e.prototype.raiseColumnEvents=function(e,t){var o=this;if(!this.gridOptionsWrapper.isSuppressSetColumnStateEvents()){var n=this.getColumnState(),r=function(r,i,s){if(!S._.compareArrays(e.map(i).sort(),n.map(i).sort())){var a={type:r,columns:s,column:1===s.length?s[0]:null,api:o.gridApi,columnApi:o.columnApi,source:t};o.eventService.dispatchEvent(a)}},i=function(t){var n=[],r={};return e.forEach((function(e){r[e.colId]=e})),o.gridColumns.forEach((function(e){var o=r[e.getColId()];o&&!t(o,e)||n.push(e)})),n};r(m.Events.EVENT_COLUMN_VALUE_CHANGED,(function(e){return e.colId+"-"+e.aggFunc}),this.valueColumns),r(m.Events.EVENT_COLUMN_PIVOT_CHANGED,(function(e){return e.colId+"-"+e.pivotIndex}),this.pivotColumns),r(m.Events.EVENT_COLUMN_ROW_GROUP_CHANGED,(function(e){return e.colId+"-"+e.rowGroupIndex}),this.rowGroupColumns),this.raiseColumnPinnedEvent(i((function(e,t){return e.pinned!==t.getPinned()})),t);var s=i((function(e,t){return e.hide===t.isVisible()}));this.raiseColumnVisibleEvent(s,t),this.raiseColumnResizeEvent(i((function(e,t){return e.width!==t.getActualWidth()})),t),this.raiseColumnMovedEvent(e,t)}},e.prototype.raiseColumnPinnedEvent=function(e,t){if(e.length>0){var o={type:m.Events.EVENT_COLUMN_PINNED,pinned:null,columns:e,column:null,api:this.gridApi,columnApi:this.columnApi,source:t};this.eventService.dispatchEvent(o)}},e.prototype.raiseColumnVisibleEvent=function(e,t){if(e.length>0){var o={type:m.Events.EVENT_COLUMN_VISIBLE,visible:void 0,columns:e,column:null,api:this.gridApi,columnApi:this.columnApi,source:t};this.eventService.dispatchEvent(o)}},e.prototype.raiseColumnResizeEvent=function(e,t){if(e.length>0){var o={type:m.Events.EVENT_COLUMN_RESIZED,columns:e,column:null,finished:!0,api:this.gridApi,columnApi:this.columnApi,source:t};this.eventService.dispatchEvent(o)}},e.prototype.raiseColumnMovedEvent=function(e,t){for(var o=[],n=this.getColumnState(),r=function(t){var r=e[t],s=n[t];if(!r||s.hide)return"continue";if(r.colId!==s.colId){var a=S._.find(i.allDisplayedColumns,(function(e){return e.getColId()===s.colId}));o.push(a)}},i=this,s=0;s<n.length;s++)r(s);if(o.length>0){var a={type:m.Events.EVENT_COLUMN_MOVED,columns:o,column:null,toIndex:void 0,api:this.gridApi,columnApi:this.columnApi,source:t};this.eventService.dispatchEvent(a)}},e.prototype.sortColumnListUsingIndexes=function(e,t,o){return e[t.getId()]-e[o.getId()]},e.prototype.syncColumnWithNoState=function(e,t){e.setVisible(!1,t),e.setAggFunc(null),e.setPinned(null),e.setRowGroupActive(!1,t),e.setPivotActive(!1,t),e.setValueActive(!1,t)},e.prototype.syncColumnWithStateItem=function(e,t,o,n,r){if(e){e.setVisible(!t.hide,r),e.setPinned(t.pinned);var i=this.gridOptionsWrapper.getMinColWidth();t.width&&i&&t.width>=i&&e.setActualWidth(t.width,r),"string"==typeof t.aggFunc?(e.setAggFunc(t.aggFunc),e.setValueActive(!0,r),this.valueColumns.push(e)):(S._.exists(t.aggFunc)&&console.warn("ag-Grid: stateItem.aggFunc must be a string. if using your own aggregation functions, register the functions first before using them in get/set state. This is because it isintended for the column state to be stored and retrieved as simple JSON."),e.setAggFunc(null),e.setValueActive(!1,r)),"number"==typeof t.rowGroupIndex?(this.rowGroupColumns.push(e),e.setRowGroupActive(!0,r),o[e.getId()]=t.rowGroupIndex):e.setRowGroupActive(!1,r),"number"==typeof t.pivotIndex?(this.pivotColumns.push(e),e.setPivotActive(!0,r),n[e.getId()]=t.pivotIndex):e.setPivotActive(!1,r)}},e.prototype.getGridColumns=function(e){return this.getColumns(e,this.getGridColumn.bind(this))},e.prototype.getColumns=function(e,t){var o=[];return e&&e.forEach((function(e){var n=t(e);n&&o.push(n)})),o},e.prototype.getColumnWithValidation=function(e){var t=this.getPrimaryColumn(e);return t||console.warn("ag-Grid: could not find column "+t),t},e.prototype.getPrimaryColumn=function(e){return this.getColumn(e,this.primaryColumns)},e.prototype.getGridColumn=function(e){return this.getColumn(e,this.gridColumns)},e.prototype.getColumn=function(e,t){if(!e)return null;for(var o=0;o<t.length;o++)if(this.columnsMatch(t[o],e))return t[o];return this.getAutoColumn(e)},e.prototype.getAutoColumn=function(e){var t=this;return this.groupAutoColumns&&S._.exists(this.groupAutoColumns)&&!S._.missing(this.groupAutoColumns)?S._.find(this.groupAutoColumns,(function(o){return t.columnsMatch(o,e)})):null},e.prototype.columnsMatch=function(e,t){var o=e===t,n=e.getColDef()===t,r=e.getColId()==t;return o||n||r},e.prototype.getDisplayNameForColumn=function(e,t,o){if(void 0===o&&(o=!1),!e)return null;var n=this.getHeaderName(e.getColDef(),e,null,null,t);return o?this.wrapHeaderNameWithAggFunc(e,n):n},e.prototype.getDisplayNameForOriginalColumnGroup=function(e,t,o){var n=t?t.getColGroupDef():null;return n?this.getHeaderName(n,null,e,t,o):null},e.prototype.getDisplayNameForColumnGroup=function(e,t){return this.getDisplayNameForOriginalColumnGroup(e,e.getOriginalColumnGroup(),t)},e.prototype.getHeaderName=function(e,t,o,n,r){var i=e.headerValueGetter;if(i){var s={colDef:e,column:t,columnGroup:o,originalColumnGroup:n,location:r,api:this.gridOptionsWrapper.getApi(),context:this.gridOptionsWrapper.getContext()};return"function"==typeof i?i(s):"string"==typeof i?this.expressionService.evaluate(i,s):(console.warn("ag-grid: headerValueGetter must be a function or a string"),"")}return null!=e.headerName?e.headerName:e.field?S._.camelCaseToHumanText(e.field):""},e.prototype.wrapHeaderNameWithAggFunc=function(e,t){if(this.gridOptionsWrapper.isSuppressAggFuncInHeader())return t;var o,n=e.getColDef().pivotValueColumn,r=null;if(S._.exists(n))r=n?n.getAggFunc():null,o=!0;else{var i=e.isValueActive(),s=this.pivotMode||!this.isRowGroupEmpty();i&&s?(r=e.getAggFunc(),o=!0):o=!1}if(o){var a="string"==typeof r?r:"func";return this.gridOptionsWrapper.getLocaleTextFunc()(a,a)+"("+t+")"}return t},e.prototype.getColumnGroup=function(e,t){if(!e)return null;if(e instanceof s.ColumnGroup)return e;var o=this.getAllDisplayedColumnGroups(),n="number"==typeof t,r=null;return this.columnUtils.depthFirstAllColumnTreeSearch(o,(function(o){if(o instanceof s.ColumnGroup){var i=o;(n?e===i.getGroupId()&&t===i.getInstanceId():e===i.getGroupId())&&(r=i)}})),r},e.prototype.isReady=function(){return this.ready},e.prototype.createValueColumns=function(e,t){this.valueColumns=this.extractColumns(t,this.valueColumns,(function(t,o){return t.setValueActive(o,e)}),(function(){return null}),(function(e){return!!e.aggFunc})),this.valueColumns.forEach((function(e){e.getAggFunc()||e.setAggFunc(e.getColDef().aggFunc)}))},e.prototype.extractRowGroupColumns=function(e,t){this.rowGroupColumns=this.extractColumns(t,this.rowGroupColumns,(function(t,o){return t.setRowGroupActive(o,e)}),(function(e){return e.rowGroupIndex}),(function(e){return e.rowGroup}))},e.prototype.extractColumns=function(e,t,o,n,r){var i=this;t||(t=[]);var s=t.filter((function(e){return i.primaryColumns.indexOf(e)<0})),a=t.filter((function(e){return i.primaryColumns.indexOf(e)>=0})),l=this.primaryColumns.filter((function(t){return!e||e.indexOf(t)<0}));s.forEach((function(e){return o(e,!1)}));var p=[];return l.forEach((function(e){"number"==typeof n(e.getColDef())&&p.push(e)})),p.sort((function(e,t){var o=n(e.getColDef()),r=n(t.getColDef());return o===r?0:o<r?-1:1})),l.forEach((function(e){if(r(e.getColDef())){if(p.indexOf(e)>=0)return;p.push(e)}})),p.forEach((function(e){return o(e,!0)})),a.concat(p)},e.prototype.extractPivotColumns=function(e,t){this.pivotColumns=this.extractColumns(t,this.pivotColumns,(function(t,o){return t.setPivotActive(o,e)}),(function(e){return e.pivotIndex}),(function(e){return e.pivot}))},e.prototype.resetColumnGroupState=function(e){void 0===e&&(e="api");var t=[];this.columnUtils.depthFirstOriginalTreeSearch(null,this.primaryColumnTree,(function(e){if(e instanceof y.OriginalColumnGroup){var o={groupId:e.getGroupId(),open:e.getColGroupDef().openByDefault};t.push(o)}})),this.setColumnGroupState(t,e)},e.prototype.getColumnGroupState=function(){var e=[];return this.columnUtils.depthFirstOriginalTreeSearch(null,this.gridBalancedTree,(function(t){if(t instanceof y.OriginalColumnGroup){var o=t;e.push({groupId:o.getGroupId(),open:o.isExpanded()})}})),e},e.prototype.setColumnGroupState=function(e,t){var o=this;void 0===t&&(t="api"),this.columnAnimationService.start();var n=[];e.forEach((function(e){var t=e.groupId,r=e.open,i=o.getOriginalColumnGroup(t);i&&i.isExpanded()!==r&&(o.logger.log("columnGroupOpened("+i.getGroupId()+","+r+")"),i.setExpanded(r),n.push(i))})),this.updateGroupsAndDisplayedColumns(t),n.forEach((function(e){var t={type:m.Events.EVENT_COLUMN_GROUP_OPENED,columnGroup:e,api:o.gridApi,columnApi:o.columnApi};o.eventService.dispatchEvent(t)})),this.columnAnimationService.finish()},e.prototype.setColumnGroupOpened=function(e,t,o){var n;void 0===o&&(o="api"),n=e instanceof y.OriginalColumnGroup?e.getId():e,this.setColumnGroupState([{groupId:n,open:t}],o)},e.prototype.getOriginalColumnGroup=function(e){if(e instanceof y.OriginalColumnGroup)return e;"string"!=typeof e&&console.error("ag-Grid: group key must be a string");var t=null;return this.columnUtils.depthFirstOriginalTreeSearch(null,this.gridBalancedTree,(function(o){if(o instanceof y.OriginalColumnGroup){var n=o;n.getId()===e&&(t=n)}})),t},e.prototype.calculateColumnsForDisplay=function(){var e=this;return this.pivotMode&&!this.secondaryColumnsPresent?S._.filter(this.gridColumns,(function(t){var o=e.groupAutoColumns&&e.groupAutoColumns.indexOf(t)>=0,n=e.valueColumns&&e.valueColumns.indexOf(t)>=0;return o||n})):S._.filter(this.gridColumns,(function(t){return e.groupAutoColumns&&e.groupAutoColumns.indexOf(t)>=0||t.isVisible()}))},e.prototype.checkColSpanActiveInCols=function(e){var t=!1;return e.forEach((function(e){S._.exists(e.getColDef().colSpan)&&(t=!0)})),t},e.prototype.calculateColumnsForGroupDisplay=function(){var e=this;this.groupDisplayColumns=[];var t=function(t){var o=t.getColDef();o&&S._.exists(o.showRowGroup)&&e.groupDisplayColumns.push(t)};this.gridColumns.forEach(t),this.groupAutoColumns&&this.groupAutoColumns.forEach(t)},e.prototype.getGroupDisplayColumns=function(){return this.groupDisplayColumns},e.prototype.updateDisplayedColumns=function(e){var t=this.calculateColumnsForDisplay();this.buildDisplayedTrees(t),this.calculateColumnsForGroupDisplay(),this.updateGroupsAndDisplayedColumns(e),this.setFirstRightAndLastLeftPinned(e)},e.prototype.isSecondaryColumnsPresent=function(){return this.secondaryColumnsPresent},e.prototype.setSecondaryColumns=function(e,t){void 0===t&&(t="api");var o=e&&e.length>0;if(o||this.secondaryColumnsPresent){if(o){this.processSecondaryColumnDefinitions(e);var n=this.columnFactory.createColumnTree(e,!1);this.secondaryBalancedTree=n.columnTree,this.secondaryHeaderRowCount=n.treeDept+1,this.secondaryColumns=this.getColumnsFromTree(this.secondaryBalancedTree),this.secondaryColumnsPresent=!0}else this.secondaryBalancedTree=null,this.secondaryHeaderRowCount=-1,this.secondaryColumns=null,this.secondaryColumnsPresent=!1;this.updateGridColumns(),this.updateDisplayedColumns(t)}},e.prototype.processSecondaryColumnDefinitions=function(e){var t=this.gridOptionsWrapper.getProcessSecondaryColDefFunc(),o=this.gridOptionsWrapper.getProcessSecondaryColGroupDefFunc();(t||o)&&e&&function e(n){n.forEach((function(n){if(S._.exists(n.children)){var r=n;o&&o(r),e(r.children)}else t&&t(n)}))}(e)},e.prototype.updateGridColumns=function(){this.gridColsArePrimary&&(this.lastPrimaryOrder=this.gridColumns),this.secondaryColumns&&this.secondaryBalancedTree?(this.gridBalancedTree=this.secondaryBalancedTree.slice(),this.gridHeaderRowCount=this.secondaryHeaderRowCount,this.gridColumns=this.secondaryColumns.slice(),this.gridColsArePrimary=!1):(this.gridBalancedTree=this.primaryColumnTree.slice(),this.gridHeaderRowCount=this.primaryHeaderRowCount,this.gridColumns=this.primaryColumns.slice(),this.gridColsArePrimary=!0,this.orderGridColsLikeLastPrimary()),this.addAutoGroupToGridColumns(),this.autoRowHeightColumns=this.gridColumns.filter((function(e){return e.getColDef().autoHeight})),this.putFixedColumnsFirst(),this.setupQuickFilterColumns(),this.clearDisplayedColumns(),this.colSpanActive=this.checkColSpanActiveInCols(this.gridColumns);var e={type:m.Events.EVENT_GRID_COLUMNS_CHANGED,api:this.gridApi,columnApi:this.columnApi};this.eventService.dispatchEvent(e)},e.prototype.orderGridColsLikeLastPrimary=function(){var e=this;if(!S._.missing(this.lastPrimaryOrder)){var t=!0;if(this.gridColumns.forEach((function(o){e.lastPrimaryOrder.indexOf(o)>=0&&(t=!1)})),!t){var o=this.lastPrimaryOrder.filter((function(t){return e.gridColumns.indexOf(t)>=0})),n=this.gridColumns.filter((function(e){return o.indexOf(e)<0})),r=o.slice();n.forEach((function(e){var t=e.getOriginalParent();if(t){for(var o=[];!o.length&&t;)t.getLeafColumns().forEach((function(e){var t=r.indexOf(e)>=0,n=o.indexOf(e)<0;t&&n&&o.push(e)})),t=t.getOriginalParent();if(o.length){var n=o.map((function(e){return r.indexOf(e)})),i=Math.max.apply(Math,n);S._.insertIntoArray(r,e,i+1)}else r.push(e)}else r.push(e)})),this.gridColumns=r}}},e.prototype.isPrimaryColumnGroupsPresent=function(){return this.primaryHeaderRowCount>1},e.prototype.setupQuickFilterColumns=function(){this.groupAutoColumns?this.columnsForQuickFilter=this.primaryColumns.concat(this.groupAutoColumns):this.columnsForQuickFilter=this.primaryColumns},e.prototype.putFixedColumnsFirst=function(){var e=this.gridColumns.filter((function(e){return e.isLockPosition()})),t=this.gridColumns.filter((function(e){return!e.isLockPosition()}));this.gridColumns=e.concat(t)},e.prototype.addAutoGroupToGridColumns=function(){if(this.createGroupAutoColumnsIfNeeded(),!S._.missing(this.groupAutoColumns)){this.gridColumns=this.groupAutoColumns?this.groupAutoColumns.concat(this.gridColumns):this.gridColumns;var e=this.columnFactory.createForAutoGroups(this.groupAutoColumns,this.gridBalancedTree);this.gridBalancedTree=e.concat(this.gridBalancedTree)}},e.prototype.clearDisplayedColumns=function(){this.displayedLeftColumnTree=[],this.displayedRightColumnTree=[],this.displayedCentreColumnTree=[],this.displayedLeftHeaderRows={},this.displayedRightHeaderRows={},this.displayedCentreHeaderRows={},this.displayedLeftColumns=[],this.displayedRightColumns=[],this.displayedCenterColumns=[],this.allDisplayedColumns=[],this.allDisplayedVirtualColumns=[]},e.prototype.updateGroupsAndDisplayedColumns=function(e){this.updateOpenClosedVisibilityInColumnGroups(),this.updateDisplayedColumnsFromTrees(e),this.updateVirtualSets(),this.updateBodyWidths();var t={type:m.Events.EVENT_DISPLAYED_COLUMNS_CHANGED,api:this.gridApi,columnApi:this.columnApi};this.eventService.dispatchEvent(t)},e.prototype.updateDisplayedColumnsFromTrees=function(e){this.addToDisplayedColumns(this.displayedLeftColumnTree,this.displayedLeftColumns),this.addToDisplayedColumns(this.displayedCentreColumnTree,this.displayedCenterColumns),this.addToDisplayedColumns(this.displayedRightColumnTree,this.displayedRightColumns),this.setupAllDisplayedColumns(),this.setLeftValues(e)},e.prototype.setupAllDisplayedColumns=function(){this.gridOptionsWrapper.isEnableRtl()?this.allDisplayedColumns=this.displayedRightColumns.concat(this.displayedCenterColumns).concat(this.displayedLeftColumns):this.allDisplayedColumns=this.displayedLeftColumns.concat(this.displayedCenterColumns).concat(this.displayedRightColumns)},e.prototype.setLeftValues=function(e){this.setLeftValuesOfColumns(e),this.setLeftValuesOfGroups()},e.prototype.setLeftValuesOfColumns=function(e){var t=this,o=this.primaryColumns.slice(0),n=this.gridOptionsWrapper.isEnableRtl();[this.displayedLeftColumns,this.displayedRightColumns,this.displayedCenterColumns].forEach((function(r){if(n){var i=t.getWidthOfColsInList(r);r.forEach((function(t){i-=t.getActualWidth(),t.setLeft(i,e)}))}else{var s=0;r.forEach((function(t){t.setLeft(s,e),s+=t.getActualWidth()}))}S._.removeAllFromArray(o,r)})),o.forEach((function(t){t.setLeft(null,e)}))},e.prototype.setLeftValuesOfGroups=function(){[this.displayedLeftColumnTree,this.displayedRightColumnTree,this.displayedCentreColumnTree].forEach((function(e){e.forEach((function(e){e instanceof s.ColumnGroup&&e.checkLeft()}))}))},e.prototype.addToDisplayedColumns=function(e,t){t.length=0,this.columnUtils.depthFirstDisplayedColumnTreeSearch(e,(function(e){e instanceof a.Column&&t.push(e)}))},e.prototype.updateDisplayedCenterVirtualColumns=function(){this.suppressColumnVirtualisation?this.allDisplayedCenterVirtualColumns=this.displayedCenterColumns:this.allDisplayedCenterVirtualColumns=this.filterOutColumnsWithinViewport(),this.allDisplayedVirtualColumns=this.allDisplayedCenterVirtualColumns.concat(this.displayedLeftColumns).concat(this.displayedRightColumns);var e={};return this.allDisplayedVirtualColumns.forEach((function(t){e[t.getId()]=!0})),e},e.prototype.getVirtualHeaderGroupRow=function(e,t){var o;switch(e){case a.Column.PINNED_LEFT:o=this.displayedLeftHeaderRows[t];break;case a.Column.PINNED_RIGHT:o=this.displayedRightHeaderRows[t];break;default:o=this.displayedCentreHeaderRows[t]}return S._.missing(o)&&(o=[]),o},e.prototype.updateDisplayedVirtualGroups=function(e){function t(o,n,r){for(var i=!1,s=0;s<o.length;s++){var l=o[s];(l instanceof a.Column?!0===e[l.getId()]:t(l.getDisplayedChildren(),n,r+1))&&(i=!0,n[r]||(n[r]=[]),n[r].push(l))}return i}this.displayedLeftHeaderRows={},this.displayedRightHeaderRows={},this.displayedCentreHeaderRows={},t(this.displayedLeftColumnTree,this.displayedLeftHeaderRows,0),t(this.displayedRightColumnTree,this.displayedRightHeaderRows,0),t(this.displayedCentreColumnTree,this.displayedCentreHeaderRows,0)},e.prototype.updateVirtualSets=function(){var e=this.updateDisplayedCenterVirtualColumns();this.updateDisplayedVirtualGroups(e)},e.prototype.filterOutColumnsWithinViewport=function(){return S._.filter(this.displayedCenterColumns,this.isColumnInViewport.bind(this))},e.prototype.sizeColumnsToFit=function(e,t){var o=this;void 0===t&&(t="api");var n=this.getAllDisplayedColumns();if(!(e<=0||0===n.length)){for(var r=S._.filter(n,(function(e){return!0===e.getColDef().suppressSizeToFit})),i=S._.filter(n,(function(e){return!0!==e.getColDef().suppressSizeToFit})),s=i.slice(0),a=!1;!a;){a=!0;var l=e-this.getWidthOfColsInList(r);if(l<=0)i.forEach((function(e){e.setMinimum(t)}));else for(var p=l/this.getWidthOfColsInList(i),u=l,c=i.length-1;c>=0;c--){var d=i[c],h=Math.round(d.getActualWidth()*p);h<d.getMinWidth()?(d.setMinimum(t),f(d),a=!1):d.isGreaterThanMax(h)?(d.setActualWidth(d.getMaxWidth(),t),f(d),a=!1):0===c?d.setActualWidth(u,t):d.setActualWidth(h,t),u-=h}}this.setLeftValues(t),this.updateBodyWidths(),s.forEach((function(e){var t={type:m.Events.EVENT_COLUMN_RESIZED,column:e,columns:[e],finished:!0,api:o.gridApi,columnApi:o.columnApi,source:"sizeColumnsToFit"};o.eventService.dispatchEvent(t)}))}function f(e){S._.removeFromArray(i,e),r.push(e)}},e.prototype.buildDisplayedTrees=function(e){var t=S._.filter(e,(function(e){return"left"===e.getPinned()})),o=S._.filter(e,(function(e){return"right"===e.getPinned()})),n=S._.filter(e,(function(e){return"left"!==e.getPinned()&&"right"!==e.getPinned()})),r=new v.GroupInstanceIdCreator;this.displayedLeftColumnTree=this.displayedGroupCreator.createDisplayedGroups(t,this.gridBalancedTree,r,a.Column.PINNED_LEFT,this.displayedLeftColumnTree),this.displayedRightColumnTree=this.displayedGroupCreator.createDisplayedGroups(o,this.gridBalancedTree,r,a.Column.PINNED_RIGHT,this.displayedRightColumnTree),this.displayedCentreColumnTree=this.displayedGroupCreator.createDisplayedGroups(n,this.gridBalancedTree,r,null,this.displayedCentreColumnTree)},e.prototype.updateOpenClosedVisibilityInColumnGroups=function(){var e=this.getAllDisplayedColumnGroups();this.columnUtils.depthFirstAllColumnTreeSearch(e,(function(e){e instanceof s.ColumnGroup&&e.calculateDisplayedColumns()}))},e.prototype.getGroupAutoColumns=function(){return this.groupAutoColumns},e.prototype.createGroupAutoColumnsIfNeeded=function(){if(this.autoGroupsNeedBuilding)if(this.autoGroupsNeedBuilding=!1,!(this.rowGroupColumns.length>0||this.usingTreeData)||this.gridOptionsWrapper.isGroupSuppressAutoColumn()||this.gridOptionsWrapper.isGroupUseEntireRow()||this.gridOptionsWrapper.isGroupSuppressRow())this.groupAutoColumns=null;else{var e=this.autoGroupColService.createAutoGroupColumns(this.rowGroupColumns);!this.autoColsEqual(e,this.groupAutoColumns)&&(this.groupAutoColumns=e)}},e.prototype.autoColsEqual=function(e,t){if(!e&&!t)return!0;if(!e||!t)return!1;if(e.length!==t.length)return!1;for(var o=0;o<e.length;o++){var n=e[o],r=t[o];if(n.getColId()!==r.getColId())return!1}return!0},e.prototype.getWidthOfColsInList=function(e){for(var t=0,o=0;o<e.length;o++)t+=e[o].getActualWidth();return t},e.prototype.getGridBalancedTree=function(){return this.gridBalancedTree},n([C.Autowired("gridOptionsWrapper"),r("design:type",l.GridOptionsWrapper)],e.prototype,"gridOptionsWrapper",void 0),n([C.Autowired("expressionService"),r("design:type",p.ExpressionService)],e.prototype,"expressionService",void 0),n([C.Autowired("columnFactory"),r("design:type",u.ColumnFactory)],e.prototype,"columnFactory",void 0),n([C.Autowired("displayedGroupCreator"),r("design:type",c.DisplayedGroupCreator)],e.prototype,"displayedGroupCreator",void 0),n([C.Autowired("autoWidthCalculator"),r("design:type",d.AutoWidthCalculator)],e.prototype,"autoWidthCalculator",void 0),n([C.Autowired("eventService"),r("design:type",h.EventService)],e.prototype,"eventService",void 0),n([C.Autowired("columnUtils"),r("design:type",f.ColumnUtils)],e.prototype,"columnUtils",void 0),n([C.Autowired("context"),r("design:type",C.Context)],e.prototype,"context",void 0),n([C.Autowired("columnAnimationService"),r("design:type",w.ColumnAnimationService)],e.prototype,"columnAnimationService",void 0),n([C.Autowired("autoGroupColService"),r("design:type",_.AutoGroupColService)],e.prototype,"autoGroupColService",void 0),n([C.Optional("aggFuncService"),r("design:type",Object)],e.prototype,"aggFuncService",void 0),n([C.Optional("valueCache"),r("design:type",E.ValueCache)],e.prototype,"valueCache",void 0),n([C.Autowired("columnApi"),r("design:type",R.ColumnApi)],e.prototype,"columnApi",void 0),n([C.Autowired("gridApi"),r("design:type",b.GridApi)],e.prototype,"gridApi",void 0),n([C.PostConstruct,r("design:type",Function),r("design:paramtypes",[]),r("design:returntype",void 0)],e.prototype,"init",null),n([i(0,C.Qualifier("loggerFactory")),r("design:type",Function),r("design:paramtypes",[g.LoggerFactory]),r("design:returntype",void 0)],e.prototype,"setBeans",null),n([C.Bean("columnController")],e)}();t.ColumnController=O},52958:(e,t,o)=>{Object.defineProperty(t,"__esModule",{value:!0});var n=o(62695);function r(e,t,o,r){var i,s,a=r.agGrid;if(s=a+".quickFilterText",i=t.$eval(a)){var l=e[0],p={$scope:t,$compile:o,quickFilterOnScope:s},u=new n.Grid(l,i,p);t.$on("$destroy",(function(){u.destroy(),u=null}))}else console.warn("WARNING - grid options for ag-Grid not found. Please ensure the attribute ag-grid points to a valid object on the scope")}t.initialiseAgGridWithAngular1=function(e){e.module("agGrid",[]).directive("agGrid",(function(){return{restrict:"A",controller:["$element","$scope","$compile","$attrs",r],scope:!0}}))}},53421:function(e,t,o){var n,r=this&&this.__extends||(n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])},n(e,t)},function(e,t){function o(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(o.prototype=t.prototype,new o)});Object.defineProperty(t,"__esModule",{value:!0});var i=o(33669),s=o(6658),a=o(43510),l=function(e){function t(t){var o=e.call(this)||this;return o.maxRowFound=!1,o.blocks={},o.blockCount=0,o.virtualRowCount=t.initialRowCount,o.cacheParams=t,o}return r(t,e),t.prototype.destroy=function(){var t=this;e.prototype.destroy.call(this),this.forEachBlockInOrder((function(e){return t.destroyBlock(e)}))},t.prototype.init=function(){var e=this;this.active=!0,this.addDestroyFunc((function(){return e.active=!1}))},t.prototype.isActive=function(){return this.active},t.prototype.getVirtualRowCount=function(){return this.virtualRowCount},t.prototype.hack_setVirtualRowCount=function(e){this.virtualRowCount=e},t.prototype.isMaxRowFound=function(){return this.maxRowFound},t.prototype.onPageLoaded=function(e){this.cacheParams.rowNodeBlockLoader.loadComplete(),this.checkBlockToLoad(),this.isActive()&&(this.logger.log("onPageLoaded: page = "+e.page.getBlockNumber()+", lastRow = "+e.lastRow),e.success&&this.checkVirtualRowCount(e.page,e.lastRow))},t.prototype.purgeBlocksIfNeeded=function(e){var o=this,n=[];this.forEachBlockInOrder((function(t){t!==e&&n.push(t)})),n.sort((function(e,t){return t.getLastAccessed()-e.getLastAccessed()}));var r=this.cacheParams.maxBlocksInCache>0,i=r?this.cacheParams.maxBlocksInCache-1:null,a=t.MAX_EMPTY_BLOCKS_TO_KEEP-1;n.forEach((function(e,t){if(e.getState()===s.RowNodeBlock.STATE_DIRTY&&t>=a||r&&t>=i){if(e.isAnyNodeOpen(o.virtualRowCount))return;o.removeBlockFromCache(e)}}))},t.prototype.postCreateBlock=function(e){e.addEventListener(s.RowNodeBlock.EVENT_LOAD_COMPLETE,this.onPageLoaded.bind(this)),this.setBlock(e.getBlockNumber(),e),this.purgeBlocksIfNeeded(e),this.checkBlockToLoad()},t.prototype.removeBlockFromCache=function(e){e&&this.destroyBlock(e)},t.prototype.checkBlockToLoad=function(){this.cacheParams.rowNodeBlockLoader.checkBlockToLoad()},t.prototype.checkVirtualRowCount=function(e,t){if("number"==typeof t&&t>=0)this.virtualRowCount=t,this.maxRowFound=!0,this.onCacheUpdated();else if(!this.maxRowFound){var o=(e.getBlockNumber()+1)*this.cacheParams.blockSize+this.cacheParams.overflowSize;this.virtualRowCount<o?(this.virtualRowCount=o,this.onCacheUpdated()):this.cacheParams.dynamicRowHeight&&this.onCacheUpdated()}},t.prototype.setVirtualRowCount=function(e,t){this.virtualRowCount=e,a._.exists(t)&&(this.maxRowFound=t),this.maxRowFound||this.virtualRowCount%this.cacheParams.blockSize==0&&this.virtualRowCount++,this.onCacheUpdated()},t.prototype.forEachNodeDeep=function(e,t){var o=this;this.forEachBlockInOrder((function(n){n.forEachNodeDeep(e,t,o.virtualRowCount)}))},t.prototype.forEachBlockInOrder=function(e){var t=this.getBlockIdsSorted();this.forEachBlockId(t,e)},t.prototype.forEachBlockInReverseOrder=function(e){var t=this.getBlockIdsSorted().reverse();this.forEachBlockId(t,e)},t.prototype.forEachBlockId=function(e,t){var o=this;e.forEach((function(e){var n=o.blocks[e];t(n,e)}))},t.prototype.getBlockIdsSorted=function(){return Object.keys(this.blocks).map((function(e){return parseInt(e,10)})).sort((function(e,t){return e-t}))},t.prototype.getBlock=function(e){return this.blocks[e]},t.prototype.setBlock=function(e,t){this.blocks[e]=t,this.blockCount++,this.cacheParams.rowNodeBlockLoader.addBlock(t)},t.prototype.destroyBlock=function(e){delete this.blocks[e.getBlockNumber()],e.destroy(),this.blockCount--,this.cacheParams.rowNodeBlockLoader.removeBlock(e)},t.prototype.onCacheUpdated=function(){if(this.isActive()){var e={type:t.EVENT_CACHE_UPDATED};this.dispatchEvent(e)}},t.prototype.purgeCache=function(){var e=this;this.forEachBlockInOrder((function(t){return e.removeBlockFromCache(t)})),this.virtualRowCount=this.cacheParams.initialRowCount,this.maxRowFound=!1,this.onCacheUpdated()},t.prototype.getRowNodesInRange=function(e,t){var o=this,n=[],r=-1,i=!1,s=new a.NumberSequence;a._.missing(e)&&(i=!0);var l=!1;return this.forEachBlockInOrder((function(a,p){l||(i&&r+1!==p?l=!0:(r=p,a.forEachNodeShallow((function(o){var r=o===e||o===t;(i||r)&&n.push(o),r&&(i=!i)}),s,o.virtualRowCount)))})),l||i?[]:n},t.EVENT_CACHE_UPDATED="cacheUpdated",t.MAX_EMPTY_BLOCKS_TO_KEEP=2,t}(i.BeanStub);t.RowNodeCache=l},53628:function(e,t,o){var n=this&&this.__decorate||function(e,t,o,n){var r,i=arguments.length,s=i<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,n);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,o,s):r(t,o))||s);return i>3&&s&&Object.defineProperty(t,o,s),s},r=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0});var i=o(59804),s=o(6459),a=function(){function e(){}return e.prototype.postConstruct=function(){this.componentMetaData={dateComponent:{mandatoryMethodList:["getDate","setDate"],optionalMethodList:["afterGuiAttached"]},detailCellRenderer:{mandatoryMethodList:[],optionalMethodList:[]},headerComponent:{mandatoryMethodList:[],optionalMethodList:[]},headerGroupComponent:{mandatoryMethodList:[],optionalMethodList:[]},loadingCellRenderer:{mandatoryMethodList:[],optionalMethodList:[]},loadingOverlayComponent:{mandatoryMethodList:[],optionalMethodList:[]},noRowsOverlayComponent:{mandatoryMethodList:[],optionalMethodList:[]},floatingFilterComponent:{mandatoryMethodList:["onParentModelChanged"],optionalMethodList:["afterGuiAttached"]},floatingFilterWrapperComponent:{mandatoryMethodList:[],optionalMethodList:[]},cellRenderer:{mandatoryMethodList:[],optionalMethodList:["refresh","afterGuiAttached"],functionAdapter:this.agComponentUtils.adaptCellRendererFunction.bind(this.agComponentUtils)},cellEditor:{mandatoryMethodList:["getValue"],optionalMethodList:["isPopup","isCancelBeforeStart","isCancelAfterEnd","focusIn","focusOut","afterGuiAttached"]},innerRenderer:{mandatoryMethodList:[],optionalMethodList:["afterGuiAttached"],functionAdapter:this.agComponentUtils.adaptCellRendererFunction.bind(this.agComponentUtils)},fullWidthCellRenderer:{mandatoryMethodList:[],optionalMethodList:["afterGuiAttached"],functionAdapter:this.agComponentUtils.adaptCellRendererFunction.bind(this.agComponentUtils)},pinnedRowCellRenderer:{mandatoryMethodList:[],optionalMethodList:["refresh","afterGuiAttached"],functionAdapter:this.agComponentUtils.adaptCellRendererFunction.bind(this.agComponentUtils)},groupRowInnerRenderer:{mandatoryMethodList:[],optionalMethodList:["afterGuiAttached"],functionAdapter:this.agComponentUtils.adaptCellRendererFunction.bind(this.agComponentUtils)},groupRowRenderer:{mandatoryMethodList:[],optionalMethodList:["afterGuiAttached"],functionAdapter:this.agComponentUtils.adaptCellRendererFunction.bind(this.agComponentUtils)},filter:{mandatoryMethodList:["isFilterActive","doesFilterPass","getModel","setModel"],optionalMethodList:["afterGuiAttached","onNewRowsLoaded","getModelAsString","onFloatingFilterChanged"]},filterComponent:{mandatoryMethodList:["isFilterActive","doesFilterPass","getModel","setModel"],optionalMethodList:["afterGuiAttached","onNewRowsLoaded","getModelAsString","onFloatingFilterChanged"]},statusPanel:{mandatoryMethodList:[],optionalMethodList:["afterGuiAttached"]},toolPanel:{mandatoryMethodList:[],optionalMethodList:["refresh","afterGuiAttached"]},tooltipComponent:{mandatoryMethodList:[],optionalMethodList:[]}}},e.prototype.retrieve=function(e){return this.componentMetaData[e]},n([i.Autowired("agComponentUtils"),r("design:type",s.AgComponentUtils)],e.prototype,"agComponentUtils",void 0),n([i.PostConstruct,r("design:type",Function),r("design:paramtypes",[]),r("design:returntype",void 0)],e.prototype,"postConstruct",null),n([i.Bean("componentMetadataProvider")],e)}();t.ComponentMetadataProvider=a},53705:function(e,t,o){var n,r=this&&this.__extends||(n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])},n(e,t)},function(e,t){function o(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(o.prototype=t.prototype,new o)}),i=this&&this.__decorate||function(e,t,o,n){var r,i=arguments.length,s=i<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,n);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,o,s):r(t,o))||s);return i>3&&s&&Object.defineProperty(t,o,s),s},s=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0});var a=o(59804),l=o(71569),p=o(98681),u=o(45212),c=o(38830),d=o(17890),h=o(99162),f=o(71627),g=o(21311),m=o(33018),y=o(47304),v=o(94741),C=o(43510),w=o(36071),_=o(31551),E=o(81404),b=o(57663),R=function(e){function t(o){var n=e.call(this,t.TEMPLATE)||this;return n.column=o,n}return r(t,e),t.prototype.postConstruct=function(){this.setupFloatingFilter(),this.setupWidth(),this.setupLeftPositioning(),this.setupColumnHover(),this.addFeature(this.getContext(),new g.HoverFeature([this.column],this.getGui())),this.addDestroyableEventListener(this.eButtonShowMainFilter,"click",this.showParentFilter.bind(this))},t.prototype.setupFloatingFilter=function(){var e=this;this.column.getColDef().filter?(this.floatingFilterCompPromise=this.getFloatingFilterInstance(),this.floatingFilterCompPromise?this.floatingFilterCompPromise.then((function(t){t?e.setupWithFloatingFilter(t):e.setupEmpty()})):this.setupEmpty(),this.setupSyncWithFilter()):this.setupEmpty()},t.prototype.setupLeftPositioning=function(){var e=new p.SetLeftFeature(this.column,this.getGui(),this.beans);e.init(),this.addDestroyFunc(e.destroy.bind(e))},t.prototype.setupSyncWithFilter=function(){var e=this,t=function(){var t=e.filterManager.getFilterComponent(e.column,"NO_UI");e.onParentModelChanged(t.resolveNow(null,(function(e){return e.getModel()})))};this.addDestroyableEventListener(this.column,l.Column.EVENT_FILTER_CHANGED,t),this.filterManager.cachedFilter(this.column)&&t()},t.prototype.showParentFilter=function(){this.menuFactory.showMenuAfterButtonClick(this.column,this.eButtonShowMainFilter,"filterMenuTab",["filterMenuTab"])},t.prototype.setupColumnHover=function(){this.addDestroyableEventListener(this.eventService,m.Events.EVENT_COLUMN_HOVER_CHANGED,this.onColumnHover.bind(this)),this.onColumnHover()},t.prototype.onColumnHover=function(){var e=this.columnHoverService.isHovered(this.column);C._.addOrRemoveCssClass(this.getGui(),"ag-column-hover",e)},t.prototype.setupWidth=function(){this.addDestroyableEventListener(this.column,l.Column.EVENT_WIDTH_CHANGED,this.onColumnWidthChanged.bind(this)),this.onColumnWidthChanged()},t.prototype.onColumnWidthChanged=function(){this.getGui().style.width=this.column.getActualWidth()+"px"},t.prototype.setupWithFloatingFilter=function(e){var t=function(){e.destroy&&e.destroy()};if(this.isAlive()){this.addDestroyFunc(t);var o=e.getGui();C._.addOrRemoveCssClass(this.eFloatingFilterBody,"ag-floating-filter-body",!this.suppressFilterButton),C._.addOrRemoveCssClass(this.eFloatingFilterBody,"ag-floating-filter-full-body",this.suppressFilterButton),C._.setVisible(this.eButtonWrapper,!this.suppressFilterButton);var n=C._.createIconNoSpan("filter",this.gridOptionsWrapper,this.column);this.eButtonShowMainFilter.appendChild(n),this.eFloatingFilterBody.appendChild(o),e.afterGuiAttached&&e.afterGuiAttached(),this.wireQuerySelectors()}else t()},t.prototype.getFloatingFilterInstance=function(){var e,o=this,n=this.column.getColDef();"string"==typeof n.filter?e=t.filterToFloatingFilterNames[n.filter]:!0===n.filter&&(e=this.gridOptionsWrapper.isEnterprise()?"agSetColumnFloatingFilter":"agTextColumnFloatingFilter");var r={api:this.gridApi,column:this.column,currentParentModel:this.currentParentModel.bind(this),onFloatingFilterChanged:this.onFloatingFilterChanged.bind(this),suppressFilterButton:!1};this.suppressFilterButton=!!n.floatingFilterComponentParams&&!!n.floatingFilterComponentParams.suppressFilterButton;var i=this.userComponentFactory.newFloatingFilterComponent(n,r,e);if(!i){var s=this.getFilterComponentPrototype(n);if(s&&s.prototype&&s.prototype.getModelAsString){var a=r.currentParentModel;r.currentParentModel=function(){return o.filterManager.getFilterComponent(o.column,"NO_UI").resolveNow(null,(function(e){return e.getModelAsString?e.getModelAsString(a()):null}))};var l=this.userComponentFactory.createUserComponentFromConcreteClass(u.ReadModelAsStringFloatingFilterComp,r);i=C.Promise.resolve(l)}}return i},t.prototype.createDynamicParams=function(){return{column:this.column,colDef:this.column.getColDef(),api:this.gridApi,columnApi:this.columnApi}},t.prototype.getFilterComponentPrototype=function(e){var t=this.userComponentFactory.lookupComponentClassDef(e,"filter",this.createDynamicParams());return t?t.component:null},t.prototype.setupEmpty=function(){C._.setVisible(this.eButtonWrapper,!1)},t.prototype.currentParentModel=function(){var e=this.filterManager.getFilterComponent(this.column,"NO_UI").resolveNow(null,(function(e){return e.getNullableModel?e.getNullableModel():e.getModel()}));return e&&null!=e.operator?e.condition1:e},t.prototype.onFloatingFilterChanged=function(e){var t,o=this,n=new C.Promise((function(e){t=e}));return this.filterManager.getFilterComponent(this.column,"NO_UI").then((function(n){if(n.onFloatingFilterChanged){var r=n.onFloatingFilterChanged(e);t(r)}else n.setModel(e),o.filterManager.onFilterChanged(),t(!0)})),n.resolveNow(!0,(function(e){return e}))},t.prototype.onParentModelChanged=function(e){if(this.floatingFilterCompPromise){var t,o;o=e&&e.operator?(t=e).condition1:e,this.floatingFilterCompPromise.then((function(e){e.onParentModelChanged(o,t)}))}},t.filterToFloatingFilterNames={set:"agSetColumnFloatingFilter",agSetColumnFilter:"agSetColumnFloatingFilter",number:"agNumberColumnFloatingFilter",agNumberColumnFilter:"agNumberColumnFloatingFilter",date:"agDateColumnFloatingFilter",agDateColumnFilter:"agDateColumnFloatingFilter",text:"agTextColumnFloatingFilter",agTextColumnFilter:"agTextColumnFloatingFilter"},t.TEMPLATE='<div class="ag-header-cell" aria-hidden="true">\n <div ref="eFloatingFilterBody" aria-hidden="true"></div>\n <div class="ag-floating-filter-button" ref="eButtonWrapper" aria-hidden="true">\n <button type="button" ref="eButtonShowMainFilter"></button>\n </div>\n </div>',i([a.Autowired("columnHoverService"),s("design:type",v.ColumnHoverService)],t.prototype,"columnHoverService",void 0),i([a.Autowired("eventService"),s("design:type",y.EventService)],t.prototype,"eventService",void 0),i([a.Autowired("beans"),s("design:type",f.Beans)],t.prototype,"beans",void 0),i([a.Autowired("gridOptionsWrapper"),s("design:type",h.GridOptionsWrapper)],t.prototype,"gridOptionsWrapper",void 0),i([a.Autowired("userComponentFactory"),s("design:type",w.UserComponentFactory)],t.prototype,"userComponentFactory",void 0),i([a.Autowired("gridApi"),s("design:type",_.GridApi)],t.prototype,"gridApi",void 0),i([a.Autowired("columnApi"),s("design:type",E.ColumnApi)],t.prototype,"columnApi",void 0),i([a.Autowired("filterManager"),s("design:type",b.FilterManager)],t.prototype,"filterManager",void 0),i([a.Autowired("menuFactory"),s("design:type",Object)],t.prototype,"menuFactory",void 0),i([d.RefSelector("eFloatingFilterBody"),s("design:type",HTMLElement)],t.prototype,"eFloatingFilterBody",void 0),i([d.RefSelector("eButtonWrapper"),s("design:type",HTMLElement)],t.prototype,"eButtonWrapper",void 0),i([d.RefSelector("eButtonShowMainFilter"),s("design:type",HTMLElement)],t.prototype,"eButtonShowMainFilter",void 0),i([a.PostConstruct,s("design:type",Function),s("design:paramtypes",[]),s("design:returntype",void 0)],t.prototype,"postConstruct",null),t}(c.Component);t.FloatingFilterWrapper=R},54078:function(e,t,o){var n=this&&this.__decorate||function(e,t,o,n){var r,i=arguments.length,s=i<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,n);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,o,s):r(t,o))||s);return i>3&&s&&Object.defineProperty(t,o,s),s},r=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0});var i,s=o(55971),a=o(59804),l=o(16974),p=o(79031),u=o(90727),c=o(45212),d=o(16767),h=o(76414),f=o(74864),g=o(82980),m=o(33680),y=o(50853),v=o(85354),C=o(34980),w=o(37),_=o(57575),E=o(12967),b=o(25599),R=o(16636),S=o(43510);!function(e){e[e.DEFAULT=0]="DEFAULT",e[e.REGISTERED=1]="REGISTERED"}(i=t.RegisteredComponentSource||(t.RegisteredComponentSource={}));var O=function(){function e(){this.agGridDefaults={agDateInput:l.DefaultDateComponent,agColumnHeader:p.HeaderComp,agColumnGroupHeader:u.HeaderGroupComp,agSetColumnFloatingFilter:c.SetFloatingFilterComp,agTextColumnFloatingFilter:c.TextFloatingFilterComp,agNumberColumnFloatingFilter:c.NumberFloatingFilterComp,agDateColumnFloatingFilter:c.DateFloatingFilterComp,agAnimateShowChangeCellRenderer:h.AnimateShowChangeCellRenderer,agAnimateSlideCellRenderer:f.AnimateSlideCellRenderer,agGroupCellRenderer:d.GroupCellRenderer,agGroupRowRenderer:d.GroupCellRenderer,agLoadingCellRenderer:g.LoadingCellRenderer,agCellEditor:s.TextCellEditor,agTextCellEditor:s.TextCellEditor,agSelectCellEditor:m.SelectCellEditor,agPopupTextCellEditor:y.PopupTextCellEditor,agPopupSelectCellEditor:v.PopupSelectCellEditor,agLargeTextCellEditor:C.LargeTextCellEditor,agTextColumnFilter:w.TextFilter,agNumberColumnFilter:_.NumberFilter,agDateColumnFilter:l.DateFilter,agLoadingOverlay:E.LoadingOverlayComponent,agNoRowsOverlay:b.NoRowsOverlayComponent,agTooltipComponent:R.TooltipComponent},this.agDeprecatedNames={set:{newComponentName:"agSetColumnFilter",propertyHolder:"filter"},text:{newComponentName:"agTextColumnFilter",propertyHolder:"filter"},number:{newComponentName:"agNumberColumnFilter",propertyHolder:"filter"},date:{newComponentName:"agDateColumnFilter",propertyHolder:"filter"},group:{newComponentName:"agGroupCellRenderer",propertyHolder:"cellRenderer"},animateShowChange:{newComponentName:"agAnimateShowChangeCellRenderer",propertyHolder:"cellRenderer"},animateSlide:{newComponentName:"agAnimateSlideCellRenderer",propertyHolder:"cellRenderer"},select:{newComponentName:"agSelectCellEditor",propertyHolder:"cellEditor"},largeText:{newComponentName:"agLargeTextCellEditor",propertyHolder:"cellEditor"},popupSelect:{newComponentName:"agPopupSelectCellEditor",propertyHolder:"cellEditor"},popupText:{newComponentName:"agPopupTextCellEditor",propertyHolder:"cellEditor"},richSelect:{newComponentName:"agRichSelectCellEditor",propertyHolder:"cellEditor"},headerComponent:{newComponentName:"agColumnHeader",propertyHolder:"headerComponent"}},this.jsComponents={},this.frameworkComponents={}}return e.prototype.init=function(){var e=this,t=this.context.getEnterpriseDefaultComponents();t&&S._.forEach(t,(function(t){e.registerDefaultComponent(t.componentName,t.theClass)})),null!=this.gridOptions.components&&Object.keys(this.gridOptions.components).forEach((function(t){e.registerComponent(t,e.gridOptions.components[t])})),null!=this.gridOptions.frameworkComponents&&Object.keys(this.gridOptions.frameworkComponents).forEach((function(t){e.registerFwComponent(t,e.gridOptions.frameworkComponents[t])}))},e.prototype.registerDefaultComponent=function(e,t){var o=this.translateIfDeprecated(e);this.agGridDefaults[o]?console.error("Trying to overwrite a default component. You should call registerComponent"):this.agGridDefaults[o]=t},e.prototype.registerComponent=function(e,t){var o=this.translateIfDeprecated(e);this.frameworkComponents[o]?console.error("Trying to register a component that you have already registered for frameworks: "+o):this.jsComponents[o]=t},e.prototype.registerFwComponent=function(e,t){var o=this.translateIfDeprecated(e);this.jsComponents[o]?console.error("Trying to register a component that you have already registered for plain javascript: "+o):this.frameworkComponents[o]=t},e.prototype.retrieve=function(e){var t=this.translateIfDeprecated(e);return this.frameworkComponents[t]?{componentFromFramework:!0,component:this.frameworkComponents[t],source:i.REGISTERED}:this.jsComponents[t]?{componentFromFramework:!1,component:this.jsComponents[t],source:i.REGISTERED}:this.agGridDefaults[t]?this.agGridDefaults[t]?{componentFromFramework:!1,component:this.agGridDefaults[t],source:i.DEFAULT}:null:(Object.keys(this.agGridDefaults).indexOf(t)<0&&console.warn("ag-grid: Looking for component ["+t+"] but it wasn't found."),null)},e.prototype.translateIfDeprecated=function(e){var t=this.agDeprecatedNames[e];return null!=t?(S._.doOnce((function(){console.warn("ag-grid. Since v15.0 component names have been renamed to be namespaced. You should rename "+t.propertyHolder+":"+e+" to "+t.propertyHolder+":"+t.newComponentName)}),"DEPRECATE_COMPONENT_"+e),t.newComponentName):e},n([a.Autowired("gridOptions"),r("design:type",Object)],e.prototype,"gridOptions",void 0),n([a.Autowired("context"),r("design:type",a.Context)],e.prototype,"context",void 0),n([a.PostConstruct,r("design:type",Function),r("design:paramtypes",[]),r("design:returntype",void 0)],e.prototype,"init",null),n([a.Bean("userComponentRegistry")],e)}();t.UserComponentRegistry=O},54186:(e,t,o)=>{Object.defineProperty(t,"__esModule",{value:!0});var n=o(43510);t.defaultGroupComparator=function(e,t,o,r,i){void 0===i&&(i=!1),console.warn("ag-Grid: Since ag-grid 11.0.0 defaultGroupComparator is not necessary. You can remove this from your colDef");var s=n._.exists(o)&&o.group,a=n._.exists(r)&&r.group,l=!s&&!a;return s&&a?n._.defaultComparator(o.key,r.key,i):l?n._.defaultComparator(e,t,i):s?1:-1}},55418:function(e,t,o){var n,r=this&&this.__extends||(n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])},n(e,t)},function(e,t){function o(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(o.prototype=t.prototype,new o)}),i=this&&this.__decorate||function(e,t,o,n){var r,i=arguments.length,s=i<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,n);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,o,s):r(t,o))||s);return i>3&&s&&Object.defineProperty(t,o,s),s},s=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0});var a=o(99162),l=o(59804),p=o(47304),u=o(83921),c=o(33018),d=o(14035),h=o(57663),f=o(44494),g=o(25557),m=o(33669),y=o(53421),v=o(10017),C=o(31551),w=o(81404),_=o(43510),E=o(1659),b=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r(t,e),t.prototype.getRowBounds=function(e){return{rowHeight:this.rowHeight,rowTop:this.rowHeight*e}},t.prototype.ensureRowHeightsValid=function(e,t,o,n){return!1},t.prototype.init=function(){var e=this;this.gridOptionsWrapper.isRowModelInfinite()&&(this.rowHeight=this.gridOptionsWrapper.getRowHeightAsNumber(),this.addEventListeners(),this.setDatasource(this.gridOptionsWrapper.getDatasource()),this.addDestroyFunc((function(){return e.destroyCache()})))},t.prototype.destroyDatasource=function(){this.datasource&&(this.datasource.destroy&&this.datasource.destroy(),this.rowRenderer.datasourceChanged(),this.datasource=null)},t.prototype.isLastRowFound=function(){return!!this.infiniteCache&&this.infiniteCache.isMaxRowFound()},t.prototype.addEventListeners=function(){this.addDestroyableEventListener(this.eventService,c.Events.EVENT_FILTER_CHANGED,this.onFilterChanged.bind(this)),this.addDestroyableEventListener(this.eventService,c.Events.EVENT_SORT_CHANGED,this.onSortChanged.bind(this)),this.addDestroyableEventListener(this.eventService,c.Events.EVENT_COLUMN_EVERYTHING_CHANGED,this.onColumnEverything.bind(this))},t.prototype.onFilterChanged=function(){this.reset()},t.prototype.onSortChanged=function(){this.reset()},t.prototype.onColumnEverything=function(){(!this.cacheParams||this.isSortModelDifferent())&&this.reset()},t.prototype.isSortModelDifferent=function(){return!_._.jsonEquals(this.cacheParams.sortModel,this.sortController.getSortModel())},t.prototype.getType=function(){return f.Constants.ROW_MODEL_TYPE_INFINITE},t.prototype.setDatasource=function(e){this.destroyDatasource(),this.datasource=e,e&&(this.checkForDeprecated(),this.reset())},t.prototype.checkForDeprecated=function(){var e=this.datasource;_._.exists(e.maxConcurrentRequests)&&console.error("ag-Grid: since version 5.1.x, maxConcurrentRequests is replaced with grid property maxConcurrentDatasourceRequests"),_._.exists(e.maxPagesInCache)&&console.error("ag-Grid: since version 5.1.x, maxPagesInCache is replaced with grid property maxPagesInPaginationCache"),_._.exists(e.overflowSize)&&console.error("ag-Grid: since version 5.1.x, overflowSize is replaced with grid property paginationOverflowSize"),_._.exists(e.blockSize)&&console.error("ag-Grid: since version 5.1.x, pageSize/blockSize is replaced with grid property infinitePageSize")},t.prototype.isEmpty=function(){return _._.missing(this.infiniteCache)},t.prototype.isRowsToRender=function(){return _._.exists(this.infiniteCache)},t.prototype.getNodesInRangeForSelection=function(e,t){return this.infiniteCache?this.infiniteCache.getRowNodesInRange(e,t):[]},t.prototype.reset=function(){if(!_._.missing(this.datasource)){_._.exists(this.gridOptionsWrapper.getRowNodeIdFunc())||this.selectionController.reset(),this.resetCache();var e=this.createModelUpdatedEvent();this.eventService.dispatchEvent(e)}},t.prototype.createModelUpdatedEvent=function(){return{type:c.Events.EVENT_MODEL_UPDATED,api:this.gridApi,columnApi:this.columnApi,newPage:!1,newData:!1,keepRenderedRows:!1,animate:!1}},t.prototype.resetCache=function(){this.destroyCache();var e=this.gridOptionsWrapper.getMaxConcurrentDatasourceRequests(),t=this.gridOptionsWrapper.getBlockLoadDebounceMillis();this.rowNodeBlockLoader=new v.RowNodeBlockLoader(e,t),this.getContext().wireBean(this.rowNodeBlockLoader),this.cacheParams={datasource:this.datasource,filterModel:this.filterManager.getFilterModel(),sortModel:this.sortController.getSortModel(),rowNodeBlockLoader:this.rowNodeBlockLoader,maxConcurrentRequests:e,overflowSize:this.gridOptionsWrapper.getCacheOverflowSize(),initialRowCount:this.gridOptionsWrapper.getInfiniteInitialRowCount(),maxBlocksInCache:this.gridOptionsWrapper.getMaxBlocksInCache(),blockSize:this.gridOptionsWrapper.getCacheBlockSize(),rowHeight:this.gridOptionsWrapper.getRowHeightAsNumber(),lastAccessedSequence:new _.NumberSequence},this.cacheParams.maxConcurrentRequests&&this.cacheParams.maxConcurrentRequests>=1||(this.cacheParams.maxConcurrentRequests=2),this.cacheParams.blockSize&&this.cacheParams.blockSize>=1||(this.cacheParams.blockSize=100),this.cacheParams.initialRowCount>=1||(this.cacheParams.initialRowCount=0),this.cacheParams.overflowSize>=1||(this.cacheParams.overflowSize=1),this.infiniteCache=new g.InfiniteCache(this.cacheParams),this.getContext().wireBean(this.infiniteCache),this.infiniteCache.addEventListener(y.RowNodeCache.EVENT_CACHE_UPDATED,this.onCacheUpdated.bind(this))},t.prototype.destroyCache=function(){this.infiniteCache&&(this.infiniteCache.destroy(),this.infiniteCache=null),this.rowNodeBlockLoader&&(this.rowNodeBlockLoader.destroy(),this.rowNodeBlockLoader=null)},t.prototype.onCacheUpdated=function(){var e=this.createModelUpdatedEvent();this.eventService.dispatchEvent(e)},t.prototype.getRow=function(e){return this.infiniteCache?this.infiniteCache.getRow(e):null},t.prototype.getRowNode=function(e){var t=null;return this.forEachNode((function(o){o.id===e&&(t=o)})),t},t.prototype.forEachNode=function(e){this.infiniteCache&&this.infiniteCache.forEachNodeDeep(e,new _.NumberSequence)},t.prototype.getCurrentPageHeight=function(){return this.getRowCount()*this.rowHeight},t.prototype.getRowIndexAtPixel=function(e){if(0!==this.rowHeight){var t=Math.floor(e/this.rowHeight);return t>this.getPageLastRow()?this.getPageLastRow():t}return 0},t.prototype.getPageFirstRow=function(){return 0},t.prototype.getPageLastRow=function(){return this.infiniteCache?this.infiniteCache.getVirtualRowCount()-1:0},t.prototype.getRowCount=function(){return this.infiniteCache?this.infiniteCache.getVirtualRowCount():0},t.prototype.updateRowData=function(e){_._.exists(e.remove)||_._.exists(e.update)?console.warn("ag-Grid: updateRowData for InfiniteRowModel does not support remove or update, only add"):_._.missing(e.addIndex)?console.warn("ag-Grid: updateRowData for InfiniteRowModel requires add and addIndex to be set"):this.infiniteCache&&this.infiniteCache.insertItemsAtIndex(e.addIndex,e.add)},t.prototype.isRowPresent=function(e){return!1},t.prototype.refreshCache=function(){this.infiniteCache&&this.infiniteCache.refreshCache()},t.prototype.purgeCache=function(){this.infiniteCache&&this.infiniteCache.purgeCache()},t.prototype.getVirtualRowCount=function(){return this.infiniteCache?this.infiniteCache.getVirtualRowCount():null},t.prototype.isMaxRowFound=function(){if(this.infiniteCache)return this.infiniteCache.isMaxRowFound()},t.prototype.setVirtualRowCount=function(e,t){this.infiniteCache&&this.infiniteCache.setVirtualRowCount(e,t)},t.prototype.getBlockState=function(){return this.rowNodeBlockLoader?this.rowNodeBlockLoader.getBlockState():null},i([l.Autowired("gridOptionsWrapper"),s("design:type",a.GridOptionsWrapper)],t.prototype,"gridOptionsWrapper",void 0),i([l.Autowired("filterManager"),s("design:type",h.FilterManager)],t.prototype,"filterManager",void 0),i([l.Autowired("sortController"),s("design:type",d.SortController)],t.prototype,"sortController",void 0),i([l.Autowired("selectionController"),s("design:type",u.SelectionController)],t.prototype,"selectionController",void 0),i([l.Autowired("eventService"),s("design:type",p.EventService)],t.prototype,"eventService",void 0),i([l.Autowired("gridApi"),s("design:type",C.GridApi)],t.prototype,"gridApi",void 0),i([l.Autowired("columnApi"),s("design:type",w.ColumnApi)],t.prototype,"columnApi",void 0),i([l.Autowired("rowRenderer"),s("design:type",E.RowRenderer)],t.prototype,"rowRenderer",void 0),i([l.PostConstruct,s("design:type",Function),s("design:paramtypes",[]),s("design:returntype",void 0)],t.prototype,"init",null),i([l.PreDestroy,s("design:type",Function),s("design:paramtypes",[]),s("design:returntype",void 0)],t.prototype,"destroyDatasource",null),i([l.Bean("rowModel")],t)}(m.BeanStub);t.InfiniteRowModel=b},55758:(e,t,o)=>{Object.defineProperty(t,"__esModule",{value:!0});var n=o(47304),r=o(43510),i=function(){function e(e,t){void 0===t&&(t=!1);var o=this;this.destroyFuncs=[],this.touching=!1,this.eventService=new n.EventService,this.eElement=e,this.preventMouseClick=t;var r=this.onTouchStart.bind(this),i=this.onTouchMove.bind(this),s=this.onTouchEnd.bind(this);this.eElement.addEventListener("touchstart",r,{passive:!0}),this.eElement.addEventListener("touchmove",i,{passive:!0}),this.eElement.addEventListener("touchend",s,{passive:!1}),this.destroyFuncs.push((function(){o.eElement.removeEventListener("touchstart",r,{passive:!0}),o.eElement.removeEventListener("touchmove",i,{passive:!0}),o.eElement.removeEventListener("touchend",s,{passive:!1})}))}return e.prototype.getActiveTouch=function(e){for(var t=0;t<e.length;t++)if(e[t].identifier===this.touchStart.identifier)return e[t];return null},e.prototype.addEventListener=function(e,t){this.eventService.addEventListener(e,t)},e.prototype.removeEventListener=function(e,t){this.eventService.removeEventListener(e,t)},e.prototype.onTouchStart=function(t){var o=this;if(!this.touching){this.touchStart=t.touches[0],this.touching=!0,this.moved=!1;var n=this.touchStart;window.setTimeout((function(){var r=o.touchStart===n;if(o.touching&&r&&!o.moved){o.moved=!0;var i={type:e.EVENT_LONG_TAP,touchStart:o.touchStart,touchEvent:t};o.eventService.dispatchEvent(i)}}),500)}},e.prototype.onTouchMove=function(e){if(this.touching){var t=this.getActiveTouch(e.touches);t&&!r._.areEventsNear(t,this.touchStart,4)&&(this.moved=!0)}},e.prototype.onTouchEnd=function(t){if(this.touching){if(!this.moved){var o={type:e.EVENT_TAP,touchStart:this.touchStart};this.eventService.dispatchEvent(o),this.checkForDoubleTap()}this.preventMouseClick&&t.preventDefault(),this.touching=!1}},e.prototype.checkForDoubleTap=function(){var t=(new Date).getTime();if(this.lastTapTime&&this.lastTapTime>0)if(t-this.lastTapTime>e.DOUBLE_TAP_MILLIS){var o={type:e.EVENT_DOUBLE_TAP,touchStart:this.touchStart};this.eventService.dispatchEvent(o),this.lastTapTime=null}else this.lastTapTime=t;else this.lastTapTime=t},e.prototype.destroy=function(){this.destroyFuncs.forEach((function(e){return e()}))},e.EVENT_TAP="tap",e.EVENT_DOUBLE_TAP="doubleTap",e.EVENT_LONG_TAP="longTap",e.DOUBLE_TAP_MILLIS=500,e}();t.TouchListener=i},55971:function(e,t,o){var n,r=this&&this.__extends||(n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])},n(e,t)},function(e,t){function o(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(o.prototype=t.prototype,new o)});Object.defineProperty(t,"__esModule",{value:!0});var i=o(44494),s=o(28348),a=o(43510),l=function(e){function t(){var o=e.call(this,t.TEMPLATE)||this;return o.eInput=o.getGui().querySelector("input"),o}return r(t,e),t.prototype.init=function(e){this.params=e;var t,o=this.eInput;e.cellStartedEdit?(this.focusAfterAttached=!0,e.keyPress===i.Constants.KEY_BACKSPACE||e.keyPress===i.Constants.KEY_DELETE?t="":e.charPress?t=e.charPress:(t=this.getStartValue(e),e.keyPress!==i.Constants.KEY_F2&&(this.highlightAllOnFocus=!0))):(this.focusAfterAttached=!1,t=this.getStartValue(e)),a._.exists(t)&&(o.value=t),this.addDestroyableEventListener(o,"keydown",(function(e){if(e.keyCode===i.Constants.KEY_LEFT||e.keyCode===i.Constants.KEY_RIGHT||e.keyCode===i.Constants.KEY_UP||e.keyCode===i.Constants.KEY_DOWN||e.keyCode===i.Constants.KEY_PAGE_DOWN||e.keyCode===i.Constants.KEY_PAGE_UP||e.keyCode===i.Constants.KEY_PAGE_HOME||e.keyCode===i.Constants.KEY_PAGE_END){e.stopPropagation();var t=e.keyCode===i.Constants.KEY_PAGE_UP,o=e.keyCode===i.Constants.KEY_PAGE_DOWN;(t||o)&&e.preventDefault()}}))},t.prototype.afterGuiAttached=function(){if(this.focusAfterAttached){var e=this.eInput;if(e.focus(),this.highlightAllOnFocus)e.select();else{var t=e.value?e.value.length:0;t>0&&e.setSelectionRange(t,t)}}},t.prototype.focusIn=function(){var e=this.eInput;e.focus(),e.select()},t.prototype.getValue=function(){var e=this.eInput;return this.params.parseValue(e.value)},t.prototype.getStartValue=function(e){return e.useFormatter||e.column.getColDef().refData?e.formatValue(e.value):e.value},t.prototype.isPopup=function(){return!1},t.TEMPLATE='<div class="ag-input-text-wrapper"><input class="ag-cell-edit-input" type="text"/></div>',t}(s.PopupComponent);t.TextCellEditor=l},56565:e=>{e.exports=function(e){var t=document.createElement("style");return e.setAttributes(t,e.attributes),e.insert(t),t}},56579:function(e,t,o){var n=this&&this.__decorate||function(e,t,o,n){var r,i=arguments.length,s=i<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,n);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,o,s):r(t,o))||s);return i>3&&s&&Object.defineProperty(t,o,s),s},r=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0});var i=o(59804),s=o(12427),a=o(47304),l=o(33018),p=o(99162),u=o(81404),c=o(31551),d=o(43510),h=function(){function e(){this.onMouseUpListener=this.onMouseUp.bind(this),this.onMouseMoveListener=this.onMouseMove.bind(this),this.onTouchEndListener=this.onTouchUp.bind(this),this.onTouchMoveListener=this.onTouchMove.bind(this),this.dragEndFunctions=[],this.dragSources=[]}return e.prototype.init=function(){this.logger=this.loggerFactory.create("DragService")},e.prototype.destroy=function(){this.dragSources.forEach(this.removeListener.bind(this)),this.dragSources.length=0},e.prototype.removeListener=function(e){var t=e.dragSource.eElement,o=e.mouseDownListener;if(t.removeEventListener("mousedown",o),e.touchEnabled){var n=e.touchStartListener;t.removeEventListener("touchstart",n,{passive:!0})}},e.prototype.removeDragSource=function(e){var t=d._.find(this.dragSources,(function(t){return t.dragSource===e}));t&&(this.removeListener(t),d._.removeFromArray(this.dragSources,t))},e.prototype.setNoSelectToBody=function(e){var t=this.gridOptionsWrapper.getDocument().querySelector("body");d._.exists(t)&&d._.addOrRemoveCssClass(t,"ag-unselectable",e)},e.prototype.addDragSource=function(e,t){void 0===t&&(t=!1);var o=this.onMouseDown.bind(this,e);e.eElement.addEventListener("mousedown",o);var n=null,r=this.gridOptionsWrapper.isSuppressTouch();t&&!r&&(n=this.onTouchStart.bind(this,e),e.eElement.addEventListener("touchstart",n,{passive:!1})),this.dragSources.push({dragSource:e,mouseDownListener:o,touchStartListener:n,touchEnabled:t})},e.prototype.onTouchStart=function(e,t){var o=this;this.currentDragParams=e,this.dragging=!1;var n=t.touches[0];this.touchLastTime=n,this.touchStart=n,t.preventDefault(),e.eElement.addEventListener("touchmove",this.onTouchMoveListener,{passive:!0}),e.eElement.addEventListener("touchend",this.onTouchEndListener,{passive:!0}),e.eElement.addEventListener("touchcancel",this.onTouchEndListener,{passive:!0}),this.dragEndFunctions.push((function(){e.eElement.removeEventListener("touchmove",o.onTouchMoveListener,{passive:!0}),e.eElement.removeEventListener("touchend",o.onTouchEndListener,{passive:!0}),e.eElement.removeEventListener("touchcancel",o.onTouchEndListener,{passive:!0})})),0===e.dragStartPixels&&this.onCommonMove(n,this.touchStart)},e.prototype.onMouseDown=function(e,t){var o=this;if(!(e.skipMouseEvent&&e.skipMouseEvent(t)||t._alreadyProcessedByDragService||(t._alreadyProcessedByDragService=!0,0!==t.button))){this.currentDragParams=e,this.dragging=!1,this.mouseEventLastTime=t,this.mouseStartEvent=t;var n=this.gridOptionsWrapper.getDocument();n.addEventListener("mousemove",this.onMouseMoveListener),n.addEventListener("mouseup",this.onMouseUpListener),this.dragEndFunctions.push((function(){n.removeEventListener("mousemove",o.onMouseMoveListener),n.removeEventListener("mouseup",o.onMouseUpListener)})),0===e.dragStartPixels&&this.onMouseMove(t)}},e.prototype.isEventNearStartEvent=function(e,t){var o=this.currentDragParams.dragStartPixels,n=d._.exists(o)?o:4;return d._.areEventsNear(e,t,n)},e.prototype.getFirstActiveTouch=function(e){for(var t=0;t<e.length;t++)if(e[t].identifier===this.touchStart.identifier)return e[t];return null},e.prototype.onCommonMove=function(e,t){if(!this.dragging){if(!this.dragging&&this.isEventNearStartEvent(e,t))return;this.dragging=!0;var o={type:l.Events.EVENT_DRAG_STARTED,api:this.gridApi,columnApi:this.columnApi};this.eventService.dispatchEvent(o),this.currentDragParams.onDragStart(t),this.setNoSelectToBody(!0)}this.currentDragParams.onDragging(e)},e.prototype.onTouchMove=function(e){var t=this.getFirstActiveTouch(e.touches);t&&this.onCommonMove(t,this.touchStart)},e.prototype.onMouseMove=function(e){this.onCommonMove(e,this.mouseStartEvent)},e.prototype.onTouchUp=function(e){var t=this.getFirstActiveTouch(e.changedTouches);t||(t=this.touchLastTime),this.onUpCommon(t)},e.prototype.onMouseUp=function(e){this.onUpCommon(e)},e.prototype.onUpCommon=function(e){if(this.dragging){this.dragging=!1,this.currentDragParams.onDragStop(e);var t={type:l.Events.EVENT_DRAG_STOPPED,api:this.gridApi,columnApi:this.columnApi};this.eventService.dispatchEvent(t)}this.setNoSelectToBody(!1),this.mouseStartEvent=null,this.mouseEventLastTime=null,this.touchStart=null,this.touchLastTime=null,this.currentDragParams=null,this.dragEndFunctions.forEach((function(e){return e()})),this.dragEndFunctions.length=0},n([i.Autowired("loggerFactory"),r("design:type",s.LoggerFactory)],e.prototype,"loggerFactory",void 0),n([i.Autowired("eventService"),r("design:type",a.EventService)],e.prototype,"eventService",void 0),n([i.Autowired("gridOptionsWrapper"),r("design:type",p.GridOptionsWrapper)],e.prototype,"gridOptionsWrapper",void 0),n([i.Autowired("columnApi"),r("design:type",u.ColumnApi)],e.prototype,"columnApi",void 0),n([i.Autowired("gridApi"),r("design:type",c.GridApi)],e.prototype,"gridApi",void 0),n([i.PostConstruct,r("design:type",Function),r("design:paramtypes",[]),r("design:returntype",void 0)],e.prototype,"init",null),n([i.PreDestroy,r("design:type",Function),r("design:paramtypes",[]),r("design:returntype",void 0)],e.prototype,"destroy",null),n([i.Bean("dragService")],e)}();t.DragService=h},56932:function(e,t,o){var n=this&&this.__decorate||function(e,t,o,n){var r,i=arguments.length,s=i<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,n);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,o,s):r(t,o))||s);return i>3&&s&&Object.defineProperty(t,o,s),s},r=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0});var i=o(99162),s=o(59804),a=o(56579),l=function(){function e(){}return e.prototype.addResizeBar=function(e){var t=this,o={dragStartPixels:e.dragStartPixels||0,eElement:e.eResizeBar,onDragStart:this.onDragStart.bind(this,e),onDragStop:this.onDragStop.bind(this,e),onDragging:this.onDragging.bind(this,e)};return this.dragService.addDragSource(o,!0),function(){return t.dragService.removeDragSource(o)}},e.prototype.onDragStart=function(e,t){this.draggingStarted=!0,this.dragStartX=t.clientX,this.setResizeIcons();var o=t instanceof MouseEvent&&!0===t.shiftKey;e.onResizeStart(o)},e.prototype.setResizeIcons=function(){this.oldBodyCursor=this.eGridDiv.style.cursor,this.oldMsUserSelect=this.eGridDiv.style.msUserSelect,this.oldWebkitUserSelect=this.eGridDiv.style.webkitUserSelect,this.eGridDiv.style.cursor="col-resize",this.eGridDiv.style.msUserSelect="none",this.eGridDiv.style.webkitUserSelect="none"},e.prototype.onDragStop=function(e,t){e.onResizeEnd(this.resizeAmount),this.resetIcons()},e.prototype.resetIcons=function(){this.eGridDiv.style.cursor=this.oldBodyCursor,this.eGridDiv.style.msUserSelect=this.oldMsUserSelect,this.eGridDiv.style.webkitUserSelect=this.oldWebkitUserSelect},e.prototype.onDragging=function(e,t){this.resizeAmount=t.clientX-this.dragStartX,e.onResizing(this.resizeAmount)},n([s.Autowired("gridOptionsWrapper"),r("design:type",i.GridOptionsWrapper)],e.prototype,"gridOptionsWrapper",void 0),n([s.Autowired("dragService"),r("design:type",a.DragService)],e.prototype,"dragService",void 0),n([s.Autowired("eGridDiv"),r("design:type",HTMLElement)],e.prototype,"eGridDiv",void 0),n([s.Bean("horizontalResizeService")],e)}();t.HorizontalResizeService=l},57265:(e,t,o)=>{Object.defineProperty(t,"__esModule",{value:!0});var n=void 0===o.g?{}:o.g;n.HTMLElement="undefined"==typeof HTMLElement?{}:HTMLElement,n.HTMLButtonElement="undefined"==typeof HTMLButtonElement?{}:HTMLButtonElement,n.HTMLSelectElement="undefined"==typeof HTMLSelectElement?{}:HTMLSelectElement,n.HTMLInputElement="undefined"==typeof HTMLInputElement?{}:HTMLInputElement,n.Node="undefined"==typeof Node?{}:Node,n.MouseEvent="undefined"==typeof MouseEvent?{}:MouseEvent;var r=o(41758);t.ColumnFactory=r.ColumnFactory;var i=o(51890);t.ColumnController=i.ColumnController;var s=o(46243);t.ColumnKeyCreator=s.ColumnKeyCreator;var a=o(79705);t.ColumnUtils=a.ColumnUtils;var l=o(70424);t.DisplayedGroupCreator=l.DisplayedGroupCreator;var p=o(59891);t.GroupInstanceIdCreator=p.GroupInstanceIdCreator;var u=o(20455);t.ComponentUtil=u.ComponentUtil;var c=o(9743);t.ColDefUtil=c.ColDefUtil;var d=o(54078);t.UserComponentRegistry=d.UserComponentRegistry;var h=o(36071);t.UserComponentFactory=h.UserComponentFactory;var f=o(52958);t.initialiseAgGridWithAngular1=f.initialiseAgGridWithAngular1;var g=o(89967);t.initialiseAgGridWithWebComponents=g.initialiseAgGridWithWebComponents;var m=o(33669);t.BeanStub=m.BeanStub;var y=o(59804);t.Context=y.Context,t.Autowired=y.Autowired,t.PostConstruct=y.PostConstruct,t.PreConstruct=y.PreConstruct,t.Optional=y.Optional,t.Bean=y.Bean,t.Qualifier=y.Qualifier,t.PreDestroy=y.PreDestroy;var v=o(17890);t.QuerySelector=v.QuerySelector,t.Listener=v.Listener,t.RefSelector=v.RefSelector;var C=o(13161);t.DragAndDropService=C.DragAndDropService,t.DragSourceType=C.DragSourceType,t.HDirection=C.HDirection,t.VDirection=C.VDirection;var w=o(56579);t.DragService=w.DragService;var _=o(71569);t.Column=_.Column;var E=o(30754);t.ColumnGroup=E.ColumnGroup;var b=o(21559);t.GridCell=b.GridCell;var R=o(66895);t.GridRow=R.GridRow;var S=o(19135);t.OriginalColumnGroup=S.OriginalColumnGroup;var O=o(77171);t.RowNode=O.RowNode;var P=o(7611);t.BaseFilter=P.BaseFilter;var A=o(16974);t.DateFilter=A.DateFilter;var T=o(57663);t.FilterManager=T.FilterManager;var D=o(57575);t.NumberFilter=D.NumberFilter;var N=o(37);t.TextFilter=N.TextFilter;var I=o(69620);t.GridPanel=I.GridPanel;var x=o(61260);t.ScrollVisibleService=x.ScrollVisibleService;var F=o(36354);t.MouseEventService=F.MouseEventService;var L=o(47661);t.BodyDropPivotTarget=L.BodyDropPivotTarget;var M=o(71527);t.BodyDropTarget=M.BodyDropTarget;var k=o(23247);t.CssClassApplier=k.CssClassApplier;var G=o(69195);t.HeaderContainer=G.HeaderContainer;var V=o(72065);t.HeaderRootComp=V.HeaderRootComp;var j=o(17307);t.HeaderRowComp=j.HeaderRowComp;var W=o(56932);t.HorizontalResizeService=W.HorizontalResizeService;var H=o(30476);t.MoveColumnController=H.MoveColumnController;var B=o(73505);t.StandardMenuFactory=B.StandardMenuFactory;var U=o(74096);t.TabbedLayout=U.TabbedLayout;var Y=o(21452);t.VerticalStack=Y.VerticalStack;var z=o(83007);t.simpleHttpRequest=z.simpleHttpRequest;var $=o(34980);t.LargeTextCellEditor=$.LargeTextCellEditor;var K=o(83531);t.PopupEditorWrapper=K.PopupEditorWrapper;var q=o(85354);t.PopupSelectCellEditor=q.PopupSelectCellEditor;var Z=o(50853);t.PopupTextCellEditor=Z.PopupTextCellEditor;var Q=o(33680);t.SelectCellEditor=Q.SelectCellEditor;var X=o(55971);t.TextCellEditor=X.TextCellEditor;var J=o(76414);t.AnimateShowChangeCellRenderer=J.AnimateShowChangeCellRenderer;var ee=o(74864);t.AnimateSlideCellRenderer=ee.AnimateSlideCellRenderer;var te=o(16767);t.GroupCellRenderer=te.GroupCellRenderer;var oe=o(98681);t.SetLeftFeature=oe.SetLeftFeature;var ne=o(67469);t.AutoWidthCalculator=ne.AutoWidthCalculator;var re=o(4895);t.CellRendererFactory=re.CellRendererFactory;var ie=o(81182);t.CheckboxSelectionComponent=ie.CheckboxSelectionComponent;var se=o(24421);t.CellComp=se.CellComp;var ae=o(16159);t.RowComp=ae.RowComp;var le=o(1659);t.RowRenderer=le.RowRenderer;var pe=o(61164);t.ValueFormatterService=pe.ValueFormatterService;var ue=o(6659);t.FilterStage=ue.FilterStage;var ce=o(97223);t.FlattenStage=ce.FlattenStage;var de=o(83213);t.SortStage=de.SortStage;var he=o(5988);t.PinnedRowModel=he.PinnedRowModel;var fe=o(59862);t.ClientSideRowModel=fe.ClientSideRowModel;var ge=o(1080);t.ChangedPath=ge.ChangedPath;var me=o(34836);t.ClientSideNodeManager=me.ClientSideNodeManager;var ye=o(55418);t.InfiniteRowModel=ye.InfiniteRowModel;var ve=o(6658);t.RowNodeBlock=ve.RowNodeBlock;var Ce=o(10017);t.RowNodeBlockLoader=Ce.RowNodeBlockLoader;var we=o(72738);t.PaginationProxy=we.PaginationProxy;var _e=o(53421);t.RowNodeCache=_e.RowNodeCache;var Ee=o(79509);t.StylingService=Ee.StylingService;var be=o(85448);t.AgCheckbox=be.AgCheckbox;var Re=o(79035);t.PopupWindow=Re.PopupWindow;var Se=o(6079);t.PopupMessageBox=Se.PopupMessageBox;var Oe=o(38830);t.Component=Oe.Component;var Pe=o(28348);t.PopupComponent=Pe.PopupComponent;var Ae=o(39128);t.PopupService=Ae.PopupService;var Te=o(55758);t.TouchListener=Te.TouchListener;var De=o(77769);t.CsvCreator=De.CsvCreator,t.BaseCreator=De.BaseCreator;var Ne=o(90150);t.Downloader=Ne.Downloader;var Ie=o(15512);t.XmlFactory=Ie.XmlFactory;var xe=o(81201);t.BaseGridSerializingSession=xe.BaseGridSerializingSession,t.GridSerializer=xe.GridSerializer;var Fe=o(81201);t.RowType=Fe.RowType;var Le=o(37879);t.ZipContainer=Le.ZipContainer;var Me=o(5364);t.BaseFrameworkFactory=Me.BaseFrameworkFactory;var ke=o(63833);t.CellNavigationService=ke.CellNavigationService;var Ge=o(65499);t.AlignedGridsService=Ge.AlignedGridsService;var Ve=o(44494);t.Constants=Ve.Constants;var je=o(62695);t.Grid=je.Grid;var We=o(31551);t.GridApi=We.GridApi;var He=o(64339);t.Events=He.Events;var Be=o(42062);t.FocusedCellController=Be.FocusedCellController;var Ue=o(54186);t.defaultGroupComparator=Ue.defaultGroupComparator;var Ye=o(99162);t.GridOptionsWrapper=Ye.GridOptionsWrapper;var ze=o(47304);t.EventService=ze.EventService;var $e=o(43598);t.SelectableService=$e.SelectableService;var Ke=o(66660);t.GridCore=Ke.GridCore;var qe=o(12427);t.Logger=qe.Logger;var Ze=o(83921);t.SelectionController=Ze.SelectionController;var Qe=o(14035);t.SortController=Qe.SortController;var Xe=o(27490);t.TemplateService=Xe.TemplateService;var Je=o(43510);t.Utils=Je.Utils,t.NumberSequence=Je.NumberSequence,t._=Je._,t.Promise=Je.Promise;var et=o(3978);t.ValueService=et.ValueService;var tt=o(6145);t.ExpressionService=tt.ExpressionService;var ot=o(12427);t.LoggerFactory=ot.LoggerFactory;var nt=o(81404);t.ColumnApi=nt.ColumnApi;var rt=o(22697);t.BaseComponentWrapper=rt.BaseComponentWrapper;var it=o(17074);t.Environment=it.Environment;var st=o(84891);t.TooltipManager=st.TooltipManager},57575:function(e,t,o){var n,r=this&&this.__extends||(n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])},n(e,t)},function(e,t){function o(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(o.prototype=t.prototype,new o)}),i=this&&this.__decorate||function(e,t,o,n){var r,i=arguments.length,s=i<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,n);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,o,s):r(t,o))||s);return i>3&&s&&Object.defineProperty(t,o,s),s},s=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0});var a=o(17890),l=o(7611),p=o(43510),u=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r(t,e),t.prototype.modelFromFloatingFilter=function(e){return{type:this.selectedFilter,filter:Number(e),filterTo:this.filterNumberTo,filterType:"number"}},t.prototype.getApplicableFilterTypes=function(){return[l.BaseFilter.EQUALS,l.BaseFilter.NOT_EQUAL,l.BaseFilter.LESS_THAN,l.BaseFilter.LESS_THAN_OR_EQUAL,l.BaseFilter.GREATER_THAN,l.BaseFilter.GREATER_THAN_OR_EQUAL,l.BaseFilter.IN_RANGE]},t.prototype.bodyTemplate=function(e){var t=this.translate.bind(this),o=e==l.FilterConditionType.MAIN?"filterText":"filterConditionText",n=e==l.FilterConditionType.MAIN?"filterNumberToPanel":"filterNumberToPanelCondition",r=e==l.FilterConditionType.MAIN?"filterToText":"filterToConditionText";return'<div class="ag-filter-body">\n <div class="ag-input-text-wrapper">\n <input class="ag-filter-filter" id="'+o+'" type="text" placeholder="'+t("filterOoo")+'"/>\n </div>\n <div class="ag-input-text-wrapper ag-filter-number-to" id="'+n+'">\n <input class="ag-filter-filter" id="'+r+'" type="text" placeholder="'+t("filterOoo")+'"/>\n </div>\n </div>'},t.prototype.initialiseFilterBodyUi=function(t){e.prototype.initialiseFilterBodyUi.call(this,t),t===l.FilterConditionType.MAIN?(this.eFilterTextField=this.queryForHtmlInputElement("#filterText"),this.addFilterChangedEventListeners(t,this.eFilterTextField,this.eFilterToTextField)):(this.eFilterTextConditionField=this.queryForHtmlInputElement("#filterConditionText"),this.addFilterChangedEventListeners(t,this.eFilterTextConditionField,this.eFilterToConditionText),this.setFilter(this.filterNumberCondition,l.FilterConditionType.CONDITION),this.setFilterTo(this.filterNumberConditionTo,l.FilterConditionType.CONDITION),this.setFilterType(this.selectedFilterCondition,l.FilterConditionType.CONDITION))},t.prototype.addFilterChangedEventListeners=function(e,t,o){var n=this,r=this.getDebounceMs(this.filterParams),i=p._.debounce((function(){return n.onTextFieldsChanged(e,t,o)}),r);this.addDestroyableEventListener(t,"input",i),this.addDestroyableEventListener(o,"input",i)},t.prototype.afterGuiAttached=function(){this.eFilterTextField.focus()},t.prototype.comparator=function(){return function(e,t){return e===t?0:e<t?1:e>t?-1:void 0}},t.prototype.onTextFieldsChanged=function(e,t,o){var n=this.stringToFloat(t.value),r=this.stringToFloat(o.value);e===l.FilterConditionType.MAIN?this.filterNumber===n&&this.filterNumberTo===r||(this.filterNumber=n,this.filterNumberTo=r,this.onFilterChanged()):this.filterNumberCondition===n&&this.filterNumberConditionTo===r||(this.filterNumberCondition=n,this.filterNumberConditionTo=r,this.onFilterChanged())},t.prototype.filterValues=function(e){return e===l.FilterConditionType.MAIN?this.selectedFilter!==l.BaseFilter.IN_RANGE?this.asNumber(this.filterNumber):[this.asNumber(this.filterNumber),this.asNumber(this.filterNumberTo)]:this.selectedFilterCondition!==l.BaseFilter.IN_RANGE?this.asNumber(this.filterNumberCondition):[this.asNumber(this.filterNumberCondition),this.asNumber(this.filterNumberConditionTo)]},t.prototype.asNumber=function(e){return p._.isNumeric(e)?e:null},t.prototype.stringToFloat=function(e){var t=p._.makeNull(e);return t&&""===t.trim()&&(t=null),null!=t?parseFloat(t):null},t.prototype.setFilter=function(e,t){if(null!==(e=p._.makeNull(e))&&"number"!=typeof e&&(e=parseFloat(e)),t===l.FilterConditionType.MAIN){if(this.filterNumber=e,!this.eFilterTextField)return;this.eFilterTextField.value=e}else{if(this.filterNumberCondition=e,!this.eFilterTextConditionField)return;this.eFilterTextConditionField.value=e}},t.prototype.setFilterTo=function(e,t){if(null!==(e=p._.makeNull(e))&&"number"!=typeof e&&(e=parseFloat(e)),t===l.FilterConditionType.MAIN){if(this.filterNumberTo=e,!this.eFilterToTextField)return;this.eFilterToTextField.value=e}else{if(this.filterNumberConditionTo=e,!this.eFilterToConditionText)return;this.eFilterToConditionText.value=e}},t.prototype.getFilter=function(e){return e===l.FilterConditionType.MAIN?this.filterNumber:this.filterNumberCondition},t.prototype.serialize=function(e){var t=e===l.FilterConditionType.MAIN?this.selectedFilter:this.selectedFilterCondition,o=e===l.FilterConditionType.MAIN?this.filterNumber:this.filterNumberCondition,n=e===l.FilterConditionType.MAIN?this.filterNumberTo:this.filterNumberConditionTo;return{type:t||this.defaultFilter,filter:o,filterTo:n,filterType:"number"}},t.prototype.parse=function(e,t){this.setFilterType(e.type,t),this.setFilter(e.filter,t),this.setFilterTo(e.filterTo,t)},t.prototype.refreshFilterBodyUi=function(e){var o=e===l.FilterConditionType.MAIN?this.selectedFilter:this.selectedFilterCondition,n=e===l.FilterConditionType.MAIN?this.eNumberToPanel:this.eNumberToConditionPanel;if(n){var r=o===t.IN_RANGE;p._.setVisible(n,r)}var i=e===l.FilterConditionType.MAIN?this.eFilterTextField:this.eFilterTextConditionField;if(i){var s=!this.doesFilterHaveHiddenInput(o)&&o!==l.BaseFilter.EMPTY;p._.setVisible(i,s)}},t.prototype.resetState=function(e){void 0===e&&(e=!1),e||(this.setFilterType(this.defaultFilter,l.FilterConditionType.MAIN),this.setFilter(null,l.FilterConditionType.MAIN),this.setFilterTo(null,l.FilterConditionType.MAIN)),this.setFilterType(this.defaultFilter,l.FilterConditionType.CONDITION),this.setFilter(null,l.FilterConditionType.CONDITION),this.setFilterTo(null,l.FilterConditionType.CONDITION)},t.prototype.setType=function(e,t){this.setFilterType(e,t)},t.LESS_THAN="lessThan",i([a.QuerySelector("#filterText"),s("design:type",HTMLInputElement)],t.prototype,"eFilterTextField",void 0),i([a.QuerySelector("#filterTextCondition"),s("design:type",HTMLInputElement)],t.prototype,"eFilterTextConditionField",void 0),i([a.QuerySelector("#filterToText"),s("design:type",HTMLInputElement)],t.prototype,"eFilterToTextField",void 0),i([a.QuerySelector("#filterToConditionText"),s("design:type",HTMLInputElement)],t.prototype,"eFilterToConditionText",void 0),i([a.QuerySelector("#filterNumberToPanel"),s("design:type",HTMLElement)],t.prototype,"eNumberToPanel",void 0),i([a.QuerySelector("#filterNumberToPanelCondition"),s("design:type",HTMLElement)],t.prototype,"eNumberToConditionPanel",void 0),t}(l.ScalarBaseFilter);t.NumberFilter=u},57663:function(e,t,o){var n=this&&this.__decorate||function(e,t,o,n){var r,i=arguments.length,s=i<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,n);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,o,s):r(t,o))||s);return i>3&&s&&Object.defineProperty(t,o,s),s},r=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0});var i=o(43510),s=o(99162),a=o(39128),l=o(3978),p=o(51890),u=o(81404),c=o(59804),d=o(47304),h=o(33018),f=o(31551),g=o(36071),m=function(){function e(){this.allFilters={},this.quickFilter=null,this.quickFilterParts=null}var t;return t=e,e.prototype.registerGridCore=function(e){this.gridCore=e},e.prototype.init=function(){this.eventService.addEventListener(h.Events.EVENT_ROW_DATA_CHANGED,this.onNewRowsLoaded.bind(this)),this.eventService.addEventListener(h.Events.EVENT_NEW_COLUMNS_LOADED,this.onNewColumnsLoaded.bind(this)),this.quickFilter=this.parseQuickFilter(this.gridOptionsWrapper.getQuickFilterText()),this.setQuickFilterParts(),this.checkExternalFilter()},e.prototype.setQuickFilterParts=function(){this.quickFilter?this.quickFilterParts=this.quickFilter.split(" "):this.quickFilterParts=null},e.prototype.setFilterModel=function(e){var t=this,o=[];if(e){var n=Object.keys(e);i._.iterateObject(this.allFilters,(function(r,s){i._.removeFromArray(n,r);var a=e[r];t.setModelOnFilterWrapper(s.filterPromise,a),o.push(s.filterPromise)})),i._.iterateArray(n,(function(n){var r=t.columnController.getPrimaryColumn(n);if(r){var i=t.getOrCreateFilterWrapper(r,"NO_UI");t.setModelOnFilterWrapper(i.filterPromise,e[n]),o.push(i.filterPromise)}else console.warn("Warning ag-grid setFilterModel - no column found for colId "+n)}))}else i._.iterateObject(this.allFilters,(function(e,n){t.setModelOnFilterWrapper(n.filterPromise,null),o.push(n.filterPromise)}));i.Promise.all(o).then((function(e){t.onFilterChanged()}))},e.prototype.setModelOnFilterWrapper=function(e,t){e.then((function(e){"function"==typeof e.setModel?e.setModel(t):console.warn("Warning ag-grid - filter missing setModel method, which is needed for setFilterModel")}))},e.prototype.getFilterModel=function(){var e={};return i._.iterateObject(this.allFilters,(function(t,o){var n=o.filterPromise.resolveNow(null,(function(e){return e}));if(null==n)return null;if("function"==typeof n.getModel){var r=n.getModel();i._.exists(r)&&(e[t]=r)}else console.warn("Warning ag-grid - filter API missing getModel method, which is needed for getFilterModel")})),e},e.prototype.isAdvancedFilterPresent=function(){return this.advancedFilterPresent},e.prototype.setAdvancedFilterPresent=function(){var e=!1;i._.iterateObject(this.allFilters,(function(t,o){o.filterPromise.resolveNow(!1,(function(e){return e.isFilterActive()}))&&(e=!0)})),this.advancedFilterPresent=e},e.prototype.updateFilterFlagInColumns=function(e){i._.iterateObject(this.allFilters,(function(t,o){var n=o.filterPromise.resolveNow(!1,(function(e){return e.isFilterActive()}));o.column.setFilterActive(n,e)}))},e.prototype.isAnyFilterPresent=function(){return this.isQuickFilterPresent()||this.advancedFilterPresent||this.externalFilterPresent},e.prototype.doesFilterPass=function(e,t){for(var o=e.data,n=Object.keys(this.allFilters),r=0,i=n.length;r<i;r++){var s=n[r],a=this.allFilters[s];if(void 0!==a){var l=a.filterPromise.resolveNow(void 0,(function(e){return e}));if(void 0!==l&&l!==t&&l.isFilterActive()){l.doesFilterPass||console.error("Filter is missing method doesFilterPass");var p={node:e,data:o};if(!l.doesFilterPass(p))return!1}}}return!0},e.prototype.parseQuickFilter=function(e){return i._.missing(e)||""===e?null:this.gridOptionsWrapper.isRowModelDefault()?e.toUpperCase():(console.warn("ag-grid: quick filtering only works with the Client-side Row Model"),null)},e.prototype.setQuickFilter=function(e){var t=this.parseQuickFilter(e);this.quickFilter!==t&&(this.quickFilter=t,this.setQuickFilterParts(),this.onFilterChanged())},e.prototype.checkExternalFilter=function(){this.externalFilterPresent=this.gridOptionsWrapper.isExternalFilterPresent()},e.prototype.onFilterChanged=function(){this.setAdvancedFilterPresent(),this.updateFilterFlagInColumns("filterChanged"),this.checkExternalFilter(),i._.iterateObject(this.allFilters,(function(e,t){t.filterPromise.then((function(e){e.onAnyFilterChanged&&e.onAnyFilterChanged()}))}));var e={type:h.Events.EVENT_FILTER_CHANGED,api:this.gridApi,columnApi:this.columnApi};this.eventService.dispatchEvent(e)},e.prototype.isQuickFilterPresent=function(){return null!==this.quickFilter},e.prototype.doesRowPassOtherFilters=function(e,t){return this.doesRowPassFilter(t,e)},e.prototype.doesRowPassQuickFilterNoCache=function(e,t){var o=this,n=this.columnController.getAllColumnsForQuickFilter(),r=!1;return n.forEach((function(n){if(!r){var s=o.getQuickFilterTextForColumn(n,e);i._.exists(s)&&s.indexOf(t)>=0&&(r=!0)}})),r},e.prototype.doesRowPassQuickFilterCache=function(e,t){return e.quickFilterAggregateText||this.aggregateRowForQuickFilter(e),e.quickFilterAggregateText.indexOf(t)>=0},e.prototype.doesRowPassQuickFilter=function(e){var t=this,o=!0,n=this.gridOptionsWrapper.isCacheQuickFilter();return this.quickFilterParts.forEach((function(r){(n?t.doesRowPassQuickFilterCache(e,r):t.doesRowPassQuickFilterNoCache(e,r))||(o=!1)})),o},e.prototype.doesRowPassFilter=function(e,t){return!(this.isQuickFilterPresent()&&!this.doesRowPassQuickFilter(e)||this.externalFilterPresent&&!this.gridOptionsWrapper.doesExternalFilterPass(e)||this.advancedFilterPresent&&!this.doesFilterPass(e,t))},e.prototype.getQuickFilterTextForColumn=function(e,t){var o,n=this.valueService.getValue(e,t,!0),r=e.getColDef();if(e.getColDef().getQuickFilterText){var s={value:n,node:t,data:t.data,column:e,colDef:r};o=e.getColDef().getQuickFilterText(s)}else o=n;return i._.exists(o)?o.toString().toUpperCase():null},e.prototype.aggregateRowForQuickFilter=function(e){var o=this,n=[];this.columnController.getAllColumnsForQuickFilter().forEach((function(t){var r=o.getQuickFilterTextForColumn(t,e);i._.exists(r)&&n.push(r)})),e.quickFilterAggregateText=n.join(t.QUICK_FILTER_SEPARATOR)},e.prototype.onNewRowsLoaded=function(e){i._.iterateObject(this.allFilters,(function(e,t){t.filterPromise.then((function(e){e.onNewRowsLoaded&&e.onNewRowsLoaded()}))})),this.updateFilterFlagInColumns(e),this.setAdvancedFilterPresent()},e.prototype.createValueGetter=function(e){var t=this;return function(o){return t.valueService.getValue(e,o,!0)}},e.prototype.getFilterComponent=function(e,t){return this.getOrCreateFilterWrapper(e,t).filterPromise},e.prototype.isFilterActive=function(e){var t=this.cachedFilter(e);return!!t&&t.filterPromise.resolveNow(!1,(function(e){return e.isFilterActive()}))},e.prototype.getOrCreateFilterWrapper=function(e,t){var o=this.cachedFilter(e);return o?"NO_UI"!==t&&this.putIntoGui(o,t):(o=this.createFilterWrapper(e,t),this.allFilters[e.getColId()]=o),o},e.prototype.cachedFilter=function(e){return this.allFilters[e.getColId()]},e.prototype.createFilterInstance=function(e,t){var o=this,n="agTextColumnFilter";this.gridOptionsWrapper.isEnterprise()&&(n="agSetColumnFilter");var r=i._.cloneObject(e.getColDef()),s={type:h.Events.EVENT_FILTER_MODIFIED,api:this.gridApi,columnApi:this.columnApi},a=this.onFilterChanged.bind(this),l={api:this.gridOptionsWrapper.getApi(),column:e,colDef:r,rowModel:this.rowModel,filterChangedCallback:a,filterModifiedCallback:function(){return o.eventService.dispatchEvent(s)},valueGetter:this.createValueGetter(e),context:this.gridOptionsWrapper.getContext(),doesRowPassOtherFilter:null,$scope:t};return this.userComponentFactory.newFilterComponent(r,l,n,(function(e,t){return i._.assign(e,{doesRowPassOtherFilter:o.doesRowPassOtherFilters.bind(o,t)})}))},e.prototype.createFilterWrapper=function(e,t){var o={column:e,filterPromise:null,scope:null,compiledElement:null,guiPromise:i.Promise.external()};return o.scope=this.gridOptionsWrapper.isAngularCompileFilters()?this.$scope.$new():null,o.filterPromise=this.createFilterInstance(e,o.scope),this.putIntoGui(o,t),o},e.prototype.putIntoGui=function(e,t){var o=this,n=document.createElement("div");n.className="ag-filter",e.filterPromise.then((function(r){var s=r.getGui();if(i._.missing(s)&&console.warn("getGui method from filter returned "+s+", it should be a DOM element or an HTML template string."),"string"==typeof s&&(s=i._.loadTemplate(s)),n.appendChild(s),e.scope){var a=o.$compile(n)(e.scope);e.compiledElement=a,window.setTimeout((function(){return e.scope.$apply()}),0)}e.guiPromise.resolve(n),o.eventService.dispatchEvent({type:h.Events.EVENT_FILTER_OPENED,column:e.column,source:t,eGui:n,api:o.gridApi,columnApi:o.columnApi})}))},e.prototype.onNewColumnsLoaded=function(){var e=this,t=!1;i._.iterateObject(this.allFilters,(function(o,n){!e.columnController.getPrimaryColumn(n.column)&&(t=!0,e.disposeFilterWrapper(n,"filterDestroyed"))})),t&&this.onFilterChanged()},e.prototype.destroyFilter=function(e,t){void 0===t&&(t="api");var o=this.allFilters[e.getColId()];o&&(this.disposeFilterWrapper(o,t),this.onFilterChanged())},e.prototype.disposeFilterWrapper=function(e,t){var o=this;e.filterPromise.then((function(n){n.setModel(null),n.destroy&&n.destroy(),e.column.setFilterActive(!1,t),e.scope&&(e.compiledElement&&e.compiledElement.remove(),e.scope.$destroy()),delete o.allFilters[e.column.getColId()]}))},e.prototype.destroy=function(){var e=this;i._.iterateObject(this.allFilters,(function(t,o){e.disposeFilterWrapper(o,"filterDestroyed")}))},e.QUICK_FILTER_SEPARATOR="\n",n([c.Autowired("$compile"),r("design:type",Object)],e.prototype,"$compile",void 0),n([c.Autowired("$scope"),r("design:type",Object)],e.prototype,"$scope",void 0),n([c.Autowired("gridOptionsWrapper"),r("design:type",s.GridOptionsWrapper)],e.prototype,"gridOptionsWrapper",void 0),n([c.Autowired("popupService"),r("design:type",a.PopupService)],e.prototype,"popupService",void 0),n([c.Autowired("valueService"),r("design:type",l.ValueService)],e.prototype,"valueService",void 0),n([c.Autowired("columnController"),r("design:type",p.ColumnController)],e.prototype,"columnController",void 0),n([c.Autowired("rowModel"),r("design:type",Object)],e.prototype,"rowModel",void 0),n([c.Autowired("eventService"),r("design:type",d.EventService)],e.prototype,"eventService",void 0),n([c.Autowired("enterprise"),r("design:type",Boolean)],e.prototype,"enterprise",void 0),n([c.Autowired("context"),r("design:type",c.Context)],e.prototype,"context",void 0),n([c.Autowired("columnApi"),r("design:type",u.ColumnApi)],e.prototype,"columnApi",void 0),n([c.Autowired("gridApi"),r("design:type",f.GridApi)],e.prototype,"gridApi",void 0),n([c.Autowired("userComponentFactory"),r("design:type",g.UserComponentFactory)],e.prototype,"userComponentFactory",void 0),n([c.PostConstruct,r("design:type",Function),r("design:paramtypes",[]),r("design:returntype",void 0)],e.prototype,"init",null),n([c.PreDestroy,r("design:type",Function),r("design:paramtypes",[]),r("design:returntype",void 0)],e.prototype,"destroy",null),t=n([c.Bean("filterManager")],e)}();t.FilterManager=m},59804:(e,t,o)=>{Object.defineProperty(t,"__esModule",{value:!0});var n=o(43510),r=function(){function e(e,t){if(this.beanWrappers={},this.componentsMappedByName={},this.destroyed=!1,e&&e.beans){this.contextParams=e,this.logger=t,this.logger.log(">> creating ag-Application Context"),this.setupComponents(),this.createBeans();var o=this.getBeanInstances();this.wireBeans(o),this.logger.log(">> ag-Application Context ready - component is alive")}}return e.prototype.getBeanInstances=function(){return n._.mapObject(this.beanWrappers,(function(e){return e.beanInstance}))},e.prototype.setupComponents=function(){var e=this;this.contextParams.components&&this.contextParams.components.forEach((function(t){return e.addComponent(t)}))},e.prototype.addComponent=function(e){var t=e.componentName.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase().toUpperCase();this.componentsMappedByName[t]=e.theClass},e.prototype.createComponentFromElement=function(e,t){var o=e.nodeName;if(this.componentsMappedByName&&this.componentsMappedByName[o]){var n=new this.componentsMappedByName[o];return this.wireBean(n,t),n}return null},e.prototype.wireBean=function(e,t){if(!e)throw Error("Can't wire to bean since it is null");this.wireBeans([e],t)},e.prototype.wireBeans=function(e,t){this.autoWireBeans(e),this.methodWireBeans(e),this.callLifeCycleMethods(e,"preConstructMethods"),n._.exists(t)&&e.forEach(t),this.callLifeCycleMethods(e,"postConstructMethods")},e.prototype.createBeans=function(){var e=this;this.contextParams.beans.forEach(this.createBeanWrapper.bind(this)),this.contextParams.overrideBeans&&this.contextParams.overrideBeans.forEach(this.createBeanWrapper.bind(this)),n._.iterateObject(this.beanWrappers,(function(t,o){var n;o.bean.__agBeanMetaData&&o.bean.__agBeanMetaData.autowireMethods&&o.bean.__agBeanMetaData.autowireMethods.agConstructor&&(n=o.bean.__agBeanMetaData.autowireMethods.agConstructor);var r,i,s=e.getBeansForParameters(n,o.bean.name),a=(r=o.bean,i=[null].concat(s),new(r.bind.apply(r,i)));o.beanInstance=a,e.logger.log("bean "+e.getBeanName(a)+" created")}))},e.prototype.createBeanWrapper=function(e){var t=e.__agBeanMetaData;if(!t){var o;return o=e.prototype.constructor?e.prototype.constructor.name:""+e,void console.error("context item "+o+" is not a bean")}var n={bean:e,beanInstance:null,beanName:t.beanName};this.beanWrappers[t.beanName]=n},e.prototype.autoWireBeans=function(e){var t=this;e.forEach((function(e){t.forEachMetaDataInHierarchy(e,(function(o,n){var r=o.agClassAttributes;r&&r.forEach((function(o){var r=t.lookupBeanInstance(n,o.beanName,o.optional);e[o.attributeName]=r}))}))}))},e.prototype.methodWireBeans=function(e){var t=this;e.forEach((function(e){t.forEachMetaDataInHierarchy(e,(function(o,r){n._.iterateObject(o.autowireMethods,(function(o,n){if("agConstructor"!==o){var i=t.getBeansForParameters(n,r);e[o].apply(e,i)}}))}))}))},e.prototype.forEachMetaDataInHierarchy=function(e,t){for(var o=Object.getPrototypeOf(e);null!=o;){var n=o.constructor;n.hasOwnProperty("__agBeanMetaData")&&t(n.__agBeanMetaData,this.getBeanName(n)),o=Object.getPrototypeOf(o)}},e.prototype.getBeanName=function(e){if(e.__agBeanMetaData&&e.__agBeanMetaData.beanName)return e.__agBeanMetaData.beanName;var t=e.toString();return t.substring(9,t.indexOf("("))},e.prototype.getBeansForParameters=function(e,t){var o=this,r=[];return e&&n._.iterateObject(e,(function(e,n){var i=o.lookupBeanInstance(t,n);r[Number(e)]=i})),r},e.prototype.lookupBeanInstance=function(e,t,o){if(void 0===o&&(o=!1),"context"===t)return this;if(this.contextParams.seed&&this.contextParams.seed.hasOwnProperty(t))return this.contextParams.seed[t];var n=this.beanWrappers[t];return n?n.beanInstance:(o||console.error("ag-Grid: unable to find bean reference "+t+" while initialising "+e),null)},e.prototype.callLifeCycleMethods=function(e,t){var o=this;e.forEach((function(e){o.forEachMetaDataInHierarchy(e,(function(o){var n=o[t];n&&n.forEach((function(t){return e[t]()}))}))}))},e.prototype.getBean=function(e){return this.lookupBeanInstance("getBean",e,!0)},e.prototype.getEnterpriseDefaultComponents=function(){return this.contextParams.enterpriseDefaultComponents},e.prototype.destroy=function(){if(!this.destroyed){this.logger.log(">> Shutting down ag-Application Context");var e=this.getBeanInstances();this.callLifeCycleMethods(e,"preDestroyMethods"),this.contextParams.seed=null,this.destroyed=!0,this.logger.log(">> ag-Application Context shut down - component is dead")}},e}();function i(e,t,o,n,r,i){if(null!==t)if("number"!=typeof i){var a=s(e.constructor);a.agClassAttributes||(a.agClassAttributes=[]),a.agClassAttributes.push({attributeName:r,beanName:t,optional:o})}else console.error("ag-Grid: Autowired should be on an attribute");else console.error("ag-Grid: Autowired name should not be null")}function s(e){return e.hasOwnProperty("__agBeanMetaData")||(e.__agBeanMetaData={}),e.__agBeanMetaData}t.Context=r,t.PreConstruct=function(e,t,o){var n=s(e.constructor);n.postConstructMethods||(n.preConstructMethods=[]),n.preConstructMethods.push(t)},t.PostConstruct=function(e,t,o){var n=s(e.constructor);n.postConstructMethods||(n.postConstructMethods=[]),n.postConstructMethods.push(t)},t.PreDestroy=function(e,t,o){var n=s(e.constructor);n.preDestroyMethods||(n.preDestroyMethods=[]),n.preDestroyMethods.push(t)},t.Bean=function(e){return function(t){s(t).beanName=e}},t.Autowired=function(e){return function(t,o,n){i(t,e,!1,0,o,null)}},t.Optional=function(e){return function(t,o,n){i(t,e,!0,0,o,null)}},t.Qualifier=function(e){return function(t,o,n){var r,i="function"==typeof t?t:t.constructor;if("number"==typeof n){var a=void 0;o?(r=s(i),a=o):(r=s(i),a="agConstructor"),r.autowireMethods||(r.autowireMethods={}),r.autowireMethods[a]||(r.autowireMethods[a]={}),r.autowireMethods[a][n]=e}}}},59862:function(e,t,o){var n=this&&this.__decorate||function(e,t,o,n){var r,i=arguments.length,s=i<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,n);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,o,s):r(t,o))||s);return i>3&&s&&Object.defineProperty(t,o,s),s},r=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0});var i,s=o(44494),a=o(99162),l=o(81404),p=o(51890),u=o(57663),c=o(77171),d=o(47304),h=o(33018),f=o(59804),g=o(83921),m=o(34836),y=o(1080),v=o(3978),C=o(79255),w=o(31551),_=o(43510);!function(e){e[e.Normal=0]="Normal",e[e.AfterFilter=1]="AfterFilter",e[e.AfterFilterAndSort=2]="AfterFilterAndSort",e[e.PivotNodes=3]="PivotNodes"}(i||(i={}));var E=function(){function e(){}return e.prototype.init=function(){var e=this.refreshModel.bind(this,{step:s.Constants.STEP_EVERYTHING}),t=this.refreshModel.bind(this,{step:s.Constants.STEP_EVERYTHING,afterColumnsChanged:!0});this.eventService.addModalPriorityEventListener(h.Events.EVENT_COLUMN_EVERYTHING_CHANGED,t),this.eventService.addModalPriorityEventListener(h.Events.EVENT_COLUMN_ROW_GROUP_CHANGED,e),this.eventService.addModalPriorityEventListener(h.Events.EVENT_COLUMN_VALUE_CHANGED,this.onValueChanged.bind(this)),this.eventService.addModalPriorityEventListener(h.Events.EVENT_COLUMN_PIVOT_CHANGED,this.refreshModel.bind(this,{step:s.Constants.STEP_PIVOT})),this.eventService.addModalPriorityEventListener(h.Events.EVENT_ROW_GROUP_OPENED,this.onRowGroupOpened.bind(this)),this.eventService.addModalPriorityEventListener(h.Events.EVENT_FILTER_CHANGED,this.onFilterChanged.bind(this)),this.eventService.addModalPriorityEventListener(h.Events.EVENT_SORT_CHANGED,this.onSortChanged.bind(this)),this.eventService.addModalPriorityEventListener(h.Events.EVENT_COLUMN_PIVOT_MODE_CHANGED,e);var o=this.refreshModel.bind(this,{step:s.Constants.STEP_MAP,keepRenderedRows:!0,animate:!0});this.gridOptionsWrapper.addEventListener(a.GridOptionsWrapper.PROP_GROUP_REMOVE_SINGLE_CHILDREN,o),this.gridOptionsWrapper.addEventListener(a.GridOptionsWrapper.PROP_GROUP_REMOVE_LOWEST_SINGLE_CHILDREN,o),this.rootNode=new c.RowNode,this.nodeManager=new m.ClientSideNodeManager(this.rootNode,this.gridOptionsWrapper,this.context,this.eventService,this.columnController,this.gridApi,this.columnApi,this.selectionController),this.context.wireBean(this.rootNode)},e.prototype.ensureRowHeightsValid=function(e,t,o,n){var r,i=!1;do{r=!1;for(var s=this.getRowIndexAtPixel(e),a=this.getRowIndexAtPixel(t),l=Math.max(s,o),p=Math.min(a,n),u=l;u<=p;u++){var c=this.getRow(u);if(c.rowHeightEstimated){var d=this.gridOptionsWrapper.getRowHeightForNode(c);c.setRowHeight(d.height),r=!0,i=!0}}r&&this.setRowTops()}while(r);return i},e.prototype.setRowTops=function(){for(var e=0,t=0;t<this.rowsToDisplay.length;t++){var o=this.gridOptionsWrapper.getDomLayout()===s.Constants.DOM_LAYOUT_NORMAL,n=this.rowsToDisplay[t];if(_._.missing(n.rowHeight)){var r=this.gridOptionsWrapper.getRowHeightForNode(n,o);n.setRowHeight(r.height,r.estimated)}n.setRowTop(e),n.setRowIndex(t),e+=n.rowHeight}},e.prototype.resetRowTops=function(e,t){if(e.clearRowTop(),e.hasChildren()){if(e.childrenAfterGroup&&(!t.isActive()||e.expanded))for(var o=0;o<e.childrenAfterGroup.length;o++)this.resetRowTops(e.childrenAfterGroup[o],t);e.sibling&&e.sibling.clearRowTop()}e.detailNode&&e.detailNode.clearRowTop()},e.prototype.ensureRowAtPixel=function(e,t){var o=this.getRowIndexAtPixel(t);return this.getRow(o)!==e&&(_._.removeFromArray(this.rootNode.allLeafChildren,e),_._.insertIntoArray(this.rootNode.allLeafChildren,e,o),this.refreshModel({step:s.Constants.STEP_EVERYTHING,keepRenderedRows:!0,animate:!0,keepEditingRows:!0}),!0)},e.prototype.isLastRowFound=function(){return!0},e.prototype.getRowCount=function(){return this.rowsToDisplay?this.rowsToDisplay.length:0},e.prototype.getRowBounds=function(e){if(_._.missing(this.rowsToDisplay))return null;var t=this.rowsToDisplay[e];return t?{rowTop:t.rowTop,rowHeight:t.rowHeight}:null},e.prototype.onRowGroupOpened=function(){var e=this.gridOptionsWrapper.isAnimateRows();this.refreshModel({step:s.Constants.STEP_MAP,keepRenderedRows:!0,animate:e})},e.prototype.onFilterChanged=function(){var e=this.gridOptionsWrapper.isAnimateRows();this.refreshModel({step:s.Constants.STEP_FILTER,keepRenderedRows:!0,animate:e})},e.prototype.onSortChanged=function(){var e=this.gridOptionsWrapper.isAnimateRows();this.refreshModel({step:s.Constants.STEP_SORT,keepRenderedRows:!0,animate:e,keepEditingRows:!0})},e.prototype.getType=function(){return s.Constants.ROW_MODEL_TYPE_CLIENT_SIDE},e.prototype.onValueChanged=function(){this.columnController.isPivotActive()?this.refreshModel({step:s.Constants.STEP_PIVOT}):this.refreshModel({step:s.Constants.STEP_AGGREGATE})},e.prototype.createChangePath=function(e){var t=_._.missingOrEmpty(e),o=new y.ChangedPath(!1,this.rootNode);return(t||this.gridOptionsWrapper.isTreeData())&&o.setInactive(),o},e.prototype.refreshModel=function(e){var t=this,o=this.createChangePath(e.rowNodeTransactions);switch(e.step){case s.Constants.STEP_EVERYTHING:this.doRowGrouping(e.groupState,e.rowNodeTransactions,e.rowNodeOrder,o,e.afterColumnsChanged);case s.Constants.STEP_FILTER:this.doFilter(o);case s.Constants.STEP_PIVOT:this.doPivot(o);case s.Constants.STEP_AGGREGATE:this.doAggregate(o);case s.Constants.STEP_SORT:this.doSort(e.rowNodeTransactions,o);case s.Constants.STEP_MAP:this.doRowsToDisplay()}this.resetRowTops(this.rootNode,o),this.setRowTops();var n={type:h.Events.EVENT_MODEL_UPDATED,api:this.gridApi,columnApi:this.columnApi,animate:e.animate,keepRenderedRows:e.keepRenderedRows,newData:e.newData,newPage:!1};this.eventService.dispatchEvent(n),this.$scope&&window.setTimeout((function(){t.$scope.$apply()}),0)},e.prototype.isEmpty=function(){var e;return e=_._.exists(this.gridOptionsWrapper.getNodeChildDetailsFunc())?_._.missing(this.rootNode.childrenAfterGroup)||0===this.rootNode.childrenAfterGroup.length:_._.missing(this.rootNode.allLeafChildren)||0===this.rootNode.allLeafChildren.length,_._.missing(this.rootNode)||e||!this.columnController.isReady()},e.prototype.isRowsToRender=function(){return _._.exists(this.rowsToDisplay)&&this.rowsToDisplay.length>0},e.prototype.getNodesInRangeForSelection=function(e,t){var o,n=!t,r=!1,i=[],s=this.gridOptionsWrapper.isGroupSelectsChildren();return this.forEachNodeAfterFilterAndSort((function(a){var l=n&&!r;if(n||a!==t&&a!==e||(n=!0),!a.group||!s){var p=n&&!r,u=a.isParentOfNode(o);(p||u)&&i.push(a)}l&&(a!==t&&a!==e||(r=!0,o=a===t?t:e))})),i},e.prototype.setDatasource=function(e){console.error("ag-Grid: should never call setDatasource on clientSideRowController")},e.prototype.getTopLevelNodes=function(){return this.rootNode?this.rootNode.childrenAfterGroup:null},e.prototype.getRootNode=function(){return this.rootNode},e.prototype.getRow=function(e){return this.rowsToDisplay[e]},e.prototype.isRowPresent=function(e){return this.rowsToDisplay.indexOf(e)>=0},e.prototype.getVirtualRowCount=function(){return console.warn("ag-Grid: rowModel.getVirtualRowCount() is not longer a function, use rowModel.getRowCount() instead"),this.getPageLastRow()},e.prototype.getPageFirstRow=function(){return 0},e.prototype.getPageLastRow=function(){return this.rowsToDisplay?this.rowsToDisplay.length-1:0},e.prototype.getRowIndexAtPixel=function(e){if(this.isEmpty())return-1;var t=0,o=this.rowsToDisplay.length-1;if(e<=0)return 0;if(this.rowsToDisplay[this.rowsToDisplay.length-1].rowTop<=e)return this.rowsToDisplay.length-1;for(;;){var n=Math.floor((t+o)/2),r=this.rowsToDisplay[n];if(this.isRowInPixel(r,e))return n;r.rowTop<e?t=n+1:r.rowTop>e&&(o=n-1)}},e.prototype.isRowInPixel=function(e,t){var o=e.rowTop,n=e.rowTop+e.rowHeight;return o<=t&&n>t},e.prototype.getCurrentPageHeight=function(){if(this.rowsToDisplay&&this.rowsToDisplay.length>0){var e=this.rowsToDisplay[this.rowsToDisplay.length-1];return e.rowTop+e.rowHeight}return 0},e.prototype.forEachLeafNode=function(e){this.rootNode.allLeafChildren&&this.rootNode.allLeafChildren.forEach((function(t,o){return e(t,o)}))},e.prototype.forEachNode=function(e){this.recursivelyWalkNodesAndCallback(this.rootNode.childrenAfterGroup,e,i.Normal,0)},e.prototype.forEachNodeAfterFilter=function(e){this.recursivelyWalkNodesAndCallback(this.rootNode.childrenAfterFilter,e,i.AfterFilter,0)},e.prototype.forEachNodeAfterFilterAndSort=function(e){this.recursivelyWalkNodesAndCallback(this.rootNode.childrenAfterSort,e,i.AfterFilterAndSort,0)},e.prototype.forEachPivotNode=function(e){this.recursivelyWalkNodesAndCallback([this.rootNode],e,i.PivotNodes,0)},e.prototype.recursivelyWalkNodesAndCallback=function(e,t,o,n){if(e)for(var r=0;r<e.length;r++){var s=e[r];if(t(s,n++),s.hasChildren()){var a=null;switch(o){case i.Normal:a=s.childrenAfterGroup;break;case i.AfterFilter:a=s.childrenAfterFilter;break;case i.AfterFilterAndSort:a=s.childrenAfterSort;break;case i.PivotNodes:a=s.leafGroup?null:s.childrenAfterSort}a&&(n=this.recursivelyWalkNodesAndCallback(a,t,o,n))}}return n},e.prototype.doAggregate=function(e){this.aggregationStage&&this.aggregationStage.execute({rowNode:this.rootNode,changedPath:e})},e.prototype.expandOrCollapseAll=function(e){var t=this.gridOptionsWrapper.isTreeData();this.rootNode&&function o(n){n&&n.forEach((function(n){(t?_._.exists(n.childrenAfterGroup):n.group)&&(n.expanded=e,o(n.childrenAfterGroup))}))}(this.rootNode.childrenAfterGroup),this.refreshModel({step:s.Constants.STEP_MAP});var o=e?"expandAll":"collapseAll",n={api:this.gridApi,columnApi:this.columnApi,type:h.Events.EVENT_EXPAND_COLLAPSE_ALL,source:o};this.eventService.dispatchEvent(n)},e.prototype.doSort=function(e,t){this.sortStage.execute({rowNode:this.rootNode,rowNodeTransactions:e,changedPath:t})},e.prototype.doRowGrouping=function(e,t,o,n,r){var i=this;_._.exists(this.gridOptionsWrapper.getNodeChildDetailsFunc())||(this.groupStage?(t&&_._.exists(t)?t.forEach((function(e){i.groupStage.execute({rowNode:i.rootNode,rowNodeTransaction:e,rowNodeOrder:o,changedPath:n})})):(this.selectionController.removeGroupsFromSelection(),this.groupStage.execute({rowNode:this.rootNode,changedPath:n,afterColumnsChanged:r}),this.restoreGroupState(e)),this.gridOptionsWrapper.isGroupSelectsChildren()&&this.selectionController.updateGroupsFromChildrenSelections(n)):this.rootNode.childrenAfterGroup=this.rootNode.allLeafChildren)},e.prototype.restoreGroupState=function(e){e&&_._.traverseNodesWithKey(this.rootNode.childrenAfterGroup,(function(t,o){"boolean"==typeof e[o]&&(t.expanded=e[o])}))},e.prototype.doFilter=function(e){this.filterStage.execute({rowNode:this.rootNode,changedPath:e})},e.prototype.doPivot=function(e){this.pivotStage&&this.pivotStage.execute({rowNode:this.rootNode,changedPath:e})},e.prototype.getGroupState=function(){if(!this.rootNode.childrenAfterGroup||!this.gridOptionsWrapper.isRememberGroupStateWhenNewData())return null;var e={};return _._.traverseNodesWithKey(this.rootNode.childrenAfterGroup,(function(t,o){return e[o]=t.expanded})),e},e.prototype.getCopyOfNodesMap=function(){return this.nodeManager.getCopyOfNodesMap()},e.prototype.getRowNode=function(e){return this.nodeManager.getRowNode(e)},e.prototype.setRowData=function(e){var t=this.getGroupState();this.nodeManager.setRowData(e);var o={type:h.Events.EVENT_ROW_DATA_CHANGED,api:this.gridApi,columnApi:this.columnApi};this.eventService.dispatchEvent(o),this.refreshModel({step:s.Constants.STEP_EVERYTHING,groupState:t,newData:!0})},e.prototype.batchUpdateRowData=function(e,t){var o=this;if(!this.rowDataTransactionBatch){this.rowDataTransactionBatch=[];var n=this.gridOptionsWrapper.getBatchUpdateWaitMillis();window.setTimeout((function(){o.executeBatchUpdateRowData(),o.rowDataTransactionBatch=null}),n)}this.rowDataTransactionBatch.push({rowDataTransaction:e,callback:t})},e.prototype.executeBatchUpdateRowData=function(){var e=this;this.valueCache.onDataChanged();var t=[],o=[];this.rowDataTransactionBatch&&this.rowDataTransactionBatch.forEach((function(n){var r=e.nodeManager.updateRowData(n.rowDataTransaction,null);o.push(r),n.callback&&t.push(n.callback.bind(r))})),this.commonUpdateRowData(o),t.length>0&&window.setTimeout((function(){t.forEach((function(e){return e()}))}),0)},e.prototype.updateRowData=function(e,t){this.valueCache.onDataChanged();var o=this.nodeManager.updateRowData(e,t);return this.commonUpdateRowData([o],t),o},e.prototype.commonUpdateRowData=function(e,t){this.refreshModel({step:s.Constants.STEP_EVERYTHING,rowNodeTransactions:e,rowNodeOrder:t,keepRenderedRows:!0,animate:!0,keepEditingRows:!0});var o={type:h.Events.EVENT_ROW_DATA_UPDATED,api:this.gridApi,columnApi:this.columnApi};this.eventService.dispatchEvent(o)},e.prototype.doRowsToDisplay=function(){this.rowsToDisplay=this.flattenStage.execute({rowNode:this.rootNode})},e.prototype.onRowHeightChanged=function(){this.refreshModel({step:s.Constants.STEP_MAP,keepRenderedRows:!0,keepEditingRows:!0})},e.prototype.resetRowHeights=function(){this.forEachNode((function(e){return e.setRowHeight(null)})),this.onRowHeightChanged()},n([f.Autowired("gridOptionsWrapper"),r("design:type",a.GridOptionsWrapper)],e.prototype,"gridOptionsWrapper",void 0),n([f.Autowired("columnController"),r("design:type",p.ColumnController)],e.prototype,"columnController",void 0),n([f.Autowired("filterManager"),r("design:type",u.FilterManager)],e.prototype,"filterManager",void 0),n([f.Autowired("$scope"),r("design:type",Object)],e.prototype,"$scope",void 0),n([f.Autowired("selectionController"),r("design:type",g.SelectionController)],e.prototype,"selectionController",void 0),n([f.Autowired("eventService"),r("design:type",d.EventService)],e.prototype,"eventService",void 0),n([f.Autowired("context"),r("design:type",f.Context)],e.prototype,"context",void 0),n([f.Autowired("valueService"),r("design:type",v.ValueService)],e.prototype,"valueService",void 0),n([f.Autowired("valueCache"),r("design:type",C.ValueCache)],e.prototype,"valueCache",void 0),n([f.Autowired("columnApi"),r("design:type",l.ColumnApi)],e.prototype,"columnApi",void 0),n([f.Autowired("gridApi"),r("design:type",w.GridApi)],e.prototype,"gridApi",void 0),n([f.Autowired("filterStage"),r("design:type",Object)],e.prototype,"filterStage",void 0),n([f.Autowired("sortStage"),r("design:type",Object)],e.prototype,"sortStage",void 0),n([f.Autowired("flattenStage"),r("design:type",Object)],e.prototype,"flattenStage",void 0),n([f.Optional("groupStage"),r("design:type",Object)],e.prototype,"groupStage",void 0),n([f.Optional("aggregationStage"),r("design:type",Object)],e.prototype,"aggregationStage",void 0),n([f.Optional("pivotStage"),r("design:type",Object)],e.prototype,"pivotStage",void 0),n([f.PostConstruct,r("design:type",Function),r("design:paramtypes",[]),r("design:returntype",void 0)],e.prototype,"init",null),n([f.Bean("rowModel")],e)}();t.ClientSideRowModel=E},59891:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0});var o=function(){function e(){this.existingIds={}}return e.prototype.getInstanceIdForKey=function(e){var t,o=this.existingIds[e];return t="number"!=typeof o?0:o+1,this.existingIds[e]=t,t},e}();t.GroupInstanceIdCreator=o},60695:function(e,t,o){var n,r=this&&this.__extends||(n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])},n(e,t)},function(e,t){function o(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(o.prototype=t.prototype,new o)});Object.defineProperty(t,"__esModule",{value:!0});var i=o(96652),s=o(46410),a=o(57265),l=o(57265),p=function(e){function t(t,o){var n=e.call(this)||this;return n.reactComponent=t,n.parentComponent=o,n}return r(t,e),t.prototype.getFrameworkComponentInstance=function(){return this.componentInstance},t.prototype.getReactComponentName=function(){return this.reactComponent.name},t.prototype.init=function(e){var t=this;return new l.Promise((function(o){t.eParentElement=document.createElement(t.parentComponent.props.componentWrappingElement||"div"),a.Utils.addCssClass(t.eParentElement,"ag-react-container"),e.reactContainer=t.eParentElement,t.createReactComponentLegacy(e,o)}))},t.prototype.getGui=function(){return this.eParentElement},t.prototype.destroy=function(){s.unmountComponentAtNode(this.eParentElement)},t.prototype.createReactComponentLegacy=function(e,t){var o=this,n=i.createElement(this.reactComponent,e);this.parentComponent?s.unstable_renderSubtreeIntoContainer(this.parentComponent,n,this.eParentElement,(function(){o.componentInstance=this,t(null)})):s.render(n,this.eParentElement,(function(){o.componentInstance=this,t(null)}))},t}(o(61129).BaseReactComponent);t.LegacyReactComponent=p},61129:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0});var o=function(){function e(){}return e.prototype.hasMethod=function(e){var t=this.getFrameworkComponentInstance();return null!=t&&null!=t[e]},e.prototype.callMethod=function(e,t){var o=this,n=this.getFrameworkComponentInstance();if(null!=n){var r=this.getFrameworkComponentInstance()[e];if(null==r)return;return r.apply(n,t)}window.setTimeout((function(){return o.callMethod(e,t)}),100)},e.prototype.addMethod=function(e,t){this[e]=t},e}();t.BaseReactComponent=o},61164:function(e,t,o){var n=this&&this.__decorate||function(e,t,o,n){var r,i=arguments.length,s=i<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,n);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,o,s):r(t,o))||s);return i>3&&s&&Object.defineProperty(t,o,s),s},r=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0});var i=o(59804),s=o(99162),a=o(6145),l=function(){function e(){}return e.prototype.formatValue=function(e,t,o,n){var r,i=e.getColDef(),s=null;if(r=t&&t.rowPinned&&i.pinnedRowValueFormatter?i.pinnedRowValueFormatter:i.valueFormatter){var a={value:n,node:t,data:t?t.data:null,colDef:e.getColDef(),column:e,api:this.gridOptionsWrapper.getApi(),columnApi:this.gridOptionsWrapper.getColumnApi(),context:this.gridOptionsWrapper.getContext()};a.$scope=o,s=this.expressionService.evaluate(r,a)}else if(i.refData)return i.refData[n]||"";return null==s&&Array.isArray(n)&&(s=n.join(", ")),s},n([i.Autowired("gridOptionsWrapper"),r("design:type",s.GridOptionsWrapper)],e.prototype,"gridOptionsWrapper",void 0),n([i.Autowired("expressionService"),r("design:type",a.ExpressionService)],e.prototype,"expressionService",void 0),n([i.Bean("valueFormatterService")],e)}();t.ValueFormatterService=l},61260:function(e,t,o){var n=this&&this.__decorate||function(e,t,o,n){var r,i=arguments.length,s=i<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,n);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,o,s):r(t,o))||s);return i>3&&s&&Object.defineProperty(t,o,s),s},r=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0});var i=o(59804),s=o(47304),a=o(33018),l=o(51890),p=o(81404),u=o(31551),c=o(99162),d=function(){function e(){}return e.prototype.setScrollsVisible=function(e){if(this.horizontalScrollShowing!==e.horizontalScrollShowing||this.verticalScrollShowing!==e.verticalScrollShowing){this.horizontalScrollShowing=e.horizontalScrollShowing,this.verticalScrollShowing=e.verticalScrollShowing;var t={type:a.Events.EVENT_SCROLL_VISIBILITY_CHANGED,api:this.gridApi,columnApi:this.columnApi};this.eventService.dispatchEvent(t)}},e.prototype.isHorizontalScrollShowing=function(){return this.horizontalScrollShowing},e.prototype.isVerticalScrollShowing=function(){return this.verticalScrollShowing},n([i.Autowired("eventService"),r("design:type",s.EventService)],e.prototype,"eventService",void 0),n([i.Autowired("columnController"),r("design:type",l.ColumnController)],e.prototype,"columnController",void 0),n([i.Autowired("columnApi"),r("design:type",p.ColumnApi)],e.prototype,"columnApi",void 0),n([i.Autowired("gridApi"),r("design:type",u.GridApi)],e.prototype,"gridApi",void 0),n([i.Autowired("gridOptionsWrapper"),r("design:type",c.GridOptionsWrapper)],e.prototype,"gridOptionsWrapper",void 0),n([i.Bean("scrollVisibleService")],e)}();t.ScrollVisibleService=d},62695:(e,t,o)=>{Object.defineProperty(t,"__esModule",{value:!0});var n=o(99162),r=o(83921),i=o(81404),s=o(51890),a=o(1659),l=o(72065),p=o(57663),u=o(3978),c=o(47304),d=o(69620),h=o(31551),f=o(41758),g=o(70424),m=o(6145),y=o(27490),v=o(39128),C=o(12427),w=o(79705),_=o(67469),E=o(56932),b=o(59804),R=o(77769),S=o(66660),O=o(73505),P=o(13161),A=o(56579),T=o(14035),D=o(42062),N=o(36354),I=o(63833),x=o(6659),F=o(83213),L=o(97223),M=o(33018),k=o(55418),G=o(59862),V=o(4895),j=o(61164),W=o(85448),H=o(5364),B=o(61260),U=o(90150),Y=o(15512),z=o(81201),$=o(79509),K=o(94741),q=o(91901),Z=o(27322),Q=o(48644),X=o(51261),J=o(72738),ee=o(10228),te=o(44494),oe=o(79255),ne=o(8423),re=o(65499),ie=o(5988),se=o(36071),ae=o(54078),le=o(6459),pe=o(53628),ue=o(71627),ce=o(17074),de=o(15558),he=o(5747),fe=o(43980),ge=o(43598),me=o(85774),ye=o(6436),ve=o(17201),Ce=o(37879),we=o(43510),_e=o(84891),Ee=o(62946),be=function(){function e(t,o,M){t||console.error("ag-Grid: no div element provided to the grid"),o||console.error("ag-Grid: no gridOptions provided to the grid"),this.gridOptions=o;var k=this.getRowModelClass(o),G=we._.exists(e.enterpriseBeans),te=M?M.frameworkFactory:null;we._.missing(te)&&(te=new H.BaseFrameworkFactory);var be=[];e.enterpriseBeans&&(be=be.concat(e.enterpriseBeans)),e.frameworkBeans&&(be=be.concat(e.frameworkBeans));var Re={enterprise:G,gridOptions:o,eGridDiv:t,$scope:M?M.$scope:null,$compile:M?M.$compile:null,quickFilterOnScope:M?M.quickFilterOnScope:null,globalEventListener:M?M.globalEventListener:null,frameworkFactory:te};M&&M.seedBeanInstances&&we._.assign(Re,M.seedBeanInstances);var Se=[{componentName:"AgCheckbox",theClass:W.AgCheckbox},{componentName:"AgGridComp",theClass:d.GridPanel},{componentName:"AgHeaderRoot",theClass:l.HeaderRootComp},{componentName:"AgPagination",theClass:ye.PaginationComp},{componentName:"AgOverlayWrapper",theClass:Ee.OverlayWrapperComponent}];e.enterpriseComponents&&(Se=Se.concat(e.enterpriseComponents));var Oe={overrideBeans:be,seed:Re,beans:[k,ue.Beans,J.PaginationAutoPageSizeService,h.GridApi,ae.UserComponentRegistry,le.AgComponentUtils,pe.ComponentMetadataProvider,ve.ResizeObserverService,ae.UserComponentRegistry,se.UserComponentFactory,fe.MaxDivHeightScaler,me.AutoHeightCalculator,V.CellRendererFactory,E.HorizontalResizeService,ie.PinnedRowModel,A.DragService,g.DisplayedGroupCreator,c.EventService,n.GridOptionsWrapper,v.PopupService,r.SelectionController,p.FilterManager,s.ColumnController,J.PaginationProxy,a.RowRenderer,m.ExpressionService,f.ColumnFactory,R.CsvCreator,U.Downloader,Y.XmlFactory,z.GridSerializer,y.TemplateService,re.AlignedGridsService,he.NavigationService,v.PopupService,oe.ValueCache,u.ValueService,C.LoggerFactory,w.ColumnUtils,_.AutoWidthCalculator,O.StandardMenuFactory,P.DragAndDropService,i.ColumnApi,D.FocusedCellController,N.MouseEventService,ce.Environment,I.CellNavigationService,x.FilterStage,F.SortStage,L.FlattenStage,Q.FilterService,j.ValueFormatterService,$.StylingService,B.ScrollVisibleService,T.SortController,K.ColumnHoverService,q.ColumnAnimationService,Z.SortService,ge.SelectableService,X.AutoGroupColService,ee.ImmutableService,ne.ChangeDetectionService,de.AnimationFrameService,_e.TooltipManager,Ce.ZipContainer],components:Se,enterpriseDefaultComponents:e.enterpriseDefaultComponents,debug:!!o.debug};this.logger=new C.Logger("ag-Grid",(function(){return o.debug}));var Pe=new C.Logger("Context",(function(){return Oe.debug}));this.context=new b.Context(Oe,Pe);var Ae=new S.GridCore;this.context.wireBean(Ae),this.setColumnsAndData(),this.dispatchGridReadyEvent(o),this.logger.log("initialised successfully, enterprise = "+G)}return e.setEnterpriseBeans=function(t,o){this.enterpriseBeans=t,we._.iterateObject(o,(function(t,o){return e.RowModelClasses[t]=o}))},e.setEnterpriseComponents=function(e){this.enterpriseComponents=e},e.setFrameworkBeans=function(e){this.frameworkBeans=e},e.setEnterpriseDefaultComponents=function(e){this.enterpriseDefaultComponents=e},e.prototype.setColumnsAndData=function(){var e=this.context.getBean("gridOptionsWrapper"),t=this.context.getBean("columnController"),o=this.context.getBean("rowModel"),n=e.getColumnDefs(),r=e.getRowData();we._.missing(n)&&we._.missing(r)||(we._.exists(n)&&t.setColumnDefs(n,"gridInitializing"),we._.exists(r)&&o.getType()===te.Constants.ROW_MODEL_TYPE_CLIENT_SIDE&&o.setRowData(r))},e.prototype.dispatchGridReadyEvent=function(e){var t=this.context.getBean("eventService"),o={type:M.Events.EVENT_GRID_READY,api:e.api,columnApi:e.columnApi};t.dispatchEvent(o)},e.prototype.getRowModelClass=function(t){var o=t.rowModelType;if(o="enterprise"===o?te.Constants.ROW_MODEL_TYPE_SERVER_SIDE:o,we._.exists(o)){var n=e.RowModelClasses[o];if(we._.exists(n))return n;if("normal"===o)return console.warn("ag-Grid: normal rowModel deprecated. Should now be called client side row model instead."),G.ClientSideRowModel;console.error("ag-Grid: could not find matching row model for rowModelType "+o),o===te.Constants.ROW_MODEL_TYPE_VIEWPORT&&console.error("ag-Grid: rowModelType viewport is only available in ag-Grid Enterprise"),o===te.Constants.ROW_MODEL_TYPE_SERVER_SIDE&&console.error("ag-Grid: rowModelType server side is only available in ag-Grid Enterprise")}return G.ClientSideRowModel},e.prototype.destroy=function(){this.gridOptions.api.destroy()},e.RowModelClasses={infinite:k.InfiniteRowModel,clientSide:G.ClientSideRowModel},e}();t.Grid=be},62946:function(e,t,o){var n,r=this&&this.__extends||(n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])},n(e,t)},function(e,t){function o(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(o.prototype=t.prototype,new o)}),i=this&&this.__decorate||function(e,t,o,n){var r,i=arguments.length,s=i<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,n);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,o,s):r(t,o))||s);return i>3&&s&&Object.defineProperty(t,o,s),s},s=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0});var a,l=o(99162),p=o(59804),u=o(38830),c=o(36071),d=o(17890),h=o(43510);!function(e){e[e.Loading=0]="Loading",e[e.NoRows=1]="NoRows"}(a||(a={}));var f=function(e){function t(){return e.call(this,t.TEMPLATE)||this}return r(t,e),t.prototype.postConstruct=function(){this.gridOptionsWrapper.addLayoutElement(this.eOverlayWrapper),this.setVisible(!1)},t.prototype.setWrapperTypeClass=function(e){h._.addOrRemoveCssClass(this.eOverlayWrapper,"ag-overlay-loading-wrapper",e===a.Loading),h._.addOrRemoveCssClass(this.eOverlayWrapper,"ag-overlay-no-rows-wrapper",e===a.NoRows)},t.prototype.showLoadingOverlay=function(){var e=this;this.setWrapperTypeClass(a.Loading),this.destroyActiveOverlay();var t={api:this.gridOptionsWrapper.getApi()};this.userComponentFactory.newLoadingOverlayComponent(t).then((function(t){e.eOverlayWrapper.appendChild(t.getGui()),e.activeOverlay=t})),this.setVisible(!0)},t.prototype.showNoRowsOverlay=function(){var e=this;this.setWrapperTypeClass(a.NoRows),this.destroyActiveOverlay();var t={api:this.gridOptionsWrapper.getApi()};this.userComponentFactory.newNoRowsOverlayComponent(t).then((function(t){e.eOverlayWrapper.appendChild(t.getGui()),e.activeOverlay=t})),this.setVisible(!0)},t.prototype.destroyActiveOverlay=function(){this.activeOverlay&&(this.activeOverlay.destroy&&this.activeOverlay.destroy(),this.activeOverlay=void 0,h._.clearElement(this.eOverlayWrapper))},t.prototype.hideOverlay=function(){this.destroyActiveOverlay(),this.setVisible(!1)},t.prototype.destroy=function(){e.prototype.destroy.call(this),this.destroyActiveOverlay()},t.TEMPLATE='<div class="ag-overlay">\n <div class="ag-overlay-panel" role="presentation">\n <div class="ag-overlay-wrapper" ref="eOverlayWrapper"></div>\n </div>\n </div>',i([p.Autowired("gridOptionsWrapper"),s("design:type",l.GridOptionsWrapper)],t.prototype,"gridOptionsWrapper",void 0),i([p.Autowired("userComponentFactory"),s("design:type",c.UserComponentFactory)],t.prototype,"userComponentFactory",void 0),i([d.RefSelector("eOverlayWrapper"),s("design:type",HTMLElement)],t.prototype,"eOverlayWrapper",void 0),i([p.PostConstruct,s("design:type",Function),s("design:paramtypes",[]),s("design:returntype",void 0)],t.prototype,"postConstruct",null),t}(u.Component);t.OverlayWrapperComponent=f},63833:function(e,t,o){var n=this&&this.__decorate||function(e,t,o,n){var r,i=arguments.length,s=i<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,n);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,o,s):r(t,o))||s);return i>3&&s&&Object.defineProperty(t,o,s),s},r=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0});var i=o(59804),s=o(44494),a=o(51890),l=o(66895),p=o(21559),u=o(99162),c=o(5988),d=o(43510),h=function(){function e(){}return e.prototype.getNextCellToFocus=function(e,t){for(var o=t,n=!1;!n;){switch(e){case s.Constants.KEY_UP:o=this.getCellAbove(o);break;case s.Constants.KEY_DOWN:o=this.getCellBelow(o);break;case s.Constants.KEY_RIGHT:o=this.gridOptionsWrapper.isEnableRtl()?this.getCellToLeft(o):this.getCellToRight(o);break;case s.Constants.KEY_LEFT:o=this.gridOptionsWrapper.isEnableRtl()?this.getCellToRight(o):this.getCellToLeft(o);break;default:o=null,console.warn("ag-Grid: unknown key for navigation "+e)}n=!o||this.isCellGoodToFocusOn(o)}return o},e.prototype.isCellGoodToFocusOn=function(e){var t,o=e.column;switch(e.floating){case s.Constants.PINNED_TOP:t=this.pinnedRowModel.getPinnedTopRow(e.rowIndex);break;case s.Constants.PINNED_BOTTOM:t=this.pinnedRowModel.getPinnedBottomRow(e.rowIndex);break;default:t=this.rowModel.getRow(e.rowIndex)}return!o.isSuppressNavigable(t)},e.prototype.getCellToLeft=function(e){if(!e)return null;var t=this.columnController.getDisplayedColBefore(e.column);if(t){var o={rowIndex:e.rowIndex,column:t,floating:e.floating};return new p.GridCell(o)}return null},e.prototype.getCellToRight=function(e){if(!e)return null;var t=this.columnController.getDisplayedColAfter(e.column);if(t){var o={rowIndex:e.rowIndex,column:t,floating:e.floating};return new p.GridCell(o)}return null},e.prototype.getRowBelow=function(e){return this.isLastRowInContainer(e)?e.isFloatingBottom()?null:e.isNotFloating()?this.pinnedRowModel.isRowsToRender(s.Constants.PINNED_BOTTOM)?new l.GridRow(0,s.Constants.PINNED_BOTTOM):null:this.rowModel.isRowsToRender()?new l.GridRow(0,null):this.pinnedRowModel.isRowsToRender(s.Constants.PINNED_BOTTOM)?new l.GridRow(0,s.Constants.PINNED_BOTTOM):null:new l.GridRow(e.rowIndex+1,e.floating)},e.prototype.getCellBelow=function(e){if(!e)return null;var t=this.getRowBelow(e.getGridRow());if(t){var o={rowIndex:t.rowIndex,column:e.column,floating:t.floating};return new p.GridCell(o)}return null},e.prototype.isLastRowInContainer=function(e){return e.isFloatingTop()?this.pinnedRowModel.getPinnedTopRowData().length-1<=e.rowIndex:e.isFloatingBottom()?this.pinnedRowModel.getPinnedBottomRowData().length-1<=e.rowIndex:this.rowModel.getPageLastRow()<=e.rowIndex},e.prototype.getRowAbove=function(e){return 0===e.rowIndex?e.isFloatingTop()?null:e.isNotFloating()?this.pinnedRowModel.isRowsToRender(s.Constants.PINNED_TOP)?this.getLastFloatingTopRow():null:this.rowModel.isRowsToRender()?this.getLastBodyCell():this.pinnedRowModel.isRowsToRender(s.Constants.PINNED_TOP)?this.getLastFloatingTopRow():null:new l.GridRow(e.rowIndex-1,e.floating)},e.prototype.getCellAbove=function(e){if(!e)return null;var t=this.getRowAbove(e.getGridRow());if(t){var o={rowIndex:t.rowIndex,column:e.column,floating:t.floating};return new p.GridCell(o)}return null},e.prototype.getLastBodyCell=function(){var e=this.rowModel.getPageLastRow();return new l.GridRow(e,null)},e.prototype.getLastFloatingTopRow=function(){var e=this.pinnedRowModel.getPinnedTopRowData().length-1;return new l.GridRow(e,s.Constants.PINNED_TOP)},e.prototype.getNextTabbedCell=function(e,t){return t?this.getNextTabbedCellBackwards(e):this.getNextTabbedCellForwards(e)},e.prototype.getNextTabbedCellForwards=function(e){var t=this.columnController.getAllDisplayedColumns(),o=e.rowIndex,n=e.floating,r=this.columnController.getDisplayedColAfter(e.column);if(!r){r=t[0];var i=this.getRowBelow(e.getGridRow());if(d._.missing(i))return null;o=i?i.rowIndex:null,n=i?i.floating:null}var s={rowIndex:o,column:r,floating:n};return new p.GridCell(s)},e.prototype.getNextTabbedCellBackwards=function(e){var t=this.columnController.getAllDisplayedColumns(),o=e.rowIndex,n=e.floating,r=this.columnController.getDisplayedColBefore(e.column);if(!r){r=t[t.length-1];var i=this.getRowAbove(e.getGridRow());if(d._.missing(i))return null;o=i?i.rowIndex:null,n=i?i.floating:null}var s={rowIndex:o,column:r,floating:n};return new p.GridCell(s)},n([i.Autowired("columnController"),r("design:type",a.ColumnController)],e.prototype,"columnController",void 0),n([i.Autowired("rowModel"),r("design:type",Object)],e.prototype,"rowModel",void 0),n([i.Autowired("pinnedRowModel"),r("design:type",c.PinnedRowModel)],e.prototype,"pinnedRowModel",void 0),n([i.Autowired("gridOptionsWrapper"),r("design:type",u.GridOptionsWrapper)],e.prototype,"gridOptionsWrapper",void 0),n([i.Bean("cellNavigationService")],e)}();t.CellNavigationService=h},64159:(e,t,o)=>{o.d(t,{Ay:()=>r});var n=o(47772);const r=n.default;n.CommaAndColonSeparatedRecord,n.ConnectionString,n.redactConnectionString},64339:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0});var o=function(){function e(){}return e.EVENT_COLUMN_EVERYTHING_CHANGED="columnEverythingChanged",e.EVENT_NEW_COLUMNS_LOADED="newColumnsLoaded",e.EVENT_COLUMN_PIVOT_MODE_CHANGED="columnPivotModeChanged",e.EVENT_COLUMN_ROW_GROUP_CHANGED="columnRowGroupChanged",e.EVENT_EXPAND_COLLAPSE_ALL="expandOrCollapseAll",e.EVENT_COLUMN_PIVOT_CHANGED="columnPivotChanged",e.EVENT_GRID_COLUMNS_CHANGED="gridColumnsChanged",e.EVENT_COLUMN_VALUE_CHANGED="columnValueChanged",e.EVENT_COLUMN_MOVED="columnMoved",e.EVENT_COLUMN_VISIBLE="columnVisible",e.EVENT_COLUMN_PINNED="columnPinned",e.EVENT_COLUMN_GROUP_OPENED="columnGroupOpened",e.EVENT_COLUMN_RESIZED="columnResized",e.EVENT_DISPLAYED_COLUMNS_CHANGED="displayedColumnsChanged",e.EVENT_VIRTUAL_COLUMNS_CHANGED="virtualColumnsChanged",e.EVENT_ROW_GROUP_OPENED="rowGroupOpened",e.EVENT_ROW_DATA_CHANGED="rowDataChanged",e.EVENT_ROW_DATA_UPDATED="rowDataUpdated",e.EVENT_PINNED_ROW_DATA_CHANGED="pinnedRowDataChanged",e.EVENT_RANGE_SELECTION_CHANGED="rangeSelectionChanged",e.EVENT_TOOL_PANEL_VISIBLE_CHANGED="toolPanelVisibleChanged",e.EVENT_MODEL_UPDATED="modelUpdated",e.EVENT_PASTE_START="pasteStart",e.EVENT_PASTE_END="pasteEnd",e.EVENT_CELL_CLICKED="cellClicked",e.EVENT_CELL_DOUBLE_CLICKED="cellDoubleClicked",e.EVENT_CELL_MOUSE_DOWN="cellMouseDown",e.EVENT_CELL_CONTEXT_MENU="cellContextMenu",e.EVENT_CELL_VALUE_CHANGED="cellValueChanged",e.EVENT_ROW_VALUE_CHANGED="rowValueChanged",e.EVENT_CELL_FOCUSED="cellFocused",e.EVENT_ROW_SELECTED="rowSelected",e.EVENT_SELECTION_CHANGED="selectionChanged",e.EVENT_CELL_KEY_DOWN="cellKeyDown",e.EVENT_CELL_KEY_PRESS="cellKeyPress",e.EVENT_CELL_MOUSE_OVER="cellMouseOver",e.EVENT_CELL_MOUSE_OUT="cellMouseOut",e.EVENT_FILTER_CHANGED="filterChanged",e.EVENT_FILTER_MODIFIED="filterModified",e.EVENT_FILTER_OPENED="filterOpened",e.EVENT_SORT_CHANGED="sortChanged",e.EVENT_VIRTUAL_ROW_REMOVED="virtualRowRemoved",e.EVENT_ROW_CLICKED="rowClicked",e.EVENT_ROW_DOUBLE_CLICKED="rowDoubleClicked",e.EVENT_GRID_READY="gridReady",e.EVENT_GRID_SIZE_CHANGED="gridSizeChanged",e.EVENT_VIEWPORT_CHANGED="viewportChanged",e.EVENT_FIRST_DATA_RENDERED="firstDataRendered",e.EVENT_DRAG_STARTED="dragStarted",e.EVENT_DRAG_STOPPED="dragStopped",e.EVENT_ROW_EDITING_STARTED="rowEditingStarted",e.EVENT_ROW_EDITING_STOPPED="rowEditingStopped",e.EVENT_CELL_EDITING_STARTED="cellEditingStarted",e.EVENT_CELL_EDITING_STOPPED="cellEditingStopped",e.EVENT_BODY_SCROLL="bodyScroll",e.EVENT_ANIMATION_QUEUE_EMPTY="animationQueueEmpty",e.EVENT_HEIGHT_SCALE_CHANGED="heightScaleChanged",e.EVENT_PAGINATION_CHANGED="paginationChanged",e.EVENT_COMPONENT_STATE_CHANGED="componentStateChanged",e.EVENT_BODY_HEIGHT_CHANGED="bodyHeightChanged",e.EVENT_DISPLAYED_COLUMNS_WIDTH_CHANGED="displayedColumnsWidthChanged",e.EVENT_SCROLL_VISIBILITY_CHANGED="scrollVisibilityChanged",e.EVENT_COLUMN_HOVER_CHANGED="columnHoverChanged",e.EVENT_FLASH_CELLS="flashCells",e.EVENT_ROW_DRAG_ENTER="rowDragEnter",e.EVENT_ROW_DRAG_MOVE="rowDragMove",e.EVENT_ROW_DRAG_LEAVE="rowDragLeave",e.EVENT_ROW_DRAG_END="rowDragEnd",e.EVENT_COLUMN_ROW_GROUP_CHANGE_REQUEST="columnRowGroupChangeRequest",e.EVENT_COLUMN_PIVOT_CHANGE_REQUEST="columnPivotChangeRequest",e.EVENT_COLUMN_VALUE_CHANGE_REQUEST="columnValueChangeRequest",e.EVENT_COLUMN_AGG_FUNC_CHANGE_REQUEST="columnAggFuncChangeRequest",e}();t.Events=o},65317:function(e){!function(t){const o="(0?\\d+|0x[a-f0-9]+)",n={fourOctet:new RegExp(`^${o}\\.${o}\\.${o}\\.${o}$`,"i"),threeOctet:new RegExp(`^${o}\\.${o}\\.${o}$`,"i"),twoOctet:new RegExp(`^${o}\\.${o}$`,"i"),longValue:new RegExp(`^${o}$`,"i")},r=new RegExp("^0[0-7]+$","i"),i=new RegExp("^0x[a-f0-9]+$","i"),s="%[0-9a-z]{1,}",a="(?:[0-9a-f]+::?)+",l={zoneIndex:new RegExp(s,"i"),native:new RegExp(`^(::)?(${a})?([0-9a-f]+)?(::)?(${s})?$`,"i"),deprecatedTransitional:new RegExp(`^(?:::)(${o}\\.${o}\\.${o}\\.${o}(${s})?)$`,"i"),transitional:new RegExp(`^((?:${a})|(?:::)(?:${a})?)${o}\\.${o}\\.${o}\\.${o}(${s})?$`,"i")};function p(e,t){if(e.indexOf("::")!==e.lastIndexOf("::"))return null;let o,n,r=0,i=-1,s=(e.match(l.zoneIndex)||[])[0];for(s&&(s=s.substring(1),e=e.replace(/%.+$/,""));(i=e.indexOf(":",i+1))>=0;)r++;if("::"===e.substr(0,2)&&r--,"::"===e.substr(-2,2)&&r--,r>=t)return null;for(n=t-r,o=":";n--;)o+="0:";return":"===(e=e.replace("::",o))[0]&&(e=e.slice(1)),":"===e[e.length-1]&&(e=e.slice(0,-1)),{parts:t=function(){const t=e.split(":"),o=[];for(let e=0;e<t.length;e++)o.push(t[e].length>4?NaN:parseInt(t[e],16));return o}(),zoneId:s}}function u(e,t,o,n){if(e.length!==t.length)throw new Error("ipaddr: cannot match CIDR for objects with different lengths");let r,i=0;for(;n>0;){if(r=o-n,r<0&&(r=0),e[i]>>r!=t[i]>>r)return!1;n-=o,i+=1}return!0}function c(e){if(i.test(e))return parseInt(e,16);if("0"===e[0]&&!isNaN(parseInt(e[1],10))){if(r.test(e))return parseInt(e,8);throw new Error(`ipaddr: cannot parse ${e} as octal`)}return parseInt(e,10)}function d(e,t){for(;e.length<t;)e=`0${e}`;return e}const h={};h.IPv4=function(){function e(e){if(4!==e.length)throw new Error("ipaddr: ipv4 octet count should be 4");let t,o;for(t=0;t<e.length;t++)if(o=e[t],!(0<=o&&o<=255))throw new Error("ipaddr: ipv4 octet should fit in 8 bits");this.octets=e}return e.prototype.SpecialRanges={unspecified:[[new e([0,0,0,0]),8]],broadcast:[[new e([255,255,255,255]),32]],multicast:[[new e([224,0,0,0]),4]],linkLocal:[[new e([169,254,0,0]),16]],loopback:[[new e([127,0,0,0]),8]],carrierGradeNat:[[new e([100,64,0,0]),10]],private:[[new e([10,0,0,0]),8],[new e([172,16,0,0]),12],[new e([192,168,0,0]),16]],reserved:[[new e([192,0,0,0]),24],[new e([192,0,2,0]),24],[new e([192,88,99,0]),24],[new e([198,18,0,0]),15],[new e([198,51,100,0]),24],[new e([203,0,113,0]),24],[new e([240,0,0,0]),4]],as112:[[new e([192,175,48,0]),24],[new e([192,31,196,0]),24]],amt:[[new e([192,52,193,0]),24]]},e.prototype.kind=function(){return"ipv4"},e.prototype.match=function(e,t){let o;if(void 0===t&&(o=e,e=o[0],t=o[1]),"ipv4"!==e.kind())throw new Error("ipaddr: cannot match ipv4 address with non-ipv4 one");return u(this.octets,e.octets,8,t)},e.prototype.prefixLengthFromSubnetMask=function(){let e=0,t=!1;const o={0:8,128:7,192:6,224:5,240:4,248:3,252:2,254:1,255:0};let n,r,i;for(n=3;n>=0;n-=1){if(r=this.octets[n],!(r in o))return null;if(i=o[r],t&&0!==i)return null;8!==i&&(t=!0),e+=i}return 32-e},e.prototype.range=function(){return h.subnetMatch(this,this.SpecialRanges)},e.prototype.toByteArray=function(){return this.octets.slice(0)},e.prototype.toIPv4MappedAddress=function(){return h.IPv6.parse(`::ffff:${this.toString()}`)},e.prototype.toNormalizedString=function(){return this.toString()},e.prototype.toString=function(){return this.octets.join(".")},e}(),h.IPv4.broadcastAddressFromCIDR=function(e){try{const t=this.parseCIDR(e),o=t[0].toByteArray(),n=this.subnetMaskFromPrefixLength(t[1]).toByteArray(),r=[];let i=0;for(;i<4;)r.push(parseInt(o[i],10)|255^parseInt(n[i],10)),i++;return new this(r)}catch(e){throw new Error("ipaddr: the address does not have IPv4 CIDR format",{cause:e})}},h.IPv4.isIPv4=function(e){return null!==this.parser(e)},h.IPv4.isValid=function(e){try{return new this(this.parser(e)),!0}catch{return!1}},h.IPv4.isValidCIDR=function(e){try{return this.parseCIDR(e),!0}catch{return!1}},h.IPv4.isValidFourPartDecimal=function(e){return!(!h.IPv4.isValid(e)||!e.match(/^(0|[1-9]\d*)(\.(0|[1-9]\d*)){3}$/))},h.IPv4.isValidCIDRFourPartDecimal=function(e){const t=e.match(/^(.+)\/(\d+)$/);return!(!h.IPv4.isValidCIDR(e)||!t)&&h.IPv4.isValidFourPartDecimal(t[1])},h.IPv4.networkAddressFromCIDR=function(e){let t,o,n,r,i;try{for(t=this.parseCIDR(e),n=t[0].toByteArray(),i=this.subnetMaskFromPrefixLength(t[1]).toByteArray(),r=[],o=0;o<4;)r.push(parseInt(n[o],10)&parseInt(i[o],10)),o++;return new this(r)}catch(e){throw new Error("ipaddr: the address does not have IPv4 CIDR format",{cause:e})}},h.IPv4.parse=function(e){const t=this.parser(e);if(null===t)throw new Error("ipaddr: string is not formatted like an IPv4 Address");return new this(t)},h.IPv4.parseCIDR=function(e){let t;if(t=e.match(/^(.+)\/(\d+)$/)){const e=parseInt(t[2]);if(e>=0&&e<=32){const o=[this.parse(t[1]),e];return Object.defineProperty(o,"toString",{value:function(){return this.join("/")}}),o}}throw new Error("ipaddr: string is not formatted like an IPv4 CIDR range")},h.IPv4.parser=function(e){let t,o,r;if(t=e.match(n.fourOctet))return function(){const e=t.slice(1,6),n=[];for(let t=0;t<e.length;t++)o=e[t],n.push(c(o));return n}();if(t=e.match(n.longValue)){if(r=c(t[1]),r>4294967295||r<0)throw new Error("ipaddr: address outside defined range");return function(){const e=[];let t;for(t=0;t<=24;t+=8)e.push(r>>t&255);return e}().reverse()}return(t=e.match(n.twoOctet))?function(){const e=t.slice(1,4),o=[];if(r=c(e[1]),r>16777215||r<0)throw new Error("ipaddr: address outside defined range");return o.push(c(e[0])),o.push(r>>16&255),o.push(r>>8&255),o.push(255&r),o}():(t=e.match(n.threeOctet))?function(){const e=t.slice(1,5),o=[];if(r=c(e[2]),r>65535||r<0)throw new Error("ipaddr: address outside defined range");return o.push(c(e[0])),o.push(c(e[1])),o.push(r>>8&255),o.push(255&r),o}():null},h.IPv4.subnetMaskFromPrefixLength=function(e){if(e=parseInt(e),Number.isNaN(e)||e<0||e>32)throw new Error("ipaddr: invalid IPv4 prefix length");const t=[0,0,0,0];let o=0;const n=Math.floor(e/8);for(;o<n;)t[o]=255,o++;return n<4&&(t[n]=Math.pow(2,e%8)-1<<8-e%8),new this(t)},h.IPv6=function(){function e(e,t){let o,n;if(16===e.length)for(this.parts=[],o=0;o<=14;o+=2)this.parts.push(e[o]<<8|e[o+1]);else{if(8!==e.length)throw new Error("ipaddr: ipv6 part count should be 8 or 16");this.parts=e}for(o=0;o<this.parts.length;o++)if(n=this.parts[o],!(0<=n&&n<=65535))throw new Error("ipaddr: ipv6 part should fit in 16 bits");t&&(this.zoneId=t)}return e.prototype.SpecialRanges={unspecified:[new e([0,0,0,0,0,0,0,0]),128],linkLocal:[new e([65152,0,0,0,0,0,0,0]),10],multicast:[new e([65280,0,0,0,0,0,0,0]),8],loopback:[new e([0,0,0,0,0,0,0,1]),128],uniqueLocal:[new e([64512,0,0,0,0,0,0,0]),7],ipv4Mapped:[new e([0,0,0,0,0,65535,0,0]),96],deprecatedSiteLocal:[new e([65216,0,0,0,0,0,0,0]),10],discard:[new e([256,0,0,0,0,0,0,0]),64],rfc6145:[new e([0,0,0,0,65535,0,0,0]),96],rfc6052:[[new e([100,65435,0,0,0,0,0,0]),96],[new e([100,65435,1,0,0,0,0,0]),48]],"6to4":[new e([8194,0,0,0,0,0,0,0]),16],teredo:[new e([8193,0,0,0,0,0,0,0]),32],benchmarking:[new e([8193,2,0,0,0,0,0,0]),48],amt:[new e([8193,3,0,0,0,0,0,0]),32],as112v6:[[new e([8193,4,274,0,0,0,0,0]),48],[new e([9760,79,32768,0,0,0,0,0]),48]],deprecatedOrchid:[new e([8193,16,0,0,0,0,0,0]),28],orchid2:[new e([8193,32,0,0,0,0,0,0]),28],droneRemoteIdProtocolEntityTags:[new e([8193,48,0,0,0,0,0,0]),28],segmentRouting:[new e([24320,0,0,0,0,0,0,0]),16],reserved:[[new e([8193,0,0,0,0,0,0,0]),23],[new e([8193,3512,0,0,0,0,0,0]),32],[new e([16383,0,0,0,0,0,0,0]),20]]},e.prototype.isIPv4MappedAddress=function(){return"ipv4Mapped"===this.range()},e.prototype.kind=function(){return"ipv6"},e.prototype.match=function(e,t){let o;if(void 0===t&&(o=e,e=o[0],t=o[1]),"ipv6"!==e.kind())throw new Error("ipaddr: cannot match ipv6 address with non-ipv6 one");return u(this.parts,e.parts,16,t)},e.prototype.prefixLengthFromSubnetMask=function(){let e=0,t=!1;const o={0:16,32768:15,49152:14,57344:13,61440:12,63488:11,64512:10,65024:9,65280:8,65408:7,65472:6,65504:5,65520:4,65528:3,65532:2,65534:1,65535:0};let n,r;for(let i=7;i>=0;i-=1){if(n=this.parts[i],!(n in o))return null;if(r=o[n],t&&0!==r)return null;16!==r&&(t=!0),e+=r}return 128-e},e.prototype.range=function(){return h.subnetMatch(this,this.SpecialRanges)},e.prototype.toByteArray=function(){let e;const t=[],o=this.parts;for(let n=0;n<o.length;n++)e=o[n],t.push(e>>8),t.push(255&e);return t},e.prototype.toFixedLengthString=function(){const e=function(){const e=[];for(let t=0;t<this.parts.length;t++)e.push(d(this.parts[t].toString(16),4));return e}.call(this).join(":");let t="";return this.zoneId&&(t=`%${this.zoneId}`),e+t},e.prototype.toIPv4Address=function(){if(!this.isIPv4MappedAddress())throw new Error("ipaddr: trying to convert a generic ipv6 address to ipv4");const e=this.parts.slice(-2),t=e[0],o=e[1];return new h.IPv4([t>>8,255&t,o>>8,255&o])},e.prototype.toNormalizedString=function(){const e=function(){const e=[];for(let t=0;t<this.parts.length;t++)e.push(this.parts[t].toString(16));return e}.call(this).join(":");let t="";return this.zoneId&&(t=`%${this.zoneId}`),e+t},e.prototype.toRFC5952String=function(){const e=/((^|:)(0(:|$)){2,})/g;let t="";this.zoneId&&(t=`%${this.zoneId}`);const o=this.toNormalizedString(),n=o.slice(0,o.length-t.length);let r,i=0,s=-1,a=-1;for(;r=e.exec(n);){const e=(r[0].match(/0/g)||[]).length;e>a&&(a=e,i=r.index,s=r[0].length)}return s<0?n+t:`${n.substring(0,i)}::${n.substring(i+s)}${t}`},e.prototype.toString=function(){return this.toRFC5952String()},e}(),h.IPv6.broadcastAddressFromCIDR=function(e){try{const t=this.parseCIDR(e),o=t[0].toByteArray(),n=this.subnetMaskFromPrefixLength(t[1]).toByteArray(),r=[];let i=0;for(;i<16;)r.push(parseInt(o[i],10)|255^parseInt(n[i],10)),i++;return new this(r)}catch(e){throw new Error("ipaddr: the address does not have IPv6 CIDR format",{cause:e})}},h.IPv6.isIPv6=function(e){return null!==this.parser(e)},h.IPv6.isValid=function(e){if("string"==typeof e&&-1===e.indexOf(":"))return!1;try{const t=this.parser(e);return new this(t.parts,t.zoneId),!0}catch{return!1}},h.IPv6.isValidCIDR=function(e){if("string"==typeof e&&-1===e.indexOf(":"))return!1;try{return this.parseCIDR(e),!0}catch{return!1}},h.IPv6.networkAddressFromCIDR=function(e){let t,o,n,r,i;try{for(t=this.parseCIDR(e),n=t[0].toByteArray(),i=this.subnetMaskFromPrefixLength(t[1]).toByteArray(),r=[],o=0;o<16;)r.push(parseInt(n[o],10)&parseInt(i[o],10)),o++;return new this(r)}catch(e){throw new Error("ipaddr: the address does not have IPv6 CIDR format",{cause:e})}},h.IPv6.parse=function(e){const t=this.parser(e);if(null===t)throw new Error("ipaddr: string is not formatted like an IPv6 Address");return new this(t.parts,t.zoneId)},h.IPv6.parseCIDR=function(e){let t,o,n;if((o=e.match(/^(.+)\/(\d+)$/))&&(t=parseInt(o[2]),t>=0&&t<=128))return n=[this.parse(o[1]),t],Object.defineProperty(n,"toString",{value:function(){return this.join("/")}}),n;throw new Error("ipaddr: string is not formatted like an IPv6 CIDR range")},h.IPv6.parser=function(e){let t,o,n,r,i,s;if(n=e.match(l.deprecatedTransitional))return this.parser(`::ffff:${n[1]}`);if(l.native.test(e))return p(e,8);if((n=e.match(l.transitional))&&(s=n[6]||"",t=n[1],n[1].endsWith("::")||(t=t.slice(0,-1)),t=p(t+s,6),t&&t.parts)){for(i=[parseInt(n[2]),parseInt(n[3]),parseInt(n[4]),parseInt(n[5])],o=0;o<i.length;o++)if(r=i[o],!(0<=r&&r<=255))return null;return t.parts.push(i[0]<<8|i[1]),t.parts.push(i[2]<<8|i[3]),{parts:t.parts,zoneId:t.zoneId}}return null},h.IPv6.subnetMaskFromPrefixLength=function(e){if(e=parseInt(e),Number.isNaN(e)||e<0||e>128)throw new Error("ipaddr: invalid IPv6 prefix length");const t=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0];let o=0;const n=Math.floor(e/8);for(;o<n;)t[o]=255,o++;return n<16&&(t[n]=Math.pow(2,e%8)-1<<8-e%8),new this(t)},h.fromByteArray=function(e){const t=e.length;if(4===t)return new h.IPv4(e);if(16===t)return new h.IPv6(e);throw new Error("ipaddr: the binary input is neither an IPv6 nor IPv4 address")},h.isValid=function(e){return h.IPv6.isValid(e)||h.IPv4.isValid(e)},h.isValidCIDR=function(e){return h.IPv6.isValidCIDR(e)||h.IPv4.isValidCIDR(e)},h.parse=function(e){if(h.IPv6.isValid(e))return h.IPv6.parse(e);if(h.IPv4.isValid(e))return h.IPv4.parse(e);throw new Error("ipaddr: the address has neither IPv6 nor IPv4 format")},h.parseCIDR=function(e){try{return h.IPv6.parseCIDR(e)}catch{try{return h.IPv4.parseCIDR(e)}catch(e){throw new Error("ipaddr: the address has neither IPv6 nor IPv4 CIDR format",{cause:e})}}},h.process=function(e){const t=this.parse(e);return"ipv6"===t.kind()&&t.isIPv4MappedAddress()?t.toIPv4Address():t},h.subnetMatch=function(e,t,o){let n,r,i,s;for(r in null==o&&(o="unicast"),t)if(Object.prototype.hasOwnProperty.call(t,r))for(i=t[r],!i[0]||i[0]instanceof Array||(i=[i]),n=0;n<i.length;n++)if(s=i[n],e.kind()===s[0].kind()&&e.match.apply(e,s))return r;return o},e.exports?e.exports=h:t.ipaddr=h}(this)},65499:function(e,t,o){var n=this&&this.__decorate||function(e,t,o,n){var r,i=arguments.length,s=i<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,n);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,o,s):r(t,o))||s);return i>3&&s&&Object.defineProperty(t,o,s),s},r=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},i=this&&this.__param||function(e,t){return function(o,n){t(o,n,e)}};Object.defineProperty(t,"__esModule",{value:!0});var s=o(99162),a=o(51890),l=o(47304),p=o(12427),u=o(33018),c=o(59804),d=o(59804),h=o(59804),f=o(59804),g=function(){function e(){this.consuming=!1}return e.prototype.setBeans=function(e){this.logger=e.create("AlignedGridsService")},e.prototype.registerGridComp=function(e){this.gridPanel=e},e.prototype.init=function(){this.eventService.addEventListener(u.Events.EVENT_COLUMN_MOVED,this.fireColumnEvent.bind(this)),this.eventService.addEventListener(u.Events.EVENT_COLUMN_VISIBLE,this.fireColumnEvent.bind(this)),this.eventService.addEventListener(u.Events.EVENT_COLUMN_PINNED,this.fireColumnEvent.bind(this)),this.eventService.addEventListener(u.Events.EVENT_COLUMN_GROUP_OPENED,this.fireColumnEvent.bind(this)),this.eventService.addEventListener(u.Events.EVENT_COLUMN_RESIZED,this.fireColumnEvent.bind(this)),this.eventService.addEventListener(u.Events.EVENT_BODY_SCROLL,this.fireScrollEvent.bind(this))},e.prototype.fireEvent=function(e){if(!this.consuming){var t=this.gridOptionsWrapper.getAlignedGrids();t&&t.forEach((function(t){if(t.api){var o=t.api.__getAlignedGridService();e(o)}}))}},e.prototype.onEvent=function(e){this.consuming=!0,e(),this.consuming=!1},e.prototype.fireColumnEvent=function(e){this.fireEvent((function(t){t.onColumnEvent(e)}))},e.prototype.fireScrollEvent=function(e){"horizontal"===e.direction&&this.fireEvent((function(t){t.onScrollEvent(e)}))},e.prototype.onScrollEvent=function(e){var t=this;this.onEvent((function(){t.gridPanel.setHorizontalScrollPosition(e.left)}))},e.prototype.getMasterColumns=function(e){var t=[];return e.columns?e.columns.forEach((function(e){t.push(e)})):e.column&&t.push(e.column),t},e.prototype.getColumnIds=function(e){var t=[];return e.columns?e.columns.forEach((function(e){t.push(e.getColId())})):e.column&&t.push(e.column.getColId()),t},e.prototype.onColumnEvent=function(e){var t=this;this.onEvent((function(){switch(e.type){case u.Events.EVENT_COLUMN_MOVED:case u.Events.EVENT_COLUMN_VISIBLE:case u.Events.EVENT_COLUMN_PINNED:case u.Events.EVENT_COLUMN_RESIZED:var o=e;t.processColumnEvent(o);break;case u.Events.EVENT_COLUMN_GROUP_OPENED:var n=e;t.processGroupOpenedEvent(n);break;case u.Events.EVENT_COLUMN_PIVOT_CHANGED:console.warn("ag-Grid: pivoting is not supported with aligned grids. You can only use one of these features at a time in a grid.")}}))},e.prototype.processGroupOpenedEvent=function(e){var t,o=e.columnGroup;if(o){var n=o.getGroupId();t=this.columnController.getOriginalColumnGroup(n)}o&&!t||(this.logger.log("onColumnEvent-> processing "+e+" expanded = "+o.isExpanded()),this.columnController.setColumnGroupOpened(t,o.isExpanded(),"alignedGridChanged"))},e.prototype.processColumnEvent=function(e){var t,o=this,n=e.column;if(n&&(t=this.columnController.getPrimaryColumn(n.getColId())),!n||t){var r=this.getColumnIds(e),i=this.getMasterColumns(e);switch(e.type){case u.Events.EVENT_COLUMN_MOVED:var s=e;this.logger.log("onColumnEvent-> processing "+e.type+" toIndex = "+s.toIndex),this.columnController.moveColumns(r,s.toIndex,"alignedGridChanged");break;case u.Events.EVENT_COLUMN_VISIBLE:var a=e;this.logger.log("onColumnEvent-> processing "+e.type+" visible = "+a.visible),this.columnController.setColumnsVisible(r,a.visible,"alignedGridChanged");break;case u.Events.EVENT_COLUMN_PINNED:var l=e;this.logger.log("onColumnEvent-> processing "+e.type+" pinned = "+l.pinned),this.columnController.setColumnsPinned(r,l.pinned,"alignedGridChanged");break;case u.Events.EVENT_COLUMN_RESIZED:var p=e;i.forEach((function(t){o.logger.log("onColumnEvent-> processing "+e.type+" actualWidth = "+t.getActualWidth()),o.columnController.setColumnWidth(t.getColId(),t.getActualWidth(),!1,p.finished,"alignedGridChanged")}))}var c=this.gridPanel.isVerticalScrollShowing();this.gridOptionsWrapper.getAlignedGrids().forEach((function(e){e.api.setAlwaysShowVerticalScroll(c)}))}},n([h.Autowired("gridOptionsWrapper"),r("design:type",s.GridOptionsWrapper)],e.prototype,"gridOptionsWrapper",void 0),n([h.Autowired("columnController"),r("design:type",a.ColumnController)],e.prototype,"columnController",void 0),n([h.Autowired("eventService"),r("design:type",l.EventService)],e.prototype,"eventService",void 0),n([i(0,d.Qualifier("loggerFactory")),r("design:type",Function),r("design:paramtypes",[p.LoggerFactory]),r("design:returntype",void 0)],e.prototype,"setBeans",null),n([f.PostConstruct,r("design:type",Function),r("design:paramtypes",[]),r("design:returntype",void 0)],e.prototype,"init",null),n([c.Bean("alignedGridsService")],e)}();t.AlignedGridsService=g},66099:function(e,t,o){var n,r=this&&this.__createBinding||(Object.create?function(e,t,o,n){void 0===n&&(n=o);var r=Object.getOwnPropertyDescriptor(t,o);r&&!("get"in r?!t.__esModule:r.writable||r.configurable)||(r={enumerable:!0,get:function(){return t[o]}}),Object.defineProperty(e,n,r)}:function(e,t,o,n){void 0===n&&(n=o),e[n]=t[o]}),i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),s=this&&this.__importStar||(n=function(e){return n=Object.getOwnPropertyNames||function(e){var t=[];for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[t.length]=o);return t},n(e)},function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var o=n(e),s=0;s<o.length;s++)"default"!==o[s]&&r(t,e,o[s]);return i(t,e),t});Object.defineProperty(t,"__esModule",{value:!0}),t.redactValidConnectionString=function(e,t){const o=e.clone(),n=t?.replacementString??"_credentials_",r=t?.redactUsernames??!0;if((o.username||o.password)&&r?(o.username=n,o.password=""):o.password&&(o.password=n),o.searchParams.has("authMechanismProperties")){const e=new a.CommaAndColonSeparatedRecord(o.searchParams.get("authMechanismProperties"));e.get("AWS_SESSION_TOKEN")&&(e.set("AWS_SESSION_TOKEN",n),o.searchParams.set("authMechanismProperties",e.toString()))}return o.searchParams.has("tlsCertificateKeyFilePassword")&&o.searchParams.set("tlsCertificateKeyFilePassword",n),o.searchParams.has("proxyUsername")&&r&&o.searchParams.set("proxyUsername",n),o.searchParams.has("proxyPassword")&&o.searchParams.set("proxyPassword",n),o},t.redactConnectionString=function(e,t){const o=t?.replacementString??"<credentials>",n=t?.redactUsernames??!0;let r;try{r=new a.default(e)}catch{}if(r)return t={...t,replacementString:"___credentials___"},r.redact(t).toString().replace(/___credentials___/g,o);const i=o,s=[e=>e.replace(n?/(\/\/)(.*)(@)/g:/(\/\/[^@]*:)(.*)(@)/g,`$1${i}$3`),e=>e.replace(/(AWS_SESSION_TOKEN(:|%3A))([^,&]+)/gi,`$1${i}`),e=>e.replace(/(tlsCertificateKeyFilePassword=)([^&]+)/gi,`$1${i}`),e=>n?e.replace(/(proxyUsername=)([^&]+)/gi,`$1${i}`):e,e=>e.replace(/(proxyPassword=)([^&]+)/gi,`$1${i}`)];for(const t of s)e=t(e);return e};const a=s(o(47772))},66660:function(e,t,o){var n,r=this&&this.__extends||(n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])},n(e,t)},function(e,t){function o(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(o.prototype=t.prototype,new o)}),i=this&&this.__decorate||function(e,t,o,n){var r,i=arguments.length,s=i<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,n);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,o,s):r(t,o))||s);return i>3&&s&&Object.defineProperty(t,o,s),s},s=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0});var a=o(99162),l=o(81404),p=o(51890),u=o(1659),c=o(57663),d=o(47304),h=o(69620),f=o(12427),g=o(39128),m=o(59804),y=o(42062),v=o(38830),C=o(31551),w=o(17890),_=o(33018),E=o(17201),b=o(92367),R=o(43510),S=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r(t,e),t.prototype.init=function(){var e=this;this.logger=this.loggerFactory.create("GridCore");var o=this.enterprise?t.TEMPLATE_ENTERPRISE:t.TEMPLATE_NORMAL;if(this.setTemplate(o),[this.gridApi,this.filterManager,this.rowRenderer,this.popupService].forEach((function(t){return t.registerGridCore(e)})),this.enterprise&&this.clipboardService.registerGridCore(this),this.gridOptionsWrapper.addLayoutElement(this.getGui()),this.setSideBarVisible(this.gridOptionsWrapper.isShowToolPanel()),this.eGridDiv.appendChild(this.getGui()),this.addDestroyFunc((function(){e.eGridDiv.removeChild(e.getGui())})),this.$scope){var n=this.$scope.$watch(this.quickFilterOnScope,(function(t){return e.filterManager.setQuickFilter(t)}));this.addDestroyFunc(n)}this.addRtlSupport(),this.logger.log("ready"),this.gridOptionsWrapper.addLayoutElement(this.eRootWrapperBody);var r=this.gridPanel.getGui();this.addDestroyableEventListener(r,"focusin",(function(){R._.addCssClass(r,"ag-has-focus")})),this.addDestroyableEventListener(r,"focusout",(function(e){r.contains(e.relatedTarget)||R._.removeCssClass(r,"ag-has-focus")}));var i=this.resizeObserverService.observeResize(this.eGridDiv,this.onGridSizeChanged.bind(this));this.addDestroyFunc((function(){return i()}))},t.prototype.onGridSizeChanged=function(){var e={type:_.Events.EVENT_GRID_SIZE_CHANGED,api:this.gridApi,columnApi:this.columnApi,clientWidth:this.eGridDiv.clientWidth,clientHeight:this.eGridDiv.clientHeight};this.eventService.dispatchEvent(e)},t.prototype.addRtlSupport=function(){var e=this.gridOptionsWrapper.isEnableRtl()?"ag-rtl":"ag-ltr";R._.addCssClass(this.getGui(),e)},t.prototype.getRootGui=function(){return this.getGui()},t.prototype.isSideBarVisible=function(){return!!this.sideBarComp&&this.sideBarComp.isVisible()},t.prototype.setSideBarVisible=function(e){this.sideBarComp?this.sideBarComp.setVisible(e):e&&console.warn("ag-Grid: toolPanel is only available in ag-Grid Enterprise")},t.prototype.closeToolPanel=function(){this.sideBarComp?this.sideBarComp.close():console.warn("ag-Grid: toolPanel is only available in ag-Grid Enterprise")},t.prototype.getSideBar=function(){return this.gridOptions.sideBar},t.prototype.refreshSideBar=function(){this.sideBarComp&&this.sideBarComp.refresh()},t.prototype.setSideBar=function(e){this.eRootWrapperBody.removeChild(this.sideBarComp.getGui()),this.gridOptions.sideBar=b.SideBarDefParser.parse(e),this.sideBarComp.reset(),this.eRootWrapperBody.appendChild(this.sideBarComp.getGui())},t.prototype.getOpenedToolPanel=function(){return this.sideBarComp?this.sideBarComp.openedItem():null},t.prototype.openToolPanel=function(e){this.sideBarComp?this.sideBarComp.openToolPanel(e):console.warn("ag-Grid: toolPanel is only available in ag-Grid Enterprise")},t.prototype.isToolPanelShowing=function(){return this.sideBarComp.isToolPanelShowing()},t.prototype.destroy=function(){e.prototype.destroy.call(this),this.logger.log("Grid DOM removed")},t.prototype.ensureNodeVisible=function(e,t){if(void 0===t&&(t="top"),this.doingVirtualPaging)throw new Error("Cannot use ensureNodeVisible when doing virtual paging, as we cannot check rows that are not in memory");for(var o=this.rowModel.getPageLastRow()+1,n="function"==typeof e,r=-1,i=0;i<o;i++){var s=this.rowModel.getRow(i);if(n){if(e(s)){r=i;break}}else if(e===s||e===s.data){r=i;break}}r>=0&&this.gridPanel.ensureIndexVisible(r,t)},t.TEMPLATE_NORMAL='<div class="ag-root-wrapper">\n <div class="ag-root-wrapper-body" ref="rootWrapperBody">\n <ag-grid-comp ref="gridPanel"></ag-grid-comp>\n </div>\n <ag-pagination></ag-pagination>\n </div>',t.TEMPLATE_ENTERPRISE='<div class="ag-root-wrapper">\n <ag-grid-header-drop-zones></ag-grid-header-drop-zones>\n <div ref="rootWrapperBody" class="ag-root-wrapper-body">\n <ag-grid-comp ref="gridPanel"></ag-grid-comp>\n <ag-side-bar ref="sideBar"></ag-side-bar>\n </div>\n <ag-status-bar ref="statusBar"></ag-status-bar>\n <ag-pagination></ag-pagination>\n <ag-watermark></ag-watermark>\n </div>',i([m.Autowired("enterprise"),s("design:type",Boolean)],t.prototype,"enterprise",void 0),i([m.Autowired("gridOptions"),s("design:type",Object)],t.prototype,"gridOptions",void 0),i([m.Autowired("gridOptionsWrapper"),s("design:type",a.GridOptionsWrapper)],t.prototype,"gridOptionsWrapper",void 0),i([m.Autowired("rowModel"),s("design:type",Object)],t.prototype,"rowModel",void 0),i([m.Autowired("frameworkFactory"),s("design:type",Object)],t.prototype,"frameworkFactory",void 0),i([m.Autowired("resizeObserverService"),s("design:type",E.ResizeObserverService)],t.prototype,"resizeObserverService",void 0),i([m.Autowired("columnController"),s("design:type",p.ColumnController)],t.prototype,"columnController",void 0),i([m.Autowired("rowRenderer"),s("design:type",u.RowRenderer)],t.prototype,"rowRenderer",void 0),i([m.Autowired("filterManager"),s("design:type",c.FilterManager)],t.prototype,"filterManager",void 0),i([m.Autowired("eventService"),s("design:type",d.EventService)],t.prototype,"eventService",void 0),i([m.Autowired("eGridDiv"),s("design:type",HTMLElement)],t.prototype,"eGridDiv",void 0),i([m.Autowired("$scope"),s("design:type",Object)],t.prototype,"$scope",void 0),i([m.Autowired("quickFilterOnScope"),s("design:type",String)],t.prototype,"quickFilterOnScope",void 0),i([m.Autowired("popupService"),s("design:type",g.PopupService)],t.prototype,"popupService",void 0),i([m.Autowired("focusedCellController"),s("design:type",y.FocusedCellController)],t.prototype,"focusedCellController",void 0),i([m.Autowired("loggerFactory"),s("design:type",f.LoggerFactory)],t.prototype,"loggerFactory",void 0),i([m.Autowired("columnApi"),s("design:type",l.ColumnApi)],t.prototype,"columnApi",void 0),i([m.Autowired("gridApi"),s("design:type",C.GridApi)],t.prototype,"gridApi",void 0),i([m.Optional("clipboardService"),s("design:type",Object)],t.prototype,"clipboardService",void 0),i([w.RefSelector("gridPanel"),s("design:type",h.GridPanel)],t.prototype,"gridPanel",void 0),i([w.RefSelector("sideBar"),s("design:type",Object)],t.prototype,"sideBarComp",void 0),i([w.RefSelector("rootWrapperBody"),s("design:type",HTMLElement)],t.prototype,"eRootWrapperBody",void 0),i([m.PostConstruct,s("design:type",Function),s("design:paramtypes",[]),s("design:returntype",void 0)],t.prototype,"init",null),t}(v.Component);t.GridCore=S},66895:(e,t,o)=>{Object.defineProperty(t,"__esModule",{value:!0});var n=o(44494),r=o(21559),i=o(43510),s=function(){function e(e,t){this.rowIndex=e,this.floating=i._.makeNull(t)}return e.prototype.isFloatingTop=function(){return this.floating===n.Constants.PINNED_TOP},e.prototype.isFloatingBottom=function(){return this.floating===n.Constants.PINNED_BOTTOM},e.prototype.isNotFloating=function(){return!this.isFloatingBottom()&&!this.isFloatingTop()},e.prototype.equals=function(e){return this.rowIndex===e.rowIndex&&this.floating===e.floating},e.prototype.toString=function(){return"rowIndex = "+this.rowIndex+", floating = "+this.floating},e.prototype.getGridCell=function(e){var t={rowIndex:this.rowIndex,floating:this.floating,column:e};return new r.GridCell(t)},e.prototype.before=function(e){var t=e.floating;switch(this.floating){case n.Constants.PINNED_TOP:if(t!==n.Constants.PINNED_TOP)return!0;break;case n.Constants.PINNED_BOTTOM:if(t!==n.Constants.PINNED_BOTTOM)return!1;break;default:if(i._.exists(t))return t!==n.Constants.PINNED_TOP}return this.rowIndex<e.rowIndex},e}();t.GridRow=s},67469:function(e,t,o){var n=this&&this.__decorate||function(e,t,o,n){var r,i=arguments.length,s=i<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,n);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,o,s):r(t,o))||s);return i>3&&s&&Object.defineProperty(t,o,s),s},r=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0});var i=o(1659),s=o(59804),a=o(99162),l=o(17722),p=function(){function e(){}return e.prototype.registerGridComp=function(e){this.gridPanel=e},e.prototype.registerHeaderRootComp=function(e){this.headerRootComp=e},e.prototype.getPreferredWidthForColumn=function(e){var t=this.getHeaderCellForColumn(e);if(!t)return-1;var o=document.createElement("span");o.style.position="fixed";var n=this.gridPanel.getCenterContainer();n.appendChild(o),this.putRowCellsIntoDummyContainer(e,o),this.cloneItemIntoDummy(t,o);var r=o.offsetWidth;return n.removeChild(o),r+this.gridOptionsWrapper.getAutoSizePadding()},e.prototype.getHeaderCellForColumn=function(e){var t=null;return this.headerRootComp.forEachHeaderElement((function(o){if(o instanceof l.HeaderWrapperComp){var n=o;n.getColumn()===e&&(t=n)}})),t?t.getGui():null},e.prototype.putRowCellsIntoDummyContainer=function(e,t){var o=this;this.rowRenderer.getAllCellsForColumn(e).forEach((function(e){return o.cloneItemIntoDummy(e,t)}))},e.prototype.cloneItemIntoDummy=function(e,t){var o=e.cloneNode(!0);o.style.width="",o.style.position="static",o.style.left="";var n=document.createElement("div");n.style.display="table-row",n.appendChild(o),t.appendChild(n)},n([s.Autowired("rowRenderer"),r("design:type",i.RowRenderer)],e.prototype,"rowRenderer",void 0),n([s.Autowired("gridOptionsWrapper"),r("design:type",a.GridOptionsWrapper)],e.prototype,"gridOptionsWrapper",void 0),n([s.Bean("autoWidthCalculator")],e)}();t.AutoWidthCalculator=p},68446:(e,t,o)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.CommaAndColonSeparatedRecord=t.ConnectionString=t.redactConnectionString=void 0;const n=o(21655),r=o(30149);Object.defineProperty(t,"redactConnectionString",{enumerable:!0,get:function(){return r.redactConnectionString}});const i="__this_is_a_placeholder__",s=/^(?<protocol>[^/]+):\/\/(?:(?<username>[^:@]*)(?::(?<password>[^@]*))?@)?(?<hosts>(?!:)[^/?@]*)(?<rest>.*)/;class a extends Map{delete(e){return super.delete(this._normalizeKey(e))}get(e){return super.get(this._normalizeKey(e))}has(e){return super.has(this._normalizeKey(e))}set(e,t){return super.set(this._normalizeKey(e),t)}_normalizeKey(e){e=`${e}`;for(const t of this.keys())if(t.toLowerCase()===e.toLowerCase()){e=t;break}return e}}class l extends n.URL{}class p extends Error{get name(){return"MongoParseError"}}class u extends l{_hosts;constructor(e,t={}){const{looseValidation:o}=t;if(!o&&!(n=e).startsWith("mongodb://")&&!n.startsWith("mongodb+srv://"))throw new p('Invalid scheme, expected connection string to start with "mongodb://" or "mongodb+srv://"');var n;const r=e.match(s);if(!r)throw new p("Invalid connection string");const{protocol:l,username:c,password:d,hosts:h,rest:f}=r.groups??{};if(!o){if(!l||!h)throw new p("Protocol and host list are required in the uri");try{decodeURIComponent(c??""),decodeURIComponent(d??"")}catch(e){throw new p(e.message)}const t=/[:/?#[\]@]/gi;if(c?.match(t))throw new p(`Username contains unescaped characters ${c}`);if(!c||!d){const t=e.replace(`${l}://`,"");if(t.startsWith("@")||t.startsWith(":"))throw new p("URI contained empty userinfo section")}if(d?.match(t))throw new p("Password contains unescaped characters");if(f?.match(/^[^/?]*@/))throw new p("Invalid connection string")}let g="";"string"==typeof c&&(g+=c),"string"==typeof d&&(g+=`:${d}`),g&&(g+="@");try{super(`${l.toLowerCase()}://${g}${i}${f}`)}catch(n){throw o&&new u(e,{...t,looseValidation:!1}),"string"==typeof n.message&&(n.message=n.message.replace(i,h)),n}if(this._hosts=h.split(","),!o){if(this.isSRV&&1!==this.hosts.length)throw new p("mongodb+srv URI cannot have multiple service names");if(this.isSRV&&this.hosts.some((e=>e.includes(":"))))throw new p("mongodb+srv URI cannot have port number")}var m;this.pathname||(this.pathname="/"),Object.setPrototypeOf(this.searchParams,(m=this.searchParams.constructor,class extends m{append(e,t){return super.append(this._normalizeKey(e),t)}delete(e){return super.delete(this._normalizeKey(e))}get(e){return super.get(this._normalizeKey(e))}getAll(e){return super.getAll(this._normalizeKey(e))}has(e){return super.has(this._normalizeKey(e))}set(e,t){return super.set(this._normalizeKey(e),t)}keys(){return super.keys()}values(){return super.values()}entries(){return super.entries()}[Symbol.iterator](){return super[Symbol.iterator]()}_normalizeKey(e){return a.prototype._normalizeKey.call(this,e)}}).prototype)}get host(){return i}set host(e){throw new Error("No single host for connection string")}get hostname(){return i}set hostname(e){throw new Error("No single host for connection string")}get port(){return""}set port(e){throw new Error("No single host for connection string")}get href(){return this.toString()}set href(e){throw new Error("Cannot set href for connection strings")}get isSRV(){return this.protocol.includes("srv")}get hosts(){return this._hosts}set hosts(e){this._hosts=e}toString(){return super.toString().replace(i,this.hosts.join(","))}clone(){return new u(this.toString(),{looseValidation:!0})}redact(e){return(0,r.redactValidConnectionString)(this,e)}typedSearchParams(){return this.searchParams}[Symbol.for("nodejs.util.inspect.custom")](){const{href:e,origin:t,protocol:o,username:n,password:r,hosts:i,pathname:s,search:a,searchParams:l,hash:p}=this;return{href:e,origin:t,protocol:o,username:n,password:r,hosts:i,pathname:s,search:a,searchParams:l,hash:p}}}t.ConnectionString=u,t.CommaAndColonSeparatedRecord=class extends a{constructor(e){super();for(const t of(e??"").split(",")){if(!t)continue;const e=t.indexOf(":");-1===e?this.set(t,""):this.set(t.slice(0,e),t.slice(e+1))}}toString(){return[...this].map((e=>e.join(":"))).join(",")}},t.default=u},68817:function(e,t,o){var n,r=this&&this.__extends||(n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])},n(e,t)},function(e,t){function o(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(o.prototype=t.prototype,new o)}),i=this&&this.__decorate||function(e,t,o,n){var r,i=arguments.length,s=i<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,n);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,o,s):r(t,o))||s);return i>3&&s&&Object.defineProperty(t,o,s),s},s=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0});var a=o(38830),l=o(59804),p=o(77171),u=o(13161),c=o(64339),d=o(33669),h=o(43510),f=function(e){function t(t,o,n,r){var i=e.call(this,'<div class="ag-row-drag"></div>')||this;return i.visibleMode=null,i.rowNode=t,i.column=o,i.cellValue=n,i.beans=r,i}return r(t,e),t.prototype.postConstruct=function(){this.getGui().appendChild(h._.createIconNoSpan("rowDrag",this.beans.gridOptionsWrapper,null)),this.addDragSource(),this.checkCompatibility(),this.beans.gridOptionsWrapper.isRowDragManaged()?this.addFeature(this.beans.context,new m(this,this.beans,this.rowNode,this.column)):this.addFeature(this.beans.context,new g(this,this.beans,this.rowNode,this.column))},t.prototype.checkCompatibility=function(){var e=this.beans.gridOptionsWrapper.isRowDragManaged();this.beans.gridOptionsWrapper.isTreeData()&&e&&h._.doOnce((function(){return console.warn("ag-Grid: If using row drag with tree data, you cannot have rowDragManaged=true")}),"RowDragComp.managedAndTreeData")},t.prototype.addDragSource=function(){var e=this,t={rowNode:this.rowNode},o={type:u.DragSourceType.RowDrag,eElement:this.getGui(),dragItemName:this.cellValue,dragItemCallback:function(){return t},dragStartPixels:0};this.beans.dragAndDropService.addDragSource(o,!0),this.addDestroyFunc((function(){return e.beans.dragAndDropService.removeDragSource(o)}))},t.prototype.getVisibleMode=function(){return this.visibleMode},t.prototype.setVisibleMode=function(e){this.visibleMode=e},i([l.PostConstruct,s("design:type",Function),s("design:paramtypes",[]),s("design:returntype",void 0)],t.prototype,"postConstruct",null),t}(a.Component);t.RowDragComp=f;var g=function(e){function t(t,o,n,r){var i=e.call(this)||this;return i.parent=t,i.beans=o,i.column=r,i.rowNode=n,i}return r(t,e),t.prototype.postConstruct=function(){this.addDestroyableEventListener(this.beans.gridOptionsWrapper,"suppressRowDrag",this.onSuppressRowDrag.bind(this)),this.addDestroyableEventListener(this.rowNode,p.RowNode.EVENT_DATA_CHANGED,this.workOutVisibility.bind(this)),this.addDestroyableEventListener(this.rowNode,p.RowNode.EVENT_CELL_CHANGED,this.workOutVisibility.bind(this)),this.workOutVisibility()},t.prototype.onSuppressRowDrag=function(){this.workOutVisibility()},t.prototype.workOutVisibility=function(){if(this.beans.gridOptionsWrapper.isSuppressRowDrag())this.parent.setVisibleMode("display"),this.parent.setVisible(!1,"display");else{var e=this.column.isRowDrag(this.rowNode);if(!this.parent.getVisibleMode()){var t=h._.isFunction(this.column.getColDef().rowDrag);this.parent.setVisibleMode(t?"visibility":"display")}this.parent.setVisible(e,this.parent.getVisibleMode())}},i([l.PostConstruct,s("design:type",Function),s("design:paramtypes",[]),s("design:returntype",void 0)],t.prototype,"postConstruct",null),t}(d.BeanStub),m=function(e){function t(t,o,n,r){var i=e.call(this)||this;return i.parent=t,i.beans=o,i.column=r,i.rowNode=n,i}return r(t,e),t.prototype.postConstruct=function(){this.addDestroyableEventListener(this.beans.eventService,c.Events.EVENT_SORT_CHANGED,this.onSortChanged.bind(this)),this.addDestroyableEventListener(this.beans.eventService,c.Events.EVENT_FILTER_CHANGED,this.onFilterChanged.bind(this)),this.addDestroyableEventListener(this.beans.eventService,c.Events.EVENT_COLUMN_ROW_GROUP_CHANGED,this.onRowGroupChanged.bind(this)),this.addDestroyableEventListener(this.rowNode,p.RowNode.EVENT_DATA_CHANGED,this.workOutVisibility.bind(this)),this.addDestroyableEventListener(this.rowNode,p.RowNode.EVENT_CELL_CHANGED,this.workOutVisibility.bind(this)),this.addDestroyableEventListener(this.beans.gridOptionsWrapper,"suppressRowDrag",this.onSuppressRowDrag.bind(this)),this.updateSortActive(),this.updateFilterActive(),this.updateRowGroupActive(),this.workOutVisibility()},t.prototype.updateRowGroupActive=function(){var e=this.beans.columnController.getRowGroupColumns();this.rowGroupActive=!h._.missingOrEmpty(e)},t.prototype.onRowGroupChanged=function(){this.updateRowGroupActive(),this.workOutVisibility()},t.prototype.updateSortActive=function(){var e=this.beans.sortController.getSortModel();this.sortActive=!h._.missingOrEmpty(e)},t.prototype.onSortChanged=function(){this.updateSortActive(),this.workOutVisibility()},t.prototype.updateFilterActive=function(){this.filterActive=this.beans.filterManager.isAnyFilterPresent()},t.prototype.onFilterChanged=function(){this.updateFilterActive(),this.workOutVisibility()},t.prototype.onSuppressRowDrag=function(){this.workOutVisibility()},t.prototype.workOutVisibility=function(){var e=this.sortActive||this.filterActive||this.rowGroupActive,t=this.beans.gridOptionsWrapper.isSuppressRowDrag();if(e||t)this.parent.setVisibleMode("display"),this.parent.setVisible(!1,"display");else{var o=this.column.isRowDrag(this.rowNode);if(!this.parent.getVisibleMode()){var n=h._.isFunction(this.column.getColDef().rowDrag);this.parent.setVisibleMode(n?"visibility":"display")}this.parent.setVisible(o,this.parent.getVisibleMode())}},i([l.PostConstruct,s("design:type",Function),s("design:paramtypes",[]),s("design:returntype",void 0)],t.prototype,"postConstruct",null),t}(d.BeanStub)},69195:function(e,t,o){var n=this&&this.__decorate||function(e,t,o,n){var r,i=arguments.length,s=i<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,n);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,o,s):r(t,o))||s);return i>3&&s&&Object.defineProperty(t,o,s),s},r=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0});var i=o(99162),s=o(59804),a=o(13161),l=o(51890),p=o(47304),u=o(33018),c=o(17307),d=o(71527),h=o(71569),f=o(61260),g=o(43510),m=function(){function e(e,t,o){this.headerRowComps=[],this.eContainer=e,this.pinned=o,this.eViewport=t}return e.prototype.registerGridComp=function(e){this.setupDragAndDrop(e)},e.prototype.forEachHeaderElement=function(e){this.headerRowComps.forEach((function(t){return t.forEachHeaderElement(e)}))},e.prototype.init=function(){this.scrollWidth=this.gridOptionsWrapper.getScrollbarWidth(),this.eventService.addEventListener(u.Events.EVENT_COLUMN_VALUE_CHANGED,this.onColumnValueChanged.bind(this)),this.eventService.addEventListener(u.Events.EVENT_COLUMN_ROW_GROUP_CHANGED,this.onColumnRowGroupChanged.bind(this)),this.eventService.addEventListener(u.Events.EVENT_GRID_COLUMNS_CHANGED,this.onGridColumnsChanged.bind(this)),this.eventService.addEventListener(u.Events.EVENT_SCROLL_VISIBILITY_CHANGED,this.onScrollVisibilityChanged.bind(this)),this.eventService.addEventListener(u.Events.EVENT_COLUMN_RESIZED,this.onColumnResized.bind(this)),this.eventService.addEventListener(u.Events.EVENT_DISPLAYED_COLUMNS_CHANGED,this.onDisplayedColumnsChanged.bind(this))},e.prototype.onColumnRowGroupChanged=function(){this.onGridColumnsChanged()},e.prototype.onColumnValueChanged=function(){this.onGridColumnsChanged()},e.prototype.onColumnResized=function(){this.setWidthOfPinnedContainer()},e.prototype.onDisplayedColumnsChanged=function(){this.setWidthOfPinnedContainer()},e.prototype.onScrollVisibilityChanged=function(){this.setWidthOfPinnedContainer()},e.prototype.setWidthOfPinnedContainer=function(){var e=this.pinned===h.Column.PINNED_LEFT,t=this.pinned===h.Column.PINNED_RIGHT,o=this.columnController,n=this.gridOptionsWrapper.isEnableRtl();if(e||t){var r=o[e?"getPinnedLeftContainerWidth":"getPinnedRightContainerWidth"]();this.scrollVisibleService.isVerticalScrollShowing()&&(n&&e||!n&&t)&&(r+=this.scrollWidth),g._.setFixedWidth(this.eContainer,r)}},e.prototype.destroy=function(){this.removeHeaderRowComps()},e.prototype.onGridColumnsChanged=function(){this.removeAndCreateAllRowComps()},e.prototype.removeAndCreateAllRowComps=function(){this.removeHeaderRowComps(),this.createHeaderRowComps()},e.prototype.refresh=function(){this.removeAndCreateAllRowComps()},e.prototype.setupDragAndDrop=function(e){var t=this.eViewport?this.eViewport:this.eContainer,o=new d.BodyDropTarget(this.pinned,t);this.context.wireBean(o),o.registerGridComp(e)},e.prototype.removeHeaderRowComps=function(){this.headerRowComps.forEach((function(e){e.destroy()})),this.headerRowComps.length=0,g._.clearElement(this.eContainer)},e.prototype.createHeaderRowComps=function(){for(var e=this.columnController.getHeaderRowCount(),t=0;t<e;t++){var o=t!==e-1?c.HeaderRowType.COLUMN_GROUP:c.HeaderRowType.COLUMN,n=new c.HeaderRowComp(t,o,this.pinned,this.dropTarget);this.context.wireBean(n),this.headerRowComps.push(n),this.eContainer.appendChild(n.getGui())}this.gridOptionsWrapper.isFloatingFilter()&&!this.columnController.isPivotMode()&&(n=new c.HeaderRowComp(e,c.HeaderRowType.FLOATING_FILTER,this.pinned,this.dropTarget),this.context.wireBean(n),this.headerRowComps.push(n),this.eContainer.appendChild(n.getGui()))},n([s.Autowired("gridOptionsWrapper"),r("design:type",i.GridOptionsWrapper)],e.prototype,"gridOptionsWrapper",void 0),n([s.Autowired("context"),r("design:type",s.Context)],e.prototype,"context",void 0),n([s.Autowired("$scope"),r("design:type",Object)],e.prototype,"$scope",void 0),n([s.Autowired("dragAndDropService"),r("design:type",a.DragAndDropService)],e.prototype,"dragAndDropService",void 0),n([s.Autowired("columnController"),r("design:type",l.ColumnController)],e.prototype,"columnController",void 0),n([s.Autowired("eventService"),r("design:type",p.EventService)],e.prototype,"eventService",void 0),n([s.Autowired("scrollVisibleService"),r("design:type",f.ScrollVisibleService)],e.prototype,"scrollVisibleService",void 0),n([s.PostConstruct,r("design:type",Function),r("design:paramtypes",[]),r("design:returntype",void 0)],e.prototype,"init",null),e}();t.HeaderContainer=m},69620:function(e,t,o){var n,r=this&&this.__extends||(n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])},n(e,t)},function(e,t){function o(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(o.prototype=t.prototype,new o)}),i=this&&this.__decorate||function(e,t,o,n){var r,i=arguments.length,s=i<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,n);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,o,s):r(t,o))||s);return i>3&&s&&Object.defineProperty(t,o,s),s},s=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0});var a=o(99162),l=o(51890),p=o(81404),u=o(1659),c=o(59804),d=o(47304),h=o(33018),f=o(56579),g=o(44494),m=o(36354),y=o(42062),v=o(61260),C=o(46158),w=o(72738),_=o(83531),E=o(65499),b=o(5988),R=o(31551),S=o(15558),O=o(16159),P=o(5747),A=o(3978),T=o(55758),D=o(13161),N=o(35312),I=o(43980),x=o(62946),F=o(38830),L=o(85774),M=o(91901),k=o(67469),G=o(71627),V=o(17890),j=o(72065),W=o(17201),H=o(43510),B=function(e){function t(){var t=e.call(this,'<div class="ag-root ag-unselectable" role="grid" unselectable="on">\n <ag-header-root ref="headerRoot" unselectable="on"></ag-header-root>\n <div class="ag-floating-top" ref="eTop" role="presentation" unselectable="on">\n <div class="ag-pinned-left-floating-top" ref="eLeftTop" role="presentation" unselectable="on"></div>\n <div class="ag-floating-top-viewport" ref="eTopViewport" role="presentation" unselectable="on">\n <div class="ag-floating-top-container" ref="eTopContainer" role="presentation" unselectable="on"></div>\n </div>\n <div class="ag-pinned-right-floating-top" ref="eRightTop" role="presentation" unselectable="on"></div>\n <div class="ag-floating-top-full-width-container" ref="eTopFullWidthContainer" role="presentation" unselectable="on"></div>\n </div>\n <div class="ag-body-viewport" ref="eBodyViewport" role="presentation" unselectable="on">\n <div class="ag-pinned-left-cols-container" ref="eLeftContainer" role="presentation" unselectable="on"></div>\n <div class="ag-center-cols-clipper" ref="eCenterColsClipper">\n <div class="ag-center-cols-viewport" ref="eCenterViewport" role="presentation" unselectable="on">\n <div class="ag-center-cols-container" ref="eCenterContainer" role="presentation" unselectable="on"></div>\n </div>\n </div>\n <div class="ag-pinned-right-cols-container" ref="eRightContainer" role="presentation" unselectable="on"></div>\n <div class="ag-full-width-container" ref="eFullWidthContainer" role="presentation" unselectable="on"></div>\n </div>\n <div class="ag-floating-bottom" ref="eBottom" role="presentation" unselectable="on">\n <div class="ag-pinned-left-floating-bottom" ref="eLeftBottom" role="presentation" unselectable="on"></div>\n <div class="ag-floating-bottom-viewport" ref="eBottomViewport" role="presentation" unselectable="on">\n <div class="ag-floating-bottom-container" ref="eBottomContainer" role="presentation" unselectable="on"></div>\n </div>\n <div class="ag-pinned-right-floating-bottom" ref="eRightBottom" role="presentation" unselectable="on"></div>\n <div class="ag-floating-bottom-full-width-container" ref="eBottomFullWidthContainer" role="presentation" unselectable="on"></div>\n </div>\n <div class="ag-body-horizontal-scroll" ref="eHorizontalScrollBody">\n <div class="ag-horizontal-left-spacer" ref="eHorizontalLeftSpacer"></div>\n <div class="ag-body-horizontal-scroll-viewport" ref="eBodyHorizontalScrollViewport">\n <div class="ag-body-horizontal-scroll-container" ref="eBodyHorizontalScrollContainer"></div>\n </div>\n <div class="ag-horizontal-right-spacer" ref="eHorizontalRightSpacer"></div>\n </div>\n <ag-overlay-wrapper ref="overlayWrapper"></ag-overlay-wrapper>\n </div>')||this;return t.scrollLeft=-1,t.scrollTop=-1,t.resetLastHorizontalScrollElementDebounce=H._.debounce(t.resetLastHorizontalScrollElement.bind(t),500),t}return r(t,e),t.prototype.getVScrollPosition=function(){return{top:this.eBodyViewport.scrollTop,bottom:this.eBodyViewport.scrollTop+this.eBodyViewport.offsetHeight}},t.prototype.getHScrollPosition=function(){return{left:this.eCenterViewport.scrollLeft,right:this.eCenterViewport.scrollLeft+this.eCenterViewport.offsetWidth}},t.prototype.onRowDataChanged=function(){this.showOrHideOverlay()},t.prototype.showOrHideOverlay=function(){var e=this.paginationProxy.isEmpty(),t=this.gridOptionsWrapper.isSuppressNoRowsOverlay();this[e&&!t?"showNoRowsOverlay":"hideOverlay"]()},t.prototype.onNewColumnsLoaded=function(){this.columnController.isReady()&&!this.paginationProxy.isEmpty()&&this.hideOverlay()},t.prototype.init=function(){var e=this;this.scrollWidth=this.gridOptionsWrapper.getScrollbarWidth(),this.enableRtl=this.gridOptionsWrapper.isEnableRtl(),this.printLayout=this.gridOptionsWrapper.getDomLayout()===g.Constants.DOM_LAYOUT_PRINT,this.gridOptionsWrapper.addLayoutElement(this.getGui()),this.gridOptionsWrapper.addLayoutElement(this.eBodyViewport),this.suppressScrollOnFloatingRow(),this.setupRowAnimationCssClass(),this.buildRowContainerComponents(),this.addEventListeners(),this.addDragListeners(),this.addScrollListener(),this.gridOptionsWrapper.isRowModelDefault()&&!this.gridOptionsWrapper.getRowData()&&this.showLoadingOverlay(),this.setCellTextSelection(this.gridOptionsWrapper.isEnableCellTextSelect()),this.setPinnedContainerSize(),this.setHeaderAndFloatingHeights(),this.disableBrowserDragging(),this.addMouseListeners(),this.addKeyboardEvents(),this.addBodyViewportListener(),this.addStopEditingWhenGridLosesFocus(),this.mockContextMenuForIPad(),this.addRowDragListener(),this.$scope&&this.addAngularApplyCheck(),this.onDisplayedColumnsWidthChanged(),this.gridApi.registerGridComp(this),this.alignedGridsService.registerGridComp(this),this.headerRootComp.registerGridComp(this),this.navigationService.registerGridComp(this),this.heightScaler.registerGridComp(this),this.autoHeightCalculator.registerGridComp(this),this.columnAnimationService.registerGridComp(this),this.autoWidthCalculator.registerGridComp(this),this.paginationAutoPageSizeService.registerGridComp(this),this.beans.registerGridComp(this),this.rowRenderer.registerGridComp(this),this.rangeController&&this.rangeController.registerGridComp(this),[this.eCenterViewport,this.eBodyViewport].forEach((function(t){var o=e.resizeObserverService.observeResize(t,e.onCenterViewportResized.bind(e));e.addDestroyFunc((function(){return o()}))}))},t.prototype.onDomLayoutChanged=function(){var e=this.gridOptionsWrapper.getDomLayout()===g.Constants.DOM_LAYOUT_PRINT;this.printLayout!==e&&(this.printLayout=e,this.setWidthsOfContainers(),this.setPinnedContainerSize())},t.prototype.onCenterViewportResized=function(){this.checkViewportAndScrolls()},t.prototype.setColumnMovingCss=function(e){this.addOrRemoveCssClass("ag-column-moving",e)},t.prototype.setCellTextSelection=function(e){void 0===e&&(e=!1),[this.eTop,this.eCenterContainer,this.eBottom].forEach((function(t){return H._.addOrRemoveCssClass(t,"ag-selectable",e)}))},t.prototype.addRowDragListener=function(){var e=new N.RowDragFeature(this.eBodyViewport,this);this.getContext().wireBean(e),this.dragAndDropService.addDropTarget(e)},t.prototype.addStopEditingWhenGridLosesFocus=function(){var e=this;if(this.gridOptionsWrapper.isStopEditingWhenGridLosesFocus()){var t=function(t){for(var o=!1,n=t.relatedTarget;H._.exists(n)&&!o;){var r=!!e.gridOptionsWrapper.getDomData(n,_.PopupEditorWrapper.DOM_KEY_POPUP_EDITOR_WRAPPER),i=e.eBodyViewport===n||e.eBottom===n||e.eTop===n;o=r||i,n=n.parentNode}o||e.rowRenderer.stopEditing()};this.addDestroyableEventListener(this.eBodyViewport,"focusout",t),this.addDestroyableEventListener(this.eTop,"focusout",t),this.addDestroyableEventListener(this.eBottom,"focusout",t)}},t.prototype.addAngularApplyCheck=function(){var e=this,t=!1,o=function(){t||(t=!0,window.setTimeout((function(){t=!1,e.$scope.$apply()}),0))};this.addDestroyableEventListener(this.eventService,h.Events.EVENT_DISPLAYED_COLUMNS_CHANGED,o),this.addDestroyableEventListener(this.eventService,h.Events.EVENT_VIRTUAL_COLUMNS_CHANGED,o)},t.prototype.disableBrowserDragging=function(){this.addGuiEventListener("dragstart",(function(e){if(e.target instanceof HTMLImageElement)return e.preventDefault(),!1}))},t.prototype.addEventListeners=function(){this.addDestroyableEventListener(this.eventService,h.Events.EVENT_DISPLAYED_COLUMNS_CHANGED,this.onDisplayedColumnsChanged.bind(this)),this.addDestroyableEventListener(this.eventService,h.Events.EVENT_DISPLAYED_COLUMNS_WIDTH_CHANGED,this.onDisplayedColumnsWidthChanged.bind(this)),this.addDestroyableEventListener(this.eventService,h.Events.EVENT_PINNED_ROW_DATA_CHANGED,this.setHeaderAndFloatingHeights.bind(this)),this.addDestroyableEventListener(this.eventService,h.Events.EVENT_ROW_DATA_CHANGED,this.onRowDataChanged.bind(this)),this.addDestroyableEventListener(this.eventService,h.Events.EVENT_ROW_DATA_UPDATED,this.onRowDataChanged.bind(this)),this.addDestroyableEventListener(this.eventService,h.Events.EVENT_NEW_COLUMNS_LOADED,this.onNewColumnsLoaded.bind(this)),this.addDestroyableEventListener(this.gridOptionsWrapper,a.GridOptionsWrapper.PROP_HEADER_HEIGHT,this.setHeaderAndFloatingHeights.bind(this)),this.addDestroyableEventListener(this.gridOptionsWrapper,a.GridOptionsWrapper.PROP_PIVOT_HEADER_HEIGHT,this.setHeaderAndFloatingHeights.bind(this)),this.addDestroyableEventListener(this.gridOptionsWrapper,a.GridOptionsWrapper.PROP_GROUP_HEADER_HEIGHT,this.setHeaderAndFloatingHeights.bind(this)),this.addDestroyableEventListener(this.gridOptionsWrapper,a.GridOptionsWrapper.PROP_PIVOT_GROUP_HEADER_HEIGHT,this.setHeaderAndFloatingHeights.bind(this)),this.addDestroyableEventListener(this.gridOptionsWrapper,a.GridOptionsWrapper.PROP_FLOATING_FILTERS_HEIGHT,this.setHeaderAndFloatingHeights.bind(this)),this.addDestroyableEventListener(this.gridOptionsWrapper,a.GridOptionsWrapper.PROP_DOM_LAYOUT,this.onDomLayoutChanged.bind(this))},t.prototype.addDragListeners=function(){var e=this;this.gridOptionsWrapper.isEnableRangeSelection()&&!H._.missing(this.rangeController)&&[this.eLeftContainer,this.eRightContainer,this.eCenterContainer,this.eTop,this.eBottom].forEach((function(t){var o={eElement:t,onDragStart:e.rangeController.onDragStart.bind(e.rangeController),onDragStop:e.rangeController.onDragStop.bind(e.rangeController),onDragging:e.rangeController.onDragging.bind(e.rangeController),skipMouseEvent:function(e){return e.shiftKey}};e.dragService.addDragSource(o),e.addDestroyFunc((function(){return e.dragService.removeDragSource(o)}))}))},t.prototype.addMouseListeners=function(){var e=this;["click","mousedown","dblclick","contextmenu","mouseover","mouseout"].forEach((function(t){var o=e.processMouseEvent.bind(e,t);e.eAllCellContainers.forEach((function(n){return e.addDestroyableEventListener(n,t,o)}))}))},t.prototype.addKeyboardEvents=function(){var e=this;["keydown","keypress"].forEach((function(t){var o=e.processKeyboardEvent.bind(e,t);e.eAllCellContainers.forEach((function(n){e.addDestroyableEventListener(n,t,o,!0)}))}))},t.prototype.addBodyViewportListener=function(){var e=this;this.addDestroyableEventListener(this.eBodyViewport,"contextmenu",(function(t){var o=H._.getTarget(t);o!==e.eBodyViewport&&o!==e.eCenterViewport||(e.onContextMenu(t,null,null,null,null),e.preventDefaultOnContextMenu(t))}))},t.prototype.getBodyClientRect=function(){if(this.eBodyViewport)return this.eBodyViewport.getBoundingClientRect()},t.prototype.getRowForEvent=function(e){for(var t=H._.getTarget(e);t;){var o=this.gridOptionsWrapper.getDomData(t,O.RowComp.DOM_DATA_KEY_RENDERED_ROW);if(o)return o;t=t.parentElement}return null},t.prototype.processKeyboardEvent=function(e,t){var o=H._.getCellCompForEvent(this.gridOptionsWrapper,t),n=o.getRenderedRow().getRowNode(),r=o.getColumn(),i=o.isEditing();if(o){if(H._.isUserSuppressingKeyboardEvent(this.gridOptionsWrapper,t,n,r,i))t.preventDefault();else switch(e){case"keydown":this.navigationService.handlePageScrollingKey(t)||o.onKeyDown(t),this.doClipboardOperations(t,o);break;case"keypress":o.onKeyPress(t)}if("keydown"===e){var s=o.createEvent(t,h.Events.EVENT_CELL_KEY_DOWN);this.beans.eventService.dispatchEvent(s)}if("keypress"===e){var a=o.createEvent(t,h.Events.EVENT_CELL_KEY_PRESS);this.beans.eventService.dispatchEvent(a)}}},t.prototype.doClipboardOperations=function(e,t){if((e.ctrlKey||e.metaKey)&&!t.isEditing()&&this.mouseEventService.isEventFromThisGrid(e))switch(e.which){case g.Constants.KEY_A:return this.onCtrlAndA(e);case g.Constants.KEY_C:return this.onCtrlAndC(e);case g.Constants.KEY_V:return this.onCtrlAndV();case g.Constants.KEY_D:return this.onCtrlAndD(e)}},t.prototype.scrollToTop=function(){this.eBodyViewport.scrollTop=0},t.prototype.processMouseEvent=function(e,t){if(this.mouseEventService.isEventFromThisGrid(t)&&!H._.isStopPropagationForAgGrid(t)){var o=this.getRowForEvent(t),n=this.mouseEventService.getRenderedCellForEvent(t);"contextmenu"===e?this.handleContextMenuMouseEvent(t,null,o,n):(n&&n.onMouseEvent(e,t),o&&o.onMouseEvent(e,t)),this.preventDefaultOnContextMenu(t)}},t.prototype.mockContextMenuForIPad=function(){var e=this;H._.isUserAgentIPad()&&this.eAllCellContainers.forEach((function(t){var o=new T.TouchListener(t);e.addDestroyableEventListener(o,T.TouchListener.EVENT_LONG_TAP,(function(t){var o=e.getRowForEvent(t.touchEvent),n=e.mouseEventService.getRenderedCellForEvent(t.touchEvent);e.handleContextMenuMouseEvent(null,t.touchEvent,o,n)})),e.addDestroyFunc((function(){return o.destroy()}))}))},t.prototype.handleContextMenuMouseEvent=function(e,t,o,n){var r=o?o.getRowNode():null,i=n?n.getColumn():null,s=null;if(i){var a=e||t;n.dispatchCellContextMenuEvent(a),s=this.valueService.getValue(i,r)}this.onContextMenu(e,t,r,i,s)},t.prototype.onContextMenu=function(e,t,o,n,r){if((this.gridOptionsWrapper.isAllowContextMenuWithControlKey()||!e||!e.ctrlKey&&!e.metaKey)&&this.contextMenuFactory&&!this.gridOptionsWrapper.isSuppressContextMenu()){var i=e||t.touches[0];this.contextMenuFactory.showMenu(o,n,r,i),(e||t).preventDefault()}},t.prototype.preventDefaultOnContextMenu=function(e){this.gridOptionsWrapper.isSuppressMiddleClickScrolls()&&2===e.which&&e.preventDefault()},t.prototype.onCtrlAndA=function(e){var t=this,o=t.columnController,n=t.pinnedRowModel,r=t.paginationProxy,i=t.rangeController,s=g.Constants.PINNED_BOTTOM,a=g.Constants.PINNED_TOP;if(i&&r.isRowsToRender()){var l=[n.isEmpty(a),n.isEmpty(s)],p=l[0]?null:a,u=void 0,c=void 0;l[1]?(u=null,c=this.paginationProxy.getTotalRowCount()-1):(u=s,c=n.getPinnedBottomRowData().length-1);var d=o.getAllDisplayedColumns();if(H._.missingOrEmpty(d))return;i.setRange({rowStart:0,floatingStart:p,rowEnd:c,floatingEnd:u,columnStart:d[0],columnEnd:d[d.length-1]})}e.preventDefault()},t.prototype.onCtrlAndC=function(e){if(this.clipboardService&&!this.gridOptionsWrapper.isEnableCellTextSelection()){var t=this.focusedCellController.getFocusedCell();this.clipboardService.copyToClipboard(),e.preventDefault(),t&&this.focusedCellController.setFocusedCell(t.rowIndex,t.column,t.floating,!0)}},t.prototype.onCtrlAndV=function(){this.enterprise&&!this.gridOptionsWrapper.isSuppressClipboardPaste()&&this.clipboardService.pasteFromClipboard()},t.prototype.onCtrlAndD=function(e){this.enterprise&&(this.clipboardService.copyRangeDown(),e.preventDefault())},t.prototype.ensureIndexVisible=function(e,t){if(!this.printLayout){var o=this.paginationProxy.getTotalRowCount();if("number"!=typeof e||e<0||e>=o)console.warn("invalid row index for ensureIndexVisible: "+e);else{this.paginationProxy.goToPageWithIndex(e);var n,r=this.paginationProxy.getRow(e);do{var i=r.rowTop,s=r.rowHeight,a=this.paginationProxy.getPixelOffset(),l=r.rowTop-a,p=l+r.rowHeight,u=this.getVScrollPosition(),c=this.heightScaler.getOffset(),d=u.top+c,h=u.bottom+c,f=h-d,g=this.heightScaler.getScrollPositionForPixel(l),m=this.heightScaler.getScrollPositionForPixel(p-f),y=Math.min((g+m)/2,l),v=null;"top"===t?v=g:"bottom"===t?v=m:"middle"===t?v=y:d>l?v=g:h<p&&(v=m),null!==v&&(this.eBodyViewport.scrollTop=v,this.rowRenderer.redrawAfterScroll()),n=i!==r.rowTop||s!==r.rowHeight}while(n);this.animationFrameService.flushAllFrames()}}},t.prototype.getCenterWidth=function(){return this.eCenterViewport.clientWidth},t.prototype.isVerticalScrollShowing=function(){var e=this.gridOptionsWrapper.isAlwaysShowVerticalScroll();return H._.addOrRemoveCssClass(this.eBodyViewport,"ag-force-vertical-scroll",e),e||H._.isVerticalScrollShowing(this.eBodyViewport)},t.prototype.isHorizontalScrollShowing=function(){return H._.isHorizontalScrollShowing(this.eCenterViewport)},t.prototype.checkViewportAndScrolls=function(){this.updateScrollVisibleService(),this.checkBodyHeight(),this.onHorizontalViewportChanged(),this.setPinnedContainerSize()},t.prototype.updateScrollVisibleService=function(){this.updateScrollVisibleServiceImpl(),setTimeout(this.updateScrollVisibleServiceImpl.bind(this),500)},t.prototype.updateScrollVisibleServiceImpl=function(){var e={horizontalScrollShowing:!1,verticalScrollShowing:!1};e.verticalScrollShowing=this.isVerticalScrollShowing(),e.horizontalScrollShowing=this.isHorizontalScrollShowing(),this.scrollVisibleService.setScrollsVisible(e),this.setHorizontalScrollVisible(e.horizontalScrollShowing),this.setVerticalScrollPaddingVisible(e.verticalScrollShowing)},t.prototype.setHorizontalScrollVisible=function(e){var t=this.gridOptionsWrapper.isSuppressHorizontalScroll(),o=e&&this.gridOptionsWrapper.getScrollbarWidth()||0,n=t?0:o,r=H._.isBrowserIE()&&e;this.eCenterViewport.style.height="calc(100% + "+o+"px)",H._.setFixedHeight(this.eHorizontalScrollBody,n),H._.setFixedHeight(this.eBodyHorizontalScrollViewport,n+(r?1:0)),r&&(this.eBodyHorizontalScrollViewport.style.bottom="1px"),H._.setFixedHeight(this.eBodyHorizontalScrollContainer,n)},t.prototype.setVerticalScrollPaddingVisible=function(e){var t=e?"scroll":"hidden";this.eTop.style.overflowY=this.eBottom.style.overflowY=t,this.setFakeHScrollSpacerWidths()},t.prototype.ensureColumnVisible=function(e){var t=this.columnController.getGridColumn(e);if(t)if(t.isPinned())console.warn("calling ensureIndexVisible on a "+t.getPinned()+" pinned column doesn't make sense for column "+t.getColId());else if(this.columnController.isColumnDisplayed(t)){var o,n,r=t.getLeft(),i=r+t.getActualWidth(),s=this.eCenterViewport.clientWidth,a=this.getCenterViewportScrollLeft(),l=this.columnController.getBodyContainerWidth();this.enableRtl?(o=l-a-s,n=l-a):(o=a,n=s+a);var p=o>r,u=n<i,c=s<t.getActualWidth(),d=p||c,h=u,f=this.getCenterViewportScrollLeft();(d||h)&&(f=this.enableRtl?d?l-s-r:l-i:d?r:i-s,this.setCenterViewportScrollLeft(f)),this.onHorizontalViewportChanged(),this.animationFrameService.flushAllFrames()}else console.warn("column is not currently visible")},t.prototype.showLoadingOverlay=function(){this.gridOptionsWrapper.isSuppressLoadingOverlay()||this.overlayWrapper.showLoadingOverlay()},t.prototype.showNoRowsOverlay=function(){this.gridOptionsWrapper.isSuppressNoRowsOverlay()||this.overlayWrapper.showNoRowsOverlay()},t.prototype.hideOverlay=function(){this.overlayWrapper.hideOverlay()},t.prototype.sizeColumnsToFit=function(e){var t=this,o=this.eBodyViewport.clientWidth;o>0?this.columnController.sizeColumnsToFit(o,"sizeColumnsToFit"):void 0===e?window.setTimeout((function(){t.sizeColumnsToFit(100)}),0):100===e?window.setTimeout((function(){t.sizeColumnsToFit(500)}),100):500===e?window.setTimeout((function(){t.sizeColumnsToFit(-1)}),500):console.warn("ag-Grid: tried to call sizeColumnsToFit() but the grid is coming back with zero width, maybe the grid is not visible yet on the screen?")},t.prototype.getCenterContainer=function(){return this.eCenterContainer},t.prototype.getDropTargetBodyContainers=function(){return[this.eCenterViewport,this.eTopViewport,this.eBottomViewport]},t.prototype.getDropTargetLeftContainers=function(){return[this.eLeftContainer,this.eLeftBottom,this.eLeftTop]},t.prototype.getDropTargetRightContainers=function(){return[this.eRightContainer,this.eRightBottom,this.eRightTop]},t.prototype.buildRowContainerComponents=function(){var e=this;this.eAllCellContainers=[this.eLeftContainer,this.eRightContainer,this.eCenterContainer,this.eTop,this.eBottom,this.eFullWidthContainer],this.rowContainerComponents={body:new C.RowContainerComponent({eContainer:this.eCenterContainer,eWrapper:this.eCenterColsClipper,eViewport:this.eBodyViewport}),fullWidth:new C.RowContainerComponent({eContainer:this.eFullWidthContainer}),pinnedLeft:new C.RowContainerComponent({eContainer:this.eLeftContainer}),pinnedRight:new C.RowContainerComponent({eContainer:this.eRightContainer}),floatingTop:new C.RowContainerComponent({eContainer:this.eTopContainer}),floatingTopPinnedLeft:new C.RowContainerComponent({eContainer:this.eLeftTop}),floatingTopPinnedRight:new C.RowContainerComponent({eContainer:this.eRightTop}),floatingTopFullWidth:new C.RowContainerComponent({eContainer:this.eTopFullWidthContainer,hideWhenNoChildren:!0}),floatingBottom:new C.RowContainerComponent({eContainer:this.eBottomContainer}),floatingBottomPinnedLeft:new C.RowContainerComponent({eContainer:this.eLeftBottom}),floatingBottomPinnedRight:new C.RowContainerComponent({eContainer:this.eRightBottom}),floatingBottomFullWith:new C.RowContainerComponent({eContainer:this.eBottomFullWidthContainer,hideWhenNoChildren:!0})},H._.iterateObject(this.rowContainerComponents,(function(t,o){o&&e.getContext().wireBean(o)}))},t.prototype.setupRowAnimationCssClass=function(){var e=this,t=function(){var t=e.gridOptionsWrapper.isAnimateRows()&&!e.heightScaler.isScaling();H._.addOrRemoveCssClass(e.eBodyViewport,"ag-row-animation",t),H._.addOrRemoveCssClass(e.eBodyViewport,"ag-row-no-animation",!t)};t(),this.addDestroyableEventListener(this.eventService,h.Events.EVENT_HEIGHT_SCALE_CHANGED,t)},t.prototype.suppressScrollOnFloatingRow=function(){var e=this;this.addDestroyableEventListener(this.eTopViewport,"scroll",(function(){return e.eTopViewport.scrollLeft=0})),this.addDestroyableEventListener(this.eBottomViewport,"scroll",(function(){return e.eTopViewport.scrollLeft=0}))},t.prototype.getRowContainers=function(){return this.rowContainerComponents},t.prototype.getFloatingTopBottom=function(){return[this.eTop,this.eBottom]},t.prototype.onDisplayedColumnsChanged=function(){this.setPinnedContainerSize(),this.setHeaderAndFloatingHeights(),this.onHorizontalViewportChanged(),this.updateScrollVisibleService()},t.prototype.onDisplayedColumnsWidthChanged=function(){this.setWidthsOfContainers(),this.onHorizontalViewportChanged(),this.updateScrollVisibleService(),this.enableRtl&&this.horizontallyScrollHeaderCenterAndFloatingCenter()},t.prototype.setWidthsOfContainers=function(){this.setCenterWidth(),this.setPinnedContainerSize()},t.prototype.setCenterWidth=function(){var e=this.columnController.getBodyContainerWidth();this.printLayout&&(e+=this.columnController.getPinnedLeftContainerWidth()+this.columnController.getPinnedRightContainerWidth()),this.headerRootComp.setHeaderContainerWidth(e);var t=e+"px";this.eCenterContainer.style.width=t,this.eBottomContainer.style.width=t,this.eTopContainer.style.width=t,this.printLayout||(this.eBodyHorizontalScrollContainer.style.width=t)},t.prototype.setPinnedLeftWidth=function(){var e=this,t=this.pinningLeft,o=this.columnController.getPinnedLeftContainerWidth(),n=this.pinningLeft=!this.printLayout&&o>0,r=[this.eLeftContainer,this.eLeftTop,this.eLeftBottom];t!==n&&this.headerRootComp.setLeftVisible(n),r.forEach((function(t){return H._.setVisible(t,e.pinningLeft)})),n&&r.forEach((function(e){return H._.setFixedWidth(e,o)}))},t.prototype.setPinnedRightWidth=function(){var e=this.pinningRight,t=this.columnController.getPinnedRightContainerWidth(),o=this.pinningRight=!this.printLayout&&t>0,n=[this.eRightContainer,this.eRightTop,this.eRightBottom];e!==o&&this.headerRootComp.setRightVisible(o),n.forEach((function(e){return H._.setVisible(e,o)})),o&&n.forEach((function(e){return H._.setFixedWidth(e,t)}))},t.prototype.setPinnedContainerSize=function(){this.setPinnedLeftWidth(),this.setPinnedRightWidth(),this.setFakeHScrollSpacerWidths()},t.prototype.setFakeHScrollSpacerWidths=function(){var e=this.columnController.getPinnedRightContainerWidth();!this.enableRtl&&this.isVerticalScrollShowing()&&(e+=this.scrollWidth),H._.setFixedWidth(this.eHorizontalRightSpacer,e),H._.addOrRemoveCssClass(this.eHorizontalRightSpacer,"ag-scroller-corner",e<=this.scrollWidth);var t=this.columnController.getPinnedLeftContainerWidth();this.enableRtl&&this.isVerticalScrollShowing()&&(t+=this.scrollWidth),H._.setFixedWidth(this.eHorizontalLeftSpacer,t),H._.addOrRemoveCssClass(this.eHorizontalLeftSpacer,"ag-scroller-corner",t<=this.scrollWidth)},t.prototype.checkBodyHeight=function(){var e=this.eBodyViewport.clientHeight;if(this.bodyHeight!==e){this.bodyHeight=e;var t={type:h.Events.EVENT_BODY_HEIGHT_CHANGED,api:this.gridApi,columnApi:this.columnApi};this.eventService.dispatchEvent(t)}},t.prototype.setHeaderAndFloatingHeights=function(){var e,t,o,n=this,r=n.columnController,i=n.gridOptionsWrapper,s=n.pinnedRowModel,a=n.eTop,l=n.eBottom,p=0,u=r.getHeaderRowCount();r.isPivotMode()?(p=0,t=i.getPivotGroupHeaderHeight(),o=i.getPivotHeaderHeight()):(i.isFloatingFilter()&&u++,p=i.isFloatingFilter()?1:0,t=i.getGroupHeaderHeight(),o=i.getHeaderHeight());var c=u-(1+p);e=p*i.getFloatingFiltersHeight(),e+=c*t,e+=o,this.headerRootComp.setHeight(e);var d=s.getPinnedTopTotalHeight();d&&(d+=1);var h=s.getPinnedBottomTotalHeight();h&&(h+=1);var f=d+"px",g=h+"px";a.style.minHeight=f,a.style.height=f,a.style.display=d?"inherit":"none",l.style.minHeight=g,l.style.height=g,l.style.display=h?"inherit":"none",this.checkBodyHeight()},t.prototype.getBodyHeight=function(){return this.bodyHeight},t.prototype.setHorizontalScrollPosition=function(e){this.eCenterViewport.scrollLeft=e,this.doHorizontalScroll(e)},t.prototype.setVerticalScrollPosition=function(e){this.eBodyViewport.scrollTop=e},t.prototype.scrollHorizontally=function(e){var t=this.eCenterViewport.scrollLeft;return this.setHorizontalScrollPosition(t+e),this.eCenterViewport.scrollLeft-t},t.prototype.scrollVertically=function(e){var t=this.eBodyViewport.scrollTop;return this.setVerticalScrollPosition(t+e),this.eBodyViewport.scrollTop-t},t.prototype.addScrollListener=function(){this.addDestroyableEventListener(this.eCenterViewport,"scroll",this.onCenterViewportScroll.bind(this)),this.addDestroyableEventListener(this.eBodyHorizontalScrollViewport,"scroll",this.onFakeHorizontalScroll.bind(this)),this.addDestroyableEventListener(this.eBodyViewport,"scroll",this.onVerticalScroll.bind(this))},t.prototype.onVerticalScroll=function(){var e=this.eBodyViewport.scrollTop;this.scrollTop=e,this.animationFrameService.setScrollTop(e),this.redrawRowsAfterScroll()},t.prototype.isControllingScroll=function(e){return this.lastHorizontalScrollElement?e===this.lastHorizontalScrollElement:(this.lastHorizontalScrollElement=e,!0)},t.prototype.onFakeHorizontalScroll=function(){this.isControllingScroll(this.eBodyHorizontalScrollViewport)&&this.onBodyHorizontalScroll(this.eBodyHorizontalScrollViewport)},t.prototype.onCenterViewportScroll=function(){this.isControllingScroll(this.eCenterViewport)&&this.onBodyHorizontalScroll(this.eCenterViewport)},t.prototype.onBodyHorizontalScroll=function(e){var t=this.eCenterViewport,o=t.scrollWidth,n=t.clientWidth,r=Math.floor(H._.getScrollLeft(e,this.enableRtl));r<0||r+n>o||(this.doHorizontalScroll(r),this.resetLastHorizontalScrollElementDebounce())},t.prototype.resetLastHorizontalScrollElement=function(){this.lastHorizontalScrollElement=null},t.prototype.doHorizontalScroll=function(e){this.scrollLeft=e;var t={type:h.Events.EVENT_BODY_SCROLL,api:this.gridApi,columnApi:this.columnApi,direction:"horizontal",left:this.scrollLeft,top:this.scrollTop};this.eventService.dispatchEvent(t),this.horizontallyScrollHeaderCenterAndFloatingCenter(e),this.onHorizontalViewportChanged()},t.prototype.redrawRowsAfterScroll=function(){var e={type:h.Events.EVENT_BODY_SCROLL,direction:"vertical",api:this.gridApi,columnApi:this.columnApi,left:this.scrollLeft,top:this.scrollTop};this.eventService.dispatchEvent(e)},t.prototype.onHorizontalViewportChanged=function(){var e=this.eCenterViewport.clientWidth,t=this.getCenterViewportScrollLeft();this.columnController.setVirtualViewportPosition(e,t)},t.prototype.getCenterViewportScrollLeft=function(){return H._.getScrollLeft(this.eCenterViewport,this.enableRtl)},t.prototype.setCenterViewportScrollLeft=function(e){H._.setScrollLeft(this.eCenterViewport,e,this.enableRtl)},t.prototype.horizontallyScrollHeaderCenterAndFloatingCenter=function(e){void 0===e&&(e=this.getCenterViewportScrollLeft());var t=this.enableRtl?e:-e,o=this.eCenterViewport,n=o.clientWidth,r=o.scrollWidth;if(!(Math.abs(t)+n>r||this.enableRtl&&t<0||!this.enableRtl&&t>0)){this.headerRootComp.setHorizontalScroll(t),this.eBottomContainer.style.transform="translateX("+t+"px)",this.eTopContainer.style.transform="translateX("+t+"px)";var i=this.lastHorizontalScrollElement===this.eCenterViewport?this.eBodyHorizontalScrollViewport:this.eCenterViewport;H._.setScrollLeft(i,e,this.enableRtl)}},t.prototype.addScrollEventListener=function(e){this.eBodyViewport.addEventListener("scroll",e)},t.prototype.removeScrollEventListener=function(e){this.eBodyViewport.removeEventListener("scroll",e)},i([c.Autowired("alignedGridsService"),s("design:type",E.AlignedGridsService)],t.prototype,"alignedGridsService",void 0),i([c.Autowired("gridOptionsWrapper"),s("design:type",a.GridOptionsWrapper)],t.prototype,"gridOptionsWrapper",void 0),i([c.Autowired("columnController"),s("design:type",l.ColumnController)],t.prototype,"columnController",void 0),i([c.Autowired("rowRenderer"),s("design:type",u.RowRenderer)],t.prototype,"rowRenderer",void 0),i([c.Autowired("pinnedRowModel"),s("design:type",b.PinnedRowModel)],t.prototype,"pinnedRowModel",void 0),i([c.Autowired("eventService"),s("design:type",d.EventService)],t.prototype,"eventService",void 0),i([c.Autowired("animationFrameService"),s("design:type",S.AnimationFrameService)],t.prototype,"animationFrameService",void 0),i([c.Autowired("navigationService"),s("design:type",P.NavigationService)],t.prototype,"navigationService",void 0),i([c.Autowired("autoHeightCalculator"),s("design:type",L.AutoHeightCalculator)],t.prototype,"autoHeightCalculator",void 0),i([c.Autowired("columnAnimationService"),s("design:type",M.ColumnAnimationService)],t.prototype,"columnAnimationService",void 0),i([c.Autowired("autoWidthCalculator"),s("design:type",k.AutoWidthCalculator)],t.prototype,"autoWidthCalculator",void 0),i([c.Autowired("paginationAutoPageSizeService"),s("design:type",w.PaginationAutoPageSizeService)],t.prototype,"paginationAutoPageSizeService",void 0),i([c.Autowired("beans"),s("design:type",G.Beans)],t.prototype,"beans",void 0),i([c.Autowired("paginationProxy"),s("design:type",w.PaginationProxy)],t.prototype,"paginationProxy",void 0),i([c.Autowired("columnApi"),s("design:type",p.ColumnApi)],t.prototype,"columnApi",void 0),i([c.Autowired("gridApi"),s("design:type",R.GridApi)],t.prototype,"gridApi",void 0),i([c.Autowired("dragService"),s("design:type",f.DragService)],t.prototype,"dragService",void 0),i([c.Autowired("mouseEventService"),s("design:type",m.MouseEventService)],t.prototype,"mouseEventService",void 0),i([c.Autowired("focusedCellController"),s("design:type",y.FocusedCellController)],t.prototype,"focusedCellController",void 0),i([c.Autowired("$scope"),s("design:type",Object)],t.prototype,"$scope",void 0),i([c.Autowired("scrollVisibleService"),s("design:type",v.ScrollVisibleService)],t.prototype,"scrollVisibleService",void 0),i([c.Autowired("valueService"),s("design:type",A.ValueService)],t.prototype,"valueService",void 0),i([c.Autowired("dragAndDropService"),s("design:type",D.DragAndDropService)],t.prototype,"dragAndDropService",void 0),i([c.Autowired("maxDivHeightScaler"),s("design:type",I.MaxDivHeightScaler)],t.prototype,"heightScaler",void 0),i([c.Autowired("enterprise"),s("design:type",Boolean)],t.prototype,"enterprise",void 0),i([c.Autowired("resizeObserverService"),s("design:type",W.ResizeObserverService)],t.prototype,"resizeObserverService",void 0),i([c.Optional("rangeController"),s("design:type",Object)],t.prototype,"rangeController",void 0),i([c.Optional("contextMenuFactory"),s("design:type",Object)],t.prototype,"contextMenuFactory",void 0),i([c.Optional("clipboardService"),s("design:type",Object)],t.prototype,"clipboardService",void 0),i([V.RefSelector("eBodyViewport"),s("design:type",HTMLElement)],t.prototype,"eBodyViewport",void 0),i([V.RefSelector("eCenterContainer"),s("design:type",HTMLElement)],t.prototype,"eCenterContainer",void 0),i([V.RefSelector("eCenterViewport"),s("design:type",HTMLElement)],t.prototype,"eCenterViewport",void 0),i([V.RefSelector("eLeftContainer"),s("design:type",HTMLElement)],t.prototype,"eLeftContainer",void 0),i([V.RefSelector("eRightContainer"),s("design:type",HTMLElement)],t.prototype,"eRightContainer",void 0),i([V.RefSelector("eCenterColsClipper"),s("design:type",HTMLElement)],t.prototype,"eCenterColsClipper",void 0),i([V.RefSelector("eHorizontalScrollBody"),s("design:type",HTMLElement)],t.prototype,"eHorizontalScrollBody",void 0),i([V.RefSelector("eHorizontalLeftSpacer"),s("design:type",HTMLElement)],t.prototype,"eHorizontalLeftSpacer",void 0),i([V.RefSelector("eHorizontalRightSpacer"),s("design:type",HTMLElement)],t.prototype,"eHorizontalRightSpacer",void 0),i([V.RefSelector("eBodyHorizontalScrollViewport"),s("design:type",HTMLElement)],t.prototype,"eBodyHorizontalScrollViewport",void 0),i([V.RefSelector("eBodyHorizontalScrollContainer"),s("design:type",HTMLElement)],t.prototype,"eBodyHorizontalScrollContainer",void 0),i([V.RefSelector("eFullWidthContainer"),s("design:type",HTMLElement)],t.prototype,"eFullWidthContainer",void 0),i([V.RefSelector("eTop"),s("design:type",HTMLElement)],t.prototype,"eTop",void 0),i([V.RefSelector("eLeftTop"),s("design:type",HTMLElement)],t.prototype,"eLeftTop",void 0),i([V.RefSelector("eRightTop"),s("design:type",HTMLElement)],t.prototype,"eRightTop",void 0),i([V.RefSelector("eTopContainer"),s("design:type",HTMLElement)],t.prototype,"eTopContainer",void 0),i([V.RefSelector("eTopViewport"),s("design:type",HTMLElement)],t.prototype,"eTopViewport",void 0),i([V.RefSelector("eTopFullWidthContainer"),s("design:type",HTMLElement)],t.prototype,"eTopFullWidthContainer",void 0),i([V.RefSelector("eBottom"),s("design:type",HTMLElement)],t.prototype,"eBottom",void 0),i([V.RefSelector("eLeftBottom"),s("design:type",HTMLElement)],t.prototype,"eLeftBottom",void 0),i([V.RefSelector("eRightBottom"),s("design:type",HTMLElement)],t.prototype,"eRightBottom",void 0),i([V.RefSelector("eBottomContainer"),s("design:type",HTMLElement)],t.prototype,"eBottomContainer",void 0),i([V.RefSelector("eBottomViewport"),s("design:type",HTMLElement)],t.prototype,"eBottomViewport",void 0),i([V.RefSelector("eBottomFullWidthContainer"),s("design:type",HTMLElement)],t.prototype,"eBottomFullWidthContainer",void 0),i([V.RefSelector("headerRoot"),s("design:type",j.HeaderRootComp)],t.prototype,"headerRootComp",void 0),i([V.RefSelector("overlayWrapper"),s("design:type",x.OverlayWrapperComponent)],t.prototype,"overlayWrapper",void 0),i([c.PostConstruct,s("design:type",Function),s("design:paramtypes",[]),s("design:returntype",void 0)],t.prototype,"init",null),t}(F.Component);t.GridPanel=B},70304:function(e,t,o){var n,r=this&&this.__extends||(n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])},n(e,t)},function(e,t){function o(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(o.prototype=t.prototype,new o)});Object.defineProperty(t,"__esModule",{value:!0});var i=o(96652),s=o(96652),a=o(75342),l=o(57265),p=function(e){function t(t,o){var n=e.call(this,t,o)||this;return n.props=t,n.state=o,n}return r(t,e),t.prototype.render=function(){return null},t.mapChildColumnDefs=function(e){return i.Children.map(e.children,(function(e){return t.toColDef(e.props)}))},t.toColDef=function(e){var o=t.createColDefFromGridColumn(e);return t.hasChildColumns(e)&&(o.children=t.getChildColDefs(e.children)),o},t.hasChildColumns=function(e){return i.Children.count(e.children)>0},t.getChildColDefs=function(e){return i.Children.map(e,(function(e){return t.createColDefFromGridColumn(e.props)}))},t.createColDefFromGridColumn=function(e){var o={};return t.assign(o,e),delete o.children,o},t.assign=function(e,t){return[t].reduce((function(e,t){return Object.keys(t).forEach((function(o){e[o]=t[o]})),e}),e)},t}(s.Component);function u(e,t){e.forEach((function(e){p[e]=t}))}t.AgGridColumn=p,u(l.ColDefUtil.BOOLEAN_PROPERTIES,a.bool),u(l.ColDefUtil.STRING_PROPERTIES,a.string),u(l.ColDefUtil.OBJECT_PROPERTIES,a.object),u(l.ColDefUtil.ARRAY_PROPERTIES,a.array),u(l.ColDefUtil.NUMBER_PROPERTIES,a.number),u(l.ColDefUtil.FUNCTION_PROPERTIES,a.func)},70424:function(e,t,o){var n=this&&this.__decorate||function(e,t,o,n){var r,i=arguments.length,s=i<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,n);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,o,s):r(t,o))||s);return i>3&&s&&Object.defineProperty(t,o,s),s},r=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0});var i=o(59804),s=o(79705),a=o(30754),l=o(19135),p=o(59804),u=o(43510),c=function(){function e(){}return e.prototype.createDisplayedGroups=function(e,t,o,n,r){var i,s,a=this,l=[],p=this.mapOldGroupsById(r);return e.forEach((function(e){for(var r=a.getOriginalPathForColumn(t,e),u=[],c=!s,d=0;d<r.length;d++)if(c||r[d]!==s[d]){var h=a.createColumnGroup(r[d],o,p,n);u[d]=h,0==d?l.push(h):u[d-1].addChild(h)}else u[d]=i[d];0===u.length?l.push(e):u[u.length-1].addChild(e),i=u,s=r})),this.setupParentsIntoColumns(l,null),l},e.prototype.createColumnGroup=function(e,t,o,n){var r=e.getGroupId(),i=t.getInstanceIdForKey(r),s=o[a.ColumnGroup.createUniqueId(r,i)];return s&&s.getOriginalColumnGroup()!==e&&(s=null),u._.exists(s)?s.reset():(s=new a.ColumnGroup(e,r,i,n),this.context.wireBean(s)),s},e.prototype.mapOldGroupsById=function(e){var t={},o=function(e){e.forEach((function(e){if(e instanceof a.ColumnGroup){var n=e;t[e.getUniqueId()]=n,o(n.getChildren())}}))};return e&&o(e),t},e.prototype.setupParentsIntoColumns=function(e,t){var o=this;e.forEach((function(e){if(e.setParent(t),e instanceof a.ColumnGroup){var n=e;o.setupParentsIntoColumns(n.getChildren(),n)}}))},e.prototype.getOriginalPathForColumn=function(e,t){var o=[],n=!1;return function e(r,i){for(var s=0;s<r.length;s++){if(n)return;var a=r[s];a instanceof l.OriginalColumnGroup?(e(a.getChildren(),i+1),o[i]=a):a===t&&(n=!0)}}(e,0),n?o:(console.warn("could not get path"),null)},n([i.Autowired("columnUtils"),r("design:type",s.ColumnUtils)],e.prototype,"columnUtils",void 0),n([i.Autowired("context"),r("design:type",p.Context)],e.prototype,"context",void 0),n([p.Bean("displayedGroupCreator")],e)}();t.DisplayedGroupCreator=c},71527:function(e,t,o){var n=this&&this.__decorate||function(e,t,o,n){var r,i=arguments.length,s=i<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,n);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,o,s):r(t,o))||s);return i>3&&s&&Object.defineProperty(t,o,s),s},r=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0});var i,s=o(13161),a=o(59804),l=o(30476),p=o(71569),u=o(47661),c=o(51890);!function(e){e[e.ColumnMove=0]="ColumnMove",e[e.Pivot=1]="Pivot"}(i||(i={}));var d=function(){function e(e,t){this.dropListeners={},this.pinned=e,this.eContainer=t}return e.prototype.registerGridComp=function(e){switch(this.gridPanel=e,this.moveColumnController.registerGridComp(e),this.pinned){case p.Column.PINNED_LEFT:this.eSecondaryContainers=this.gridPanel.getDropTargetLeftContainers();break;case p.Column.PINNED_RIGHT:this.eSecondaryContainers=this.gridPanel.getDropTargetRightContainers();break;default:this.eSecondaryContainers=this.gridPanel.getDropTargetBodyContainers()}},e.prototype.isInterestedIn=function(e){return e===s.DragSourceType.HeaderCell||e===s.DragSourceType.ToolPanel},e.prototype.getSecondaryContainers=function(){return this.eSecondaryContainers},e.prototype.getContainer=function(){return this.eContainer},e.prototype.init=function(){this.moveColumnController=new l.MoveColumnController(this.pinned,this.eContainer),this.context.wireBean(this.moveColumnController);var e=new u.BodyDropPivotTarget(this.pinned);this.context.wireBean(e),this.dropListeners[i.ColumnMove]=this.moveColumnController,this.dropListeners[i.Pivot]=e,this.dragAndDropService.addDropTarget(this)},e.prototype.getIconName=function(){return this.currentDropListener.getIconName()},e.prototype.getDropType=function(e){return this.columnController.isPivotMode()&&e.dragSource.type===s.DragSourceType.ToolPanel?i.Pivot:i.ColumnMove},e.prototype.onDragEnter=function(e){var t=this.getDropType(e);this.currentDropListener=this.dropListeners[t],this.currentDropListener.onDragEnter(e)},e.prototype.onDragLeave=function(e){this.currentDropListener.onDragLeave(e)},e.prototype.onDragging=function(e){this.currentDropListener.onDragging(e)},e.prototype.onDragStop=function(e){this.currentDropListener.onDragStop(e)},n([a.Autowired("context"),r("design:type",a.Context)],e.prototype,"context",void 0),n([a.Autowired("dragAndDropService"),r("design:type",s.DragAndDropService)],e.prototype,"dragAndDropService",void 0),n([a.Autowired("columnController"),r("design:type",c.ColumnController)],e.prototype,"columnController",void 0),n([a.PostConstruct,r("design:type",Function),r("design:paramtypes",[]),r("design:returntype",void 0)],e.prototype,"init",null),e}();t.BodyDropTarget=d},71569:function(e,t,o){var n=this&&this.__decorate||function(e,t,o,n){var r,i=arguments.length,s=i<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,n);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,o,s):r(t,o))||s);return i>3&&s&&Object.defineProperty(t,o,s),s},r=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0});var i=o(47304),s=o(43510),a=o(59804),l=o(99162),p=o(79705),u=o(81404),c=o(31551),d=function(){function e(e,t,o,n){this.moving=!1,this.menuVisible=!1,this.filterActive=!1,this.eventService=new i.EventService,this.rowGroupActive=!1,this.pivotActive=!1,this.aggregationActive=!1,this.colDef=e,this.userProvidedColDef=t,this.visible=!e.hide,this.sort=e.sort,this.sortedAt=e.sortedAt,this.colId=o,this.primary=n,this.lockPosition=!0===e.lockPosition,this.lockPinned=!0===e.lockPinned,this.lockVisible=!0===e.lockVisible}return e.prototype.setColDef=function(e,t){this.colDef=e,this.userProvidedColDef=t},e.prototype.getUserProvidedColDef=function(){return this.userProvidedColDef},e.prototype.isLockPosition=function(){return this.lockPosition},e.prototype.isLockVisible=function(){return this.lockVisible},e.prototype.isLockPinned=function(){return this.lockPinned},e.prototype.setParent=function(e){this.parent=e},e.prototype.getParent=function(){return this.parent},e.prototype.setOriginalParent=function(e){this.originalParent=e},e.prototype.getOriginalParent=function(){return this.originalParent},e.prototype.initialise=function(){this.setPinned(this.colDef.pinned);var e=this.gridOptionsWrapper.getMinColWidth(),t=this.gridOptionsWrapper.getMaxColWidth();this.colDef.minWidth?this.minWidth=this.colDef.minWidth:this.minWidth=e,this.colDef.maxWidth?this.maxWidth=this.colDef.maxWidth:this.maxWidth=t,this.actualWidth=this.columnUtils.calculateColInitialWidth(this.colDef);var o=this.gridOptionsWrapper.isSuppressFieldDotNotation();this.fieldContainsDots=s._.exists(this.colDef.field)&&this.colDef.field.indexOf(".")>=0&&!o,this.tooltipFieldContainsDots=s._.exists(this.colDef.tooltipField)&&this.colDef.tooltipField.indexOf(".")>=0&&!o,this.validate()},e.prototype.isEmptyGroup=function(){return!1},e.prototype.isRowGroupDisplayed=function(e){if(s._.missing(this.colDef)||s._.missing(this.colDef.showRowGroup))return!1;var t=!0===this.colDef.showRowGroup,o=this.colDef.showRowGroup===e;return t||o},e.prototype.getUniqueId=function(){return this.getId()},e.prototype.isPrimary=function(){return this.primary},e.prototype.isFilterAllowed=function(){var e=!!this.colDef.filter||!!this.colDef.filterFramework;return this.primary&&e},e.prototype.isFieldContainsDots=function(){return this.fieldContainsDots},e.prototype.isTooltipFieldContainsDots=function(){return this.tooltipFieldContainsDots},e.prototype.validate=function(){var e=this.colDef;this.gridOptionsWrapper.isEnterprise()||["enableRowGroup","rowGroup","rowGroupIndex","enablePivot","pivot","pivotIndex","aggFunc"].forEach((function(t){s._.exists(e[t])&&console.warn("ag-Grid: "+t+" is only valid in ag-Grid-Enterprise, your column definition should not have "+t)})),this.gridOptionsWrapper.isTreeData()&&["rowGroup","rowGroupIndex","pivot","pivotIndex"].forEach((function(t){s._.exists(e[t])&&console.warn("ag-Grid: "+t+" is not possible when doing tree data, your column definition should not have "+t)})),s._.exists(this.colDef.width)&&"number"!=typeof this.colDef.width&&console.warn("ag-Grid: colDef.width should be a number, not "+typeof this.colDef.width),s._.get(this,"colDef.cellRendererParams.restrictToOneGroup",null)&&console.warn("ag-Grid: Since ag-grid 11.0.0 cellRendererParams.restrictToOneGroup is deprecated. You should use showRowGroup"),s._.get(this,"colDef.cellRendererParams.keyMap",null)&&console.warn("ag-Grid: Since ag-grid 11.0.0 cellRendererParams.keyMap is deprecated. You should use colDef.keyCreator"),s._.get(this,"colDef.cellRendererParams.keyMap",null)&&console.warn("ag-Grid: Since ag-grid 11.0.0 cellRendererParams.keyMap is deprecated. You should use colDef.keyCreator"),e.floatingCellRenderer&&(console.warn("ag-Grid: since v11, floatingCellRenderer is now pinnedRowCellRenderer"),this.colDef.pinnedRowCellRenderer=e.floatingCellRenderer),e.floatingRendererFramework&&(console.warn("ag-Grid: since v11, floatingRendererFramework is now pinnedRowCellRendererFramework"),this.colDef.pinnedRowCellRendererFramework=e.floatingRendererFramework),e.floatingRendererParams&&(console.warn("ag-Grid: since v11, floatingRendererParams is now pinnedRowCellRendererParams"),this.colDef.pinnedRowCellRendererParams=e.floatingRendererParams),e.floatingValueFormatter&&(console.warn("ag-Grid: since v11, floatingValueFormatter is now pinnedRowValueFormatter"),this.colDef.pinnedRowValueFormatter=e.floatingValueFormatter),e.cellFormatter&&(console.warn("ag-Grid: since v12, cellFormatter is now valueFormatter"),s._.missing(this.colDef.valueFormatter)&&(this.colDef.valueFormatter=e.cellFormatter)),e.headerCellTemplate&&console.warn("ag-Grid: since v15, headerCellTemplate is gone, use header component instead."),e.headerCellRenderer&&console.warn("ag-Grid: since v15, headerCellRenderer is gone, use header component instead."),e.volatile&&console.warn("ag-Grid: since v16, colDef.volatile is gone, please check refresh docs on how to refresh specific cells."),e.suppressSorting&&(console.warn("ag-Grid: since v20, colDef.suppressSorting is gone, instead use colDef.sortable=false.",this.colDef),this.colDef.sortable=!1),e.suppressFilter&&(console.warn("ag-Grid: since v20, colDef.suppressFilter is gone, instead use colDef.filter=false.",this.colDef),this.colDef.filter=!1),e.suppressResize&&(console.warn("ag-Grid: since v20, colDef.suppressResize is gone, instead use colDef.resizable=false.",this.colDef),this.colDef.resizable=!1),e.tooltip&&(console.warn("ag-Grid: since v20.1, colDef.tooltip is gone, instead use colDef.tooltipValueGetter.",this.colDef),this.colDef.tooltipValueGetter=e.tooltip)},e.prototype.addEventListener=function(e,t){this.eventService.addEventListener(e,t)},e.prototype.removeEventListener=function(e,t){this.eventService.removeEventListener(e,t)},e.prototype.createIsColumnFuncParams=function(e){return{node:e,data:e.data,column:this,colDef:this.colDef,context:this.gridOptionsWrapper.getContext(),api:this.gridOptionsWrapper.getApi(),columnApi:this.gridOptionsWrapper.getColumnApi()}},e.prototype.isSuppressNavigable=function(e){if("boolean"==typeof this.colDef.suppressNavigable)return this.colDef.suppressNavigable;if("function"==typeof this.colDef.suppressNavigable){var t=this.createIsColumnFuncParams(e);return(0,this.colDef.suppressNavigable)(t)}return!1},e.prototype.isCellEditable=function(e){return!(e.group&&!this.gridOptionsWrapper.isEnableGroupEdit())&&this.isColumnFunc(e,this.colDef.editable)},e.prototype.isRowDrag=function(e){return this.isColumnFunc(e,this.colDef.rowDrag)},e.prototype.isCellCheckboxSelection=function(e){return this.isColumnFunc(e,this.colDef.checkboxSelection)},e.prototype.isSuppressPaste=function(e){return this.isColumnFunc(e,this.colDef?this.colDef.suppressPaste:null)},e.prototype.isResizable=function(){return!0===this.colDef.resizable},e.prototype.isColumnFunc=function(e,t){return"boolean"==typeof t?t:"function"==typeof t&&t(this.createIsColumnFuncParams(e))},e.prototype.setMoving=function(t,o){void 0===o&&(o="api"),this.moving=t,this.eventService.dispatchEvent(this.createColumnEvent(e.EVENT_MOVING_CHANGED,o))},e.prototype.createColumnEvent=function(e,t){return{api:this.gridApi,columnApi:this.columnApi,type:e,column:this,columns:[this],source:t}},e.prototype.isMoving=function(){return this.moving},e.prototype.getSort=function(){return this.sort},e.prototype.setSort=function(t,o){void 0===o&&(o="api"),this.sort!==t&&(this.sort=t,this.eventService.dispatchEvent(this.createColumnEvent(e.EVENT_SORT_CHANGED,o)))},e.prototype.setMenuVisible=function(t,o){void 0===o&&(o="api"),this.menuVisible!==t&&(this.menuVisible=t,this.eventService.dispatchEvent(this.createColumnEvent(e.EVENT_MENU_VISIBLE_CHANGED,o)))},e.prototype.isMenuVisible=function(){return this.menuVisible},e.prototype.isSortAscending=function(){return this.sort===e.SORT_ASC},e.prototype.isSortDescending=function(){return this.sort===e.SORT_DESC},e.prototype.isSortNone=function(){return s._.missing(this.sort)},e.prototype.isSorting=function(){return s._.exists(this.sort)},e.prototype.getSortedAt=function(){return this.sortedAt},e.prototype.setSortedAt=function(e){this.sortedAt=e},e.prototype.setAggFunc=function(e){this.aggFunc=e},e.prototype.getAggFunc=function(){return this.aggFunc},e.prototype.getLeft=function(){return this.left},e.prototype.getOldLeft=function(){return this.oldLeft},e.prototype.getRight=function(){return this.left+this.actualWidth},e.prototype.setLeft=function(t,o){void 0===o&&(o="api"),this.oldLeft=this.left,this.left!==t&&(this.left=t,this.eventService.dispatchEvent(this.createColumnEvent(e.EVENT_LEFT_CHANGED,o)))},e.prototype.isFilterActive=function(){return this.filterActive},e.prototype.setFilterActive=function(t,o){void 0===o&&(o="api"),this.filterActive!==t&&(this.filterActive=t,this.eventService.dispatchEvent(this.createColumnEvent(e.EVENT_FILTER_ACTIVE_CHANGED,o))),this.eventService.dispatchEvent(this.createColumnEvent(e.EVENT_FILTER_CHANGED,o))},e.prototype.setPinned=function(t){!0===t||t===e.PINNED_LEFT?this.pinned=e.PINNED_LEFT:t===e.PINNED_RIGHT?this.pinned=e.PINNED_RIGHT:this.pinned=null},e.prototype.setFirstRightPinned=function(t,o){void 0===o&&(o="api"),this.firstRightPinned!==t&&(this.firstRightPinned=t,this.eventService.dispatchEvent(this.createColumnEvent(e.EVENT_FIRST_RIGHT_PINNED_CHANGED,o)))},e.prototype.setLastLeftPinned=function(t,o){void 0===o&&(o="api"),this.lastLeftPinned!==t&&(this.lastLeftPinned=t,this.eventService.dispatchEvent(this.createColumnEvent(e.EVENT_LAST_LEFT_PINNED_CHANGED,o)))},e.prototype.isFirstRightPinned=function(){return this.firstRightPinned},e.prototype.isLastLeftPinned=function(){return this.lastLeftPinned},e.prototype.isPinned=function(){return this.pinned===e.PINNED_LEFT||this.pinned===e.PINNED_RIGHT},e.prototype.isPinnedLeft=function(){return this.pinned===e.PINNED_LEFT},e.prototype.isPinnedRight=function(){return this.pinned===e.PINNED_RIGHT},e.prototype.getPinned=function(){return this.pinned},e.prototype.setVisible=function(t,o){void 0===o&&(o="api");var n=!0===t;this.visible!==n&&(this.visible=n,this.eventService.dispatchEvent(this.createColumnEvent(e.EVENT_VISIBLE_CHANGED,o)))},e.prototype.isVisible=function(){return this.visible},e.prototype.getColDef=function(){return this.colDef},e.prototype.getColumnGroupShow=function(){return this.colDef.columnGroupShow},e.prototype.getColId=function(){return this.colId},e.prototype.getId=function(){return this.getColId()},e.prototype.getDefinition=function(){return this.colDef},e.prototype.getActualWidth=function(){return this.actualWidth},e.prototype.createBaseColDefParams=function(e){return{node:e,data:e.data,colDef:this.colDef,column:this,api:this.gridOptionsWrapper.getApi(),columnApi:this.gridOptionsWrapper.getColumnApi(),context:this.gridOptionsWrapper.getContext()}},e.prototype.getColSpan=function(e){if(s._.missing(this.colDef.colSpan))return 1;var t=this.createBaseColDefParams(e),o=this.colDef.colSpan(t);return Math.max(o,1)},e.prototype.getRowSpan=function(e){if(s._.missing(this.colDef.rowSpan))return 1;var t=this.createBaseColDefParams(e),o=this.colDef.rowSpan(t);return Math.max(o,1)},e.prototype.setActualWidth=function(t,o){void 0===o&&(o="api"),this.actualWidth!==t&&(this.actualWidth=t,this.eventService.dispatchEvent(this.createColumnEvent(e.EVENT_WIDTH_CHANGED,o)))},e.prototype.isGreaterThanMax=function(e){return!!this.maxWidth&&e>this.maxWidth},e.prototype.getMinWidth=function(){return this.minWidth},e.prototype.getMaxWidth=function(){return this.maxWidth},e.prototype.setMinimum=function(e){void 0===e&&(e="api"),this.setActualWidth(this.minWidth,e)},e.prototype.setRowGroupActive=function(t,o){void 0===o&&(o="api"),this.rowGroupActive!==t&&(this.rowGroupActive=t,this.eventService.dispatchEvent(this.createColumnEvent(e.EVENT_ROW_GROUP_CHANGED,o)))},e.prototype.isRowGroupActive=function(){return this.rowGroupActive},e.prototype.setPivotActive=function(t,o){void 0===o&&(o="api"),this.pivotActive!==t&&(this.pivotActive=t,this.eventService.dispatchEvent(this.createColumnEvent(e.EVENT_PIVOT_CHANGED,o)))},e.prototype.isPivotActive=function(){return this.pivotActive},e.prototype.isAnyFunctionActive=function(){return this.isPivotActive()||this.isRowGroupActive()||this.isValueActive()},e.prototype.isAnyFunctionAllowed=function(){return this.isAllowPivot()||this.isAllowRowGroup()||this.isAllowValue()},e.prototype.setValueActive=function(t,o){void 0===o&&(o="api"),this.aggregationActive!==t&&(this.aggregationActive=t,this.eventService.dispatchEvent(this.createColumnEvent(e.EVENT_VALUE_CHANGED,o)))},e.prototype.isValueActive=function(){return this.aggregationActive},e.prototype.isAllowPivot=function(){return!0===this.colDef.enablePivot},e.prototype.isAllowValue=function(){return!0===this.colDef.enableValue},e.prototype.isAllowRowGroup=function(){return!0===this.colDef.enableRowGroup},e.prototype.getMenuTabs=function(e){var t=this.getColDef().menuTabs;return null==t&&(t=e),t},e.EVENT_MOVING_CHANGED="movingChanged",e.EVENT_LEFT_CHANGED="leftChanged",e.EVENT_WIDTH_CHANGED="widthChanged",e.EVENT_LAST_LEFT_PINNED_CHANGED="lastLeftPinnedChanged",e.EVENT_FIRST_RIGHT_PINNED_CHANGED="firstRightPinnedChanged",e.EVENT_VISIBLE_CHANGED="visibleChanged",e.EVENT_FILTER_CHANGED="filterChanged",e.EVENT_FILTER_ACTIVE_CHANGED="filterActiveChanged",e.EVENT_SORT_CHANGED="sortChanged",e.EVENT_MENU_VISIBLE_CHANGED="menuVisibleChanged",e.EVENT_ROW_GROUP_CHANGED="columnRowGroupChanged",e.EVENT_PIVOT_CHANGED="columnPivotChanged",e.EVENT_VALUE_CHANGED="columnValueChanged",e.PINNED_RIGHT="right",e.PINNED_LEFT="left",e.SORT_ASC="asc",e.SORT_DESC="desc",n([a.Autowired("gridOptionsWrapper"),r("design:type",l.GridOptionsWrapper)],e.prototype,"gridOptionsWrapper",void 0),n([a.Autowired("columnUtils"),r("design:type",p.ColumnUtils)],e.prototype,"columnUtils",void 0),n([a.Autowired("frameworkFactory"),r("design:type",Object)],e.prototype,"frameworkFactory",void 0),n([a.Autowired("columnApi"),r("design:type",u.ColumnApi)],e.prototype,"columnApi",void 0),n([a.Autowired("gridApi"),r("design:type",c.GridApi)],e.prototype,"gridApi",void 0),n([a.PostConstruct,r("design:type",Function),r("design:paramtypes",[]),r("design:returntype",void 0)],e.prototype,"initialise",null),e}();t.Column=d},71627:function(e,t,o){var n=this&&this.__decorate||function(e,t,o,n){var r,i=arguments.length,s=i<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,n);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,o,s):r(t,o))||s);return i>3&&s&&Object.defineProperty(t,o,s),s},r=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0});var i=o(59804),s=o(81404),a=o(51890),l=o(31551),p=o(99162),u=o(6145),c=o(1659),d=o(27490),h=o(3978),f=o(47304),g=o(91901),m=o(42062),y=o(4895),v=o(39128),C=o(61164),w=o(79509),_=o(94741),E=o(72738),b=o(15558),R=o(36071),S=o(13161),O=o(14035),P=o(57663),A=o(43980),T=o(84891),D=function(){function e(){}return e.prototype.registerGridComp=function(e){this.gridPanel=e},e.prototype.postConstruct=function(){this.doingMasterDetail=this.gridOptionsWrapper.isMasterDetail()},n([i.Autowired("paginationProxy"),r("design:type",E.PaginationProxy)],e.prototype,"paginationProxy",void 0),n([i.Autowired("context"),r("design:type",i.Context)],e.prototype,"context",void 0),n([i.Autowired("columnApi"),r("design:type",s.ColumnApi)],e.prototype,"columnApi",void 0),n([i.Autowired("gridApi"),r("design:type",l.GridApi)],e.prototype,"gridApi",void 0),n([i.Autowired("gridOptionsWrapper"),r("design:type",p.GridOptionsWrapper)],e.prototype,"gridOptionsWrapper",void 0),n([i.Autowired("expressionService"),r("design:type",u.ExpressionService)],e.prototype,"expressionService",void 0),n([i.Autowired("rowRenderer"),r("design:type",c.RowRenderer)],e.prototype,"rowRenderer",void 0),n([i.Autowired("$compile"),r("design:type",Object)],e.prototype,"$compile",void 0),n([i.Autowired("templateService"),r("design:type",d.TemplateService)],e.prototype,"templateService",void 0),n([i.Autowired("valueService"),r("design:type",h.ValueService)],e.prototype,"valueService",void 0),n([i.Autowired("eventService"),r("design:type",f.EventService)],e.prototype,"eventService",void 0),n([i.Autowired("columnController"),r("design:type",a.ColumnController)],e.prototype,"columnController",void 0),n([i.Autowired("columnAnimationService"),r("design:type",g.ColumnAnimationService)],e.prototype,"columnAnimationService",void 0),n([i.Optional("rangeController"),r("design:type",Object)],e.prototype,"rangeController",void 0),n([i.Autowired("focusedCellController"),r("design:type",m.FocusedCellController)],e.prototype,"focusedCellController",void 0),n([i.Optional("contextMenuFactory"),r("design:type",Object)],e.prototype,"contextMenuFactory",void 0),n([i.Autowired("cellRendererFactory"),r("design:type",y.CellRendererFactory)],e.prototype,"cellRendererFactory",void 0),n([i.Autowired("popupService"),r("design:type",v.PopupService)],e.prototype,"popupService",void 0),n([i.Autowired("valueFormatterService"),r("design:type",C.ValueFormatterService)],e.prototype,"valueFormatterService",void 0),n([i.Autowired("stylingService"),r("design:type",w.StylingService)],e.prototype,"stylingService",void 0),n([i.Autowired("columnHoverService"),r("design:type",_.ColumnHoverService)],e.prototype,"columnHoverService",void 0),n([i.Autowired("enterprise"),r("design:type",Boolean)],e.prototype,"enterprise",void 0),n([i.Autowired("userComponentFactory"),r("design:type",R.UserComponentFactory)],e.prototype,"userComponentFactory",void 0),n([i.Autowired("animationFrameService"),r("design:type",b.AnimationFrameService)],e.prototype,"taskQueue",void 0),n([i.Autowired("dragAndDropService"),r("design:type",S.DragAndDropService)],e.prototype,"dragAndDropService",void 0),n([i.Autowired("sortController"),r("design:type",O.SortController)],e.prototype,"sortController",void 0),n([i.Autowired("filterManager"),r("design:type",P.FilterManager)],e.prototype,"filterManager",void 0),n([i.Autowired("maxDivHeightScaler"),r("design:type",A.MaxDivHeightScaler)],e.prototype,"maxDivHeightScaler",void 0),n([i.Autowired("tooltipManager"),r("design:type",T.TooltipManager)],e.prototype,"tooltipManager",void 0),n([i.PostConstruct,r("design:type",Function),r("design:paramtypes",[]),r("design:returntype",void 0)],e.prototype,"postConstruct",null),n([i.Bean("beans")],e)}();t.Beans=D},72065:function(e,t,o){var n,r=this&&this.__extends||(n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])},n(e,t)},function(e,t){function o(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(o.prototype=t.prototype,new o)}),i=this&&this.__decorate||function(e,t,o,n){var r,i=arguments.length,s=i<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,n);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,o,s):r(t,o))||s);return i>3&&s&&Object.defineProperty(t,o,s),s},s=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0});var a=o(99162),l=o(51890),p=o(71569),u=o(59804),c=o(69195),d=o(47304),h=o(33018),f=o(38830),g=o(17890),m=o(31551),y=o(67469),v=o(44494),C=o(43510),w=function(e){function t(){return e.call(this,t.TEMPLATE)||this}return r(t,e),t.prototype.registerGridComp=function(e){this.gridPanel=e,this.childContainers.forEach((function(t){return t.registerGridComp(e)}))},t.prototype.postConstruct=function(){var e=this;this.printLayout=this.gridOptionsWrapper.getDomLayout()===v.Constants.DOM_LAYOUT_PRINT,this.gridApi.registerHeaderRootComp(this),this.autoWidthCalculator.registerHeaderRootComp(this);var t=new c.HeaderContainer(this.eHeaderContainer,this.eHeaderViewport,null),o=new c.HeaderContainer(this.ePinnedLeftHeader,null,p.Column.PINNED_LEFT),n=new c.HeaderContainer(this.ePinnedRightHeader,null,p.Column.PINNED_RIGHT);this.childContainers=[t,o,n],this.childContainers.forEach((function(t){return e.getContext().wireBean(t)})),this.addDestroyableEventListener(this.eventService,h.Events.EVENT_COLUMN_VALUE_CHANGED,this.refreshHeader.bind(this)),this.addDestroyableEventListener(this.gridOptionsWrapper,a.GridOptionsWrapper.PROP_DOM_LAYOUT,this.onDomLayoutChanged.bind(this)),this.addDestroyableEventListener(this.eventService,h.Events.EVENT_COLUMN_PIVOT_MODE_CHANGED,this.onPivotModeChanged.bind(this)),this.onPivotModeChanged(),this.addPreventHeaderScroll(),this.columnController.isReady()&&this.refreshHeader()},t.prototype.onDomLayoutChanged=function(){var e=this.gridOptionsWrapper.getDomLayout()===v.Constants.DOM_LAYOUT_PRINT;this.printLayout!==e&&(this.printLayout=e,this.refreshHeader())},t.prototype.setHorizontalScroll=function(e){this.eHeaderContainer.style.transform="translateX("+e+"px)"},t.prototype.forEachHeaderElement=function(e){this.childContainers.forEach((function(t){return t.forEachHeaderElement(e)}))},t.prototype.destroy=function(){e.prototype.destroy.call(this),this.childContainers.forEach((function(e){return e.destroy()}))},t.prototype.refreshHeader=function(){this.childContainers.forEach((function(e){return e.refresh()}))},t.prototype.onPivotModeChanged=function(){var e=this.columnController.isPivotMode();C._.addOrRemoveCssClass(this.getGui(),"ag-pivot-on",e),C._.addOrRemoveCssClass(this.getGui(),"ag-pivot-off",!e)},t.prototype.setHeight=function(e){var t=e+"px";this.getGui().style.height=t,this.getGui().style.minHeight=t},t.prototype.addPreventHeaderScroll=function(){var e=this;this.addDestroyableEventListener(this.eHeaderViewport,"scroll",(function(){var t=e.eHeaderViewport.scrollLeft;0!==t&&(e.gridPanel.scrollHorizontally(t),e.eHeaderViewport.scrollLeft=0)}))},t.prototype.setHeaderContainerWidth=function(e){this.eHeaderContainer.style.width=e+"px"},t.prototype.setLeftVisible=function(e){C._.setVisible(this.ePinnedLeftHeader,e)},t.prototype.setRightVisible=function(e){C._.setVisible(this.ePinnedRightHeader,e)},t.TEMPLATE='<div class="ag-header" role="row">\n <div class="ag-pinned-left-header" ref="ePinnedLeftHeader" role="presentation"></div>\n <div class="ag-header-viewport" ref="eHeaderViewport" role="presentation">\n <div class="ag-header-container" ref="eHeaderContainer" role="presentation"></div>\n </div>\n <div class="ag-pinned-right-header" ref="ePinnedRightHeader" role="presentation"></div>\n </div>',i([g.RefSelector("ePinnedLeftHeader"),s("design:type",HTMLElement)],t.prototype,"ePinnedLeftHeader",void 0),i([g.RefSelector("ePinnedRightHeader"),s("design:type",HTMLElement)],t.prototype,"ePinnedRightHeader",void 0),i([g.RefSelector("eHeaderContainer"),s("design:type",HTMLElement)],t.prototype,"eHeaderContainer",void 0),i([g.RefSelector("eHeaderViewport"),s("design:type",HTMLElement)],t.prototype,"eHeaderViewport",void 0),i([u.Autowired("gridOptionsWrapper"),s("design:type",a.GridOptionsWrapper)],t.prototype,"gridOptionsWrapper",void 0),i([u.Autowired("columnController"),s("design:type",l.ColumnController)],t.prototype,"columnController",void 0),i([u.Autowired("eventService"),s("design:type",d.EventService)],t.prototype,"eventService",void 0),i([u.Autowired("gridApi"),s("design:type",m.GridApi)],t.prototype,"gridApi",void 0),i([u.Autowired("autoWidthCalculator"),s("design:type",y.AutoWidthCalculator)],t.prototype,"autoWidthCalculator",void 0),i([u.PostConstruct,s("design:type",Function),s("design:paramtypes",[]),s("design:returntype",void 0)],t.prototype,"postConstruct",null),t}(f.Component);t.HeaderRootComp=w},72346:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0});var o=function(){function e(){}return e.STRING_PROPERTIES=["sortingOrder","rowClass","rowSelection","overlayLoadingTemplate","overlayNoRowsTemplate","quickFilterText","rowModelType","editType","domLayout","clipboardDeliminator","rowGroupPanelShow","multiSortKey","pivotColumnGroupTotals","pivotRowTotals","pivotPanelShow"],e.OBJECT_PROPERTIES=["components","frameworkComponents","rowStyle","context","autoGroupColumnDef","groupColumnDef","localeText","icons","datasource","serverSideDatasource","viewportDatasource","groupRowRendererParams","aggFuncs","fullWidthCellRendererParams","defaultColGroupDef","defaultColDef","defaultExportParams","columnTypes","rowClassRules","detailGridOptions","detailCellRendererParams","loadingCellRendererParams","loadingOverlayComponentParams","noRowsOverlayComponentParams","popupParent","colResizeDefault","reduxStore","statusBar","sideBar"],e.ARRAY_PROPERTIES=["slaveGrids","alignedGrids","rowData","columnDefs","excelStyles","pinnedTopRowData","pinnedBottomRowData"],e.NUMBER_PROPERTIES=["rowHeight","detailRowHeight","rowBuffer","colWidth","headerHeight","groupHeaderHeight","floatingFiltersHeight","pivotHeaderHeight","pivotGroupHeaderHeight","groupDefaultExpanded","minColWidth","maxColWidth","viewportRowModelPageSize","viewportRowModelBufferSize","autoSizePadding","maxBlocksInCache","maxConcurrentDatasourceRequests","cacheOverflowSize","paginationPageSize","cacheBlockSize","infiniteInitialRowCount","scrollbarWidth","paginationStartPage","infiniteBlockSize","batchUpdateWaitMillis","blockLoadDebounceMillis"],e.BOOLEAN_PROPERTIES=["toolPanelSuppressRowGroups","toolPanelSuppressValues","toolPanelSuppressPivots","toolPanelSuppressPivotMode","toolPanelSuppressSideButtons","toolPanelSuppressColumnFilter","toolPanelSuppressColumnSelectAll","toolPanelSuppressColumnExpandAll","suppressMakeColumnVisibleAfterUnGroup","suppressRowClickSelection","suppressCellSelection","suppressHorizontalScroll","debug","enableBrowserTooltips","enableColResize","enableCellExpressions","enableSorting","enableServerSideSorting","enableFilter","enableServerSideFilter","angularCompileRows","angularCompileFilters","angularCompileHeaders","groupSuppressAutoColumn","groupSelectsChildren","groupIncludeFooter","groupIncludeTotalFooter","groupUseEntireRow","groupSuppressRow","groupSuppressBlankHeader","forPrint","suppressMenuHide","rowDeselection","unSortIcon","suppressMultiSort","singleClickEdit","suppressLoadingOverlay","suppressNoRowsOverlay","suppressAutoSize","suppressParentsInRowNodes","showToolPanel","suppressColumnMoveAnimation","suppressMovableColumns","suppressFieldDotNotation","enableRangeSelection","deltaSort","suppressTouch","suppressAsyncEvents","allowContextMenuWithControlKey","suppressContextMenu","suppressMenuFilterPanel","suppressMenuMainPanel","suppressMenuColumnPanel","rememberGroupStateWhenNewData","enableCellChangeFlash","suppressDragLeaveHidesColumns","suppressMiddleClickScrolls","suppressPreventDefaultOnMouseWheel","suppressUseColIdForGroups","suppressCopyRowsToClipboard","copyHeadersToClipboard","pivotMode","suppressAggFuncInHeader","suppressColumnVirtualisation","suppressAggAtRootLevel","suppressFocusAfterRefresh","functionsPassive","functionsReadOnly","animateRows","groupSelectsFiltered","groupRemoveSingleChildren","groupRemoveLowestSingleChildren","enableRtl","suppressClickEdit","rowDragManaged","suppressRowDrag","enableGroupEdit","embedFullWidthRows","deprecatedEmbedFullWidthRows","suppressTabbing","suppressPaginationPanel","floatingFilter","groupHideOpenParents","groupMultiAutoColumn","pagination","stopEditingWhenGridLosesFocus","paginationAutoPageSize","suppressScrollOnNewData","purgeClosedRowNodes","cacheQuickFilter","deltaRowDataMode","ensureDomOrder","accentedSort","pivotTotals","suppressChangeDetection","valueCache","valueCacheNeverExpires","aggregateOnlyChangedColumns","suppressAnimationFrame","suppressExcelExport","suppressCsvExport","treeData","masterDetail","suppressMultiRangeSelection","enterMovesDownAfterEdit","enterMovesDown","suppressPropertyNamesCheck","rowMultiSelectWithClick","contractColumnSelection","suppressEnterpriseResetOnNewColumns","enableOldSetFilterModel","suppressRowHoverHighlight","gridAutoHeight","suppressRowTransform","suppressClipboardPaste","serverSideSortingAlwaysResets","reactNext","suppressSetColumnStateEvents","enableCharts","deltaColumnMode","suppressMaintainUnsortedOrder","enableCellTextSelection","suppressBrowserResizeObserver","suppressMaxRenderedRowRestriction","excludeChildrenWhenTreeDataFiltering"],e.FUNCTION_PROPERTIES=["localeTextFunc","groupRowInnerRenderer","groupRowInnerRendererFramework","dateComponent","dateComponentFramework","groupRowRenderer","groupRowRendererFramework","isExternalFilterPresent","getRowHeight","doesExternalFilterPass","getRowClass","getRowStyle","getRowClassRules","traverseNode","getContextMenuItems","getMainMenuItems","processRowPostCreate","processCellForClipboard","getNodeChildDetails","groupRowAggNodes","getRowNodeId","isFullWidthCell","fullWidthCellRenderer","fullWidthCellRendererFramework","doesDataFlower","processSecondaryColDef","processSecondaryColGroupDef","getBusinessKeyForNode","sendToClipboard","navigateToNextCell","tabToNextCell","getDetailRowData","processCellFromClipboard","getDocument","postProcessPopup","getChildCount","getDataPath","loadingCellRenderer","loadingCellRendererFramework","loadingOverlayComponent","loadingOverlayComponentFramework","noRowsOverlayComponent","noRowsOverlayComponentFramework","detailCellRenderer","detailCellRendererFramework","onGridReady","defaultGroupSortComparator","isRowMaster","isRowSelectable","postSort","processHeaderForClipboard","paginationNumberFormatter","processDataFromClipboard","getServerSideGroupKey","isServerSideGroup","suppressKeyboardEvent"],e.ALL_PROPERTIES=e.ARRAY_PROPERTIES.concat(e.OBJECT_PROPERTIES).concat(e.STRING_PROPERTIES).concat(e.NUMBER_PROPERTIES).concat(e.FUNCTION_PROPERTIES).concat(e.BOOLEAN_PROPERTIES),e.FRAMEWORK_PROPERTIES=["__ob__","__metadata__","mappedColumnProperties","hasChildColumns","toColDef","createColDefFromGridColumn"],e}();t.PropertyKeys=o},72738:function(e,t,o){var n,r=this&&this.__extends||(n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])},n(e,t)},function(e,t){function o(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(o.prototype=t.prototype,new o)}),i=this&&this.__decorate||function(e,t,o,n){var r,i=arguments.length,s=i<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,n);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,o,s):r(t,o))||s);return i>3&&s&&Object.defineProperty(t,o,s),s},s=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0});var a=o(33669),l=o(47304),p=o(33018),u=o(59804),c=o(99162),d=o(61260),h=o(83921),f=o(81404),g=o(31551),m=o(43510),y=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r(t,e),t.prototype.registerGridComp=function(e){this.gridPanel=e,this.addDestroyableEventListener(this.eventService,p.Events.EVENT_BODY_HEIGHT_CHANGED,this.onBodyHeightChanged.bind(this)),this.addDestroyableEventListener(this.eventService,p.Events.EVENT_SCROLL_VISIBILITY_CHANGED,this.onScrollVisibilityChanged.bind(this)),this.checkPageSize()},t.prototype.notActive=function(){return!this.gridOptionsWrapper.isPaginationAutoPageSize()},t.prototype.onScrollVisibilityChanged=function(){this.checkPageSize()},t.prototype.onBodyHeightChanged=function(){this.checkPageSize()},t.prototype.checkPageSize=function(){if(!this.notActive()){var e=this.gridOptionsWrapper.getRowHeightAsNumber(),t=this.gridPanel.getBodyHeight();if(t>0){var o=Math.floor(t/e);this.gridOptionsWrapper.setProperty("paginationPageSize",o)}}},i([u.Autowired("eventService"),s("design:type",l.EventService)],t.prototype,"eventService",void 0),i([u.Autowired("gridOptionsWrapper"),s("design:type",c.GridOptionsWrapper)],t.prototype,"gridOptionsWrapper",void 0),i([u.Autowired("scrollVisibleService"),s("design:type",d.ScrollVisibleService)],t.prototype,"scrollVisibleService",void 0),i([u.Bean("paginationAutoPageSizeService")],t)}(a.BeanStub);t.PaginationAutoPageSizeService=y;var v=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.currentPage=0,t.topRowIndex=0,t.bottomRowIndex=0,t.pixelOffset=0,t}return r(t,e),t.prototype.postConstruct=function(){this.active=this.gridOptionsWrapper.isPagination(),this.addDestroyableEventListener(this.eventService,p.Events.EVENT_MODEL_UPDATED,this.onModelUpdated.bind(this)),this.addDestroyableEventListener(this.gridOptionsWrapper,"paginationPageSize",this.onModelUpdated.bind(this)),this.onModelUpdated()},t.prototype.ensureRowHeightsValid=function(e,t,o,n){var r=this.rowModel.ensureRowHeightsValid(e,t,this.getPageFirstRow(),this.getPageLastRow());return r&&this.setIndexesAndBounds(),r},t.prototype.isLastRowFound=function(){return this.rowModel.isLastRowFound()},t.prototype.onModelUpdated=function(e){this.setIndexesAndBounds();var t={type:p.Events.EVENT_PAGINATION_CHANGED,animate:!!e&&e.animate,newData:!!e&&e.newData,newPage:!!e&&e.newPage,keepRenderedRows:!!e&&e.keepRenderedRows,api:this.gridApi,columnApi:this.columnApi};this.eventService.dispatchEvent(t)},t.prototype.goToPage=function(e){if(this.active&&this.currentPage!==e){this.currentPage=e;var t={type:p.Events.EVENT_MODEL_UPDATED,animate:!1,keepRenderedRows:!1,newData:!1,newPage:!0,api:this.gridApi,columnApi:this.columnApi};this.onModelUpdated(t)}},t.prototype.getPixelOffset=function(){return this.pixelOffset},t.prototype.getRow=function(e){return this.rowModel.getRow(e)},t.prototype.getRowNode=function(e){return this.rowModel.getRowNode(e)},t.prototype.getRowIndexAtPixel=function(e){return this.rowModel.getRowIndexAtPixel(e)},t.prototype.getCurrentPageHeight=function(){return m._.missing(this.topRowBounds)||m._.missing(this.bottomRowBounds)?0:this.bottomRowBounds.rowTop+this.bottomRowBounds.rowHeight-this.topRowBounds.rowTop},t.prototype.isRowPresent=function(e){return!!this.rowModel.isRowPresent(e)&&e.rowIndex>=this.topRowIndex&&e.rowIndex<=this.bottomRowIndex},t.prototype.isEmpty=function(){return this.rowModel.isEmpty()},t.prototype.isRowsToRender=function(){return this.rowModel.isRowsToRender()},t.prototype.getNodesInRangeForSelection=function(e,t){return this.rowModel.getNodesInRangeForSelection(e,t)},t.prototype.forEachNode=function(e){return this.rowModel.forEachNode(e)},t.prototype.getType=function(){return this.rowModel.getType()},t.prototype.getRowBounds=function(e){return this.rowModel.getRowBounds(e)},t.prototype.getPageFirstRow=function(){return this.pageSize*this.currentPage},t.prototype.getPageLastRow=function(){var e=this.pageSize*(this.currentPage+1)-1,t=this.rowModel.getPageLastRow();return t>e?e:t},t.prototype.getRowCount=function(){return this.rowModel.getRowCount()},t.prototype.goToPageWithIndex=function(e){if(this.active){var t=Math.floor(e/this.pageSize);this.goToPage(t)}},t.prototype.getTotalRowCount=function(){return this.rowModel.getPageLastRow()+1},t.prototype.isLastPageFound=function(){return this.rowModel.isLastRowFound()},t.prototype.getCurrentPage=function(){return this.currentPage},t.prototype.goToNextPage=function(){this.goToPage(this.currentPage+1)},t.prototype.goToPreviousPage=function(){this.goToPage(this.currentPage-1)},t.prototype.goToFirstPage=function(){this.goToPage(0)},t.prototype.goToLastPage=function(){var e=this.rowModel.getPageLastRow()+1,t=Math.floor(e/this.pageSize);this.goToPage(t)},t.prototype.getPageSize=function(){return this.pageSize},t.prototype.getTotalPages=function(){return this.totalPages},t.prototype.setPageSize=function(){this.pageSize=this.gridOptionsWrapper.getPaginationPageSize(),this.pageSize>=1||(this.pageSize=100)},t.prototype.setIndexesAndBounds=function(){if(this.active){this.setPageSize();var e=this.getTotalRowCount();this.totalPages=Math.floor((e-1)/this.pageSize)+1,this.currentPage>=this.totalPages&&(this.currentPage=this.totalPages-1),(!m._.isNumeric(this.currentPage)||this.currentPage<0)&&(this.currentPage=0),this.topRowIndex=this.pageSize*this.currentPage,this.bottomRowIndex=this.pageSize*(this.currentPage+1)-1;var t=this.rowModel.getPageLastRow();this.bottomRowIndex>t&&(this.bottomRowIndex=t)}else this.pageSize=this.rowModel.getPageLastRow()+1,this.totalPages=1,this.currentPage=0,this.topRowIndex=0,this.bottomRowIndex=this.rowModel.getPageLastRow();this.topRowBounds=this.rowModel.getRowBounds(this.topRowIndex),this.bottomRowBounds=this.rowModel.getRowBounds(this.bottomRowIndex),this.pixelOffset=m._.exists(this.topRowBounds)?this.topRowBounds.rowTop:0},i([u.Autowired("rowModel"),s("design:type",Object)],t.prototype,"rowModel",void 0),i([u.Autowired("eventService"),s("design:type",l.EventService)],t.prototype,"eventService",void 0),i([u.Autowired("gridOptionsWrapper"),s("design:type",c.GridOptionsWrapper)],t.prototype,"gridOptionsWrapper",void 0),i([u.Autowired("selectionController"),s("design:type",h.SelectionController)],t.prototype,"selectionController",void 0),i([u.Autowired("columnApi"),s("design:type",f.ColumnApi)],t.prototype,"columnApi",void 0),i([u.Autowired("gridApi"),s("design:type",g.GridApi)],t.prototype,"gridApi",void 0),i([u.PostConstruct,s("design:type",Function),s("design:paramtypes",[]),s("design:returntype",void 0)],t.prototype,"postConstruct",null),i([u.Bean("paginationProxy")],t)}(a.BeanStub);t.PaginationProxy=v},73505:function(e,t,o){var n=this&&this.__decorate||function(e,t,o,n){var r,i=arguments.length,s=i<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,n);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,o,s):r(t,o))||s);return i>3&&s&&Object.defineProperty(t,o,s),s},r=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0});var i=o(59804),s=o(57663),a=o(39128),l=o(99162),p=o(47304),u=o(43510),c=function(){function e(){}return e.prototype.hideActiveMenu=function(){this.hidePopup&&this.hidePopup()},e.prototype.showMenuAfterMouseEvent=function(e,t){var o=this;this.showPopup(e,(function(n){o.popupService.positionPopupUnderMouseEvent({column:e,type:"columnMenu",mouseEvent:t,ePopup:n})}))},e.prototype.showMenuAfterButtonClick=function(e,t){var o=this;this.showPopup(e,(function(n){o.popupService.positionPopupUnderComponent({type:"columnMenu",eventSource:t,ePopup:n,keepWithinBounds:!0,column:e})}))},e.prototype.showPopup=function(e,t){var o,n=this,r=this.filterManager.getOrCreateFilterWrapper(e,"COLUMN_MENU"),i=document.createElement("div");u._.addCssClass(i,"ag-menu"),r.guiPromise.promise.then((function(e){i.appendChild(e)}));var s=function(e){"horizontal"===e.direction&&o()};this.eventService.addEventListener("bodyScroll",s),o=this.popupService.addAsModalPopup(i,!0,(function(){n.eventService.removeEventListener("bodyScroll",s),e.setMenuVisible(!1,"contextMenu")})),t(i),r.filterPromise.then((function(e){if(e.afterGuiAttached){var t={hidePopup:o};e.afterGuiAttached(t)}})),this.hidePopup=o,e.setMenuVisible(!0,"contextMenu")},e.prototype.isMenuEnabled=function(e){return e.isFilterAllowed()},n([i.Autowired("eventService"),r("design:type",p.EventService)],e.prototype,"eventService",void 0),n([i.Autowired("filterManager"),r("design:type",s.FilterManager)],e.prototype,"filterManager",void 0),n([i.Autowired("popupService"),r("design:type",a.PopupService)],e.prototype,"popupService",void 0),n([i.Autowired("gridOptionsWrapper"),r("design:type",l.GridOptionsWrapper)],e.prototype,"gridOptionsWrapper",void 0),n([i.Bean("menuFactory")],e)}();t.StandardMenuFactory=c},74096:(e,t,o)=>{Object.defineProperty(t,"__esModule",{value:!0});var n=o(43510),r=function(){function e(t){var o=this;this.items=[],this.params=t,this.eGui=document.createElement("div"),this.eGui.innerHTML=e.TEMPLATE,this.eHeader=this.eGui.querySelector('[ref="tabHeader"]'),this.eBody=this.eGui.querySelector('[ref="tabBody"]'),n._.addCssClass(this.eGui,t.cssClass),t.items&&t.items.forEach((function(e){return o.addItem(e)}))}return e.prototype.setAfterAttachedParams=function(e){this.afterAttachedParams=e},e.prototype.getMinDimensions=function(){var e=this.eGui.cloneNode(!0),t=e.querySelector('[ref="tabBody"]');e.style.position="fixed",this.eGui.appendChild(e);var o=0,r=0;return this.items.forEach((function(i){n._.clearElement(t);var s=i.tabbedItem.bodyPromise.resolveNow(null,(function(e){return e.cloneNode(!0)}));null!=s&&(t.appendChild(s),o<e.offsetWidth&&(o=e.offsetWidth),r<e.offsetHeight&&(r=e.offsetHeight))})),this.eGui.removeChild(e),{height:r,width:o}},e.prototype.showFirstItem=function(){this.items.length>0&&this.showItemWrapper(this.items[0])},e.prototype.addItem=function(e){var t=document.createElement("span");t.appendChild(e.title),n._.addCssClass(t,"ag-tab"),this.eHeader.appendChild(t);var o={tabbedItem:e,eHeaderButton:t};this.items.push(o),t.addEventListener("click",this.showItemWrapper.bind(this,o))},e.prototype.showItem=function(e){var t=n._.find(this.items,(function(t){return t.tabbedItem===e}));t&&this.showItemWrapper(t)},e.prototype.showItemWrapper=function(e){var t=this;this.params.onItemClicked&&this.params.onItemClicked({item:e.tabbedItem}),this.activeItem!==e?(n._.clearElement(this.eBody),e.tabbedItem.bodyPromise.then((function(e){t.eBody.appendChild(e)})),this.activeItem&&n._.removeCssClass(this.activeItem.eHeaderButton,"ag-tab-selected"),n._.addCssClass(e.eHeaderButton,"ag-tab-selected"),this.activeItem=e,e.tabbedItem.afterAttachedCallback&&e.tabbedItem.afterAttachedCallback(this.afterAttachedParams)):n._.callIfPresent(this.params.onActiveItemClicked)},e.prototype.getGui=function(){return this.eGui},e.TEMPLATE='<div><div ref="tabHeader" class="ag-tab-header"></div><div ref="tabBody" class="ag-tab-body"></div></div>',e}();t.TabbedLayout=r},74770:(e,t,o)=>{o.d(t,{JS:()=>Le,jN:()=>T});var n,r,i,s,a,l,p,u,c,d,h,f,g,m,y=o(33997),v=o(86637),C=o(42343),w=o(33868),_=o(18578),E=o(21655).URL,b=o(34110).Buffer,R=Symbol.for("vercel.ai.gateway.error"),S=class e extends(r=Error,n=R,r){constructor({message:e,statusCode:t=500,cause:o,generationId:r}){super(r?`${e} [${r}]`:e),this[n]=!0,this.statusCode=t,this.cause=o,this.generationId=r}static isInstance(t){return e.hasMarker(t)}static hasMarker(e){return"object"==typeof e&&null!==e&&R in e&&!0===e[R]}},O="GatewayAuthenticationError",P=`vercel.ai.gateway.error.${O}`,A=Symbol.for(P),T=class e extends(s=S,i=A,s){constructor({message:e="Authentication failed",statusCode:t=401,cause:o,generationId:n}={}){super({message:e,statusCode:t,cause:o,generationId:n}),this[i]=!0,this.name=O,this.type="authentication_error"}static isInstance(e){return S.hasMarker(e)&&A in e}static createContextualError({apiKeyProvided:t,oidcTokenProvided:o,message:n="Authentication failed",statusCode:r=401,cause:i,generationId:s}){let a;return a=t?"AI Gateway authentication failed: Invalid API key.\n\nCreate a new API key: https://vercel.com/d?to=%2F%5Bteam%5D%2F%7E%2Fai%2Fapi-keys\n\nProvide via 'apiKey' option or 'AI_GATEWAY_API_KEY' environment variable.":o?"AI Gateway authentication failed: Invalid OIDC token.\n\nRun 'npx vercel link' to link your project, then 'vc env pull' to fetch the token.\n\nAlternatively, use an API key: https://vercel.com/d?to=%2F%5Bteam%5D%2F%7E%2Fai%2Fapi-keys":"AI Gateway authentication failed: No authentication provided.\n\nOption 1 - API key:\nCreate an API key: https://vercel.com/d?to=%2F%5Bteam%5D%2F%7E%2Fai%2Fapi-keys\nProvide via 'apiKey' option or 'AI_GATEWAY_API_KEY' environment variable.\n\nOption 2 - OIDC token:\nRun 'npx vercel link' to link your project, then 'vc env pull' to fetch the token.",new e({message:a,statusCode:r,cause:i,generationId:s})}},D="GatewayInvalidRequestError",N=`vercel.ai.gateway.error.${D}`,I=Symbol.for(N),x=class extends(l=S,a=I,l){constructor({message:e="Invalid request",statusCode:t=400,cause:o,generationId:n}={}){super({message:e,statusCode:t,cause:o,generationId:n}),this[a]=!0,this.name=D,this.type="invalid_request_error"}static isInstance(e){return S.hasMarker(e)&&I in e}},F="GatewayRateLimitError",L=`vercel.ai.gateway.error.${F}`,M=Symbol.for(L),k=class extends(u=S,p=M,u){constructor({message:e="Rate limit exceeded",statusCode:t=429,cause:o,generationId:n}={}){super({message:e,statusCode:t,cause:o,generationId:n}),this[p]=!0,this.name=F,this.type="rate_limit_exceeded"}static isInstance(e){return S.hasMarker(e)&&M in e}},G="GatewayModelNotFoundError",V=`vercel.ai.gateway.error.${G}`,j=Symbol.for(V),W=(0,y.ID)((()=>(0,y.jN)(C.Ik({modelId:C.Yj()})))),H=class extends(d=S,c=j,d){constructor({message:e="Model not found",statusCode:t=404,modelId:o,cause:n,generationId:r}={}){super({message:e,statusCode:t,cause:n,generationId:r}),this[c]=!0,this.name=G,this.type="model_not_found",this.modelId=o}static isInstance(e){return S.hasMarker(e)&&j in e}},B="GatewayInternalServerError",U=`vercel.ai.gateway.error.${B}`,Y=Symbol.for(U),z=class extends(f=S,h=Y,f){constructor({message:e="Internal server error",statusCode:t=500,cause:o,generationId:n}={}){super({message:e,statusCode:t,cause:o,generationId:n}),this[h]=!0,this.name=B,this.type="internal_server_error"}static isInstance(e){return S.hasMarker(e)&&Y in e}},$="GatewayResponseError",K=`vercel.ai.gateway.error.${$}`,q=Symbol.for(K),Z=class extends(m=S,g=q,m){constructor({message:e="Invalid response from Gateway",statusCode:t=502,response:o,validationError:n,cause:r,generationId:i}={}){super({message:e,statusCode:t,cause:r,generationId:i}),this[g]=!0,this.name=$,this.type="response_error",this.response=o,this.validationError=n}static isInstance(e){return S.hasMarker(e)&&q in e}};async function Q({response:e,statusCode:t,defaultMessage:o="Gateway request failed",cause:n,authMethod:r}){var i;const s=await(0,y.ZZ)({value:e,schema:ee});if(!s.success){const r="object"==typeof e&&null!==e&&"generationId"in e?e.generationId:void 0;return new Z({message:`Invalid error response format: ${o}`,statusCode:t,response:e,validationError:s.error,cause:n,generationId:r})}const a=s.value,l=a.error.type,p=a.error.message,u=null!=(i=a.generationId)?i:void 0;switch(l){case"authentication_error":return T.createContextualError({apiKeyProvided:"api-key"===r,oidcTokenProvided:"oidc"===r,statusCode:t,cause:n,generationId:u});case"invalid_request_error":return new x({message:p,statusCode:t,cause:n,generationId:u});case"rate_limit_exceeded":return new k({message:p,statusCode:t,cause:n,generationId:u});case"model_not_found":{const e=await(0,y.ZZ)({value:a.error.param,schema:W});return new H({message:p,statusCode:t,modelId:e.success?e.value.modelId:void 0,cause:n,generationId:u})}default:return new z({message:p,statusCode:t,cause:n,generationId:u})}}var X,J,ee=(0,y.ID)((()=>(0,y.jN)(C.Ik({error:C.Ik({message:C.Yj(),type:C.Yj().nullish(),param:C.L5().nullish(),code:C.KC([C.Yj(),C.ai()]).nullish()}),generationId:C.Yj().nullish()})))),te="GatewayTimeoutError",oe=`vercel.ai.gateway.error.${te}`,ne=Symbol.for(oe),re=class e extends(J=S,X=ne,J){constructor({message:e="Request timed out",statusCode:t=408,cause:o,generationId:n}={}){super({message:e,statusCode:t,cause:o,generationId:n}),this[X]=!0,this.name=te,this.type="timeout_error"}static isInstance(e){return S.hasMarker(e)&&ne in e}static createTimeoutError({originalMessage:t,statusCode:o=408,cause:n,generationId:r}){return new e({message:`Gateway request timed out: ${t}\n\n This is a client-side timeout. To resolve this, increase your timeout configuration: https://vercel.com/docs/ai-gateway/capabilities/video-generation#extending-timeouts-for-node.js`,statusCode:o,cause:n,generationId:r})}};function ie(e){if(!(e instanceof Error))return!1;const t=e.code;return"string"==typeof t&&["UND_ERR_HEADERS_TIMEOUT","UND_ERR_BODY_TIMEOUT","UND_ERR_CONNECT_TIMEOUT"].includes(t)}async function se(e,t){var o;return S.isInstance(e)?e:ie(e)?re.createTimeoutError({originalMessage:e instanceof Error?e.message:"Unknown error",cause:e}):v.hL.isInstance(e)?e.cause&&ie(e.cause)?re.createTimeoutError({originalMessage:e.message,cause:e}):await Q({response:ae(e),statusCode:null!=(o=e.statusCode)?o:500,defaultMessage:"Gateway request failed",cause:e,authMethod:t}):await Q({response:{},statusCode:500,defaultMessage:e instanceof Error?`Gateway request failed: ${e.message}`:"Unknown Gateway error",cause:e,authMethod:t})}function ae(e){if(void 0!==e.data)return e.data;if(null!=e.responseBody)try{return JSON.parse(e.responseBody)}catch(t){return e.responseBody}return{}}var le="ai-gateway-auth-method";async function pe(e){const t=await(0,y.ZZ)({value:e[le],schema:ue});return t.success?t.value:void 0}var ue=(0,y.ID)((()=>(0,y.jN)(C.KC([C.eu("api-key"),C.eu("oidc")])))),ce=class{constructor(e){this.config=e}async getAvailableModels(){try{const{value:e}=await(0,y.$b)({url:`${this.config.baseURL}/config`,headers:await(0,y.hd)(this.config.headers()),successfulResponseHandler:(0,y.cV)(de),failedResponseHandler:(0,y.sl)({errorSchema:C.bz(),errorToMessage:e=>e}),fetch:this.config.fetch});return e}catch(e){throw await se(e)}}async getCredits(){try{const e=new E(this.config.baseURL),{value:t}=await(0,y.$b)({url:`${e.origin}/v1/credits`,headers:await(0,y.hd)(this.config.headers()),successfulResponseHandler:(0,y.cV)(he),failedResponseHandler:(0,y.sl)({errorSchema:C.bz(),errorToMessage:e=>e}),fetch:this.config.fetch});return t}catch(e){throw await se(e)}}},de=(0,y.ID)((()=>(0,y.jN)(C.Ik({models:C.YO(C.Ik({id:C.Yj(),name:C.Yj(),description:C.Yj().nullish(),pricing:C.Ik({input:C.Yj(),output:C.Yj(),input_cache_read:C.Yj().nullish(),input_cache_write:C.Yj().nullish()}).transform((({input:e,output:t,input_cache_read:o,input_cache_write:n})=>({input:e,output:t,...o?{cachedInputTokens:o}:{},...n?{cacheCreationInputTokens:n}:{}}))).nullish(),specification:C.Ik({specificationVersion:C.eu("v3"),provider:C.Yj(),modelId:C.Yj()}),modelType:C.k5(["embedding","image","language","video"]).nullish()}))})))),he=(0,y.ID)((()=>(0,y.jN)(C.Ik({balance:C.Yj(),total_used:C.Yj()}).transform((({balance:e,total_used:t})=>({balance:e,totalUsed:t})))))),fe=class{constructor(e,t){this.modelId=e,this.config=t,this.specificationVersion="v3",this.supportedUrls={"*/*":[/.*/]}}get provider(){return this.config.provider}async getArgs(e){const{abortSignal:t,...o}=e;return{args:this.maybeEncodeFileParts(o),warnings:[]}}async doGenerate(e){const{args:t,warnings:o}=await this.getArgs(e),{abortSignal:n}=e,r=await(0,y.hd)(this.config.headers());try{const{responseHeaders:i,value:s,rawValue:a}=await(0,y.GU)({url:this.getUrl(),headers:(0,y.m2)(r,e.headers,this.getModelConfigHeaders(this.modelId,!1),await(0,y.hd)(this.config.o11yHeaders)),body:t,successfulResponseHandler:(0,y.cV)(C.bz()),failedResponseHandler:(0,y.sl)({errorSchema:C.bz(),errorToMessage:e=>e}),...n&&{abortSignal:n},fetch:this.config.fetch});return{...s,request:{body:t},response:{headers:i,body:a},warnings:o}}catch(e){throw await se(e,await pe(r))}}async doStream(e){const{args:t,warnings:o}=await this.getArgs(e),{abortSignal:n}=e,r=await(0,y.hd)(this.config.headers());try{const{value:i,responseHeaders:s}=await(0,y.GU)({url:this.getUrl(),headers:(0,y.m2)(r,e.headers,this.getModelConfigHeaders(this.modelId,!0),await(0,y.hd)(this.config.o11yHeaders)),body:t,successfulResponseHandler:(0,y.Ds)(C.bz()),failedResponseHandler:(0,y.sl)({errorSchema:C.bz(),errorToMessage:e=>e}),...n&&{abortSignal:n},fetch:this.config.fetch});return{stream:i.pipeThrough(new TransformStream({start(e){o.length>0&&e.enqueue({type:"stream-start",warnings:o})},transform(t,o){if(t.success){const n=t.value;if("raw"===n.type&&!e.includeRawChunks)return;"response-metadata"===n.type&&n.timestamp&&"string"==typeof n.timestamp&&(n.timestamp=new Date(n.timestamp)),o.enqueue(n)}else o.error(t.error)}})),request:{body:t},response:{headers:s}}}catch(e){throw await se(e,await pe(r))}}isFilePart(e){return e&&"object"==typeof e&&"type"in e&&"file"===e.type}maybeEncodeFileParts(e){for(const t of e.prompt)for(const e of t.content)if(this.isFilePart(e)){const t=e;if(t.data instanceof Uint8Array){const e=Uint8Array.from(t.data),o=b.from(e).toString("base64");t.data=new E(`data:${t.mediaType||"application/octet-stream"};base64,${o}`)}}return e}getUrl(){return`${this.config.baseURL}/language-model`}getModelConfigHeaders(e,t){return{"ai-language-model-specification-version":"3","ai-language-model-id":e,"ai-language-model-streaming":String(t)}}},ge=class{constructor(e,t){this.modelId=e,this.config=t,this.specificationVersion="v3",this.maxEmbeddingsPerCall=2048,this.supportsParallelCalls=!0}get provider(){return this.config.provider}async doEmbed({values:e,headers:t,abortSignal:o,providerOptions:n}){var r;const i=await(0,y.hd)(this.config.headers());try{const{responseHeaders:s,value:a,rawValue:l}=await(0,y.GU)({url:this.getUrl(),headers:(0,y.m2)(i,null!=t?t:{},this.getModelConfigHeaders(),await(0,y.hd)(this.config.o11yHeaders)),body:{values:e,...n?{providerOptions:n}:{}},successfulResponseHandler:(0,y.cV)(me),failedResponseHandler:(0,y.sl)({errorSchema:C.bz(),errorToMessage:e=>e}),...o&&{abortSignal:o},fetch:this.config.fetch});return{embeddings:a.embeddings,usage:null!=(r=a.usage)?r:void 0,providerMetadata:a.providerMetadata,response:{headers:s,body:l},warnings:[]}}catch(e){throw await se(e,await pe(i))}}getUrl(){return`${this.config.baseURL}/embedding-model`}getModelConfigHeaders(){return{"ai-embedding-model-specification-version":"3","ai-model-id":this.modelId}}},me=(0,y.ID)((()=>(0,y.jN)(C.Ik({embeddings:C.YO(C.YO(C.ai())),usage:C.Ik({tokens:C.ai()}).nullish(),providerMetadata:C.g1(C.Yj(),C.g1(C.Yj(),C.L5())).optional()})))),ye=class{constructor(e,t){this.modelId=e,this.config=t,this.specificationVersion="v3",this.maxImagesPerCall=Number.MAX_SAFE_INTEGER}get provider(){return this.config.provider}async doGenerate({prompt:e,n:t,size:o,aspectRatio:n,seed:r,files:i,mask:s,providerOptions:a,headers:l,abortSignal:p}){var u,c,d,h;const f=await(0,y.hd)(this.config.headers());try{const{responseHeaders:g,value:m,rawValue:v}=await(0,y.GU)({url:this.getUrl(),headers:(0,y.m2)(f,null!=l?l:{},this.getModelConfigHeaders(),await(0,y.hd)(this.config.o11yHeaders)),body:{prompt:e,n:t,...o&&{size:o},...n&&{aspectRatio:n},...r&&{seed:r},...a&&{providerOptions:a},...i&&{files:i.map((e=>ve(e)))},...s&&{mask:ve(s)}},successfulResponseHandler:(0,y.cV)(Ee),failedResponseHandler:(0,y.sl)({errorSchema:C.bz(),errorToMessage:e=>e}),...p&&{abortSignal:p},fetch:this.config.fetch});return{images:m.images,warnings:null!=(u=m.warnings)?u:[],providerMetadata:m.providerMetadata,response:{timestamp:new Date,modelId:this.modelId,headers:g},...null!=m.usage&&{usage:{inputTokens:null!=(c=m.usage.inputTokens)?c:void 0,outputTokens:null!=(d=m.usage.outputTokens)?d:void 0,totalTokens:null!=(h=m.usage.totalTokens)?h:void 0}}}}catch(e){throw await se(e,await pe(f))}}getUrl(){return`${this.config.baseURL}/image-model`}getModelConfigHeaders(){return{"ai-image-model-specification-version":"3","ai-model-id":this.modelId}}};function ve(e){return"file"===e.type&&e.data instanceof Uint8Array?{...e,data:(0,y.n_)(e.data)}:e}var Ce=C.Ik({images:C.YO(C.L5()).optional()}).catchall(C.L5()),we=C.gM("type",[C.Ik({type:C.eu("unsupported"),feature:C.Yj(),details:C.Yj().optional()}),C.Ik({type:C.eu("compatibility"),feature:C.Yj(),details:C.Yj().optional()}),C.Ik({type:C.eu("other"),message:C.Yj()})]),_e=C.Ik({inputTokens:C.ai().nullish(),outputTokens:C.ai().nullish(),totalTokens:C.ai().nullish()}),Ee=C.Ik({images:C.YO(C.Yj()),warnings:C.YO(we).optional(),providerMetadata:C.g1(C.Yj(),Ce).optional(),usage:_e.optional()}),be=class{constructor(e,t){this.modelId=e,this.config=t,this.specificationVersion="v3",this.maxVideosPerCall=Number.MAX_SAFE_INTEGER}get provider(){return this.config.provider}async doGenerate({prompt:e,n:t,aspectRatio:o,resolution:n,duration:r,fps:i,seed:s,image:a,providerOptions:l,headers:p,abortSignal:u}){var c;const d=await(0,y.hd)(this.config.headers());try{const{responseHeaders:f,value:g,rawValue:m}=await(0,y.GU)({url:this.getUrl(),headers:(0,y.m2)(d,null!=p?p:{},this.getModelConfigHeaders(),await(0,y.hd)(this.config.o11yHeaders)),body:{prompt:e,n:t,...o&&{aspectRatio:o},...n&&{resolution:n},...r&&{duration:r},...i&&{fps:i},...s&&{seed:s},...l&&{providerOptions:l},...a&&{image:(h=a,"file"===h.type&&h.data instanceof Uint8Array?{...h,data:(0,y.n_)(h.data)}:h)}},successfulResponseHandler:(0,y.cV)(Pe),failedResponseHandler:(0,y.sl)({errorSchema:C.bz(),errorToMessage:e=>e}),...u&&{abortSignal:u},fetch:this.config.fetch});return{videos:g.videos,warnings:null!=(c=g.warnings)?c:[],providerMetadata:g.providerMetadata,response:{timestamp:new Date,modelId:this.modelId,headers:f}}}catch(e){throw await se(e,await pe(d))}var h}getUrl(){return`${this.config.baseURL}/video-model`}getModelConfigHeaders(){return{"ai-video-model-specification-version":"3","ai-model-id":this.modelId}}};var Re=C.Ik({videos:C.YO(C.L5()).optional()}).catchall(C.L5()),Se=C.KC([C.Ik({type:C.eu("url"),url:C.Yj(),mediaType:C.Yj()}),C.Ik({type:C.eu("base64"),data:C.Yj(),mediaType:C.Yj()})]),Oe=C.gM("type",[C.Ik({type:C.eu("unsupported"),feature:C.Yj(),details:C.Yj().optional()}),C.Ik({type:C.eu("compatibility"),feature:C.Yj(),details:C.Yj().optional()}),C.Ik({type:C.eu("other"),message:C.Yj()})]),Pe=C.Ik({videos:C.YO(Se),warnings:C.YO(Oe).optional(),providerMetadata:C.g1(C.Yj(),Re).optional()}),Ae=(0,y.ID)((()=>(0,y.jN)(w.Ik({objective:w.Yj().describe("Natural-language description of the web research goal, including source or freshness guidance and broader context from the task. Maximum 5000 characters."),search_queries:w.YO(w.Yj()).optional().describe("Optional search queries to supplement the objective. Maximum 200 characters per query."),mode:w.k5(["one-shot","agentic"]).optional().describe('Mode preset: "one-shot" for comprehensive results with longer excerpts (default), "agentic" for concise, token-efficient results for multi-step workflows.'),max_results:w.ai().optional().describe("Maximum number of results to return (1-20). Defaults to 10 if not specified."),source_policy:w.Ik({include_domains:w.YO(w.Yj()).optional().describe("List of domains to include in search results."),exclude_domains:w.YO(w.Yj()).optional().describe("List of domains to exclude from search results."),after_date:w.Yj().optional().describe("Only include results published after this date (ISO 8601 format).")}).optional().describe("Source policy for controlling which domains to include/exclude and freshness."),excerpts:w.Ik({max_chars_per_result:w.ai().optional().describe("Maximum characters per result."),max_chars_total:w.ai().optional().describe("Maximum total characters across all results.")}).optional().describe("Excerpt configuration for controlling result length."),fetch_policy:w.Ik({max_age_seconds:w.ai().optional().describe("Maximum age in seconds for cached content. Set to 0 to always fetch fresh content.")}).optional().describe("Fetch policy for controlling content freshness.")})))),Te=(0,y.ID)((()=>(0,y.jN)(w.KC([w.Ik({searchId:w.Yj(),results:w.YO(w.Ik({url:w.Yj(),title:w.Yj(),excerpt:w.Yj(),publishDate:w.Yj().nullable().optional(),relevanceScore:w.ai().optional()}))}),w.Ik({error:w.k5(["api_error","rate_limit","timeout","invalid_input","configuration_error","unknown"]),statusCode:w.ai().optional(),message:w.Yj()})])))),De=(0,y.wA)({id:"gateway.parallel_search",inputSchema:Ae,outputSchema:Te}),Ne=(0,y.ID)((()=>(0,y.jN)(w.Ik({query:w.KC([w.Yj(),w.YO(w.Yj())]).describe("Search query (string) or multiple queries (array of up to 5 strings). Multi-query searches return combined results from all queries."),max_results:w.ai().optional().describe("Maximum number of search results to return (1-20, default: 10)"),max_tokens_per_page:w.ai().optional().describe("Maximum number of tokens to extract per search result page (256-2048, default: 2048)"),max_tokens:w.ai().optional().describe("Maximum total tokens across all search results (default: 25000, max: 1000000)"),country:w.Yj().optional().describe("Two-letter ISO 3166-1 alpha-2 country code for regional search results (e.g., 'US', 'GB', 'FR')"),search_domain_filter:w.YO(w.Yj()).optional().describe("List of domains to include or exclude from search results (max 20). To include: ['nature.com', 'science.org']. To exclude: ['-example.com', '-spam.net']"),search_language_filter:w.YO(w.Yj()).optional().describe("List of ISO 639-1 language codes to filter results (max 10, lowercase). Examples: ['en', 'fr', 'de']"),search_after_date:w.Yj().optional().describe("Include only results published after this date. Format: 'MM/DD/YYYY' (e.g., '3/1/2025'). Cannot be used with search_recency_filter."),search_before_date:w.Yj().optional().describe("Include only results published before this date. Format: 'MM/DD/YYYY' (e.g., '3/15/2025'). Cannot be used with search_recency_filter."),last_updated_after_filter:w.Yj().optional().describe("Include only results last updated after this date. Format: 'MM/DD/YYYY' (e.g., '3/1/2025'). Cannot be used with search_recency_filter."),last_updated_before_filter:w.Yj().optional().describe("Include only results last updated before this date. Format: 'MM/DD/YYYY' (e.g., '3/15/2025'). Cannot be used with search_recency_filter."),search_recency_filter:w.k5(["day","week","month","year"]).optional().describe("Filter results by relative time period. Cannot be used with search_after_date or search_before_date.")})))),Ie=(0,y.ID)((()=>(0,y.jN)(w.KC([w.Ik({results:w.YO(w.Ik({title:w.Yj(),url:w.Yj(),snippet:w.Yj(),date:w.Yj().optional(),lastUpdated:w.Yj().optional()})),id:w.Yj()}),w.Ik({error:w.k5(["api_error","rate_limit","timeout","invalid_input","unknown"]),statusCode:w.ai().optional(),message:w.Yj()})])))),xe=(0,y.wA)({id:"gateway.perplexity_search",inputSchema:Ne,outputSchema:Ie}),Fe={parallelSearch:(e={})=>De(e),perplexitySearch:(e={})=>xe(e)},Le=function(e={}){var t,o;let n=null,r=null;const i=null!=(t=e.metadataCacheRefreshMillis)?t:3e5;let s=0;const a=null!=(o=(0,y.ae)(e.baseURL))?o:"https://ai-gateway.vercel.sh/v3/ai",l=async()=>{try{const t=await async function(e){const t=(0,y.x3)({settingValue:e.apiKey,environmentVariableName:"AI_GATEWAY_API_KEY"});return t?{token:t,authMethod:"api-key"}:{token:await(0,_.getVercelOidcToken)(),authMethod:"oidc"}}(e);return(0,y.WZ)({Authorization:`Bearer ${t.token}`,"ai-gateway-protocol-version":"0.0.1",[le]:t.authMethod,...e.headers},"ai-sdk/gateway/3.0.46")}catch(e){throw T.createContextualError({apiKeyProvided:!1,oidcTokenProvided:!1,statusCode:401,cause:e})}},p=()=>{const e=(0,y.x3)({settingValue:void 0,environmentVariableName:"VERCEL_DEPLOYMENT_ID"}),t=(0,y.x3)({settingValue:void 0,environmentVariableName:"VERCEL_ENV"}),o=(0,y.x3)({settingValue:void 0,environmentVariableName:"VERCEL_REGION"});return async()=>{const n=await async function(){var e;return null==(e=(0,_.getContext)().headers)?void 0:e["x-vercel-id"]}();return{...e&&{"ai-o11y-deployment-id":e},...t&&{"ai-o11y-environment":t},...o&&{"ai-o11y-region":o},...n&&{"ai-o11y-request-id":n}}}},u=t=>new fe(t,{provider:"gateway",baseURL:a,headers:l,fetch:e.fetch,o11yHeaders:p()}),c=function(e){if(new.target)throw new Error("The Gateway Provider model function cannot be called with the new keyword.");return u(e)};c.specificationVersion="v3",c.getAvailableModels=async()=>{var t,o,p;const u=null!=(p=null==(o=null==(t=e._internal)?void 0:t.currentDate)?void 0:o.call(t).getTime())?p:Date.now();return(!n||u-s>i)&&(s=u,n=new ce({baseURL:a,headers:l,fetch:e.fetch}).getAvailableModels().then((e=>(r=e,e))).catch((async e=>{throw await se(e,await pe(await l()))}))),r?Promise.resolve(r):n},c.getCredits=async()=>new ce({baseURL:a,headers:l,fetch:e.fetch}).getCredits().catch((async e=>{throw await se(e,await pe(await l()))})),c.imageModel=t=>new ye(t,{provider:"gateway",baseURL:a,headers:l,fetch:e.fetch,o11yHeaders:p()}),c.languageModel=u;const d=t=>new ge(t,{provider:"gateway",baseURL:a,headers:l,fetch:e.fetch,o11yHeaders:p()});return c.embeddingModel=d,c.textEmbeddingModel=d,c.videoModel=t=>new be(t,{provider:"gateway",baseURL:a,headers:l,fetch:e.fetch,o11yHeaders:p()}),c.chat=c.languageModel,c.embedding=c.embeddingModel,c.image=c.imageModel,c.video=c.videoModel,c.tools=Fe,c}()},74864:function(e,t,o){var n,r=this&&this.__extends||(n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])},n(e,t)},function(e,t){function o(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(o.prototype=t.prototype,new o)});Object.defineProperty(t,"__esModule",{value:!0});var i=o(38830),s=o(43510),a=function(e){function t(){var o=e.call(this,t.TEMPLATE)||this;return o.refreshCount=0,o.eCurrent=o.queryForHtmlElement(".ag-value-slide-current"),o}return r(t,e),t.prototype.init=function(e){this.params=e,this.refresh(e)},t.prototype.addSlideAnimation=function(){var e=this;this.refreshCount++;var t=this.refreshCount;this.ePrevious&&this.getGui().removeChild(this.ePrevious),this.ePrevious=s._.loadTemplate('<span class="ag-value-slide-previous ag-value-slide-out"></span>'),this.ePrevious.innerHTML=this.eCurrent.innerHTML,this.getGui().insertBefore(this.ePrevious,this.eCurrent),window.setTimeout((function(){t===e.refreshCount&&s._.addCssClass(e.ePrevious,"ag-value-slide-out-end")}),50),window.setTimeout((function(){t===e.refreshCount&&(e.getGui().removeChild(e.ePrevious),e.ePrevious=null)}),3e3)},t.prototype.refresh=function(e){var t=e.value;if(s._.missing(t)&&(t=""),t!==this.lastValue)return this.addSlideAnimation(),this.lastValue=t,s._.exists(e.valueFormatted)?this.eCurrent.innerHTML=e.valueFormatted:s._.exists(e.value)?this.eCurrent.innerHTML=t:s._.clearElement(this.eCurrent),!0},t.TEMPLATE='<span><span class="ag-value-slide-current"></span></span>',t}(i.Component);t.AnimateSlideCellRenderer=a},76414:function(e,t,o){var n,r=this&&this.__extends||(n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])},n(e,t)},function(e,t){function o(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(o.prototype=t.prototype,new o)});Object.defineProperty(t,"__esModule",{value:!0});var i=o(38830),s=o(43510),a=function(e){function t(){var o=e.call(this,t.TEMPLATE)||this;return o.refreshCount=0,o}return r(t,e),t.prototype.init=function(e){this.eValue=this.queryForHtmlElement(".ag-value-change-value"),this.eDelta=this.queryForHtmlElement(".ag-value-change-delta"),this.refresh(e)},t.prototype.showDelta=function(e,t){var o=Math.abs(t),n=e.formatValue(o),r=s._.exists(n)?n:o,i=t>=0;this.eDelta.innerHTML=i?"↑"+r:"↓"+r,s._.addOrRemoveCssClass(this.eDelta,"ag-value-change-delta-up",i),s._.addOrRemoveCssClass(this.eDelta,"ag-value-change-delta-down",!i)},t.prototype.setTimerToRemoveDelta=function(){var e=this;this.refreshCount++;var t=this.refreshCount;window.setTimeout((function(){t===e.refreshCount&&e.hideDeltaValue()}),2e3)},t.prototype.hideDeltaValue=function(){s._.removeCssClass(this.eValue,"ag-value-change-value-highlight"),s._.clearElement(this.eDelta)},t.prototype.refresh=function(e){var t=e.value;if(t!==this.lastValue){if(s._.exists(e.valueFormatted)?this.eValue.innerHTML=e.valueFormatted:s._.exists(e.value)?this.eValue.innerHTML=t:s._.clearElement(this.eValue),"number"==typeof t&&"number"==typeof this.lastValue){var o=t-this.lastValue;this.showDelta(e,o)}return this.lastValue&&s._.addCssClass(this.eValue,"ag-value-change-value-highlight"),this.setTimerToRemoveDelta(),this.lastValue=t,!0}},t.TEMPLATE='<span><span class="ag-value-change-delta"></span><span class="ag-value-change-value"></span></span>',t}(i.Component);t.AnimateShowChangeCellRenderer=a},77171:function(e,t,o){var n=this&&this.__decorate||function(e,t,o,n){var r,i=arguments.length,s=i<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,n);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,o,s):r(t,o))||s);return i>3&&s&&Object.defineProperty(t,o,s),s},r=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0});var i=o(47304),s=o(33018),a=o(99162),l=o(83921),p=o(3978),u=o(51890),c=o(81404),d=o(59804),h=o(44494),f=o(79255),g=o(31551),m=o(43510),y=function(){function e(){this.childrenMapped={},this.selectable=!0,this.__objectId=e.OBJECT_ID_SEQUENCE++,this.alreadyRendered=!1,this.selected=!1}return e.prototype.setData=function(e){var t=this.data;this.data=e,this.valueCache.onDataChanged(),this.updateDataOnDetailNode(),this.checkRowSelectable();var o=this.createDataChangedEvent(e,t,!1);this.dispatchLocalEvent(o)},e.prototype.updateDataOnDetailNode=function(){this.detailNode&&(this.detailNode.data=this.data)},e.prototype.createDataChangedEvent=function(t,o,n){return{type:e.EVENT_DATA_CHANGED,node:this,oldData:o,newData:t,update:n}},e.prototype.createLocalRowEvent=function(e){return{type:e,node:this}},e.prototype.updateData=function(e){var t=this.data;this.data=e,this.updateDataOnDetailNode(),this.checkRowSelectable(),this.updateDataOnDetailNode();var o=this.createDataChangedEvent(e,t,!0);this.dispatchLocalEvent(o)},e.prototype.getRowIndexString=function(){return this.rowPinned===h.Constants.PINNED_TOP?"t-"+this.rowIndex:this.rowPinned===h.Constants.PINNED_BOTTOM?"b-"+this.rowIndex:this.rowIndex.toString()},e.prototype.createDaemonNode=function(){var t=new e;return this.context.wireBean(t),t.id=this.id,t.data=this.data,t.daemon=!0,t.selected=this.selected,t.level=this.level,t},e.prototype.setDataAndId=function(e,t){var o=m._.exists(this.id)?this.createDaemonNode():null,n=this.data;this.data=e,this.updateDataOnDetailNode(),this.setId(t),this.selectionController.syncInRowNode(this,o),this.checkRowSelectable();var r=this.createDataChangedEvent(e,n,!1);this.dispatchLocalEvent(r)},e.prototype.checkRowSelectable=function(){var e=this.gridOptionsWrapper.getIsRowSelectableFunc(),t=e&&m._.exists(this);this.setRowSelectable(!t||e(this))},e.prototype.setRowSelectable=function(t){this.selectable!==t&&(this.selectable=t,this.eventService&&this.eventService.dispatchEvent(this.createLocalRowEvent(e.EVENT_SELECTABLE_CHANGED)))},e.prototype.setId=function(e){var t=this.gridOptionsWrapper.getRowNodeIdFunc();t?this.data?this.id=t(this.data):this.id=void 0:this.id=e},e.prototype.isPixelInRange=function(e){return e>=this.rowTop&&e<this.rowTop+this.rowHeight},e.prototype.clearRowTop=function(){this.oldRowTop=this.rowTop,this.setRowTop(null)},e.prototype.setFirstChild=function(t){this.firstChild!==t&&(this.firstChild=t,this.eventService&&this.eventService.dispatchEvent(this.createLocalRowEvent(e.EVENT_FIRST_CHILD_CHANGED)))},e.prototype.setLastChild=function(t){this.lastChild!==t&&(this.lastChild=t,this.eventService&&this.eventService.dispatchEvent(this.createLocalRowEvent(e.EVENT_LAST_CHILD_CHANGED)))},e.prototype.setChildIndex=function(t){this.childIndex!==t&&(this.childIndex=t,this.eventService&&this.eventService.dispatchEvent(this.createLocalRowEvent(e.EVENT_CHILD_INDEX_CHANGED)))},e.prototype.setRowTop=function(t){this.rowTop!==t&&(this.rowTop=t,this.eventService&&this.eventService.dispatchEvent(this.createLocalRowEvent(e.EVENT_TOP_CHANGED)))},e.prototype.setDragging=function(t){this.dragging!==t&&(this.dragging=t,this.eventService&&this.eventService.dispatchEvent(this.createLocalRowEvent(e.EVENT_DRAGGING_CHANGED)))},e.prototype.setAllChildrenCount=function(t){this.allChildrenCount!==t&&(this.allChildrenCount=t,this.eventService&&this.eventService.dispatchEvent(this.createLocalRowEvent(e.EVENT_ALL_CHILDREN_COUNT_CHANGED)))},e.prototype.setRowHeight=function(t,o){void 0===o&&(o=!1),this.rowHeight=t,this.rowHeightEstimated=o,this.eventService&&this.eventService.dispatchEvent(this.createLocalRowEvent(e.EVENT_HEIGHT_CHANGED))},e.prototype.setRowIndex=function(t){this.rowIndex=t,this.eventService&&this.eventService.dispatchEvent(this.createLocalRowEvent(e.EVENT_ROW_INDEX_CHANGED))},e.prototype.setUiLevel=function(t){this.uiLevel!==t&&(this.uiLevel=t,this.eventService&&this.eventService.dispatchEvent(this.createLocalRowEvent(e.EVENT_UI_LEVEL_CHANGED)))},e.prototype.setExpanded=function(t){if(this.expanded!==t){this.expanded=t,this.eventService&&this.eventService.dispatchEvent(this.createLocalRowEvent(e.EVENT_EXPANDED_CHANGED));var o=this.createGlobalRowEvent(s.Events.EVENT_ROW_GROUP_OPENED);this.mainEventService.dispatchEvent(o),this.gridOptionsWrapper.isGroupIncludeFooter()&&this.gridApi.redrawRows({rowNodes:[this]})}},e.prototype.createGlobalRowEvent=function(e){return{type:e,node:this,data:this.data,rowIndex:this.rowIndex,rowPinned:this.rowPinned,context:this.gridOptionsWrapper.getContext(),api:this.gridOptionsWrapper.getApi(),columnApi:this.gridOptionsWrapper.getColumnApi()}},e.prototype.dispatchLocalEvent=function(e){this.eventService&&this.eventService.dispatchEvent(e)},e.prototype.setDataValue=function(e,t){var o=this.columnController.getPrimaryColumn(e);this.valueService.setValue(this,o,t),this.dispatchCellChangedEvent(o,t)},e.prototype.setGroupValue=function(e,t){var o=this.columnController.getGridColumn(e);m._.missing(this.groupData)&&(this.groupData={}),this.groupData[o.getColId()]=t,this.dispatchCellChangedEvent(o,t)},e.prototype.setAggData=function(e){var t=this,o=m._.getAllKeysInObjects([this.aggData,e]);this.aggData=e,this.eventService&&o.forEach((function(e){var o=t.columnController.getGridColumn(e),n=t.aggData?t.aggData[e]:void 0;t.dispatchCellChangedEvent(o,n)}))},e.prototype.hasChildren=function(){return this.group||this.childrenAfterGroup&&this.childrenAfterGroup.length>0},e.prototype.isEmptyFillerNode=function(){return this.group&&m._.missingOrEmpty(this.childrenAfterGroup)},e.prototype.dispatchCellChangedEvent=function(t,o){var n={type:e.EVENT_CELL_CHANGED,node:this,column:t,newValue:o};this.dispatchLocalEvent(n)},e.prototype.resetQuickFilterAggregateText=function(){this.quickFilterAggregateText=null},e.prototype.isExpandable=function(){return this.hasChildren()||this.master},e.prototype.isSelected=function(){return this.footer?this.sibling.isSelected():this.selected},e.prototype.depthFirstSearch=function(e){this.childrenAfterGroup&&this.childrenAfterGroup.forEach((function(t){return t.depthFirstSearch(e)})),e(this)},e.prototype.calculateSelectedFromChildren=function(){var e,t=!1,o=!1,n=!1;if(this.childrenAfterGroup)for(var r=0;r<this.childrenAfterGroup.length;r++){var i=this.childrenAfterGroup[r];if(i.selectable)switch(i.isSelected()){case!0:t=!0;break;case!1:o=!0;break;default:n=!0}}e=n?void 0:!(!t||o)||!(!t&&o)&&void 0,this.selectThisNode(e)},e.prototype.setSelectedInitialValue=function(e){this.selected=e},e.prototype.setSelected=function(e,t,o){void 0===t&&(t=!1),void 0===o&&(o=!1),this.setSelectedParams({newValue:e,clearSelection:t,suppressFinishActions:o,rangeSelect:!1})},e.prototype.isRowPinned=function(){return this.rowPinned===h.Constants.PINNED_TOP||this.rowPinned===h.Constants.PINNED_BOTTOM},e.prototype.setSelectedParams=function(e){var t=this.gridOptionsWrapper.isGroupSelectsChildren(),o=!0===e.newValue,n=!0===e.clearSelection,r=!0===e.suppressFinishActions,i=!0===e.rangeSelect,a=t&&!0===e.groupSelectsFiltered;if(void 0===this.id)return console.warn("ag-Grid: cannot select node until id for node is known"),0;if(this.rowPinned)return console.warn("ag-Grid: cannot select pinned rows"),0;if(this.footer)return this.sibling.setSelectedParams(e);if(i){var l=this.selectionController.getLastSelectedNode()!==this,p=this.gridOptionsWrapper.isRowSelectionMulti();if(l&&p)return this.doRowRangeSelection()}var u=0;if(a&&this.group||this.selectThisNode(o)&&u++,t&&this.group&&(u+=this.selectChildNodes(o,a)),!r){if(o&&(n||!this.gridOptionsWrapper.isRowSelectionMulti())&&(u+=this.selectionController.clearOtherNodes(this)),u>0){this.selectionController.updateGroupsFromChildrenSelections();var c={type:s.Events.EVENT_SELECTION_CHANGED,api:this.gridApi,columnApi:this.columnApi};this.mainEventService.dispatchEvent(c)}o&&this.selectionController.setLastSelectedNode(this)}return u},e.prototype.doRowRangeSelection=function(){var e=0,t=this.gridOptionsWrapper.isGroupSelectsChildren(),o=this.selectionController.getLastSelectedNode();this.rowModel.getNodesInRangeForSelection(this,o).forEach((function(o){o.group&&t||o.selectThisNode(!0)&&e++})),this.selectionController.updateGroupsFromChildrenSelections();var n={type:s.Events.EVENT_SELECTION_CHANGED,api:this.gridApi,columnApi:this.columnApi};return this.mainEventService.dispatchEvent(n),e},e.prototype.isParentOfNode=function(e){for(var t=this.parent;t;){if(t===e)return!0;t=t.parent}return!1},e.prototype.selectThisNode=function(t){if(!this.selectable||this.selected===t)return!1;this.selected=t,this.eventService&&this.dispatchLocalEvent(this.createLocalRowEvent(e.EVENT_ROW_SELECTED));var o=this.createGlobalRowEvent(s.Events.EVENT_ROW_SELECTED);return this.mainEventService.dispatchEvent(o),!0},e.prototype.selectChildNodes=function(e,t){var o=t?this.childrenAfterFilter:this.childrenAfterGroup,n=0;if(!m._.missing(o)){for(var r=0;r<o.length;r++)n+=o[r].setSelectedParams({newValue:e,clearSelection:!1,suppressFinishActions:!0,groupSelectsFiltered:t});return n}},e.prototype.addEventListener=function(e,t){this.eventService||(this.eventService=new i.EventService),this.eventService.addEventListener(e,t)},e.prototype.removeEventListener=function(e,t){this.eventService.removeEventListener(e,t)},e.prototype.onMouseEnter=function(){this.dispatchLocalEvent(this.createLocalRowEvent(e.EVENT_MOUSE_ENTER))},e.prototype.onMouseLeave=function(){this.dispatchLocalEvent(this.createLocalRowEvent(e.EVENT_MOUSE_LEAVE))},e.prototype.getFirstChildOfFirstChild=function(e){for(var t,o=this,n=!0,r=!1;n&&!r;){var i=o.parent;m._.exists(i)&&o.firstChild?i.rowGroupColumn===e&&(r=!0,t=i):n=!1,o=i}return r?t:null},e.OBJECT_ID_SEQUENCE=0,e.EVENT_ROW_SELECTED="rowSelected",e.EVENT_DATA_CHANGED="dataChanged",e.EVENT_CELL_CHANGED="cellChanged",e.EVENT_ALL_CHILDREN_COUNT_CHANGED="allChildrenCountChanged",e.EVENT_MOUSE_ENTER="mouseEnter",e.EVENT_MOUSE_LEAVE="mouseLeave",e.EVENT_HEIGHT_CHANGED="heightChanged",e.EVENT_TOP_CHANGED="topChanged",e.EVENT_FIRST_CHILD_CHANGED="firstChildChanged",e.EVENT_LAST_CHILD_CHANGED="lastChildChanged",e.EVENT_CHILD_INDEX_CHANGED="childIndexChanged",e.EVENT_ROW_INDEX_CHANGED="rowIndexChanged",e.EVENT_EXPANDED_CHANGED="expandedChanged",e.EVENT_SELECTABLE_CHANGED="selectableChanged",e.EVENT_UI_LEVEL_CHANGED="uiLevelChanged",e.EVENT_DRAGGING_CHANGED="draggingChanged",n([d.Autowired("eventService"),r("design:type",i.EventService)],e.prototype,"mainEventService",void 0),n([d.Autowired("gridOptionsWrapper"),r("design:type",a.GridOptionsWrapper)],e.prototype,"gridOptionsWrapper",void 0),n([d.Autowired("selectionController"),r("design:type",l.SelectionController)],e.prototype,"selectionController",void 0),n([d.Autowired("columnController"),r("design:type",u.ColumnController)],e.prototype,"columnController",void 0),n([d.Autowired("valueService"),r("design:type",p.ValueService)],e.prototype,"valueService",void 0),n([d.Autowired("rowModel"),r("design:type",Object)],e.prototype,"rowModel",void 0),n([d.Autowired("context"),r("design:type",d.Context)],e.prototype,"context",void 0),n([d.Autowired("valueCache"),r("design:type",f.ValueCache)],e.prototype,"valueCache",void 0),n([d.Autowired("columnApi"),r("design:type",c.ColumnApi)],e.prototype,"columnApi",void 0),n([d.Autowired("gridApi"),r("design:type",g.GridApi)],e.prototype,"gridApi",void 0),e}();t.RowNode=y},77769:function(e,t,o){var n,r=this&&this.__extends||(n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])},n(e,t)},function(e,t){function o(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(o.prototype=t.prototype,new o)}),i=this&&this.__decorate||function(e,t,o,n){var r,i=arguments.length,s=i<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,n);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,o,s):r(t,o))||s);return i>3&&s&&Object.defineProperty(t,o,s),s},s=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0});var a=o(59804),l=o(81201),p=o(90150),u=o(51890),c=o(3978),d=o(99162),h=o(44494),f=o(43510),g="\r\n",m=function(e){function t(t){var o=e.call(this,{columnController:t.columnController,valueService:t.valueService,gridOptionsWrapper:t.gridOptionsWrapper,processCellCallback:t.processCellCallback,processHeaderCallback:t.processHeaderCallback})||this;o.result="",o.lineOpened=!1;var n=t.suppressQuotes,r=t.columnSeparator;return o.suppressQuotes=n,o.columnSeparator=r,o}return r(t,e),t.prototype.prepare=function(e){},t.prototype.addCustomHeader=function(e){e&&(this.result+=e+g)},t.prototype.addCustomFooter=function(e){e&&(this.result+=e+g)},t.prototype.onNewHeaderGroupingRow=function(){return this.lineOpened&&(this.result+=g),{onColumn:this.onNewHeaderGroupingRowColumn.bind(this)}},t.prototype.onNewHeaderGroupingRowColumn=function(e,t,o){0!=t&&(this.result+=this.columnSeparator),this.result+=this.putInQuotes(e,this.suppressQuotes);for(var n=1;n<=o;n++)this.result+=this.columnSeparator+this.putInQuotes("",this.suppressQuotes);this.lineOpened=!0},t.prototype.onNewHeaderRow=function(){return this.lineOpened&&(this.result+=g),{onColumn:this.onNewHeaderRowColumn.bind(this)}},t.prototype.onNewHeaderRowColumn=function(e,t,o){0!=t&&(this.result+=this.columnSeparator),this.result+=this.putInQuotes(this.extractHeaderValue(e),this.suppressQuotes),this.lineOpened=!0},t.prototype.onNewBodyRow=function(){return this.lineOpened&&(this.result+=g),{onColumn:this.onNewBodyRowColumn.bind(this)}},t.prototype.onNewBodyRowColumn=function(e,t,o){0!=t&&(this.result+=this.columnSeparator),this.result+=this.putInQuotes(this.extractRowCellValue(e,t,h.Constants.EXPORT_TYPE_CSV,o),this.suppressQuotes),this.lineOpened=!0},t.prototype.putInQuotes=function(e,t){return t?e:null==e?'""':("string"==typeof e?o=e:"function"==typeof e.toString?o=e.toString():(console.warn("unknown value type during csv conversion"),o=""),'"'+o.replace(/"/g,'""')+'"');var o},t.prototype.parse=function(){return this.result},t}(l.BaseGridSerializingSession);t.CsvSerializingSession=m;var y=function(){function e(){}return e.prototype.setBeans=function(e){this.beans=e},e.prototype.export=function(e){if(this.isExportSuppressed())return console.warn("ag-grid: Export cancelled. Export is not allowed as per your configuration."),"";var t=this.getMergedParamsAndData(e),o=t.mergedParams,n=t.data,r=o&&o.fileName&&0!==o.fileName.length?o.fileName:this.getDefaultFileName();return-1===r.indexOf(".")&&(r=r+"."+this.getDefaultFileExtension()),this.beans.downloader.download(r,this.packageFile(n)),n},e.prototype.getData=function(e){return this.getMergedParamsAndData(e).data},e.prototype.getMergedParamsAndData=function(e){var t=this.mergeDefaultParams(e);return{mergedParams:t,data:this.beans.gridSerializer.serialize(this.createSerializingSession(t),t)}},e.prototype.mergeDefaultParams=function(e){var t=this.beans.gridOptionsWrapper.getDefaultExportParams(),o={};return f._.assign(o,t),f._.assign(o,e),o},e.prototype.packageFile=function(e){return new Blob(["\ufeff",e],{type:window.navigator.msSaveOrOpenBlob?this.getMimeType():"octet/stream"})},e}();t.BaseCreator=y;var v=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r(t,e),t.prototype.postConstruct=function(){this.setBeans({downloader:this.downloader,gridSerializer:this.gridSerializer,gridOptionsWrapper:this.gridOptionsWrapper})},t.prototype.exportDataAsCsv=function(e){return this.export(e)},t.prototype.getDataAsCsv=function(e){return this.getData(e)},t.prototype.getMimeType=function(){return"text/csv;charset=utf-8;"},t.prototype.getDefaultFileName=function(){return"export.csv"},t.prototype.getDefaultFileExtension=function(){return"csv"},t.prototype.createSerializingSession=function(e){var t=this,o=t.columnController,n=t.valueService,r=t.gridOptionsWrapper,i=e,s=i.processCellCallback,a=i.processHeaderCallback,l=i.suppressQuotes,p=i.columnSeparator;return new m({columnController:o,valueService:n,gridOptionsWrapper:r,processCellCallback:s||void 0,processHeaderCallback:a||void 0,suppressQuotes:l||!1,columnSeparator:p||","})},t.prototype.isExportSuppressed=function(){return this.gridOptionsWrapper.isSuppressCsvExport()},i([a.Autowired("columnController"),s("design:type",u.ColumnController)],t.prototype,"columnController",void 0),i([a.Autowired("valueService"),s("design:type",c.ValueService)],t.prototype,"valueService",void 0),i([a.Autowired("downloader"),s("design:type",p.Downloader)],t.prototype,"downloader",void 0),i([a.Autowired("gridSerializer"),s("design:type",l.GridSerializer)],t.prototype,"gridSerializer",void 0),i([a.Autowired("gridOptionsWrapper"),s("design:type",d.GridOptionsWrapper)],t.prototype,"gridOptionsWrapper",void 0),i([a.PostConstruct,s("design:type",Function),s("design:paramtypes",[]),s("design:returntype",void 0)],t.prototype,"postConstruct",null),i([a.Bean("csvCreator")],t)}(y);t.CsvCreator=v},79031:function(e,t,o){var n,r=this&&this.__extends||(n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])},n(e,t)},function(e,t){function o(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(o.prototype=t.prototype,new o)}),i=this&&this.__decorate||function(e,t,o,n){var r,i=arguments.length,s=i<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,n);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,o,s):r(t,o))||s);return i>3&&s&&Object.defineProperty(t,o,s),s},s=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0});var a=o(38830),l=o(71569),p=o(59804),u=o(99162),c=o(14035),d=o(55758),h=o(47304),f=o(17890),g=o(33018),m=o(43510),y=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.lastMovingChanged=0,t}return r(t,e),t.prototype.init=function(e){var o=m._.firstExistingValue(e.template,t.TEMPLATE);o=o&&o.trim?o.trim():o,this.setTemplate(o),this.params=e,this.setupTap(),this.setupIcons(e.column),this.setupMenu(),this.setupSort(),this.setupFilterIcon(),this.setupText(e.displayName)},t.prototype.setupText=function(e){var t=m._.escape(e);this.eText&&(this.eText.innerHTML=t)},t.prototype.setupIcons=function(e){this.addInIcon("sortAscending",this.eSortAsc,e),this.addInIcon("sortDescending",this.eSortDesc,e),this.addInIcon("sortUnSort",this.eSortNone,e),this.addInIcon("menu",this.eMenu,e),this.addInIcon("filter",this.eFilter,e)},t.prototype.addInIcon=function(e,t,o){if(null!=t){var n=m._.createIconNoSpan(e,this.gridOptionsWrapper,o);t.appendChild(n)}},t.prototype.setupTap=function(){var e=this,t=this.gridOptionsWrapper;if(!t.isSuppressTouch()){var o=t.isSuppressMenuHide(),n=new d.TouchListener(this.getGui(),!0),r=o?new d.TouchListener(this.eMenu,!0):n;if(this.params.enableMenu){var i=o?"EVENT_TAP":"EVENT_LONG_TAP";this.addDestroyableEventListener(r,d.TouchListener[i],(function(o){t.getApi().showColumnMenuAfterMouseClick(e.params.column,o.touchStart)}))}this.params.enableSorting&&this.addDestroyableEventListener(n,d.TouchListener.EVENT_TAP,(function(t){var n=t.touchStart.target;o&&e.eMenu.contains(n)||e.sortController.progressSort(e.params.column,!1,"uiColumnSorted")})),this.addDestroyFunc((function(){return n.destroy()})),r!==n&&this.addDestroyFunc((function(){return r.destroy()}))}},t.prototype.setupMenu=function(){var e=this;if(this.eMenu){var t=this.gridOptionsWrapper.isSuppressMenuHide();if(!this.params.enableMenu||m._.isUserAgentIPad()&&!t)m._.removeFromParent(this.eMenu);else{this.addDestroyableEventListener(this.eMenu,"click",(function(){return e.showMenu(e.eMenu)})),t||(this.eMenu.style.opacity="0",this.addGuiEventListener("mouseover",(function(){e.eMenu.style.opacity="1"})),this.addGuiEventListener("mouseout",(function(){e.eMenu.style.opacity="0"})));var o=this.eMenu.style;o.transition="opacity 0.2s, border 0.2s",o["-webkit-transition"]="opacity 0.2s, border 0.2s"}}},t.prototype.showMenu=function(e){this.menuFactory.showMenuAfterButtonClick(this.params.column,e)},t.prototype.removeSortIcons=function(){m._.removeFromParent(this.eSortAsc),m._.removeFromParent(this.eSortDesc),m._.removeFromParent(this.eSortNone),m._.removeFromParent(this.eSortOrder)},t.prototype.setupSort=function(){var e=this;if(this.params.enableSorting){var t=this.gridOptionsWrapper.isMultiSortKeyCtrl();this.addDestroyableEventListener(this.params.column,l.Column.EVENT_MOVING_CHANGED,(function(){e.lastMovingChanged=(new Date).getTime()})),this.eLabel&&this.addDestroyableEventListener(this.eLabel,"click",(function(o){var n=e.params.column.isMoving(),r=(new Date).getTime()-e.lastMovingChanged<50;if(!n&&!r){var i=t?o.ctrlKey||o.metaKey:o.shiftKey;e.params.progressSort(i)}})),this.addDestroyableEventListener(this.params.column,l.Column.EVENT_SORT_CHANGED,this.onSortChanged.bind(this)),this.onSortChanged(),this.addDestroyableEventListener(this.eventService,g.Events.EVENT_SORT_CHANGED,this.setMultiSortOrder.bind(this)),this.setMultiSortOrder()}else this.removeSortIcons()},t.prototype.onSortChanged=function(){if(m._.addOrRemoveCssClass(this.getGui(),"ag-header-cell-sorted-asc",this.params.column.isSortAscending()),m._.addOrRemoveCssClass(this.getGui(),"ag-header-cell-sorted-desc",this.params.column.isSortDescending()),m._.addOrRemoveCssClass(this.getGui(),"ag-header-cell-sorted-none",this.params.column.isSortNone()),this.eSortAsc&&m._.addOrRemoveCssClass(this.eSortAsc,"ag-hidden",!this.params.column.isSortAscending()),this.eSortDesc&&m._.addOrRemoveCssClass(this.eSortDesc,"ag-hidden",!this.params.column.isSortDescending()),this.eSortNone){var e=!this.params.column.getColDef().unSortIcon&&!this.gridOptionsWrapper.isUnSortIcon();m._.addOrRemoveCssClass(this.eSortNone,"ag-hidden",e||!this.params.column.isSortNone())}},t.prototype.setMultiSortOrder=function(){if(this.eSortOrder){var e=this.params.column,t=this.sortController.getColumnsWithSortingOrdered(),o=t.indexOf(e),n=t.length>1,r=e.isSorting()&&n;m._.setVisible(this.eSortOrder,r),o>=0?this.eSortOrder.innerHTML=(o+1).toString():m._.clearElement(this.eSortOrder)}},t.prototype.setupFilterIcon=function(){this.eFilter&&(this.addDestroyableEventListener(this.params.column,l.Column.EVENT_FILTER_CHANGED,this.onFilterChanged.bind(this)),this.onFilterChanged())},t.prototype.onFilterChanged=function(){var e=this.params.column.isFilterActive();m._.addOrRemoveCssClass(this.eFilter,"ag-hidden",!e)},t.TEMPLATE='<div class="ag-cell-label-container" role="presentation"> <span ref="eMenu" class="ag-header-icon ag-header-cell-menu-button" aria-hidden="true"></span> <div ref="eLabel" class="ag-header-cell-label" role="presentation" unselectable="on"> <span ref="eText" class="ag-header-cell-text" role="columnheader" unselectable="on"></span> <span ref="eFilter" class="ag-header-icon ag-filter-icon" aria-hidden="true"></span> <span ref="eSortOrder" class="ag-header-icon ag-sort-order" aria-hidden="true"></span> <span ref="eSortAsc" class="ag-header-icon ag-sort-ascending-icon" aria-hidden="true"></span> <span ref="eSortDesc" class="ag-header-icon ag-sort-descending-icon" aria-hidden="true"></span> <span ref="eSortNone" class="ag-header-icon ag-sort-none-icon" aria-hidden="true"></span> </div></div>',i([p.Autowired("gridOptionsWrapper"),s("design:type",u.GridOptionsWrapper)],t.prototype,"gridOptionsWrapper",void 0),i([p.Autowired("sortController"),s("design:type",c.SortController)],t.prototype,"sortController",void 0),i([p.Autowired("menuFactory"),s("design:type",Object)],t.prototype,"menuFactory",void 0),i([p.Autowired("eventService"),s("design:type",h.EventService)],t.prototype,"eventService",void 0),i([f.RefSelector("eFilter"),s("design:type",HTMLElement)],t.prototype,"eFilter",void 0),i([f.RefSelector("eSortAsc"),s("design:type",HTMLElement)],t.prototype,"eSortAsc",void 0),i([f.RefSelector("eSortDesc"),s("design:type",HTMLElement)],t.prototype,"eSortDesc",void 0),i([f.RefSelector("eSortNone"),s("design:type",HTMLElement)],t.prototype,"eSortNone",void 0),i([f.RefSelector("eSortOrder"),s("design:type",HTMLElement)],t.prototype,"eSortOrder",void 0),i([f.RefSelector("eMenu"),s("design:type",HTMLElement)],t.prototype,"eMenu",void 0),i([f.RefSelector("eLabel"),s("design:type",HTMLElement)],t.prototype,"eLabel",void 0),i([f.RefSelector("eText"),s("design:type",HTMLElement)],t.prototype,"eText",void 0),t}(a.Component);t.HeaderComp=y},79035:function(e,t,o){var n,r=this&&this.__extends||(n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])},n(e,t)},function(e,t){function o(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(o.prototype=t.prototype,new o)}),i=this&&this.__decorate||function(e,t,o,n){var r,i=arguments.length,s=i<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,n);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,o,s):r(t,o))||s);return i>3&&s&&Object.defineProperty(t,o,s),s},s=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0});var a=o(38830),l=o(17890),p=o(59804),u=o(39128),c=function(e){function t(){return e.call(this,t.TEMPLATE)||this}return r(t,e),t.prototype.postConstruct=function(){this.closePopup=this.popupService.addPopup(!1,this.getGui(),!1,this.destroy.bind(this)),this.addDestroyableEventListener(this.eClose,"click",this.onBtClose.bind(this))},t.prototype.setBody=function(e){this.eContentWrapper.appendChild(e)},t.prototype.setTitle=function(e){this.eTitle.innerText=e},t.prototype.onBtClose=function(){this.closePopup()},t.prototype.destroy=function(){e.prototype.destroy.call(this),this.dispatchEvent({type:t.DESTROY_EVENT})},t.TEMPLATE='<div class="ag-popup-window" style="top: 40px; left: 40px; border: 1px solid black; position: fixed; background-color: white;">\n <div class="ag-popup-window-title-bar" style="background: #00e5ff; border-bottom: 1px solid black;">\n <span ref="eClose" class="ag-popup-window-close" style="margin: 2px; border: 1px solid grey; border-radius: 2px;">X</span>\n <span ref="eTitle" class="ag-popup-window-title" style="padding: 2px;">New Chart</span>\n </div>\n <div ref="eContentWrapper" class="ag-popup-window-content-wrapper"></div>\n </div>',t.DESTROY_EVENT="destroy",i([p.Autowired("popupService"),s("design:type",u.PopupService)],t.prototype,"popupService",void 0),i([l.RefSelector("eContentWrapper"),s("design:type",HTMLElement)],t.prototype,"eContentWrapper",void 0),i([l.RefSelector("eTitle"),s("design:type",HTMLElement)],t.prototype,"eTitle",void 0),i([l.RefSelector("eClose"),s("design:type",HTMLElement)],t.prototype,"eClose",void 0),i([p.PostConstruct,s("design:type",Function),s("design:paramtypes",[]),s("design:returntype",void 0)],t.prototype,"postConstruct",null),t}(a.Component);t.PopupWindow=c},79193:(e,t,o)=>{o.d(t,{Ay:()=>r});var n=o(7386);const r=n.default;n.CommaAndColonSeparatedRecord,n.ConnectionString,n.redactConnectionString},79255:function(e,t,o){var n=this&&this.__decorate||function(e,t,o,n){var r,i=arguments.length,s=i<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,n);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,o,s):r(t,o))||s);return i>3&&s&&Object.defineProperty(t,o,s),s},r=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0});var i=o(59804),s=o(99162),a=function(){function e(){this.cacheVersion=0}return e.prototype.init=function(){this.active=this.gridOptionsWrapper.isValueCache(),this.neverExpires=this.gridOptionsWrapper.isValueCacheNeverExpires()},e.prototype.onDataChanged=function(){this.neverExpires||this.expire()},e.prototype.expire=function(){this.cacheVersion++},e.prototype.setValue=function(e,t,o){this.active&&(e.__cacheVersion!==this.cacheVersion&&(e.__cacheVersion=this.cacheVersion,e.__cacheData={}),e.__cacheData[t]=o)},e.prototype.getValue=function(e,t){return this.active&&e.__cacheVersion===this.cacheVersion&&void 0!==e.__cacheData[t]?e.__cacheData[t]:void 0},n([i.Autowired("gridOptionsWrapper"),r("design:type",s.GridOptionsWrapper)],e.prototype,"gridOptionsWrapper",void 0),n([i.PostConstruct,r("design:type",Function),r("design:paramtypes",[]),r("design:returntype",void 0)],e.prototype,"init",null),n([i.Bean("valueCache")],e)}();t.ValueCache=a},79509:function(e,t,o){var n=this&&this.__decorate||function(e,t,o,n){var r,i=arguments.length,s=i<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,n);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,o,s):r(t,o))||s);return i>3&&s&&Object.defineProperty(t,o,s),s},r=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0});var i=o(59804),s=o(6145),a=function(){function e(){}return e.prototype.processAllCellClasses=function(e,t,o,n){this.processClassRules(e.cellClassRules,t,o,n),this.processStaticCellClasses(e,t,o)},e.prototype.processClassRules=function(e,t,o,n){if("object"==typeof e&&null!==e)for(var r=Object.keys(e),i=0;i<r.length;i++){var s=r[i],a=e[s],l=void 0;"string"==typeof a?l=this.expressionService.evaluate(a,t):"function"==typeof a&&(l=a(t)),l?o(s):n&&n(s)}},e.prototype.processStaticCellClasses=function(e,t,o){if(e.cellClass){var n=void 0;"string"==typeof(n="function"==typeof e.cellClass?(0,e.cellClass)(t):e.cellClass)?o(n):Array.isArray(n)&&n.forEach((function(e){o(e)}))}},n([i.Autowired("expressionService"),r("design:type",s.ExpressionService)],e.prototype,"expressionService",void 0),n([i.Bean("stylingService")],e)}();t.StylingService=a},79705:function(e,t,o){var n=this&&this.__decorate||function(e,t,o,n){var r,i=arguments.length,s=i<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,n);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,o,s):r(t,o))||s);return i>3&&s&&Object.defineProperty(t,o,s),s},r=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0});var i=o(99162),s=o(30754),a=o(19135),l=o(59804),p=o(59804),u=function(){function e(){}return e.prototype.calculateColInitialWidth=function(e){return e.width?e.width<this.gridOptionsWrapper.getMinColWidth()?this.gridOptionsWrapper.getMinColWidth():e.width:this.gridOptionsWrapper.getColWidth()},e.prototype.getOriginalPathForColumn=function(e,t){var o=[],n=!1;return function t(r,i){for(var s=0;s<r.length;s++){if(n)return;var l=r[s];l instanceof a.OriginalColumnGroup?(t(l.getChildren(),i+1),o[i]=l):l===e&&(n=!0)}}(t,0),n?o:null},e.prototype.depthFirstOriginalTreeSearch=function(e,t,o){var n=this;t&&t.forEach((function(t){t instanceof a.OriginalColumnGroup&&n.depthFirstOriginalTreeSearch(t,t.getChildren(),o),o(t,e)}))},e.prototype.depthFirstAllColumnTreeSearch=function(e,t){var o=this;e&&e.forEach((function(e){e instanceof s.ColumnGroup&&o.depthFirstAllColumnTreeSearch(e.getChildren(),t),t(e)}))},e.prototype.depthFirstDisplayedColumnTreeSearch=function(e,t){var o=this;e&&e.forEach((function(e){e instanceof s.ColumnGroup&&o.depthFirstDisplayedColumnTreeSearch(e.getDisplayedChildren(),t),t(e)}))},n([p.Autowired("gridOptionsWrapper"),r("design:type",i.GridOptionsWrapper)],e.prototype,"gridOptionsWrapper",void 0),n([l.Bean("columnUtils")],e)}();t.ColumnUtils=u},80286:e=>{const{AbortController:t,AbortSignal:o}="undefined"!=typeof self?self:"undefined"!=typeof window?window:void 0;e.exports=t,e.exports.AbortSignal=o,e.exports.default=t},81182:function(e,t,o){var n,r=this&&this.__extends||(n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])},n(e,t)},function(e,t){function o(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(o.prototype=t.prototype,new o)}),i=this&&this.__decorate||function(e,t,o,n){var r,i=arguments.length,s=i<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,n);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,o,s):r(t,o))||s);return i>3&&s&&Object.defineProperty(t,o,s),s},s=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0});var a=o(38830),l=o(77171),p=o(59804),u=o(99162),c=o(33018),d=o(47304),h=o(31551),f=o(81404),g=o(43510),m=function(e){function t(){return e.call(this,'<span class="ag-selection-checkbox" unselectable="on"/>')||this}return r(t,e),t.prototype.createAndAddIcons=function(){this.eCheckedIcon=g._.createIconNoSpan("checkboxChecked",this.gridOptionsWrapper,this.column),this.eUncheckedIcon=g._.createIconNoSpan("checkboxUnchecked",this.gridOptionsWrapper,this.column),this.eIndeterminateIcon=g._.createIconNoSpan("checkboxIndeterminate",this.gridOptionsWrapper,this.column);var e=this.getGui();e.appendChild(this.eCheckedIcon),e.appendChild(this.eUncheckedIcon),e.appendChild(this.eIndeterminateIcon)},t.prototype.onDataChanged=function(){this.onSelectionChanged()},t.prototype.onSelectableChanged=function(){this.showOrHideSelect()},t.prototype.onSelectionChanged=function(){var e=this.rowNode.isSelected();g._.setVisible(this.eCheckedIcon,!0===e),g._.setVisible(this.eUncheckedIcon,!1===e),g._.setVisible(this.eIndeterminateIcon,"boolean"!=typeof e)},t.prototype.onCheckedClicked=function(){var e=this.gridOptionsWrapper.isGroupSelectsFiltered();return this.rowNode.setSelectedParams({newValue:!1,groupSelectsFiltered:e})},t.prototype.onUncheckedClicked=function(e){var t=this.gridOptionsWrapper.isGroupSelectsFiltered();return this.rowNode.setSelectedParams({newValue:!0,rangeSelect:e.shiftKey,groupSelectsFiltered:t})},t.prototype.onIndeterminateClicked=function(e){0===this.onUncheckedClicked(e)&&this.onCheckedClicked()},t.prototype.init=function(e){this.rowNode=e.rowNode,this.column=e.column,this.createAndAddIcons(),this.onSelectionChanged(),this.addGuiEventListener("click",(function(e){return g._.stopPropagationForAgGrid(e)})),this.addGuiEventListener("dblclick",(function(e){return g._.stopPropagationForAgGrid(e)})),this.addDestroyableEventListener(this.eCheckedIcon,"click",this.onCheckedClicked.bind(this)),this.addDestroyableEventListener(this.eUncheckedIcon,"click",this.onUncheckedClicked.bind(this)),this.addDestroyableEventListener(this.eIndeterminateIcon,"click",this.onIndeterminateClicked.bind(this)),this.addDestroyableEventListener(this.rowNode,l.RowNode.EVENT_ROW_SELECTED,this.onSelectionChanged.bind(this)),this.addDestroyableEventListener(this.rowNode,l.RowNode.EVENT_DATA_CHANGED,this.onDataChanged.bind(this)),this.addDestroyableEventListener(this.rowNode,l.RowNode.EVENT_SELECTABLE_CHANGED,this.onSelectableChanged.bind(this)),this.isRowSelectableFunc=this.gridOptionsWrapper.getIsRowSelectableFunc(),(this.isRowSelectableFunc||this.checkboxCallbackExists())&&(this.addDestroyableEventListener(this.eventService,c.Events.EVENT_DISPLAYED_COLUMNS_CHANGED,this.showOrHideSelect.bind(this)),this.showOrHideSelect())},t.prototype.showOrHideSelect=function(){var e=this.rowNode.selectable;e&&this.checkboxCallbackExists()&&(e=this.column.isCellCheckboxSelection(this.rowNode)),this.setVisible(e)},t.prototype.checkboxCallbackExists=function(){var e=this.column?this.column.getColDef():null;return e&&"function"==typeof e.checkboxSelection},i([p.Autowired("gridOptionsWrapper"),s("design:type",u.GridOptionsWrapper)],t.prototype,"gridOptionsWrapper",void 0),i([p.Autowired("eventService"),s("design:type",d.EventService)],t.prototype,"eventService",void 0),i([p.Autowired("gridApi"),s("design:type",h.GridApi)],t.prototype,"gridApi",void 0),i([p.Autowired("columnApi"),s("design:type",f.ColumnApi)],t.prototype,"columnApi",void 0),t}(a.Component);t.CheckboxSelectionComponent=m},81201:function(e,t,o){var n=this&&this.__decorate||function(e,t,o,n){var r,i=arguments.length,s=i<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,n);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,o,s):r(t,o))||s);return i>3&&s&&Object.defineProperty(t,o,s),s},r=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0});var i=o(59804),s=o(51890),a=o(44494),l=o(83921),p=o(99162),u=o(70424),c=o(41758),d=o(59891),h=o(30754),f=o(5988),g=o(43510),m=function(){function e(e){var t=e.columnController,o=e.valueService,n=e.gridOptionsWrapper,r=e.processCellCallback,i=e.processHeaderCallback,s=e.cellAndHeaderEscaper;this.columnController=t,this.valueService=o,this.gridOptionsWrapper=n,this.processCellCallback=r,this.processHeaderCallback=i,this.cellAndHeaderEscaper=s}return e.prototype.extractHeaderValue=function(e){var t=this.getHeaderName(this.processHeaderCallback,e);return null==t&&(t=""),this.cellAndHeaderEscaper?this.cellAndHeaderEscaper(t):t},e.prototype.extractRowCellValue=function(e,t,o,n){var r,i=this.columnController.getRowGroupColumns().length>0;return r=n&&n.group&&i&&0===t?this.createValueForGroupNode(n):this.valueService.getValue(e,n),null==(r=this.processCell(n,e,r,this.processCellCallback,o))&&(r=""),this.cellAndHeaderEscaper?this.cellAndHeaderEscaper(r):r},e.prototype.getHeaderName=function(e,t){return e?e({column:t,api:this.gridOptionsWrapper.getApi(),columnApi:this.gridOptionsWrapper.getColumnApi(),context:this.gridOptionsWrapper.getContext()}):this.columnController.getDisplayNameForColumn(t,"csv",!0)},e.prototype.createValueForGroupNode=function(e){for(var t=[e.key];e.parent;)e=e.parent,t.push(e.key);return t.reverse().join(" -> ")},e.prototype.processCell=function(e,t,o,n,r){return n?n({column:t,node:e,value:o,api:this.gridOptionsWrapper.getApi(),columnApi:this.gridOptionsWrapper.getColumnApi(),context:this.gridOptionsWrapper.getContext(),type:r}):o},e}();t.BaseGridSerializingSession=m;var y,v=function(){function e(){}return e.prototype.serialize=function(e,t){var o=t&&t.skipGroups,n=t&&t.skipHeader,r=t&&t.columnGroups,i=t&&t.skipFooters,s=t&&t.skipPinnedTop,l=t&&t.skipPinnedBottom,p=t&&t.customHeader,u=t&&t.customFooter,c=t&&t.allColumns,h=t&&t.onlySelected,f=t&&t.columnKeys,m=t&&t.onlySelectedAllPages,y=t&&t.shouldRowBeSkipped||function(){return!1},v=this.gridOptionsWrapper.getApi(),C=this.gridOptionsWrapper.isGroupRemoveSingleChildren(),w=this.gridOptionsWrapper.isGroupRemoveLowestSingleChildren(),_=this.gridOptionsWrapper.getContext(),E=this.columnController.isPivotMode(),b=this.rowModel.getType()===a.Constants.ROW_MODEL_TYPE_CLIENT_SIDE,R=!b&&h,S=[];if(S=g._.existsAndNotEmpty(f)?this.columnController.getGridColumns(f):c&&!E?(S=this.gridOptionsWrapper.isTreeData()?this.columnController.getGridColumns([a.Constants.GROUP_AUTO_COLUMN_ID]):[]).concat(this.columnController.getAllPrimaryColumns()||[]):this.columnController.getAllDisplayedColumns(),p&&e.addCustomHeader(p),e.prepare(S),r){var O=new d.GroupInstanceIdCreator,P=this.displayedGroupCreator.createDisplayedGroups(S,this.columnController.getGridBalancedTree(),O,null);this.recursivelyAddHeaderGroups(P,e)}if(!n){var A=e.onNewHeaderRow();S.forEach((function(e,t){A.onColumn(e,t,void 0)}))}function T(t){var n=w&&t.leafGroup,r=1===t.allChildrenCount&&(C||n);if((!t.group||!o&&!r)&&(!i||!t.footer)&&(!h||t.isSelected())&&(!s||"top"!==t.rowPinned)&&(!l||"bottom"!==t.rowPinned)&&(-1!==t.level||t.leafGroup)&&!y({node:t,api:v,context:_})){var a=e.onNewBodyRow();S.forEach((function(e,o){a.onColumn(e,o,t)}))}}return this.pinnedRowModel.forEachPinnedTopRow(T),E?this.rowModel.forEachPivotNode?this.rowModel.forEachPivotNode(T):this.rowModel.forEachNode(T):m||R?this.selectionController.getSelectedNodes().forEach((function(e){T(e)})):b?this.rowModel.forEachNodeAfterFilterAndSort(T):this.rowModel.forEachNode(T),this.pinnedRowModel.forEachPinnedBottomRow(T),u&&e.addCustomFooter(u),e.parse()},e.prototype.recursivelyAddHeaderGroups=function(e,t){var o=[];e.forEach((function(e){var t=e;t.getChildren&&t.getChildren().forEach((function(e){return o.push(e)}))})),e.length>0&&e[0]instanceof h.ColumnGroup&&this.doAddHeaderHeader(t,e),o&&o.length>0&&this.recursivelyAddHeaderGroups(o,t)},e.prototype.doAddHeaderHeader=function(e,t){var o=this,n=e.onNewHeaderGroupingRow(),r=0;t.forEach((function(e){var t=e,i=o.columnController.getDisplayNameForColumnGroup(t,"header");n.onColumn(i||"",r++,t.getLeafColumns().length-1)}))},n([i.Autowired("displayedGroupCreator"),r("design:type",u.DisplayedGroupCreator)],e.prototype,"displayedGroupCreator",void 0),n([i.Autowired("columnController"),r("design:type",s.ColumnController)],e.prototype,"columnController",void 0),n([i.Autowired("rowModel"),r("design:type",Object)],e.prototype,"rowModel",void 0),n([i.Autowired("pinnedRowModel"),r("design:type",f.PinnedRowModel)],e.prototype,"pinnedRowModel",void 0),n([i.Autowired("selectionController"),r("design:type",l.SelectionController)],e.prototype,"selectionController",void 0),n([i.Autowired("columnFactory"),r("design:type",c.ColumnFactory)],e.prototype,"columnFactory",void 0),n([i.Autowired("gridOptionsWrapper"),r("design:type",p.GridOptionsWrapper)],e.prototype,"gridOptionsWrapper",void 0),n([i.Bean("gridSerializer")],e)}();t.GridSerializer=v,(y=t.RowType||(t.RowType={}))[y.HEADER_GROUPING=0]="HEADER_GROUPING",y[y.HEADER=1]="HEADER",y[y.BODY=2]="BODY"},81404:function(e,t,o){var n=this&&this.__decorate||function(e,t,o,n){var r,i=arguments.length,s=i<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,n);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,o,s):r(t,o))||s);return i>3&&s&&Object.defineProperty(t,o,s),s},r=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0});var i=o(51890),s=o(59804),a=function(){function e(){}return e.prototype.sizeColumnsToFit=function(e){this.columnController.sizeColumnsToFit(e,"api")},e.prototype.setColumnGroupOpened=function(e,t){this.columnController.setColumnGroupOpened(e,t,"api")},e.prototype.getColumnGroup=function(e,t){return this.columnController.getColumnGroup(e,t)},e.prototype.getOriginalColumnGroup=function(e){return this.columnController.getOriginalColumnGroup(e)},e.prototype.getDisplayNameForColumn=function(e,t){return this.columnController.getDisplayNameForColumn(e,t)},e.prototype.getDisplayNameForColumnGroup=function(e,t){return this.columnController.getDisplayNameForColumnGroup(e,t)},e.prototype.getColumn=function(e){return this.columnController.getPrimaryColumn(e)},e.prototype.setColumnState=function(e){return this.columnController.setColumnState(e,!1,"api")},e.prototype.getColumnState=function(){return this.columnController.getColumnState()},e.prototype.resetColumnState=function(){this.columnController.resetColumnState(!1,"api")},e.prototype.getColumnGroupState=function(){return this.columnController.getColumnGroupState()},e.prototype.setColumnGroupState=function(e){this.columnController.setColumnGroupState(e,"api")},e.prototype.resetColumnGroupState=function(){this.columnController.resetColumnGroupState("api")},e.prototype.isPinning=function(){return this.columnController.isPinningLeft()||this.columnController.isPinningRight()},e.prototype.isPinningLeft=function(){return this.columnController.isPinningLeft()},e.prototype.isPinningRight=function(){return this.columnController.isPinningRight()},e.prototype.getDisplayedColAfter=function(e){return this.columnController.getDisplayedColAfter(e)},e.prototype.getDisplayedColBefore=function(e){return this.columnController.getDisplayedColBefore(e)},e.prototype.setColumnVisible=function(e,t){this.columnController.setColumnVisible(e,t,"api")},e.prototype.setColumnsVisible=function(e,t){this.columnController.setColumnsVisible(e,t,"api")},e.prototype.setColumnPinned=function(e,t){this.columnController.setColumnPinned(e,t,"api")},e.prototype.setColumnsPinned=function(e,t){this.columnController.setColumnsPinned(e,t,"api")},e.prototype.getAllColumns=function(){return this.columnController.getAllPrimaryColumns()},e.prototype.getAllGridColumns=function(){return this.columnController.getAllGridColumns()},e.prototype.getDisplayedLeftColumns=function(){return this.columnController.getDisplayedLeftColumns()},e.prototype.getDisplayedCenterColumns=function(){return this.columnController.getDisplayedCenterColumns()},e.prototype.getDisplayedRightColumns=function(){return this.columnController.getDisplayedRightColumns()},e.prototype.getAllDisplayedColumns=function(){return this.columnController.getAllDisplayedColumns()},e.prototype.getAllDisplayedVirtualColumns=function(){return this.columnController.getAllDisplayedVirtualColumns()},e.prototype.moveColumn=function(e,t){"number"==typeof e?(console.warn("ag-Grid: you are using moveColumn(fromIndex, toIndex) - moveColumn takes a column key and a destination index, not two indexes, to move with indexes use moveColumnByIndex(from,to) instead"),this.columnController.moveColumnByIndex(e,t,"api")):this.columnController.moveColumn(e,t,"api")},e.prototype.moveColumnByIndex=function(e,t){this.columnController.moveColumnByIndex(e,t,"api")},e.prototype.moveColumns=function(e,t){this.columnController.moveColumns(e,t,"api")},e.prototype.moveRowGroupColumn=function(e,t){this.columnController.moveRowGroupColumn(e,t)},e.prototype.setColumnAggFunc=function(e,t){this.columnController.setColumnAggFunc(e,t)},e.prototype.setColumnWidth=function(e,t,o){void 0===o&&(o=!0),this.columnController.setColumnWidth(e,t,!1,o)},e.prototype.setPivotMode=function(e){this.columnController.setPivotMode(e)},e.prototype.isPivotMode=function(){return this.columnController.isPivotMode()},e.prototype.getSecondaryPivotColumn=function(e,t){return this.columnController.getSecondaryPivotColumn(e,t)},e.prototype.setValueColumns=function(e){this.columnController.setValueColumns(e,"api")},e.prototype.getValueColumns=function(){return this.columnController.getValueColumns()},e.prototype.removeValueColumn=function(e){this.columnController.removeValueColumn(e,"api")},e.prototype.removeValueColumns=function(e){this.columnController.removeValueColumns(e,"api")},e.prototype.addValueColumn=function(e){this.columnController.addValueColumn(e,"api")},e.prototype.addValueColumns=function(e){this.columnController.addValueColumns(e,"api")},e.prototype.setRowGroupColumns=function(e){this.columnController.setRowGroupColumns(e,"api")},e.prototype.removeRowGroupColumn=function(e){this.columnController.removeRowGroupColumn(e,"api")},e.prototype.removeRowGroupColumns=function(e){this.columnController.removeRowGroupColumns(e,"api")},e.prototype.addRowGroupColumn=function(e){this.columnController.addRowGroupColumn(e,"api")},e.prototype.addRowGroupColumns=function(e){this.columnController.addRowGroupColumns(e,"api")},e.prototype.getRowGroupColumns=function(){return this.columnController.getRowGroupColumns()},e.prototype.setPivotColumns=function(e){this.columnController.setPivotColumns(e,"api")},e.prototype.removePivotColumn=function(e){this.columnController.removePivotColumn(e,"api")},e.prototype.removePivotColumns=function(e){this.columnController.removePivotColumns(e,"api")},e.prototype.addPivotColumn=function(e){this.columnController.addPivotColumn(e,"api")},e.prototype.addPivotColumns=function(e){this.columnController.addPivotColumns(e,"api")},e.prototype.getPivotColumns=function(){return this.columnController.getPivotColumns()},e.prototype.getLeftDisplayedColumnGroups=function(){return this.columnController.getLeftDisplayedColumnGroups()},e.prototype.getCenterDisplayedColumnGroups=function(){return this.columnController.getCenterDisplayedColumnGroups()},e.prototype.getRightDisplayedColumnGroups=function(){return this.columnController.getRightDisplayedColumnGroups()},e.prototype.getAllDisplayedColumnGroups=function(){return this.columnController.getAllDisplayedColumnGroups()},e.prototype.autoSizeColumn=function(e){return this.columnController.autoSizeColumn(e,"api")},e.prototype.autoSizeColumns=function(e){return this.columnController.autoSizeColumns(e,"api")},e.prototype.autoSizeAllColumns=function(){this.columnController.autoSizeAllColumns("api")},e.prototype.setSecondaryColumns=function(e){this.columnController.setSecondaryColumns(e,"api")},e.prototype.getSecondaryColumns=function(){return this.columnController.getSecondaryColumns()},e.prototype.getPrimaryColumns=function(){return this.columnController.getAllPrimaryColumns()},e.prototype.columnGroupOpened=function(e,t){console.error("ag-Grid: columnGroupOpened no longer exists, use setColumnGroupOpened"),this.setColumnGroupOpened(e,t)},e.prototype.hideColumns=function(e,t){console.error("ag-Grid: hideColumns is deprecated, use setColumnsVisible"),this.columnController.setColumnsVisible(e,!t,"api")},e.prototype.hideColumn=function(e,t){console.error("ag-Grid: hideColumn is deprecated, use setColumnVisible"),this.columnController.setColumnVisible(e,!t,"api")},e.prototype.setState=function(e){return console.error("ag-Grid: setState is deprecated, use setColumnState"),this.setColumnState(e)},e.prototype.getState=function(){return console.error("ag-Grid: getState is deprecated, use getColumnState"),this.getColumnState()},e.prototype.resetState=function(){console.error("ag-Grid: resetState is deprecated, use resetColumnState"),this.resetColumnState()},e.prototype.getAggregationColumns=function(){return console.error("ag-Grid: getAggregationColumns is deprecated, use getValueColumns"),this.columnController.getValueColumns()},e.prototype.removeAggregationColumn=function(e){console.error("ag-Grid: removeAggregationColumn is deprecated, use removeValueColumn"),this.columnController.removeValueColumn(e,"api")},e.prototype.removeAggregationColumns=function(e){console.error("ag-Grid: removeAggregationColumns is deprecated, use removeValueColumns"),this.columnController.removeValueColumns(e,"api")},e.prototype.addAggregationColumn=function(e){console.error("ag-Grid: addAggregationColumn is deprecated, use addValueColumn"),this.columnController.addValueColumn(e,"api")},e.prototype.addAggregationColumns=function(e){console.error("ag-Grid: addAggregationColumns is deprecated, use addValueColumns"),this.columnController.addValueColumns(e,"api")},e.prototype.setColumnAggFunction=function(e,t){console.error("ag-Grid: setColumnAggFunction is deprecated, use setColumnAggFunc"),this.columnController.setColumnAggFunc(e,t,"api")},e.prototype.getDisplayNameForCol=function(e){return console.error("ag-Grid: getDisplayNameForCol is deprecated, use getDisplayNameForColumn"),this.getDisplayNameForColumn(e,null)},n([s.Autowired("columnController"),r("design:type",i.ColumnController)],e.prototype,"columnController",void 0),n([s.Bean("columnApi")],e)}();t.ColumnApi=a},82980:function(e,t,o){var n,r=this&&this.__extends||(n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])},n(e,t)},function(e,t){function o(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(o.prototype=t.prototype,new o)}),i=this&&this.__decorate||function(e,t,o,n){var r,i=arguments.length,s=i<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,n);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,o,s):r(t,o))||s);return i>3&&s&&Object.defineProperty(t,o,s),s},s=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0});var a=o(59804),l=o(38830),p=o(99162),u=o(17890),c=o(43510),d=function(e){function t(){return e.call(this,t.TEMPLATE)||this}return r(t,e),t.prototype.init=function(e){var t=c._.createIconNoSpan("groupLoading",this.gridOptionsWrapper,null);this.eLoadingIcon.appendChild(t);var o=this.gridOptionsWrapper.getLocaleTextFunc();this.eLoadingText.innerText=o("loadingOoo","Loading")},t.prototype.refresh=function(e){return!1},t.TEMPLATE='<div class="ag-stub-cell">\n <span class="ag-loading-icon" ref="eLoadingIcon"></span>\n <span class="ag-loading-text" ref="eLoadingText"></span>\n </div>',i([a.Autowired("gridOptionsWrapper"),s("design:type",p.GridOptionsWrapper)],t.prototype,"gridOptionsWrapper",void 0),i([u.RefSelector("eLoadingIcon"),s("design:type",HTMLElement)],t.prototype,"eLoadingIcon",void 0),i([u.RefSelector("eLoadingText"),s("design:type",HTMLElement)],t.prototype,"eLoadingText",void 0),t}(l.Component);t.LoadingCellRenderer=d},83007:(e,t,o)=>{Object.defineProperty(t,"__esModule",{value:!0});var n=o(43510);t.simpleHttpRequest=function(e){return new n.Promise((function(t){var o=new XMLHttpRequest;o.open("GET",e.url),o.send(),o.onreadystatechange=function(){if(4==o.readyState&&200==o.status){var e=JSON.parse(o.responseText);t(e)}}}))}},83213:function(e,t,o){var n=this&&this.__decorate||function(e,t,o,n){var r,i=arguments.length,s=i<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,n);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,o,s):r(t,o))||s);return i>3&&s&&Object.defineProperty(t,o,s),s},r=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0});var i=o(59804),s=o(99162),a=o(27322),l=o(14035),p=o(51890),u=o(43510),c=function(){function e(){}return e.prototype.execute=function(e){var t=this.sortController.getSortForRowController(),o=u._.exists(t)&&t.length>0,n=o&&u._.exists(e.rowNodeTransactions)&&this.gridOptionsWrapper.isDeltaSort(),r=n?this.calculateDirtyNodes(e.rowNodeTransactions):null,i=this.columnController.getValueColumns(),s=u._.missingOrEmpty(i);this.sortService.sort(t,o,n,r,e.changedPath,s)},e.prototype.calculateDirtyNodes=function(e){var t={},o=function(e){e&&e.forEach((function(e){return t[e.id]=!0}))};return e.forEach((function(e){o(e.add),o(e.update),o(e.remove)})),t},n([i.Autowired("gridOptionsWrapper"),r("design:type",s.GridOptionsWrapper)],e.prototype,"gridOptionsWrapper",void 0),n([i.Autowired("sortService"),r("design:type",a.SortService)],e.prototype,"sortService",void 0),n([i.Autowired("sortController"),r("design:type",l.SortController)],e.prototype,"sortController",void 0),n([i.Autowired("columnController"),r("design:type",p.ColumnController)],e.prototype,"columnController",void 0),n([i.Bean("sortStage")],e)}();t.SortStage=c},83531:function(e,t,o){var n,r=this&&this.__extends||(n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])},n(e,t)},function(e,t){function o(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(o.prototype=t.prototype,new o)}),i=this&&this.__decorate||function(e,t,o,n){var r,i=arguments.length,s=i<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,n);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,o,s):r(t,o))||s);return i>3&&s&&Object.defineProperty(t,o,s),s},s=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0});var a=o(28348),l=o(59804),p=o(99162),u=o(43510),c=function(e){function t(t){var o=e.call(this,'<div class="ag-popup-editor" tabindex="-1"/>')||this;return o.getGuiCalledOnChild=!1,o.cellEditor=t,o}return r(t,e),t.prototype.onKeyDown=function(e){u._.isUserSuppressingKeyboardEvent(this.gridOptionsWrapper,e,this.params.node,this.params.column,!0)||this.params.onKeyDown(e)},t.prototype.getGui=function(){return this.getGuiCalledOnChild||(this.appendChild(this.cellEditor.getGui()),this.getGuiCalledOnChild=!0),e.prototype.getGui.call(this)},t.prototype.init=function(o){var n=this;this.params=o,this.gridOptionsWrapper.setDomData(this.getGui(),t.DOM_KEY_POPUP_EDITOR_WRAPPER,!0),this.addDestroyFunc((function(){n.cellEditor.destroy&&n.cellEditor.destroy()})),this.addDestroyableEventListener(e.prototype.getGui.call(this),"keydown",this.onKeyDown.bind(this))},t.prototype.afterGuiAttached=function(){this.cellEditor.afterGuiAttached&&this.cellEditor.afterGuiAttached()},t.prototype.getValue=function(){return this.cellEditor.getValue()},t.prototype.isCancelBeforeStart=function(){if(this.cellEditor.isCancelBeforeStart)return this.cellEditor.isCancelBeforeStart()},t.prototype.isCancelAfterEnd=function(){if(this.cellEditor.isCancelAfterEnd)return this.cellEditor.isCancelAfterEnd()},t.prototype.focusIn=function(){this.cellEditor.focusIn&&this.cellEditor.focusIn()},t.prototype.focusOut=function(){this.cellEditor.focusOut&&this.cellEditor.focusOut()},t.DOM_KEY_POPUP_EDITOR_WRAPPER="popupEditorWrapper",i([l.Autowired("gridOptionsWrapper"),s("design:type",p.GridOptionsWrapper)],t.prototype,"gridOptionsWrapper",void 0),t}(a.PopupComponent);t.PopupEditorWrapper=c},83921:function(e,t,o){var n=this&&this.__decorate||function(e,t,o,n){var r,i=arguments.length,s=i<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,n);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,o,s):r(t,o))||s);return i>3&&s&&Object.defineProperty(t,o,s),s},r=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},i=this&&this.__param||function(e,t){return function(o,n){t(o,n,e)}};Object.defineProperty(t,"__esModule",{value:!0});var s=o(59804),a=o(59804),l=o(12427),p=o(47304),u=o(33018),c=o(59804),d=o(99162),h=o(59804),f=o(44494),g=o(81404),m=o(31551),y=o(43510),v=o(1080),C=function(){function e(){}return e.prototype.setBeans=function(e){this.logger=e.create("SelectionController"),this.reset(),this.gridOptionsWrapper.isRowModelDefault()?this.eventService.addEventListener(u.Events.EVENT_ROW_DATA_CHANGED,this.reset.bind(this)):this.logger.log("dont know what to do here")},e.prototype.init=function(){this.groupSelectsChildren=this.gridOptionsWrapper.isGroupSelectsChildren(),this.eventService.addEventListener(u.Events.EVENT_ROW_SELECTED,this.onRowSelected.bind(this))},e.prototype.setLastSelectedNode=function(e){this.lastSelectedNode=e},e.prototype.getLastSelectedNode=function(){return this.lastSelectedNode},e.prototype.getSelectedNodes=function(){var e=[];return y._.iterateObject(this.selectedNodes,(function(t,o){o&&e.push(o)})),e},e.prototype.getSelectedRows=function(){var e=[];return y._.iterateObject(this.selectedNodes,(function(t,o){o&&o.data&&e.push(o.data)})),e},e.prototype.removeGroupsFromSelection=function(){var e=this;y._.iterateObject(this.selectedNodes,(function(t,o){o&&o.group&&(e.selectedNodes[o.id]=void 0)}))},e.prototype.updateGroupsFromChildrenSelections=function(e){if(this.gridOptionsWrapper.isGroupSelectsChildren()&&this.rowModel.getType()===f.Constants.ROW_MODEL_TYPE_CLIENT_SIDE){var t=this.rowModel.getRootNode();e||(e=new v.ChangedPath(!0,t)).setInactive(),e.forEachChangedNodeDepthFirst((function(e){e!==t&&e.calculateSelectedFromChildren()}))}},e.prototype.getNodeForIdIfSelected=function(e){return this.selectedNodes[e]},e.prototype.clearOtherNodes=function(e){var t=this,o={},n=0;return y._.iterateObject(this.selectedNodes,(function(r,i){if(i&&i.id!==e.id){var s=t.selectedNodes[i.id];n+=s.setSelectedParams({newValue:!1,clearSelection:!1,suppressFinishActions:!0}),t.groupSelectsChildren&&i.parent&&(o[i.parent.id]=i.parent)}})),y._.iterateObject(o,(function(e,t){t.calculateSelectedFromChildren()})),n},e.prototype.onRowSelected=function(e){var t=e.node;this.groupSelectsChildren&&t.group||(t.isSelected()?this.selectedNodes[t.id]=t:this.selectedNodes[t.id]=void 0)},e.prototype.syncInRowNode=function(e,t){this.syncInOldRowNode(e,t),this.syncInNewRowNode(e)},e.prototype.syncInOldRowNode=function(e,t){y._.exists(t)&&e.id!==t.id&&y._.exists(this.selectedNodes[t.id])&&(this.selectedNodes[t.id]=t)},e.prototype.syncInNewRowNode=function(e){y._.exists(this.selectedNodes[e.id])?(e.setSelectedInitialValue(!0),this.selectedNodes[e.id]=e):e.setSelectedInitialValue(!1)},e.prototype.reset=function(){this.logger.log("reset"),this.selectedNodes={},this.lastSelectedNode=null},e.prototype.getBestCostNodeSelection=function(){this.rowModel.getType()!==f.Constants.ROW_MODEL_TYPE_CLIENT_SIDE&&console.warn("getBestCostNodeSelection is only available when using normal row model");var e=this.rowModel.getTopLevelNodes();if(null!==e){var t=[];return function e(o){for(var n=0,r=o.length;n<r;n++){var i=o[n];i.isSelected()?t.push(i):i.group&&i.children&&e(i.children)}}(e),t}console.warn("selectAll not available doing rowModel=virtual")},e.prototype.setRowModel=function(e){this.rowModel=e},e.prototype.isEmpty=function(){var e=0;return y._.iterateObject(this.selectedNodes,(function(t,o){o&&e++})),0===e},e.prototype.deselectAllRowNodes=function(e){void 0===e&&(e=!1);var t=function(e){return e.selectThisNode(!1)},o=this.rowModel.getType()===f.Constants.ROW_MODEL_TYPE_CLIENT_SIDE;if(e){if(!o)return void console.error("ag-Grid: selecting just filtered only works with In Memory Row Model");this.rowModel.forEachNodeAfterFilter(t)}else y._.iterateObject(this.selectedNodes,(function(e,o){o&&t(o)})),this.reset();o&&this.groupSelectsChildren&&this.updateGroupsFromChildrenSelections();var n={type:u.Events.EVENT_SELECTION_CHANGED,api:this.gridApi,columnApi:this.columnApi};this.eventService.dispatchEvent(n)},e.prototype.selectAllRowNodes=function(e){if(void 0===e&&(e=!1),this.rowModel.getType()!==f.Constants.ROW_MODEL_TYPE_CLIENT_SIDE)throw new Error("selectAll only available with normal row model, ie not "+this.rowModel.getType());var t=this.rowModel,o=function(e){return e.selectThisNode(!0)};e?t.forEachNodeAfterFilter(o):t.forEachNode(o),this.rowModel.getType()===f.Constants.ROW_MODEL_TYPE_CLIENT_SIDE&&this.groupSelectsChildren&&this.updateGroupsFromChildrenSelections();var n={type:u.Events.EVENT_SELECTION_CHANGED,api:this.gridApi,columnApi:this.columnApi};this.eventService.dispatchEvent(n)},e.prototype.selectNode=function(e,t){e&&e.setSelectedParams({newValue:!0,clearSelection:!t})},e.prototype.deselectIndex=function(e){var t=this.rowModel.getRow(e);this.deselectNode(t)},e.prototype.deselectNode=function(e){e&&e.setSelectedParams({newValue:!1,clearSelection:!1})},e.prototype.selectIndex=function(e,t){var o=this.rowModel.getRow(e);this.selectNode(o,t)},n([c.Autowired("eventService"),r("design:type",p.EventService)],e.prototype,"eventService",void 0),n([c.Autowired("rowModel"),r("design:type",Object)],e.prototype,"rowModel",void 0),n([c.Autowired("gridOptionsWrapper"),r("design:type",d.GridOptionsWrapper)],e.prototype,"gridOptionsWrapper",void 0),n([c.Autowired("columnApi"),r("design:type",g.ColumnApi)],e.prototype,"columnApi",void 0),n([c.Autowired("gridApi"),r("design:type",m.GridApi)],e.prototype,"gridApi",void 0),n([i(0,a.Qualifier("loggerFactory")),r("design:type",Function),r("design:paramtypes",[l.LoggerFactory]),r("design:returntype",void 0)],e.prototype,"setBeans",null),n([h.PostConstruct,r("design:type",Function),r("design:paramtypes",[]),r("design:returntype",void 0)],e.prototype,"init",null),n([s.Bean("selectionController")],e)}();t.SelectionController=C},84891:function(e,t,o){var n=this&&this.__decorate||function(e,t,o,n){var r,i=arguments.length,s=i<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,n);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,o,s):r(t,o))||s);return i>3&&s&&Object.defineProperty(t,o,s),s},r=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0});var i=o(59804),s=o(39128),a=o(36071),l=o(99162),p=o(81404),u=o(31551),c=o(43510),d=function(){function e(){this.DEFAULT_HIDE_TOOLTIP_TIMEOUT=1e4,this.MOUSEOUT_HIDE_TOOLTIP_TIMEOUT=1e3,this.MOUSEOVER_SHOW_TOOLTIP_TIMEOUT=2e3,this.HIDE_SHOW_ONLY=!0,this.showTimeoutId=0,this.hideTimeoutId=0,this.registeredComponents={}}return e.prototype.registerTooltip=function(e){var t=this,o=e.getGui(),n=e.getCompId();e.addDestroyableEventListener(o,"mouseover",(function(o){return t.processMouseOver(o,e)})),e.addDestroyableEventListener(o,"mousemove",(function(e){return t.processMouseMove(e)})),e.addDestroyableEventListener(o,"mousedown",this.hideTooltip.bind(this)),e.addDestroyableEventListener(o,"mouseout",this.processMouseOut.bind(this)),this.registeredComponents[n]={tooltipComp:void 0,destroyFunc:void 0},e.addDestroyFunc((function(){return t.unregisterTooltip(e)}))},e.prototype.unregisterTooltip=function(e){var t=e.getCompId();this.activeComponent===e&&this.hideTooltip(),delete this.registeredComponents[t]},e.prototype.processMouseOver=function(e,t){var o=this.MOUSEOVER_SHOW_TOOLTIP_TIMEOUT;if(this.activeComponent){if(this.lastHoveredComponent===this.activeComponent)return;o=200}else if(this.showTimeoutId&&this.lastHoveredComponent===t)return;this.clearTimers(this.HIDE_SHOW_ONLY),this.lastHoveredComponent!==t&&(this.lastHoveredComponent=t,this.lastMouseEvent=e,this.showTimeoutId=window.setTimeout(this.showTooltip.bind(this),o,e))},e.prototype.processMouseOut=function(e){var t=this.activeComponent,o=e.relatedTarget;if(t){if(!t.getGui().contains(o)){var n=this.registeredComponents[t.getCompId()];c._.addCssClass(n.tooltipComp.getGui(),"ag-tooltip-hiding"),this.lastHoveredComponent=void 0,this.clearTimers(),this.hideTimeoutId=window.setTimeout(this.hideTooltip.bind(this),this.MOUSEOUT_HIDE_TOOLTIP_TIMEOUT)}}else{if(this.lastHoveredComponent){var r=this.lastHoveredComponent.getGui().contains(o);if(this.showTimeoutId&&r)return;r||(this.lastHoveredComponent=void 0)}this.clearTimers()}},e.prototype.processMouseMove=function(e){this.lastMouseEvent=e},e.prototype.showTooltip=function(e){var t=this.lastHoveredComponent,o=t,n=this.registeredComponents[t.getCompId()];this.hideTooltip();var r={api:this.gridApi,columnApi:this.columnApi,colDef:t.getComponentHolder(),column:o.getColumn&&o.getColumn(),context:this.gridOptionsWrapper.getContext(),rowIndex:o.getGridCell&&o.getGridCell().rowIndex,value:t.getTooltipText()};this.createTooltipComponent(r,n,e)},e.prototype.createTooltipComponent=function(e,t,o){var n=this;this.userComponentFactory.newTooltipComponent(e).then((function(e){if(t){t.tooltipComp=e;var o=e.getGui(),r=n.popupService.addPopup(!1,o,!1);t.destroyFunc=function(){r(),e.destroy&&e.destroy()},n.popupService.positionPopupUnderMouseEvent({type:"tooltip",mouseEvent:n.lastMouseEvent,ePopup:o,nudgeY:18}),n.activeComponent=n.lastHoveredComponent,n.hideTimeoutId=window.setTimeout(n.hideTooltip.bind(n),n.DEFAULT_HIDE_TOOLTIP_TIMEOUT)}}))},e.prototype.hideTooltip=function(){var e=this.activeComponent;if(this.clearTimers(),e){var t=e.getCompId(),o=this.registeredComponents[t];this.activeComponent=void 0,o&&(o.destroyFunc&&o.destroyFunc(),this.clearRegisteredComponent(o))}},e.prototype.clearRegisteredComponent=function(e){delete e.destroyFunc,delete e.tooltipComp},e.prototype.clearTimers=function(e){void 0===e&&(e=!1),this.hideTimeoutId&&!e&&(window.clearTimeout(this.hideTimeoutId),this.hideTimeoutId=0),this.showTimeoutId&&(window.clearTimeout(this.showTimeoutId),this.showTimeoutId=0)},n([i.Autowired("popupService"),r("design:type",s.PopupService)],e.prototype,"popupService",void 0),n([i.Autowired("userComponentFactory"),r("design:type",a.UserComponentFactory)],e.prototype,"userComponentFactory",void 0),n([i.Autowired("columnApi"),r("design:type",p.ColumnApi)],e.prototype,"columnApi",void 0),n([i.Autowired("gridApi"),r("design:type",u.GridApi)],e.prototype,"gridApi",void 0),n([i.Autowired("gridOptionsWrapper"),r("design:type",l.GridOptionsWrapper)],e.prototype,"gridOptionsWrapper",void 0),n([i.Bean("tooltipManager")],e)}();t.TooltipManager=d},85354:function(e,t,o){var n,r=this&&this.__extends||(n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])},n(e,t)},function(e,t){function o(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(o.prototype=t.prototype,new o)});Object.defineProperty(t,"__esModule",{value:!0});var i=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r(t,e),t.prototype.isPopup=function(){return!0},t}(o(33680).SelectCellEditor);t.PopupSelectCellEditor=i},85448:function(e,t,o){var n,r=this&&this.__extends||(n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])},n(e,t)},function(e,t){function o(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(o.prototype=t.prototype,new o)}),i=this&&this.__decorate||function(e,t,o,n){var r,i=arguments.length,s=i<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,n);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,o,s):r(t,o))||s);return i>3&&s&&Object.defineProperty(t,o,s),s},s=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0});var a=o(38830),l=o(17890),p=o(59804),u=o(99162),c=o(43510),d=function(e){function t(){var t=e.call(this)||this;return t.selected=!1,t.readOnly=!1,t.passive=!1,t}return r(t,e),t.prototype.preConstruct=function(){this.setTemplate(t.TEMPLATE)},t.prototype.postConstruct=function(){this.loadIcons(),this.updateIcons()},t.prototype.setLabel=function(e){this.eLabel.innerText=e},t.prototype.loadIcons=function(){c._.clearElement(this.eChecked),c._.clearElement(this.eUnchecked),c._.clearElement(this.eIndeterminate),this.readOnly?(this.eChecked.appendChild(c._.createIconNoSpan("checkboxCheckedReadOnly",this.gridOptionsWrapper,null)),this.eUnchecked.appendChild(c._.createIconNoSpan("checkboxUncheckedReadOnly",this.gridOptionsWrapper,null)),this.eIndeterminate.appendChild(c._.createIconNoSpan("checkboxIndeterminateReadOnly",this.gridOptionsWrapper,null))):(this.eChecked.appendChild(c._.createIconNoSpan("checkboxChecked",this.gridOptionsWrapper,null)),this.eUnchecked.appendChild(c._.createIconNoSpan("checkboxUnchecked",this.gridOptionsWrapper,null)),this.eIndeterminate.appendChild(c._.createIconNoSpan("checkboxIndeterminate",this.gridOptionsWrapper,null)))},t.prototype.onClick=function(e){c._.addAgGridEventPath(e),this.readOnly||this.toggle()},t.prototype.getNextValue=function(){return void 0===this.selected||!this.selected},t.prototype.setPassive=function(e){this.passive=e},t.prototype.setReadOnly=function(e){this.readOnly=e,this.loadIcons()},t.prototype.isReadOnly=function(){return this.readOnly},t.prototype.isSelected=function(){return this.selected},t.prototype.toggle=function(){var e=this.getNextValue();if(this.passive){var o={type:t.EVENT_CHANGED,selected:e};this.dispatchEvent(o)}else this.setSelected(e)},t.prototype.setSelected=function(e){if(this.selected!==e){this.selected=!0===e||!1!==e&&void 0,this.updateIcons();var o={type:t.EVENT_CHANGED,selected:this.selected};this.dispatchEvent(o)}},t.prototype.updateIcons=function(){c._.setVisible(this.eChecked,!0===this.selected),c._.setVisible(this.eUnchecked,!1===this.selected),c._.setVisible(this.eIndeterminate,void 0===this.selected)},t.EVENT_CHANGED="change",t.TEMPLATE='<span class="ag-checkbox" role="presentation"> <span class="ag-checkbox-checked" role="presentation"></span> <span class="ag-checkbox-unchecked" role="presentation"></span> <span class="ag-checkbox-indeterminate" role="presentation"></span> <span class="ag-checkbox-label" role="presentation"></span></span>',i([p.Autowired("gridOptionsWrapper"),s("design:type",u.GridOptionsWrapper)],t.prototype,"gridOptionsWrapper",void 0),i([l.QuerySelector(".ag-checkbox-checked"),s("design:type",HTMLElement)],t.prototype,"eChecked",void 0),i([l.QuerySelector(".ag-checkbox-unchecked"),s("design:type",HTMLElement)],t.prototype,"eUnchecked",void 0),i([l.QuerySelector(".ag-checkbox-indeterminate"),s("design:type",HTMLElement)],t.prototype,"eIndeterminate",void 0),i([l.QuerySelector(".ag-checkbox-label"),s("design:type",HTMLElement)],t.prototype,"eLabel",void 0),i([p.PreConstruct,s("design:type",Function),s("design:paramtypes",[]),s("design:returntype",void 0)],t.prototype,"preConstruct",null),i([p.PostConstruct,s("design:type",Function),s("design:paramtypes",[]),s("design:returntype",void 0)],t.prototype,"postConstruct",null),i([l.Listener("click"),s("design:type",Function),s("design:paramtypes",[MouseEvent]),s("design:returntype",void 0)],t.prototype,"onClick",null),t}(a.Component);t.AgCheckbox=d},85774:function(e,t,o){var n=this&&this.__decorate||function(e,t,o,n){var r,i=arguments.length,s=i<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,n);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,o,s):r(t,o))||s);return i>3&&s&&Object.defineProperty(t,o,s),s},r=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0});var i=o(59804),s=o(71627),a=o(24421),l=o(51890),p=o(43510),u=function(){function e(){}return e.prototype.registerGridComp=function(e){this.gridPanel=e},e.prototype.getPreferredHeightForRow=function(e){var t=this;this.eDummyContainer||(this.eDummyContainer=document.createElement("div"),p._.addCssClass(this.eDummyContainer,"ag-row ag-row-no-focus"));var o=this.gridPanel.getCenterContainer();o.appendChild(this.eDummyContainer);var n=[];this.columnController.getAllAutoRowHeightCols().filter((function(e){return e.isVisible()})).forEach((function(o){var r=new a.CellComp(t.$scope,t.beans,o,e,null,!0,!1);r.setParentRow(t.eDummyContainer),n.push(r)}));var r=n.map((function(e){return e.getCreateTemplate()})).join(" ");this.eDummyContainer.innerHTML=r,n.forEach((function(e){return e.afterAttached()}));for(var i=0,s=0;s<this.eDummyContainer.children.length;s++){var l=this.eDummyContainer.children[s];l.offsetHeight>i&&(i=l.offsetHeight)}return o.removeChild(this.eDummyContainer),n.forEach((function(e){e.detach(),e.destroy()})),p._.clearElement(this.eDummyContainer),i},n([i.Autowired("beans"),r("design:type",s.Beans)],e.prototype,"beans",void 0),n([i.Autowired("$scope"),r("design:type",Object)],e.prototype,"$scope",void 0),n([i.Autowired("columnController"),r("design:type",l.ColumnController)],e.prototype,"columnController",void 0),n([i.Bean("autoHeightCalculator")],e)}();t.AutoHeightCalculator=u},85859:(e,t,o)=>{var n,r=o(13390),i=o(78773);function s(e){if(e!==e.toLowerCase()&&e!==e.toUpperCase()||(e=e.toLowerCase()),-1===e.indexOf("-")&&-1===e.indexOf("_"))return e;{let t="",o=!1;const n=e.match(/^-+/);for(let r=n?n[0].length:0;r<e.length;r++){let n=e.charAt(r);o&&(o=!1,n=n.toUpperCase()),0===r||"-"!==n&&"_"!==n?"-"!==n&&"_"!==n&&(t+=n):o=!0}return t}}function a(e,t){const o=e.toLowerCase();t=t||"-";let n="";for(let r=0;r<e.length;r++){const i=o.charAt(r),s=e.charAt(r);n+=i!==s&&r>0?`${t}${o.charAt(r)}`:s}return n}function l(e){return null!=e&&("number"==typeof e||!!/^0x[0-9a-f]+$/i.test(e)||!/^0[^.]/.test(e)&&/^[-]?(?:\d+(?:\.\d*)?|\.\d+)(e[-+]?\d+)?$/.test(e))}let p;function u(e){return void 0!==e?e+1:1}function c(e){return"__proto__"===e?"___proto___":e}!function(e){e.BOOLEAN="boolean",e.STRING="string",e.NUMBER="number",e.ARRAY="array"}(n||(n={}));var d,h,f,g=o(4308),m=o(15088).process;const y=m&&m.env&&m.env.YARGS_MIN_NODE_VERSION?Number(m.env.YARGS_MIN_NODE_VERSION):12,v=null!==(h=null===(d=null==m?void 0:m.versions)||void 0===d?void 0:d.node)&&void 0!==h?h:null===(f=null==m?void 0:m.version)||void 0===f?void 0:f.slice(1);if(v&&Number(v.match(/^([^.]+)/)[1])<y)throw Error(`yargs parser supports a minimum Node.js version of ${y}. Read our version support policy: https://github.com/yargs/yargs-parser#supported-nodejs-versions`);const C=m?m.env:{},w=new class{constructor(e){p=e}parse(e,t){const o=Object.assign({alias:void 0,array:void 0,boolean:void 0,config:void 0,configObjects:void 0,configuration:void 0,coerce:void 0,count:void 0,default:void 0,envPrefix:void 0,narg:void 0,normalize:void 0,string:void 0,number:void 0,__:void 0,key:void 0},t),r=function(e){if(Array.isArray(e))return e.map((e=>"string"!=typeof e?e+"":e));e=e.trim();let t=0,o=null,n=null,r=null;const i=[];for(let s=0;s<e.length;s++)o=n,n=e.charAt(s)," "!==n||r?(n===r?r=null:"'"!==n&&'"'!==n||r||(r=n),i[t]||(i[t]=""),i[t]+=n):" "!==o&&t++;return i}(e),i="string"==typeof e,d=function(e){const t=[],o=Object.create(null);let n=!0;for(Object.keys(e).forEach((function(o){t.push([].concat(e[o],o))}));n;){n=!1;for(let e=0;e<t.length;e++)for(let o=e+1;o<t.length;o++)if(t[e].filter((function(e){return-1!==t[o].indexOf(e)})).length){t[e]=t[e].concat(t[o]),t.splice(o,1),n=!0;break}}return t.forEach((function(e){const t=(e=e.filter((function(e,t,o){return o.indexOf(e)===t}))).pop();void 0!==t&&"string"==typeof t&&(o[t]=e)})),o}(Object.assign(Object.create(null),o.alias)),h=Object.assign({"boolean-negation":!0,"camel-case-expansion":!0,"combine-arrays":!1,"dot-notation":!0,"duplicate-arguments-array":!0,"flatten-duplicate-arrays":!0,"greedy-arrays":!0,"halt-at-non-option":!1,"nargs-eats-options":!1,"negation-prefix":"no-","parse-numbers":!0,"parse-positional-numbers":!0,"populate--":!1,"set-placeholder-key":!1,"short-option-groups":!0,"strip-aliased":!1,"strip-dashed":!1,"unknown-options-as-args":!1},o.configuration),f=Object.assign(Object.create(null),o.default),g=o.configObjects||[],m=o.envPrefix,y=h["populate--"],v=y?"--":"_",C=Object.create(null),w=Object.create(null),_=o.__||p.format,E={aliases:Object.create(null),arrays:Object.create(null),bools:Object.create(null),strings:Object.create(null),numbers:Object.create(null),counts:Object.create(null),normalize:Object.create(null),configs:Object.create(null),nargs:Object.create(null),coercions:Object.create(null),keys:[]},b=/^-([0-9]+(\.[0-9]+)?|\.[0-9]+)$/,R=new RegExp("^--"+h["negation-prefix"]+"(.+)");[].concat(o.array||[]).filter(Boolean).forEach((function(e){const t="object"==typeof e?e.key:e,o=Object.keys(e).map((function(e){return{boolean:"bools",string:"strings",number:"numbers"}[e]})).filter(Boolean).pop();o&&(E[o][t]=!0),E.arrays[t]=!0,E.keys.push(t)})),[].concat(o.boolean||[]).filter(Boolean).forEach((function(e){E.bools[e]=!0,E.keys.push(e)})),[].concat(o.string||[]).filter(Boolean).forEach((function(e){E.strings[e]=!0,E.keys.push(e)})),[].concat(o.number||[]).filter(Boolean).forEach((function(e){E.numbers[e]=!0,E.keys.push(e)})),[].concat(o.count||[]).filter(Boolean).forEach((function(e){E.counts[e]=!0,E.keys.push(e)})),[].concat(o.normalize||[]).filter(Boolean).forEach((function(e){E.normalize[e]=!0,E.keys.push(e)})),"object"==typeof o.narg&&Object.entries(o.narg).forEach((([e,t])=>{"number"==typeof t&&(E.nargs[e]=t,E.keys.push(e))})),"object"==typeof o.coerce&&Object.entries(o.coerce).forEach((([e,t])=>{"function"==typeof t&&(E.coercions[e]=t,E.keys.push(e))})),void 0!==o.config&&(Array.isArray(o.config)||"string"==typeof o.config?[].concat(o.config).filter(Boolean).forEach((function(e){E.configs[e]=!0})):"object"==typeof o.config&&Object.entries(o.config).forEach((([e,t])=>{"boolean"!=typeof t&&"function"!=typeof t||(E.configs[e]=t)}))),function(...e){e.forEach((function(e){Object.keys(e||{}).forEach((function(e){E.aliases[e]||(E.aliases[e]=[].concat(d[e]||[]),E.aliases[e].concat(e).forEach((function(t){if(/-/.test(t)&&h["camel-case-expansion"]){const o=s(t);o!==e&&-1===E.aliases[e].indexOf(o)&&(E.aliases[e].push(o),C[o]=!0)}})),E.aliases[e].concat(e).forEach((function(t){if(t.length>1&&/[A-Z]/.test(t)&&h["camel-case-expansion"]){const o=a(t,"-");o!==e&&-1===E.aliases[e].indexOf(o)&&(E.aliases[e].push(o),C[o]=!0)}})),E.aliases[e].forEach((function(t){E.aliases[t]=[e].concat(E.aliases[e].filter((function(e){return t!==e})))})))}))}))}(o.key,d,o.default,E.arrays),Object.keys(f).forEach((function(e){(E.aliases[e]||[]).forEach((function(t){f[t]=f[e]}))}));let S=null;Object.keys(E.counts).find((e=>W(e,E.arrays)?(S=Error(_("Invalid configuration: %s, opts.count excludes opts.array.",e)),!0):!!W(e,E.nargs)&&(S=Error(_("Invalid configuration: %s, opts.count excludes opts.narg.",e)),!0)));let O=[];const P=Object.assign(Object.create(null),{_:[]}),A={};for(let e=0;e<r.length;e++){const t=r[e],o=t.replace(/^-{3,}/,"---");let n,i,s,a,l,p;if("--"!==t&&/^-/.test(t)&&B(t))T(t);else{if(o.match(/^---+(=|$)/)){T(t);continue}if(t.match(/^--.+=/)||!h["short-option-groups"]&&t.match(/^-.+=/))a=t.match(/^--?([^=]+)=([\s\S]*)$/),null!==a&&Array.isArray(a)&&a.length>=3&&(W(a[1],E.arrays)?e=N(e,a[1],r,a[2]):!1!==W(a[1],E.nargs)?e=D(e,a[1],r,a[2]):I(a[1],a[2],!0));else if(t.match(R)&&h["boolean-negation"])a=t.match(R),null!==a&&Array.isArray(a)&&a.length>=2&&(i=a[1],I(i,!!W(i,E.arrays)&&[!1]));else if(t.match(/^--.+/)||!h["short-option-groups"]&&t.match(/^-[^-]+/))a=t.match(/^--?(.+)/),null!==a&&Array.isArray(a)&&a.length>=2&&(i=a[1],W(i,E.arrays)?e=N(e,i,r):!1!==W(i,E.nargs)?e=D(e,i,r):(l=r[e+1],void 0===l||l.match(/^-/)&&!l.match(b)||W(i,E.bools)||W(i,E.counts)?/^(true|false)$/.test(l)?(I(i,l),e++):I(i,U(i)):(I(i,l),e++)));else if(t.match(/^-.\..+=/))a=t.match(/^-([^=]+)=([\s\S]*)$/),null!==a&&Array.isArray(a)&&a.length>=3&&I(a[1],a[2]);else if(t.match(/^-.\..+/)&&!t.match(b))l=r[e+1],a=t.match(/^-(.\..+)/),null!==a&&Array.isArray(a)&&a.length>=2&&(i=a[1],void 0===l||l.match(/^-/)||W(i,E.bools)||W(i,E.counts)?I(i,U(i)):(I(i,l),e++));else if(t.match(/^-[^-]+/)&&!t.match(b)){s=t.slice(1,-1).split(""),n=!1;for(let o=0;o<s.length;o++){if(l=t.slice(o+2),s[o+1]&&"="===s[o+1]){p=t.slice(o+3),i=s[o],W(i,E.arrays)?e=N(e,i,r,p):!1!==W(i,E.nargs)?e=D(e,i,r,p):I(i,p),n=!0;break}if("-"!==l){if(/[A-Za-z]/.test(s[o])&&/^-?\d+(\.\d*)?(e-?\d+)?$/.test(l)&&!1===W(l,E.bools)){I(s[o],l),n=!0;break}if(s[o+1]&&s[o+1].match(/\W/)){I(s[o],l),n=!0;break}I(s[o],U(s[o]))}else I(s[o],l)}i=t.slice(-1)[0],n||"-"===i||(W(i,E.arrays)?e=N(e,i,r):!1!==W(i,E.nargs)?e=D(e,i,r):(l=r[e+1],void 0===l||/^(-|--)[^-]/.test(l)&&!l.match(b)||W(i,E.bools)||W(i,E.counts)?/^(true|false)$/.test(l)?(I(i,l),e++):I(i,U(i)):(I(i,l),e++)))}else if(t.match(/^-[0-9]$/)&&t.match(b)&&W(t.slice(1),E.bools))i=t.slice(1),I(i,U(i));else{if("--"===t){O=r.slice(e+1);break}if(h["halt-at-non-option"]){O=r.slice(e);break}T(t)}}}function T(e){const t=L("_",e);"string"!=typeof t&&"number"!=typeof t||P._.push(t)}function D(e,t,o,n){let r,i=W(t,E.nargs);if(i="number"!=typeof i||isNaN(i)?1:i,0===i)return Y(n)||(S=Error(_("Argument unexpected for: %s",t))),I(t,U(t)),e;let s=Y(n)?0:1;if(h["nargs-eats-options"])o.length-(e+1)+s<i&&(S=Error(_("Not enough arguments following: %s",t))),s=i;else{for(r=e+1;r<o.length&&(!o[r].match(/^-[^0-9]/)||o[r].match(b)||B(o[r]));r++)s++;s<i&&(S=Error(_("Not enough arguments following: %s",t)))}let a=Math.min(s,i);for(!Y(n)&&a>0&&(I(t,n),a--),r=e+1;r<a+e+1;r++)I(t,o[r]);return e+a}function N(e,t,o,n){let r=[],s=n||o[e+1];const a=W(t,E.nargs);if(W(t,E.bools)&&!/^(true|false)$/.test(s))r.push(!0);else if(Y(s)||Y(n)&&/^-/.test(s)&&!b.test(s)&&!B(s)){if(void 0!==f[t]){const e=f[t];r=Array.isArray(e)?e:[e]}}else{Y(n)||r.push(F(t,n,!0));for(let n=e+1;n<o.length&&!(!h["greedy-arrays"]&&r.length>0||a&&"number"==typeof a&&r.length>=a)&&(s=o[n],!/^-/.test(s)||b.test(s)||B(s));n++)e=n,r.push(F(t,s,i))}return"number"==typeof a&&(a&&r.length<a||isNaN(a)&&0===r.length)&&(S=Error(_("Not enough arguments following: %s",t))),I(t,r),e}function I(e,t,o=i){if(/-/.test(e)&&h["camel-case-expansion"]){const t=e.split(".").map((function(e){return s(e)})).join(".");x(e,t)}const n=F(e,t,o),r=e.split(".");j(P,r,n),E.aliases[e]&&E.aliases[e].forEach((function(e){const t=e.split(".");j(P,t,n)})),r.length>1&&h["dot-notation"]&&(E.aliases[r[0]]||[]).forEach((function(t){let o=t.split(".");const i=[].concat(r);i.shift(),o=o.concat(i),(E.aliases[e]||[]).includes(o.join("."))||j(P,o,n)})),W(e,E.normalize)&&!W(e,E.arrays)&&[e].concat(E.aliases[e]||[]).forEach((function(e){Object.defineProperty(A,e,{enumerable:!0,get:()=>t,set(e){t="string"==typeof e?p.normalize(e):e}})}))}function x(e,t){E.aliases[e]&&E.aliases[e].length||(E.aliases[e]=[t],C[t]=!0),E.aliases[t]&&E.aliases[t].length||x(t,e)}function F(e,t,o){o&&(t=function(e){return"string"!=typeof e||"'"!==e[0]&&'"'!==e[0]||e[e.length-1]!==e[0]?e:e.substring(1,e.length-1)}(t)),(W(e,E.bools)||W(e,E.counts))&&"string"==typeof t&&(t="true"===t);let n=Array.isArray(t)?t.map((function(t){return L(e,t)})):L(e,t);return W(e,E.counts)&&(Y(n)||"boolean"==typeof n)&&(n=u()),W(e,E.normalize)&&W(e,E.arrays)&&(n=Array.isArray(t)?t.map((e=>p.normalize(e))):p.normalize(t)),n}function L(e,t){return h["parse-positional-numbers"]||"_"!==e?(W(e,E.strings)||W(e,E.bools)||Array.isArray(t)||(l(t)&&h["parse-numbers"]&&Number.isSafeInteger(Math.floor(parseFloat(`${t}`)))||!Y(t)&&W(e,E.numbers))&&(t=Number(t)),t):t}function M(e,t){Object.keys(e).forEach((function(o){const n=e[o],r=t?t+"."+o:o;"object"==typeof n&&null!==n&&!Array.isArray(n)&&h["dot-notation"]?M(n,r):(!V(P,r.split("."))||W(r,E.arrays)&&h["combine-arrays"])&&I(r,n)}))}function k(e,t){if(void 0===m)return;const o="string"==typeof m?m:"",n=p.env();Object.keys(n).forEach((function(r){if(""===o||0===r.lastIndexOf(o,0)){const i=r.split("__").map((function(e,t){return 0===t&&(e=e.substring(o.length)),s(e)}));(t&&E.configs[i.join(".")]||!t)&&!V(e,i)&&I(i.join("."),n[r])}}))}function G(e,t,o,n=!1){Object.keys(o).forEach((function(r){V(e,r.split("."))||(j(e,r.split("."),o[r]),n&&(w[r]=!0),(t[r]||[]).forEach((function(t){V(e,t.split("."))||j(e,t.split("."),o[r])})))}))}function V(e,t){let o=e;h["dot-notation"]||(t=[t.join(".")]),t.slice(0,-1).forEach((function(e){o=o[e]||{}}));const n=t[t.length-1];return"object"==typeof o&&n in o}function j(e,t,o){let n=e;h["dot-notation"]||(t=[t.join(".")]),t.slice(0,-1).forEach((function(e){e=c(e),"object"==typeof n&&void 0===n[e]&&(n[e]={}),"object"!=typeof n[e]||Array.isArray(n[e])?(Array.isArray(n[e])?n[e].push({}):n[e]=[n[e],{}],n=n[e][n[e].length-1]):n=n[e]}));const r=c(t[t.length-1]),i=W(t.join("."),E.arrays),s=Array.isArray(o);let a=h["duplicate-arguments-array"];!a&&W(r,E.nargs)&&(a=!0,(!Y(n[r])&&1===E.nargs[r]||Array.isArray(n[r])&&n[r].length===E.nargs[r])&&(n[r]=void 0)),o===u()?n[r]=u(n[r]):Array.isArray(n[r])?a&&i&&s?n[r]=h["flatten-duplicate-arrays"]?n[r].concat(o):(Array.isArray(n[r][0])?n[r]:[n[r]]).concat([o]):a||Boolean(i)!==Boolean(s)?n[r]=n[r].concat([o]):n[r]=o:void 0===n[r]&&i?n[r]=s?o:[o]:!a||void 0===n[r]||W(r,E.counts)||W(r,E.bools)?n[r]=o:n[r]=[n[r],o]}function W(e,t){const o=[].concat(E.aliases[e]||[],e),n=Object.keys(t),r=o.find((e=>n.includes(e)));return!!r&&t[r]}function H(e){const t=Object.keys(E);return[].concat(t.map((e=>E[e]))).some((function(t){return Array.isArray(t)?t.includes(e):t[e]}))}function B(e){return h["unknown-options-as-args"]&&function(e){return!(e=e.replace(/^-{3,}/,"--")).match(b)&&(!function(e){if(e.match(b)||!e.match(/^-[^-]+/))return!1;let t,o=!0;const n=e.slice(1).split("");for(let r=0;r<n.length;r++){if(t=e.slice(r+2),!H(n[r])){o=!1;break}if(n[r+1]&&"="===n[r+1]||"-"===t||/[A-Za-z]/.test(n[r])&&/^-?\d+(\.\d*)?(e-?\d+)?$/.test(t)||n[r+1]&&n[r+1].match(/\W/))break}return o}(e)&&!function(e,...t){return[].concat(...t).some((function(t){const o=e.match(t);return o&&H(o[1])}))}(e,/^-+([^=]+?)=[\s\S]*$/,R,/^-+([^=]+?)$/,/^-+([^=]+?)-$/,/^-+([^=]+?\d+)$/,/^-+([^=]+?)\W+.*$/))}(e)}function U(e){return W(e,E.bools)||W(e,E.counts)||!(`${e}`in f)?(t=function(e){let t=n.BOOLEAN;return W(e,E.strings)?t=n.STRING:W(e,E.numbers)?t=n.NUMBER:W(e,E.bools)?t=n.BOOLEAN:W(e,E.arrays)&&(t=n.ARRAY),t}(e),{[n.BOOLEAN]:!0,[n.STRING]:"",[n.NUMBER]:void 0,[n.ARRAY]:[]}[t]):f[e];var t}function Y(e){return void 0===e}return k(P,!0),k(P,!1),function(e){const t=Object.create(null);G(t,E.aliases,f),Object.keys(E.configs).forEach((function(o){const n=e[o]||t[o];if(n)try{let e=null;const t=p.resolve(p.cwd(),n),r=E.configs[o];if("function"==typeof r){try{e=r(t)}catch(t){e=t}if(e instanceof Error)return void(S=e)}else e=p.require(t);M(e)}catch(t){"PermissionDenied"===t.name?S=t:e[o]&&(S=Error(_("Invalid JSON config file: %s",n)))}}))}(P),void 0!==g&&g.forEach((function(e){M(e)})),G(P,E.aliases,f,!0),function(e){let t;const o=new Set;Object.keys(e).forEach((function(n){if(!o.has(n)&&(t=W(n,E.coercions),"function"==typeof t))try{const r=L(n,t(e[n]));[].concat(E.aliases[n]||[],n).forEach((t=>{o.add(t),e[t]=r}))}catch(e){S=e}}))}(P),h["set-placeholder-key"]&&function(e){E.keys.forEach((t=>{~t.indexOf(".")||void 0===e[t]&&(e[t]=void 0)}))}(P),Object.keys(E.counts).forEach((function(e){V(P,e.split("."))||I(e,0)})),y&&O.length&&(P[v]=[]),O.forEach((function(e){P[v].push(e)})),h["camel-case-expansion"]&&h["strip-dashed"]&&Object.keys(P).filter((e=>"--"!==e&&e.includes("-"))).forEach((e=>{delete P[e]})),h["strip-aliased"]&&[].concat(...Object.keys(d).map((e=>d[e]))).forEach((e=>{h["camel-case-expansion"]&&e.includes("-")&&delete P[e.split(".").map((e=>s(e))).join(".")],delete P[e]})),{aliases:Object.assign({},E.aliases),argv:Object.assign(A,P),configuration:h,defaulted:Object.assign({},w),error:S,newAliases:Object.assign({},C)}}}({cwd:m.cwd,env:()=>C,format:r.format,normalize:i.normalize,resolve:i.resolve,require:e=>{if("undefined"!=typeof require)return require(e);if(e.match(/\.json$/))return JSON.parse((0,g.readFileSync)(e,"utf8"));throw Error("only .json config files are supported in ESM")}}),_=function(e,t){return w.parse(e.slice(),t).argv};_.detailed=function(e,t){return w.parse(e.slice(),t)},_.camelCase=s,_.decamelize=a,_.looksLikeNumber=l},86637:(e,t,o)=>{o.d(t,{Di:()=>M,M3:()=>j,Tt:()=>C,b8:()=>pe,bD:()=>c,eM:()=>ee,hL:()=>g,iM:()=>ie,u1:()=>w,u6:()=>Y});var n,r,i,s,a,l,p="vercel.ai.error",u=Symbol.for(p),c=class e extends(r=Error,n=u,r){constructor({name:e,message:t,cause:o}){super(t),this[n]=!0,this.name=e,this.cause=o}static isInstance(t){return e.hasMarker(t,p)}static hasMarker(e,t){const o=Symbol.for(t);return null!=e&&"object"==typeof e&&o in e&&"boolean"==typeof e[o]&&!0===e[o]}},d="AI_APICallError",h=`vercel.ai.error.${d}`,f=Symbol.for(h),g=class extends(s=c,i=f,s){constructor({message:e,url:t,requestBodyValues:o,statusCode:n,responseHeaders:r,responseBody:s,cause:a,isRetryable:l=null!=n&&(408===n||409===n||429===n||n>=500),data:p}){super({name:d,message:e,cause:a}),this[i]=!0,this.url=t,this.requestBodyValues=o,this.statusCode=n,this.responseHeaders=r,this.responseBody=s,this.isRetryable=l,this.data=p}static isInstance(e){return c.hasMarker(e,h)}},m="AI_EmptyResponseBodyError",y=`vercel.ai.error.${m}`,v=Symbol.for(y),C=class extends(l=c,a=v,l){constructor({message:e="Empty response body"}={}){super({name:m,message:e}),this[a]=!0}static isInstance(e){return c.hasMarker(e,y)}};function w(e){return null==e?"unknown error":"string"==typeof e?e:e instanceof Error?e.message:JSON.stringify(e)}var _,E,b,R,S,O,P,A,T,D,N,I,x="AI_InvalidArgumentError",F=`vercel.ai.error.${x}`,L=Symbol.for(F),M=class extends(E=c,_=L,E){constructor({message:e,cause:t,argument:o}){super({name:x,message:e,cause:t}),this[_]=!0,this.argument=o}static isInstance(e){return c.hasMarker(e,F)}},k="AI_InvalidPromptError",G=`vercel.ai.error.${k}`,V=Symbol.for(G),j=class extends(R=c,b=V,R){constructor({prompt:e,message:t,cause:o}){super({name:k,message:`Invalid prompt: ${t}`,cause:o}),this[b]=!0,this.prompt=e}static isInstance(e){return c.hasMarker(e,G)}},W=Symbol.for("vercel.ai.error.AI_InvalidResponseDataError"),H="AI_JSONParseError",B=`vercel.ai.error.${H}`,U=Symbol.for(B),Y=class extends(O=c,S=U,O){constructor({text:e,cause:t}){super({name:H,message:`JSON parsing failed: Text: ${e}.\nError message: ${w(t)}`,cause:t}),this[S]=!0,this.text=e}static isInstance(e){return c.hasMarker(e,B)}},z=Symbol.for("vercel.ai.error.AI_LoadAPIKeyError"),$=`vercel.ai.error.${"AI_LoadSettingError"}`,K=Symbol.for($),q=`vercel.ai.error.${"AI_NoContentGeneratedError"}`,Z=Symbol.for(q),Q="AI_NoSuchModelError",X=`vercel.ai.error.${Q}`,J=Symbol.for(X),ee=class extends(A=c,P=J,A){constructor({errorName:e=Q,modelId:t,modelType:o,message:n=`No such ${o}: ${t}`}){super({name:e,message:n}),this[P]=!0,this.modelId=t,this.modelType=o}static isInstance(e){return c.hasMarker(e,X)}},te=Symbol.for("vercel.ai.error.AI_TooManyEmbeddingValuesForCallError"),oe="AI_TypeValidationError",ne=`vercel.ai.error.${oe}`,re=Symbol.for(ne),ie=class e extends(D=c,T=re,D){constructor({value:e,cause:t,context:o}){let n="Type validation failed";if((null==o?void 0:o.field)&&(n+=` for ${o.field}`),(null==o?void 0:o.entityName)||(null==o?void 0:o.entityId)){n+=" (";const e=[];o.entityName&&e.push(o.entityName),o.entityId&&e.push(`id: "${o.entityId}"`),n+=e.join(", "),n+=")"}super({name:oe,message:`${n}: Value: ${JSON.stringify(e)}.\nError message: ${w(t)}`,cause:t}),this[T]=!0,this.value=e,this.context=o}static isInstance(e){return c.hasMarker(e,ne)}static wrap({value:t,cause:o,context:n}){var r,i,s;return e.isInstance(o)&&o.value===t&&(null==(r=o.context)?void 0:r.field)===(null==n?void 0:n.field)&&(null==(i=o.context)?void 0:i.entityName)===(null==n?void 0:n.entityName)&&(null==(s=o.context)?void 0:s.entityId)===(null==n?void 0:n.entityId)?o:new e({value:t,cause:o,context:n})}},se="AI_UnsupportedFunctionalityError",ae=`vercel.ai.error.${se}`,le=Symbol.for(ae),pe=class extends(I=c,N=le,I){constructor({functionality:e,message:t=`'${e}' functionality not supported.`}){super({name:se,message:t}),this[N]=!0,this.functionality=e}static isInstance(e){return c.hasMarker(e,ae)}}},86834:function(e,t,o){var n,r=this&&this.__createBinding||(Object.create?function(e,t,o,n){void 0===n&&(n=o);var r=Object.getOwnPropertyDescriptor(t,o);r&&!("get"in r?!t.__esModule:r.writable||r.configurable)||(r={enumerable:!0,get:function(){return t[o]}}),Object.defineProperty(e,n,r)}:function(e,t,o,n){void 0===n&&(n=o),e[n]=t[o]}),i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),s=this&&this.__importStar||(n=function(e){return n=Object.getOwnPropertyNames||function(e){var t=[];for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[t.length]=o);return t},n(e)},function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var o=n(e),s=0;s<o.length;s++)"default"!==o[s]&&r(t,e,o[s]);return i(t,e),t});Object.defineProperty(t,"__esModule",{value:!0}),t.redactValidConnectionString=function(e,t){const o=e.clone(),n=t?.replacementString??"_credentials_",r=t?.redactUsernames??!0;if((o.username||o.password)&&r?(o.username=n,o.password=""):o.password&&(o.password=n),o.searchParams.has("authMechanismProperties")){const e=new a.CommaAndColonSeparatedRecord(o.searchParams.get("authMechanismProperties"));e.get("AWS_SESSION_TOKEN")&&(e.set("AWS_SESSION_TOKEN",n),o.searchParams.set("authMechanismProperties",e.toString()))}return o.searchParams.has("tlsCertificateKeyFilePassword")&&o.searchParams.set("tlsCertificateKeyFilePassword",n),o.searchParams.has("proxyUsername")&&r&&o.searchParams.set("proxyUsername",n),o.searchParams.has("proxyPassword")&&o.searchParams.set("proxyPassword",n),o},t.redactConnectionString=function(e,t){const o=t?.replacementString??"<credentials>",n=t?.redactUsernames??!0;let r;try{r=new a.default(e)}catch{}if(r)return t={...t,replacementString:"___credentials___"},r.redact(t).toString().replace(/___credentials___/g,o);const i=o,s=[e=>e.replace(n?/(\/\/)(.*)(@)/g:/(\/\/[^@]*:)(.*)(@)/g,`$1${i}$3`),e=>e.replace(/(AWS_SESSION_TOKEN(:|%3A))([^,&]+)/gi,`$1${i}`),e=>e.replace(/(tlsCertificateKeyFilePassword=)([^&]+)/gi,`$1${i}`),e=>n?e.replace(/(proxyUsername=)([^&]+)/gi,`$1${i}`):e,e=>e.replace(/(proxyPassword=)([^&]+)/gi,`$1${i}`)];for(const t of s)e=t(e);return e};const a=s(o(2511))},88245:function(e,t,o){var n,r=this&&this.__createBinding||(Object.create?function(e,t,o,n){void 0===n&&(n=o);var r=Object.getOwnPropertyDescriptor(t,o);r&&!("get"in r?!t.__esModule:r.writable||r.configurable)||(r={enumerable:!0,get:function(){return t[o]}}),Object.defineProperty(e,n,r)}:function(e,t,o,n){void 0===n&&(n=o),e[n]=t[o]}),i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),s=this&&this.__importStar||(n=function(e){return n=Object.getOwnPropertyNames||function(e){var t=[];for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[t.length]=o);return t},n(e)},function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var o=n(e),s=0;s<o.length;s++)"default"!==o[s]&&r(t,e,o[s]);return i(t,e),t});Object.defineProperty(t,"__esModule",{value:!0}),t.redactValidConnectionString=function(e,t){const o=e.clone(),n=t?.replacementString??"_credentials_",r=t?.redactUsernames??!0;if((o.username||o.password)&&r?(o.username=n,o.password=""):o.password&&(o.password=n),o.searchParams.has("authMechanismProperties")){const e=new a.CommaAndColonSeparatedRecord(o.searchParams.get("authMechanismProperties"));e.get("AWS_SESSION_TOKEN")&&(e.set("AWS_SESSION_TOKEN",n),o.searchParams.set("authMechanismProperties",e.toString()))}return o.searchParams.has("tlsCertificateKeyFilePassword")&&o.searchParams.set("tlsCertificateKeyFilePassword",n),o.searchParams.has("proxyUsername")&&r&&o.searchParams.set("proxyUsername",n),o.searchParams.has("proxyPassword")&&o.searchParams.set("proxyPassword",n),o},t.redactConnectionString=function(e,t){const o=t?.replacementString??"<credentials>",n=t?.redactUsernames??!0;let r;try{r=new a.default(e)}catch{}if(r)return t={...t,replacementString:"___credentials___"},r.redact(t).toString().replace(/___credentials___/g,o);const i=o,s=[e=>e.replace(n?/(\/\/)(.*)(@)/g:/(\/\/[^@]*:)(.*)(@)/g,`$1${i}$3`),e=>e.replace(/(AWS_SESSION_TOKEN(:|%3A))([^,&]+)/gi,`$1${i}`),e=>e.replace(/(tlsCertificateKeyFilePassword=)([^&]+)/gi,`$1${i}`),e=>n?e.replace(/(proxyUsername=)([^&]+)/gi,`$1${i}`):e,e=>e.replace(/(proxyPassword=)([^&]+)/gi,`$1${i}`)];for(const t of s)e=t(e);return e};const a=s(o(99598))},89967:(e,t,o)=>{Object.defineProperty(t,"__esModule",{value:!0});var n=o(20455),r=o(62695),i=!1;t.initialiseAgGridWithWebComponents=function(){if(console.warn("ag-grid: initialiseAgGridWithWebComponents is deprecated. Please use the ag-grid-webcomponent dependency instead. "),!i){i=!0,"undefined"!=typeof document&&document.registerElement||console.error("ag-Grid: unable to find document.registerElement() function, unable to initialise ag-Grid as a Web Component");var e=Object.create(HTMLElement.prototype);n.ComponentUtil.ALL_PROPERTIES.forEach((function(t){Object.defineProperty(e,t,{set:function(e){this.__agGridSetProperty(t,e)},get:function(){return this.__agGridGetProperty(t)},enumerable:!0,configurable:!0})}));var t=e;t.__agGridSetProperty=function(e,t){this.__attributes||(this.__attributes={}),this.__attributes[e]=t;var o={};o[e]={currentValue:t},this.onChange(o)},t.onChange=function(e){this._initialised&&n.ComponentUtil.processOnChange(e,this._gridOptions,this.api,this.columnApi)},t.__agGridGetProperty=function(e){return this.__attributes||(this.__attributes={}),this.__attributes[e]},t.setGridOptions=function(e){var t=this.globalEventListener.bind(this);this._gridOptions=n.ComponentUtil.copyAttributesToGridOptions(e,this);var o={globalEventListener:t};this._agGrid=new r.Grid(this,this._gridOptions,o),this.api=e.api,this.columnApi=e.columnApi,this._initialised=!0},t.createdCallback=function(){for(var e=0;e<this.attributes.length;e++){var t=this.attributes[e];this.setPropertyFromAttribute(t)}},t.setPropertyFromAttribute=function(e){var t,o="string"==typeof(t=e.nodeName)?t.replace(/-([a-z])/g,(function(e){return e[1].toUpperCase()})):t,r=e.nodeValue;n.ComponentUtil.ALL_PROPERTIES.indexOf(o)>=0&&(this[o]=r)},t.attachedCallback=function(e){},t.detachedCallback=function(e){},t.attributeChangedCallback=function(e){var t=this.attributes[e];this.setPropertyFromAttribute(t)},t.globalEventListener=function(e,t){var o=e.toLowerCase(),n=new Event(o);n.agGridDetails=t,this.dispatchEvent(n);var r="on"+o;"function"==typeof this[r]&&this[r](n)},document.registerElement("ag-grid",{prototype:e})}}},90150:function(e,t,o){var n=this&&this.__decorate||function(e,t,o,n){var r,i=arguments.length,s=i<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,n);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,o,s):r(t,o))||s);return i>3&&s&&Object.defineProperty(t,o,s),s};Object.defineProperty(t,"__esModule",{value:!0});var r=o(59804),i=function(){function e(){}return e.prototype.download=function(e,t){if(window.navigator.msSaveOrOpenBlob)window.navigator.msSaveOrOpenBlob(t,e);else{var o=document.createElement("a"),n=window.URL.createObjectURL(t);o.setAttribute("href",n),o.setAttribute("download",e),o.style.display="none",document.body.appendChild(o),o.click(),window.URL.revokeObjectURL(n),document.body.removeChild(o)}},n([r.Bean("downloader")],e)}();t.Downloader=i},90727:function(e,t,o){var n,r=this&&this.__extends||(n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])},n(e,t)},function(e,t){function o(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(o.prototype=t.prototype,new o)}),i=this&&this.__decorate||function(e,t,o,n){var r,i=arguments.length,s=i<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,n);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,o,s):r(t,o))||s);return i>3&&s&&Object.defineProperty(t,o,s),s},s=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0});var a=o(38830),l=o(51890),p=o(99162),u=o(59804),c=o(55758),d=o(17890),h=o(19135),f=o(43510),g=function(e){function t(){return e.call(this,t.TEMPLATE)||this}return r(t,e),t.prototype.init=function(e){this.params=e,this.setupLabel(),this.addGroupExpandIcon(),this.setupExpandIcons()},t.prototype.setupExpandIcons=function(){var e=this;this.addInIcon("columnGroupOpened","agOpened"),this.addInIcon("columnGroupClosed","agClosed");var t=function(t){if(!f._.isStopPropagationForAgGrid(t)){var o=!e.params.columnGroup.isExpanded();e.columnController.setColumnGroupOpened(e.params.columnGroup.getOriginalColumnGroup(),o,"uiColumnExpanded")}};this.addTouchAndClickListeners(this.eCloseIcon,t),this.addTouchAndClickListeners(this.eOpenIcon,t);var o=function(e){f._.stopPropagationForAgGrid(e)};this.addDestroyableEventListener(this.eCloseIcon,"dblclick",o),this.addDestroyableEventListener(this.eOpenIcon,"dblclick",o),this.addDestroyableEventListener(this.getGui(),"dblclick",t),this.updateIconVisibility();var n=this.params.columnGroup.getOriginalColumnGroup();this.addDestroyableEventListener(n,h.OriginalColumnGroup.EVENT_EXPANDED_CHANGED,this.updateIconVisibility.bind(this)),this.addDestroyableEventListener(n,h.OriginalColumnGroup.EVENT_EXPANDABLE_CHANGED,this.updateIconVisibility.bind(this))},t.prototype.addTouchAndClickListeners=function(e,t){var o=new c.TouchListener(this.eCloseIcon);this.addDestroyableEventListener(o,c.TouchListener.EVENT_TAP,t),this.addDestroyFunc((function(){return o.destroy()})),this.addDestroyableEventListener(e,"click",t)},t.prototype.updateIconVisibility=function(){if(this.params.columnGroup.isExpandable()){var e=this.params.columnGroup.isExpanded();f._.setVisible(this.eOpenIcon,!e),f._.setVisible(this.eCloseIcon,e)}else f._.setVisible(this.eOpenIcon,!1),f._.setVisible(this.eCloseIcon,!1)},t.prototype.addInIcon=function(e,t){var o=f._.createIconNoSpan(e,this.gridOptionsWrapper,null);this.getRefElement(t).appendChild(o)},t.prototype.addGroupExpandIcon=function(){if(!this.params.columnGroup.isExpandable())return f._.setVisible(this.eOpenIcon,!1),void f._.setVisible(this.eCloseIcon,!1)},t.prototype.setupLabel=function(){this.params.displayName&&""!==this.params.displayName&&(this.getRefElement("agLabel").innerHTML=this.params.displayName)},t.TEMPLATE='<div class="ag-header-group-cell-label" ref="agContainer"><span ref="agLabel" class="ag-header-group-text"></span><span ref="agOpened" class="ag-header-icon ag-header-expand-icon ag-header-expand-icon-expanded"></span><span ref="agClosed" class="ag-header-icon ag-header-expand-icon ag-header-expand-icon-collapsed"></span></div>',i([u.Autowired("columnController"),s("design:type",l.ColumnController)],t.prototype,"columnController",void 0),i([u.Autowired("gridOptionsWrapper"),s("design:type",p.GridOptionsWrapper)],t.prototype,"gridOptionsWrapper",void 0),i([d.RefSelector("agOpened"),s("design:type",HTMLElement)],t.prototype,"eOpenIcon",void 0),i([d.RefSelector("agClosed"),s("design:type",HTMLElement)],t.prototype,"eCloseIcon",void 0),t}(a.Component);t.HeaderGroupComp=g},91705:function(e,t,o){var n,r=this&&this.__createBinding||(Object.create?function(e,t,o,n){void 0===n&&(n=o);var r=Object.getOwnPropertyDescriptor(t,o);r&&!("get"in r?!t.__esModule:r.writable||r.configurable)||(r={enumerable:!0,get:function(){return t[o]}}),Object.defineProperty(e,n,r)}:function(e,t,o,n){void 0===n&&(n=o),e[n]=t[o]}),i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),s=this&&this.__importStar||(n=function(e){return n=Object.getOwnPropertyNames||function(e){var t=[];for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[t.length]=o);return t},n(e)},function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var o=n(e),s=0;s<o.length;s++)"default"!==o[s]&&r(t,e,o[s]);return i(t,e),t});Object.defineProperty(t,"__esModule",{value:!0}),t.redactValidConnectionString=function(e,t){const o=e.clone(),n=t?.replacementString??"_credentials_",r=t?.redactUsernames??!0;if((o.username||o.password)&&r?(o.username=n,o.password=""):o.password&&(o.password=n),o.searchParams.has("authMechanismProperties")){const e=new a.CommaAndColonSeparatedRecord(o.searchParams.get("authMechanismProperties"));e.get("AWS_SESSION_TOKEN")&&(e.set("AWS_SESSION_TOKEN",n),o.searchParams.set("authMechanismProperties",e.toString()))}return o.searchParams.has("tlsCertificateKeyFilePassword")&&o.searchParams.set("tlsCertificateKeyFilePassword",n),o.searchParams.has("proxyUsername")&&r&&o.searchParams.set("proxyUsername",n),o.searchParams.has("proxyPassword")&&o.searchParams.set("proxyPassword",n),o},t.redactConnectionString=function(e,t){const o=t?.replacementString??"<credentials>",n=t?.redactUsernames??!0;let r;try{r=new a.default(e)}catch{}if(r)return t={...t,replacementString:"___credentials___"},r.redact(t).toString().replace(/___credentials___/g,o);const i=o,s=[e=>e.replace(n?/(\/\/)(.*)(@)/g:/(\/\/[^@]*:)(.*)(@)/g,`$1${i}$3`),e=>e.replace(/(AWS_SESSION_TOKEN(:|%3A))([^,&]+)/gi,`$1${i}`),e=>e.replace(/(tlsCertificateKeyFilePassword=)([^&]+)/gi,`$1${i}`),e=>n?e.replace(/(proxyUsername=)([^&]+)/gi,`$1${i}`):e,e=>e.replace(/(proxyPassword=)([^&]+)/gi,`$1${i}`)];for(const t of s)e=t(e);return e};const a=s(o(7386))},91901:function(e,t,o){var n=this&&this.__decorate||function(e,t,o,n){var r,i=arguments.length,s=i<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,n);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,o,s):r(t,o))||s);return i>3&&s&&Object.defineProperty(t,o,s),s},r=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0});var i=o(59804),s=o(99162),a=function(){function e(){this.executeNextFuncs=[],this.executeLaterFuncs=[],this.active=!1,this.animationThreadCount=0}return e.prototype.registerGridComp=function(e){this.gridPanel=e},e.prototype.isActive=function(){return this.active},e.prototype.start=function(){this.active||this.gridOptionsWrapper.isSuppressColumnMoveAnimation()||this.gridOptionsWrapper.isEnableRtl()||(this.ensureAnimationCssClassPresent(),this.active=!0)},e.prototype.finish=function(){this.active&&(this.flush(),this.active=!1)},e.prototype.executeNextVMTurn=function(e){this.active?this.executeNextFuncs.push(e):e()},e.prototype.executeLaterVMTurn=function(e){this.active?this.executeLaterFuncs.push(e):e()},e.prototype.ensureAnimationCssClassPresent=function(){var e=this;this.animationThreadCount++;var t=this.animationThreadCount;this.gridPanel.setColumnMovingCss(!0),this.executeLaterFuncs.push((function(){e.animationThreadCount===t&&e.gridPanel.setColumnMovingCss(!1)}))},e.prototype.flush=function(){var e=this.executeNextFuncs;this.executeNextFuncs=[];var t=this.executeLaterFuncs;this.executeLaterFuncs=[],0===e.length&&0===t.length||(window.setTimeout((function(){return e.forEach((function(e){return e()}))}),0),window.setTimeout((function(){return t.forEach((function(e){return e()}))}),300))},n([i.Autowired("gridOptionsWrapper"),r("design:type",s.GridOptionsWrapper)],e.prototype,"gridOptionsWrapper",void 0),n([i.Bean("columnAnimationService")],e)}();t.ColumnAnimationService=a},92053:function(e,t,o){var n,r=this&&this.__extends||(n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])},n(e,t)},function(e,t){function o(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(o.prototype=t.prototype,new o)}),i=this&&this.__decorate||function(e,t,o,n){var r,i=arguments.length,s=i<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,n);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,o,s):r(t,o))||s);return i>3&&s&&Object.defineProperty(t,o,s),s},s=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0});var a=o(85448),l=o(33669),p=o(59804),u=o(81404),c=o(31551),d=o(33018),h=o(47304),f=o(44494),g=o(83921),m=o(99162),y=function(e){function t(t,o){var n=e.call(this)||this;n.cbSelectAllVisible=!1,n.processingEventFromCheckbox=!1,n.cbSelectAll=t,n.column=o;var r=o.getColDef();return n.filteredOnly=!!r&&!!r.headerCheckboxSelectionFilteredOnly,n}return r(t,e),t.prototype.postConstruct=function(){this.showOrHideSelectAll(),this.addDestroyableEventListener(this.eventService,d.Events.EVENT_DISPLAYED_COLUMNS_CHANGED,this.showOrHideSelectAll.bind(this)),this.addDestroyableEventListener(this.eventService,d.Events.EVENT_SELECTION_CHANGED,this.onSelectionChanged.bind(this)),this.addDestroyableEventListener(this.eventService,d.Events.EVENT_MODEL_UPDATED,this.onModelChanged.bind(this)),this.addDestroyableEventListener(this.cbSelectAll,a.AgCheckbox.EVENT_CHANGED,this.onCbSelectAll.bind(this))},t.prototype.showOrHideSelectAll=function(){this.cbSelectAllVisible=this.isCheckboxSelection(),this.cbSelectAll.setVisible(this.cbSelectAllVisible),this.cbSelectAllVisible&&(this.checkRightRowModelType(),this.updateStateOfCheckbox())},t.prototype.onModelChanged=function(){this.cbSelectAllVisible&&this.updateStateOfCheckbox()},t.prototype.onSelectionChanged=function(){this.cbSelectAllVisible&&this.updateStateOfCheckbox()},t.prototype.getNextCheckboxState=function(e){return(0!==e.selected||0!==e.notSelected)&&(e.selected>0&&e.notSelected>0?null:e.selected>0)},t.prototype.updateStateOfCheckbox=function(){if(!this.processingEventFromCheckbox){this.processingEventFromCheckbox=!0;var e=this.getSelectionCount(),t=this.getNextCheckboxState(e);this.cbSelectAll.setSelected(t),this.processingEventFromCheckbox=!1}},t.prototype.getSelectionCount=function(){var e=this,t=0,o=0,n=function(n){e.gridOptionsWrapper.isGroupSelectsChildren()&&n.group||(n.isSelected()?t++:n.selectable&&o++)};return this.filteredOnly?this.gridApi.forEachNodeAfterFilter(n):this.gridApi.forEachNode(n),{notSelected:o,selected:t}},t.prototype.checkRightRowModelType=function(){var e=this.rowModel.getType();e===f.Constants.ROW_MODEL_TYPE_CLIENT_SIDE||console.warn("ag-Grid: selectAllCheckbox is only available if using normal row model, you are using "+e)},t.prototype.onCbSelectAll=function(){this.processingEventFromCheckbox||this.cbSelectAllVisible&&(this.cbSelectAll.isSelected()?this.selectionController.selectAllRowNodes(this.filteredOnly):this.selectionController.deselectAllRowNodes(this.filteredOnly))},t.prototype.isCheckboxSelection=function(){var e=this.column.getColDef().headerCheckboxSelection;return"function"==typeof e&&(e=e({column:this.column,colDef:this.column.getColDef(),columnApi:this.columnApi,api:this.gridApi})),!(!e||(this.gridOptionsWrapper.isRowModelServerSide()?(console.warn("headerCheckboxSelection is not supported for Server Side Row Model"),1):this.gridOptionsWrapper.isRowModelInfinite()?(console.warn("headerCheckboxSelection is not supported for Infinite Row Model"),1):this.gridOptionsWrapper.isRowModelViewport()&&(console.warn("headerCheckboxSelection is not supported for Viewport Row Model"),1)))},i([p.Autowired("gridApi"),s("design:type",c.GridApi)],t.prototype,"gridApi",void 0),i([p.Autowired("columnApi"),s("design:type",u.ColumnApi)],t.prototype,"columnApi",void 0),i([p.Autowired("eventService"),s("design:type",h.EventService)],t.prototype,"eventService",void 0),i([p.Autowired("rowModel"),s("design:type",Object)],t.prototype,"rowModel",void 0),i([p.Autowired("selectionController"),s("design:type",g.SelectionController)],t.prototype,"selectionController",void 0),i([p.Autowired("gridOptionsWrapper"),s("design:type",m.GridOptionsWrapper)],t.prototype,"gridOptionsWrapper",void 0),i([p.PostConstruct,s("design:type",Function),s("design:paramtypes",[]),s("design:returntype",void 0)],t.prototype,"postConstruct",null),t}(l.BeanStub);t.SelectAllFeature=y},92367:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0});var o=function(){function e(){}return e.parse=function(t){if(!t)return null;if(!0===t)return{toolPanels:[e.DEFAULT_COLUMN_COMP,e.DEFAULT_FILTER_COMP],defaultToolPanel:"columns"};if("string"==typeof t)return e.parse([t]);if(Array.isArray(t)){var o=[];return t.forEach((function(t){var n=e.DEFAULT_BY_KEY[t];n?o.push(n):console.warn("ag-grid: the key "+t+" is not a valid key for specifying a tool panel, valid keys are: "+Object.keys(e.DEFAULT_BY_KEY).join(","))})),0===o.length?null:{toolPanels:o,defaultToolPanel:o[0].id}}return{toolPanels:e.parseComponents(t.toolPanels),defaultToolPanel:t.defaultToolPanel,hiddenByDefault:t.hiddenByDefault}},e.parseComponents=function(t){var o=[];return t.forEach((function(t){var n=null;if("string"==typeof t){var r=e.DEFAULT_BY_KEY[t];if(!r)return void console.warn("ag-grid: the key "+t+" is not a valid key for specifying a tool panel, valid keys are: "+Object.keys(e.DEFAULT_BY_KEY).join(","));n=r}else n=t;o.push(n)})),o},e.DEFAULT_COLUMN_COMP={id:"columns",labelDefault:"Columns",labelKey:"columns",iconKey:"columns",toolPanel:"agColumnsToolPanel"},e.DEFAULT_FILTER_COMP={id:"filters",labelDefault:"Filters",labelKey:"filters",iconKey:"filter",toolPanel:"agFiltersToolPanel"},e.DEFAULT_BY_KEY={columns:e.DEFAULT_COLUMN_COMP,filters:e.DEFAULT_FILTER_COMP},e}();t.SideBarDefParser=o},92926:e=>{e.exports=function(e){var t=e.insertStyleElement(e);return{update:function(o){!function(e,t,o){var n=o.css,r=o.media,i=o.sourceMap;r?e.setAttribute("media",r):e.removeAttribute("media"),i&&"undefined"!=typeof btoa&&(n+="\n/*# sourceMappingURL=data:application/json;base64,".concat(btoa(unescape(encodeURIComponent(JSON.stringify(i))))," */")),t.styleTagTransform(n,e)}(t,e,o)},remove:function(){!function(e){if(null===e.parentNode)return!1;e.parentNode.removeChild(e)}(t)}}}},93431:(e,t,o)=>{o.d(t,{Ay:()=>r,J0:()=>i});var n=o(68446);const r=n.default,i=(n.CommaAndColonSeparatedRecord,n.ConnectionString,n.redactConnectionString)},93706:(e,t,o)=>{o.d(t,{A:()=>A});var n=o(1582);const r=["area","base","basefont","bgsound","br","col","command","embed","frame","hr","image","img","input","isindex","keygen","link","menuitem","meta","nextid","param","source","track","wbr"];var i=o(72741),s=o(11269),a=o(75272),l=o(23666),p=o(28615),u=o(59597),c=o(52211);const d=f(1),h=f(-1);function f(e){return function(t,o,n){const r=t?t.children:[];let i=(o||0)+e,s=r&&r[i];if(!n)for(;s&&(0,c.m)(s);)i+=e,s=r[i];return s}}const g={}.hasOwnProperty;function m(e){return function(t,o,n){return g.call(e,t.tagName)&&e[t.tagName](t,o,n)}}const y=m({html:function(e,t,o){const n=d(o,t);return!n||"comment"!==n.type},head:v,body:function(e,t,o){const n=d(o,t);return!n||"comment"!==n.type},p:function(e,t,o){const n=d(o,t);return n?"element"===n.type&&("address"===n.tagName||"article"===n.tagName||"aside"===n.tagName||"blockquote"===n.tagName||"details"===n.tagName||"div"===n.tagName||"dl"===n.tagName||"fieldset"===n.tagName||"figcaption"===n.tagName||"figure"===n.tagName||"footer"===n.tagName||"form"===n.tagName||"h1"===n.tagName||"h2"===n.tagName||"h3"===n.tagName||"h4"===n.tagName||"h5"===n.tagName||"h6"===n.tagName||"header"===n.tagName||"hgroup"===n.tagName||"hr"===n.tagName||"main"===n.tagName||"menu"===n.tagName||"nav"===n.tagName||"ol"===n.tagName||"p"===n.tagName||"pre"===n.tagName||"section"===n.tagName||"table"===n.tagName||"ul"===n.tagName):!o||!("element"===o.type&&("a"===o.tagName||"audio"===o.tagName||"del"===o.tagName||"ins"===o.tagName||"map"===o.tagName||"noscript"===o.tagName||"video"===o.tagName))},li:function(e,t,o){const n=d(o,t);return!n||"element"===n.type&&"li"===n.tagName},dt:function(e,t,o){const n=d(o,t);return n&&"element"===n.type&&("dt"===n.tagName||"dd"===n.tagName)},dd:function(e,t,o){const n=d(o,t);return!n||"element"===n.type&&("dt"===n.tagName||"dd"===n.tagName)},rt:C,rp:C,optgroup:function(e,t,o){const n=d(o,t);return!n||"element"===n.type&&"optgroup"===n.tagName},option:function(e,t,o){const n=d(o,t);return!n||"element"===n.type&&("option"===n.tagName||"optgroup"===n.tagName)},menuitem:function(e,t,o){const n=d(o,t);return!n||"element"===n.type&&("menuitem"===n.tagName||"hr"===n.tagName||"menu"===n.tagName)},colgroup:v,caption:v,thead:function(e,t,o){const n=d(o,t);return n&&"element"===n.type&&("tbody"===n.tagName||"tfoot"===n.tagName)},tbody:function(e,t,o){const n=d(o,t);return!n||"element"===n.type&&("tbody"===n.tagName||"tfoot"===n.tagName)},tfoot:function(e,t,o){return!d(o,t)},tr:function(e,t,o){const n=d(o,t);return!n||"element"===n.type&&"tr"===n.tagName},td:w,th:w});function v(e,t,o){const n=d(o,t,!0);return!n||"comment"!==n.type&&!("text"===n.type&&(0,c.m)(n.value.charAt(0)))}function C(e,t,o){const n=d(o,t);return!n||"element"===n.type&&("rp"===n.tagName||"rt"===n.tagName)}function w(e,t,o){const n=d(o,t);return!n||"element"===n.type&&("td"===n.tagName||"th"===n.tagName)}const _=m({html:function(e){const t=d(e,-1);return!t||"comment"!==t.type},head:function(e){const t=e.children,o=[];let n=-1;for(;++n<t.length;){const e=t[n];if("element"===e.type&&("title"===e.tagName||"base"===e.tagName)){if(o.includes(e.tagName))return!1;o.push(e.tagName)}}return t.length>0},body:function(e){const t=d(e,-1,!0);return!(t&&("comment"===t.type||"text"===t.type&&(0,c.m)(t.value.charAt(0))||"element"===t.type&&("meta"===t.tagName||"link"===t.tagName||"script"===t.tagName||"style"===t.tagName||"template"===t.tagName)))},colgroup:function(e,t,o){const n=h(o,t),r=d(e,-1,!0);return!(o&&n&&"element"===n.type&&"colgroup"===n.tagName&&y(n,o.children.indexOf(n),o))&&(r&&"element"===r.type&&"col"===r.tagName)},tbody:function(e,t,o){const n=h(o,t),r=d(e,-1);return(!o||!n||"element"!==n.type||"thead"!==n.tagName&&"tbody"!==n.tagName||!y(n,o.children.indexOf(n),o))&&(r&&"element"===r.type&&"tr"===r.tagName)}}),E={name:[["\t\n\f\r &/=>".split(""),"\t\n\f\r \"&'/=>`".split("")],["\0\t\n\f\r \"&'/<=>".split(""),"\0\t\n\f\r \"&'/<=>`".split("")]],unquoted:[["\t\n\f\r &>".split(""),"\0\t\n\f\r \"&'<=>`".split("")],["\0\t\n\f\r \"&'<=>`".split(""),"\0\t\n\f\r \"&'<=>`".split("")]],single:[["&'".split(""),"\"&'`".split("")],["\0&'".split(""),"\0\"&'`".split("")]],double:[['"&'.split(""),"\"&'`".split("")],['\0"&'.split(""),"\0\"&'`".split("")]]};function b(e,t,o){const n=(0,p.I)(e.schema,t),r=e.settings.allowParseErrors&&"html"===e.schema.space?0:1,i=e.settings.allowDangerousCharacters?0:1;let c,d=e.quote;if(!n.overloadedBoolean||o!==n.attribute&&""!==o?(n.boolean||n.overloadedBoolean&&"string"!=typeof o)&&(o=Boolean(o)):o=!0,null==o||!1===o||"number"==typeof o&&Number.isNaN(o))return"";const h=(0,s.l)(n.attribute,Object.assign({},e.settings.characterReferences,{subset:E.name[r][i]}));return!0===o?h:(o=Array.isArray(o)?(n.commaSeparated?l.A:u.A)(o,{padLeft:!e.settings.tightCommaSeparatedLists}):String(o),e.settings.collapseEmptyAttributes&&!o?h:(e.settings.preferUnquoted&&(c=(0,s.l)(o,Object.assign({},e.settings.characterReferences,{subset:E.unquoted[r][i],attribute:!0}))),c!==o&&(e.settings.quoteSmart&&(0,a.D)(o,d)>(0,a.D)(o,e.alternative)&&(d=e.alternative),c=d+(0,s.l)(o,Object.assign({},e.settings.characterReferences,{subset:("'"===d?E.single:E.double)[r][i],attribute:!0}))+d),h+(c?"="+c:c)))}function R(e,t,o,n){return!o||"element"!==o.type||"script"!==o.tagName&&"style"!==o.tagName?(0,s.l)(e.value,Object.assign({},n.settings.characterReferences,{subset:["<","&"]})):e.value}const S=(0,i.A)("type",{invalid:function(e){throw new Error("Expected node, not `"+e+"`")},unknown:function(e){throw new Error("Cannot compile unknown node `"+e.type+"`")},handlers:{comment:function(e,t,o,n){return n.settings.bogusComments?"<?"+(0,s.l)(e.value,Object.assign({},n.settings.characterReferences,{subset:[">"]}))+">":"\x3c!--"+e.value.replace(/^>|^->|<!--|-->|--!>|<!-$/g,(function(e){return(0,s.l)(e,Object.assign({},n.settings.characterReferences,{subset:["<",">"]}))}))+"--\x3e"},doctype:function(e,t,o,n){return"<!"+(n.settings.upperDoctype?"DOCTYPE":"doctype")+(n.settings.tightDoctype?"":" ")+"html>"},element:function(e,t,o,r){const i=r.schema,s="svg"!==i.space&&r.settings.omitOptionalTags;let a="svg"===i.space?r.settings.closeEmptyElements:r.settings.voids.includes(e.tagName.toLowerCase());const l=[];let p;"html"===i.space&&"svg"===e.tagName&&(r.schema=n.JW);const u=function(e,t){const o=[];let n,r=-1;if(t)for(n in t)if(void 0!==t[n]&&null!==t[n]){const r=b(e,n,t[n]);r&&o.push(r)}for(;++r<o.length;){const t=e.settings.tightAttributes?o[r].charAt(o[r].length-1):null;r!==o.length-1&&'"'!==t&&"'"!==t&&(o[r]+=" ")}return o.join("")}(r,e.properties),c=r.all("html"===i.space&&"template"===e.tagName?e.content:e);return r.schema=i,c&&(a=!1),!u&&s&&_(e,t,o)||(l.push("<",e.tagName,u?" "+u:""),a&&("svg"===i.space||r.settings.closeSelfClosing)&&(p=u.charAt(u.length-1),(!r.settings.tightSelfClosing||"/"===p||p&&'"'!==p&&"'"!==p)&&l.push(" "),l.push("/")),l.push(">")),l.push(c),a||s&&y(e,t,o)||l.push("</"+e.tagName+">"),l.join("")},raw:function(e,t,o,n){return n.settings.allowDangerousHtml?e.value:R(e,0,o,n)},root:function(e,t,o,n){return n.all(e)},text:R}});function O(e,t,o){return S(e,t,o,this)}function P(e){const t=[],o=e&&e.children||[];let n=-1;for(;++n<o.length;)t[n]=this.one(o[n],n,e);return t.join("")}function A(e){const t=this.data("settings"),o=Object.assign({},t,e);Object.assign(this,{Compiler:function(e){return function(e,t){const o=t||{},i=o.quote||'"',s='"'===i?"'":'"';if('"'!==i&&"'"!==i)throw new Error("Invalid quote `"+i+"`, expected `'` or `\"`");return{one:O,all:P,settings:{omitOptionalTags:o.omitOptionalTags||!1,allowParseErrors:o.allowParseErrors||!1,allowDangerousCharacters:o.allowDangerousCharacters||!1,quoteSmart:o.quoteSmart||!1,preferUnquoted:o.preferUnquoted||!1,tightAttributes:o.tightAttributes||!1,upperDoctype:o.upperDoctype||!1,tightDoctype:o.tightDoctype||!1,bogusComments:o.bogusComments||!1,tightCommaSeparatedLists:o.tightCommaSeparatedLists||!1,tightSelfClosing:o.tightSelfClosing||!1,collapseEmptyAttributes:o.collapseEmptyAttributes||!1,allowDangerousHtml:o.allowDangerousHtml||!1,voids:o.voids||r,characterReferences:o.characterReferences||o.entities||{},closeSelfClosing:o.closeSelfClosing||!1,closeEmptyElements:o.closeEmptyElements||!1},schema:"svg"===o.space?n.JW:n.qy,quote:i,alternative:s}.one(Array.isArray(e)?{type:"root",children:e}:e,void 0,void 0)}(e,o)}})}},94741:function(e,t,o){var n,r=this&&this.__extends||(n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])},n(e,t)},function(e,t){function o(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(o.prototype=t.prototype,new o)}),i=this&&this.__decorate||function(e,t,o,n){var r,i=arguments.length,s=i<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,n);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,o,s):r(t,o))||s);return i>3&&s&&Object.defineProperty(t,o,s),s},s=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0});var a=o(47304),l=o(59804),p=o(33018),u=o(33669),c=o(81404),d=o(31551),h=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r(t,e),t.prototype.setMouseOver=function(e){this.selectedColumns=e;var t={type:p.Events.EVENT_COLUMN_HOVER_CHANGED,api:this.gridApi,columnApi:this.columnApi};this.eventService.dispatchEvent(t)},t.prototype.clearMouseOver=function(){this.selectedColumns=null;var e={type:p.Events.EVENT_COLUMN_HOVER_CHANGED,api:this.gridApi,columnApi:this.columnApi};this.eventService.dispatchEvent(e)},t.prototype.isHovered=function(e){return this.selectedColumns&&this.selectedColumns.indexOf(e)>=0},i([l.Autowired("eventService"),s("design:type",a.EventService)],t.prototype,"eventService",void 0),i([l.Autowired("columnApi"),s("design:type",c.ColumnApi)],t.prototype,"columnApi",void 0),i([l.Autowired("gridApi"),s("design:type",d.GridApi)],t.prototype,"gridApi",void 0),i([l.Bean("columnHoverService")],t)}(u.BeanStub);t.ColumnHoverService=h},95012:(e,t,o)=>{o.d(t,{Ay:()=>r});var n=o(2511);const r=n.default;n.CommaAndColonSeparatedRecord,n.ConnectionString,n.redactConnectionString},95242:function(e,t,o){var n,r=this&&this.__extends||(n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])},n(e,t)},function(e,t){function o(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(o.prototype=t.prototype,new o)}),i=this&&this.__decorate||function(e,t,o,n){var r,i=arguments.length,s=i<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,n);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,o,s):r(t,o))||s);return i>3&&s&&Object.defineProperty(t,o,s),s},s=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0});var a=o(99162),l=o(59804),p=o(6658),u=o(1659),c=o(43510),d=function(e){function t(t,o){var n=e.call(this,t,o)||this;return n.cacheParams=o,n}return r(t,e),t.prototype.createBlankRowNode=function(t){var o=e.prototype.createBlankRowNode.call(this,t);return o.uiLevel=0,this.setIndexAndTopOnRowNode(o,t),o},t.prototype.setDataAndId=function(e,t,o){c._.exists(t)?e.setDataAndId(t,o.toString()):e.setDataAndId(void 0,void 0)},t.prototype.setRowNode=function(t,o){e.prototype.setRowNode.call(this,t,o),this.setIndexAndTopOnRowNode(o,t)},t.prototype.init=function(){e.prototype.init.call(this,{context:this.getContext(),rowRenderer:this.rowRenderer})},t.prototype.getNodeIdPrefix=function(){return null},t.prototype.getRow=function(e){return this.getRowUsingLocalIndex(e)},t.prototype.setIndexAndTopOnRowNode=function(e,t){e.setRowIndex(t),e.rowTop=this.cacheParams.rowHeight*t},t.prototype.loadFromDatasource=function(){var e=this,t={startRow:this.getStartRow(),endRow:this.getEndRow(),successCallback:this.pageLoaded.bind(this,this.getVersion()),failCallback:this.pageLoadFailed.bind(this),sortModel:this.cacheParams.sortModel,filterModel:this.cacheParams.filterModel,context:this.gridOptionsWrapper.getContext()};c._.missing(this.cacheParams.datasource.getRows)?console.warn("ag-Grid: datasource is missing getRows method"):(c._.getFunctionParameters(this.cacheParams.datasource.getRows).length>1&&(console.warn("ag-grid: It looks like your paging datasource is of the old type, taking more than one parameter."),console.warn("ag-grid: From ag-grid 1.9.0, now the getRows takes one parameter. See the documentation for details.")),window.setTimeout((function(){e.cacheParams.datasource.getRows(t)}),0))},i([l.Autowired("gridOptionsWrapper"),s("design:type",a.GridOptionsWrapper)],t.prototype,"gridOptionsWrapper",void 0),i([l.Autowired("rowRenderer"),s("design:type",u.RowRenderer)],t.prototype,"rowRenderer",void 0),i([l.PostConstruct,s("design:type",Function),s("design:paramtypes",[]),s("design:returntype",void 0)],t.prototype,"init",null),t}(p.RowNodeBlock);t.InfiniteBlock=d},95469:(e,t,o)=>{o.d(t,{Ay:()=>r});var n=o(99598);const r=n.default;n.CommaAndColonSeparatedRecord,n.ConnectionString,n.redactConnectionString},95593:e=>{var t=[];function o(e){for(var o=-1,n=0;n<t.length;n++)if(t[n].identifier===e){o=n;break}return o}function n(e,n){for(var i={},s=[],a=0;a<e.length;a++){var l=e[a],p=n.base?l[0]+n.base:l[0],u=i[p]||0,c="".concat(p," ").concat(u);i[p]=u+1;var d=o(c),h={css:l[1],media:l[2],sourceMap:l[3]};-1!==d?(t[d].references++,t[d].updater(h)):t.push({identifier:c,updater:r(h,n),references:1}),s.push(c)}return s}function r(e,t){var o=t.domAPI(t);return o.update(e),function(t){if(t){if(t.css===e.css&&t.media===e.media&&t.sourceMap===e.sourceMap)return;o.update(e=t)}else o.remove()}}e.exports=function(e,r){var i=n(e=e||[],r=r||{});return function(e){e=e||[];for(var s=0;s<i.length;s++){var a=o(i[s]);t[a].references--}for(var l=n(e,r),p=0;p<i.length;p++){var u=o(i[p]);0===t[u].references&&(t[u].updater(),t.splice(u,1))}i=l}}},97223:function(e,t,o){var n=this&&this.__decorate||function(e,t,o,n){var r,i=arguments.length,s=i<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,n);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,o,s):r(t,o))||s);return i>3&&s&&Object.defineProperty(t,o,s),s},r=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0});var i=o(59804),s=o(77171),a=o(99162),l=o(83921),p=o(47304),u=o(51890),c=o(43510),d=function(){function e(){}return e.prototype.execute=function(e){var t=e.rowNode,o=[],n={value:0},r=this.columnController.isPivotMode(),i=r&&t.leafGroup,s=i?[t]:t.childrenAfterSort;return this.recursivelyAddToRowsToDisplay(s,o,n,r,0),!i&&this.gridOptionsWrapper.isGroupIncludeTotalFooter()&&(this.ensureFooterNodeExists(t),this.addRowNodeToRowsToDisplay(t.sibling,o,n,0)),o},e.prototype.recursivelyAddToRowsToDisplay=function(e,t,o,n,r){if(!c._.missingOrEmpty(e))for(var i=this.gridOptionsWrapper.isGroupSuppressRow(),s=this.gridOptionsWrapper.isGroupHideOpenParents(),a=this.gridOptionsWrapper.isGroupRemoveSingleChildren(),l=!a&&this.gridOptionsWrapper.isGroupRemoveLowestSingleChildren(),p=0;p<e.length;p++){var u=e[p],d=u.hasChildren(),h=i&&d,f=n&&!d,g=a&&d&&1===u.childrenAfterGroup.length,m=l&&d&&u.leafGroup&&1===u.childrenAfterGroup.length,y=n&&u.leafGroup,v=s&&u.expanded&&!y;if(!(f||h||v||g||m)&&this.addRowNodeToRowsToDisplay(u,t,o,r),!n||!u.leafGroup)if(d){var C=g||m;if(u.expanded||C){var w=C?r:r+1;this.recursivelyAddToRowsToDisplay(u.childrenAfterSort,t,o,n,w),this.gridOptionsWrapper.isGroupIncludeFooter()&&(this.ensureFooterNodeExists(u),this.addRowNodeToRowsToDisplay(u.sibling,t,o,r))}}else if(u.master&&u.expanded){var _=this.createDetailNode(u);this.addRowNodeToRowsToDisplay(_,t,o,r)}}},e.prototype.addRowNodeToRowsToDisplay=function(e,t,o,n){t.push(e);var r=this.gridOptionsWrapper.isGroupMultiAutoColumn();e.setUiLevel(r?0:n)},e.prototype.ensureFooterNodeExists=function(e){if(!c._.exists(e.sibling)){var t=new s.RowNode;this.context.wireBean(t),Object.keys(e).forEach((function(o){t[o]=e[o]})),t.footer=!0,t.rowTop=null,t.oldRowTop=null,c._.exists(t.id)&&(t.id="rowGroupFooter_"+t.id),t.sibling=e,e.sibling=t}},e.prototype.createDetailNode=function(e){if(c._.exists(e.detailNode))return e.detailNode;var t=new s.RowNode;return this.context.wireBean(t),t.detail=!0,t.selectable=!1,t.flower=t.detail,t.parent=e,c._.exists(e.id)&&(t.id="detail_"+e.id),t.data=e.data,t.level=e.level+1,e.detailNode=t,e.childFlower=e.detailNode,t},n([i.Autowired("gridOptionsWrapper"),r("design:type",a.GridOptionsWrapper)],e.prototype,"gridOptionsWrapper",void 0),n([i.Autowired("selectionController"),r("design:type",l.SelectionController)],e.prototype,"selectionController",void 0),n([i.Autowired("eventService"),r("design:type",p.EventService)],e.prototype,"eventService",void 0),n([i.Autowired("context"),r("design:type",i.Context)],e.prototype,"context",void 0),n([i.Autowired("columnController"),r("design:type",u.ColumnController)],e.prototype,"columnController",void 0),n([i.Bean("flattenStage")],e)}();t.FlattenStage=d},98681:function(e,t,o){var n,r=this&&this.__extends||(n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])},n(e,t)},function(e,t){function o(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(o.prototype=t.prototype,new o)});Object.defineProperty(t,"__esModule",{value:!0});var i=o(71569),s=o(33669),a=o(44494),l=o(43510),p=function(e){function t(t,o,n,r){var i=e.call(this)||this;return i.columnOrGroup=t,i.eCell=o,i.colsSpanning=r,i.beans=n,i.printLayout=n.gridOptionsWrapper.getDomLayout()===a.Constants.DOM_LAYOUT_PRINT,i}return r(t,e),t.prototype.setColsSpanning=function(e){this.colsSpanning=e,this.onLeftChanged()},t.prototype.getColumnOrGroup=function(){return this.beans.gridOptionsWrapper.isEnableRtl()&&this.colsSpanning?this.colsSpanning[this.colsSpanning.length-1]:this.columnOrGroup},t.prototype.init=function(){this.addDestroyableEventListener(this.columnOrGroup,i.Column.EVENT_LEFT_CHANGED,this.onLeftChanged.bind(this)),this.setLeftFirstTime()},t.prototype.setLeftFirstTime=function(){var e=this.beans.gridOptionsWrapper.isSuppressColumnMoveAnimation(),t=l._.exists(this.columnOrGroup.getOldLeft());this.beans.columnAnimationService.isActive()&&t&&!e?this.animateInLeft():this.onLeftChanged()},t.prototype.animateInLeft=function(){var e=this,t=this.getColumnOrGroup().getLeft(),o=this.getColumnOrGroup().getOldLeft();this.setLeft(o),this.actualLeft=t,this.beans.columnAnimationService.executeNextVMTurn((function(){e.actualLeft===t&&e.setLeft(t)}))},t.prototype.onLeftChanged=function(){var e=this.getColumnOrGroup(),t=e.getLeft();this.actualLeft=this.modifyLeftForPrintLayout(e,t),this.setLeft(this.actualLeft)},t.prototype.modifyLeftForPrintLayout=function(e,t){return this.printLayout?e.getPinned()===i.Column.PINNED_LEFT?t:e.getPinned()===i.Column.PINNED_RIGHT?this.beans.columnController.getPinnedLeftContainerWidth()+this.beans.columnController.getBodyContainerWidth()+t:this.beans.columnController.getPinnedLeftContainerWidth()+t:t},t.prototype.setLeft=function(e){l._.exists(e)&&(this.eCell.style.left=e+"px")},t}(s.BeanStub);t.SetLeftFeature=p},99094:(e,t,o)=>{o.d(t,{J0:()=>r});var n=o(34633);n.default,n.CommaAndColonSeparatedRecord,n.ConnectionString;const r=n.redactConnectionString},99162:function(e,t,o){var n=this&&this.__decorate||function(e,t,o,n){var r,i=arguments.length,s=i<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,n);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,o,s):r(t,o))||s);return i>3&&s&&Object.defineProperty(t,o,s),s},r=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},i=this&&this.__param||function(e,t){return function(o,n){t(o,n,e)}};Object.defineProperty(t,"__esModule",{value:!0});var s=o(47304),a=o(44494),l=o(20455),p=o(31551),u=o(59804),c=o(81404),d=o(51890),h=o(17074),f=o(72346),g=o(9743),m=o(64339),y=o(85774),v=o(92367),C=o(43510);function w(e){return!0===e||"true"===e}var _=function(){function e(){this.propertyEventService=new s.EventService,this.domDataKey="__AG_"+Math.random().toString(),this.layoutElements=[]}var t;return t=e,e.prototype.agWire=function(e,t){this.gridOptions.api=e,this.gridOptions.columnApi=t,this.checkForDeprecated(),this.checkForViolations()},e.prototype.destroy=function(){this.gridOptions.api=null,this.gridOptions.columnApi=null},e.prototype.init=function(){!0!==this.gridOptions.suppressPropertyNamesCheck&&(this.checkGridOptionsProperties(),this.checkColumnDefProperties());var e=this.useAsyncEvents();this.eventService.addGlobalListener(this.globalEventHandler.bind(this),e),this.isGroupSelectsChildren()&&this.isSuppressParentsInRowNodes()&&console.warn("ag-Grid: groupSelectsChildren does not work wth suppressParentsInRowNodes, this selection method needs the part in rowNode to work"),this.isGroupSelectsChildren()&&(this.isRowSelectionMulti()||console.warn("ag-Grid: rowSelection must be 'multiple' for groupSelectsChildren to make sense"),this.isRowModelServerSide()&&console.warn("ag-Grid: group selects children is NOT support for Server Side Row Model. This is because the rows are lazy loaded, so selecting a group is not possible asthe grid has no way of knowing what the children are.")),this.isGroupRemoveSingleChildren()&&this.isGroupHideOpenParents()&&console.warn("ag-Grid: groupRemoveSingleChildren and groupHideOpenParents do not work with each other, you need to pick one. And don't ask us how to us these together on our support forum either you will get the same answer!"),this.addEventListener(t.PROP_DOM_LAYOUT,this.updateLayoutClasses.bind(this))},e.prototype.checkColumnDefProperties=function(){var e=this;null!=this.gridOptions.columnDefs&&this.gridOptions.columnDefs.forEach((function(t){var o=Object.getOwnPropertyNames(t),n=g.ColDefUtil.ALL_PROPERTIES.concat(g.ColDefUtil.FRAMEWORK_PROPERTIES);e.checkProperties(o,n,n,"colDef","https://www.ag-grid.com/javascript-grid-column-properties/")}))},e.prototype.checkGridOptionsProperties=function(){var e=Object.getOwnPropertyNames(this.gridOptions),t=f.PropertyKeys.ALL_PROPERTIES.concat(f.PropertyKeys.FRAMEWORK_PROPERTIES);Object.keys(m.Events).forEach((function(e){return t.push(l.ComponentUtil.getCallbackForEvent(m.Events[e]))}));var o=t.concat("api","columnApi");this.checkProperties(e,o,t,"gridOptions","https://www.ag-grid.com/javascript-grid-properties/")},e.prototype.checkProperties=function(e,t,o,n,r){var i=C._.fuzzyCheckStrings(e,t,o),s=Object.keys(i);s.forEach((function(e){var t=i[e];console.warn("ag-grid: invalid "+n+" property '"+e+"' did you mean any of these: "+t.slice(0,8).join(","))})),s.length>0&&console.warn("ag-grid: to see all the valid "+n+" properties please check: "+r)},e.prototype.getDomData=function(e,t){var o=e[this.domDataKey];if(o)return o[t]},e.prototype.setDomData=function(e,t,o){var n=e[this.domDataKey];C._.missing(n)&&(n={},e[this.domDataKey]=n),n[t]=o},e.prototype.isEnterprise=function(){return this.enterprise},e.prototype.isRowSelection=function(){return"single"===this.gridOptions.rowSelection||"multiple"===this.gridOptions.rowSelection},e.prototype.isRowDeselection=function(){return w(this.gridOptions.rowDeselection)},e.prototype.isRowSelectionMulti=function(){return"multiple"===this.gridOptions.rowSelection},e.prototype.isRowMultiSelectWithClick=function(){return w(this.gridOptions.rowMultiSelectWithClick)},e.prototype.getContext=function(){return this.gridOptions.context},e.prototype.isPivotMode=function(){return w(this.gridOptions.pivotMode)},e.prototype.isPivotTotals=function(){return w(this.gridOptions.pivotTotals)},e.prototype.getPivotColumnGroupTotals=function(){return this.gridOptions.pivotColumnGroupTotals},e.prototype.getPivotRowTotals=function(){return this.gridOptions.pivotRowTotals},e.prototype.isRowModelInfinite=function(){return this.gridOptions.rowModelType===a.Constants.ROW_MODEL_TYPE_INFINITE},e.prototype.isRowModelViewport=function(){return this.gridOptions.rowModelType===a.Constants.ROW_MODEL_TYPE_VIEWPORT},e.prototype.isRowModelServerSide=function(){return this.gridOptions.rowModelType===a.Constants.ROW_MODEL_TYPE_SERVER_SIDE},e.prototype.isRowModelDefault=function(){return C._.missing(this.gridOptions.rowModelType)||this.gridOptions.rowModelType===a.Constants.ROW_MODEL_TYPE_CLIENT_SIDE||this.gridOptions.rowModelType===a.Constants.DEPRECATED_ROW_MODEL_TYPE_NORMAL},e.prototype.isFullRowEdit=function(){return"fullRow"===this.gridOptions.editType},e.prototype.isSuppressFocusAfterRefresh=function(){return w(this.gridOptions.suppressFocusAfterRefresh)},e.prototype.isSuppressBrowserResizeObserver=function(){return w(this.gridOptions.suppressBrowserResizeObserver)},e.prototype.isSuppressMaintainUnsortedOrder=function(){return w(this.gridOptions.suppressMaintainUnsortedOrder)},e.prototype.isShowToolPanel=function(){return w(this.gridOptions.sideBar&&Array.isArray(this.getSideBar().toolPanels))},e.prototype.getSideBar=function(){return this.gridOptions.sideBar},e.prototype.isSuppressTouch=function(){return w(this.gridOptions.suppressTouch)},e.prototype.isSuppressRowTransform=function(){return w(this.gridOptions.suppressRowTransform)},e.prototype.isSuppressSetColumnStateEvents=function(){return w(this.gridOptions.suppressSetColumnStateEvents)},e.prototype.useAsyncEvents=function(){return!w(this.gridOptions.suppressAsyncEvents)},e.prototype.isEnableCellChangeFlash=function(){return w(this.gridOptions.enableCellChangeFlash)},e.prototype.isGroupSelectsChildren=function(){var e=w(this.gridOptions.groupSelectsChildren);return e&&this.isTreeData()?(console.warn("ag-Grid: groupSelectsChildren does not work with tree data"),!1):e},e.prototype.isSuppressRowHoverHighlight=function(){return w(this.gridOptions.suppressRowHoverHighlight)},e.prototype.isGroupSelectsFiltered=function(){return w(this.gridOptions.groupSelectsFiltered)},e.prototype.isGroupHideOpenParents=function(){return w(this.gridOptions.groupHideOpenParents)},e.prototype.isGroupMultiAutoColumn=function(){return w(this.gridOptions.groupMultiAutoColumn)||w(this.gridOptions.groupHideOpenParents)},e.prototype.isGroupRemoveSingleChildren=function(){return w(this.gridOptions.groupRemoveSingleChildren)},e.prototype.isGroupRemoveLowestSingleChildren=function(){return w(this.gridOptions.groupRemoveLowestSingleChildren)},e.prototype.isGroupIncludeFooter=function(){return w(this.gridOptions.groupIncludeFooter)},e.prototype.isGroupIncludeTotalFooter=function(){return w(this.gridOptions.groupIncludeTotalFooter)},e.prototype.isGroupSuppressBlankHeader=function(){return w(this.gridOptions.groupSuppressBlankHeader)},e.prototype.isSuppressRowClickSelection=function(){return w(this.gridOptions.suppressRowClickSelection)},e.prototype.isSuppressCellSelection=function(){return w(this.gridOptions.suppressCellSelection)},e.prototype.isSuppressMultiSort=function(){return w(this.gridOptions.suppressMultiSort)},e.prototype.isMultiSortKeyCtrl=function(){return"ctrl"===this.gridOptions.multiSortKey},e.prototype.isGroupSuppressAutoColumn=function(){return w(this.gridOptions.groupSuppressAutoColumn)},e.prototype.isSuppressDragLeaveHidesColumns=function(){return w(this.gridOptions.suppressDragLeaveHidesColumns)},e.prototype.isSuppressScrollOnNewData=function(){return w(this.gridOptions.suppressScrollOnNewData)},e.prototype.isRowDragManaged=function(){return w(this.gridOptions.rowDragManaged)},e.prototype.isSuppressRowDrag=function(){return w(this.gridOptions.suppressRowDrag)},e.prototype.getDomLayout=function(){var e=this,t=this.gridOptions.domLayout;return t===a.Constants.DOM_LAYOUT_PRINT||t===a.Constants.DOM_LAYOUT_AUTO_HEIGHT||t===a.Constants.DOM_LAYOUT_NORMAL?t:(null==t||C._.doOnce((function(){return console.warn("ag-Grid: "+e.gridOptions.domLayout+" is not valid for DOM Layout, valid values are "+a.Constants.DOM_LAYOUT_NORMAL+", "+a.Constants.DOM_LAYOUT_AUTO_HEIGHT+" and "+a.Constants.DOM_LAYOUT_PRINT)}),"warn about dom layout values"),a.Constants.DOM_LAYOUT_NORMAL)},e.prototype.isSuppressHorizontalScroll=function(){return w(this.gridOptions.suppressHorizontalScroll)},e.prototype.isSuppressMaxRenderedRowRestriction=function(){return w(this.gridOptions.suppressMaxRenderedRowRestriction)},e.prototype.isExcludeChildrenWhenTreeDataFiltering=function(){return w(this.gridOptions.excludeChildrenWhenTreeDataFiltering)},e.prototype.isAlwaysShowVerticalScroll=function(){return w(this.gridOptions.alwaysShowVerticalScroll)},e.prototype.isSuppressLoadingOverlay=function(){return w(this.gridOptions.suppressLoadingOverlay)},e.prototype.isSuppressNoRowsOverlay=function(){return w(this.gridOptions.suppressNoRowsOverlay)},e.prototype.isSuppressFieldDotNotation=function(){return w(this.gridOptions.suppressFieldDotNotation)},e.prototype.getPinnedTopRowData=function(){return this.gridOptions.pinnedTopRowData},e.prototype.getPinnedBottomRowData=function(){return this.gridOptions.pinnedBottomRowData},e.prototype.isFunctionsPassive=function(){return w(this.gridOptions.functionsPassive)},e.prototype.isSuppressTabbing=function(){return w(this.gridOptions.suppressTabbing)},e.prototype.isSuppressChangeDetection=function(){return w(this.gridOptions.suppressChangeDetection)},e.prototype.isSuppressAnimationFrame=function(){return w(this.gridOptions.suppressAnimationFrame)},e.prototype.getQuickFilterText=function(){return this.gridOptions.quickFilterText},e.prototype.isCacheQuickFilter=function(){return w(this.gridOptions.cacheQuickFilter)},e.prototype.isUnSortIcon=function(){return w(this.gridOptions.unSortIcon)},e.prototype.isSuppressMenuHide=function(){return w(this.gridOptions.suppressMenuHide)},e.prototype.isEnterMovesDownAfterEdit=function(){return w(this.gridOptions.enterMovesDownAfterEdit)},e.prototype.isEnterMovesDown=function(){return w(this.gridOptions.enterMovesDown)},e.prototype.getRowStyle=function(){return this.gridOptions.rowStyle},e.prototype.getRowClass=function(){return this.gridOptions.rowClass},e.prototype.getRowStyleFunc=function(){return this.gridOptions.getRowStyle},e.prototype.getRowClassFunc=function(){return this.gridOptions.getRowClass},e.prototype.rowClassRules=function(){return this.gridOptions.rowClassRules},e.prototype.getPopupParent=function(){return this.gridOptions.popupParent},e.prototype.getBlockLoadDebounceMillis=function(){return this.gridOptions.blockLoadDebounceMillis},e.prototype.getPostProcessPopupFunc=function(){return this.gridOptions.postProcessPopup},e.prototype.getDoesDataFlowerFunc=function(){return this.gridOptions.doesDataFlower},e.prototype.getPaginationNumberFormatterFunc=function(){return this.gridOptions.paginationNumberFormatter},e.prototype.getChildCountFunc=function(){return this.gridOptions.getChildCount},e.prototype.getDefaultGroupSortComparator=function(){return this.gridOptions.defaultGroupSortComparator},e.prototype.getIsFullWidthCellFunc=function(){return this.gridOptions.isFullWidthCell},e.prototype.getFullWidthCellRendererParams=function(){return this.gridOptions.fullWidthCellRendererParams},e.prototype.isEmbedFullWidthRows=function(){return w(this.gridOptions.deprecatedEmbedFullWidthRows)},e.prototype.getSuppressKeyboardEventFunc=function(){return this.gridOptions.suppressKeyboardEvent},e.prototype.getBusinessKeyForNodeFunc=function(){return this.gridOptions.getBusinessKeyForNode},e.prototype.getApi=function(){return this.gridOptions.api},e.prototype.getColumnApi=function(){return this.gridOptions.columnApi},e.prototype.isDeltaRowDataMode=function(){return w(this.gridOptions.deltaRowDataMode)},e.prototype.isDeltaColumnMode=function(){return w(this.gridOptions.deltaColumnMode)},e.prototype.isEnsureDomOrder=function(){return w(this.gridOptions.ensureDomOrder)},e.prototype.isEnableCharts=function(){return w(this.gridOptions.enableCharts)},e.prototype.getColResizeDefault=function(){return this.gridOptions.colResizeDefault},e.prototype.isSingleClickEdit=function(){return w(this.gridOptions.singleClickEdit)},e.prototype.isSuppressClickEdit=function(){return w(this.gridOptions.suppressClickEdit)},e.prototype.isStopEditingWhenGridLosesFocus=function(){return w(this.gridOptions.stopEditingWhenGridLosesFocus)},e.prototype.getGroupDefaultExpanded=function(){return this.gridOptions.groupDefaultExpanded},e.prototype.getMaxConcurrentDatasourceRequests=function(){return this.gridOptions.maxConcurrentDatasourceRequests},e.prototype.getMaxBlocksInCache=function(){return this.gridOptions.maxBlocksInCache},e.prototype.getCacheOverflowSize=function(){return this.gridOptions.cacheOverflowSize},e.prototype.getPaginationPageSize=function(){return this.gridOptions.paginationPageSize},e.prototype.getCacheBlockSize=function(){return this.gridOptions.cacheBlockSize},e.prototype.getInfiniteInitialRowCount=function(){return this.gridOptions.infiniteInitialRowCount},e.prototype.isPurgeClosedRowNodes=function(){return w(this.gridOptions.purgeClosedRowNodes)},e.prototype.isSuppressPaginationPanel=function(){return w(this.gridOptions.suppressPaginationPanel)},e.prototype.getRowData=function(){return this.gridOptions.rowData},e.prototype.isGroupUseEntireRow=function(){return w(this.gridOptions.groupUseEntireRow)},e.prototype.isEnableRtl=function(){return w(this.gridOptions.enableRtl)},e.prototype.getAutoGroupColumnDef=function(){return this.gridOptions.autoGroupColumnDef},e.prototype.isGroupSuppressRow=function(){return w(this.gridOptions.groupSuppressRow)},e.prototype.getRowGroupPanelShow=function(){return this.gridOptions.rowGroupPanelShow},e.prototype.getPivotPanelShow=function(){return this.gridOptions.pivotPanelShow},e.prototype.isAngularCompileRows=function(){return w(this.gridOptions.angularCompileRows)},e.prototype.isAngularCompileFilters=function(){return w(this.gridOptions.angularCompileFilters)},e.prototype.isAngularCompileHeaders=function(){return w(this.gridOptions.angularCompileHeaders)},e.prototype.isDebug=function(){return w(this.gridOptions.debug)},e.prototype.getColumnDefs=function(){return this.gridOptions.columnDefs},e.prototype.getColumnTypes=function(){return this.gridOptions.columnTypes},e.prototype.getDatasource=function(){return this.gridOptions.datasource},e.prototype.getViewportDatasource=function(){return this.gridOptions.viewportDatasource},e.prototype.getServerSideDatasource=function(){return this.gridOptions.serverSideDatasource},e.prototype.isAccentedSort=function(){return w(this.gridOptions.accentedSort)},e.prototype.isEnableBrowserTooltips=function(){return w(this.gridOptions.enableBrowserTooltips)},e.prototype.isEnableCellExpressions=function(){return w(this.gridOptions.enableCellExpressions)},e.prototype.isEnableGroupEdit=function(){return w(this.gridOptions.enableGroupEdit)},e.prototype.isSuppressMiddleClickScrolls=function(){return w(this.gridOptions.suppressMiddleClickScrolls)},e.prototype.isSuppressPreventDefaultOnMouseWheel=function(){return w(this.gridOptions.suppressPreventDefaultOnMouseWheel)},e.prototype.isSuppressColumnVirtualisation=function(){return w(this.gridOptions.suppressColumnVirtualisation)},e.prototype.isSuppressContextMenu=function(){return w(this.gridOptions.suppressContextMenu)},e.prototype.isAllowContextMenuWithControlKey=function(){return w(this.gridOptions.allowContextMenuWithControlKey)},e.prototype.isSuppressCopyRowsToClipboard=function(){return w(this.gridOptions.suppressCopyRowsToClipboard)},e.prototype.isCopyHeadersToClipboard=function(){return w(this.gridOptions.copyHeadersToClipboard)},e.prototype.isSuppressClipboardPaste=function(){return w(this.gridOptions.suppressClipboardPaste)},e.prototype.isPagination=function(){return w(this.gridOptions.pagination)},e.prototype.isSuppressEnterpriseResetOnNewColumns=function(){return w(this.gridOptions.suppressEnterpriseResetOnNewColumns)},e.prototype.getProcessDataFromClipboardFunc=function(){return this.gridOptions.processDataFromClipboard},e.prototype.getBatchUpdateWaitMillis=function(){return C._.exists(this.gridOptions.batchUpdateWaitMillis)?this.gridOptions.batchUpdateWaitMillis:a.Constants.BATCH_WAIT_MILLIS},e.prototype.isSuppressMovableColumns=function(){return w(this.gridOptions.suppressMovableColumns)},e.prototype.isAnimateRows=function(){return!this.isEnsureDomOrder()&&w(this.gridOptions.animateRows)},e.prototype.isSuppressColumnMoveAnimation=function(){return w(this.gridOptions.suppressColumnMoveAnimation)},e.prototype.isSuppressAggFuncInHeader=function(){return w(this.gridOptions.suppressAggFuncInHeader)},e.prototype.isSuppressAggAtRootLevel=function(){return w(this.gridOptions.suppressAggAtRootLevel)},e.prototype.isEnableRangeSelection=function(){return w(this.gridOptions.enableRangeSelection)},e.prototype.isSuppressMultiRangeSelection=function(){return w(this.gridOptions.suppressMultiRangeSelection)},e.prototype.isPaginationAutoPageSize=function(){return w(this.gridOptions.paginationAutoPageSize)},e.prototype.isRememberGroupStateWhenNewData=function(){return w(this.gridOptions.rememberGroupStateWhenNewData)},e.prototype.getIcons=function(){return this.gridOptions.icons},e.prototype.getAggFuncs=function(){return this.gridOptions.aggFuncs},e.prototype.getSortingOrder=function(){return this.gridOptions.sortingOrder},e.prototype.getAlignedGrids=function(){return this.gridOptions.alignedGrids},e.prototype.isMasterDetail=function(){var e=this,t=w(this.gridOptions.masterDetail);return C._.doOnce((function(){t&&!e.enterprise&&console.warn("ag-grid: Master Detail is an Enterprise feature of ag-Grid.")}),"MasterDetailEnterpriseCheck"),t&&this.enterprise},e.prototype.getIsRowMasterFunc=function(){return this.gridOptions.isRowMaster},e.prototype.getIsRowSelectableFunc=function(){return this.gridOptions.isRowSelectable},e.prototype.getGroupRowRendererParams=function(){return this.gridOptions.groupRowRendererParams},e.prototype.getOverlayLoadingTemplate=function(){return this.gridOptions.overlayLoadingTemplate},e.prototype.getOverlayNoRowsTemplate=function(){return this.gridOptions.overlayNoRowsTemplate},e.prototype.isSuppressAutoSize=function(){return w(this.gridOptions.suppressAutoSize)},e.prototype.isEnableCellTextSelection=function(){return w(this.gridOptions.enableCellTextSelection)},e.prototype.isSuppressParentsInRowNodes=function(){return w(this.gridOptions.suppressParentsInRowNodes)},e.prototype.isFunctionsReadOnly=function(){return w(this.gridOptions.functionsReadOnly)},e.prototype.isFloatingFilter=function(){return this.gridOptions.floatingFilter},e.prototype.isEnableCellTextSelect=function(){return w(this.gridOptions.enableCellTextSelection)},e.prototype.isEnableOldSetFilterModel=function(){return w(this.gridOptions.enableOldSetFilterModel)},e.prototype.getDefaultColDef=function(){return this.gridOptions.defaultColDef},e.prototype.getDefaultColGroupDef=function(){return this.gridOptions.defaultColGroupDef},e.prototype.getDefaultExportParams=function(){return this.gridOptions.defaultExportParams},e.prototype.isSuppressCsvExport=function(){return w(this.gridOptions.suppressCsvExport)},e.prototype.isSuppressExcelExport=function(){return w(this.gridOptions.suppressExcelExport)},e.prototype.isSuppressMakeColumnVisibleAfterUnGroup=function(){return w(this.gridOptions.suppressMakeColumnVisibleAfterUnGroup)},e.prototype.getNodeChildDetailsFunc=function(){return this.gridOptions.getNodeChildDetails},e.prototype.getDataPathFunc=function(){return this.gridOptions.getDataPath},e.prototype.getIsServerSideGroupFunc=function(){return this.gridOptions.isServerSideGroup},e.prototype.getServerSideGroupKeyFunc=function(){return this.gridOptions.getServerSideGroupKey},e.prototype.getGroupRowAggNodesFunc=function(){return this.gridOptions.groupRowAggNodes},e.prototype.getContextMenuItemsFunc=function(){return this.gridOptions.getContextMenuItems},e.prototype.getMainMenuItemsFunc=function(){return this.gridOptions.getMainMenuItems},e.prototype.getRowNodeIdFunc=function(){return this.gridOptions.getRowNodeId},e.prototype.getNavigateToNextCellFunc=function(){return this.gridOptions.navigateToNextCell},e.prototype.getTabToNextCellFunc=function(){return this.gridOptions.tabToNextCell},e.prototype.isTreeData=function(){var e=this,t=w(this.gridOptions.treeData);return C._.doOnce((function(){t&&!e.enterprise&&console.warn("ag-grid: TreeData is an Enterprise feature of ag-Grid.")}),"TreeDataEnterpriseCheck"),t},e.prototype.isValueCache=function(){return w(this.gridOptions.valueCache)},e.prototype.isValueCacheNeverExpires=function(){return w(this.gridOptions.valueCacheNeverExpires)},e.prototype.isDeltaSort=function(){return w(this.gridOptions.deltaSort)},e.prototype.isAggregateOnlyChangedColumns=function(){return w(this.gridOptions.aggregateOnlyChangedColumns)},e.prototype.getProcessSecondaryColDefFunc=function(){return this.gridOptions.processSecondaryColDef},e.prototype.getProcessSecondaryColGroupDefFunc=function(){return this.gridOptions.processSecondaryColGroupDef},e.prototype.getSendToClipboardFunc=function(){return this.gridOptions.sendToClipboard},e.prototype.getProcessRowPostCreateFunc=function(){return this.gridOptions.processRowPostCreate},e.prototype.getProcessCellForClipboardFunc=function(){return this.gridOptions.processCellForClipboard},e.prototype.getProcessHeaderForClipboardFunc=function(){return this.gridOptions.processHeaderForClipboard},e.prototype.getProcessCellFromClipboardFunc=function(){return this.gridOptions.processCellFromClipboard},e.prototype.getViewportRowModelPageSize=function(){return(e=this.gridOptions.viewportRowModelPageSize)>0?e:5;var e},e.prototype.getViewportRowModelBufferSize=function(){return(e=this.gridOptions.viewportRowModelBufferSize)>=0?e:5;var e},e.prototype.isServerSideSortingAlwaysResets=function(){return w(this.gridOptions.serverSideSortingAlwaysResets)},e.prototype.getPostSortFunc=function(){return this.gridOptions.postSort},e.prototype.getClipboardDeliminator=function(){return C._.exists(this.gridOptions.clipboardDeliminator)?this.gridOptions.clipboardDeliminator:"\t"},e.prototype.setProperty=function(e,t){var o=this.gridOptions,n=o[e];if(n!==t){o[e]=t;var r={type:e,currentValue:t,previousValue:n};this.propertyEventService.dispatchEvent(r)}},e.prototype.addLayoutElement=function(e){this.layoutElements.push(e),this.updateLayoutClasses()},e.prototype.updateLayoutClasses=function(){var e=this.getDomLayout(),t=e===a.Constants.DOM_LAYOUT_AUTO_HEIGHT,o=e===a.Constants.DOM_LAYOUT_PRINT,n=e===a.Constants.DOM_LAYOUT_NORMAL;this.layoutElements.forEach((function(e){C._.addOrRemoveCssClass(e,"ag-layout-auto-height",t),C._.addOrRemoveCssClass(e,"ag-layout-normal",n),C._.addOrRemoveCssClass(e,"ag-layout-print",o)}))},e.prototype.addEventListener=function(e,o){t.checkEventDeprecation(e),this.propertyEventService.addEventListener(e,o)},e.checkEventDeprecation=function(e){"floatingRowDataChanged"===e&&console.warn("ag-Grid: floatingRowDataChanged is now called pinnedRowDataChanged")},e.prototype.removeEventListener=function(e,t){this.propertyEventService.removeEventListener(e,t)},e.prototype.getAutoSizePadding=function(){return this.gridOptions.autoSizePadding&&this.gridOptions.autoSizePadding>0?this.gridOptions.autoSizePadding:20},e.prototype.getHeaderHeight=function(){return"number"==typeof this.gridOptions.headerHeight?this.gridOptions.headerHeight:this.specialForNewMaterial(25,"headerHeight")},e.prototype.getFloatingFiltersHeight=function(){return"number"==typeof this.gridOptions.floatingFiltersHeight?this.gridOptions.floatingFiltersHeight:this.specialForNewMaterial(25,"headerHeight")},e.prototype.getGroupHeaderHeight=function(){return"number"==typeof this.gridOptions.groupHeaderHeight?this.gridOptions.groupHeaderHeight:this.getHeaderHeight()},e.prototype.getPivotHeaderHeight=function(){return"number"==typeof this.gridOptions.pivotHeaderHeight?this.gridOptions.pivotHeaderHeight:this.getHeaderHeight()},e.prototype.getPivotGroupHeaderHeight=function(){return"number"==typeof this.gridOptions.pivotGroupHeaderHeight?this.gridOptions.pivotGroupHeaderHeight:this.getGroupHeaderHeight()},e.prototype.isExternalFilterPresent=function(){return"function"==typeof this.gridOptions.isExternalFilterPresent&&this.gridOptions.isExternalFilterPresent()},e.prototype.doesExternalFilterPass=function(e){return"function"==typeof this.gridOptions.doesExternalFilterPass&&this.gridOptions.doesExternalFilterPass(e)},e.prototype.getDocument=function(){var e=null;return this.gridOptions.getDocument&&C._.exists(this.gridOptions.getDocument)&&(e=this.gridOptions.getDocument()),e&&C._.exists(e)?e:document},e.prototype.getMinColWidth=function(){return this.gridOptions.minColWidth&&this.gridOptions.minColWidth>t.MIN_COL_WIDTH?this.gridOptions.minColWidth:t.MIN_COL_WIDTH},e.prototype.getMaxColWidth=function(){return this.gridOptions.maxColWidth&&this.gridOptions.maxColWidth>t.MIN_COL_WIDTH?this.gridOptions.maxColWidth:null},e.prototype.getColWidth=function(){return"number"!=typeof this.gridOptions.colWidth||this.gridOptions.colWidth<t.MIN_COL_WIDTH?200:this.gridOptions.colWidth},e.prototype.getRowBufferInPixels=function(){var e;return"number"==typeof this.gridOptions.rowBuffer?this.gridOptions.rowBuffer<0?(C._.doOnce((function(){return console.warn("ag-Grid: rowBuffer should not be negative")}),"warn rowBuffer negative"),e=0):e=this.gridOptions.rowBuffer:e=a.Constants.ROW_BUFFER_SIZE,e*this.getRowHeightAsNumber()},e.prototype.getScrollbarWidth=function(){var e=this.gridOptions.scrollbarWidth;return("number"!=typeof e||e<0)&&(e=C._.getScrollbarWidth()),e},e.prototype.checkForDeprecated=function(){var e=this,t=this.gridOptions;t.suppressUnSort&&console.warn("ag-grid: as of v1.12.4 suppressUnSort is not used. Please use sortingOrder instead."),t.suppressDescSort&&console.warn("ag-grid: as of v1.12.4 suppressDescSort is not used. Please use sortingOrder instead."),t.groupAggFields&&console.warn("ag-grid: as of v3 groupAggFields is not used. Please add appropriate agg fields to your columns."),t.groupHidePivotColumns&&console.warn("ag-grid: as of v3 groupHidePivotColumns is not used as pivot columns are now called rowGroup columns. Please refer to the documentation"),t.groupKeys&&console.warn("ag-grid: as of v3 groupKeys is not used. You need to set rowGroupIndex on the columns to group. Please refer to the documentation"),"boolean"==typeof t.groupDefaultExpanded&&console.warn("ag-grid: groupDefaultExpanded can no longer be boolean. for groupDefaultExpanded=true, use groupDefaultExpanded=9999 instead, to expand all the groups"),(t.onRowDeselected||t.rowDeselected)&&console.warn("ag-grid: since version 3.4 event rowDeselected no longer exists, please check the docs"),t.rowsAlreadyGrouped&&console.warn("ag-grid: since version 3.4 rowsAlreadyGrouped no longer exists, please use getNodeChildDetails() instead"),t.groupAggFunction&&console.warn("ag-grid: since version 4.3.x groupAggFunction is now called groupRowAggNodes"),t.checkboxSelection&&console.warn("ag-grid: since version 8.0.x checkboxSelection is not supported as a grid option. If you want this on all columns, use defaultColDef instead and set it there"),t.paginationInitialRowCount&&console.warn("ag-grid: since version 9.0.x paginationInitialRowCount is now called infiniteInitialRowCount"),t.infinitePageSize&&console.warn("ag-grid: since version 9.0.x infinitePageSize is now called cacheBlockSize"),t.infiniteBlockSize&&console.warn("ag-grid: since version 10.0.x infiniteBlockSize is now called cacheBlockSize"),t.maxPagesInCache&&console.warn("ag-grid: since version 10.0.x maxPagesInCache is now called maxBlocksInCache"),t.paginationOverflowSize&&console.warn("ag-grid: since version 10.0.x paginationOverflowSize is now called cacheOverflowSize"),t.suppressMenuFilterPanel&&console.warn("ag-grid: since version 11.0.x, use property colDef.menuTabs=['generalMenuTab','columnsMenuTab'] instead of suppressMenuFilterPanel=true"),t.suppressMenuMainPanel&&console.warn("ag-grid: since version 11.0.x, use property colDef.menuTabs=['filterMenuTab','columnsMenuTab'] instead of suppressMenuMainPanel=true"),t.suppressMenuColumnPanel&&console.warn("ag-grid: since version 11.0.x, use property colDef.menuTabs=['generalMenuTab','filterMenuTab'] instead of suppressMenuColumnPanel=true"),t.suppressUseColIdForGroups&&console.warn("ag-grid: since version 11.0.x, this is not in use anymore. You should be able to remove it from your definition"),t.groupSuppressRow&&console.warn("ag-grid: since version 18.2.x, 'groupSuppressRow' should not be used anymore. Instead remove row groups and perform custom sorting."),t.groupColumnDef&&console.warn("ag-grid: since version 11.0.x, groupColumnDef has been renamed, this property is now called autoGroupColumnDef. Please change your configuration accordingly"),t.slaveGrids&&console.warn("ag-grid: since version 12.x, slaveGrids has been renamed, this property is now called alignedGrids. Please change your configuration accordingly"),t.floatingTopRowData&&console.warn("ag-grid: since version 12.x, floatingTopRowData is now called pinnedTopRowData"),t.floatingBottomRowData&&console.warn("ag-grid: since version 12.x, floatingBottomRowData is now called pinnedBottomRowData"),t.paginationStartPage&&console.warn("ag-grid: since version 12.x, paginationStartPage is gone, please call api.paginationGoToPage("+t.paginationStartPage+") instead."),t.getHeaderCellTemplate&&console.warn("ag-grid: since version 15.x, getHeaderCellTemplate is gone, please check the header documentation on how to set header templates."),t.headerCellTemplate&&console.warn("ag-grid: since version 15.x, headerCellTemplate is gone, please check the header documentation on how to set header templates."),t.headerCellRenderer&&console.warn("ag-grid: since version 15.x, headerCellRenderer is gone, please check the header documentation on how to set header templates."),t.angularCompileHeaders&&console.warn("ag-grid: since version 15.x, angularCompileHeaders is gone, please see the getting started for Angular 1 docs to see how to do headers in Angular 1.x."),t.pivotTotals&&(console.warn("ag-grid: since version 18.x, pivotTotals has been removed, instead if using pivotTotals, set pivotColumnGroupTotals='before'|'after'."),t.pivotColumnGroupTotals="before"),"inMemory"===t.rowModelType&&(console.warn("ag-grid: since version 18.x, The In Memory Row Model has been renamed to the Client Side Row Model, set rowModelType='clientSide' instead."),t.rowModelType="clientSide"),"enterprise"===t.rowModelType&&(console.warn("ag-grid: since version 18.x, The Enterprise Row Model has been renamed to the Server Side Row Model, set rowModelType='serverSide' instead."),t.rowModelType="serverSide"),t.layoutInterval&&console.warn("ag-grid: since version 18.x, layoutInterval is no longer a property. This is because the grid now uses CSS Flex for layout."),t.gridAutoHeight&&(console.warn("ag-grid: since version 19.x, gridAutoHeight is gone, please use domLayout=autoHeight instead"),t.domLayout="autoHeight"),!0===t.showToolPanel&&(console.warn("ag-grid: since version 19.x, showToolPanel is gone, please specify toolPanel components. See https://www.ag-grid.com/javascript-grid-tool-panel/"),t.showToolPanel=void 0,t.sideBar=t.sideBar||!0),!1===t.showToolPanel&&(console.warn("ag-grid: since version 19.x, showToolPanel is gone, please specify toolPanel components. See https://www.ag-grid.com/javascript-grid-tool-panel/"),t.showToolPanel=void 0,t.sideBar=t.sideBar||!1);var o={toolPanelSuppressRowGroups:"suppressRowGroups",toolPanelSuppressValues:"suppressValues",toolPanelSuppressPivots:"suppressPivots",toolPanelSuppressPivotMode:"suppressPivotMode",toolPanelSuppressColumnFilter:"suppressColumnFilter",toolPanelSuppressColumnSelectAll:"suppressColumnSelectAll",toolPanelSuppressSideButtons:"suppressSideButtons",toolPanelSuppressColumnExpandAll:"suppressColumnExpandAll",contractColumnSelection:"contractColumnSelection"},n={};Object.keys(o).forEach((function(t){var r=o[t],i=e.gridOptions[t];if(void 0!==i){if("toolPanelSuppressSideButtons"===t)return void console.warn("ag-grid: since v19.0 toolPanelSuppressSideButtons has been completely removed. See https://www.ag-grid.com/javascript-grid-tool-panel/");console.warn("ag-grid: since v19.0 gridOptions."+t+" is deprecated, please use gridOptions.sideBar.toolPanel[columnsIndex].componentParams."+r),n[r]=i}})),Object.keys(n).length>0&&!C._.exists(t.sideBar)&&(console.warn("ag-grid: since version 19.x, sideBar is mandatory if using toolPanel related properties. See https://www.ag-grid.com/javascript-grid-tool-panel/"),t.sideBar=!0),null!=t.sideBar&&(t.sideBar=v.SideBarDefParser.parse(t.sideBar));var r=this.gridOptions.sideBar;if(Object.keys(n).length>0&&r&&r.toolPanels){var i=r.toolPanels.filter((function(e){return"columns"===e.id}));1===i.length&&C._.mergeDeep(i[0],{componentParams:n})}t.enableStatusBar&&(console.warn("ag-grid: since version 19.x, enableStatusBar is gone, please specify statusBar components"),t.statusBar=t.statusBar||{components:[{component:"agAggregationComponent"}]}),t.alwaysShowStatusBar&&console.warn("ag-grid: since version 19.x, alwaysShowStatusBar is gone. Please specify a min-height on the ag-status-bar css class, eg .ag-status-bar {min-height: 35px; }"),(t.enableServerSideSorting||t.enableSorting)&&(console.warn("ag-Grid: since v20, grid options enableSorting and enableServerSideSorting are gone. Instead set sortable=true on the column definition for the columns sorting are allowed on. To migrate from gridOption.enableSorting=true, set gridOptions.defaultColDef.sortable=true"),t.defaultColDef||(t.defaultColDef={}),t.defaultColDef.sortable||(t.defaultColDef.sortable=!0)),(t.enableFilter||t.enableServerSideFilter)&&(console.warn("ag-Grid: since v20, grid options enableFilter and enableServerSideFilter are gone. Instead set filter=true (if not already specifying a specific filter) on the column definition for the columns filtering is allowed on. To migrate from gridOptions.enableFilter=true, set gridOptions.defaultColDef.filter=true. If you are explicitly setting specific filters for each column (ie colDef.filter is already set) the you don't need to do anything."),t.defaultColDef||(t.defaultColDef={}),t.defaultColDef.filter||(t.defaultColDef.filter=!0)),t.enableColResize&&(console.warn("ag-Grid: since v20, grid options enableColResize is gone. Instead set resizable=true on the column definition for the columns resizing are allowed on. To migrate from gridOption.enableColResize=true, set gridOptions.defaultColDef.resizable=true"),t.defaultColDef||(t.defaultColDef={}),t.defaultColDef.resizable||(t.defaultColDef.resizable=!0)),t.embedFullWidthRows&&console.warn("ag-Grid: since v20.1, embedFullWidthRows is now gone. This property was introduced to allow faster vertical scrolling when using slow browsers (IE) and full width rows. However in v20 the dom layout was redesigned and this performance problem no longer exists, hence this property 'hack' is no longer necessary."),t.suppressTabbing&&console.warn("ag-Grid: since v20.1, suppressTabbing is replaced with the more powerful grid callback suppressKeyboardEvent(params) which can suppress any keyboard event including tabbing.")},e.prototype.checkForViolations=function(){this.isTreeData()&&this.treeDataViolations()},e.prototype.treeDataViolations=function(){this.isRowModelDefault()&&C._.missing(this.getDataPathFunc())&&console.warn("ag-Grid: property usingTreeData=true with rowModel=clientSide, but you did not provide getDataPath function, please provide getDataPath function if using tree data."),this.isRowModelServerSide()&&(C._.missing(this.getIsServerSideGroupFunc())&&console.warn("ag-Grid: property usingTreeData=true with rowModel=serverSide, but you did not provide isServerSideGroup function, please provide isServerSideGroup function if using tree data."),C._.missing(this.getServerSideGroupKeyFunc())&&console.warn("ag-Grid: property usingTreeData=true with rowModel=serverSide, but you did not provide getServerSideGroupKey function, please provide getServerSideGroupKey function if using tree data."))},e.prototype.getLocaleTextFunc=function(){if(this.gridOptions.localeTextFunc)return this.gridOptions.localeTextFunc;var e=this;return function(t,o){var n=e.gridOptions.localeText;return n&&n[t]?n[t]:o}},e.prototype.globalEventHandler=function(e,t){var o=l.ComponentUtil.getCallbackForEvent(e);"function"==typeof this.gridOptions[o]&&this.gridOptions[o](t)},e.prototype.getRowHeightAsNumber=function(){return!this.gridOptions.rowHeight||C._.missing(this.gridOptions.rowHeight)?this.getDefaultRowHeight():this.gridOptions.rowHeight&&this.isNumeric(this.gridOptions.rowHeight)?this.gridOptions.rowHeight:(console.warn("ag-Grid row height must be a number if not using standard row model"),this.getDefaultRowHeight())},e.prototype.getRowHeightForNode=function(e,t){if(void 0===t&&(t=!1),"function"==typeof this.gridOptions.getRowHeight){if(t)return{height:this.getDefaultRowHeight(),estimated:!0};var o={node:e,data:e.data,api:this.gridOptions.api,context:this.gridOptions.context};return{height:this.gridOptions.getRowHeight(o),estimated:!1}}if(e.detail&&this.isMasterDetail())return this.isNumeric(this.gridOptions.detailRowHeight)?{height:this.gridOptions.detailRowHeight,estimated:!1}:{height:300,estimated:!1};var n=this.getDefaultRowHeight(),r=this.gridOptions.rowHeight&&this.isNumeric(this.gridOptions.rowHeight)?this.gridOptions.rowHeight:n;if(this.columnController.isAutoRowHeightActive()){if(t)return{height:r,estimated:!0};var i=this.autoHeightCalculator.getPreferredHeightForRow(e);return{height:Math.max(i,n),estimated:!1}}return{height:r,estimated:!1}},e.prototype.isDynamicRowHeight=function(){return"function"==typeof this.gridOptions.getRowHeight},e.prototype.getVirtualItemHeight=function(){return this.specialForNewMaterial(20,"virtualItemHeight")},e.prototype.isNumeric=function(e){return!isNaN(e)&&"number"==typeof e},e.prototype.specialForNewMaterial=function(e,t){var o=this.environment.getTheme();return o&&0===o.indexOf("ag-theme")?this.environment.getSassVariable(o,t):e},e.prototype.getDefaultRowHeight=function(){return this.specialForNewMaterial(25,"rowHeight")},e.MIN_COL_WIDTH=10,e.PROP_HEADER_HEIGHT="headerHeight",e.PROP_GROUP_REMOVE_SINGLE_CHILDREN="groupRemoveSingleChildren",e.PROP_GROUP_REMOVE_LOWEST_SINGLE_CHILDREN="groupRemoveLowestSingleChildren",e.PROP_PIVOT_HEADER_HEIGHT="pivotHeaderHeight",e.PROP_SUPPRESS_CLIPBOARD_PASTE="suppressClipboardPaste",e.PROP_GROUP_HEADER_HEIGHT="groupHeaderHeight",e.PROP_PIVOT_GROUP_HEADER_HEIGHT="pivotGroupHeaderHeight",e.PROP_FLOATING_FILTERS_HEIGHT="floatingFiltersHeight",e.PROP_SUPPRESS_ROW_DRAG="suppressRowDrag",e.PROP_POPUP_PARENT="popupParent",e.PROP_DOM_LAYOUT="domLayout",n([u.Autowired("gridOptions"),r("design:type",Object)],e.prototype,"gridOptions",void 0),n([u.Autowired("columnController"),r("design:type",d.ColumnController)],e.prototype,"columnController",void 0),n([u.Autowired("eventService"),r("design:type",s.EventService)],e.prototype,"eventService",void 0),n([u.Autowired("enterprise"),r("design:type",Boolean)],e.prototype,"enterprise",void 0),n([u.Autowired("frameworkFactory"),r("design:type",Object)],e.prototype,"frameworkFactory",void 0),n([u.Autowired("gridApi"),r("design:type",p.GridApi)],e.prototype,"gridApi",void 0),n([u.Autowired("columnApi"),r("design:type",c.ColumnApi)],e.prototype,"columnApi",void 0),n([u.Autowired("environment"),r("design:type",h.Environment)],e.prototype,"environment",void 0),n([u.Autowired("autoHeightCalculator"),r("design:type",y.AutoHeightCalculator)],e.prototype,"autoHeightCalculator",void 0),n([i(0,u.Qualifier("gridApi")),i(1,u.Qualifier("columnApi")),r("design:type",Function),r("design:paramtypes",[p.GridApi,c.ColumnApi]),r("design:returntype",void 0)],e.prototype,"agWire",null),n([u.PreDestroy,r("design:type",Function),r("design:paramtypes",[]),r("design:returntype",void 0)],e.prototype,"destroy",null),n([u.PostConstruct,r("design:type",Function),r("design:paramtypes",[]),r("design:returntype",void 0)],e.prototype,"init",null),t=n([u.Bean("gridOptionsWrapper")],e)}();t.GridOptionsWrapper=_},99598:(e,t,o)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.CommaAndColonSeparatedRecord=t.ConnectionString=t.redactConnectionString=void 0;const n=o(21655),r=o(88245);Object.defineProperty(t,"redactConnectionString",{enumerable:!0,get:function(){return r.redactConnectionString}});const i="__this_is_a_placeholder__",s=/^(?<protocol>[^/]+):\/\/(?:(?<username>[^:@]*)(?::(?<password>[^@]*))?@)?(?<hosts>(?!:)[^/?@]*)(?<rest>.*)/;class a extends Map{delete(e){return super.delete(this._normalizeKey(e))}get(e){return super.get(this._normalizeKey(e))}has(e){return super.has(this._normalizeKey(e))}set(e,t){return super.set(this._normalizeKey(e),t)}_normalizeKey(e){e=`${e}`;for(const t of this.keys())if(t.toLowerCase()===e.toLowerCase()){e=t;break}return e}}class l extends n.URL{}class p extends Error{get name(){return"MongoParseError"}}class u extends l{_hosts;constructor(e,t={}){const{looseValidation:o}=t;if(!o&&!(n=e).startsWith("mongodb://")&&!n.startsWith("mongodb+srv://"))throw new p('Invalid scheme, expected connection string to start with "mongodb://" or "mongodb+srv://"');var n;const r=e.match(s);if(!r)throw new p("Invalid connection string");const{protocol:l,username:c,password:d,hosts:h,rest:f}=r.groups??{};if(!o){if(!l||!h)throw new p("Protocol and host list are required in the uri");try{decodeURIComponent(c??""),decodeURIComponent(d??"")}catch(e){throw new p(e.message)}const t=/[:/?#[\]@]/gi;if(c?.match(t))throw new p(`Username contains unescaped characters ${c}`);if(!c||!d){const t=e.replace(`${l}://`,"");if(t.startsWith("@")||t.startsWith(":"))throw new p("URI contained empty userinfo section")}if(d?.match(t))throw new p("Password contains unescaped characters");if(f?.match(/^[^/?]*@/))throw new p("Invalid connection string")}let g="";"string"==typeof c&&(g+=c),"string"==typeof d&&(g+=`:${d}`),g&&(g+="@");try{super(`${l.toLowerCase()}://${g}${i}${f}`)}catch(n){throw o&&new u(e,{...t,looseValidation:!1}),"string"==typeof n.message&&(n.message=n.message.replace(i,h)),n}if(this._hosts=h.split(","),!o){if(this.isSRV&&1!==this.hosts.length)throw new p("mongodb+srv URI cannot have multiple service names");if(this.isSRV&&this.hosts.some((e=>e.includes(":"))))throw new p("mongodb+srv URI cannot have port number")}var m;this.pathname||(this.pathname="/"),Object.setPrototypeOf(this.searchParams,(m=this.searchParams.constructor,class extends m{append(e,t){return super.append(this._normalizeKey(e),t)}delete(e){return super.delete(this._normalizeKey(e))}get(e){return super.get(this._normalizeKey(e))}getAll(e){return super.getAll(this._normalizeKey(e))}has(e){return super.has(this._normalizeKey(e))}set(e,t){return super.set(this._normalizeKey(e),t)}keys(){return super.keys()}values(){return super.values()}entries(){return super.entries()}[Symbol.iterator](){return super[Symbol.iterator]()}_normalizeKey(e){return a.prototype._normalizeKey.call(this,e)}}).prototype)}get host(){return i}set host(e){throw new Error("No single host for connection string")}get hostname(){return i}set hostname(e){throw new Error("No single host for connection string")}get port(){return""}set port(e){throw new Error("No single host for connection string")}get href(){return this.toString()}set href(e){throw new Error("Cannot set href for connection strings")}get isSRV(){return this.protocol.includes("srv")}get hosts(){return this._hosts}set hosts(e){this._hosts=e}toString(){return super.toString().replace(i,this.hosts.join(","))}clone(){return new u(this.toString(),{looseValidation:!0})}redact(e){return(0,r.redactValidConnectionString)(this,e)}typedSearchParams(){return this.searchParams}[Symbol.for("nodejs.util.inspect.custom")](){const{href:e,origin:t,protocol:o,username:n,password:r,hosts:i,pathname:s,search:a,searchParams:l,hash:p}=this;return{href:e,origin:t,protocol:o,username:n,password:r,hosts:i,pathname:s,search:a,searchParams:l,hash:p}}}t.ConnectionString=u,t.CommaAndColonSeparatedRecord=class extends a{constructor(e){super();for(const t of(e??"").split(",")){if(!t)continue;const e=t.indexOf(":");-1===e?this.set(t,""):this.set(t.slice(0,e),t.slice(e+1))}}toString(){return[...this].map((e=>e.join(":"))).join(",")}},t.default=u},99807:function(e,t,o){var n,r=this&&this.__extends||(n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])},n(e,t)},function(e,t){function o(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(o.prototype=t.prototype,new o)}),i=this&&this.__decorate||function(e,t,o,n){var r,i=arguments.length,s=i<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,n);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,o,s):r(t,o))||s);return i>3&&s&&Object.defineProperty(t,o,s),s},s=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0});var a=o(96652),l=o(46410),p=o(75342),u=o(57265),c=o(57265),d=o(70304),h=o(23396),f=o(24728),g=o(60695),m=function(e){function t(t,o){var n=e.call(this,t,o)||this;return n.props=t,n.state=o,n.destroyed=!1,n.changeDetectionService=new f.ChangeDetectionService,n.api=null,n.portals=[],n.hasPendingPortalUpdate=!1,n}return r(t,e),t.prototype.render=function(){var e=this;return a.createElement("div",{style:this.createStyleForDiv(),ref:function(t){e.eGridDiv=t}},this.portals)},t.prototype.createStyleForDiv=function(){var e={height:"100%"},t=this.props.containerStyle;return t&&Object.keys(t).forEach((function(o){e[o]=t[o]})),e},t.prototype.componentDidMount=function(){var e={seedBeanInstances:{agGridReact:this}},t=this.props.gridOptions||{};d.AgGridColumn.hasChildColumns(this.props)&&(t.columnDefs=d.AgGridColumn.mapChildColumnDefs(this.props)),this.gridOptions=u.ComponentUtil.copyAttributesToGridOptions(t,this.props),new u.Grid(this.eGridDiv,this.gridOptions,e),this.api=this.gridOptions.api,this.columnApi=this.gridOptions.columnApi},t.prototype.shouldComponentUpdate=function(){return!1},t.prototype.waitForInstance=function(e,o,n){var r=this;if(void 0===n&&(n=0),e.getFrameworkComponentInstance()||e.isStatelesComponent())o(null);else{if(n>=t.MAX_COMPONENT_CREATION_TIME)return void console.error("ag-Grid: React Component '"+e.getReactComponentName()+"' not created within "+t.MAX_COMPONENT_CREATION_TIME+"ms");window.setTimeout((function(){return r.waitForInstance(e,o,n+5)}),5)}},t.prototype.mountReactPortal=function(e,t,o){this.portals=this.portals.concat([e]),this.batchUpdate(this.waitForInstance(t,o))},t.prototype.batchUpdate=function(e){var t=this;if(this.hasPendingPortalUpdate)return e&&e();setTimeout((function(){t.api&&t.forceUpdate((function(){e&&e(),t.hasPendingPortalUpdate=!1}))})),this.hasPendingPortalUpdate=!0},t.prototype.destroyPortal=function(e){this.portals=this.portals.filter((function(t){return t!==e})),this.batchUpdate()},t.prototype.getStrategyTypeForProp=function(e){if("rowData"===e){if(this.props.rowDataChangeDetectionStrategy)return this.props.rowDataChangeDetectionStrategy;if(this.props.deltaRowDataMode)return f.ChangeDetectionStrategyType.IdentityCheck}return f.ChangeDetectionStrategyType.DeepValueCheck},t.prototype.componentWillReceiveProps=function(e){var t=this,o=!!e.debug,n={};Object.keys(e).forEach((function(r){-1!==u.ComponentUtil.ALL_PROPERTIES.indexOf(r)&&(t.changeDetectionService.getStrategy(t.getStrategyTypeForProp(r)).areEqual(t.props[r],e[r])||(o&&console.log("agGridReact: ["+r+"] property changed"),n[r]={previousValue:t.props[r],currentValue:e[r]}))})),u.ComponentUtil.getEventCallbacks().forEach((function(r){t.props[r]!==e[r]&&(o&&console.log("agGridReact: ["+r+"] event callback changed"),n[r]={previousValue:t.props[r],currentValue:e[r]})})),u.ComponentUtil.processOnChange(n,this.gridOptions,this.api,this.columnApi)},t.prototype.componentWillUnmount=function(){this.api&&(this.api.destroy(),this.api=null)},t.MAX_COMPONENT_CREATION_TIME=1e3,t}(a.Component);function y(e,t){e.forEach((function(e){m[e]=t}))}t.AgGridReact=m,m.propTypes={gridOptions:p.object},y(u.ComponentUtil.getEventCallbacks(),p.func),y(u.ComponentUtil.BOOLEAN_PROPERTIES,p.bool),y(u.ComponentUtil.STRING_PROPERTIES,p.string),y(u.ComponentUtil.OBJECT_PROPERTIES,p.object),y(u.ComponentUtil.ARRAY_PROPERTIES,p.array),y(u.ComponentUtil.NUMBER_PROPERTIES,p.number),y(u.ComponentUtil.FUNCTION_PROPERTIES,p.func);var v=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r(t,e),t.prototype.createWrapper=function(e){return this.useLegacyReact()?new g.LegacyReactComponent(e,this.agGridReact):new h.ReactComponent(e,this.agGridReact)},t.prototype.useLegacyReact=function(){return"function"!=typeof l.unstable_renderSubtreeIntoContainer||this.agGridReact&&this.agGridReact.gridOptions&&!this.agGridReact.gridOptions.reactNext},i([c.Autowired("agGridReact"),s("design:type",m)],t.prototype,"agGridReact",void 0),i([c.Bean("frameworkComponentWrapper")],t)}(c.BaseComponentWrapper);u.Grid.setFrameworkBeans([v])}};
|