/*! For license information please see main.8a15d831.js.LICENSE.txt */ (function(){var e={1167:function(e,t,n){"use strict";function r(e){return null==e||""===e?null:e}function o(e,t){return void 0===t&&(t=!1),null!=e&&(""!==e||t)}function i(e){return!o(e)}function a(e){return null==e||0===e.length}function s(e){return null!=e&&"function"===typeof e.toString?e.toString():null}function l(e){if(void 0!==e){if(null===e||""===e)return null;if("number"===typeof e)return isNaN(e)?void 0:e;var t=parseInt(e,10);return isNaN(t)?void 0:t}}function c(e){if(void 0!==e)return null!==e&&""!==e&&("boolean"===typeof e?e:/true/i.test(e))}function u(e,t,n){void 0===n&&(n=!1);var r=null==e,o=null==t;if(e&&e.toNumber&&(e=e.toNumber()),t&&t.toNumber&&(t=t.toNumber()),r&&o)return 0;if(r)return-1;if(o)return 1;function i(e,t){return e>t?1:e=0&&e.splice(n,1)}function w(e,t){A(t,(function(t){return b(e,t)}))}function C(e,t,n){e.splice(n,0,t)}function x(e,t,n){w(e,t),A(t.slice().reverse(),(function(t){return C(e,t,n)}))}function S(e,t){return e.indexOf(t)>-1}function E(e,t){null!=t&&null!=e&&A(t,(function(t){return e.push(t)}))}function _(e,t){for(var n=0;n0},last:v,areEqual:m,compareArrays:function(e,t){return m(e,t)},shallowCompare:function(e,t){return m(e,t)},sortNumerically:y,removeRepeatsFromArray:function(e,t){if(e)for(var n=e.length-2;n>=0;n--){var r=e[n]===t,o=e[n+1]===t;r&&o&&e.splice(n+1,1)}},removeFromArray:b,removeAllFromArray:w,insertIntoArray:C,insertArrayIntoArray:function(e,t,n){if(null!=e&&null!=t)for(var r=t.length-1;r>=0;r--){C(e,t[r],n)}},moveInArray:x,includes:S,flatten:function(e){return[].concat.apply([],e)},pushAll:E,toStrings:function(e){return P(e,s)},findIndex:_,fill:function(e,t,n,r){void 0===t&&(t=null),void 0===n&&(n=0),void 0===r&&(r=e.length);for(var o=n;o=0;n--)t(e[n],n)},map:P,filter:T,reduce:function(e,t,n){if(null==e||null==n)return null;for(var r=n,o=0;o=0)){var o=n[e],i=z(o)&&o.constructor===Object;r[e]=i?M(o):o}})),r}}function I(e,t){return e[t]}function L(e,t,n){e[t]=n}function F(e,t,n,r){var o=I(e,n);void 0!==o&&L(t,n,r?r(o):o)}function G(e){var t={};return e.filter((function(e){return null!=e})).forEach((function(e){A(Object.keys(e),(function(e){return t[e]=null}))})),Object.keys(t)}function H(e){if(!e)return[];var t=Object;if("function"===typeof t.values)return t.values(e);var n=[];for(var r in e)e.hasOwnProperty(r)&&e.propertyIsEnumerable(r)&&n.push(e[r]);return n}function W(e,t,n,r){void 0===n&&(n=!0),void 0===r&&(r=!1),o(t)&&k(t,(function(t,o){var i=e[t];if(i!==o){if(r)if(null==i&&null!=o)"object"===typeof o&&o.constructor===Object&&(i={},e[t]=i);z(o)&&z(i)&&!Array.isArray(i)?W(i,o,n,r):(n||void 0!==o)&&(e[t]=o)}}))}function V(e){for(var t=[],n=1;n1;)if(null==(o=o[r.shift()]))return n;var i=o[r[0]];return null!=i?i:n},set:function(e,t,n){if(null!=e){for(var r=t.split("."),o=e;r.length>1;)if(null==(o=o[r.shift()]))return;o[r[0]]=n}},deepFreeze:function e(t){return Object.freeze(t),A(d(t),(function(t){(z(t)||"function"===typeof t)&&e(t)})),t},getValueUsingField:j,removeAllReferences:B,isNonNullObject:z}),Y=/((\/\/.*$)|(\/\*[\s\S]*?\*\/))/gm,X=/([^\s,]+)/g,q={};function K(e,t){q[t]||(e(),q[t]=!0)}function $(e){if(e.name)return e.name;var t=/function\s+([^\(]+)/.exec(e.toString());return t&&2===t.length?t[1].trim():null}function Q(e){return!!(e&&e.constructor&&e.call&&e.apply)}function Z(e){ne(e,400)}var J=[],ee=!1;function te(e){J.push(e),ee||(ee=!0,window.setTimeout((function(){var e=J.slice();J.length=0,ee=!1,e.forEach((function(e){return e()}))}),0))}function ne(e,t){void 0===t&&(t=0),e.length>0&&window.setTimeout((function(){return e.forEach((function(e){return e()}))}),t)}function re(e,t,n){var r;return void 0===n&&(n=!1),function(){for(var o=[],i=0;in;(e()||s)&&(t(),a=!0,null!=i&&(window.clearInterval(i),i=null),s&&r&&console.warn(r))};s(),a||(i=window.setInterval(s,10))}function ie(e){e&&e()}var ae=Object.freeze({__proto__:null,doOnce:K,getFunctionName:$,getFunctionParameters:function(e){var t=e.toString().replace(Y,"");return t.slice(t.indexOf("(")+1,t.indexOf(")")).match(X)||[]},isFunction:Q,executeInAWhile:Z,executeNextVMTurn:te,executeAfter:ne,debounce:re,waitUntil:oe,compose:function(){for(var e=[],t=0;t> creating ag-Application Context"),this.createBeans();var n=this.getBeanInstances();this.wireBeans(n),this.logger.log(">> ag-Application Context ready - component is alive")}}return e.prototype.getBeanInstances=function(){return d(this.beanWrappers).map((function(e){return e.beanInstance}))},e.prototype.createBean=function(e,t){if(!e)throw Error("Can't wire to bean since it is null");return this.wireBeans([e],t),e},e.prototype.wireBeans=function(e,t){this.autoWireBeans(e),this.methodWireBeans(e),this.callLifeCycleMethods(e,"preConstructMethods"),o(t)&&e.forEach(t),this.callLifeCycleMethods(e,"postConstructMethods")},e.prototype.createBeans=function(){var e=this;this.contextParams.beanClasses.forEach(this.createBeanWrapper.bind(this)),k(this.beanWrappers,(function(t,n){var r;n.bean.__agBeanMetaData&&n.bean.__agBeanMetaData.autowireMethods&&n.bean.__agBeanMetaData.autowireMethods.agConstructor&&(r=n.bean.__agBeanMetaData.autowireMethods.agConstructor);var o=e.getBeansForParameters(r,n.bean.name),i=function(e,t){var n=[null].concat(t);return new(e.bind.apply(e,n))}(n.bean,o);n.beanInstance=i}));var t=Object.keys(this.beanWrappers).join(", ");this.logger.log("created beans: "+t)},e.prototype.createBeanWrapper=function(e){var t=e.__agBeanMetaData;if(!t){var n=void 0;return n=e.prototype.constructor?$(e.prototype.constructor):""+e,void console.error("Context item "+n+" is not a bean")}var r={bean:e,beanInstance:null,beanName:t.beanName};this.beanWrappers[t.beanName]=r},e.prototype.autoWireBeans=function(e){var t=this;e.forEach((function(e){t.forEachMetaDataInHierarchy(e,(function(n,r){var o=n.agClassAttributes;o&&o.forEach((function(n){var o=t.lookupBeanInstance(r,n.beanName,n.optional);e[n.attributeName]=o}))}))}))},e.prototype.methodWireBeans=function(e){var t=this;e.forEach((function(e){t.forEachMetaDataInHierarchy(e,(function(n,r){k(n.autowireMethods,(function(n,o){if("agConstructor"!==n){var i=t.getBeansForParameters(o,r);e[n].apply(e,i)}}))}))}))},e.prototype.forEachMetaDataInHierarchy=function(e,t){for(var n=Object.getPrototypeOf(e);null!=n;){var r=n.constructor;if(r.hasOwnProperty("__agBeanMetaData"))t(r.__agBeanMetaData,this.getBeanName(r));n=Object.getPrototypeOf(n)}},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 n=this,r=[];return e&&k(e,(function(e,o){var i=n.lookupBeanInstance(t,o);r[Number(e)]=i})),r},e.prototype.lookupBeanInstance=function(e,t,n){if(void 0===n&&(n=!1),"context"===t)return this;if(this.contextParams.providedBeanInstances&&this.contextParams.providedBeanInstances.hasOwnProperty(t))return this.contextParams.providedBeanInstances[t];var r=this.beanWrappers[t];return r?r.beanInstance:(n||console.error("AG Grid: unable to find bean reference "+t+" while initialising "+e),null)},e.prototype.callLifeCycleMethods=function(e,t){var n=this;e.forEach((function(e){return n.callLifeCycleMethodsOnBean(e,t)}))},e.prototype.callLifeCycleMethodsOnBean=function(e,t,n){var r={};this.forEachMetaDataInHierarchy(e,(function(e){var o=e[t];o&&o.forEach((function(e){e!=n&&(r[e]=!0)}))})),Object.keys(r).forEach((function(t){return e[t]()}))},e.prototype.getBean=function(e){return this.lookupBeanInstance("getBean",e,!0)},e.prototype.destroy=function(){if(!this.destroyed){this.logger.log(">> Shutting down ag-Application Context");var e=this.getBeanInstances();this.destroyBeans(e),this.contextParams.providedBeanInstances=null,this.destroyed=!0,this.logger.log(">> ag-Application Context shut down - component is dead")}},e.prototype.destroyBean=function(e){e&&this.destroyBeans([e])},e.prototype.destroyBeans=function(e){var t=this;return e?(e.forEach((function(e){t.callLifeCycleMethodsOnBean(e,"preDestroyMethods","destroy");var n=e;"function"===typeof n.destroy&&n.destroy()})),[]):[]},e}();function le(e,t,n){var r=ve(e.constructor);r.preConstructMethods||(r.preConstructMethods=[]),r.preConstructMethods.push(t)}function ce(e,t,n){var r=ve(e.constructor);r.postConstructMethods||(r.postConstructMethods=[]),r.postConstructMethods.push(t)}function ue(e,t,n){var r=ve(e.constructor);r.preDestroyMethods||(r.preDestroyMethods=[]),r.preDestroyMethods.push(t)}function pe(e){return function(t){ve(t).beanName=e}}function de(e){return function(t,n,r){fe(t,e,!1,t,n,null)}}function he(e){return function(t,n,r){fe(t,e,!0,t,n,null)}}function fe(e,t,n,r,o,i){if(null!==t)if("number"!==typeof i){var a=ve(e.constructor);a.agClassAttributes||(a.agClassAttributes=[]),a.agClassAttributes.push({attributeName:o,beanName:t,optional:n})}else console.error("AG Grid: Autowired should be on an attribute");else console.error("AG Grid: Autowired name should not be null")}function ge(e){return function(t,n,r){var o,i="function"==typeof t?t:t.constructor;if("number"===typeof r){var a=void 0;n?(o=ve(i),a=n):(o=ve(i),a="agConstructor"),o.autowireMethods||(o.autowireMethods={}),o.autowireMethods[a]||(o.autowireMethods[a]={}),o.autowireMethods[a][r]=e}}}function ve(e){return e.hasOwnProperty("__agBeanMetaData")||(e.__agBeanMetaData={}),e.__agBeanMetaData}var me,ye=function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},be=function(e,t){return function(n,r){t(n,r,e)}},we=function(){function e(){this.allSyncListeners=new Map,this.allAsyncListeners=new Map,this.globalSyncListeners=new Set,this.globalAsyncListeners=new Set,this.asyncFunctionsQueue=[],this.scheduled=!1,this.firedEvents={}}return e.prototype.setBeans=function(e,t,n,r){if(void 0===r&&(r=null),this.frameworkOverrides=n,r){var o=t.useAsyncEvents();this.addGlobalListener(r,o)}},e.prototype.getListeners=function(e,t,n){var r=t?this.allAsyncListeners:this.allSyncListeners,o=r.get(e);return!o&&n&&(o=new Set,r.set(e,o)),o},e.prototype.noRegisteredListenersExist=function(){return 0===this.allSyncListeners.size&&0===this.allAsyncListeners.size&&0===this.globalSyncListeners.size&&0===this.globalAsyncListeners.size},e.prototype.addEventListener=function(e,t,n){void 0===n&&(n=!1),this.getListeners(e,n,!0).add(t)},e.prototype.removeEventListener=function(e,t,n){void 0===n&&(n=!1);var r=this.getListeners(e,n,!1);r&&(r.delete(t),0===r.size&&(n?this.allAsyncListeners:this.allSyncListeners).delete(e))},e.prototype.addGlobalListener=function(e,t){void 0===t&&(t=!1),(t?this.globalAsyncListeners:this.globalSyncListeners).add(e)},e.prototype.removeGlobalListener=function(e,t){void 0===t&&(t=!1),(t?this.globalAsyncListeners:this.globalSyncListeners).delete(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,t){var n=this,r=e.type,o=this.getListeners(r,t,!1);o&&function(r){r.forEach((function(r){t?n.dispatchAsync((function(){return r(e)})):r(e)}))}(o),(t?this.globalAsyncListeners:this.globalSyncListeners).forEach((function(o){t?n.dispatchAsync((function(){return n.frameworkOverrides.dispatchEvent(r,(function(){return o(r,e)}),!0)})):n.frameworkOverrides.dispatchEvent(r,(function(){return o(r,e)}),!0)}))},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()}))},ye([be(0,ge("loggerFactory")),be(1,ge("gridOptionsWrapper")),be(2,ge("frameworkOverrides")),be(3,ge("globalEventListener"))],e.prototype,"setBeans",null),e=ye([pe("eventService")],e)}(),Ce=function(){function e(){}return 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.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.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.SOURCE_PASTE="paste",e.PINNED_RIGHT="right",e.PINNED_LEFT="left",e.SORT_ASC="asc",e.SORT_DESC="desc",e.INPUT_SELECTOR="input, select, button, textarea",e.FOCUSABLE_SELECTOR="[tabindex], input, select, button, textarea",e.FOCUSABLE_EXCLUDE=".ag-hidden, .ag-hidden *, [disabled], .ag-disabled, .ag-disabled *",e}();(me=t.ModuleNames||(t.ModuleNames={})).CommunityCoreModule="@ag-grid-community/core",me.CommunityAllModules="@ag-grid-community/all",me.InfiniteRowModelModule="@ag-grid-community/infinite-row-model",me.ClientSideRowModelModule="@ag-grid-community/client-side-row-model",me.CsvExportModule="@ag-grid-community/csv-export",me.EnterpriseCoreModule="@ag-grid-enterprise/core",me.EnterpriseAllModules="@ag-grid-enterprise/all",me.RowGroupingModule="@ag-grid-enterprise/row-grouping",me.ColumnToolPanelModule="@ag-grid-enterprise/column-tool-panel",me.FiltersToolPanelModule="@ag-grid-enterprise/filter-tool-panel",me.MenuModule="@ag-grid-enterprise/menu",me.SetFilterModule="@ag-grid-enterprise/set-filter",me.MultiFilterModule="@ag-grid-enterprise/multi-filter",me.StatusBarModule="@ag-grid-enterprise/status-bar",me.SideBarModule="@ag-grid-enterprise/side-bar",me.RangeSelectionModule="@ag-grid-enterprise/range-selection",me.MasterDetailModule="@ag-grid-enterprise/master-detail",me.RichSelectModule="@ag-grid-enterprise/rich-select",me.GridChartsModule="@ag-grid-enterprise/charts",me.ViewportRowModelModule="@ag-grid-enterprise/viewport-row-model",me.ServerSideRowModelModule="@ag-grid-enterprise/server-side-row-model",me.ExcelExportModule="@ag-grid-enterprise/excel-export",me.ClipboardModule="@ag-grid-enterprise/clipboard",me.SparklinesModule="@ag-grid-enterprise/sparklines",me.AngularModule="@ag-grid-community/angular",me.ReactModule="@ag-grid-community/react",me.VueModule="@ag-grid-community/vue",me.PolymerModule="@ag-grid-community/polymer";var xe=function(){function e(){}return e.register=function(t,n){void 0===n&&(n=!0),e.modulesMap[t.moduleName]=t,void 0===e.moduleBased?e.moduleBased=n:e.moduleBased!==n&&K((function(){console.warn("AG Grid: You are mixing modules (i.e. @ag-grid-community/core) and packages (ag-grid-community) - you can only use one or the other of these mechanisms."),console.warn("Please see https://www.ag-grid.com/javascript-grid/packages-modules/ for more information.")}),"ModulePackageCheck")},e.registerModules=function(t,n){void 0===n&&(n=!0),t&&t.forEach((function(t){return e.register(t,n)}))},e.assertRegistered=function(e,t){if(this.isRegistered(e))return!0;var n="AG Grid: unable to use "+t+" as module "+e+" is not present. Please see: https://www.ag-grid.com/javascript-grid/modules/";return K((function(){console.warn(n)}),t+e),!1},e.isRegistered=function(t){return!!e.modulesMap[t]},e.getRegisteredModules=function(){return d(e.modulesMap)},e.isPackageBased=function(){return!e.moduleBased},e.modulesMap={},e}(),Se=function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},Ee=0,_e=function(){function e(e,t,n,r){this.instanceId=Ee++,this.moving=!1,this.menuVisible=!1,this.filterActive=!1,this.eventService=new we,this.rowGroupActive=!1,this.pivotActive=!1,this.aggregationActive=!1,this.colDef=e,this.userProvidedColDef=t,this.colId=n,this.primary=r,this.setState(e)}return e.prototype.getInstanceId=function(){return this.instanceId},e.prototype.setState=function(e){void 0!==e.sort?e.sort!==Ce.SORT_ASC&&e.sort!==Ce.SORT_DESC||(this.sort=e.sort):e.initialSort!==Ce.SORT_ASC&&e.initialSort!==Ce.SORT_DESC||(this.sort=e.initialSort);var t=l(e.sortIndex),n=l(e.initialSortIndex);void 0!==t?null!==t&&(this.sortIndex=t):null!==n&&(this.sortIndex=n);var r=c(e.hide),o=c(e.initialHide);this.visible=void 0!==r?!r:!o,void 0!==e.pinned?this.setPinned(e.pinned):this.setPinned(e.initialPinned);var i=l(e.flex),a=l(e.initialFlex);void 0!==i?this.flex=i:void 0!==a&&(this.flex=a)},e.prototype.setColDef=function(e,t){this.colDef=e,this.userProvidedColDef=t,this.initMinAndMaxWidths(),this.initDotNotation()},e.prototype.getUserProvidedColDef=function(){return this.userProvidedColDef},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.initMinAndMaxWidths(),this.resetActualWidth("gridInitializing"),this.initDotNotation(),this.validate()},e.prototype.initDotNotation=function(){var e=this.gridOptionsWrapper.isSuppressFieldDotNotation();this.fieldContainsDots=o(this.colDef.field)&&this.colDef.field.indexOf(".")>=0&&!e,this.tooltipFieldContainsDots=o(this.colDef.tooltipField)&&this.colDef.tooltipField.indexOf(".")>=0&&!e},e.prototype.initMinAndMaxWidths=function(){var e=this.colDef;this.minWidth=this.columnUtils.calculateColMinWidth(e),this.maxWidth=this.columnUtils.calculateColMaxWidth(e)},e.prototype.resetActualWidth=function(e){void 0===e&&(e="api");var t=this.columnUtils.calculateColInitialWidth(this.colDef);this.setActualWidth(t,e,!0)},e.prototype.isEmptyGroup=function(){return!1},e.prototype.isRowGroupDisplayed=function(e){if(i(this.colDef)||i(this.colDef.showRowGroup))return!1;var t=!0===this.colDef.showRowGroup,n=this.colDef.showRowGroup===e;return t||n},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;function n(e,t,n){K((function(){n?console.warn(e,n):K((function(){return console.warn(e)}),t)}),t)}if(this.gridOptionsWrapper.isRowModelDefault()&&!xe.isRegistered(t.ModuleNames.RowGroupingModule)){["enableRowGroup","rowGroup","rowGroupIndex","enablePivot","enableValue","pivot","pivotIndex","aggFunc"].forEach((function(r){o(e[r])&&(xe.isPackageBased()?n("AG Grid: "+r+" is only valid in ag-grid-enterprise, your column definition should not have "+r,"ColumnRowGroupingMissing"+r):n("AG Grid: "+r+" is only valid with AG Grid Enterprise Module "+t.ModuleNames.RowGroupingModule+" - your column definition should not have "+r,"ColumnRowGroupingMissing"+r))}))}if(xe.isRegistered(t.ModuleNames.RichSelectModule)||"agRichSelect"===this.colDef.cellEditor&&(xe.isPackageBased()?n("AG Grid: "+this.colDef.cellEditor+" can only be used with ag-grid-enterprise","ColumnRichSelectMissing"):n("AG Grid: "+this.colDef.cellEditor+" can only be used with AG Grid Enterprise Module "+t.ModuleNames.RichSelectModule,"ColumnRichSelectMissing")),this.gridOptionsWrapper.isTreeData()){["rowGroup","rowGroupIndex","pivot","pivotIndex"].forEach((function(t){o(e[t])&&n("AG Grid: "+t+" is not possible when doing tree data, your column definition should not have "+t,"TreeDataCannotRowGroup")}))}o(this.colDef.width)&&"number"!==typeof this.colDef.width&&n("AG Grid: colDef.width should be a number, not "+typeof this.colDef.width,"ColumnCheck_asdfawef"),e.pinnedRowCellRenderer&&n("AG Grid: pinnedRowCellRenderer no longer exists, use cellRendererSelector if you want a different Cell Renderer for pinned rows. Check params.node.rowPinned. This was an unfortunate (but necessary) change we had to do to allow future plans we have of re-skinng the data grid in frameworks such as React, Angular and Vue. See https://www.ag-grid.com/javascript-grid/cell-rendering/#many-renderers-one-column","colDef.pinnedRowCellRenderer-deprecated"),e.pinnedRowCellRendererParams&&n("AG Grid: pinnedRowCellRenderer no longer exists, use cellRendererSelector if you want a different Cell Renderer for pinned rows. Check params.node.rowPinned. This was an unfortunate (but necessary) change we had to do to allow future plans we have of re-skinng the data grid in frameworks such as React, Angular and Vue. See https://www.ag-grid.com/javascript-grid/cell-rendering/#many-renderers-one-column","colDef.pinnedRowCellRenderer-deprecated"),e.pinnedRowCellRendererFramework&&n("AG Grid: pinnedRowCellRenderer no longer exists, use cellRendererSelector if you want a different Cell Renderer for pinned rows. Check params.node.rowPinned. This was an unfortunate (but necessary) change we had to do to allow future plans we have of re-skinng the data grid in frameworks such as React, Angular and Vue. See https://www.ag-grid.com/javascript-grid/cell-rendering/#many-renderers-one-column","colDef.pinnedRowCellRenderer-deprecated"),e.pinnedRowValueGetter&&n("AG Grid: pinnedRowCellRenderer is deprecated, use cellRendererSelector if you want a different Cell Renderer for pinned rows. Check params.node.rowPinned. This was an unfortunate (but necessary) change we had to do to allow future plans we have of re-skinng the data grid in frameworks such as React, Angular and Vue.","colDef.pinnedRowCellRenderer-deprecated")},e.prototype.addEventListener=function(e,t){this.eventService.addEventListener(e,t)},e.prototype.removeEventListener=function(e,t){this.eventService.removeEventListener(e,t)},e.prototype.createColumnFunctionCallbackParams=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.createColumnFunctionCallbackParams(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.isSuppressFillHandle=function(){return!!this.colDef.suppressFillHandle},e.prototype.isRowDrag=function(e){return this.isColumnFunc(e,this.colDef.rowDrag)},e.prototype.isDndSource=function(e){return this.isColumnFunc(e,this.colDef.dndSource)},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.createColumnFunctionCallbackParams(e))},e.prototype.setMoving=function(t,n){void 0===n&&(n="api"),this.moving=t,this.eventService.dispatchEvent(this.createColumnEvent(e.EVENT_MOVING_CHANGED,n))},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,n){void 0===n&&(n="api"),this.sort!==t&&(this.sort=t,this.eventService.dispatchEvent(this.createColumnEvent(e.EVENT_SORT_CHANGED,n)))},e.prototype.setMenuVisible=function(t,n){void 0===n&&(n="api"),this.menuVisible!==t&&(this.menuVisible=t,this.eventService.dispatchEvent(this.createColumnEvent(e.EVENT_MENU_VISIBLE_CHANGED,n)))},e.prototype.isMenuVisible=function(){return this.menuVisible},e.prototype.isSortAscending=function(){return this.sort===Ce.SORT_ASC},e.prototype.isSortDescending=function(){return this.sort===Ce.SORT_DESC},e.prototype.isSortNone=function(){return i(this.sort)},e.prototype.isSorting=function(){return o(this.sort)},e.prototype.getSortIndex=function(){return this.sortIndex},e.prototype.setSortIndex=function(e){this.sortIndex=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,n){void 0===n&&(n="api"),this.oldLeft=this.left,this.left!==t&&(this.left=t,this.eventService.dispatchEvent(this.createColumnEvent(e.EVENT_LEFT_CHANGED,n)))},e.prototype.isFilterActive=function(){return this.filterActive},e.prototype.setFilterActive=function(t,n,r){void 0===n&&(n="api"),this.filterActive!==t&&(this.filterActive=t,this.eventService.dispatchEvent(this.createColumnEvent(e.EVENT_FILTER_ACTIVE_CHANGED,n)));var o=this.createColumnEvent(e.EVENT_FILTER_CHANGED,n);r&&W(o,r),this.eventService.dispatchEvent(o)},e.prototype.setPinned=function(e){!0===e||e===Ce.PINNED_LEFT?this.pinned=Ce.PINNED_LEFT:e===Ce.PINNED_RIGHT?this.pinned=Ce.PINNED_RIGHT:this.pinned=null},e.prototype.setFirstRightPinned=function(t,n){void 0===n&&(n="api"),this.firstRightPinned!==t&&(this.firstRightPinned=t,this.eventService.dispatchEvent(this.createColumnEvent(e.EVENT_FIRST_RIGHT_PINNED_CHANGED,n)))},e.prototype.setLastLeftPinned=function(t,n){void 0===n&&(n="api"),this.lastLeftPinned!==t&&(this.lastLeftPinned=t,this.eventService.dispatchEvent(this.createColumnEvent(e.EVENT_LAST_LEFT_PINNED_CHANGED,n)))},e.prototype.isFirstRightPinned=function(){return this.firstRightPinned},e.prototype.isLastLeftPinned=function(){return this.lastLeftPinned},e.prototype.isPinned=function(){return this.pinned===Ce.PINNED_LEFT||this.pinned===Ce.PINNED_RIGHT},e.prototype.isPinnedLeft=function(){return this.pinned===Ce.PINNED_LEFT},e.prototype.isPinnedRight=function(){return this.pinned===Ce.PINNED_RIGHT},e.prototype.getPinned=function(){return this.pinned},e.prototype.setVisible=function(t,n){void 0===n&&(n="api");var r=!0===t;this.visible!==r&&(this.visible=r,this.eventService.dispatchEvent(this.createColumnEvent(e.EVENT_VISIBLE_CHANGED,n)))},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.getUniqueId=function(){return this.getId()},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(i(this.colDef.colSpan))return 1;var t=this.createBaseColDefParams(e),n=this.colDef.colSpan(t);return Math.max(n,1)},e.prototype.getRowSpan=function(e){if(i(this.colDef.rowSpan))return 1;var t=this.createBaseColDefParams(e),n=this.colDef.rowSpan(t);return Math.max(n,1)},e.prototype.setActualWidth=function(e,t,n){void 0===t&&(t="api"),void 0===n&&(n=!1),null!=this.minWidth&&(e=Math.max(e,this.minWidth)),null!=this.maxWidth&&(e=Math.min(e,this.maxWidth)),this.actualWidth!==e&&(this.actualWidth=e,this.flex&&"flex"!==t&&"gridInitializing"!==t&&(this.flex=null),n||this.fireColumnWidthChangedEvent(t))},e.prototype.fireColumnWidthChangedEvent=function(t){this.eventService.dispatchEvent(this.createColumnEvent(e.EVENT_WIDTH_CHANGED,t))},e.prototype.isGreaterThanMax=function(e){return null!=this.maxWidth&&e>this.maxWidth},e.prototype.getMinWidth=function(){return this.minWidth},e.prototype.getMaxWidth=function(){return this.maxWidth},e.prototype.getFlex=function(){return this.flex||0},e.prototype.setFlex=function(e){this.flex!==e&&(this.flex=e)},e.prototype.setMinimum=function(e){void 0===e&&(e="api"),o(this.minWidth)&&this.setActualWidth(this.minWidth,e)},e.prototype.setRowGroupActive=function(t,n){void 0===n&&(n="api"),this.rowGroupActive!==t&&(this.rowGroupActive=t,this.eventService.dispatchEvent(this.createColumnEvent(e.EVENT_ROW_GROUP_CHANGED,n)))},e.prototype.isRowGroupActive=function(){return this.rowGroupActive},e.prototype.setPivotActive=function(t,n){void 0===n&&(n="api"),this.pivotActive!==t&&(this.pivotActive=t,this.eventService.dispatchEvent(this.createColumnEvent(e.EVENT_PIVOT_CHANGED,n)))},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,n){void 0===n&&(n="api"),this.aggregationActive!==t&&(this.aggregationActive=t,this.eventService.dispatchEvent(this.createColumnEvent(e.EVENT_VALUE_CHANGED,n)))},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.prototype.isLockPosition=function(){return console.warn("AG Grid: since v21, col.isLockPosition() should not be used, please use col.getColDef().lockPosition instead."),!!this.colDef&&!!this.colDef.lockPosition},e.prototype.isLockVisible=function(){return console.warn("AG Grid: since v21, col.isLockVisible() should not be used, please use col.getColDef().lockVisible instead."),!!this.colDef&&!!this.colDef.lockVisible},e.prototype.isLockPinned=function(){return console.warn("AG Grid: since v21, col.isLockPinned() should not be used, please use col.getColDef().lockPinned instead."),!!this.colDef&&!!this.colDef.lockPinned},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",Se([de("gridOptionsWrapper")],e.prototype,"gridOptionsWrapper",void 0),Se([de("columnUtils")],e.prototype,"columnUtils",void 0),Se([de("columnApi")],e.prototype,"columnApi",void 0),Se([de("gridApi")],e.prototype,"gridApi",void 0),Se([de("context")],e.prototype,"context",void 0),Se([ce],e.prototype,"initialise",null),e}(),Re=function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},Oe=function(){function e(e,t,n,r){this.displayedChildren=[],this.localEventService=new we,this.groupId=t,this.instanceId=n,this.originalColumnGroup=e,this.pinned=r}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();return!(!e||0===e.length)&&e.every((function(e){return e.isMoving()}))},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=v(this.displayedChildren).getLeft();this.setLeft(t)}else{var n=this.displayedChildren[0].getLeft();this.setLeft(n)}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 n=!1;return this.children.forEach((function(r){t===r&&(n=!0),r instanceof e&&r.isChildInThisGroupDeepSearch(t)&&(n=!0)})),n},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()||0})),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(n){n instanceof _e?t.push(n):n instanceof e&&n.addDisplayedLeafColumns(t)}))},e.prototype.addLeafColumns=function(t){this.children.forEach((function(n){n instanceof _e?t.push(n):n instanceof e&&n.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.getPaddingLevel=function(){var e=this.getParent();return this.isPadding()&&e&&e.isPadding()?1+e.getPaddingLevel():0},e.prototype.calculateDisplayedColumns=function(){var t=this;this.displayedChildren=[];for(var n=this;null!=n&&n.isPadding();)n=n.getParent();if(!(!!n&&n.originalColumnGroup.isExpandable()))return this.displayedChildren=this.children,void this.localEventService.dispatchEvent(this.createAgEvent(e.EVENT_DISPLAYED_CHILDREN_CHANGED));this.children.forEach((function(r){if(!(r instanceof e&&(!r.displayedChildren||!r.displayedChildren.length)))switch(r.getColumnGroupShow()){case e.HEADER_GROUP_SHOW_OPEN:n.originalColumnGroup.isExpanded()&&t.displayedChildren.push(r);break;case e.HEADER_GROUP_SHOW_CLOSED:n.originalColumnGroup.isExpanded()||t.displayedChildren.push(r);break;default:t.displayedChildren.push(r)}})),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",Re([de("gridOptionsWrapper")],e.prototype,"gridOptionsWrapper",void 0),e}(),Ae=function(){function e(e,t,n,r){this.localEventService=new we,this.expandable=!1,this.colGroupDef=e,this.groupId=t,this.expanded=!!e&&!!e.openByDefault,this.padding=n,this.level=r}return e.prototype.setOriginalParent=function(e){this.originalParent=e},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 n={type:e.EVENT_EXPANDED_CHANGED};this.localEventService.dispatchEvent(n)},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(n){n instanceof _e?t.push(n):n instanceof e&&n.addLeafColumns(t)}))},e.prototype.getColumnGroupShow=function(){var e=this.colGroupDef;if(e)return e.columnGroupShow},e.prototype.setupExpandable=function(){var e=this;this.setExpandable(),this.getLeafColumns().forEach((function(t){return t.addEventListener(_e.EVENT_VISIBLE_CHANGED,e.onColumnVisibilityChanged.bind(e))}))},e.prototype.setExpandable=function(){if(!this.isPadding()){for(var t=!1,n=!1,r=!1,o=this.findChildrenRemovingPadding(),i=0,a=o.length;i=0}function He(e){for(var t=[],n=Fe(e);n;)t.push(n),n=n.parentElement;return t}function We(e){var t=e;return t.deepPath?t.deepPath():t.path?t.path:t.composedPath?t.composedPath():t.__agGridEventPath?t.__agGridEventPath:He(e)}function Ve(e,t,n,r){var o=S(De,n)?{passive:!0}:void 0;e&&e.addEventListener&&e.addEventListener(t,n,r,o)}var je=Object.freeze({__proto__:null,stopPropagationForAgGrid:Ne,isStopPropagationForAgGrid:Me,isEventSupported:Ie,getCtrlForEvent:Le,addChangeListener:function(e,t){e.addEventListener("changed",t),e.addEventListener("paste",t),e.addEventListener("input",t),e.addEventListener("keydown",t),e.addEventListener("keyup",t)},getTarget:Fe,isElementInEventPath:Ge,createEventPath:He,addAgGridEventPath:function(e){e.__agGridEventPath=We(e)},getEventPath:We,addSafePassiveEventListener:Ve}),Be=function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},ze=function(){function e(){var e=this;this.destroyFunctions=[],this.destroyed=!1,this.__v_skip=!0,this.isAlive=function(){return!e.destroyed}}return e.prototype.getFrameworkOverrides=function(){return this.frameworkOverrides},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 we),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.addManagedListener=function(e,t,n){var r=this;if(!this.destroyed){e instanceof HTMLElement?Ve(this.getFrameworkOverrides(),e,t,n):e.addEventListener(t,n);var o=function o(){return e.removeEventListener(t,n),r.destroyFunctions=r.destroyFunctions.filter((function(e){return e!==o})),null};return this.destroyFunctions.push(o),o}},e.prototype.addDestroyFunc=function(e){this.isAlive()?this.destroyFunctions.push(e):e()},e.prototype.createManagedBean=function(e,t){var n=this.createBean(e,t);return this.addDestroyFunc(this.destroyBean.bind(this,e,t)),n},e.prototype.createBean=function(e,t,n){return(t||this.getContext()).createBean(e,n)},e.prototype.destroyBean=function(e,t){return(t||this.getContext()).destroyBean(e)},e.prototype.destroyBeans=function(e,t){var n=this;return e&&A(e,(function(e){return n.destroyBean(e,t)})),[]},e.EVENT_DESTROYED="destroyed",Be([de("frameworkOverrides")],e.prototype,"frameworkOverrides",void 0),Be([de("context")],e.prototype,"context",void 0),Be([de("eventService")],e.prototype,"eventService",void 0),Be([de("gridOptionsWrapper")],e.prototype,"gridOptionsWrapper",void 0),Be([ue],e.prototype,"destroy",null),e}(),Ue=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Ye=function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},Xe=function(e,t){return function(n,r){t(n,r,e)}},qe=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Ue(t,e),t.prototype.setBeans=function(e){this.logger=e.create("ColumnFactory")},t.prototype.createColumnTree=function(e,t,n){var r=new f,o=this.extractExistingTreeData(n),i=o.existingCols,a=o.existingGroups,s=o.existingColKeys;r.addExistingKeys(s);var l=this.recursivelyCreateColumns(e,0,t,i,r,a),c=this.findMaxDept(l,0);this.logger.log("Number of levels for grouped columns is "+c);var u=this.balanceColumnTree(l,0,c,r);return this.columnUtils.depthFirstOriginalTreeSearch(null,u,(function(e,t){e instanceof Ae&&e.setupExpandable(),e.setOriginalParent(t)})),{columnTree:u,treeDept:c}},t.prototype.extractExistingTreeData=function(e){var t=[],n=[],r=[];return e&&this.columnUtils.depthFirstOriginalTreeSearch(null,e,(function(e){if(e instanceof Ae){var o=e;n.push(o)}else{var i=e;r.push(i.getId()),t.push(i)}})),{existingCols:t,existingGroups:n,existingColKeys:r}},t.prototype.createForAutoGroups=function(e,t){var n=this,r=[];return e.forEach((function(e){var o=n.createAutoGroupTreeItem(t,e);r.push(o)})),r},t.prototype.createAutoGroupTreeItem=function(e,t){for(var n=t,r=this.findDepth(e)-1;r>=0;r--){var o=new Ae(null,"FAKE_PATH_"+t.getId()+"}_"+r,!0,r);this.context.createBean(o),o.setChildren([n]),n.setOriginalParent(o),n=o}return n},t.prototype.findDepth=function(e){for(var t=0,n=e;n&&n[0]&&n[0]instanceof Ae;)t++,n=n[0].getChildren();return t},t.prototype.balanceColumnTree=function(e,t,n,r){for(var o=[],i=0;i=t;p--){var d=r.getUniqueKey(null,null),h=this.createMergedColGroupDef(null),f=new Ae(h,d,!0,t);this.context.createBean(f),u&&u.setChildren([f]),u=f,c||(c=u)}if(c&&u){if(o.push(c),e.some((function(e){return e instanceof Ae}))){u.setChildren([a]);continue}u.setChildren(e);break}o.push(a)}}return o},t.prototype.findMaxDept=function(e,t){for(var n=t,r=0;r"']/g,Ze={"&":"&","<":"<",">":">",'"':""","'":"'"};function Je(e,t){if(t=Math.floor(t),0===e.length||0===t)return"";var n=e.length*t;for(t=Math.floor(Math.log(t)/Math.log(2));t;)e+=e,t--;return e+=e.substring(0,n-e.length)}function et(e,t,n){return e.length>t?e:((t-=e.length)>n.length&&(n+=Je(n,t/n.length)),n.slice(0,t)+e)}function tt(e){return null===e||void 0===e?null:e.replace(/([A-Z])/g,(function(e){return"-"+e[0].toLowerCase()}))}function nt(e){return null===e||void 0===e?null:e.replace(/-([a-z])/g,(function(e){return e[1].toUpperCase()}))}function rt(e){return e[0].toUpperCase()+e.substr(1).toLowerCase()}function ot(e){return null==e?null:e.toString().toString().replace(Qe,(function(e){return Ze[e]}))}function it(e){if(!e||null==e)return null;return 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(" ")}function at(e,t){return e===t||null!=e&&e.slice(0,t.length)===t}var st=Object.freeze({__proto__:null,utf8_encode:function(e){var t=String.fromCharCode;function n(e,n){return t(e>>n&63|128)}function r(e){if(e>=0&&e<=31&&10!==e)return"_x"+et(e.toString(16).toUpperCase(),4,"0")+"_";if(0==(4294967168&e))return t(e);var r="";return 0==(4294965248&e)?r=t(e>>6&31|192):0==(4294901760&e)?(!function(e){if(e>=55296&&e<=57343)throw Error("Lone surrogate U+"+e.toString(16).toUpperCase()+" is not a scalar value")}(e),r=t(e>>12&15|224),r+=n(e,6)):0==(4292870144&e)&&(r=t(e>>18&7|240),r+=n(e,12),r+=n(e,6)),r+=t(63&e|128)}for(var o=function(e){var t=[];if(!e)return[];for(var n,r,o=e.length,i=0;i=55296&&n<=56319&&i=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},dt=function(e,t){return function(n,r){t(n,r,e)}},ht=function(){for(var e=0,t=0,n=arguments.length;t=0,s=i>=0;return a&&s?o-i:a?1:s?-1:e.gridColumns.indexOf(n)-e.gridColumns.indexOf(r)}))},t.prototype.getAllDisplayedAutoHeightCols=function(){return this.displayedAutoHeightCols},t.prototype.setViewport=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)},t.prototype.getDisplayedColumnsStartingAt=function(e){for(var t=e,n=[];null!=t;)n.push(t),t=this.getDisplayedColAfter(t);return n},t.prototype.checkViewportColumns=function(){if(null!=this.displayedColumnsCenter){var e=this.viewportColumns.map((function(e){return e.getId()})).join("#");if(this.extractViewport(),e!==this.viewportColumns.map((function(e){return e.getId()})).join("#")){var t={type:Ke.EVENT_VIRTUAL_COLUMNS_CHANGED,api:this.gridApi,columnApi:this.columnApi};this.eventService.dispatchEvent(t)}}},t.prototype.setViewportPosition=function(e,t){(e!==this.scrollWidth||t!==this.scrollPosition||this.bodyWidthDirty)&&(this.scrollWidth=e,this.scrollPosition=t,this.bodyWidthDirty=!0,this.setViewport(),this.ready&&this.checkViewportColumns())},t.prototype.isPivotMode=function(){return this.pivotMode},t.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)},t.prototype.setPivotMode=function(e,t){if(void 0===t&&(t="api"),e!==this.pivotMode&&this.isPivotSettingAllowed(this.pivotMode)){this.pivotMode=e,this.autoGroupsNeedBuilding=!0,this.updateGridColumns(),this.updateDisplayedColumns(t);var n={type:Ke.EVENT_COLUMN_PIVOT_MODE_CHANGED,api:this.gridApi,columnApi:this.columnApi};this.eventService.dispatchEvent(n)}},t.prototype.getSecondaryPivotColumn=function(e,t){if(!this.secondaryColumnsPresent||!this.secondaryColumns)return null;var n=this.getPrimaryColumn(t),r=null;return this.secondaryColumns.forEach((function(t){var o=t.getColDef().pivotKeys,i=t.getColDef().pivotValueColumn;m(o,e)&&i===n&&(r=t)})),r},t.prototype.setBeans=function(e){this.logger=e.create("columnModel")},t.prototype.setFirstRightAndLastLeftPinned=function(e){var t,n;this.gridOptionsWrapper.isEnableRtl()?(t=this.displayedColumnsLeft?this.displayedColumnsLeft[0]:null,n=this.displayedColumnsRight?v(this.displayedColumnsRight):null):(t=this.displayedColumnsLeft?v(this.displayedColumnsLeft):null,n=this.displayedColumnsRight?this.displayedColumnsRight[0]:null),this.gridColumns.forEach((function(r){r.setLastLeftPinned(r===t,e),r.setFirstRightPinned(r===n,e)}))},t.prototype.autoSizeColumns=function(e,t,n){var r=this;void 0===n&&(n="api"),this.animationFrameService.flushAllFrames();var o=[],i=-1;for(null==t&&(t=this.gridOptionsWrapper.isSkipHeaderOnAutoSize());0!==i;)i=0,this.actionOnGridColumns(e,(function(e){if(o.indexOf(e)>=0)return!1;var a=r.autoWidthCalculator.getPreferredWidthForColumn(e,t);if(a>0){var s=r.normaliseColumnWidth(e,a);e.setActualWidth(s,n),o.push(e),i++}return!0}),n);this.fireColumnResizedEvent(o,!0,"autosizeColumns")},t.prototype.fireColumnResizedEvent=function(e,t,n,r){if(void 0===r&&(r=null),e&&e.length){var o={type:Ke.EVENT_COLUMN_RESIZED,columns:e,column:1===e.length?e[0]:null,flexColumns:r,finished:t,api:this.gridApi,columnApi:this.columnApi,source:n};this.eventService.dispatchEvent(o)}},t.prototype.autoSizeColumn=function(e,t,n){void 0===n&&(n="api"),e&&this.autoSizeColumns([e],t,n)},t.prototype.autoSizeAllColumns=function(e,t){void 0===t&&(t="api");var n=this.getAllDisplayedColumns();this.autoSizeColumns(n,e,t)},t.prototype.getColumnsFromTree=function(e){var t=[];return function e(n){for(var r=0;r=0},t.prototype.getAllDisplayedColumns=function(){return this.displayedColumns},t.prototype.getViewportColumns=function(){return this.viewportColumns},t.prototype.getDisplayedLeftColumnsForRow=function(e){return this.colSpanActive?this.getDisplayedColumnsForRow(e,this.displayedColumnsLeft):this.displayedColumnsLeft},t.prototype.getDisplayedRightColumnsForRow=function(e){return this.colSpanActive?this.getDisplayedColumnsForRow(e,this.displayedColumnsRight):this.displayedColumnsRight},t.prototype.getDisplayedColumnsForRow=function(e,t,n,r){for(var o,i=[],a=null,s=function(s){var l,c=t[s],u=t.length-s,p=Math.min(c.getColSpan(e),u),d=[c];if(p>1){for(var h=p-1,f=1;f<=h;f++)d.push(t[s+f]);s+=h}if(n?(l=!1,d.forEach((function(e){n(e)&&(l=!0)}))):l=!0,l){if(0===i.length&&a)!!r&&r(c)&&i.push(a);i.push(c)}a=c,o=s},l=0;lt.viewportLeft}))},t.prototype.getAriaColumnIndex=function(e){return this.getAllGridColumns().indexOf(e)+1},t.prototype.isColumnInViewport=function(e){if(e.getColDef().autoHeight)return!0;var t=e.getLeft()||0,n=t+e.getActualWidth(),r=this.viewportLeft-200,o=this.viewportRight+200;return!(to&&n>o)},t.prototype.getDisplayedColumnsLeftWidth=function(){return this.getWidthOfColsInList(this.displayedColumnsLeft)},t.prototype.getDisplayedColumnsRightWidth=function(){return this.getWidthOfColsInList(this.displayedColumnsRight)},t.prototype.updatePrimaryColumnList=function(e,t,n,r,o,i){var s=this;if(void 0===i&&(i="api"),e&&!a(e)){var l=!1;if(e.forEach((function(e){var o=s.getPrimaryColumn(e);if(o){if(n){if(t.indexOf(o)>=0)return;t.push(o)}else{if(t.indexOf(o)<0)return;b(t,o)}r(o),l=!0}})),l){this.autoGroupsNeedBuilding&&this.updateGridColumns(),this.updateDisplayedColumns(i);var c={type:o,columns:t,column:1===t.length?t[0]:null,api:this.gridApi,columnApi:this.columnApi,source:i};this.eventService.dispatchEvent(c)}}},t.prototype.setRowGroupColumns=function(e,t){void 0===t&&(t="api"),this.autoGroupsNeedBuilding=!0,this.setPrimaryColumnList(e,this.rowGroupColumns,Ke.EVENT_COLUMN_ROW_GROUP_CHANGED,this.setRowGroupActive.bind(this),t)},t.prototype.setRowGroupActive=function(e,t,n){e!==t.isRowGroupActive()&&(t.setRowGroupActive(e,n),e||this.gridOptionsWrapper.isSuppressMakeColumnVisibleAfterUnGroup()||t.setVisible(!0,n))},t.prototype.addRowGroupColumn=function(e,t){void 0===t&&(t="api"),e&&this.addRowGroupColumns([e],t)},t.prototype.addRowGroupColumns=function(e,t){void 0===t&&(t="api"),this.autoGroupsNeedBuilding=!0,this.updatePrimaryColumnList(e,this.rowGroupColumns,!0,this.setRowGroupActive.bind(this,!0),Ke.EVENT_COLUMN_ROW_GROUP_CHANGED,t)},t.prototype.removeRowGroupColumns=function(e,t){void 0===t&&(t="api"),this.autoGroupsNeedBuilding=!0,this.updatePrimaryColumnList(e,this.rowGroupColumns,!1,this.setRowGroupActive.bind(this,!1),Ke.EVENT_COLUMN_ROW_GROUP_CHANGED,t)},t.prototype.removeRowGroupColumn=function(e,t){void 0===t&&(t="api"),e&&this.removeRowGroupColumns([e],t)},t.prototype.addPivotColumns=function(e,t){void 0===t&&(t="api"),this.updatePrimaryColumnList(e,this.pivotColumns,!0,(function(e){return e.setPivotActive(!0,t)}),Ke.EVENT_COLUMN_PIVOT_CHANGED,t)},t.prototype.setPivotColumns=function(e,t){void 0===t&&(t="api"),this.setPrimaryColumnList(e,this.pivotColumns,Ke.EVENT_COLUMN_PIVOT_CHANGED,(function(e,n){n.setPivotActive(e,t)}),t)},t.prototype.addPivotColumn=function(e,t){void 0===t&&(t="api"),this.addPivotColumns([e],t)},t.prototype.removePivotColumns=function(e,t){void 0===t&&(t="api"),this.updatePrimaryColumnList(e,this.pivotColumns,!1,(function(e){return e.setPivotActive(!1,t)}),Ke.EVENT_COLUMN_PIVOT_CHANGED,t)},t.prototype.removePivotColumn=function(e,t){void 0===t&&(t="api"),this.removePivotColumns([e],t)},t.prototype.setPrimaryColumnList=function(e,t,n,r,i){var a=this;t.length=0,o(e)&&e.forEach((function(e){var n=a.getPrimaryColumn(e);n&&t.push(n)})),(this.primaryColumns||[]).forEach((function(e){var n=t.indexOf(e)>=0;r(n,e)})),this.autoGroupsNeedBuilding&&this.updateGridColumns(),this.updateDisplayedColumns(i),this.fireColumnEvent(n,t,i)},t.prototype.setValueColumns=function(e,t){void 0===t&&(t="api"),this.setPrimaryColumnList(e,this.valueColumns,Ke.EVENT_COLUMN_VALUE_CHANGED,this.setValueActive.bind(this),t)},t.prototype.setValueActive=function(e,t,n){if(e!==t.isValueActive()&&(t.setValueActive(e,n),e&&!t.getAggFunc())){var r=this.aggFuncService.getDefaultAggFunc(t);t.setAggFunc(r)}},t.prototype.addValueColumns=function(e,t){void 0===t&&(t="api"),this.updatePrimaryColumnList(e,this.valueColumns,!0,this.setValueActive.bind(this,!0),Ke.EVENT_COLUMN_VALUE_CHANGED,t)},t.prototype.addValueColumn=function(e,t){void 0===t&&(t="api"),e&&this.addValueColumns([e],t)},t.prototype.removeValueColumn=function(e,t){void 0===t&&(t="api"),this.removeValueColumns([e],t)},t.prototype.removeValueColumns=function(e,t){void 0===t&&(t="api"),this.updatePrimaryColumnList(e,this.valueColumns,!1,this.setValueActive.bind(this,!1),Ke.EVENT_COLUMN_VALUE_CHANGED,t)},t.prototype.normaliseColumnWidth=function(e,t){var n=e.getMinWidth();o(n)&&t0?i+=n:a=!1})),n>=r&&(!a||n<=i)},t.prototype.resizeColumnSets=function(e,t,n){var r=this;if(!e||e.every((function(e){return r.checkMinAndMaxWidthsForSet(e)}))){var i=[],a=[];e.forEach((function(e){var t=e.width,r=e.columns,s=e.ratios,l={},c={};r.forEach((function(e){return a.push(e)}));for(var u=!0,p=0,d=function(){if(++p>1e3)return console.error("AG Grid: infinite loop in resizeColumnSets"),"break";u=!1;var e=[],n=0,i=t;r.forEach((function(t,r){if(c[t.getId()])i-=l[t.getId()];else{e.push(t);var o=s[r];n+=o}}));var a=1/n;e.forEach((function(n,r){var p;r===e.length-1?p=i:(p=Math.round(s[r]*t*a),i-=p);var d=n.getMinWidth(),h=n.getMaxWidth();o(d)&&p0&&p>h&&(p=h,c[n.getId()]=!0,u=!0),l[n.getId()]=p}))};u;){if("break"===d())break}r.forEach((function(e){var t=l[e.getId()];e.getActualWidth()!==t&&(e.setActualWidth(t,n),i.push(e))}))}));var s=i.length>0,l=this.refreshFlexedColumns({resizingCols:a,skipSetLeft:!0});s&&(this.setLeftValues(n),this.updateBodyWidths(),this.checkViewportColumns());var c=a.concat(l);(s||t)&&this.fireColumnResizedEvent(c,t,n,l)}else if(t){var u=e&&e.length>0?e[0].columns:null;this.fireColumnResizedEvent(u,t,n)}},t.prototype.setColumnAggFunc=function(e,t,n){if(void 0===n&&(n="api"),e){var r=this.getPrimaryColumn(e);r&&(r.setAggFunc(t),this.fireColumnEvent(Ke.EVENT_COLUMN_VALUE_CHANGED,[r],n))}},t.prototype.fireColumnEvent=function(e,t,n){var r={type:e,columns:t,column:t&&1==t.length?t[0]:null,api:this.gridApi,columnApi:this.columnApi,source:n};this.eventService.dispatchEvent(r)},t.prototype.moveRowGroupColumn=function(e,t,n){void 0===n&&(n="api");var r=this.rowGroupColumns[e];this.rowGroupColumns.splice(e,1),this.rowGroupColumns.splice(t,0,r);var o={type:Ke.EVENT_COLUMN_ROW_GROUP_CHANGED,columns:this.rowGroupColumns,column:1===this.rowGroupColumns.length?this.rowGroupColumns[0]:null,api:this.gridApi,columnApi:this.columnApi,source:n};this.eventService.dispatchEvent(o)},t.prototype.moveColumns=function(e,t,n){if(void 0===n&&(n="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 r=this.getGridColumns(e);if(!!this.doesMovePassRules(r,t)){x(this.gridColumns,r,t),this.updateDisplayedColumns(n);var o={type:Ke.EVENT_COLUMN_MOVED,columns:r,column:1===r.length?r[0]:null,toIndex:t,api:this.gridApi,columnApi:this.columnApi,source:n};this.eventService.dispatchEvent(o),this.columnAnimationService.finish()}},t.prototype.doesMovePassRules=function(e,t){var n=this.gridColumns.slice();return x(n,e,t),!!this.doesMovePassMarryChildren(n)&&!!this.doesMovePassLockedPositions(n)},t.prototype.sortColumnsLikeGridColumns=function(e){var t=this;!e||e.length<=1||(e.filter((function(e){return t.gridColumns.indexOf(e)<0})).length>0||e.sort((function(e,n){return t.gridColumns.indexOf(e)-t.gridColumns.indexOf(n)})))},t.prototype.doesMovePassLockedPositions=function(e){var t=!1,n=!0;return e.forEach((function(e){e.getColDef().lockPosition?t&&(n=!1):t=!0})),n},t.prototype.doesMovePassMarryChildren=function(e){var t=!0;return this.columnUtils.depthFirstOriginalTreeSearch(null,this.gridBalancedTree,(function(n){if(n instanceof Ae){var r=n,o=r.getColGroupDef();if(o&&o.marryChildren){var i=[];r.getLeafColumns().forEach((function(t){var n=e.indexOf(t);i.push(n)})),Math.max.apply(Math,i)-Math.min.apply(Math,i)>r.getLeafColumns().length-1&&(t=!1)}}})),t},t.prototype.moveColumn=function(e,t,n){void 0===n&&(n="api"),this.moveColumns([e],t,n)},t.prototype.moveColumnByIndex=function(e,t,n){void 0===n&&(n="api");var r=this.gridColumns[e];this.moveColumn(r,t,n)},t.prototype.getColumnDefs=function(){var e=this;if(this.primaryColumns){var t=this.primaryColumns.slice();return this.gridColsArePrimary?t.sort((function(t,n){return e.gridColumns.indexOf(t)-e.gridColumns.indexOf(n)})):this.lastPrimaryOrder&&t.sort((function(t,n){return e.lastPrimaryOrder.indexOf(t)-e.lastPrimaryOrder.indexOf(n)})),this.columnDefFactory.buildColumnDefs(t,this.rowGroupColumns,this.pivotColumns)}},t.prototype.getBodyContainerWidth=function(){return this.bodyWidth},t.prototype.getContainerWidth=function(e){switch(e){case Ce.PINNED_LEFT:return this.leftWidth;case Ce.PINNED_RIGHT:return this.rightWidth;default:return this.bodyWidth}},t.prototype.updateBodyWidths=function(){var e=this.getWidthOfColsInList(this.displayedColumnsCenter),t=this.getWidthOfColsInList(this.displayedColumnsLeft),n=this.getWidthOfColsInList(this.displayedColumnsRight);if(this.bodyWidthDirty=this.bodyWidth!==e,this.bodyWidth!==e||this.leftWidth!==t||this.rightWidth!==n){this.bodyWidth=e,this.leftWidth=t,this.rightWidth=n;var r={type:Ke.EVENT_DISPLAYED_COLUMNS_WIDTH_CHANGED,api:this.gridApi,columnApi:this.columnApi};this.eventService.dispatchEvent(r)}},t.prototype.getValueColumns=function(){return this.valueColumns?this.valueColumns:[]},t.prototype.getPivotColumns=function(){return this.pivotColumns?this.pivotColumns:[]},t.prototype.isPivotActive=function(){return this.pivotColumns&&this.pivotColumns.length>0&&this.pivotMode},t.prototype.getRowGroupColumns=function(){return this.rowGroupColumns?this.rowGroupColumns:[]},t.prototype.getDisplayedCenterColumns=function(){return this.displayedColumnsCenter},t.prototype.getDisplayedLeftColumns=function(){return this.displayedColumnsLeft},t.prototype.getDisplayedRightColumns=function(){return this.displayedColumnsRight},t.prototype.getDisplayedColumns=function(e){switch(e){case Ce.PINNED_LEFT:return this.getDisplayedLeftColumns();case Ce.PINNED_RIGHT:return this.getDisplayedRightColumns();default:return this.getDisplayedCenterColumns()}},t.prototype.getAllPrimaryColumns=function(){return this.primaryColumns?this.primaryColumns.slice():null},t.prototype.getSecondaryColumns=function(){return this.secondaryColumns?this.secondaryColumns.slice():null},t.prototype.getAllColumnsForQuickFilter=function(){return this.columnsForQuickFilter},t.prototype.getAllGridColumns=function(){return this.gridColumns},t.prototype.isEmpty=function(){return a(this.gridColumns)},t.prototype.isRowGroupEmpty=function(){return a(this.rowGroupColumns)},t.prototype.setColumnVisible=function(e,t,n){void 0===n&&(n="api"),this.setColumnsVisible([e],t,n)},t.prototype.setColumnsVisible=function(e,t,n){var r=this;void 0===t&&(t=!1),void 0===n&&(n="api"),this.columnAnimationService.start(),this.actionOnGridColumns(e,(function(e){return e.isVisible()!==t&&(e.setVisible(t,n),!0)}),n,(function(){return{type:Ke.EVENT_COLUMN_VISIBLE,visible:t,column:null,columns:null,api:r.gridApi,columnApi:r.columnApi,source:n}})),this.columnAnimationService.finish()},t.prototype.setColumnPinned=function(e,t,n){void 0===n&&(n="api"),e&&this.setColumnsPinned([e],t,n)},t.prototype.setColumnsPinned=function(e,t,n){var r,o=this;(void 0===n&&(n="api"),"print"!==this.gridOptionsWrapper.getDomLayout())?(this.columnAnimationService.start(),r=!0===t||t===Ce.PINNED_LEFT?Ce.PINNED_LEFT:t===Ce.PINNED_RIGHT?Ce.PINNED_RIGHT:null,this.actionOnGridColumns(e,(function(e){return e.getPinned()!==r&&(e.setPinned(r),!0)}),n,(function(){return{type:Ke.EVENT_COLUMN_PINNED,pinned:r,column:null,columns:null,api:o.gridApi,columnApi:o.columnApi,source:n}})),this.columnAnimationService.finish()):console.warn("Changing the column pinning status is not allowed with domLayout='print'")},t.prototype.actionOnGridColumns=function(e,t,n,r){var i=this;if(!a(e)){var s=[];if(e.forEach((function(e){var n=i.getGridColumn(e);n&&(!1!==t(n)&&s.push(n))})),s.length&&(this.updateDisplayedColumns(n),o(r)&&r)){var l=r();l.columns=s,l.column=1===s.length?s[0]:null,this.eventService.dispatchEvent(l)}}},t.prototype.getDisplayedColBefore=function(e){var t=this.getAllDisplayedColumns(),n=t.indexOf(e);return n>0?t[n-1]:null},t.prototype.getDisplayedColAfter=function(e){var t=this.getAllDisplayedColumns(),n=t.indexOf(e);return n0},t.prototype.isPinningRight=function(){return this.displayedColumnsRight.length>0},t.prototype.getPrimaryAndSecondaryAndAutoColumns=function(){var e=this.primaryColumns?this.primaryColumns.slice(0):[];return this.groupAutoColumns&&o(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},t.prototype.createStateItemFromColumn=function(e){var t=e.isRowGroupActive()?this.rowGroupColumns.indexOf(e):null,n=e.isPivotActive()?this.pivotColumns.indexOf(e):null,r=e.isValueActive()?e.getAggFunc():null,o=null!=e.getSort()?e.getSort():null,i=null!=e.getSortIndex()?e.getSortIndex():null,a=null!=e.getFlex()&&e.getFlex()>0?e.getFlex():null;return{colId:e.getColId(),width:e.getActualWidth(),hide:!e.isVisible(),pinned:e.getPinned(),sort:o,sortIndex:i,aggFunc:r,rowGroup:e.isRowGroupActive(),rowGroupIndex:t,pivot:e.isPivotActive(),pivotIndex:n,flex:a}},t.prototype.getColumnState=function(){if(i(this.primaryColumns)||!this.isAlive())return[];var e=this.getPrimaryAndSecondaryAndAutoColumns().map(this.createStateItemFromColumn.bind(this));return this.pivotMode||this.orderColumnStateList(e),e},t.prototype.getPrimaryAndAutoGroupCols=function(){return this.groupAutoColumns?ht(this.primaryColumns||[],this.groupAutoColumns):this.primaryColumns},t.prototype.orderColumnStateList=function(e){var t=lt(this.gridColumns.map((function(e,t){return[e.getColId(),t]})));e.sort((function(e,n){return(t.has(e.colId)?t.get(e.colId):-1)-(t.has(n.colId)?t.get(n.colId):-1)}))},t.prototype.resetColumnState=function(e){void 0===e&&(e="api");var t=this.getColumnsFromTree(this.primaryColumnTree),n=[],r=1e3,o=1e3,a=[];this.groupAutoColumns&&(a=a.concat(this.groupAutoColumns)),t&&(a=a.concat(t)),a.forEach((function(e){var t=function(e,t){return null!=e?e:null!=t?t:null},a=e.getColDef(),s=t(a.sort,a.initialSort),l=t(a.sortIndex,a.initialSortIndex),c=t(a.hide,a.initialHide),u=t(a.pinned,a.initialPinned),p=t(a.width,a.initialWidth),d=t(a.flex,a.initialFlex),h=t(a.rowGroupIndex,a.initialRowGroupIndex),f=t(a.rowGroup,a.initialRowGroup);null!=h||null!=f&&0!=f||(h=null,f=null);var g=t(a.pivotIndex,a.initialPivotIndex),v=t(a.pivot,a.initialPivot);null!=g||null!=v&&0!=v||(g=null,v=null);var m=t(a.aggFunc,a.initialAggFunc),y={colId:e.getColId(),sort:s,sortIndex:l,hide:c,pinned:u,width:p,flex:d,rowGroup:f,rowGroupIndex:h,pivot:v,pivotIndex:g,aggFunc:m};i(h)&&f&&(y.rowGroupIndex=r++),i(g)&&v&&(y.pivotIndex=o++),n.push(y)})),this.applyColumnState({state:n,applyOrder:!0},e)},t.prototype.applyColumnState=function(e,t){var n=this;if(void 0===t&&(t="api"),a(this.primaryColumns))return!1;if(e&&e.state&&!e.state.forEach)return console.warn("AG Grid: applyColumnState() - the state attribute should be an array, however an array was not found. Please provide an array of items (one for each col you want to change) for state."),!1;this.columnAnimationService.start();var r=this.compareColumnStatesAndRaiseEvents(t);this.autoGroupsNeedBuilding=!0;var o=this.primaryColumns.slice(),i=!0,s={},l={},c=[],u=this.rowGroupColumns.slice(),p=this.pivotColumns.slice();e.state&&e.state.forEach((function(r){var a=Ce.GROUP_AUTO_COLUMN_ID,u=r.colId||"";if(at(u,a))c.push(r);else{var p=n.getPrimaryColumn(u);p?(n.syncColumnWithStateItem(p,r,e.defaultState,s,l,!1,t),b(o,p)):i=!1}}));var d=function(r){return n.syncColumnWithStateItem(r,null,e.defaultState,s,l,!1,t)};o.forEach(d);var h=function(e,t,n,r){var o=e[n.getId()],i=e[r.getId()],a=null!=o,s=null!=i;if(a&&s)return o-i;if(a)return-1;if(s)return 1;var l=t.indexOf(n),c=t.indexOf(r),u=l>=0;return u&&c>=0?l-c:u?-1:1};this.rowGroupColumns.sort(h.bind(this,s,u)),this.pivotColumns.sort(h.bind(this,l,p)),this.updateGridColumns();var f=this.groupAutoColumns?this.groupAutoColumns.slice():[];return c.forEach((function(r){var o=n.getAutoColumn(r.colId);b(f,o),n.syncColumnWithStateItem(o,r,e.defaultState,null,null,!0,t)})),f.forEach(d),this.applyOrderAfterApplyState(e),this.updateDisplayedColumns(t),this.dispatchEverythingChanged(t),r(),this.columnAnimationService.finish(),i},t.prototype.applyOrderAfterApplyState=function(e){if(this.gridColsArePrimary&&e.applyOrder&&e.state){var t=[],n={},r={};this.gridColumns.forEach((function(e){return r[e.getId()]=e})),e.state.forEach((function(e){if(e.colId&&!n[e.colId]){var o=r[e.colId];o&&(t.push(o),n[e.colId]=!0)}})),this.gridColumns.forEach((function(e){n[e.getColId()]||t.push(e)})),t=this.putFixedColumnsFirst(t),this.doesMovePassMarryChildren(t)?this.gridColumns=t:console.warn("AG Grid: Applying column order broke a group where columns should be married together. Applying new order has been discarded.")}},t.prototype.compareColumnStatesAndRaiseEvents=function(e){var t=this;if(!!!this.columnDefs)return function(){};var n={rowGroupColumns:this.rowGroupColumns.slice(),pivotColumns:this.pivotColumns.slice(),valueColumns:this.valueColumns.slice()},r=this.getColumnState(),o={};return r.forEach((function(e){o[e.colId]=e})),function(){if(!t.gridOptionsWrapper.isSuppressColumnStateEvents()){var i=t.getPrimaryAndAutoGroupCols(),a=function(n,r,o,i){if(!m(r.map(i),o.map(i))){var a={type:n,columns:o,column:1===o.length?o[0]:null,api:t.gridApi,columnApi:t.columnApi,source:e};t.eventService.dispatchEvent(a)}},s=function(e){var t=[];return(i||[]).forEach((function(n){var r=o[n.getColId()];r&&e(r,n)&&t.push(n)})),t},l=function(e){return e.getColId()};a(Ke.EVENT_COLUMN_ROW_GROUP_CHANGED,n.rowGroupColumns,t.rowGroupColumns,l),a(Ke.EVENT_COLUMN_PIVOT_CHANGED,n.pivotColumns,t.pivotColumns,l);s((function(e,t){var n=null!=e.aggFunc,r=n!=t.isValueActive(),o=n&&e.aggFunc!=t.getAggFunc();return r||o})).length>0&&t.fireColumnEvent(Ke.EVENT_COLUMN_VALUE_CHANGED,t.valueColumns,e);t.fireColumnResizedEvent(s((function(e,t){return e.width!=t.getActualWidth()})),!0,e);t.raiseColumnPinnedEvent(s((function(e,t){return e.pinned!=t.getPinned()})),e);t.raiseColumnVisibleEvent(s((function(e,t){return e.hide==t.isVisible()})),e);s((function(e,t){return e.sort!=t.getSort()||e.sortIndex!=t.getSortIndex()})).length>0&&t.sortController.dispatchSortChangedEvents(),t.raiseColumnMovedEvent(r,e)}}},t.prototype.raiseColumnPinnedEvent=function(e,t){if(e.length){var n=1===e.length?e[0]:null,r=this.getCommonValue(e,(function(e){return e.getPinned()})),o={type:Ke.EVENT_COLUMN_PINNED,pinned:null!=r?r:null,columns:e,column:n,api:this.gridApi,columnApi:this.columnApi,source:t};this.eventService.dispatchEvent(o)}},t.prototype.getCommonValue=function(e,t){if(e&&0!=e.length){for(var n=t(e[0]),r=1;r=p&&e.setActualWidth(h,s)}var f=l("sort").value1;void 0!==f&&(f===Ce.SORT_DESC||f===Ce.SORT_ASC?e.setSort(f):e.setSort(void 0));var g=l("sortIndex").value1;if(void 0!==g&&e.setSortIndex(g),!a){var v=l("aggFunc").value1;void 0!==v&&("string"===typeof v?(e.setAggFunc(v),e.isValueActive()||(e.setValueActive(!0,s),this.valueColumns.push(e))):(o(v)&&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 is intended for the column state to be stored and retrieved as simple JSON."),e.isValueActive()&&(e.setValueActive(!1,s),b(this.valueColumns,e))));var m=l("rowGroup","rowGroupIndex"),y=m.value1,w=m.value2;void 0===y&&void 0===w||("number"===typeof w||y?(e.isRowGroupActive()||(e.setRowGroupActive(!0,s),this.rowGroupColumns.push(e)),r&&"number"===typeof w&&(r[e.getId()]=w)):e.isRowGroupActive()&&(e.setRowGroupActive(!1,s),b(this.rowGroupColumns,e)));var C=l("pivot","pivotIndex"),x=C.value1,S=C.value2;void 0===x&&void 0===S||("number"===typeof S||x?(e.isPivotActive()||(e.setPivotActive(!0,s),this.pivotColumns.push(e)),i&&"number"===typeof S&&(i[e.getId()]=S)):e.isPivotActive()&&(e.setPivotActive(!1,s),b(this.pivotColumns,e)))}}},t.prototype.getGridColumns=function(e){return this.getColumns(e,this.getGridColumn.bind(this))},t.prototype.getColumns=function(e,t){var n=[];return e&&e.forEach((function(e){var r=t(e);r&&n.push(r)})),n},t.prototype.getColumnWithValidation=function(e){if(null==e)return null;var t=this.getGridColumn(e);return t||console.warn("AG Grid: could not find column "+e),t},t.prototype.getPrimaryColumn=function(e){return this.primaryColumns?this.getColumn(e,this.primaryColumns,this.primaryColumnsMap):null},t.prototype.getGridColumn=function(e){return this.getColumn(e,this.gridColumns,this.gridColumnsMap)},t.prototype.getColumn=function(e,t,n){if(!e)return null;if("string"==typeof e&&n[e])return n[e];for(var r=0;r=0:p?void 0!==f?f:!!(void 0!==v)&&(null!=v&&v>=0):t.indexOf(n)>=0)&&((p?null!=g||null!=v:null!=g)?s.push(n):u.push(n))}));var p=function(e){var t=r(e.getColDef()),n=o(e.getColDef());return null!=t?t:n};s.sort((function(e,t){var n=p(e),r=p(t);return n===r?0:n=0&&d.push(e)})),u.forEach((function(e){d.indexOf(e)<0&&d.push(e)})),t.forEach((function(e){d.indexOf(e)<0&&n(e,!1)})),d.forEach((function(e){t.indexOf(e)<0&&n(e,!0)})),d},t.prototype.extractPivotColumns=function(e,t){this.pivotColumns=this.extractColumns(t,this.pivotColumns,(function(t,n){return t.setPivotActive(n,e)}),(function(e){return e.pivotIndex}),(function(e){return e.initialPivotIndex}),(function(e){return e.pivot}),(function(e){return e.initialPivot}))},t.prototype.resetColumnGroupState=function(e){void 0===e&&(e="api");var t=[];this.columnUtils.depthFirstOriginalTreeSearch(null,this.primaryColumnTree,(function(e){if(e instanceof Ae){var n=e.getColGroupDef(),r={groupId:e.getGroupId(),open:n?n.openByDefault:void 0};t.push(r)}})),this.setColumnGroupState(t,e)},t.prototype.getColumnGroupState=function(){var e=[];return this.columnUtils.depthFirstOriginalTreeSearch(null,this.gridBalancedTree,(function(t){if(t instanceof Ae){var n=t;e.push({groupId:n.getGroupId(),open:n.isExpanded()})}})),e},t.prototype.setColumnGroupState=function(e,t){var n=this;void 0===t&&(t="api"),this.columnAnimationService.start();var r=[];e.forEach((function(e){var t=e.groupId,o=e.open,i=n.getOriginalColumnGroup(t);i&&i.isExpanded()!==o&&(n.logger.log("columnGroupOpened("+i.getGroupId()+","+o+")"),i.setExpanded(o),r.push(i))})),this.updateGroupsAndDisplayedColumns(t),this.setFirstRightAndLastLeftPinned(t),r.forEach((function(e){var t={type:Ke.EVENT_COLUMN_GROUP_OPENED,columnGroup:e,api:n.gridApi,columnApi:n.columnApi};n.eventService.dispatchEvent(t)})),this.columnAnimationService.finish()},t.prototype.setColumnGroupOpened=function(e,t,n){var r;void 0===n&&(n="api"),r=e instanceof Ae?e.getId():e||"",this.setColumnGroupState([{groupId:r,open:t}],n)},t.prototype.getOriginalColumnGroup=function(e){if(e instanceof Ae)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(n){if(n instanceof Ae){var r=n;r.getId()===e&&(t=r)}})),t},t.prototype.calculateColumnsForDisplay=function(){var e=this;return this.pivotMode&&!this.secondaryColumnsPresent?this.gridColumns.filter((function(t){var n=e.groupAutoColumns&&S(e.groupAutoColumns,t),r=e.valueColumns&&S(e.valueColumns,t);return n||r})):this.gridColumns.filter((function(t){return e.groupAutoColumns&&S(e.groupAutoColumns,t)||t.isVisible()}))},t.prototype.checkColSpanActiveInCols=function(e){var t=!1;return e.forEach((function(e){o(e.getColDef().colSpan)&&(t=!0)})),t},t.prototype.calculateColumnsForGroupDisplay=function(){var e=this;this.groupDisplayColumns=[];var t=function(t){var n=t.getColDef();n&&o(n.showRowGroup)&&e.groupDisplayColumns.push(t)};this.gridColumns.forEach(t),this.groupAutoColumns&&this.groupAutoColumns.forEach(t)},t.prototype.getGroupDisplayColumns=function(){return this.groupDisplayColumns},t.prototype.updateDisplayedColumns=function(e){var t=this.calculateColumnsForDisplay();this.buildDisplayedTrees(t),this.calculateColumnsForGroupDisplay(),this.updateGroupsAndDisplayedColumns(e),this.setFirstRightAndLastLeftPinned(e)},t.prototype.isSecondaryColumnsPresent=function(){return this.secondaryColumnsPresent},t.prototype.setSecondaryColumns=function(e,t){void 0===t&&(t="api");var n=e&&e.length>0;if(n||this.secondaryColumnsPresent){if(n){this.processSecondaryColumnDefinitions(e);var r=this.columnFactory.createColumnTree(e,!1);this.secondaryBalancedTree=r.columnTree,this.secondaryHeaderRowCount=r.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)}},t.prototype.processSecondaryColumnDefinitions=function(e){var t=this.gridOptionsWrapper.getProcessSecondaryColDefFunc(),n=this.gridOptionsWrapper.getProcessSecondaryColGroupDefFunc();if(t||n){e&&function e(r){r.forEach((function(r){if(o(r.children)){var i=r;n&&n(i),e(i.children)}else t&&t(r)}))}(e)}},t.prototype.updateGridColumns=function(){var e=this;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.primaryColumns&&(this.gridBalancedTree=this.primaryColumnTree.slice(),this.gridHeaderRowCount=this.primaryHeaderRowCount,this.gridColumns=this.primaryColumns.slice(),this.gridColsArePrimary=!0,this.orderGridColsLikeLastPrimary()),this.addAutoGroupToGridColumns(),this.gridColumns=this.putFixedColumnsFirst(this.gridColumns),this.setupQuickFilterColumns(),this.clearDisplayedAndViewportColumns(),this.colSpanActive=this.checkColSpanActiveInCols(this.gridColumns),this.gridColumnsMap={},this.gridColumns.forEach((function(t){return e.gridColumnsMap[t.getId()]=t})),this.setAutoHeightActive();var t={type:Ke.EVENT_GRID_COLUMNS_CHANGED,api:this.gridApi,columnApi:this.columnApi};this.eventService.dispatchEvent(t)},t.prototype.setAutoHeightActive=function(){if(this.autoHeightActive=this.gridColumns.filter((function(e){return e.getColDef().autoHeight})).length>0,this.autoHeightActive){this.autoHeightActiveAtLeastOnce=!0;var e=this.rowModel.getType();if(!(e===Ce.ROW_MODEL_TYPE_CLIENT_SIDE||e===Ce.ROW_MODEL_TYPE_SERVER_SIDE)){K((function(){return console.warn("AG Grid - autoHeight columns only work with Client Side Row Model and Server Side Row Model.")}),"autoHeightActive.wrongRowModel")}}},t.prototype.orderGridColsLikeLastPrimary=function(){if(!i(this.lastPrimaryOrder)){var e=lt(this.lastPrimaryOrder.map((function(e,t){return[e,t]}))),t=!0;if(this.gridColumns.forEach((function(n){e.has(n)&&(t=!1)})),!t){var n=lt(this.gridColumns.map((function(e){return[e,!0]}))),r=this.lastPrimaryOrder.filter((function(e){return n.has(e)})),o=lt(r.map((function(e){return[e,!0]}))),a=this.gridColumns.filter((function(e){return!o.has(e)})),s=r.slice();a.forEach((function(e){var t=e.getOriginalParent();if(t){for(var n=[];!n.length&&t;){t.getLeafColumns().forEach((function(e){var t=s.indexOf(e)>=0,r=n.indexOf(e)<0;t&&r&&n.push(e)})),t=t.getOriginalParent()}if(n.length){var r=n.map((function(e){return s.indexOf(e)})),o=Math.max.apply(Math,r);C(s,e,o+1)}else s.push(e)}else s.push(e)})),this.gridColumns=s}}},t.prototype.isPrimaryColumnGroupsPresent=function(){return this.primaryHeaderRowCount>1},t.prototype.setupQuickFilterColumns=function(){this.groupAutoColumns?this.columnsForQuickFilter=(this.primaryColumns||[]).concat(this.groupAutoColumns):this.primaryColumns&&(this.columnsForQuickFilter=this.primaryColumns)},t.prototype.putFixedColumnsFirst=function(e){var t=e.filter((function(e){return e.getColDef().lockPosition})),n=e.filter((function(e){return!e.getColDef().lockPosition}));return t.concat(n)},t.prototype.addAutoGroupToGridColumns=function(){if(this.createGroupAutoColumnsIfNeeded(),!i(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)}},t.prototype.clearDisplayedAndViewportColumns=function(){this.displayedTreeLeft=[],this.displayedTreeRight=[],this.displayedTreeCentre=[],this.viewportRowLeft={},this.viewportRowRight={},this.viewportRowCenter={},this.displayedColumnsLeft=[],this.displayedColumnsRight=[],this.displayedColumnsCenter=[],this.displayedColumns=[],this.viewportColumns=[]},t.prototype.updateGroupsAndDisplayedColumns=function(e){this.updateOpenClosedVisibilityInColumnGroups(),this.deriveDisplayedColumns(e),this.refreshFlexedColumns(),this.extractViewport(),this.updateBodyWidths();var t={type:Ke.EVENT_DISPLAYED_COLUMNS_CHANGED,api:this.gridApi,columnApi:this.columnApi};this.eventService.dispatchEvent(t)},t.prototype.deriveDisplayedColumns=function(e){this.derivedDisplayedColumnsFromDisplayedTree(this.displayedTreeLeft,this.displayedColumnsLeft),this.derivedDisplayedColumnsFromDisplayedTree(this.displayedTreeCentre,this.displayedColumnsCenter),this.derivedDisplayedColumnsFromDisplayedTree(this.displayedTreeRight,this.displayedColumnsRight),this.joinDisplayedColumns(),this.setLeftValues(e),this.displayedAutoHeightCols=this.displayedColumns.filter((function(e){return e.getColDef().autoHeight}))},t.prototype.isAutoRowHeightActive=function(){return this.autoHeightActive},t.prototype.wasAutoRowHeightEverActive=function(){return this.autoHeightActiveAtLeastOnce},t.prototype.joinDisplayedColumns=function(){this.gridOptionsWrapper.isEnableRtl()?this.displayedColumns=this.displayedColumnsRight.concat(this.displayedColumnsCenter).concat(this.displayedColumnsLeft):this.displayedColumns=this.displayedColumnsLeft.concat(this.displayedColumnsCenter).concat(this.displayedColumnsRight)},t.prototype.setLeftValues=function(e){this.setLeftValuesOfColumns(e),this.setLeftValuesOfGroups()},t.prototype.setLeftValuesOfColumns=function(e){var t=this;if(this.primaryColumns){var n=this.primaryColumns.slice(0),r=this.gridOptionsWrapper.isEnableRtl();[this.displayedColumnsLeft,this.displayedColumnsRight,this.displayedColumnsCenter].forEach((function(o){if(r){var i=t.getWidthOfColsInList(o);o.forEach((function(t){i-=t.getActualWidth(),t.setLeft(i,e)}))}else{var a=0;o.forEach((function(t){t.setLeft(a,e),a+=t.getActualWidth()}))}w(n,o)})),n.forEach((function(t){t.setLeft(null,e)}))}},t.prototype.setLeftValuesOfGroups=function(){[this.displayedTreeLeft,this.displayedTreeRight,this.displayedTreeCentre].forEach((function(e){e.forEach((function(e){e instanceof Oe&&e.checkLeft()}))}))},t.prototype.derivedDisplayedColumnsFromDisplayedTree=function(e,t){t.length=0,this.columnUtils.depthFirstDisplayedColumnTreeSearch(e,(function(e){e instanceof _e&&t.push(e)}))},t.prototype.extractViewportColumns=function(){this.suppressColumnVirtualisation?this.viewportColumnsCenter=this.displayedColumnsCenter:this.viewportColumnsCenter=this.filterOutColumnsWithinViewport(),this.viewportColumns=this.viewportColumnsCenter.concat(this.displayedColumnsLeft).concat(this.displayedColumnsRight)},t.prototype.getVirtualHeaderGroupRow=function(e,t){var n;switch(e){case Ce.PINNED_LEFT:n=this.viewportRowLeft[t];break;case Ce.PINNED_RIGHT:n=this.viewportRowRight[t];break;default:n=this.viewportRowCenter[t]}return i(n)&&(n=[]),n},t.prototype.extractViewportRows=function(){this.viewportRowLeft={},this.viewportRowRight={},this.viewportRowCenter={};var e={};this.viewportColumns.forEach((function(t){return e[t.getId()]=!0}));var t=function t(n,r,o){for(var i=!1,a=0;ar;return e.getFlex()&&n},a=this.displayedColumnsCenter.filter((function(e){return!i(e)})),s=this.displayedColumnsCenter.filter((function(e){return i(e)})),l=[];if(!s.length)return[];var c,u=[];e:for(;;){var p=s.reduce((function(e,t){return e+t.getFlex()}),0);c=this.flexViewportWidth-this.getWidthOfColsInList(a);for(var d=0;dm&&(g=m),g){h.setActualWidth(g,n),b(s,h),l.push(h),a.push(h);continue e}u[d]=Math.round(f)}break}var y=c;return s.forEach((function(e,t){e.setActualWidth(Math.min(u[t],y),n),l.push(e),y-=u[t]})),e.skipSetLeft||this.setLeftValues(n),e.updateBodyWidths&&this.updateBodyWidths(),e.fireResizedEvent&&this.fireColumnResizedEvent(l,!0,n,s),this.flexColsCalculatedAtLestOnce||(this.gridOptionsWrapper.isRowModelDefault()&&this.rowModel.resetRowHeights(),this.flexColsCalculatedAtLestOnce=!0),s},t.prototype.sizeColumnsToFit=function(e,t,n){void 0===t&&(t="sizeColumnsToFit");var r=this.getAllDisplayedColumns();if(!(e<=0)&&r.length){var i=[],a=[];r.forEach((function(e){!0===e.getColDef().suppressSizeToFit?a.push(e):i.push(e)}));var s=i.slice(0),l=!1,c=function(e){b(i,e),a.push(e)};for(i.forEach((function(e){return e.resetActualWidth(t)}));!l;){l=!0;var u=e-this.getWidthOfColsInList(a);if(u<=0)i.forEach((function(e){e.setMinimum(t)}));else for(var p=u/this.getWidthOfColsInList(i),d=u,h=i.length-1;h>=0;h--){var f=i[h],g=f.getMinWidth(),v=f.getMaxWidth(),m=Math.round(f.getActualWidth()*p);o(g)&&m0||this.usingTreeData)&&!t&&!e){var n=this.autoGroupColService.createAutoGroupColumns(this.rowGroupColumns);(!this.autoColsEqual(n,this.groupAutoColumns)||this.forceRecreateAutoGroups)&&(this.groupAutoColumns=n)}else this.groupAutoColumns=null}},t.prototype.autoColsEqual=function(e,t){return m(e,t,(function(e,t){return e.getColId()===t.getColId()}))},t.prototype.getWidthOfColsInList=function(e){return e.reduce((function(e,t){return e+t.getActualWidth()}),0)},t.prototype.getGridBalancedTree=function(){return this.gridBalancedTree},t.prototype.hasFloatingFilters=function(){return!!this.gridColumns&&this.gridColumns.some((function(e){return e.getColDef().floatingFilter}))},t.prototype.getFirstDisplayedColumn=function(){var e=this.gridOptionsWrapper.isEnableRtl(),t=["getDisplayedLeftColumns","getDisplayedCenterColumns","getDisplayedRightColumns"];e&&t.reverse();for(var n=0;n>>=8;return n},formatNumberTwoDecimalPlacesAndCommas:function(e){return"number"!==typeof e?"":bt(Math.round(100*e)/100)},formatNumberCommas:bt,sum:function(e){return null==e?null:e.reduce((function(e,t){return e+t}),0)}}),Ct=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),xt=function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},St=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Ct(t,e),t.prototype.calculateColMinWidth=function(e){return null!=e.minWidth?e.minWidth:this.gridOptionsWrapper.getMinColWidth()},t.prototype.calculateColMaxWidth=function(e){return null!=e.maxWidth?e.maxWidth:this.gridOptionsWrapper.getMaxColWidth()||yt()},t.prototype.calculateColInitialWidth=function(e){var t,n=this.calculateColMinWidth(e),r=this.calculateColMaxWidth(e),o=l(e.width),i=l(e.initialWidth);return t=null!=o?o:null!=i?i:this.gridOptionsWrapper.getColWidth(),Math.max(Math.min(t,r),n)},t.prototype.getOriginalPathForColumn=function(e,t){var n=[],r=!1;return function t(o,i){for(var a=0;a=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},Rt=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Et(t,e),t.prototype.createDisplayedGroups=function(e,t,n,r,o){var i,a,s=this,l=[],c=this.mapOldGroupsById(o);return e.forEach((function(e){for(var o=s.getOriginalPathForColumn(t,e),u=[],p=!a,d=0;d=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},Mt=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.componentsMappedByName={},t}return kt(t,e),t.prototype.setupComponents=function(e){var t=this;e&&e.forEach((function(e){return t.addComponent(e)}))},t.prototype.addComponent=function(e){var t=e.componentName.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase().toUpperCase();this.componentsMappedByName[t]=e.componentClass},t.prototype.getComponentClass=function(e){return this.componentsMappedByName[e]},t=Nt([pe("agStackComponentsRegistry")],t)}(ze),It=function(){for(var e=0,t=0,n=arguments.length;t=0)return e.fromHexString(t);var n=e.nameToHex[t];if(n)return e.fromHexString(n);if(t.indexOf("rgb")>=0)return e.fromRgbaString(t);throw new Error("Invalid color string: '"+t+"'")},e.parseHex=function(e){var t;switch((e=e.replace(/ /g,"").slice(1)).length){case 6:case 8:t=[];for(var n=0;n=3&&t.every((function(e){return e>=0})))return 3===t.length&&t.push(255),t},e.fromHexString=function(t){var n=e.parseHex(t);if(n)return new e(n[0]/255,n[1]/255,n[2]/255,n[3]/255);throw new Error("Malformed hexadecimal color string: '"+t+"'")},e.stringToRgba=function(e){for(var t=[NaN,NaN],n=t[0],r=t[1],o=0;o=0?(u=Math.max(0,Math.min(100,u)),u/=100):3===o?u=Math.max(0,Math.min(1,u)):(u=Math.max(0,Math.min(255,u)),u/=255),l.push(u)}return l}},e.fromRgbaString=function(t){var n=e.stringToRgba(t);if(n){if(3===n.length)return new e(n[0],n[1],n[2]);if(4===n.length)return new e(n[0],n[1],n[2],n[3])}throw new Error("Malformed rgb/rgba color string: '"+t+"'")},e.fromArray=function(t){if(4===t.length)return new e(t[0],t[1],t[2],t[3]);if(3===t.length)return new e(t[0],t[1],t[2]);throw new Error("The given array should contain 3 or 4 color components (numbers).")},e.fromHSB=function(t,n,r,o){void 0===o&&(o=1);var i=e.HSBtoRGB(t,n,r);return new e(i[0],i[1],i[2],o)},e.padHex=function(e){return 1===e.length?"0"+e:e},e.prototype.toHexString=function(){var t="#"+e.padHex(Math.round(255*this.r).toString(16))+e.padHex(Math.round(255*this.g).toString(16))+e.padHex(Math.round(255*this.b).toString(16));return this.a<1&&(t+=e.padHex(Math.round(255*this.a).toString(16))),t},e.prototype.toRgbaString=function(e){void 0===e&&(e=3);var t=[Math.round(255*this.r),Math.round(255*this.g),Math.round(255*this.b)],n=Math.pow(10,e);return 1!==this.a?(t.push(Math.round(this.a*n)/n),"rgba("+t.join(", ")+")"):"rgb("+t.join(", ")+")"},e.prototype.toString=function(){return 1===this.a?this.toHexString():this.toRgbaString()},e.prototype.toHSB=function(){return e.RGBtoHSB(this.r,this.g,this.b)},e.RGBtoHSB=function(e,t,n){var r=Math.min(e,t,n),o=Math.max(e,t,n),i=NaN;if(r!==o){var a=o-r,s=(o-e)/a,l=(o-t)/a,c=(o-n)/a;i=e===o?c-l:t===o?2+s-c:4+l-s,(i/=6)<0&&(i+=1)}return[360*i,0!==o?(o-r)/o:0,o]},e.HSBtoRGB=function(e,t,n){isNaN(e)&&(e=0),e=(e%360+360)%360/360;var r=0,o=0,i=0;if(0===t)r=o=i=n;else{var a=6*(e-Math.floor(e)),s=a-Math.floor(a),l=n*(1-t),c=n*(1-t*s),u=n*(1-t*(1-s));switch(a>>0){case 0:r=n,o=u,i=l;break;case 1:r=c,o=n,i=l;break;case 2:r=l,o=n,i=u;break;case 3:r=l,o=c,i=n;break;case 4:r=u,o=l,i=n;break;case 5:r=n,o=l,i=c}}return[r,o,i]},e.prototype.derive=function(t,n,r,o){var i=e.RGBtoHSB(this.r,this.g,this.b),a=i[2];0==a&&r>1&&(a=.05);var s=((i[0]+t)%360+360)%360,l=Math.max(Math.min(i[1]*n,1),0);a=Math.max(Math.min(a*r,1),0);var c=Math.max(Math.min(this.a*o,1),0),u=e.HSBtoRGB(s,l,a);return u.push(c),e.fromArray(u)},e.prototype.brighter=function(){return this.derive(0,1,1/.7,1)},e.prototype.darker=function(){return this.derive(0,1,.7,1)},e.nameToHex=Object.freeze({aliceblue:"#F0F8FF",antiquewhite:"#FAEBD7",aqua:"#00FFFF",aquamarine:"#7FFFD4",azure:"#F0FFFF",beige:"#F5F5DC",bisque:"#FFE4C4",black:"#000000",blanchedalmond:"#FFEBCD",blue:"#0000FF",blueviolet:"#8A2BE2",brown:"#A52A2A",burlywood:"#DEB887",cadetblue:"#5F9EA0",chartreuse:"#7FFF00",chocolate:"#D2691E",coral:"#FF7F50",cornflowerblue:"#6495ED",cornsilk:"#FFF8DC",crimson:"#DC143C",cyan:"#00FFFF",darkblue:"#00008B",darkcyan:"#008B8B",darkgoldenrod:"#B8860B",darkgray:"#A9A9A9",darkgreen:"#006400",darkgrey:"#A9A9A9",darkkhaki:"#BDB76B",darkmagenta:"#8B008B",darkolivegreen:"#556B2F",darkorange:"#FF8C00",darkorchid:"#9932CC",darkred:"#8B0000",darksalmon:"#E9967A",darkseagreen:"#8FBC8F",darkslateblue:"#483D8B",darkslategray:"#2F4F4F",darkslategrey:"#2F4F4F",darkturquoise:"#00CED1",darkviolet:"#9400D3",deeppink:"#FF1493",deepskyblue:"#00BFFF",dimgray:"#696969",dimgrey:"#696969",dodgerblue:"#1E90FF",firebrick:"#B22222",floralwhite:"#FFFAF0",forestgreen:"#228B22",fuchsia:"#FF00FF",gainsboro:"#DCDCDC",ghostwhite:"#F8F8FF",gold:"#FFD700",goldenrod:"#DAA520",gray:"#808080",green:"#008000",greenyellow:"#ADFF2F",grey:"#808080",honeydew:"#F0FFF0",hotpink:"#FF69B4",indianred:"#CD5C5C",indigo:"#4B0082",ivory:"#FFFFF0",khaki:"#F0E68C",lavender:"#E6E6FA",lavenderblush:"#FFF0F5",lawngreen:"#7CFC00",lemonchiffon:"#FFFACD",lightblue:"#ADD8E6",lightcoral:"#F08080",lightcyan:"#E0FFFF",lightgoldenrodyellow:"#FAFAD2",lightgray:"#D3D3D3",lightgreen:"#90EE90",lightgrey:"#D3D3D3",lightpink:"#FFB6C1",lightsalmon:"#FFA07A",lightseagreen:"#20B2AA",lightskyblue:"#87CEFA",lightslategray:"#778899",lightslategrey:"#778899",lightsteelblue:"#B0C4DE",lightyellow:"#FFFFE0",lime:"#00FF00",limegreen:"#32CD32",linen:"#FAF0E6",magenta:"#FF00FF",maroon:"#800000",mediumaquamarine:"#66CDAA",mediumblue:"#0000CD",mediumorchid:"#BA55D3",mediumpurple:"#9370DB",mediumseagreen:"#3CB371",mediumslateblue:"#7B68EE",mediumspringgreen:"#00FA9A",mediumturquoise:"#48D1CC",mediumvioletred:"#C71585",midnightblue:"#191970",mintcream:"#F5FFFA",mistyrose:"#FFE4E1",moccasin:"#FFE4B5",navajowhite:"#FFDEAD",navy:"#000080",oldlace:"#FDF5E6",olive:"#808000",olivedrab:"#6B8E23",orange:"#FFA500",orangered:"#FF4500",orchid:"#DA70D6",palegoldenrod:"#EEE8AA",palegreen:"#98FB98",paleturquoise:"#AFEEEE",palevioletred:"#DB7093",papayawhip:"#FFEFD5",peachpuff:"#FFDAB9",peru:"#CD853F",pink:"#FFC0CB",plum:"#DDA0DD",powderblue:"#B0E0E6",purple:"#800080",rebeccapurple:"#663399",red:"#FF0000",rosybrown:"#BC8F8F",royalblue:"#4169E1",saddlebrown:"#8B4513",salmon:"#FA8072",sandybrown:"#F4A460",seagreen:"#2E8B57",seashell:"#FFF5EE",sienna:"#A0522D",silver:"#C0C0C0",skyblue:"#87CEEB",slateblue:"#6A5ACD",slategray:"#708090",slategrey:"#708090",snow:"#FFFAFA",springgreen:"#00FF7F",steelblue:"#4682B4",tan:"#D2B48C",teal:"#008080",thistle:"#D8BFD8",tomato:"#FF6347",turquoise:"#40E0D0",violet:"#EE82EE",wheat:"#F5DEB3",white:"#FFFFFF",whitesmoke:"#F5F5F5",yellow:"#FFFF00",yellowgreen:"#9ACD32"}),e}();function Gt(e,t){void 0===t&&(t=",");var n=[],r=function(e){return"\r"===e||"\n"===e},o=!1;if(""===e)return[[""]];for(var i,a,s,l=function(l,c,u){var p=e[u-1],d=e[u],h=e[u+1],f=function(){n[l]||(n[l]=[]),n[l][c]||(n[l][c]="")};if(f(),'"'===d){if(o)return'"'===h?(n[l][c]+='"',u++):o=!1,i=l,a=c,s=u,"continue";if(void 0===p||p===t||r(p))return o=!0,i=l,a=c,s=u,"continue"}if(!o){if(d===t)return c++,f(),i=l,a=c,s=u,"continue";if(r(d))return c=0,l++,f(),"\r"===d&&"\n"===h&&u++,i=l,a=c,s=u,"continue"}n[l][c]+=d,i=l,a=c,s=u},c=0,u=0,p=0;p1)&&!window.MSStream),zt}function en(e){if(!e)return null;var t=e.tabIndex,n=e.getAttribute("tabIndex");if(qt()&&0===t&&null===n){return!0==={a:!0,body:!0,button:!0,frame:!0,iframe:!0,img:!0,input:!0,isindex:!0,object:!0,select:!0,textarea:!0}[e.nodeName.toLowerCase()]?"0":null}return-1!==t||null!==n&&(""!==n||Zt())?t.toString():null}function tn(){if(!document.body)return-1;var e=1e6,t=navigator.userAgent.toLowerCase().match(/firefox/)?6e6:1e9,n=document.createElement("div");for(document.body.appendChild(n);;){var r=2*e;if(n.style.height=r+"px",r>t||n.clientHeight!==r)break;e=r}return document.body.removeChild(n),e}function nn(){return null==Yt&&rn(),Yt}function rn(){var e=document.body,t=document.createElement("div");t.style.width=t.style.height="100px",t.style.opacity="0",t.style.overflow="scroll",t.style.msOverflowStyle="scrollbar",t.style.position="absolute",e.appendChild(t);var n=t.offsetWidth-t.clientWidth;0===n&&0===t.clientWidth&&(n=null),t.parentNode&&t.parentNode.removeChild(t),null!=n&&(Yt=n,Ut=0===n)}function on(){return null==Ut&&rn(),Ut}function an(){return document.body?document.body.clientWidth:window.innerHeight?window.innerWidth:document.documentElement&&document.documentElement.clientWidth?document.documentElement.clientWidth:-1}function sn(){return document.body?document.body.clientHeight:window.innerHeight?window.innerHeight:document.documentElement&&document.documentElement.clientHeight?document.documentElement.clientHeight:-1}var ln,cn=Object.freeze({__proto__:null,isBrowserIE:qt,isBrowserEdge:Kt,isBrowserSafari:$t,isBrowserChrome:Qt,isBrowserFirefox:Zt,isIOSUserAgent:Jt,getTabIndex:en,getMaxDivHeight:tn,getScrollbarWidth:nn,isInvisibleScrollbar:on,hasOverflowScrolling:function(){var e=["webkit","moz","o","ms"],t=document.createElement("div"),n=!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 r=window.getComputedStyle(t);if("touch"===r.overflowScrolling&&(n=!0),!n)for(var o=0,i=e;o=0)){if(e.classList)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);return e}t.split(" ").forEach((function(t){return un(e,t)}))}}function pn(e,t){if(e&&t&&0!==t.length)if(t.indexOf(" ")>=0)t.split(" ").forEach((function(t){return pn(e,t)}));else if(e.classList)e.classList.remove(t);else if(e.className&&e.className.length>0){var n=e.className.split(" ").filter((function(e){return e!==t})).join(" ");e.setAttribute("class",n)}}function dn(e,t,n){n?un(e,t):pn(e,t)}function hn(e,t){if(e.classList)return e.classList.contains(t);if(e.className){var n=e.className===t,r=e.className.indexOf(" "+t+" ")>=0,o=0===e.className.indexOf(t+" "),i=e.className.lastIndexOf(" "+t)===e.className.length-t.length-1;return n||r||o||i}return!1}function fn(e){var t=Element.prototype.matches||Element.prototype.msMatchesSelector,n=t.call(e,Ce.INPUT_SELECTOR),r=t.call(e,Ce.FOCUSABLE_EXCLUDE),o=Pn(e);return n&&!r&&o}function gn(e,t){dn(e,"ag-hidden",!t)}function vn(e,t){dn(e,"ag-invisible",!t)}function mn(e,t){var n="disabled",r=t?function(e){return e.setAttribute(n,"")}:function(e){return e.removeAttribute(n)};r(e),Kn(e.querySelectorAll("input"),(function(e){return r(e)}))}function yn(e,t,n){for(var r=0;e;){if(hn(e,t))return!0;if(e=e.parentElement,n&&++r>n)break}return!1}function bn(e){var t=window.getComputedStyle(e),n=t.height,r=t.width,o=t.paddingTop,i=t.paddingRight,a=t.paddingBottom,s=t.paddingLeft,l=t.marginTop,c=t.marginRight,u=t.marginBottom,p=t.marginLeft,d=t.boxSizing;return{height:parseFloat(n),width:parseFloat(r),paddingTop:parseFloat(o),paddingRight:parseFloat(i),paddingBottom:parseFloat(a),paddingLeft:parseFloat(s),marginTop:parseFloat(l),marginRight:parseFloat(c),marginBottom:parseFloat(u),marginLeft:parseFloat(p),boxSizing:d}}function wn(e){var t=bn(e);return"border-box"===t.boxSizing?t.height-t.paddingTop-t.paddingBottom:t.height}function Cn(e){var t=bn(e);return"border-box"===t.boxSizing?t.width-t.paddingLeft-t.paddingRight:t.width}function xn(e){var t=bn(e),n=t.marginBottom+t.marginTop;return Math.ceil(e.offsetHeight+n)}function Sn(e){var t=bn(e),n=t.marginLeft+t.marginRight;return Math.ceil(e.offsetWidth+n)}function En(){if("boolean"===typeof ln)return ln;var e=document.createElement("div");return e.style.direction="rtl",e.style.width="1px",e.style.height="1px",e.style.position="fixed",e.style.top="0px",e.style.overflow="hidden",e.dir="rtl",e.innerHTML='
\n \n \n
',document.body.appendChild(e),e.scrollLeft=1,ln=0===Math.floor(e.scrollLeft),document.body.removeChild(e),ln}function _n(e,t){var n=e.scrollLeft;return t&&(n=Math.abs(n),Qt()&&!En()&&(n=e.scrollWidth-e.clientWidth-n)),n}function Rn(e,t,n){n&&(En()?t*=-1:($t()||Qt())&&(t=e.scrollWidth-e.clientWidth-t)),e.scrollLeft=t}function On(e){for(;e&&e.firstChild;)e.removeChild(e.firstChild)}function An(e){e&&e.parentNode&&e.parentNode.removeChild(e)}function Pn(e){return null!==e.offsetParent}function Tn(e){var t=document.createElement("div");return t.innerHTML=(e||"").trim(),t.firstChild}function Dn(e){return e&&e.clientHeight?e.clientHeight:0}function kn(e){return e&&e.clientWidth?e.clientWidth:0}function Nn(e,t,n){n&&n.nextSibling===t||(n?n.nextSibling?e.insertBefore(t,n.nextSibling):e.appendChild(t):e.firstChild&&e.firstChild!==t&&e.insertAdjacentElement("afterbegin",t))}function Mn(e,t){for(var n=0;n1?n[1]:""},findLineByLeastSquares:function(e){var t=e.length,n=0;if(t<=1)return e;for(var r=0;r1?n=Math.max(n,parseInt(i[1],10)):Math.floor(o)!==o&&(n=Math.max(n,o.toString().split(".")[1].length))}for(var a=0,s=0,l=0,c=0,u=0,p=0;p'),document.body&&document.body.appendChild(n)}n.insertBefore(t,n.children[0])},bindCellRendererToHtmlElement:function(e,t){e.then((function(e){var n=e.getGui();null!=n&&("object"===typeof n?t.appendChild(n):t.innerHTML=n)}))}});function Zn(e,t,n){e.setAttribute(er(t),n.toString())}function Jn(e,t){e.removeAttribute(er(t))}function er(e){return"aria-"+e}function tr(e,t){t?e.setAttribute("role",t):e.removeAttribute("role")}function nr(e){return e.isSortAscending()?"ascending":e.isSortDescending()?"descending":"none"}function rr(e){return parseInt(e.getAttribute("aria-posinset"),10)}function or(e,t){var n="label";t?Zn(e,n,t):Jn(e,n)}function ir(e,t){var n="labelledby";t?Zn(e,n,t):Jn(e,n)}function ar(e,t){var n="describedby";t?Zn(e,n,t):Jn(e,n)}function sr(e,t){Zn(e,"disabled",t)}function lr(e,t){Zn(e,"expanded",t)}function cr(e,t){Zn(e,"setsize",t)}function ur(e,t){Zn(e,"posinset",t)}function pr(e,t){Zn(e,"multiselectable",t)}function dr(e,t){Zn(e,"rowcount",t)}function hr(e,t){Zn(e,"rowindex",t)}function fr(e,t){Zn(e,"colcount",t)}function gr(e,t){Zn(e,"colindex",t)}function vr(e,t){Zn(e,"colspan",t)}function mr(e,t){Zn(e,"sort",t)}function yr(e){Jn(e,"sort")}function br(e,t){var n="selected";t?Zn(e,n,t):Jn(e,n)}function wr(e,t){Zn(e,"checked",void 0===t?"mixed":t)}var Cr=Object.freeze({__proto__:null,setAriaRole:tr,getAriaSortState:nr,getAriaLevel:function(e){return parseInt(e.getAttribute("aria-level"),10)},getAriaPosInSet:rr,getAriaDescribedBy:function(e){return e.getAttribute("aria-describedby")||""},setAriaLabel:or,setAriaLabelledBy:ir,setAriaDescribedBy:ar,setAriaLevel:function(e,t){Zn(e,"level",t)},setAriaDisabled:sr,setAriaExpanded:lr,removeAriaExpanded:function(e){Jn(e,"expanded")},setAriaSetSize:cr,setAriaPosInSet:ur,setAriaMultiSelectable:pr,setAriaRowCount:dr,setAriaRowIndex:hr,setAriaColCount:fr,setAriaColIndex:gr,setAriaColSpan:vr,setAriaSort:mr,removeAriaSort:yr,setAriaSelected:br,setAriaChecked:wr});function xr(e,t,n){if(void 0===t&&(t=!0),void 0===n&&(n="-"),!e)return null;var r=[e.getFullYear(),e.getMonth()+1,e.getDate()].map((function(e){return gt(e,2)})).join(n);return t&&(r+=" "+[e.getHours(),e.getMinutes(),e.getSeconds()].map((function(e){return gt(e,2)})).join(":")),r}function Sr(e){if(!e)return null;var t=e.split(" "),n=t[0],r=t[1];if(!n)return null;var o=n.split("-").map((function(e){return parseInt(e,10)}));if(3!==o.filter((function(e){return!isNaN(e)})).length)return null;var i=o[0],a=o[1],s=o[2],l=new Date(i,a-1,s);if(l.getFullYear()!==i||l.getMonth()!==a-1||l.getDate()!==s)return null;if(!r||"00:00:00"===r)return l;var c=r.split(":").map((function(e){return parseInt(e,10)})),u=c[0],p=c[1],d=c[2];return u>=0&&u<24&&l.setHours(u),p>=0&&p<60&&l.setMinutes(p),d>=0&&d<60&&l.setSeconds(d),l}var Er=Object.freeze({__proto__:null,serialiseDate:xr,parseDateTimeFromString:Sr});function _r(e,t,n){var r={},o=e.filter((function(e){return!t.some((function(t){return t===e}))}));return o.length>0&&o.forEach((function(e){return r[e]=Rr(e,n)})),r}function Rr(e,t,n,r){var o=r?Pr:Ar,i=t.map((function(t){return{value:t,relevance:o(e.toLowerCase(),t.toLocaleLowerCase())}}));return i.sort((function(e,t){return t.relevance-e.relevance})),n&&(i=i.filter((function(e){return 0!==e.relevance}))),i.map((function(e){return e.value}))}function Or(e){var t,n,r,o=e.toLowerCase(),i=new Array(o.length-1);for(t=n=0,r=i.length;n<=r;t=n+=1)i[t]=o.slice(t,t+2);return i}function Ar(e,t){if(0===e.length&&0===t.length)return 0;var n,r,o=Or(e),i=Or(t),a=o.length+i.length,s=0;for(n=0,r=o.length;n0?2*s/a:0}function Pr(e,t){for(var n=e.replace(/\s/g,""),r=t.replace(/\s/g,""),o=0,i=0,a=0;a-1)return r;var o=document.createElement("span");return o.appendChild(r),o}function Nr(e,t,n,r){var o=null,i=n&&n.getColDef().icons;if(i&&(o=i[e]),t&&!o){var a=t.getIcons();a&&(o=a[e])}if(!o){var s=document.createElement("span"),l=Dr[e];return l||(r?l=e:(console.warn("AG Grid: Did not find icon "+e),l="")),s.setAttribute("class","ag-icon ag-icon-"+l),s.setAttribute("unselectable","on"),tr(s,"presentation"),s}var c=void 0;if("function"===typeof o)c=o();else{if("string"!==typeof o)throw new Error("icon from grid options needs to be a string or a function");c=o}return"string"===typeof c?Tn(c):Un(c)?c:void console.warn("AG Grid: iconRenderer should return back a string or a dom object")}var Mr=Object.freeze({__proto__:null,iconNameClassMap:Dr,createIcon:kr,createIconNoSpan:Nr});function Ir(e,t){return(e.which||e.keyCode)===t}function Lr(e){if(e.altKey||e.ctrlKey||e.metaKey)return!1;var t=1===e.key.length,n=function(e){return(Kt()||qt())&&"Del"===e.key&&46===e.charCode}(e);return t||n}function Fr(e,t,n,r,o){var i=e.getSuppressKeyboardEventFunc(),a=r?r.getColDef().suppressKeyboardEvent:void 0;if(!i&&!a)return!1;var s={event:t,editing:o,column:r,api:e.getApi(),node:n,data:n.data,colDef:r.getColDef(),context:e.getContext(),columnApi:e.getColumnApi()};if(a&&a(s))return!0;return!!i&&i(s)}function Gr(e,t,n,r){var i=r.getDefinition(),a=i&&i.suppressHeaderKeyboardEvent;return!!o(a)&&!!a({api:e.getApi(),columnApi:e.getColumnApi(),context:e.getContext(),colDef:i,column:r,headerRowIndex:n,event:t})}var Hr=Object.freeze({__proto__:null,isKeyPressed:Ir,isEventFromPrintableCharacter:Lr,isUserSuppressingKeyboardEvent:Fr,isUserSuppressingHeaderKeyboardEvent:Gr});function Wr(e,t,n){if(0===n)return!1;var r=Math.abs(e.clientX-t.clientX),o=Math.abs(e.clientY-t.clientY);return Math.max(r,o)<=n}var Vr=Object.freeze({__proto__:null,normalizeWheel:function(e){var t=0,n=0,r=0,o=0;return"detail"in e&&(n=e.detail),"wheelDelta"in e&&(n=-e.wheelDelta/120),"wheelDeltaY"in e&&(n=-e.wheelDeltaY/120),"wheelDeltaX"in e&&(t=-e.wheelDeltaX/120),"axis"in e&&e.axis===e.HORIZONTAL_AXIS&&(t=n,n=0),r=10*t,o=10*n,"deltaY"in e&&(o=e.deltaY),"deltaX"in e&&(r=e.deltaX),(r||o)&&e.deltaMode&&(1==e.deltaMode?(r*=40,o*=40):(r*=800,o*=800)),r&&!t&&(t=r<1?-1:1),o&&!n&&(n=o<1?-1:1),{spinX:t,spinY:n,pixelX:r,pixelY:o}},isLeftClick:function(e){return"buttons"in e?1==e.buttons:1==(e.which||e.button)},areEventsNear:Wr});var jr=Object.freeze({__proto__:null,sortRowNodesByOrder:function(e,t){if(e){for(var n=function(e,n){var r=t[e.id],o=t[n.id],i=void 0!==r,a=void 0!==o;return i&&a?r-o:!i&&!a?e.__objectId-n.__objectId:i?1:-1},r=!1,o=0;o0){r=!0;break}r&&e.sort(n)}},traverseNodesWithKey:function(e,t){var n=[];!function e(r){if(!r)return;r.forEach((function(r){if(r.group||r.hasChildren()){n.push(r.key);var o=n.join("|");t(r,o),e(r.childrenAfterGroup),n.pop()}}))}(e)}});function Br(e){var t=new Set;return e.forEach((function(e){return t.add(e)})),t}var zr,Ur=Object.freeze({__proto__:null,convertToSet:Br}),Yr=function(){return Yr=Object.assign||function(e){for(var t,n=1,r=arguments.length;n=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a};!function(e){e[e.NOTHING=0]="NOTHING",e[e.WAITING_TO_SHOW=1]="WAITING_TO_SHOW",e[e.SHOWING=2]="SHOWING"}(Kr||(Kr={}));var to=function(e){function t(t){var n=e.call(this)||this;return n.DEFAULT_HIDE_TOOLTIP_TIMEOUT=1e4,n.SHOW_QUICK_TOOLTIP_DIFF=1e3,n.FADE_OUT_TOOLTIP_TIMEOUT=1e3,n.state=Kr.NOTHING,n.tooltipInstanceCount=0,n.tooltipMouseTrack=!1,n.parentComp=t,n}return Zr(t,e),t.prototype.postConstruct=function(){this.tooltipShowDelay=this.gridOptionsWrapper.getTooltipShowDelay()||2e3,this.tooltipMouseTrack=this.gridOptionsWrapper.isTooltipMouseTrack();var e=this.parentComp.getGui();this.addManagedListener(e,"mouseenter",this.onMouseEnter.bind(this)),this.addManagedListener(e,"mouseleave",this.onMouseLeave.bind(this)),this.addManagedListener(e,"mousemove",this.onMouseMove.bind(this)),this.addManagedListener(e,"mousedown",this.onMouseDown.bind(this)),this.addManagedListener(e,"keydown",this.onKeyDown.bind(this))},t.prototype.destroy=function(){this.setToDoNothing(),e.prototype.destroy.call(this)},t.prototype.onMouseEnter=function(e){if(!Jt()&&this.state==Kr.NOTHING){var t=this.isLastTooltipHiddenRecently()?200:this.tooltipShowDelay;this.showTooltipTimeoutId=window.setTimeout(this.showTooltip.bind(this),t),this.lastMouseEvent=e,this.state=Kr.WAITING_TO_SHOW}},t.prototype.onMouseLeave=function(){this.setToDoNothing()},t.prototype.onKeyDown=function(){this.setToDoNothing()},t.prototype.setToDoNothing=function(){this.state===Kr.SHOWING&&this.hideTooltip(),this.clearTimeouts(),this.state=Kr.NOTHING},t.prototype.onMouseMove=function(e){this.lastMouseEvent=e,this.tooltipMouseTrack&&this.state===Kr.SHOWING&&this.tooltipComp&&this.positionTooltipUnderLastMouseEvent()},t.prototype.onMouseDown=function(){this.setToDoNothing()},t.prototype.hideTooltip=function(){this.tooltipComp&&(this.destroyTooltipComp(),t.lastTooltipHideTime=(new Date).getTime()),this.state=Kr.NOTHING},t.prototype.destroyTooltipComp=function(){var e=this;un(this.tooltipComp.getGui(),"ag-tooltip-hiding");var t=this.tooltipPopupDestroyFunc,n=this.tooltipComp;window.setTimeout((function(){t(),e.getContext().destroyBean(n)}),this.FADE_OUT_TOOLTIP_TIMEOUT),this.tooltipPopupDestroyFunc=void 0,this.tooltipComp=void 0},t.prototype.isLastTooltipHiddenRecently=function(){return(new Date).getTime()-t.lastTooltipHideTime=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},oo=new qr,io=function(e){function t(t){var n=e.call(this)||this;return n.displayed=!0,n.visible=!0,n.compId=oo.next(),n.cssClassStates={},t&&n.setTemplate(t),n}return no(t,e),t.prototype.preConstructOnComponent=function(){this.usingBrowserTooltips=this.gridOptionsWrapper.isEnableBrowserTooltips()},t.prototype.getCompId=function(){return this.compId},t.prototype.getTooltipParams=function(){return{value:this.tooltipText,location:"UNKNOWN"}},t.prototype.setTooltip=function(e){var t=this;this.tooltipText!=e&&(this.tooltipText&&(t.usingBrowserTooltips?t.getGui().removeAttribute("title"):t.tooltipFeature=t.destroyBean(t.tooltipFeature)),null!=e&&(this.tooltipText=e,this.tooltipText&&(t.usingBrowserTooltips?t.getGui().setAttribute("title",t.tooltipText):t.tooltipFeature=t.createBean(new to(t)))))},t.prototype.createChildComponentsFromTags=function(e,t){var n=this;A(Yn(e.childNodes),(function(r){if(r instanceof HTMLElement){var o=n.createComponentFromElement(r,(function(e){e.getGui()&&n.copyAttributesFromNode(r,e.getGui())}),t);if(o){if(o.addItems&&r.children.length){n.createChildComponentsFromTags(r,t);var i=Array.prototype.slice.call(r.children);o.addItems(i)}n.swapComponentForNode(o,e,r)}else r.childNodes&&n.createChildComponentsFromTags(r,t)}}))},t.prototype.createComponentFromElement=function(e,n,r){var o=e.nodeName,i=r?r[e.getAttribute("ref")]:void 0,a=this.agStackComponentsRegistry.getComponentClass(o);if(a){t.elementGettingCreated=e;var s=new a(i);return s.setParentComponent(this),this.createBean(s,null,n),s}return null},t.prototype.copyAttributesFromNode=function(e,t){Xn(e.attributes,(function(e,n){return t.setAttribute(e,n)}))},t.prototype.swapComponentForNode=function(e,t,n){var r=e.getGui();t.replaceChild(r,n),t.insertBefore(document.createComment(n.nodeName),r),this.addDestroyFunc(this.destroyBean.bind(this,e)),this.swapInComponentForQuerySelectors(e,n)},t.prototype.swapInComponentForQuerySelectors=function(e,t){var n=this;this.iterateOverQuerySelectors((function(r){n[r.attributeName]===t&&(n[r.attributeName]=e)}))},t.prototype.iterateOverQuerySelectors=function(e){for(var t=Object.getPrototypeOf(this);null!=t;){var n=t.__agComponentMetaData,r=$(t.constructor);n&&n[r]&&n[r].querySelectors&&A(n[r].querySelectors,(function(t){return e(t)})),t=Object.getPrototypeOf(t)}},t.prototype.setTemplate=function(e,t){var n=Tn(e);this.setTemplateFromElement(n,t)},t.prototype.setTemplateFromElement=function(e,t){this.eGui=e,this.eGui.__agComponent=this,this.wireQuerySelectors(),this.getContext()&&this.createChildComponentsFromTags(this.getGui(),t)},t.prototype.createChildComponentsPreConstruct=function(){this.getGui()&&this.createChildComponentsFromTags(this.getGui())},t.prototype.wireQuerySelectors=function(){var e=this;if(this.eGui){var t=this;this.iterateOverQuerySelectors((function(n){var r=function(e){return t[n.attributeName]=e};if(n.refSelector&&e.eGui.getAttribute("ref")===n.refSelector)r(e.eGui);else{var o=e.eGui.querySelector(n.querySelector);o&&r(o.__agComponent||o)}}))}},t.prototype.getGui=function(){return this.eGui},t.prototype.getFocusableElement=function(){return this.eGui},t.prototype.setParentComponent=function(e){this.parentComponent=e},t.prototype.getParentComponent=function(){return this.parentComponent},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,t){if(t||(t=this.eGui),null!=e)if(Un(e))t.appendChild(e);else{var n=e;t.appendChild(n.getGui()),this.addDestroyFunc(this.destroyBean.bind(this,n))}},t.prototype.isDisplayed=function(){return this.displayed},t.prototype.setVisible=function(e){e!==this.visible&&(this.visible=e,vn(this.eGui,e))},t.prototype.setDisplayed=function(e){if(e!==this.displayed){this.displayed=e,gn(this.eGui,e);var n={type:t.EVENT_DISPLAYED_CHANGED,visible:this.displayed};this.dispatchEvent(n)}},t.prototype.destroy=function(){this.tooltipFeature&&(this.tooltipFeature=this.destroyBean(this.tooltipFeature)),e.prototype.destroy.call(this)},t.prototype.addGuiEventListener=function(e,t){var n=this;this.eGui.addEventListener(e,t),this.addDestroyFunc((function(){return n.eGui.removeEventListener(e,t)}))},t.prototype.addCssClass=function(e){!0!==this.cssClassStates[e]&&(un(this.eGui,e),this.cssClassStates[e]=!0)},t.prototype.removeCssClass=function(e){!1!==this.cssClassStates[e]&&(pn(this.eGui,e),this.cssClassStates[e]=!1)},t.prototype.addOrRemoveCssClass=function(e,t){this.cssClassStates[e]!==t&&(dn(this.eGui,e,t),this.cssClassStates[e]=t)},t.prototype.getAttribute=function(e){var t=this.eGui;return t?t.getAttribute(e):null},t.prototype.getRefElement=function(e){return this.queryForHtmlElement('[ref="'+e+'"]')},t.EVENT_DISPLAYED_CHANGED="displayedChanged",ro([de("agStackComponentsRegistry")],t.prototype,"agStackComponentsRegistry",void 0),ro([le],t.prototype,"preConstructOnComponent",null),ro([le],t.prototype,"createChildComponentsPreConstruct",null),t}(ze);function ao(e){return so.bind(this,"[ref="+e+"]",e)}function so(e,t,n,r,o){null!==e?"number"!==typeof o?function(e,t,n){var r=function(e,t){e.__agComponentMetaData||(e.__agComponentMetaData={});e.__agComponentMetaData[t]||(e.__agComponentMetaData[t]={});return e.__agComponentMetaData[t]}(e,$(e.constructor));r[t]||(r[t]=[]);r[t].push(n)}(n,"querySelectors",{attributeName:r,querySelector:e,refSelector:t}):console.error("AG Grid: QuerySelector should be on an attribute"):console.error("AG Grid: QuerySelector selector should not be null")}var lo,co=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),uo=function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},po=function(e){function t(){return e.call(this,'\n ')||this}return co(t,e),t.prototype.destroy=function(){e.prototype.destroy.call(this)},t.prototype.init=function(e){this.params=e;var t=this.columnModel.getDisplayNameForColumn(e.column,"header",!0),n=this.gridOptionsWrapper.getLocaleTextFunc();this.eFloatingFilterText.setDisabled(!0).setInputAriaLabel(t+" "+n("ariaFilterInput","Filter Input"))},t.prototype.onParentModelChanged=function(e){var t=this;e?this.params.parentFilterInstance((function(n){if(n.getModelAsString){var r=n.getModelAsString(e);t.eFloatingFilterText.setValue(r)}})):this.eFloatingFilterText.setValue("")},uo([ao("eFloatingFilterText")],t.prototype,"eFloatingFilterText",void 0),uo([de("columnModel")],t.prototype,"columnModel",void 0),t}(io),ho=function(){function e(e,t,n,r){var o=this;this.alive=!0,this.context=e,this.eParent=r,t.getDateCompDetails(n).newAgStackInstance().then((function(t){o.alive?(o.dateComp=t,t&&(r.appendChild(t.getGui()),t.afterGuiAttached&&t.afterGuiAttached(),o.tempValue&&t.setDate(o.tempValue),null!=o.disabled&&o.setDateCompDisabled(o.disabled))):e.destroyBean(t)}))}return e.prototype.destroy=function(){this.alive=!1,this.dateComp=this.context.destroyBean(this.dateComp)},e.prototype.getDate=function(){return this.dateComp?this.dateComp.getDate():this.tempValue},e.prototype.setDate=function(e){this.dateComp?this.dateComp.setDate(e):this.tempValue=e},e.prototype.setDisabled=function(e){this.dateComp?this.setDateCompDisabled(e):this.disabled=e},e.prototype.setDisplayed=function(e){gn(this.eParent,e)},e.prototype.setInputPlaceholder=function(e){this.dateComp&&this.dateComp.setInputPlaceholder&&this.dateComp.setInputPlaceholder(e)},e.prototype.setInputAriaLabel=function(e){this.dateComp&&this.dateComp.setInputAriaLabel&&this.dateComp.setInputAriaLabel(e)},e.prototype.afterGuiAttached=function(e){this.dateComp&&"function"===typeof this.dateComp.afterGuiAttached&&this.dateComp.afterGuiAttached(e)},e.prototype.setDateCompDisabled=function(e){null!=this.dateComp&&null!=this.dateComp.setDisabled&&this.dateComp.setDisabled(e)},e}(),fo=function(){return fo=Object.assign||function(e){for(var t,n=1,r=arguments.length;n=1){var t=this.filterOptions[0];"string"===typeof t?this.defaultOption=t:t.displayKey?this.defaultOption=t.displayKey:console.warn("AG Grid: invalid FilterOptionDef supplied as it doesn't contain a 'displayKey'")}else console.warn("AG Grid: no filter options for filter")},e.prototype.getDefaultOption=function(){return this.defaultOption},e.prototype.getCustomOption=function(e){return this.customFilterOptions[e]},e}(),vo={applyFilter:"Apply",clearFilter:"Clear",resetFilter:"Reset",cancelFilter:"Cancel",textFilter:"Text Filter",numberFilter:"Number Filter",dateFilter:"Date Filter",setFilter:"Set Filter",filterOoo:"Filter...",empty:"Choose One",equals:"Equals",notEqual:"Not equal",lessThan:"Less than",greaterThan:"Greater than",inRange:"In range",inRangeStart:"From",inRangeEnd:"To",lessThanOrEqual:"Less than or equals",greaterThanOrEqual:"Greater than or equals",contains:"Contains",notContains:"Not contains",startsWith:"Starts with",endsWith:"Ends with",andCondition:"AND",orCondition:"OR",dateFormatOoo:"yyyy-mm-dd"},mo=function(){function e(){}return e.BACKSPACE=8,e.TAB=9,e.ENTER=13,e.SHIFT=16,e.ESCAPE=27,e.SPACE=32,e.LEFT=37,e.UP=38,e.RIGHT=39,e.DOWN=40,e.DELETE=46,e.A=65,e.C=67,e.V=86,e.D=68,e.Z=90,e.Y=89,e.F2=113,e.PAGE_UP=33,e.PAGE_DOWN=34,e.PAGE_HOME=36,e.PAGE_END=35,e}(),yo=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),bo=function(){return bo=Object.assign||function(e){for(var t,n=1,r=arguments.length;n=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},Co=function(e){function t(t,n){void 0===n&&(n={});var r=e.call(this)||this;return r.eFocusableElement=t,r.callbacks=n,r.callbacks=bo({shouldStopEventPropagation:function(){return!1},onTabKeyDown:function(e){if(!e.defaultPrevented){var t=r.focusService.findNextFocusableElement(r.eFocusableElement,!1,e.shiftKey);t&&(t.focus(),e.preventDefault())}}},n),r}return yo(t,e),t.prototype.postConstruct=function(){un(this.eFocusableElement,t.FOCUS_MANAGED_CLASS),this.addKeyDownListeners(this.eFocusableElement),this.callbacks.onFocusIn&&this.addManagedListener(this.eFocusableElement,"focusin",this.callbacks.onFocusIn),this.callbacks.onFocusOut&&this.addManagedListener(this.eFocusableElement,"focusout",this.callbacks.onFocusOut)},t.prototype.addKeyDownListeners=function(e){var t=this;this.addManagedListener(e,"keydown",(function(e){e.defaultPrevented||Me(e)||(t.callbacks.shouldStopEventPropagation(e)?Ne(e):e.keyCode===mo.TAB?t.callbacks.onTabKeyDown(e):t.callbacks.handleKeyDown&&t.callbacks.handleKeyDown(e))}))},t.FOCUS_MANAGED_CLASS="ag-focus-managed",wo([de("focusService")],t.prototype,"focusService",void 0),wo([ce],t.prototype,"postConstruct",null),t}(ze),xo=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),So=function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},Eo=function(e){function t(t){var n=e.call(this)||this;return n.filterNameKey=t,n.applyActive=!1,n.hidePopup=null,n.appliedModel=null,n}return xo(t,e),t.prototype.postConstruct=function(){this.resetTemplate(),this.createManagedBean(new Co(this.getFocusableElement(),{handleKeyDown:this.handleKeyDown.bind(this)}))},t.prototype.handleKeyDown=function(e){},t.prototype.getFilterTitle=function(){return this.translate(this.filterNameKey)},t.prototype.onFilterChanged=function(){console.warn("AG Grid: you should not call onFilterChanged() directly on the filter, please call\n gridApi.onFilterChanged() instead. onFilterChanged is not part of the exposed filter interface (it was\n a method that existed on an old version of the filters that was not intended for public use."),this.providedFilterParams.filterChangedCallback()},t.prototype.isFilterActive=function(){return!!this.appliedModel},t.prototype.resetTemplate=function(e){var t='\n
\n
\n '+this.createBodyTemplate()+"\n
\n
";this.setTemplate(t,e)},t.prototype.isReadOnly=function(){return!!this.providedFilterParams.readOnly},t.prototype.init=function(e){var t=this;this.setParams(e),this.resetUiToDefaults(!0).then((function(){t.updateUiVisibility(),t.setupOnBtApplyDebounce()}))},t.prototype.setParams=function(e){if(t.checkForDeprecatedParams(e),this.providedFilterParams=e,"keep"===e.newRowsAction)this.newRowsActionKeep=!0;else if("clear"===e.newRowsAction)this.newRowsActionKeep=!1;else{var n=[Ce.ROW_MODEL_TYPE_SERVER_SIDE,Ce.ROW_MODEL_TYPE_INFINITE];this.newRowsActionKeep=n.indexOf(this.rowModel.getType())>=0}this.applyActive=t.isUseApplyButton(e),this.createButtonPanel()},t.prototype.createButtonPanel=function(){var e=this,t=this.providedFilterParams.buttons;if(!(!t||t.length<1||this.isReadOnly())){var n=document.createElement("div");un(n,"ag-filter-apply-panel");Br(t).forEach((function(t){return function(t){var r,o;switch(t){case"apply":r=e.translate("applyFilter"),o=function(t){return e.onBtApply(!1,!1,t)};break;case"clear":r=e.translate("clearFilter"),o=function(){return e.onBtClear()};break;case"reset":r=e.translate("resetFilter"),o=function(){return e.onBtReset()};break;case"cancel":r=e.translate("cancelFilter"),o=function(t){e.onBtCancel(t)};break;default:return void console.warn("Unknown button type specified")}var i=Tn(''+r+"\n ");n.appendChild(i),e.addManagedListener(i,"click",o)}(t)})),this.getGui().appendChild(n)}},t.checkForDeprecatedParams=function(e){var t=e.buttons||[];if(!(t.length>0)){var n=e.applyButton,r=e.resetButton;e.clearButton&&(console.warn("AG Grid: as of AG Grid v23.2, filterParams.clearButton is deprecated. Please use filterParams.buttons instead"),t.push("clear")),r&&(console.warn("AG Grid: as of AG Grid v23.2, filterParams.resetButton is deprecated. Please use filterParams.buttons instead"),t.push("reset")),n&&(console.warn("AG Grid: as of AG Grid v23.2, filterParams.applyButton is deprecated. Please use filterParams.buttons instead"),t.push("apply")),e.apply&&(console.warn("AG Grid: as of AG Grid v21, filterParams.apply is deprecated. Please use filterParams.buttons instead"),t.push("apply")),e.buttons=t}},t.prototype.getDefaultDebounceMs=function(){return 0},t.prototype.setupOnBtApplyDebounce=function(){var e=t.getDebounceMs(this.providedFilterParams,this.getDefaultDebounceMs());this.onBtApplyDebounce=re(this.onBtApply.bind(this),e)},t.prototype.getModel=function(){return this.appliedModel},t.prototype.setModel=function(e){var t=this;return(e?this.setModelIntoUi(e):this.resetUiToDefaults()).then((function(){t.updateUiVisibility(),t.applyModel()}))},t.prototype.onBtCancel=function(e){var t=this,n=this.getModel(),r=function(){t.onUiChanged(!1,"prevent"),t.providedFilterParams.closeOnApply&&t.close(e)};null!=n?this.setModelIntoUi(n).then(r):this.resetUiToDefaults().then(r)},t.prototype.onBtClear=function(){var e=this;this.resetUiToDefaults().then((function(){return e.onUiChanged()}))},t.prototype.onBtReset=function(){this.onBtClear(),this.onBtApply()},t.prototype.applyModel=function(){var e=this.getModelFromUi();if(!this.isModelValid(e))return!1;var t=this.appliedModel;return this.appliedModel=e,!this.areModelsEqual(t,e)},t.prototype.isModelValid=function(e){return!0},t.prototype.onBtApply=function(e,t,n){void 0===e&&(e=!1),void 0===t&&(t=!1),this.applyModel()&&this.providedFilterParams.filterChangedCallback({afterFloatingFilter:e,afterDataChange:t}),this.providedFilterParams.closeOnApply&&this.applyActive&&!e&&!t&&this.close(n)},t.prototype.onNewRowsLoaded=function(){var e=this;this.newRowsActionKeep||this.resetUiToDefaults().then((function(){return e.appliedModel=null}))},t.prototype.close=function(e){if(this.hidePopup){var t,n=e,r=n&&n.key;"Enter"!==r&&"Space"!==r||(t={keyboardEvent:n}),this.hidePopup(t),this.hidePopup=null}},t.prototype.isNewRowsActionKeep=function(){return this.newRowsActionKeep},t.prototype.onUiChanged=function(e,t){if(void 0===e&&(e=!1),this.updateUiVisibility(),this.providedFilterParams.filterModifiedCallback(),this.applyActive&&!this.isReadOnly){var n=this.isModelValid(this.getModelFromUi());mn(this.getRefElement("applyFilterButton"),!n)}e&&!t||"immediately"===t?this.onBtApply(e):(this.applyActive||t)&&"debounce"!==t||this.onBtApplyDebounce()},t.prototype.afterGuiAttached=function(e){null!=e&&(this.hidePopup=e.hidePopup)},t.getDebounceMs=function(e,n){return t.isUseApplyButton(e)?(null!=e.debounceMs&&console.warn("AG Grid: debounceMs is ignored when apply button is present"),0):null!=e.debounceMs?e.debounceMs:n},t.isUseApplyButton=function(e){return t.checkForDeprecatedParams(e),!!e.buttons&&e.buttons.indexOf("apply")>=0},t.prototype.destroy=function(){this.hidePopup=null,e.prototype.destroy.call(this)},t.prototype.translate=function(e){return this.gridOptionsWrapper.getLocaleTextFunc()(e,vo[e])},t.prototype.getCellValue=function(e){return this.providedFilterParams.valueGetter(e)},So([de("rowModel")],t.prototype,"rowModel",void 0),So([ce],t.prototype,"postConstruct",null),t}(io),_o=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Ro=function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},Oo=function(e){function t(t,n){var r=e.call(this,n)||this;return r.labelSeparator="",r.labelAlignment="left",r.label="",r.config=t||{},r}return _o(t,e),t.prototype.postConstruct=function(){un(this.getGui(),"ag-labeled"),un(this.eLabel,"ag-label");var e=this.config,t=e.labelSeparator,n=e.label,r=e.labelWidth,o=e.labelAlignment;null!=t&&this.setLabelSeparator(t),null!=n&&this.setLabel(n),null!=r&&this.setLabelWidth(r),this.setLabelAlignment(o||this.labelAlignment),this.refreshLabel()},t.prototype.refreshLabel=function(){On(this.eLabel),"string"===typeof this.label?this.eLabel.innerText=this.label+this.labelSeparator:this.label&&this.eLabel.appendChild(this.label),""===this.label?(un(this.eLabel,"ag-hidden"),tr(this.eLabel,"presentation")):(pn(this.eLabel,"ag-hidden"),tr(this.eLabel,null))},t.prototype.setLabelSeparator=function(e){return this.labelSeparator===e||(this.labelSeparator=e,null!=this.label&&this.refreshLabel()),this},t.prototype.getLabelId=function(){return this.eLabel.id=this.eLabel.id||"ag-"+this.getCompId()+"-label",this.eLabel.id},t.prototype.getLabel=function(){return this.label},t.prototype.setLabel=function(e){return this.label===e||(this.label=e,this.refreshLabel()),this},t.prototype.setLabelAlignment=function(e){var t=this.getGui();return dn(t,"ag-label-align-left","left"===e),dn(t,"ag-label-align-right","right"===e),dn(t,"ag-label-align-top","top"===e),this},t.prototype.setLabelWidth=function(e){return null==this.label||Hn(this.eLabel,e),this},Ro([ce],t.prototype,"postConstruct",null),t}(io),Ao=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Po=function(e){function t(t,n,r){var o=e.call(this,t,n)||this;return o.className=r,o.disabled=!1,o}return Ao(t,e),t.prototype.postConstruct=function(){e.prototype.postConstruct.call(this),this.className&&un(this.getGui(),this.className)},t.prototype.onValueChange=function(e){var n=this;return this.addManagedListener(this,t.EVENT_CHANGED,(function(){return e(n.getValue())})),this},t.prototype.getWidth=function(){return this.getGui().clientWidth},t.prototype.setWidth=function(e){return Wn(this.getGui(),e),this},t.prototype.getPreviousValue=function(){return this.previousValue},t.prototype.getValue=function(){return this.value},t.prototype.setValue=function(e,n){return this.value===e||(this.previousValue=this.value,this.value=e,n||this.dispatchEvent({type:t.EVENT_CHANGED})),this},t.prototype.setDisabled=function(e){e=!!e;var t=this.getGui();return mn(t,e),dn(t,"ag-disabled",e),this.disabled=e,this},t.prototype.isDisabled=function(){return!!this.disabled},t.EVENT_CHANGED="valueChange",t}(Oo),To=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Do=function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},ko=function(e){function t(t,n,r,o){var i=e.call(this,t,'',n)||this;return i.pickerIcon=r,i.isPickerDisplayed=!1,i.isDestroyingPicker=!1,i.skipClick=!1,i}return To(t,e),t.prototype.postConstruct=function(){var t=this;e.prototype.postConstruct.call(this);var n=this.getCompId()+"-display";this.eDisplayField.setAttribute("id",n),ar(this.eWrapper,n);var r=function(){t.skipClick?t.skipClick=!1:t.isDisabled()||(t.pickerComponent=t.showPicker())},o=this.getGui();if(this.addManagedListener(o,"mousedown",(function(e){!t.skipClick&&t.pickerComponent&&t.pickerComponent.isAlive()&&Pn(t.pickerComponent.getGui())&&o.contains(e.target)&&(t.skipClick=!0)})),this.addManagedListener(o,"keydown",(function(e){switch(e.keyCode){case mo.UP:case mo.DOWN:case mo.ENTER:case mo.SPACE:r();case mo.ESCAPE:t.isPickerDisplayed&&e.preventDefault()}})),this.addManagedListener(this.eWrapper,"click",r),this.addManagedListener(this.eLabel,"click",r),this.pickerIcon){var i=Nr(this.pickerIcon,this.gridOptionsWrapper);i&&this.eIcon.appendChild(i)}},t.prototype.refreshLabel=function(){o(this.getLabel())?ir(this.eWrapper,this.getLabelId()):this.eWrapper.removeAttribute("aria-labelledby"),e.prototype.refreshLabel.call(this)},t.prototype.setAriaLabel=function(e){return or(this.eWrapper,e),this},t.prototype.setInputWidth=function(e){return Hn(this.eWrapper,e),this},t.prototype.getFocusableElement=function(){return this.eWrapper},Do([ao("eLabel")],t.prototype,"eLabel",void 0),Do([ao("eWrapper")],t.prototype,"eWrapper",void 0),Do([ao("eDisplayField")],t.prototype,"eDisplayField",void 0),Do([ao("eIcon")],t.prototype,"eIcon",void 0),t}(Po),No=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Mo=function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},Io=function(e){function t(t){void 0===t&&(t="default");var n=e.call(this,'
')||this;return n.cssIdentifier=t,n.options=[],n.itemEls=[],n}return No(t,e),t.prototype.init=function(){this.addManagedListener(this.getGui(),"keydown",this.handleKeyDown.bind(this))},t.prototype.handleKeyDown=function(e){var t=e.keyCode;switch(t){case mo.ENTER:if(this.highlightedEl){var n=this.itemEls.indexOf(this.highlightedEl);this.setValueByIndex(n)}else this.setValue(this.getValue());break;case mo.DOWN:case mo.UP:var r=t===mo.DOWN,o=void 0;if(e.preventDefault(),this.highlightedEl){var i=this.itemEls.indexOf(this.highlightedEl)+(r?1:-1);i=Math.min(Math.max(i,0),this.itemEls.length-1),o=this.itemEls[i]}else o=this.itemEls[r?0:this.itemEls.length-1];this.highlightItem(o)}},t.prototype.addOptions=function(e){var t=this;return e.forEach((function(e){return t.addOption(e)})),this},t.prototype.addOption=function(e){var t=e.value,n=ot(e.text||t);return this.options.push({value:t,text:n}),this.renderOption(t,n),this},t.prototype.renderOption=function(e,t){var n=this,r=document.createElement("div");tr(r,"option"),un(r,"ag-list-item"),un(r,"ag-"+this.cssIdentifier+"-list-item"),r.innerHTML=""+t+"",r.tabIndex=-1,this.itemEls.push(r),this.addManagedListener(r,"mouseover",(function(){return n.highlightItem(r)})),this.addManagedListener(r,"mouseleave",(function(){return n.clearHighlighted()})),this.addManagedListener(r,"click",(function(){return n.setValue(e)})),this.getGui().appendChild(r)},t.prototype.setValue=function(e,t){if(this.value===e)return this.fireItemSelected(),this;if(null==e)return this.reset(),this;var n=_(this.options,(function(t){return t.value===e}));if(-1!==n){var r=this.options[n];this.value=r.value,this.displayValue=null!=r.text?r.text:r.value,this.highlightItem(this.itemEls[n]),t||this.fireChangeEvent()}return this},t.prototype.setValueByIndex=function(e){return this.setValue(this.options[e].value)},t.prototype.getValue=function(){return this.value},t.prototype.getDisplayValue=function(){return this.displayValue},t.prototype.refreshHighlighted=function(){var e=this;this.clearHighlighted();var t=_(this.options,(function(t){return t.value===e.value}));-1!==t&&this.highlightItem(this.itemEls[t])},t.prototype.reset=function(){this.value=null,this.displayValue=null,this.clearHighlighted(),this.fireChangeEvent()},t.prototype.highlightItem=function(e){e.offsetParent&&(this.clearHighlighted(),this.highlightedEl=e,un(this.highlightedEl,t.ACTIVE_CLASS),br(this.highlightedEl,!0),this.highlightedEl.focus())},t.prototype.clearHighlighted=function(){this.highlightedEl&&this.highlightedEl.offsetParent&&(pn(this.highlightedEl,t.ACTIVE_CLASS),br(this.highlightedEl,!1),this.highlightedEl=null)},t.prototype.fireChangeEvent=function(){this.dispatchEvent({type:Po.EVENT_CHANGED}),this.fireItemSelected()},t.prototype.fireItemSelected=function(){this.dispatchEvent({type:t.EVENT_ITEM_SELECTED})},t.EVENT_ITEM_SELECTED="selectedItem",t.ACTIVE_CLASS="ag-active-item",Mo([ce],t.prototype,"init",null),t}(io),Lo=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Fo=function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},Go=function(e){function t(t){return e.call(this,t,"ag-select","smallDown","listbox")||this}return Lo(t,e),t.prototype.init=function(){var e=this;this.listComponent=this.createBean(new Io("select")),this.listComponent.setParentComponent(this),this.eWrapper.tabIndex=0,this.listComponent.addManagedListener(this.listComponent,Io.EVENT_ITEM_SELECTED,(function(){e.hideList&&e.hideList()})),this.listComponent.addManagedListener(this.listComponent,Po.EVENT_CHANGED,(function(){e.setValue(e.listComponent.getValue(),!1,!0),e.hideList&&e.hideList()}))},t.prototype.showPicker=function(){var e=this,t=this.listComponent.getGui(),n=this.addManagedListener(document.body,"wheel",(function(n){!t.contains(n.target)&&e.hideList&&e.hideList()})),r=this.addManagedListener(t,"focusout",(function(n){!t.contains(n.relatedTarget)&&e.hideList&&e.hideList()})),o=this.gridOptionsWrapper.getLocaleTextFunc(),i=this.popupService.addPopup({modal:!0,eChild:t,closeOnEsc:!0,closedCallback:function(){e.hideList=null,e.isPickerDisplayed=!1,r(),n(),e.isAlive()&&e.getFocusableElement().focus()},ariaLabel:o("ariaLabelSelectField","Select Field")});return i&&(this.hideList=i.hideFunc),this.isPickerDisplayed=!0,Hn(t,Sn(this.eWrapper)),t.style.maxHeight=wn(this.popupService.getPopupParent())+"px",t.style.position="absolute",this.popupService.positionPopupUnderComponent({type:"ag-list",eventSource:this.eWrapper,ePopup:t,keepWithinBounds:!0}),this.listComponent.refreshHighlighted(),this.listComponent},t.prototype.addOptions=function(e){var t=this;return e.forEach((function(e){return t.addOption(e)})),this},t.prototype.addOption=function(e){return this.listComponent.addOption(e),this},t.prototype.setValue=function(t,n,r){return this.value===t?this:(r||this.listComponent.setValue(t,!0),this.listComponent.getValue()===this.getValue()?this:(this.eDisplayField.innerHTML=this.listComponent.getDisplayValue(),e.prototype.setValue.call(this,t,n)))},t.prototype.destroy=function(){this.hideList&&this.hideList(),this.destroyBean(this.listComponent),e.prototype.destroy.call(this)},Fo([de("popupService")],t.prototype,"popupService",void 0),Fo([ce],t.prototype,"init",null),t}(ko),Ho=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Wo=function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},Vo=function(e){function t(t,n,r,o){void 0===r&&(r="text"),void 0===o&&(o="input");var i=e.call(this,t,'\n
\n
\n \n
",n)||this;return i.inputType=r,i.displayFieldTag=o,i}return Ho(t,e),t.prototype.postConstruct=function(){e.prototype.postConstruct.call(this),this.setInputType(),un(this.eLabel,this.className+"-label"),un(this.eWrapper,this.className+"-input-wrapper"),un(this.eInput,this.className+"-input"),un(this.getGui(),"ag-input-field"),this.eInput.id=this.eInput.id||"ag-"+this.getCompId()+"-input";var t=this.config,n=t.width,r=t.value;null!=n&&this.setWidth(n),null!=r&&this.setValue(r),this.addInputListeners()},t.prototype.refreshLabel=function(){o(this.getLabel())?ir(this.eInput,this.getLabelId()):this.eInput.removeAttribute("aria-labelledby"),e.prototype.refreshLabel.call(this)},t.prototype.addInputListeners=function(){var e=this;this.addManagedListener(this.eInput,"input",(function(t){return e.setValue(t.target.value)}))},t.prototype.setInputType=function(){"input"===this.displayFieldTag&&this.eInput.setAttribute("type",this.inputType)},t.prototype.getInputElement=function(){return this.eInput},t.prototype.setInputWidth=function(e){return Hn(this.eWrapper,e),this},t.prototype.setInputName=function(e){return this.getInputElement().setAttribute("name",e),this},t.prototype.getFocusableElement=function(){return this.eInput},t.prototype.setMaxLength=function(e){return this.eInput.maxLength=e,this},t.prototype.setInputPlaceholder=function(e){return qn(this.eInput,"placeholder",e),this},t.prototype.setInputAriaLabel=function(e){return or(this.eInput,e),this},t.prototype.setDisabled=function(t){return mn(this.eInput,t),e.prototype.setDisabled.call(this,t)},Wo([ao("eLabel")],t.prototype,"eLabel",void 0),Wo([ao("eWrapper")],t.prototype,"eWrapper",void 0),Wo([ao("eInput")],t.prototype,"eInput",void 0),t}(Po),jo=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Bo=function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a};!function(e){e[e.One=0]="One",e[e.Two=1]="Two"}(lo||(lo={}));var zo,Uo=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return jo(t,e),t.prototype.getNumberOfInputs=function(e){var n=this.optionsFactory.getCustomOption(e);if(n){var r=n.numberOfInputs;return null!=r?r:1}return e===t.EMPTY?0:e===t.IN_RANGE?2:1},t.prototype.onFloatingFilterChanged=function(e,t){this.setTypeFromFloatingFilter(e),this.setValueFromFloatingFilter(t),this.onUiChanged(!0)},t.prototype.setTypeFromFloatingFilter=function(e){this.eType1.setValue(e),this.eType2.setValue(this.optionsFactory.getDefaultOption()),(this.isDefaultOperator("AND")?this.eJoinOperatorAnd:this.eJoinOperatorOr).setValue(!0)},t.prototype.getModelFromUi=function(){return this.isConditionUiComplete(lo.One)?this.isAllowTwoConditions()&&this.isConditionUiComplete(lo.Two)?{filterType:this.getFilterType(),operator:this.getJoinOperator(),condition1:this.createCondition(lo.One),condition2:this.createCondition(lo.Two)}:this.createCondition(lo.One):null},t.prototype.getConditionTypes=function(){return[this.eType1.getValue(),this.eType2.getValue()]},t.prototype.getJoinOperator=function(){return!0===this.eJoinOperatorOr.getValue()?"OR":"AND"},t.prototype.areModelsEqual=function(e,t){if(!e&&!t)return!0;if(!e&&t||e&&!t)return!1;var n,r=!e.operator,o=!t.operator;if(!r&&o||r&&!o)return!1;if(r){var i=e,a=t;n=this.areSimpleModelsEqual(i,a)}else{var s=e,l=t;n=s.operator===l.operator&&this.areSimpleModelsEqual(s.condition1,l.condition1)&&this.areSimpleModelsEqual(s.condition2,l.condition2)}return n},t.prototype.setModelIntoUi=function(e){if(e.operator){var t=e,n="OR"===t.operator;this.eJoinOperatorAnd.setValue(!n),this.eJoinOperatorOr.setValue(n),this.eType1.setValue(t.condition1.type),this.eType2.setValue(t.condition2.type),this.setConditionIntoUi(t.condition1,lo.One),this.setConditionIntoUi(t.condition2,lo.Two)}else{var r=e;this.eJoinOperatorAnd.setValue(this.isDefaultOperator("AND")),this.eJoinOperatorOr.setValue(this.isDefaultOperator("OR")),this.eType1.setValue(r.type),this.eType2.setValue(this.optionsFactory.getDefaultOption()),this.setConditionIntoUi(r,lo.One),this.setConditionIntoUi(null,lo.Two)}return $r.resolve()},t.prototype.doesFilterPass=function(e){var t=this,n=this.getModel();if(null==n)return!0;var r=n.operator,o=[];if(r){var i=n;o.push(i.condition1,i.condition2)}else o.push(n);return(r&&"OR"===r?O:R)(o,(function(n){return t.individualConditionPasses(e,n)}))},t.prototype.setParams=function(t){e.prototype.setParams.call(this,t),this.optionsFactory=new go,this.optionsFactory.init(t,this.getDefaultFilterOptions()),this.allowTwoConditions=!t.suppressAndOrCondition,this.alwaysShowBothConditions=!!t.alwaysShowBothConditions,this.defaultJoinOperator=this.getDefaultJoinOperator(t.defaultJoinOperator),this.putOptionsIntoDropdown(),this.addChangedListeners()},t.prototype.getDefaultJoinOperator=function(e){return S(["AND","OR"],e)?e:"AND"},t.prototype.putOptionsIntoDropdown=function(){var e=this,t=this.optionsFactory.getFilterOptions(),n=[this.eType1,this.eType2];A(t,(function(t){var r="string"===typeof t?e.createBoilerplateListOption(t):e.createCustomListOption(t);A(n,(function(e){return e.addOption(r)}))})),A(n,(function(e){return e.setDisabled(t.length<=1)}))},t.prototype.createBoilerplateListOption=function(e){return{value:e,text:this.translate(e)}},t.prototype.createCustomListOption=function(e){var t=e.displayKey,n=this.optionsFactory.getCustomOption(e.displayKey);return{value:t,text:n?this.gridOptionsWrapper.getLocaleTextFunc()(n.displayKey,n.displayName):this.translate(t)}},t.prototype.isAllowTwoConditions=function(){return this.allowTwoConditions},t.prototype.createBodyTemplate=function(){return'\n \n '+this.createValueTemplate(lo.One)+'\n
\n \n \n
\n \n '+this.createValueTemplate(lo.Two)},t.prototype.getCssIdentifier=function(){return"simple-filter"},t.prototype.updateUiVisibility=function(){var e=this,t=[[this.eType1],[this.eType2,this.eJoinOperatorPanel,this.eJoinOperatorAnd,this.eJoinOperatorOr]],n=[this.eCondition1Body,this.eCondition2Body];A(t,(function(t,n){var r=e.isConditionVisible(n),o=e.isConditionDisabled(n);A(t,(function(e){e instanceof Vo||e instanceof Go?(e.setDisabled(o),e.setDisplayed(r)):(mn(e,o),gn(e,r))}))})),A(n,(function(t,n){gn(t,e.isConditionBodyVisible(n))})),this.forEachInput((function(t,n,r,o){e.setElementDisplayed(t,n1?"inRangeStart":0===r?"filterOoo":"inRangeEnd",s=0===r&&i>1?t("ariaFilterFromValue","Filter from value"):0===r?t("ariaFilterValue","Filter Value"):t("ariaFilterToValue","Filter to Value");n.setInputPlaceholder(e.translate(a)),n.setInputAriaLabel(s)}}))},t.prototype.setElementValue=function(e,t,n){e instanceof Vo&&e.setValue(t?String(t):null,n)},t.prototype.setElementDisplayed=function(e,t){e instanceof io&&gn(e.getGui(),t)},t.prototype.setElementDisabled=function(e,t){e instanceof io&&mn(e.getGui(),t)},t.prototype.attachElementOnChange=function(e,t){e instanceof Vo&&e.onValueChange(t)},t.prototype.forEachInput=function(e){var t=this,n=this.getInputs();this.getConditionTypes().forEach((function(r,o){for(var i=t.getNumberOfInputs(r),a=0;a0},t.prototype.isConditionUiComplete=function(e){return this.getConditionTypes()[e]!==t.EMPTY&&!Xr.some(this.getValues(e),(function(e){return null==e}))},t.prototype.resetUiToDefaults=function(e){var t=this,n=this.gridOptionsWrapper.getLocaleTextFunc()("ariaFilteringOperator","Filtering operator"),r="ag-simple-filter-and-or-"+this.getCompId(),o=this.optionsFactory.getDefaultOption();return this.eType1.setValue(o,e).setAriaLabel(n).setDisabled(this.isReadOnly()),this.eType2.setValue(this.optionsFactory.getDefaultOption(),e).setAriaLabel(n).setDisabled(this.isReadOnly()),this.eJoinOperatorAnd.setValue(this.isDefaultOperator("AND"),e).setName(r).setLabel(this.translate("andCondition")).setDisabled(this.isReadOnly()),this.eJoinOperatorOr.setValue(this.isDefaultOperator("OR"),e).setName(r).setLabel(this.translate("orCondition")).setDisabled(this.isReadOnly()),this.forEachInput((function(n){t.setElementValue(n,null,e),t.setElementDisabled(n,t.isReadOnly())})),this.resetPlaceholder(),$r.resolve()},t.prototype.setConditionIntoUi=function(e,t){var n=this,r=this.mapValuesFromModel(e);this.forEachInput((function(e,o,i,a){i===t&&n.setElementValue(e,r[o]?r[o]:null)}))},t.prototype.setValueFromFloatingFilter=function(e){var t=this;this.forEachInput((function(n,r,o,i){t.setElementValue(n,0===r&&0===o?e:null)}))},t.prototype.isDefaultOperator=function(e){return e===this.defaultJoinOperator},t.prototype.addChangedListeners=function(){var e=this;if(!this.isReadOnly()){var t=function(){return e.onUiChanged()};this.eType1.onValueChange(t),this.eType2.onValueChange(t),this.eJoinOperatorOr.onValueChange(t),this.eJoinOperatorAnd.onValueChange(t),this.forEachInput((function(n){e.attachElementOnChange(n,t)}))}},t.prototype.individualConditionPasses=function(e,t){var n=this.getCellValue(e.node),r=this.mapValuesFromModel(t),o=this.optionsFactory.getCustomOption(t.type),i=this.evaluateCustomFilter(o,r,n);return null!=i?i:null==n?this.evaluateNullValue(t.type):this.evaluateNonNullValue(r,n,t)},t.prototype.evaluateCustomFilter=function(e,t,n){if(null!=e){var r=e.predicate;return null==r||Xr.some(t,(function(e){return null==e}))?void 0:r(t,n)}},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",Bo([ao("eOptions1")],t.prototype,"eType1",void 0),Bo([ao("eOptions2")],t.prototype,"eType2",void 0),Bo([ao("eJoinOperatorPanel")],t.prototype,"eJoinOperatorPanel",void 0),Bo([ao("eJoinOperatorAnd")],t.prototype,"eJoinOperatorAnd",void 0),Bo([ao("eJoinOperatorOr")],t.prototype,"eJoinOperatorOr",void 0),Bo([ao("eCondition1Body")],t.prototype,"eCondition1Body",void 0),Bo([ao("eCondition2Body")],t.prototype,"eCondition2Body",void 0),t}(Eo),Yo=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Xo=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Yo(t,e),t.prototype.setParams=function(t){e.prototype.setParams.call(this,t),this.scalarFilterParams=t,this.checkDeprecatedParams()},t.prototype.checkDeprecatedParams=function(){this.scalarFilterParams.nullComparator&&(console.warn("AG Grid: Since v21.0, the property filterParams.nullComparator is deprecated. Please use filterParams.includeBlanksInEquals, filterParams.includeBlanksInLessThan and filterParams.includeBlanksInGreaterThan instead."),this.scalarFilterParams.includeBlanksInEquals=this.scalarFilterParams.nullComparator.equals,this.scalarFilterParams.includeBlanksInLessThan=this.scalarFilterParams.nullComparator.lessThan,this.scalarFilterParams.includeBlanksInGreaterThan=this.scalarFilterParams.nullComparator.greaterThan)},t.prototype.evaluateNullValue=function(e){switch(e){case t.EQUALS:case t.NOT_EQUAL:if(this.scalarFilterParams.includeBlanksInEquals)return!0;break;case t.GREATER_THAN:case t.GREATER_THAN_OR_EQUAL:if(this.scalarFilterParams.includeBlanksInGreaterThan)return!0;break;case t.LESS_THAN:case t.LESS_THAN_OR_EQUAL:if(this.scalarFilterParams.includeBlanksInLessThan)return!0;break;case t.IN_RANGE:if(this.scalarFilterParams.includeBlanksInRange)return!0}return!1},t.prototype.evaluateNonNullValue=function(e,n,r){var o=this.comparator(),i=o(e[0],n);switch(r.type){case t.EQUALS:return 0===i;case t.NOT_EQUAL:return 0!==i;case t.GREATER_THAN:return i>0;case t.GREATER_THAN_OR_EQUAL:return i>=0;case t.LESS_THAN:return i<0;case t.LESS_THAN_OR_EQUAL:return i<=0;case t.IN_RANGE:var a=o(e[1],n);return this.scalarFilterParams.inRangeInclusive?i>=0&&a<=0:i>0&&a<0;default:return console.warn('AG Grid: Unexpected type of filter "'+r.type+'", it looks like the filter was configured with incorrect Filter Options'),!0}},t}(Uo),qo=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Ko=function(){return Ko=Object.assign||function(e){for(var t,n=1,r=arguments.length;n=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},Qo=1/0,Zo=function(e){function t(){var t=e.call(this,"dateFilter")||this;return t.minValidYear=1e3,t.maxValidYear=Qo,t}return qo(t,e),t.prototype.afterGuiAttached=function(t){e.prototype.afterGuiAttached.call(this,t),this.dateCondition1FromComp.afterGuiAttached(t)},t.prototype.mapValuesFromModel=function(e){var t=e||{},n=t.dateFrom,r=t.dateTo,o=t.type;return[n&&Sr(n)||null,r&&Sr(r)||null].slice(0,this.getNumberOfInputs(o))},t.prototype.comparator=function(){return this.dateFilterParams.comparator?this.dateFilterParams.comparator:this.defaultComparator.bind(this)},t.prototype.defaultComparator=function(e,t){return null==t||te?1:0},t.prototype.setParams=function(t){e.prototype.setParams.call(this,t),this.dateFilterParams=t;var n=function(e,n){if(null!=t[e]){if(!isNaN(t[e]))return null==t[e]?n:Number(t[e]);console.warn("AG Grid: DateFilter "+e+" is not a number")}return n};this.minValidYear=n("minValidYear",1e3),this.maxValidYear=n("maxValidYear",Qo),this.minValidYear>this.maxValidYear&&console.warn("AG Grid: DateFilter minValidYear should be <= maxValidYear"),this.createDateComponents()},t.prototype.createDateComponents=function(){var e=this,t=function(t){return new ho(e.getContext(),e.userComponentFactory,{onDateChanged:function(){return e.onUiChanged()},filterParams:e.dateFilterParams},t)};this.dateCondition1FromComp=t(this.eCondition1PanelFrom),this.dateCondition1ToComp=t(this.eCondition1PanelTo),this.dateCondition2FromComp=t(this.eCondition2PanelFrom),this.dateCondition2ToComp=t(this.eCondition2PanelTo),this.addDestroyFunc((function(){e.forEachInput((function(e){return e.destroy()}))}))},t.prototype.setElementValue=function(e,t,n){e.setDate(t)},t.prototype.setElementDisplayed=function(e,t){e.setDisplayed(t)},t.prototype.setElementDisabled=function(e,t){e.setDisabled(t)},t.prototype.getDefaultFilterOptions=function(){return t.DEFAULT_FILTER_OPTIONS},t.prototype.createValueTemplate=function(e){var t=e===lo.One?"1":"2";return'\n
\n
\n
\n
'},t.prototype.isConditionUiComplete=function(t){var n=this;if(!e.prototype.isConditionUiComplete.call(this,t))return!1;var r=!0;return this.forEachInput((function(e,o,i,a){var s;i!==t||!r||o>=a||(r=r&&(null!=(s=e.getDate())&&s.getUTCFullYear()>=n.minValidYear&&s.getUTCFullYear()<=n.maxValidYear))})),r},t.prototype.areSimpleModelsEqual=function(e,t){return e.dateFrom===t.dateFrom&&e.dateTo===t.dateTo&&e.type===t.type},t.prototype.getFilterType=function(){return"date"},t.prototype.createCondition=function(e){var t=this.getConditionTypes()[e],n={},r=this.getValues(e);return r.length>0&&(n.dateFrom=xr(r[0])),r.length>1&&(n.dateTo=xr(r[1])),Ko({dateFrom:null,dateTo:null,filterType:this.getFilterType(),type:t},n)},t.prototype.resetPlaceholder=function(){var e=this.gridOptionsWrapper.getLocaleTextFunc(),t=this.translate("dateFormatOoo"),n=e("ariaFilterValue","Filter Value");this.forEachInput((function(e){e.setInputPlaceholder(t),e.setInputAriaLabel(n)}))},t.prototype.getInputs=function(){return[[this.dateCondition1FromComp,this.dateCondition1ToComp],[this.dateCondition2FromComp,this.dateCondition2ToComp]]},t.prototype.getValues=function(e){var t=[];return this.forEachInput((function(n,r,o,i){e===o&&r=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},ri=function(e){function t(){return e.call(this,'\n ')||this}return ti(t,e),t.prototype.getDefaultFilterOptions=function(){return Zo.DEFAULT_FILTER_OPTIONS},t.prototype.conditionToString=function(e,t){var n=e.type,r=(t||{}).numberOfInputs,o=n==Uo.IN_RANGE||2===r,i=Sr(e.dateFrom),a=Sr(e.dateTo);return o?xr(i,!1)+"-"+xr(a,!1):null!=i?""+xr(i,!1):""+n},t.prototype.init=function(t){e.prototype.init.call(this,t),this.params=t,this.createDateComponent();var n=this.gridOptionsWrapper.getLocaleTextFunc();this.eReadOnlyText.setDisabled(!0).setInputAriaLabel(n("ariaDateFilterInput","Date Filter Input"))},t.prototype.setEditable=function(e){gn(this.eDateWrapper,e),gn(this.eReadOnlyText.getGui(),!e)},t.prototype.onParentModelChanged=function(t,n){if(!this.isEventFromFloatingFilter(n)){e.prototype.setLastTypeFromModel.call(this,t);var r=!this.isReadOnly()&&this.canWeEditAfterModelFromParentFilter(t);if(this.setEditable(r),r){if(t){var o=t;this.dateComp.setDate(Sr(o.dateFrom))}else this.dateComp.setDate(null);this.eReadOnlyText.setValue("")}else this.eReadOnlyText.setValue(this.getTextFromModel(t)),this.dateComp.setDate(null)}},t.prototype.onDateChanged=function(){var e=this,t=xr(this.dateComp.getDate());this.params.parentFilterInstance((function(n){n&&n.onFloatingFilterChanged(e.getLastType(),Sr(t))}))},t.prototype.createDateComponent=function(){var e=this,t=Eo.getDebounceMs(this.params.filterParams,this.getDefaultDebounceMs()),n={onDateChanged:re(this.onDateChanged.bind(this),t),filterParams:this.params.column.getColDef().filterParams};this.dateComp=new ho(this.getContext(),this.userComponentFactory,n,this.eDateWrapper),this.addDestroyFunc((function(){return e.dateComp.destroy()}))},ni([de("userComponentFactory")],t.prototype,"userComponentFactory",void 0),ni([ao("eReadOnlyText")],t.prototype,"eReadOnlyText",void 0),ni([ao("eDateWrapper")],t.prototype,"eDateWrapper",void 0),t}(ei),oi=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),ii=function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},ai=function(e){function t(){return e.call(this,'\n
\n \n
')||this}return oi(t,e),t.prototype.destroy=function(){e.prototype.destroy.call(this)},t.prototype.init=function(e){var t=this,n=this.eDateInput.getInputElement();this.shouldUseBrowserDatePicker(e)&&(qt()?console.warn("ag-grid: browserDatePicker is specified to true, but it is not supported in IE 11; reverting to text date picker"):n.type="date"),this.addManagedListener(n,"mousedown",(function(){t.eDateInput.isDisabled()||n.focus()})),this.addManagedListener(n,"input",(function(n){n.target===document.activeElement&&(t.eDateInput.isDisabled()||e.onDateChanged())}));var r=e.filterParams||{},o=r.minValidYear,i=r.maxValidYear;o&&(n.min=o+"-01-01"),i&&(n.max=i+"-12-31")},t.prototype.getDate=function(){return Sr(this.eDateInput.getValue())},t.prototype.setDate=function(e){this.eDateInput.setValue(xr(e,!1))},t.prototype.setInputPlaceholder=function(e){this.eDateInput.setInputPlaceholder(e)},t.prototype.setDisabled=function(e){this.eDateInput.setDisabled(e)},t.prototype.afterGuiAttached=function(e){e&&e.suppressFocus||this.eDateInput.getInputElement().focus()},t.prototype.shouldUseBrowserDatePicker=function(e){return e.filterParams&&null!=e.filterParams.browserDatePicker?e.filterParams.browserDatePicker:Qt()||Zt()},ii([ao("eDateInput")],t.prototype,"eDateInput",void 0),t}(io),si=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),li=function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},ci=function(e){function t(){return e.call(this,"numberFilter")||this}return si(t,e),t.prototype.mapValuesFromModel=function(e){var t=e||{},n=t.filter,r=t.filterTo,o=t.type;return[n||null,r||null].slice(0,this.getNumberOfInputs(o))},t.prototype.getDefaultDebounceMs=function(){return 500},t.prototype.comparator=function(){return function(e,t){return e===t?0:e\n <'+n+' class="ag-filter-from ag-filter-filter" ref="eValue-index0-'+t+'">\n <"+n+' class="ag-filter-to ag-filter-filter" ref="eValue-index1-'+t+'">\n "},t.prototype.getValues=function(e){var t=this,n=[];return this.forEachInput((function(r,o,i,a){e===i&&o0&&(n.filter=r[0]),r.length>1&&(n.filterTo=r[1]),n},t.prototype.getInputs=function(){return[[this.eValueFrom1,this.eValueTo1],[this.eValueFrom2,this.eValueTo2]]},t.prototype.getAllowedCharPattern=function(){var e=(this.numberFilterParams||{}).allowedCharPattern;return e||(Qt()||Kt()?null:"\\d\\-\\.")},t.DEFAULT_FILTER_OPTIONS=[Xo.EQUALS,Xo.NOT_EQUAL,Xo.LESS_THAN,Xo.LESS_THAN_OR_EQUAL,Xo.GREATER_THAN,Xo.GREATER_THAN_OR_EQUAL,Xo.IN_RANGE],li([ao("eValue-index0-1")],t.prototype,"eValueFrom1",void 0),li([ao("eValue-index1-1")],t.prototype,"eValueTo1",void 0),li([ao("eValue-index0-2")],t.prototype,"eValueFrom2",void 0),li([ao("eValue-index1-2")],t.prototype,"eValueTo2",void 0),t}(Xo),ui=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),pi=function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},di=function(e){function t(){return e.call(this,"textFilter")||this}return ui(t,e),t.trimInput=function(e){var t=e&&e.trim();return""===t?e:t},t.prototype.getDefaultDebounceMs=function(){return 500},t.prototype.setParams=function(n){e.prototype.setParams.call(this,n),this.textFilterParams=n,this.comparator=this.textFilterParams.textCustomComparator||t.DEFAULT_COMPARATOR,this.formatter=this.textFilterParams.textFormatter||(this.textFilterParams.caseSensitive?t.DEFAULT_FORMATTER:t.DEFAULT_LOWERCASE_FORMATTER)},t.prototype.createCondition=function(e){var t=this.getConditionTypes()[e],n={filterType:this.getFilterType(),type:t},r=this.getValues(e);return r.length>0&&(n.filter=r[0]),r.length>1&&(n.filterTo=r[1]),n},t.prototype.getFilterType=function(){return"text"},t.prototype.areSimpleModelsEqual=function(e,t){return e.filter===t.filter&&e.filterTo===t.filterTo&&e.type===t.type},t.prototype.getInputs=function(){return[[this.eValueFrom1,this.eValueTo1],[this.eValueFrom2,this.eValueTo2]]},t.prototype.getValues=function(e){var n=this,o=[];return this.forEachInput((function(i,a,s,l){if(e===s&&a\n \n \n '},t.prototype.mapValuesFromModel=function(e){var t=e||{},n=t.filter,r=t.filterTo,o=t.type;return[n||null,r||null].slice(0,this.getNumberOfInputs(o))},t.prototype.evaluateNullValue=function(e){return e===Uo.NOT_EQUAL||e===Uo.NOT_CONTAINS},t.prototype.evaluateNonNullValue=function(e,t,n){var r=this,o=Xr.map(e,(function(e){return r.formatter(e)}))||[],i=this.formatter(t);return Xr.some(o,(function(e){return r.comparator(n.type,i,e)}))},t.DEFAULT_FILTER_OPTIONS=[Uo.CONTAINS,Uo.NOT_CONTAINS,Uo.EQUALS,Uo.NOT_EQUAL,Uo.STARTS_WITH,Uo.ENDS_WITH],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,n,r){switch(e){case t.CONTAINS:return n.indexOf(r)>=0;case t.NOT_CONTAINS:return n.indexOf(r)<0;case t.EQUALS:return n===r;case t.NOT_EQUAL:return n!=r;case t.STARTS_WITH:return 0===n.indexOf(r);case t.ENDS_WITH:var o=n.lastIndexOf(r);return o>=0&&o===n.length-r.length;default:return!1}},pi([ao("eValue-index0-1")],t.prototype,"eValueFrom1",void 0),pi([ao("eValue-index1-1")],t.prototype,"eValueTo1",void 0),pi([ao("eValue-index0-2")],t.prototype,"eValueFrom2",void 0),pi([ao("eValue-index1-2")],t.prototype,"eValueTo2",void 0),t}(Uo),hi=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),fi=function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},gi=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return hi(t,e),t.prototype.postConstruct=function(){this.setTemplate('\n ')},t.prototype.getDefaultDebounceMs=function(){return 500},t.prototype.onParentModelChanged=function(e,t){this.isEventFromFloatingFilter(t)||(this.setLastTypeFromModel(e),this.eFloatingFilterInput.setValue(this.getTextFromModel(e)),this.setEditable(this.canWeEditAfterModelFromParentFilter(e)))},t.prototype.init=function(t){if(e.prototype.init.call(this,t),this.params=t,this.applyActive=Eo.isUseApplyButton(this.params.filterParams),!this.isReadOnly()){var n=Eo.getDebounceMs(this.params.filterParams,this.getDefaultDebounceMs()),r=re(this.syncUpWithParentFilter.bind(this),n),o=this.eFloatingFilterInput.getGui();this.addManagedListener(o,"input",r),this.addManagedListener(o,"keypress",r),this.addManagedListener(o,"keydown",r)}var i=t.column.getDefinition();(this.isReadOnly()||i.filterParams&&i.filterParams.filterOptions&&1===i.filterParams.filterOptions.length&&"inRange"===i.filterParams.filterOptions[0])&&this.eFloatingFilterInput.setDisabled(!0);var a=this.columnModel.getDisplayNameForColumn(t.column,"header",!0),s=this.gridOptionsWrapper.getLocaleTextFunc();this.eFloatingFilterInput.setInputAriaLabel(a+" "+s("ariaFilterInput","Filter Input"))},t.prototype.syncUpWithParentFilter=function(e){var t=this,n=Ir(e,mo.ENTER);if(!this.applyActive||n){var r=this.eFloatingFilterInput.getValue();this.params.filterParams.trimInput&&(r=di.trimInput(r),this.eFloatingFilterInput.setValue(r,!0)),this.params.parentFilterInstance((function(e){e&&e.onFloatingFilterChanged(t.getLastType(),r||null)}))}},t.prototype.conditionToString=function(e,t){var n=(t||{}).numberOfInputs;return e.type==Uo.IN_RANGE||2===n?e.filter+"-"+e.filterTo:null!=e.filter?""+e.filter:""+e.type},t.prototype.setEditable=function(e){this.eFloatingFilterInput.setDisabled(!e)},fi([de("columnModel")],t.prototype,"columnModel",void 0),fi([ao("eFloatingFilterInput")],t.prototype,"eFloatingFilterInput",void 0),fi([ce],t.prototype,"postConstruct",null),t}(ei),vi=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),mi=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return vi(t,e),t.prototype.getDefaultFilterOptions=function(){return ci.DEFAULT_FILTER_OPTIONS},t}(gi),yi=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),bi=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return yi(t,e),t.prototype.getDefaultFilterOptions=function(){return di.DEFAULT_FILTER_OPTIONS},t}(gi),wi=function(){function e(e,t){var n=this;void 0===t&&(t=!1),this.destroyFuncs=[],this.touching=!1,this.eventService=new we,this.eElement=e,this.preventMouseClick=t;var r=this.onTouchStart.bind(this),o=this.onTouchMove.bind(this),i=this.onTouchEnd.bind(this);this.eElement.addEventListener("touchstart",r,{passive:!0}),this.eElement.addEventListener("touchmove",o,{passive:!0}),this.eElement.addEventListener("touchend",i,{passive:!1}),this.destroyFuncs.push((function(){n.eElement.removeEventListener("touchstart",r,{passive:!0}),n.eElement.removeEventListener("touchmove",o,{passive:!0}),n.eElement.removeEventListener("touchend",i,{passive:!1})}))}return e.prototype.getActiveTouch=function(e){for(var t=0;t0)if(t-this.lastTapTime>e.DOUBLE_TAP_MILLIS){var n={type:e.EVENT_DOUBLE_TAP,touchStart:this.touchStart};this.eventService.dispatchEvent(n),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}(),Ci=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),xi=function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},Si=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.lastMovingChanged=0,t}return Ci(t,e),t.prototype.destroy=function(){e.prototype.destroy.call(this)},t.prototype.refresh=function(e){return this.params=e,this.workOutTemplate()==this.currentTemplate&&(this.workOutShowMenu()==this.currentShowMenu&&(this.workOutSort()==this.currentSort&&(this.setDisplayName(e),!0)))},t.prototype.workOutTemplate=function(){var e=g(this.params.template,t.TEMPLATE);return e=e&&e.trim?e.trim():e},t.prototype.init=function(e){this.params=e,this.currentTemplate=this.workOutTemplate(),this.setTemplate(this.currentTemplate),this.setupTap(),this.setupIcons(e.column),this.setMenu(),this.setupSort(),this.setupFilterIcon(),this.setDisplayName(e)},t.prototype.setDisplayName=function(e){if(this.currentDisplayName!=e.displayName){this.currentDisplayName=e.displayName;var t=ot(this.currentDisplayName);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,n){if(null!=t){var r=Nr(e,this.gridOptionsWrapper,n);r&&t.appendChild(r)}},t.prototype.setupTap=function(){var e=this,t=this.gridOptionsWrapper;if(!t.isSuppressTouch()){var n=new wi(this.getGui(),!0),r=t.isSuppressMenuHide(),i=r&&o(this.eMenu),a=i?new wi(this.eMenu,!0):n;if(this.params.enableMenu){var s=i?"EVENT_TAP":"EVENT_LONG_TAP";this.addManagedListener(a,wi[s],(function(n){t.getApi().showColumnMenuAfterMouseClick(e.params.column,n.touchStart)}))}if(this.params.enableSorting){this.addManagedListener(n,wi.EVENT_TAP,(function(t){var n=t.touchStart.target;r&&e.eMenu.contains(n)||e.sortController.progressSort(e.params.column,!1,"uiColumnSorted")}))}this.addDestroyFunc((function(){return n.destroy()})),i&&this.addDestroyFunc((function(){return a.destroy()}))}},t.prototype.workOutShowMenu=function(){var e=!this.gridOptionsWrapper.isSuppressMenuHide(),t=Jt()&&e;return this.params.enableMenu&&!t},t.prototype.setMenu=function(){var e=this;if(this.eMenu)if(this.currentShowMenu=this.workOutShowMenu(),this.currentShowMenu){var t=this.gridOptionsWrapper.isSuppressMenuHide();this.addManagedListener(this.eMenu,"click",(function(){return e.showMenu(e.eMenu)})),dn(this.eMenu,"ag-header-menu-always-show",t)}else An(this.eMenu)},t.prototype.showMenu=function(e){e||(e=this.eMenu),this.menuFactory.showMenuAfterButtonClick(this.params.column,e,"columnMenu")},t.prototype.removeSortIcons=function(){An(this.eSortAsc),An(this.eSortDesc),An(this.eSortNone),An(this.eSortOrder)},t.prototype.workOutSort=function(){return this.params.enableSorting},t.prototype.setupSort=function(){var e=this;if(this.currentSort=this.params.enableSorting,this.currentSort){var t=this.gridOptionsWrapper.isMultiSortKeyCtrl();this.addManagedListener(this.params.column,_e.EVENT_MOVING_CHANGED,(function(){e.lastMovingChanged=(new Date).getTime()})),this.eLabel&&this.addManagedListener(this.eLabel,"click",(function(n){var r=e.params.column.isMoving(),o=(new Date).getTime()-e.lastMovingChanged<50;if(!(r||o)){var i=t?n.ctrlKey||n.metaKey:n.shiftKey;e.params.progressSort(i)}})),this.addManagedListener(this.params.column,_e.EVENT_SORT_CHANGED,this.onSortChanged.bind(this)),this.onSortChanged(),this.addManagedListener(this.eventService,Ke.EVENT_SORT_CHANGED,this.setMultiSortOrder.bind(this)),this.setMultiSortOrder()}else this.removeSortIcons()},t.prototype.onSortChanged=function(){if(dn(this.getGui(),"ag-header-cell-sorted-asc",this.params.column.isSortAscending()),dn(this.getGui(),"ag-header-cell-sorted-desc",this.params.column.isSortDescending()),dn(this.getGui(),"ag-header-cell-sorted-none",this.params.column.isSortNone()),this.eSortAsc&&dn(this.eSortAsc,"ag-hidden",!this.params.column.isSortAscending()),this.eSortDesc&&dn(this.eSortDesc,"ag-hidden",!this.params.column.isSortDescending()),this.eSortNone){var e=!this.params.column.getColDef().unSortIcon&&!this.gridOptionsWrapper.isUnSortIcon();dn(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(),n=t.indexOf(e),r=t.length>1,o=e.isSorting()&&r;gn(this.eSortOrder,o),n>=0?this.eSortOrder.innerHTML=(n+1).toString():On(this.eSortOrder)}},t.prototype.setupFilterIcon=function(){this.eFilter&&(this.addManagedListener(this.params.column,_e.EVENT_FILTER_CHANGED,this.onFilterChanged.bind(this)),this.onFilterChanged())},t.prototype.onFilterChanged=function(){var e=this.params.column.isFilterActive();dn(this.eFilter,"ag-hidden",!e)},t.TEMPLATE='',xi([de("sortController")],t.prototype,"sortController",void 0),xi([de("menuFactory")],t.prototype,"menuFactory",void 0),xi([ao("eFilter")],t.prototype,"eFilter",void 0),xi([ao("eSortAsc")],t.prototype,"eSortAsc",void 0),xi([ao("eSortDesc")],t.prototype,"eSortDesc",void 0),xi([ao("eSortNone")],t.prototype,"eSortNone",void 0),xi([ao("eSortOrder")],t.prototype,"eSortOrder",void 0),xi([ao("eMenu")],t.prototype,"eMenu",void 0),xi([ao("eLabel")],t.prototype,"eLabel",void 0),xi([ao("eText")],t.prototype,"eText",void 0),t}(io),Ei=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),_i=function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},Ri=function(e){function t(){return e.call(this,t.TEMPLATE)||this}return Ei(t,e),t.prototype.destroy=function(){e.prototype.destroy.call(this)},t.prototype.init=function(e){this.params=e,this.checkWarnings(),this.setupLabel(),this.addGroupExpandIcon(),this.setupExpandIcons()},t.prototype.checkWarnings=function(){if(this.params.template){K((function(){return console.warn("A template was provided for Header Group Comp - templates are only supported for Header Comps (not groups)")}),"HeaderGroupComp.templateNotSupported")}},t.prototype.setupExpandIcons=function(){var e=this;this.addInIcon("columnGroupOpened","agOpened"),this.addInIcon("columnGroupClosed","agClosed");var t=function(t){if(!Me(t)){var n=!e.params.columnGroup.isExpanded();e.columnModel.setColumnGroupOpened(e.params.columnGroup.getOriginalColumnGroup(),n,"uiColumnExpanded")}};this.addTouchAndClickListeners(this.eCloseIcon,t),this.addTouchAndClickListeners(this.eOpenIcon,t);var n=function(e){Ne(e)};this.addManagedListener(this.eCloseIcon,"dblclick",n),this.addManagedListener(this.eOpenIcon,"dblclick",n),this.addManagedListener(this.getGui(),"dblclick",t),this.updateIconVisibility();var r=this.params.columnGroup.getOriginalColumnGroup();this.addManagedListener(r,Ae.EVENT_EXPANDED_CHANGED,this.updateIconVisibility.bind(this)),this.addManagedListener(r,Ae.EVENT_EXPANDABLE_CHANGED,this.updateIconVisibility.bind(this))},t.prototype.addTouchAndClickListeners=function(e,t){var n=new wi(e,!0);this.addManagedListener(n,wi.EVENT_TAP,t),this.addDestroyFunc((function(){return n.destroy()})),this.addManagedListener(e,"click",t)},t.prototype.updateIconVisibility=function(){if(this.params.columnGroup.isExpandable()){var e=this.params.columnGroup.isExpanded();gn(this.eOpenIcon,e),gn(this.eCloseIcon,!e)}else gn(this.eOpenIcon,!1),gn(this.eCloseIcon,!1)},t.prototype.addInIcon=function(e,t){var n=Nr(e,this.gridOptionsWrapper,null);n&&this.getRefElement(t).appendChild(n)},t.prototype.addGroupExpandIcon=function(){if(!this.params.columnGroup.isExpandable())return gn(this.eOpenIcon,!1),void gn(this.eCloseIcon,!1)},t.prototype.setupLabel=function(){var e=this.params.displayName;if(o(e)){var t=ot(e);this.getRefElement("agLabel").innerHTML=t}},t.TEMPLATE='',_i([de("columnModel")],t.prototype,"columnModel",void 0),_i([ao("agOpened")],t.prototype,"eOpenIcon",void 0),_i([ao("agClosed")],t.prototype,"eCloseIcon",void 0),t}(io),Oi=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Ai=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Oi(t,e),t.prototype.isPopup=function(){return!0},t.prototype.setParentComponent=function(t){un(t.getGui(),"ag-has-popup"),e.prototype.setParentComponent.call(this,t)},t.prototype.destroy=function(){var t=this.parentComponent;t&&t.isAlive()&&pn(t.getGui(),"ag-has-popup"),e.prototype.destroy.call(this)},t}(io),Pi=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Ti=function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},Di=function(e){function t(){return e.call(this,t.TEMPLATE)||this}return Pi(t,e),t.prototype.init=function(e){this.params=e,this.focusAfterAttached=e.cellStartedEdit,this.eTextArea.setMaxLength(e.maxLength||200).setCols(e.cols||60).setRows(e.rows||10),o(e.value)&&this.eTextArea.setValue(e.value.toString(),!0),this.addGuiEventListener("keydown",this.onKeyDown.bind(this))},t.prototype.onKeyDown=function(e){var t=e.which||e.keyCode;(t===mo.LEFT||t===mo.UP||t===mo.RIGHT||t===mo.DOWN||e.shiftKey&&t===mo.ENTER)&&e.stopPropagation()},t.prototype.afterGuiAttached=function(){var e=this.gridOptionsWrapper.getLocaleTextFunc();this.eTextArea.setInputAriaLabel(e("ariaInputEditor","Input Editor")),this.focusAfterAttached&&this.eTextArea.getFocusableElement().focus()},t.prototype.getValue=function(){return this.params.parseValue(this.eTextArea.getValue())},t.TEMPLATE='
\n \n
',Ti([ao("eTextArea")],t.prototype,"eTextArea",void 0),t}(Ai),ki=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Ni=function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},Mi=function(e){function t(){var t=e.call(this,'
')||this;return t.startedByEnter=!1,t}return ki(t,e),t.prototype.init=function(e){var t=this;if(this.focusAfterAttached=e.cellStartedEdit,i(e.values))console.warn("AG Grid: no values found for select cellEditor");else{this.startedByEnter=e.keyPress===mo.ENTER;var n=!1;e.values.forEach((function(r){var o={value:r},i=t.valueFormatterService.formatValue(e.column,null,null,r),a=null!==i&&void 0!==i;o.text=a?i:r,t.eSelect.addOption(o),n=n||e.value===r})),n?this.eSelect.setValue(e.value,!0):e.values.length&&this.eSelect.setValue(e.values[0],!0),this.gridOptionsWrapper.isFullRowEdit()||this.eSelect.onValueChange((function(){return e.stopEditing()}))}},t.prototype.afterGuiAttached=function(){this.focusAfterAttached&&this.eSelect.getFocusableElement().focus(),this.startedByEnter&&this.eSelect.showPicker()},t.prototype.focusIn=function(){this.eSelect.getFocusableElement().focus()},t.prototype.getValue=function(){return this.eSelect.getValue()},t.prototype.isPopup=function(){return!1},Ni([de("valueFormatterService")],t.prototype,"valueFormatterService",void 0),Ni([ao("eSelect")],t.prototype,"eSelect",void 0),t}(Ai),Ii=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Li=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Ii(t,e),t.prototype.isPopup=function(){return!0},t}(Mi),Fi=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Gi=function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},Hi=function(e){function t(){return e.call(this,t.TEMPLATE)||this}return Fi(t,e),t.prototype.init=function(e){this.params=e;var t,n=this.eInput;e.cellStartedEdit?(this.focusAfterAttached=!0,e.keyPress===mo.BACKSPACE||e.keyPress===mo.DELETE?t="":e.charPress?t=e.charPress:(t=this.getStartValue(e),e.keyPress!==mo.F2&&(this.highlightAllOnFocus=!0))):(this.focusAfterAttached=!1,t=this.getStartValue(e)),null!=t&&n.setValue(t,!0),this.addManagedListener(n.getGui(),"keydown",(function(e){var t=e.keyCode;t!==mo.PAGE_UP&&t!==mo.PAGE_DOWN||e.preventDefault()}))},t.prototype.afterGuiAttached=function(){var e=this.gridOptionsWrapper.getLocaleTextFunc(),t=this.eInput;if(t.setInputAriaLabel(e("ariaInputEditor","Input Editor")),this.focusAfterAttached){$t()||t.getFocusableElement().focus();var n=t.getInputElement();if(this.highlightAllOnFocus)n.select();else{var r=t.getValue(),i=o(r)&&r.length||0;i&&n.setSelectionRange(i,i)}}},t.prototype.focusIn=function(){var e=this.eInput,t=e.getFocusableElement(),n=e.getInputElement();t.focus(),n.select()},t.prototype.focusOut=function(){var e=this.eInput.getInputElement();qt()&&e.setSelectionRange(0,0)},t.prototype.getValue=function(){var e=this.eInput;return this.params.parseValue(e.getValue())},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='
',Gi([ao("eInput")],t.prototype,"eInput",void 0),t}(Ai),Wi=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Vi=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Wi(t,e),t.prototype.isPopup=function(){return!0},t}(Hi),ji=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Bi=function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},zi=function(e){function t(){var n=e.call(this,t.TEMPLATE)||this;return n.refreshCount=0,n}return ji(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 n=Math.abs(t),r=e.formatValue(n),i=o(r)?r:n,a=t>=0;this.eDelta.innerHTML=a?"\u2191"+i:"\u2193"+i,dn(this.eDelta,"ag-value-change-delta-up",a),dn(this.eDelta,"ag-value-change-delta-down",!a)},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(){pn(this.eValue,"ag-value-change-value-highlight"),On(this.eDelta)},t.prototype.refresh=function(e){var t=e.value;if(t===this.lastValue)return!1;if(o(e.valueFormatted)?this.eValue.innerHTML=e.valueFormatted:o(e.value)?this.eValue.innerHTML=t:On(this.eValue),this.filterManager.isSuppressFlashingCellsBecauseFiltering())return!1;if("number"===typeof t&&"number"===typeof this.lastValue){var n=t-this.lastValue;this.showDelta(e,n)}return this.lastValue&&un(this.eValue,"ag-value-change-value-highlight"),this.setTimerToRemoveDelta(),this.lastValue=t,!0},t.TEMPLATE='',Bi([de("filterManager")],t.prototype,"filterManager",void 0),t}(io),Ui=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Yi=function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},Xi=function(e){function t(){var n=e.call(this,t.TEMPLATE)||this;return n.refreshCount=0,n.eCurrent=n.queryForHtmlElement(".ag-value-slide-current"),n}return Ui(t,e),t.prototype.init=function(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=Tn(''),this.ePrevious.innerHTML=this.eCurrent.innerHTML,this.getGui().insertBefore(this.ePrevious,this.eCurrent),window.setTimeout((function(){t===e.refreshCount&&un(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;return i(t)&&(t=""),t!==this.lastValue&&(!this.filterManager.isSuppressFlashingCellsBecauseFiltering()&&(this.addSlideAnimation(),this.lastValue=t,o(e.valueFormatted)?this.eCurrent.innerHTML=e.valueFormatted:o(e.value)?this.eCurrent.innerHTML=t:On(this.eCurrent),!0))},t.TEMPLATE='\n \n ',Yi([de("filterManager")],t.prototype,"filterManager",void 0),t}(io);(zo=t.RowHighlightPosition||(t.RowHighlightPosition={}))[zo.Above=0]="Above",zo[zo.Below=1]="Below";var qi,Ki,$i,Qi=function(){function e(t){this.rowIndex=null,this.key=null,this.childrenMapped={},this.displayed=!1,this.rowTop=null,this.oldRowTop=null,this.selectable=!0,this.__objectId=e.OBJECT_ID_SEQUENCE++,this.__autoHeights={},this.alreadyRendered=!1,this.highlighted=null,this.selected=!1,this.beans=t}return e.prototype.setData=function(e){this.setDataCommon(e,!1)},e.prototype.updateData=function(e){this.setDataCommon(e,!0)},e.prototype.setDataCommon=function(e,t){var n=this.data;this.data=e,this.beans.valueCache.onDataChanged(),this.updateDataOnDetailNode(),this.checkRowSelectable();var r=this.createDataChangedEvent(e,n,t);this.dispatchLocalEvent(r)},e.prototype.updateDataOnDetailNode=function(){this.detailNode&&(this.detailNode.data=this.data)},e.prototype.createDataChangedEvent=function(t,n,r){return{type:e.EVENT_DATA_CHANGED,node:this,oldData:n,newData:t,update:r}},e.prototype.createLocalRowEvent=function(e){return{type:e,node:this}},e.prototype.getRowIndexString=function(){return this.rowPinned===Ce.PINNED_TOP?"t-"+this.rowIndex:this.rowPinned===Ce.PINNED_BOTTOM?"b-"+this.rowIndex:this.rowIndex.toString()},e.prototype.createDaemonNode=function(){var t=new e(this.beans);return 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 n=o(this.id)?this.createDaemonNode():null,r=this.data;this.data=e,this.updateDataOnDetailNode(),this.setId(t),this.beans.selectionService.syncInRowNode(this,n),this.checkRowSelectable();var i=this.createDataChangedEvent(e,r,!1);this.dispatchLocalEvent(i)},e.prototype.checkRowSelectable=function(){var e=this.beans.gridOptionsWrapper.getIsRowSelectableFunc();this.setRowSelectable(!e||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(t){var n=this.beans.gridOptionsWrapper.getRowNodeIdFunc();n?this.data?(this.id=n(this.data),this.id&&"string"===typeof this.id&&at(this.id,e.ID_PREFIX_ROW_GROUP)&&console.error("AG Grid: Row ID's cannot start with "+e.ID_PREFIX_ROW_GROUP+", this is a reserved prefix for AG Grid's row grouping feature."),this.id&&"string"!==typeof this.id&&(this.id=""+this.id)):this.id=void 0:this.id=t},e.prototype.isPixelInRange=function(e){return!(!o(this.rowTop)||!o(this.rowHeight))&&(e>=this.rowTop&&en&&(n=i)):e=!0})),!e&&((t||n<10)&&(n=this.beans.gridOptionsWrapper.getRowHeightForNode(this).height),n!=this.rowHeight))){this.setRowHeight(n);var o=this.beans.rowModel;o.onRowHeightChanged&&o.onRowHeightChanged()}},e.prototype.setRowIndex=function(t){this.rowIndex!==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 n=V({},this.createGlobalRowEvent(Ke.EVENT_ROW_GROUP_OPENED),{expanded:t});this.beans.rowNodeEventThrottle.dispatchExpanded(n),this.beans.gridOptionsWrapper.isGroupIncludeFooter()&&this.beans.rowRenderer.refreshCells({rowNodes:[this]})}},e.prototype.createGlobalRowEvent=function(e){return{type:e,node:this,data:this.data,rowIndex:this.rowIndex,rowPinned:this.rowPinned,context:this.beans.gridOptionsWrapper.getContext(),api:this.beans.gridOptionsWrapper.getApi(),columnApi:this.beans.gridOptionsWrapper.getColumnApi()}},e.prototype.dispatchLocalEvent=function(e){this.eventService&&this.eventService.dispatchEvent(e)},e.prototype.setDataValue=function(e,t,n){var r=this.beans.columnModel.getPrimaryColumn(e),o=this.beans.valueService.getValue(r,this);this.beans.valueService.setValue(this,r,t,n),this.dispatchCellChangedEvent(r,t,o)},e.prototype.setGroupValue=function(e,t){var n=this.beans.columnModel.getGridColumn(e);i(this.groupData)&&(this.groupData={});var r=n.getColId(),o=this.groupData[r];o!==t&&(this.groupData[r]=t,this.dispatchCellChangedEvent(n,t,o))},e.prototype.setAggData=function(e){var t=this,n=G([this.aggData,e]),r=this.aggData;this.aggData=e,this.eventService&&n.forEach((function(e){var n=t.beans.columnModel.getGridColumn(e),o=t.aggData?t.aggData[e]:void 0,i=r?r[e]:void 0;t.dispatchCellChangedEvent(n,o,i)}))},e.prototype.updateHasChildren=function(){var t=this.group&&!this.footer||this.childrenAfterGroup&&this.childrenAfterGroup.length>0;t!==this.__hasChildren&&(this.__hasChildren=!!t,this.eventService&&this.eventService.dispatchEvent(this.createLocalRowEvent(e.EVENT_HAS_CHILDREN_CHANGED)))},e.prototype.hasChildren=function(){return null==this.__hasChildren&&this.updateHasChildren(),this.__hasChildren},e.prototype.isEmptyRowGroupNode=function(){return this.group&&a(this.childrenAfterGroup)},e.prototype.dispatchCellChangedEvent=function(t,n,r){var o={type:e.EVENT_CELL_CHANGED,node:this,column:t,newValue:n,oldValue:r};this.dispatchLocalEvent(o)},e.prototype.resetQuickFilterAggregateText=function(){this.quickFilterAggregateText=null},e.prototype.isExpandable=function(){return!!(this.hasChildren()&&!this.footer||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,n=!1,r=!1;if(this.childrenAfterGroup)for(var o=0;o0){this.beans.selectionService.updateGroupsFromChildrenSelections();var p={type:Ke.EVENT_SELECTION_CHANGED,api:this.beans.gridApi,columnApi:this.beans.columnApi};this.beans.eventService.dispatchEvent(p)}n&&this.beans.selectionService.setLastSelectedNode(this)}return u},e.prototype.doRowRangeSelection=function(e){var t=this;void 0===e&&(e=!0);var n=this.beans.gridOptionsWrapper.isGroupSelectsChildren(),r=this.beans.selectionService.getLastSelectedNode(),o=this.beans.rowModel.getNodesInRangeForSelection(this,r),i=0;o.forEach((function(r){r.group&&n||!1===e&&t===r||r.selectThisNode(e)&&i++})),this.beans.selectionService.updateGroupsFromChildrenSelections();var a={type:Ke.EVENT_SELECTION_CHANGED,api:this.beans.gridApi,columnApi:this.beans.columnApi};return this.beans.eventService.dispatchEvent(a),i},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){var n=!this.selectable&&t,r=this.selected===t;if(n||r)return!1;this.selected=t,this.eventService&&this.dispatchLocalEvent(this.createLocalRowEvent(e.EVENT_ROW_SELECTED));var o=this.createGlobalRowEvent(Ke.EVENT_ROW_SELECTED);return this.beans.eventService.dispatchEvent(o),!0},e.prototype.selectChildNodes=function(e,t){var n=t?this.childrenAfterFilter:this.childrenAfterGroup;if(i(n))return 0;for(var r=0,o=0;o=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},ea=function(e){function t(){return e.call(this,'\n ')||this}return Zi(t,e),t.prototype.postConstruct=function(){this.eCheckbox.setPassive(!0)},t.prototype.getCheckboxId=function(){return this.eCheckbox.getInputElement().id},t.prototype.onDataChanged=function(){this.onSelectionChanged()},t.prototype.onSelectableChanged=function(){this.showOrHideSelect()},t.prototype.onSelectionChanged=function(){var e=this.gridOptionsWrapper.getLocaleTextFunc(),t=this.rowNode.isSelected(),n=void 0===t?e("ariaIndeterminate","indeterminate"):!0===t?e("ariaChecked","checked"):e("ariaUnchecked","unchecked"),r=e("ariaRowToggleSelection","Press Space to toggle row selection");this.eCheckbox.setValue(t,!0),this.eCheckbox.setInputAriaLabel(r+" ("+n+")")},t.prototype.onCheckedClicked=function(e){var t=this.gridOptionsWrapper.isGroupSelectsFiltered();return this.rowNode.setSelectedParams({newValue:!1,rangeSelect:e.shiftKey,groupSelectsFiltered:t})},t.prototype.onUncheckedClicked=function(e){var t=this.gridOptionsWrapper.isGroupSelectsFiltered();return this.rowNode.setSelectedParams({newValue:!0,rangeSelect:e.shiftKey,groupSelectsFiltered:t})},t.prototype.init=function(e){var t=this;if(this.rowNode=e.rowNode,this.column=e.column,this.onSelectionChanged(),this.addGuiEventListener("click",(function(e){return Ne(e)})),this.addGuiEventListener("dblclick",(function(e){return Ne(e)})),this.addManagedListener(this.eCheckbox.getInputElement(),"click",(function(e){var n=t.eCheckbox.getValue();void 0===t.eCheckbox.getPreviousValue()?0===t.onUncheckedClicked(e||{})&&t.onCheckedClicked(e):n?t.onCheckedClicked(e):t.onUncheckedClicked(e||{})})),this.addManagedListener(this.rowNode,Qi.EVENT_ROW_SELECTED,this.onSelectionChanged.bind(this)),this.addManagedListener(this.rowNode,Qi.EVENT_DATA_CHANGED,this.onDataChanged.bind(this)),this.addManagedListener(this.rowNode,Qi.EVENT_SELECTABLE_CHANGED,this.onSelectableChanged.bind(this)),this.gridOptionsWrapper.getIsRowSelectableFunc()||this.checkboxCallbackExists()){var n=this.showOrHideSelect.bind(this);this.addManagedListener(this.eventService,Ke.EVENT_DISPLAYED_COLUMNS_CHANGED,n),this.addManagedListener(this.rowNode,Qi.EVENT_DATA_CHANGED,n),this.addManagedListener(this.rowNode,Qi.EVENT_CELL_CHANGED,n),this.showOrHideSelect()}this.eCheckbox.getInputElement().setAttribute("tabindex","-1")},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},Ji([ao("eCheckbox")],t.prototype,"eCheckbox",void 0),Ji([ce],t.prototype,"postConstruct",null),t}(io),ta=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),na=function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a};(qi=t.DragSourceType||(t.DragSourceType={}))[qi.ToolPanel=0]="ToolPanel",qi[qi.HeaderCell=1]="HeaderCell",qi[qi.RowDrag=2]="RowDrag",qi[qi.ChartPanel=3]="ChartPanel",(Ki=t.VerticalDirection||(t.VerticalDirection={}))[Ki.Up=0]="Up",Ki[Ki.Down=1]="Down",($i=t.HorizontalDirection||(t.HorizontalDirection={}))[$i.Left=0]="Left",$i[$i.Right=1]="Right";var ra=function(e){function n(){var t=null!==e&&e.apply(this,arguments)||this;return t.dragSourceAndParamsList=[],t.dropTargets=[],t}var r;return ta(n,e),r=n,n.prototype.init=function(){this.ePinnedIcon=kr("columnMovePin",this.gridOptionsWrapper,null),this.eHideIcon=kr("columnMoveHide",this.gridOptionsWrapper,null),this.eMoveIcon=kr("columnMoveMove",this.gridOptionsWrapper,null),this.eLeftIcon=kr("columnMoveLeft",this.gridOptionsWrapper,null),this.eRightIcon=kr("columnMoveRight",this.gridOptionsWrapper,null),this.eGroupIcon=kr("columnMoveGroup",this.gridOptionsWrapper,null),this.eAggregateIcon=kr("columnMoveValue",this.gridOptionsWrapper,null),this.ePivotIcon=kr("columnMovePivot",this.gridOptionsWrapper,null),this.eDropNotAllowedIcon=kr("dropNotAllowed",this.gridOptionsWrapper,null)},n.prototype.addDragSource=function(e,t){void 0===t&&(t=!1);var n={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:n,dragSource:e}),this.dragService.addDragSource(n,t)},n.prototype.removeDragSource=function(e){var t=p(this.dragSourceAndParamsList,(function(t){return t.dragSource===e}));t&&(this.dragService.removeDragSource(t.params),b(this.dragSourceAndParamsList,t))},n.prototype.clearDragSourceParamsList=function(){var e=this;this.dragSourceAndParamsList.forEach((function(t){return e.dragService.removeDragSource(t.params)})),this.dragSourceAndParamsList.length=0},n.prototype.nudge=function(){this.dragging&&this.onDragging(this.eventLastTime,!0)},n.prototype.onDragStart=function(e,t){this.dragging=!0,this.dragSource=e,this.eventLastTime=t,this.dragItem=this.dragSource.getDragItem(),this.lastDropTarget=this.dragSource.dragSourceDropTarget,this.dragSource.onDragStarted&&this.dragSource.onDragStarted(),this.createGhost()},n.prototype.onDragStop=function(e){if(this.eventLastTime=null,this.dragging=!1,this.dragSource.onDragStopped&&this.dragSource.onDragStopped(),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()},n.prototype.onDragging=function(e,t){var n=this,r=this.getHorizontalDirection(e),o=this.getVerticalDirection(e);this.eventLastTime=e,this.positionGhost(e);var i=this.dropTargets.filter((function(t){return n.isMouseOnDropTarget(e,t)})),a=i.length,s=null;if(a>0&&(s=1===a?i[0]:i.reduce((function(e,t){if(!e)return t;var n=e.getContainer(),r=t.getContainer();return n.contains(r)?t:e}))),s!==this.lastDropTarget)this.leaveLastTargetIfExists(e,r,o,t),this.enterDragTargetIfExists(s,e,r,o,t),this.lastDropTarget=s;else if(s&&s.onDragging){var l=this.createDropTargetEvent(s,e,r,o,t);s.onDragging(l)}},n.prototype.enterDragTargetIfExists=function(e,t,n,r,o){if(e){if(e.onDragEnter){var i=this.createDropTargetEvent(e,t,n,r,o);e.onDragEnter(i)}this.setGhostIcon(e.getIconName?e.getIconName():null)}},n.prototype.leaveLastTargetIfExists=function(e,t,n,r){if(this.lastDropTarget){if(this.lastDropTarget.onDragLeave){var o=this.createDropTargetEvent(this.lastDropTarget,e,t,n,r);this.lastDropTarget.onDragLeave(o)}this.setGhostIcon(null)}},n.prototype.getAllContainersFromDropTarget=function(e){var t=e.getSecondaryContainers?e.getSecondaryContainers():null,n=[[e.getContainer()]];return t?n.concat(t):n},n.prototype.allContainersIntersect=function(e,t){for(var n=0,r=t;n=o.left&&e.clientX=o.top&&e.clientYr?t.HorizontalDirection.Left:t.HorizontalDirection.Right},n.prototype.getVerticalDirection=function(e){var n=this.eventLastTime&&this.eventLastTime.clientY,r=e.clientY;return n===r?null:n>r?t.VerticalDirection.Up:t.VerticalDirection.Down},n.prototype.createDropTargetEvent=function(e,t,n,r,o){var i=e.getContainer(),a=i.getBoundingClientRect(),s=this,l=s.gridApi,c=s.columnApi,u=s.dragItem,p=s.dragSource;return{event:t,x:t.clientX-a.left,y:t.clientY-a.top,vDirection:r,hDirection:n,dragSource:p,fromNudge:o,dragItem:u,api:l,columnApi:c,dropZoneTarget:i}},n.prototype.positionGhost=function(e){var t=this.eGhost;if(t){var n=t.getBoundingClientRect().height,r=an()-2,o=sn()-2,i=e.pageY-n/2,a=e.pageX-10,s=this.gridOptionsWrapper.getDocument(),l=window.pageYOffset||s.documentElement.scrollTop,c=window.pageXOffset||s.documentElement.scrollLeft;r>0&&a+t.clientWidth>r+c&&(a=r+c-t.clientWidth),a<0&&(a=0),o>0&&i+t.clientHeight>o+l&&(i=o+l-t.clientHeight),i<0&&(i=0),t.style.left=a+"px",t.style.top=i+"px"}},n.prototype.removeGhost=function(){this.eGhost&&this.eGhostParent&&this.eGhostParent.removeChild(this.eGhost),this.eGhost=null},n.prototype.createGhost=function(){this.eGhost=Tn(r.GHOST_TEMPLATE);var e=this.environment.getTheme().theme;e&&un(this.eGhost,e),this.eGhostIcon=this.eGhost.querySelector(".ag-dnd-ghost-icon"),this.setGhostIcon(null);var t=this.eGhost.querySelector(".ag-dnd-ghost-label"),n=this.dragSource.dragItemName;Q(n)&&(n=n()),t.innerHTML=ot(n)||"",this.eGhost.style.height="25px",this.eGhost.style.top="20px",this.eGhost.style.left="20px";var o=this.gridOptionsWrapper.getDocument(),i=o.fullscreenElement||o.querySelector("body");this.eGhostParent=i,this.eGhostParent?this.eGhostParent.appendChild(this.eGhost):console.warn("AG Grid: could not find document body, it is needed for dragging columns")},n.prototype.setGhostIcon=function(e,t){void 0===t&&(t=!1),On(this.eGhostIcon);var n=null;switch(e||(e=this.dragSource.defaultIconName||r.ICON_NOT_ALLOWED),e){case r.ICON_PINNED:n=this.ePinnedIcon;break;case r.ICON_MOVE:n=this.eMoveIcon;break;case r.ICON_LEFT:n=this.eLeftIcon;break;case r.ICON_RIGHT:n=this.eRightIcon;break;case r.ICON_GROUP:n=this.eGroupIcon;break;case r.ICON_AGGREGATE:n=this.eAggregateIcon;break;case r.ICON_PIVOT:n=this.ePivotIcon;break;case r.ICON_NOT_ALLOWED:n=this.eDropNotAllowedIcon;break;case r.ICON_HIDE:n=this.eHideIcon}dn(this.eGhostIcon,"ag-shake-left-to-right",t),n===this.eHideIcon&&this.gridOptionsWrapper.isSuppressDragLeaveHidesColumns()||n&&this.eGhostIcon.appendChild(n)},n.ICON_PINNED="pinned",n.ICON_MOVE="move",n.ICON_LEFT="left",n.ICON_RIGHT="right",n.ICON_GROUP="group",n.ICON_AGGREGATE="aggregate",n.ICON_PIVOT="pivot",n.ICON_NOT_ALLOWED="notAllowed",n.ICON_HIDE="hide",n.GHOST_TEMPLATE='
\n \n
\n
',na([de("dragService")],n.prototype,"dragService",void 0),na([de("environment")],n.prototype,"environment",void 0),na([de("columnApi")],n.prototype,"columnApi",void 0),na([de("gridApi")],n.prototype,"gridApi",void 0),na([ce],n.prototype,"init",null),na([ue],n.prototype,"clearDragSourceParamsList",null),n=r=na([pe("dragAndDropService")],n)}(ze),oa=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),ia=function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},aa=function(e){function n(t,n,r,o,i,a){var s=e.call(this)||this;return s.cellValueFn=t,s.rowNode=n,s.column=r,s.customGui=o,s.dragStartPixels=i,s.suppressVisibilityChange=a,s.dragSource=null,s}return oa(n,e),n.prototype.isCustomGui=function(){return null!=this.customGui},n.prototype.postConstruct=function(){if(this.customGui?this.setDragElement(this.customGui,this.dragStartPixels):(this.setTemplate(''),this.getGui().appendChild(Nr("rowDrag",this.beans.gridOptionsWrapper,null)),this.addDragSource()),this.checkCompatibility(),!this.suppressVisibilityChange){var e=this.beans.gridOptionsWrapper.isRowDragManaged()?new ca(this,this.beans,this.rowNode,this.column):new la(this,this.beans,this.rowNode,this.column);this.createManagedBean(e,this.beans.context)}},n.prototype.setDragElement=function(e,t){this.setTemplateFromElement(e),this.addDragSource(t)},n.prototype.getSelectedCount=function(){if(!this.beans.gridOptionsWrapper.isRowDragMultiRow())return 1;var e=this.beans.selectionService.getSelectedNodes();return-1!==e.indexOf(this.rowNode)?e.length:1},n.prototype.checkCompatibility=function(){var e=this.beans.gridOptionsWrapper.isRowDragManaged();this.beans.gridOptionsWrapper.isTreeData()&&e&&K((function(){return console.warn("AG Grid: If using row drag with tree data, you cannot have rowDragManaged=true")}),"RowDragComp.managedAndTreeData")},n.prototype.addDragSource=function(e){var n=this;void 0===e&&(e=4),this.dragSource&&this.removeDragSource();var r={rowNode:this.rowNode,columns:this.column?[this.column]:void 0,defaultTextValue:this.cellValueFn()},o=this.column&&this.column.getColDef().rowDragText;this.dragSource={type:t.DragSourceType.RowDrag,eElement:this.getGui(),dragItemName:function(){var e=n.getSelectedCount();return o?o(r,e):1===e?n.cellValueFn():e+" rows"},getDragItem:function(){return r},dragStartPixels:e,dragSourceDomDataKey:this.beans.gridOptionsWrapper.getDomDataKey()},this.addMouseDownListenerIfNeeded(),this.beans.dragAndDropService.addDragSource(this.dragSource,!0)},n.prototype.addMouseDownListenerIfNeeded=function(){var e=this;!this.customGui&&this.column&&this.gridOptionsWrapper.isEnableCellTextSelect()&&this.addManagedListener(this.getGui(),"mousedown",(function(t){t.preventDefault(),e.beans.focusService.setFocusedCell(e.rowNode.rowIndex,e.column,e.rowNode.rowPinned,!0)}))},n.prototype.removeDragSource=function(){this.dragSource&&this.beans.dragAndDropService.removeDragSource(this.dragSource),this.dragSource=null},ia([de("beans")],n.prototype,"beans",void 0),ia([ce],n.prototype,"postConstruct",null),ia([ue],n.prototype,"removeDragSource",null),n}(io),sa=function(e){function t(t,n,r){var o=e.call(this)||this;return o.parent=t,o.rowNode=n,o.column=r,o}return oa(t,e),t.prototype.setDisplayedOrVisible=function(e){if(e)this.parent.setDisplayed(!1);else{var t=!0,n=!1;this.column&&(t=this.column.isRowDrag(this.rowNode)||this.parent.isCustomGui(),n=Q(this.column.getColDef().rowDrag)),n?(this.parent.setDisplayed(!0),this.parent.setVisible(t)):(this.parent.setDisplayed(t),this.parent.setVisible(!0))}},t}(ze),la=function(e){function t(t,n,r,o){var i=e.call(this,t,r,o)||this;return i.beans=n,i}return oa(t,e),t.prototype.postConstruct=function(){this.addManagedListener(this.beans.gridOptionsWrapper,"suppressRowDrag",this.onSuppressRowDrag.bind(this)),this.addManagedListener(this.rowNode,Qi.EVENT_DATA_CHANGED,this.workOutVisibility.bind(this)),this.addManagedListener(this.rowNode,Qi.EVENT_CELL_CHANGED,this.workOutVisibility.bind(this)),this.addManagedListener(this.rowNode,Qi.EVENT_CELL_CHANGED,this.workOutVisibility.bind(this)),this.addManagedListener(this.beans.eventService,Ke.EVENT_NEW_COLUMNS_LOADED,this.workOutVisibility.bind(this)),this.workOutVisibility()},t.prototype.onSuppressRowDrag=function(){this.workOutVisibility()},t.prototype.workOutVisibility=function(){var e=this.beans.gridOptionsWrapper.isSuppressRowDrag();this.setDisplayedOrVisible(e)},ia([ce],t.prototype,"postConstruct",null),t}(sa),ca=function(e){function t(t,n,r,o){var i=e.call(this,t,r,o)||this;return i.beans=n,i}return oa(t,e),t.prototype.postConstruct=function(){this.addManagedListener(this.beans.eventService,Ke.EVENT_SORT_CHANGED,this.workOutVisibility.bind(this)),this.addManagedListener(this.beans.eventService,Ke.EVENT_FILTER_CHANGED,this.workOutVisibility.bind(this)),this.addManagedListener(this.beans.eventService,Ke.EVENT_COLUMN_ROW_GROUP_CHANGED,this.workOutVisibility.bind(this)),this.addManagedListener(this.beans.eventService,Ke.EVENT_NEW_COLUMNS_LOADED,this.workOutVisibility.bind(this)),this.addManagedListener(this.rowNode,Qi.EVENT_DATA_CHANGED,this.workOutVisibility.bind(this)),this.addManagedListener(this.rowNode,Qi.EVENT_CELL_CHANGED,this.workOutVisibility.bind(this)),this.addManagedListener(this.beans.gridOptionsWrapper,"suppressRowDrag",this.onSuppressRowDrag.bind(this)),this.workOutVisibility()},t.prototype.onSuppressRowDrag=function(){this.workOutVisibility()},t.prototype.workOutVisibility=function(){var e=this.beans.ctrlsService.getGridBodyCtrl().getRowDragFeature(),t=e&&e.shouldPreventRowMove(),n=this.beans.gridOptionsWrapper.isSuppressRowDrag(),r=this.beans.dragAndDropService.hasExternalDropZones(),o=t&&!r||n;this.setDisplayedOrVisible(o)},ia([ce],t.prototype,"postConstruct",null),t}(sa),ua=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),pa=function(){return pa=Object.assign||function(e){for(var t,n=1,r=arguments.length;n=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},ha=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return ua(t,e),t.prototype.init=function(e,t,n,r,o,i,a){this.params=a,this.eGui=t,this.eCheckbox=n,this.eExpanded=r,this.eContracted=o,this.comp=e,this.compClass=i;var s=this.isTopLevelFooter(),l=this.isEmbeddedRowMismatch(),c=null==a.value,u=!1;if(this.gridOptionsWrapper.isGroupIncludeFooter()&&this.gridOptionsWrapper.isGroupHideOpenParents()){var p=a.node;if(p.footer)u=(a.colDef&&a.colDef.showRowGroup)!==(p.rowGroupColumn&&p.rowGroupColumn.getColId())}this.cellIsBlank=!s&&(l||c||u),this.cellIsBlank||(this.setupShowingValueForOpenedParent(),this.findDisplayedGroupNode(),this.addFullWidthRowDraggerIfNeeded(),this.addExpandAndContract(),this.addCheckboxIfNeeded(),this.addValueElement(),this.setupIndent())},t.prototype.isTopLevelFooter=function(){if(!this.gridOptionsWrapper.isGroupIncludeTotalFooter())return!1;if(null!=this.params.value||-1!=this.params.node.level)return!1;var e=this.params.colDef;if(null==e)return!0;if(!0===e.showRowGroup)return!0;var t=this.columnModel.getRowGroupColumns();return!t||0===t.length||t[0].getId()===e.showRowGroup},t.prototype.isEmbeddedRowMismatch=function(){if(!this.params.fullWidth||!this.gridOptionsWrapper.isEmbedFullWidthRows())return!1;var e=this.params.pinned===Ce.PINNED_LEFT,t=this.params.pinned===Ce.PINNED_RIGHT,n=!e&&!t;return this.gridOptionsWrapper.isEnableRtl()?this.columnModel.isPinningLeft()?!t:!n:this.columnModel.isPinningLeft()?!e:!n},t.prototype.findDisplayedGroupNode=function(){var e=this.params.column,t=this.params.node;if(this.showingValueForOpenedParent)for(var n=t.parent;null!=n;){if(n.rowGroupColumn&&e.isRowGroupDisplayed(n.rowGroupColumn.getId())){this.displayedGroupNode=n;break}n=n.parent}i(this.displayedGroupNode)&&(this.displayedGroupNode=t)},t.prototype.setupShowingValueForOpenedParent=function(){var e=this.params.node,t=this.params.column;if(this.gridOptionsWrapper.isGroupHideOpenParents())if(e.groupData){if(null!=e.rowGroupColumn){var n=e.rowGroupColumn.getId();if(t.isRowGroupDisplayed(n))return void(this.showingValueForOpenedParent=!1)}var r=null!=e.groupData[t.getId()];this.showingValueForOpenedParent=r}else this.showingValueForOpenedParent=!1;else this.showingValueForOpenedParent=!1},t.prototype.addValueElement=function(){this.displayedGroupNode.footer?this.addFooterValue():(this.addGroupValue(),this.addChildCount())},t.prototype.addGroupValue=function(){var e=this.adjustParamsWithDetailsFromRelatedColumn(),t=this.getInnerCompDetails(e),n=e.valueFormatted,r=e.value,o=null!=n?n:r;this.comp.setInnerRenderer(t,o)},t.prototype.adjustParamsWithDetailsFromRelatedColumn=function(){var e=this.displayedGroupNode.rowGroupColumn,t=this.params.column;if(!e)return this.params;if(null!=t&&!t.isRowGroupDisplayed(e.getId()))return this.params;var n=this.params,r=this.params,o=r.value,i=r.scope,a=r.node,s=this.valueFormatterService.formatValue(e,a,i,o);return pa(pa({},n),{valueFormatted:s})},t.prototype.addFooterValue=function(){var e=this.params.footerValueGetter,t="";if(e){var n=N(this.params);n.value=this.params.value,"function"===typeof e?t=e(n):"string"===typeof e?t=this.expressionService.evaluate(e,n):console.warn("AG Grid: footerValueGetter should be either a function or a string (expression)")}else t="Total "+(null!=this.params.value?this.params.value:"");var r=this.getInnerCompDetails(this.params);this.comp.setInnerRenderer(r,t)},t.prototype.getInnerCompDetails=function(e){var t=this;if(e.fullWidth)return this.userComponentFactory.getFullWidthGroupRowInnerCellRenderer(this.gridOptions.groupRowRendererParams,e);var n=this.userComponentFactory.getInnerRendererDetails(e,e),r=function(e){return e&&e.componentClass==t.compClass};if(n&&!r(n))return n;var o=this.displayedGroupNode.rowGroupColumn,i=o?o.getColDef():void 0;if(i){var a=this.userComponentFactory.getCellRendererDetails(i,e);if(a&&!r(a))return a;if(r(a)&&i.cellRendererParams&&i.cellRendererParams.innerRenderer)return this.userComponentFactory.getInnerRendererDetails(i.cellRendererParams,e)}},t.prototype.addChildCount=function(){this.params.suppressCount||(this.addManagedListener(this.displayedGroupNode,Qi.EVENT_ALL_CHILDREN_COUNT_CHANGED,this.updateChildCount.bind(this)),this.updateChildCount())},t.prototype.updateChildCount=function(){var e=this.displayedGroupNode.allChildrenCount,t=this.isShowRowGroupForThisRow()&&null!=e&&e>=0?"("+e+")":"";this.comp.setChildCount(t)},t.prototype.isShowRowGroupForThisRow=function(){if(this.gridOptionsWrapper.isTreeData())return!0;var e=this.displayedGroupNode.rowGroupColumn;if(!e)return!1;var t=this.params.column;return null==t||t.isRowGroupDisplayed(e.getId())},t.prototype.addExpandAndContract=function(){var e=this.params,t=Nr("groupExpanded",this.gridOptionsWrapper,null),n=Nr("groupContracted",this.gridOptionsWrapper,null);t&&this.eExpanded.appendChild(t),n&&this.eContracted.appendChild(n);var r=e.eGridCell;this.gridOptionsWrapper.isEnableGroupEdit()||!this.isExpandable()||e.suppressDoubleClickExpand||this.addManagedListener(r,"dblclick",this.onCellDblClicked.bind(this)),this.addManagedListener(this.eExpanded,"click",this.onExpandClicked.bind(this)),this.addManagedListener(this.eContracted,"click",this.onExpandClicked.bind(this)),this.addManagedListener(r,"keydown",this.onKeyDown.bind(this)),this.addManagedListener(e.node,Qi.EVENT_EXPANDED_CHANGED,this.showExpandAndContractIcons.bind(this)),this.showExpandAndContractIcons();var o=this.onRowNodeIsExpandableChanged.bind(this);this.addManagedListener(this.displayedGroupNode,Qi.EVENT_ALL_CHILDREN_COUNT_CHANGED,o),this.addManagedListener(this.displayedGroupNode,Qi.EVENT_MASTER_CHANGED,o),this.addManagedListener(this.displayedGroupNode,Qi.EVENT_HAS_CHILDREN_CHANGED,o)},t.prototype.onExpandClicked=function(e){Me(e)||(Ne(e),this.onExpandOrContract())},t.prototype.onExpandOrContract=function(){var e=this.displayedGroupNode,t=!e.expanded;e.setExpanded(t)},t.prototype.isExpandable=function(){if(this.showingValueForOpenedParent)return!0;var e=this.displayedGroupNode,t=this.columnModel.isPivotMode()&&e.leafGroup;if(!(e.isExpandable()&&!e.footer&&!t))return!1;var n=this.params.column;return null==n||"string"!==typeof n.getColDef().showRowGroup||this.isShowRowGroupForThisRow()},t.prototype.showExpandAndContractIcons=function(){var e=this,t=e.params,n=e.displayedGroupNode,r=e.columnModel,o=t.node,i=this.isExpandable();if(i){var a=!!this.showingValueForOpenedParent||o.expanded;this.comp.setExpandedDisplayed(a),this.comp.setContractedDisplayed(!a)}else this.comp.setExpandedDisplayed(!1),this.comp.setContractedDisplayed(!1);var s=r.isPivotMode(),l=s&&n.leafGroup,c=i&&!l,u=o.footer&&-1===o.level;this.comp.addOrRemoveCssClass("ag-cell-expandable",c),this.comp.addOrRemoveCssClass("ag-row-group",c),s?this.comp.addOrRemoveCssClass("ag-pivot-leaf-group",l):u||this.comp.addOrRemoveCssClass("ag-row-group-leaf-indent",!c)},t.prototype.onRowNodeIsExpandableChanged=function(){this.showExpandAndContractIcons(),this.setIndent()},t.prototype.setupIndent=function(){var e=this.params.node;this.params.suppressPadding||(this.addManagedListener(e,Qi.EVENT_UI_LEVEL_CHANGED,this.setIndent.bind(this)),this.setIndent())},t.prototype.setIndent=function(){if(!this.gridOptionsWrapper.isGroupHideOpenParents()){var e=this.params,t=e.node,n=!!e.colDef,r=this.gridOptionsWrapper.isTreeData(),o=!n||r||!0===e.colDef.showRowGroup?t.uiLevel:0;e.padding>=0&&K((function(){return console.warn("AG Grid: cellRendererParams.padding no longer works, it was deprecated in since v14.2 and removed in v26, 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"),this.indentClass&&this.comp.addOrRemoveCssClass(this.indentClass,!1),this.indentClass="ag-row-group-indent-"+o,this.comp.addOrRemoveCssClass(this.indentClass,!0)}},t.prototype.addFullWidthRowDraggerIfNeeded=function(){var e=this;if(this.params.fullWidth&&this.params.rowDrag){var t=new aa((function(){return e.params.value}),this.params.node);this.createManagedBean(t,this.context),this.eGui.insertAdjacentElement("afterbegin",t.getGui())}},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,t=this.displayedGroupNode,n=this.isUserWantsSelected()&&!t.footer&&!t.rowPinned&&!t.detail;if(n){var r=new ea;this.getContext().createBean(r),r.init({rowNode:t,column:this.params.column}),this.eCheckbox.appendChild(r.getGui()),this.addDestroyFunc((function(){return e.getContext().destroyBean(r)}))}this.comp.setCheckboxVisible(n)},t.prototype.onKeyDown=function(e){Ir(e,mo.ENTER)&&!this.params.suppressEnterExpand&&(this.params.column&&this.params.column.isCellEditable(this.params.node)||this.onExpandOrContract())},t.prototype.onCellDblClicked=function(e){Me(e)||(Ge(this.eExpanded,e)||Ge(this.eContracted,e)||this.onExpandOrContract())},da([de("expressionService")],t.prototype,"expressionService",void 0),da([de("valueFormatterService")],t.prototype,"valueFormatterService",void 0),da([de("columnModel")],t.prototype,"columnModel",void 0),da([de("userComponentFactory")],t.prototype,"userComponentFactory",void 0),da([de("gridOptions")],t.prototype,"gridOptions",void 0),t}(ze),fa=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),ga=function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},va=function(e){function t(){return e.call(this,t.TEMPLATE)||this}return fa(t,e),t.prototype.init=function(e){var t=this,n={setInnerRenderer:function(e,n){return t.setRenderDetails(e,n)},setChildCount:function(e){return t.eChildCount.innerHTML=e},addOrRemoveCssClass:function(e,n){return t.addOrRemoveCssClass(e,n)},setContractedDisplayed:function(e){return gn(t.eContracted,e)},setExpandedDisplayed:function(e){return gn(t.eExpanded,e)},setCheckboxVisible:function(e){return dn(t.eCheckbox,"ag-invisible",!e)}},r=this.createManagedBean(new ha),o=!e.colDef,i=this.getGui();r.init(n,i,this.eCheckbox,this.eExpanded,this.eContracted,this.constructor,e),o&&tr(i,"gridcell")},t.prototype.setRenderDetails=function(e,t){var n=this;if(e){var r=e.newAgStackInstance();if(!r)return;r.then((function(e){if(e){var t=function(){return n.context.destroyBean(e)};n.isAlive()?(n.eValue.appendChild(e.getGui()),n.addDestroyFunc(t)):t()}}))}else this.eValue.innerText=t},t.prototype.destroy=function(){this.getContext().destroyBean(this.innerCellRenderer),e.prototype.destroy.call(this)},t.prototype.refresh=function(){return!1},t.TEMPLATE='\n \n \n \n \n \n ',ga([de("userComponentFactory")],t.prototype,"userComponentFactory",void 0),ga([ao("eExpanded")],t.prototype,"eExpanded",void 0),ga([ao("eContracted")],t.prototype,"eContracted",void 0),ga([ao("eCheckbox")],t.prototype,"eCheckbox",void 0),ga([ao("eValue")],t.prototype,"eValue",void 0),ga([ao("eChildCount")],t.prototype,"eChildCount",void 0),t}(io),ma=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),ya=function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},ba=function(e){function t(){return e.call(this,t.TEMPLATE)||this}return ma(t,e),t.prototype.init=function(e){e.node.failedLoad?this.setupFailed():this.setupLoading()},t.prototype.setupFailed=function(){this.eLoadingText.innerText="ERR"},t.prototype.setupLoading=function(){var e=Nr("groupLoading",this.gridOptionsWrapper,null);e&&this.eLoadingIcon.appendChild(e);var t=this.gridOptionsWrapper.getLocaleTextFunc();this.eLoadingText.innerText=t("loadingOoo","Loading")},t.prototype.refresh=function(e){return!1},t.TEMPLATE='
\n \n \n
',ya([ao("eLoadingIcon")],t.prototype,"eLoadingIcon",void 0),ya([ao("eLoadingText")],t.prototype,"eLoadingText",void 0),t}(io),wa=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Ca=function(e){function t(){return e.call(this)||this}return wa(t,e),t.prototype.destroy=function(){e.prototype.destroy.call(this)},t.prototype.init=function(e){var n=this.gridOptionsWrapper.getOverlayLoadingTemplate()?this.gridOptionsWrapper.getOverlayLoadingTemplate():t.DEFAULT_LOADING_OVERLAY_TEMPLATE,r=this.gridOptionsWrapper.getLocaleTextFunc(),o=n.replace("[LOADING...]",r("loadingOoo","Loading..."));this.setTemplate(o)},t.DEFAULT_LOADING_OVERLAY_TEMPLATE='[LOADING...]',t}(io),xa=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Sa=function(e){function t(){return e.call(this)||this}return xa(t,e),t.prototype.destroy=function(){e.prototype.destroy.call(this)},t.prototype.init=function(e){var n=this.gridOptionsWrapper.getOverlayNoRowsTemplate()?this.gridOptionsWrapper.getOverlayNoRowsTemplate():t.DEFAULT_NO_ROWS_TEMPLATE,r=this.gridOptionsWrapper.getLocaleTextFunc(),o=n.replace("[NO_ROWS_TO_SHOW]",r("noRowsToShow","No Rows To Show"));this.setTemplate(o)},t.DEFAULT_NO_ROWS_TEMPLATE='[NO_ROWS_TO_SHOW]',t}(io),Ea=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),_a=function(e){function t(){return e.call(this,'
')||this}return Ea(t,e),t.prototype.init=function(e){var t=e.value;this.getGui().innerHTML=ot(t)},t}(Ai),Ra=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Oa=function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},Aa=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.agGridDefaults={agDateInput:ai,agColumnHeader:Si,agColumnGroupHeader:Ri,agTextColumnFloatingFilter:bi,agNumberColumnFloatingFilter:mi,agDateColumnFloatingFilter:ri,agReadOnlyFloatingFilter:po,agAnimateShowChangeCellRenderer:zi,agAnimateSlideCellRenderer:Xi,agGroupCellRenderer:va,agGroupRowRenderer:va,agLoadingCellRenderer:ba,agCellEditor:Hi,agTextCellEditor:Hi,agSelectCellEditor:Mi,agPopupTextCellEditor:Vi,agPopupSelectCellEditor:Li,agLargeTextCellEditor:Di,agTextColumnFilter:di,agNumberColumnFilter:ci,agDateColumnFilter:Zo,agLoadingOverlay:Ca,agNoRowsOverlay:Sa,agTooltipComponent:_a},t.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"}},t.jsComponents={},t.frameworkComponents={},t}return Ra(t,e),t.prototype.init=function(){var e=this;null!=this.gridOptions.components&&k(this.gridOptions.components,(function(t,n){return e.registerComponent(t,n)})),null!=this.gridOptions.frameworkComponents&&k(this.gridOptions.frameworkComponents,(function(t,n){return e.registerFwComponent(t,n)}))},t.prototype.registerDefaultComponent=function(e,t){var n=this.translateIfDeprecated(e);this.agGridDefaults[n]?console.error("Trying to overwrite a default component. You should call registerComponent"):this.agGridDefaults[n]=t},t.prototype.registerComponent=function(e,t){var n=this.translateIfDeprecated(e);this.frameworkComponents[n]?console.error("Trying to register a component that you have already registered for frameworks: "+n):this.jsComponents[n]=t},t.prototype.registerFwComponent=function(e,t){var n=this.translateIfDeprecated(e);this.jsComponents[n]?console.error("Trying to register a component that you have already registered for plain javascript: "+n):this.frameworkComponents[n]=t},t.prototype.retrieve=function(e){var t=this.translateIfDeprecated(e),n=this.frameworkComponents[t]||this.getFrameworkOverrides().frameworkComponent(t);if(n)return{componentFromFramework:!0,component:n};var r=this.jsComponents[t];if(r)return{componentFromFramework:!1,component:r};var o=this.agGridDefaults[t];return o?{componentFromFramework:!1,component:o}:(Object.keys(this.agGridDefaults).indexOf(t)<0&&console.warn("AG Grid: Looking for component ["+t+"] but it wasn't found."),null)},t.prototype.translateIfDeprecated=function(e){var t=this.agDeprecatedNames[e];return null!=t?(K((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},Oa([de("gridOptions")],t.prototype,"gridOptions",void 0),Oa([ce],t.prototype,"init",null),t=Oa([pe("userComponentRegistry")],t)}(ze),Pa={propertyName:"dateComponent",isCellRenderer:function(){return!1}},Ta={propertyName:"headerComponent",isCellRenderer:function(){return!1}},Da={propertyName:"headerGroupComponent",isCellRenderer:function(){return!1}},ka={propertyName:"cellRenderer",isCellRenderer:function(){return!0}},Na={propertyName:"cellEditor",isCellRenderer:function(){return!1}},Ma={propertyName:"innerRenderer",isCellRenderer:function(){return!0}},Ia={propertyName:"loadingOverlayComponent",isCellRenderer:function(){return!1}},La={propertyName:"noRowsOverlayComponent",isCellRenderer:function(){return!1}},Fa={propertyName:"tooltipComponent",isCellRenderer:function(){return!1}},Ga={propertyName:"filter",isCellRenderer:function(){return!1}},Ha={propertyName:"floatingFilterComponent",isCellRenderer:function(){return!1}},Wa={propertyName:"toolPanel",isCellRenderer:function(){return!1}},Va={propertyName:"statusPanel",isCellRenderer:function(){return!1}},ja=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Ba=function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},za=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return ja(t,e),t.prototype.getHeaderCompDetails=function(e,t){return this.getCompDetails(e,Ta,"agColumnHeader",t)},t.prototype.getHeaderGroupCompDetails=function(e){var t=e.columnGroup.getColGroupDef();return this.getCompDetails(t,Da,"agColumnGroupHeader",e)},t.prototype.getFullWidthCellRendererDetails=function(e,t,n){return this.getCompDetails(this.gridOptions,{propertyName:t,isCellRenderer:function(){return!0}},n,e)},t.prototype.getInnerRendererDetails=function(e,t){return this.getCompDetails(e,Ma,null,t)},t.prototype.getFullWidthGroupRowInnerCellRenderer=function(e,t){return this.getCompDetails(e,Ma,null,t)},t.prototype.getCellRendererDetails=function(e,t){return this.getCompDetails(e,ka,null,t)},t.prototype.getCellEditorDetails=function(e,t){return this.getCompDetails(e,Na,"agCellEditor",t,!0)},t.prototype.getFilterDetails=function(e,t,n){return this.getCompDetails(e,Ga,n,t,!0)},t.prototype.getDateCompDetails=function(e){return this.getCompDetails(this.gridOptions,Pa,"agDateInput",e,!0)},t.prototype.getLoadingOverlayCompDetails=function(e){return this.getCompDetails(this.gridOptions,Ia,"agLoadingOverlay",e,!0)},t.prototype.getNoRowsOverlayCompDetails=function(e){return this.getCompDetails(this.gridOptions,La,"agNoRowsOverlay",e,!0)},t.prototype.getTooltipCompDetails=function(e){return this.getCompDetails(e.colDef,Fa,"agTooltipComponent",e,!0)},t.prototype.getSetFilterCellRendererDetails=function(e,t){return this.getCompDetails(e,ka,null,t)},t.prototype.getFloatingFilterCompDetails=function(e,t,n){return this.getCompDetails(e,Ha,n,t)},t.prototype.getToolPanelCompDetails=function(e,t){return this.getCompDetails(e,Wa,null,t,!0)},t.prototype.getStatusPanelCompDetails=function(e,t){return this.getCompDetails(e,Va,null,t,!0)},t.prototype.getCompDetails=function(e,t,n,r,o){var i=this;void 0===o&&(o=!1);var a,s,l,c=t.propertyName;if(e){var u=e,p=u[c+"Selector"],d=p?p(r):null;d?(a=d.component,s=d.frameworkComponent,l=d.params):(a=u[c],s=u[c+"Framework"]),!0===a&&(a=void 0)}var h=function(e){var t=i.userComponentRegistry.retrieve(e);t?(a=t.componentFromFramework?void 0:t.component,s=t.componentFromFramework?t.component:void 0):(a=void 0,s=void 0)};if("string"===typeof a&&h(a),null==a&&null==s&&null!=n&&h(n),a&&!this.agComponentUtils.doesImplementIComponent(a)&&(a=this.agComponentUtils.adaptFunction(c,a)),a||s){var f=this.mergeParamsWithApplicationProvidedParams(e,c,r,l),g=null==a,v=a||s;return{componentFromFramework:g,componentClass:v,params:f,type:t,newAgStackInstance:function(e){return i.newAgStackInstance(v,g,f,t,e)}}}if(o){var m=e?e[c]:n,y=m||n;console.error("Could not find component "+y+", did you forget to configure this component?")}},t.prototype.newAgStackInstance=function(e,t,n,r,o){var i,a=r.propertyName;if(!t)i=new e;else{var s=this.componentMetadataProvider.retrieve(a);i=this.frameworkComponentWrapper.wrap(e,s.mandatoryMethodList,s.optionalMethodList,r,o)}var l=this.initComponent(i,n);return null==l?$r.resolve(i):l.then((function(){return i}))},t.prototype.mergeParamsWithApplicationProvidedParams=function(e,t,n,r){void 0===r&&(r=null);var o={};W(o,n);var i=e?e[t+"Params"]:null;null!=i&&("function"===typeof i?W(o,i(n)):"object"===typeof i&&W(o,i));return W(o,r),o},t.prototype.initComponent=function(e,t){if(this.context.createBean(e),null!=e.init)return e.init(t)},Ba([de("gridOptions")],t.prototype,"gridOptions",void 0),Ba([de("agComponentUtils")],t.prototype,"agComponentUtils",void 0),Ba([de("componentMetadataProvider")],t.prototype,"componentMetadataProvider",void 0),Ba([de("userComponentRegistry")],t.prototype,"userComponentRegistry",void 0),Ba([he("frameworkComponentWrapper")],t.prototype,"frameworkComponentWrapper",void 0),t=Ba([pe("userComponentFactory")],t)}(ze),Ua=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 n=[];return t.forEach((function(t){var r=e.DEFAULT_BY_KEY[t];r?n.push(r):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===n.length?null:{toolPanels:n,defaultToolPanel:n[0].id}}return{toolPanels:e.parseComponents(t.toolPanels),defaultToolPanel:t.defaultToolPanel,hiddenByDefault:t.hiddenByDefault,position:t.position}},e.parseComponents=function(t){var n=[];return t?(t.forEach((function(t){var r=null;if("string"===typeof t){var o=e.DEFAULT_BY_KEY[t];if(!o)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(","));r=o}else r=t;n.push(r)})),n):n},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}(),Ya=function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},Xa=function(e,t){return function(n,r){t(n,r,e)}},qa=function(){for(var e=0,t=0,n=arguments.length;t0?n:t}var Za,Ja,es=function(){function e(){this.propertyEventService=new we,this.domDataKey="__AG_"+Math.random().toString(),this.destroyed=!1}var n;return n=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,this.destroyed=!0},e.prototype.init=function(){var e=this;!0!==this.gridOptions.suppressPropertyNamesCheck&&(this.checkGridOptionsProperties(),this.checkColumnDefProperties()),null!=this.gridOptions.sideBar&&(this.gridOptions.sideBar=Ua.parse(this.gridOptions.sideBar));var n=this.useAsyncEvents();if(this.eventService.addGlobalListener(this.globalEventHandler.bind(this),n),this.isGroupSelectsChildren()&&this.isSuppressParentsInRowNodes()&&console.warn("AG Grid: 'groupSelectsChildren' does not work with '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.isRowModelServerSide()){var r=function(e){return"AG Grid: '"+e+"' is not supported on the Server-Side Row Model"};o(this.gridOptions.groupDefaultExpanded)&&console.warn(r("groupDefaultExpanded")),o(this.gridOptions.groupDefaultExpanded)&&console.warn(r("groupIncludeFooter")),o(this.gridOptions.groupDefaultExpanded)&&console.warn(r("groupIncludeTotalFooter"))}this.isEnableRangeSelection()&&xe.assertRegistered(t.ModuleNames.RangeSelectionModule,"enableRangeSelection"),this.isEnableRangeSelection()||!this.isEnableRangeHandle()&&!this.isEnableFillHandle()||console.warn("AG Grid: 'enableRangeHandle' and 'enableFillHandle' will not work unless 'enableRangeSelection' is set to true");var i=function(t){e.gridOptions.icons&&e.gridOptions.icons[t]&&console.warn("gridOptions.icons."+t+" is no longer supported. For information on how to style checkboxes and radio buttons, see https://www.ag-grid.com/javascript-grid-icons/")};i("radioButtonOff"),i("radioButtonOn"),i("checkboxChecked"),i("checkboxUnchecked"),i("checkboxIndeterminate"),this.getScrollbarWidth()},e.prototype.checkColumnDefProperties=function(){var e=this;null!=this.gridOptions.columnDefs&&this.gridOptions.columnDefs.forEach((function(t){var n=Object.getOwnPropertyNames(t),r=qa(Lt.ALL_PROPERTIES,Lt.FRAMEWORK_PROPERTIES);e.checkProperties(n,r,r,"colDef","https://www.ag-grid.com/javascript-grid-column-properties/")}))},e.prototype.checkGridOptionsProperties=function(){var e=Object.getOwnPropertyNames(this.gridOptions),t=qa(At.ALL_PROPERTIES,At.FRAMEWORK_PROPERTIES,d(Ke).map((function(e){return Dt.getCallbackForEvent(e)}))),n=qa(t,["api","columnApi"]);this.checkProperties(e,n,t,"gridOptions","https://www.ag-grid.com/javascript-grid-properties/")},e.prototype.checkProperties=function(e,t,n,r,o){var i=_r(e,t,n);k(i,(function(e,t){console.warn("ag-grid: invalid "+r+" property '"+e+"' did you mean any of these: "+t.slice(0,8).join(", "))})),Object.keys(i).length>0&&console.warn("ag-grid: to see all the valid "+r+" properties please check: "+o)},e.prototype.getDomDataKey=function(){return this.domDataKey},e.prototype.getDomData=function(e,t){var n=e[this.getDomDataKey()];return n?n[t]:void 0},e.prototype.setDomData=function(e,t,n){var r=this.getDomDataKey(),o=e[r];i(o)&&(o={},e[r]=o),o[t]=n},e.prototype.isRowSelection=function(){return"single"===this.gridOptions.rowSelection||"multiple"===this.gridOptions.rowSelection},e.prototype.isSuppressRowDeselection=function(){return Ka(this.gridOptions.suppressRowDeselection)},e.prototype.isRowSelectionMulti=function(){return"multiple"===this.gridOptions.rowSelection},e.prototype.isRowMultiSelectWithClick=function(){return Ka(this.gridOptions.rowMultiSelectWithClick)},e.prototype.getContext=function(){return this.gridOptions.context},e.prototype.isPivotMode=function(){return Ka(this.gridOptions.pivotMode)},e.prototype.isSuppressExpandablePivotGroups=function(){return Ka(this.gridOptions.suppressExpandablePivotGroups)},e.prototype.getPivotColumnGroupTotals=function(){return this.gridOptions.pivotColumnGroupTotals},e.prototype.getPivotRowTotals=function(){return this.gridOptions.pivotRowTotals},e.prototype.isRowModelInfinite=function(){return this.gridOptions.rowModelType===Ce.ROW_MODEL_TYPE_INFINITE},e.prototype.isRowModelViewport=function(){return this.gridOptions.rowModelType===Ce.ROW_MODEL_TYPE_VIEWPORT},e.prototype.isRowModelServerSide=function(){return this.gridOptions.rowModelType===Ce.ROW_MODEL_TYPE_SERVER_SIDE},e.prototype.isRowModelDefault=function(){return i(this.gridOptions.rowModelType)||this.gridOptions.rowModelType===Ce.ROW_MODEL_TYPE_CLIENT_SIDE},e.prototype.isFullRowEdit=function(){return"fullRow"===this.gridOptions.editType},e.prototype.isSuppressFocusAfterRefresh=function(){return Ka(this.gridOptions.suppressFocusAfterRefresh)},e.prototype.isSuppressBrowserResizeObserver=function(){return Ka(this.gridOptions.suppressBrowserResizeObserver)},e.prototype.isSuppressMaintainUnsortedOrder=function(){return Ka(this.gridOptions.suppressMaintainUnsortedOrder)},e.prototype.isSuppressClearOnFillReduction=function(){return Ka(this.gridOptions.suppressClearOnFillReduction)},e.prototype.isShowToolPanel=function(){return Ka(this.gridOptions.sideBar&&Array.isArray(this.getSideBar().toolPanels))},e.prototype.getSideBar=function(){return this.gridOptions.sideBar},e.prototype.isSuppressTouch=function(){return Ka(this.gridOptions.suppressTouch)},e.prototype.isMaintainColumnOrder=function(){return Ka(this.gridOptions.maintainColumnOrder)},e.prototype.isSuppressRowTransform=function(){return Ka(this.gridOptions.suppressRowTransform)},e.prototype.isSuppressColumnStateEvents=function(){return Ka(this.gridOptions.suppressColumnStateEvents)},e.prototype.isAllowDragFromColumnsToolPanel=function(){return Ka(this.gridOptions.allowDragFromColumnsToolPanel)},e.prototype.useAsyncEvents=function(){return!Ka(this.gridOptions.suppressAsyncEvents)},e.prototype.isEnableCellChangeFlash=function(){return Ka(this.gridOptions.enableCellChangeFlash)},e.prototype.getCellFlashDelay=function(){return this.gridOptions.cellFlashDelay||500},e.prototype.getCellFadeDelay=function(){return this.gridOptions.cellFadeDelay||1e3},e.prototype.isGroupSelectsChildren=function(){var e=Ka(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 Ka(this.gridOptions.suppressRowHoverHighlight)},e.prototype.isColumnHoverHighlight=function(){return Ka(this.gridOptions.columnHoverHighlight)},e.prototype.isGroupSelectsFiltered=function(){return Ka(this.gridOptions.groupSelectsFiltered)},e.prototype.isGroupHideOpenParents=function(){return Ka(this.gridOptions.groupHideOpenParents)},e.prototype.isGroupMaintainOrder=function(){return Ka(this.gridOptions.groupMaintainOrder)},e.prototype.getAutoGroupColumnDef=function(){return this.gridOptions.autoGroupColumnDef},e.prototype.isGroupMultiAutoColumn=function(){return this.gridOptions.groupDisplayType?this.matchesGroupDisplayType("multipleColumns",this.gridOptions.groupDisplayType):Ka(this.gridOptions.groupHideOpenParents)},e.prototype.isGroupUseEntireRow=function(e){return!e&&(!!this.gridOptions.groupDisplayType&&this.matchesGroupDisplayType("groupRows",this.gridOptions.groupDisplayType))},e.prototype.isGroupSuppressAutoColumn=function(){return!(!this.gridOptions.groupDisplayType||!this.matchesGroupDisplayType("custom",this.gridOptions.groupDisplayType))||!!this.gridOptions.treeDataDisplayType&&this.matchesTreeDataDisplayType("custom",this.gridOptions.treeDataDisplayType)},e.prototype.isGroupRemoveSingleChildren=function(){return Ka(this.gridOptions.groupRemoveSingleChildren)},e.prototype.isGroupRemoveLowestSingleChildren=function(){return Ka(this.gridOptions.groupRemoveLowestSingleChildren)},e.prototype.isGroupIncludeFooter=function(){return Ka(this.gridOptions.groupIncludeFooter)},e.prototype.isGroupIncludeTotalFooter=function(){return Ka(this.gridOptions.groupIncludeTotalFooter)},e.prototype.isGroupSuppressBlankHeader=function(){return Ka(this.gridOptions.groupSuppressBlankHeader)},e.prototype.isSuppressRowClickSelection=function(){return Ka(this.gridOptions.suppressRowClickSelection)},e.prototype.isSuppressCellSelection=function(){return Ka(this.gridOptions.suppressCellSelection)},e.prototype.isSuppressMultiSort=function(){return Ka(this.gridOptions.suppressMultiSort)},e.prototype.isMultiSortKeyCtrl=function(){return"ctrl"===this.gridOptions.multiSortKey},e.prototype.isPivotSuppressAutoColumn=function(){return Ka(this.gridOptions.pivotSuppressAutoColumn)},e.prototype.isSuppressDragLeaveHidesColumns=function(){return Ka(this.gridOptions.suppressDragLeaveHidesColumns)},e.prototype.isSuppressScrollOnNewData=function(){return Ka(this.gridOptions.suppressScrollOnNewData)},e.prototype.isSuppressScrollWhenPopupsAreOpen=function(){return Ka(this.gridOptions.suppressScrollWhenPopupsAreOpen)},e.prototype.isRowDragEntireRow=function(){return Ka(this.gridOptions.rowDragEntireRow)},e.prototype.isSuppressRowDrag=function(){return Ka(this.gridOptions.suppressRowDrag)},e.prototype.isRowDragManaged=function(){return Ka(this.gridOptions.rowDragManaged)},e.prototype.isSuppressMoveWhenRowDragging=function(){return Ka(this.gridOptions.suppressMoveWhenRowDragging)},e.prototype.isRowDragMultiRow=function(){return Ka(this.gridOptions.rowDragMultiRow)},e.prototype.getDomLayout=function(){var e=this.gridOptions.domLayout||Ce.DOM_LAYOUT_NORMAL;return-1===[Ce.DOM_LAYOUT_PRINT,Ce.DOM_LAYOUT_AUTO_HEIGHT,Ce.DOM_LAYOUT_NORMAL].indexOf(e)?(K((function(){return console.warn("AG Grid: "+e+" is not valid for DOM Layout, valid values are "+Ce.DOM_LAYOUT_NORMAL+", "+Ce.DOM_LAYOUT_AUTO_HEIGHT+" and "+Ce.DOM_LAYOUT_PRINT)}),"warn about dom layout values"),Ce.DOM_LAYOUT_NORMAL):e},e.prototype.isSuppressHorizontalScroll=function(){return Ka(this.gridOptions.suppressHorizontalScroll)},e.prototype.isSuppressMaxRenderedRowRestriction=function(){return Ka(this.gridOptions.suppressMaxRenderedRowRestriction)},e.prototype.isExcludeChildrenWhenTreeDataFiltering=function(){return Ka(this.gridOptions.excludeChildrenWhenTreeDataFiltering)},e.prototype.isAlwaysShowHorizontalScroll=function(){return Ka(this.gridOptions.alwaysShowHorizontalScroll)},e.prototype.isAlwaysShowVerticalScroll=function(){return Ka(this.gridOptions.alwaysShowVerticalScroll)},e.prototype.isDebounceVerticalScrollbar=function(){return Ka(this.gridOptions.debounceVerticalScrollbar)},e.prototype.isSuppressLoadingOverlay=function(){return Ka(this.gridOptions.suppressLoadingOverlay)},e.prototype.isSuppressNoRowsOverlay=function(){return Ka(this.gridOptions.suppressNoRowsOverlay)},e.prototype.isSuppressFieldDotNotation=function(){return Ka(this.gridOptions.suppressFieldDotNotation)},e.prototype.getPinnedTopRowData=function(){return this.gridOptions.pinnedTopRowData},e.prototype.getPinnedBottomRowData=function(){return this.gridOptions.pinnedBottomRowData},e.prototype.isFunctionsPassive=function(){return Ka(this.gridOptions.functionsPassive)},e.prototype.isSuppressChangeDetection=function(){return Ka(this.gridOptions.suppressChangeDetection)},e.prototype.isSuppressAnimationFrame=function(){return Ka(this.gridOptions.suppressAnimationFrame)},e.prototype.getQuickFilterText=function(){return this.gridOptions.quickFilterText},e.prototype.isCacheQuickFilter=function(){return Ka(this.gridOptions.cacheQuickFilter)},e.prototype.isUnSortIcon=function(){return Ka(this.gridOptions.unSortIcon)},e.prototype.isSuppressMenuHide=function(){return Ka(this.gridOptions.suppressMenuHide)},e.prototype.isEnterMovesDownAfterEdit=function(){return Ka(this.gridOptions.enterMovesDownAfterEdit)},e.prototype.isEnterMovesDown=function(){return Ka(this.gridOptions.enterMovesDown)},e.prototype.isUndoRedoCellEditing=function(){return Ka(this.gridOptions.undoRedoCellEditing)},e.prototype.getUndoRedoCellEditingLimit=function(){return $a(this.gridOptions.undoRedoCellEditingLimit)},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.getServerSideStoreType=function(){return this.gridOptions.serverSideStoreType},e.prototype.getServerSideStoreParamsFunc=function(){return this.gridOptions.getServerSideStoreParams},e.prototype.getCreateChartContainerFunc=function(){return this.gridOptions.createChartContainer},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.getPaginationNumberFormatterFunc=function(){return this.gridOptions.paginationNumberFormatter},e.prototype.getChildCountFunc=function(){return this.gridOptions.getChildCount},e.prototype.getIsApplyServerSideTransactionFunc=function(){return this.gridOptions.isApplyServerSideTransaction},e.prototype.getDefaultGroupOrderComparator=function(){return this.gridOptions.defaultGroupOrderComparator},e.prototype.getIsFullWidthCellFunc=function(){return this.gridOptions.isFullWidthCell},e.prototype.getFullWidthCellRendererParams=function(){return this.gridOptions.fullWidthCellRendererParams},e.prototype.isEmbedFullWidthRows=function(){return Ka(this.gridOptions.embedFullWidthRows)||Ka(this.gridOptions.deprecatedEmbedFullWidthRows)},e.prototype.isDetailRowAutoHeight=function(){return Ka(this.gridOptions.detailRowAutoHeight)},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.isImmutableData=function(){return Ka(this.gridOptions.immutableData)},e.prototype.isEnsureDomOrder=function(){return Ka(this.gridOptions.ensureDomOrder)},e.prototype.isEnableCharts=function(){return!!Ka(this.gridOptions.enableCharts)&&xe.assertRegistered(t.ModuleNames.GridChartsModule,"enableCharts")},e.prototype.getColResizeDefault=function(){return this.gridOptions.colResizeDefault},e.prototype.isSingleClickEdit=function(){return Ka(this.gridOptions.singleClickEdit)},e.prototype.isSuppressClickEdit=function(){return Ka(this.gridOptions.suppressClickEdit)},e.prototype.isStopEditingWhenCellsLoseFocus=function(){return Ka(this.gridOptions.stopEditingWhenCellsLoseFocus)},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 $a(this.gridOptions.paginationPageSize)},e.prototype.isPaginateChildRows=function(){return!(!this.isGroupRemoveSingleChildren()&&!this.isGroupRemoveLowestSingleChildren())||Ka(this.gridOptions.paginateChildRows)},e.prototype.getCacheBlockSize=function(){return Qa(this.gridOptions.cacheBlockSize)},e.prototype.getInfiniteInitialRowCount=function(){return this.gridOptions.infiniteInitialRowCount},e.prototype.isPurgeClosedRowNodes=function(){return Ka(this.gridOptions.purgeClosedRowNodes)},e.prototype.isSuppressPaginationPanel=function(){return Ka(this.gridOptions.suppressPaginationPanel)},e.prototype.getRowData=function(){return this.gridOptions.rowData},e.prototype.isEnableRtl=function(){return Ka(this.gridOptions.enableRtl)},e.prototype.getRowGroupPanelShow=function(){return this.gridOptions.rowGroupPanelShow},e.prototype.getPivotPanelShow=function(){return this.gridOptions.pivotPanelShow},e.prototype.isAngularCompileRows=function(){return Ka(this.gridOptions.angularCompileRows)},e.prototype.isAngularCompileFilters=function(){return Ka(this.gridOptions.angularCompileFilters)},e.prototype.isDebug=function(){return Ka(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 Ka(this.gridOptions.accentedSort)},e.prototype.isEnableBrowserTooltips=function(){return Ka(this.gridOptions.enableBrowserTooltips)},e.prototype.isEnableCellExpressions=function(){return Ka(this.gridOptions.enableCellExpressions)},e.prototype.isEnableGroupEdit=function(){return Ka(this.gridOptions.enableGroupEdit)},e.prototype.isSuppressMiddleClickScrolls=function(){return Ka(this.gridOptions.suppressMiddleClickScrolls)},e.prototype.isPreventDefaultOnContextMenu=function(){return Ka(this.gridOptions.preventDefaultOnContextMenu)},e.prototype.isSuppressPreventDefaultOnMouseWheel=function(){return Ka(this.gridOptions.suppressPreventDefaultOnMouseWheel)},e.prototype.isSuppressColumnVirtualisation=function(){return Ka(this.gridOptions.suppressColumnVirtualisation)},e.prototype.isSuppressContextMenu=function(){return Ka(this.gridOptions.suppressContextMenu)},e.prototype.isAllowContextMenuWithControlKey=function(){return Ka(this.gridOptions.allowContextMenuWithControlKey)},e.prototype.isSuppressCopyRowsToClipboard=function(){return Ka(this.gridOptions.suppressCopyRowsToClipboard)},e.prototype.isCopyHeadersToClipboard=function(){return Ka(this.gridOptions.copyHeadersToClipboard)},e.prototype.isSuppressClipboardPaste=function(){return Ka(this.gridOptions.suppressClipboardPaste)},e.prototype.isSuppressLastEmptyLineOnPaste=function(){return Ka(this.gridOptions.suppressLastEmptyLineOnPaste)},e.prototype.isPagination=function(){return Ka(this.gridOptions.pagination)},e.prototype.isSuppressEnterpriseResetOnNewColumns=function(){return Ka(this.gridOptions.suppressEnterpriseResetOnNewColumns)},e.prototype.getProcessDataFromClipboardFunc=function(){return this.gridOptions.processDataFromClipboard},e.prototype.getAsyncTransactionWaitMillis=function(){return o(this.gridOptions.asyncTransactionWaitMillis)?this.gridOptions.asyncTransactionWaitMillis:Ce.BATCH_WAIT_MILLIS},e.prototype.isSuppressMovableColumns=function(){return Ka(this.gridOptions.suppressMovableColumns)},e.prototype.isAnimateRows=function(){return!this.isEnsureDomOrder()&&Ka(this.gridOptions.animateRows)},e.prototype.isSuppressColumnMoveAnimation=function(){return Ka(this.gridOptions.suppressColumnMoveAnimation)},e.prototype.isSuppressAggFuncInHeader=function(){return Ka(this.gridOptions.suppressAggFuncInHeader)},e.prototype.isSuppressAggAtRootLevel=function(){return Ka(this.gridOptions.suppressAggAtRootLevel)},e.prototype.isSuppressAggFilteredOnly=function(){return Ka(this.gridOptions.suppressAggFilteredOnly)},e.prototype.isShowOpenedGroup=function(){return Ka(this.gridOptions.showOpenedGroup)},e.prototype.isReactUi=function(){return Ka(this.gridOptions.reactUi)},e.prototype.isEnableRangeSelection=function(){return xe.isRegistered(t.ModuleNames.RangeSelectionModule)&&Ka(this.gridOptions.enableRangeSelection)},e.prototype.isEnableRangeHandle=function(){return Ka(this.gridOptions.enableRangeHandle)},e.prototype.isEnableFillHandle=function(){return Ka(this.gridOptions.enableFillHandle)},e.prototype.getFillHandleDirection=function(){var e=this.gridOptions.fillHandleDirection;return e?"x"!==e&&"y"!==e&&"xy"!==e?(K((function(){return console.warn("AG Grid: valid values for fillHandleDirection are 'x', 'y' and 'xy'. Default to 'xy'.")}),"warn invalid fill direction"),"xy"):e:"xy"},e.prototype.getFillOperation=function(){return this.gridOptions.fillOperation},e.prototype.isSuppressMultiRangeSelection=function(){return Ka(this.gridOptions.suppressMultiRangeSelection)},e.prototype.isPaginationAutoPageSize=function(){return Ka(this.gridOptions.paginationAutoPageSize)},e.prototype.isRememberGroupStateWhenNewData=function(){return Ka(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(){return!!Ka(this.gridOptions.masterDetail)&&xe.assertRegistered(t.ModuleNames.MasterDetailModule,"masterDetail")},e.prototype.isKeepDetailRows=function(){return Ka(this.gridOptions.keepDetailRows)},e.prototype.getKeepDetailRowsCount=function(){var e=this.gridOptions.keepDetailRowsCount;return o(e)&&e>0?this.gridOptions.keepDetailRowsCount:10},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 Ka(this.gridOptions.suppressAutoSize)},e.prototype.isEnableCellTextSelection=function(){return Ka(this.gridOptions.enableCellTextSelection)},e.prototype.isSuppressParentsInRowNodes=function(){return Ka(this.gridOptions.suppressParentsInRowNodes)},e.prototype.isSuppressClipboardApi=function(){return Ka(this.gridOptions.suppressClipboardApi)},e.prototype.isFunctionsReadOnly=function(){return Ka(this.gridOptions.functionsReadOnly)},e.prototype.isFloatingFilter=function(){return this.gridOptions.floatingFilter},e.prototype.isEnableCellTextSelect=function(){return Ka(this.gridOptions.enableCellTextSelection)},e.prototype.isEnableOldSetFilterModel=function(){return Ka(this.gridOptions.enableOldSetFilterModel)},e.prototype.getDefaultColDef=function(){return this.gridOptions.defaultColDef},e.prototype.getDefaultColGroupDef=function(){return this.gridOptions.defaultColGroupDef},e.prototype.getDefaultExportParams=function(e){return this.gridOptions.defaultExportParams?(console.warn("AG Grid: Since v25.2 `defaultExportParams` has been replaced by `default"+rt(e)+"ExportParams`'"),this.gridOptions.defaultExportParams):"csv"===e&&this.gridOptions.defaultCsvExportParams?this.gridOptions.defaultCsvExportParams:"excel"===e&&this.gridOptions.defaultExcelExportParams?this.gridOptions.defaultExcelExportParams:void 0},e.prototype.isSuppressCsvExport=function(){return Ka(this.gridOptions.suppressCsvExport)},e.prototype.isAllowShowChangeAfterFilter=function(){return Ka(this.gridOptions.allowShowChangeAfterFilter)},e.prototype.isSuppressExcelExport=function(){return Ka(this.gridOptions.suppressExcelExport)},e.prototype.isSuppressMakeColumnVisibleAfterUnGroup=function(){return Ka(this.gridOptions.suppressMakeColumnVisibleAfterUnGroup)},e.prototype.getDataPathFunc=function(){return this.gridOptions.getDataPath},e.prototype.getIsServerSideGroupFunc=function(){return this.gridOptions.isServerSideGroup},e.prototype.getIsServerSideGroupOpenByDefaultFunc=function(){return this.gridOptions.isServerSideGroupOpenByDefault},e.prototype.getIsGroupOpenByDefaultFunc=function(){return this.gridOptions.isGroupOpenByDefault},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.getNavigateToNextHeaderFunc=function(){return this.gridOptions.navigateToNextHeader},e.prototype.getTabToNextHeaderFunc=function(){return this.gridOptions.tabToNextHeader},e.prototype.getNavigateToNextCellFunc=function(){return this.gridOptions.navigateToNextCell},e.prototype.getTabToNextCellFunc=function(){return this.gridOptions.tabToNextCell},e.prototype.getGridTabIndex=function(){return(this.gridOptions.tabIndex||0).toString()},e.prototype.isTreeData=function(){return!!Ka(this.gridOptions.treeData)&&xe.assertRegistered(t.ModuleNames.RowGroupingModule,"Tree Data")},e.prototype.isValueCache=function(){return Ka(this.gridOptions.valueCache)},e.prototype.isValueCacheNeverExpires=function(){return Ka(this.gridOptions.valueCacheNeverExpires)},e.prototype.isDeltaSort=function(){return Ka(this.gridOptions.deltaSort)},e.prototype.isAggregateOnlyChangedColumns=function(){return Ka(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 Qa(this.gridOptions.viewportRowModelPageSize,5)},e.prototype.getViewportRowModelBufferSize=function(){return e=this.gridOptions.viewportRowModelBufferSize,t=5,e>=0?e:t;var e,t},e.prototype.isServerSideSortingAlwaysResets=function(){return Ka(this.gridOptions.serverSideSortingAlwaysResets)},e.prototype.isServerSideFilteringAlwaysResets=function(){return Ka(this.gridOptions.serverSideFilteringAlwaysResets)},e.prototype.getPostSortFunc=function(){return this.gridOptions.postSort},e.prototype.getChartToolbarItemsFunc=function(){return this.gridOptions.getChartToolbarItems},e.prototype.getChartThemeOverrides=function(){return this.gridOptions.chartThemeOverrides},e.prototype.getCustomChartThemes=function(){return this.gridOptions.customChartThemes},e.prototype.getChartThemes=function(){return this.gridOptions.chartThemes||["ag-default","ag-material","ag-pastel","ag-vivid","ag-solar"]},e.prototype.getClipboardDeliminator=function(){return o(this.gridOptions.clipboardDeliminator)?this.gridOptions.clipboardDeliminator:"\t"},e.prototype.setProperty=function(e,t,n){void 0===n&&(n=!1);var r=this.gridOptions,o=r[e];if(n||o!==t){r[e]=t;var i={type:e,currentValue:t,previousValue:o};this.propertyEventService.dispatchEvent(i)}},e.prototype.addEventListener=function(e,t){this.propertyEventService.addEventListener(e,t)},e.prototype.removeEventListener=function(e,t){this.propertyEventService.removeEventListener(e,t)},e.prototype.isSkipHeaderOnAutoSize=function(){return!!this.gridOptions.skipHeaderOnAutoSize},e.prototype.getAutoSizePadding=function(){var e=this.gridOptions.autoSizePadding;return null!=e&&e>=0?e:20},e.prototype.getHeaderHeight=function(){return"number"===typeof this.gridOptions.headerHeight?this.gridOptions.headerHeight:this.getFromTheme(25,"headerHeight")},e.prototype.getFloatingFiltersHeight=function(){return"number"===typeof this.gridOptions.floatingFiltersHeight?this.gridOptions.floatingFiltersHeight:this.getFromTheme(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.getTooltipShowDelay=function(){var e=this.gridOptions.tooltipShowDelay;return o(e)?(e<0&&console.warn("ag-grid: tooltipShowDelay should not be lower than 0"),Math.max(200,e)):null},e.prototype.isTooltipMouseTrack=function(){return Ka(this.gridOptions.tooltipMouseTrack)},e.prototype.isSuppressModelUpdateAfterUpdateTransaction=function(){return Ka(this.gridOptions.suppressModelUpdateAfterUpdateTransaction)},e.prototype.getDocument=function(){var e=null;return this.gridOptions.getDocument&&o(this.gridOptions.getDocument)&&(e=this.gridOptions.getDocument()),e&&o(e)?e:document},e.prototype.getMinColWidth=function(){var e=this.gridOptions.minColWidth;if(o(e)&&e>n.MIN_COL_WIDTH)return this.gridOptions.minColWidth;var t=this.getFromTheme(null,"headerCellMinWidth");return o(t)?Math.max(t,n.MIN_COL_WIDTH):n.MIN_COL_WIDTH},e.prototype.getMaxColWidth=function(){return this.gridOptions.maxColWidth&&this.gridOptions.maxColWidth>n.MIN_COL_WIDTH?this.gridOptions.maxColWidth:null},e.prototype.getColWidth=function(){return"number"!==typeof this.gridOptions.colWidth||this.gridOptions.colWidth=0?this.gridOptions.scrollbarWidth:nn();null!=e&&(this.scrollbarWidth=e,this.eventService.dispatchEvent({type:Ke.EVENT_SCROLLBAR_WIDTH_CHANGED}))}return this.scrollbarWidth},e.prototype.checkForDeprecated=function(){var e=this.gridOptions;e.deprecatedEmbedFullWidthRows&&console.warn("AG Grid: since v21.2, deprecatedEmbedFullWidthRows has been replaced with embedFullWidthRows."),e.enableOldSetFilterModel&&console.warn("AG Grid: since v22.x, enableOldSetFilterModel is deprecated. Please move to the new Set Filter Model as the old one may not be supported in v23 onwards."),e.floatingFilter&&(console.warn("AG Grid: since v23.1, floatingFilter on the gridOptions is deprecated. Please use floatingFilter on the colDef instead."),e.defaultColDef||(e.defaultColDef={}),null==e.defaultColDef.floatingFilter&&(e.defaultColDef.floatingFilter=!0)),e.rowDeselection&&console.warn("AG Grid: since v24.x, rowDeselection is deprecated and the behaviour is true by default. Please use `suppressRowDeselection` to prevent rows from being deselected."),e.enableMultiRowDragging&&(e.rowDragMultiRow=!0,delete e.enableMultiRowDragging,console.warn("AG Grid: since v26.1, `enableMultiRowDragging` is deprecated. Please use `rowDragMultiRow`."));var t=function(t,n,r){null!=e[t]&&(console.warn("ag-grid: since version "+r+", '"+t+"' is deprecated / renamed, please use the new property name '"+n+"' instead."),null==e[n]&&(e[n]=e[t]))};if(t("batchUpdateWaitMillis","asyncTransactionWaitMillis","23.1.x"),t("deltaRowDataMode","immutableData","23.1.x"),(e.immutableColumns||e.deltaColumnMode)&&console.warn("AG Grid: since v24.0, immutableColumns and deltaColumnMode properties are gone. The grid now works like this as default. To keep column order maintained, set grid property applyColumnDefOrder=true"),t("suppressSetColumnStateEvents","suppressColumnStateEvents","24.0.x"),e.groupRowInnerRenderer||e.groupRowInnerRendererParams||e.groupRowInnerRendererFramework){console.warn("AG Grid: since v24.0, grid properties groupRowInnerRenderer, groupRowInnerRendererFramework and groupRowInnerRendererParams are no longer used."),console.warn(" Instead use the grid properties groupRowRendererParams.innerRenderer, groupRowRendererParams.innerRendererFramework and groupRowRendererParams.innerRendererParams."),console.warn(" For example instead of this:"),console.warn(' groupRowInnerRenderer: "myRenderer"'),console.warn(" groupRowInnerRendererParams: {x: a}"),console.warn(" Replace with this:"),console.warn(" groupRowRendererParams: {"),console.warn(' innerRenderer: "myRenderer",'),console.warn(" innerRendererParams: {x: a}"),console.warn(" }"),console.warn(" We have copied the properties over for you. However to stop this error message, please change your application code."),e.groupRowRendererParams||(e.groupRowRendererParams={});var n=e.groupRowRendererParams;e.groupRowInnerRenderer&&(n.innerRenderer=e.groupRowInnerRenderer),e.groupRowInnerRendererParams&&(n.innerRendererParams=e.groupRowInnerRendererParams),e.groupRowInnerRendererFramework&&(n.innerRendererFramework=e.groupRowInnerRendererFramework)}if(e.rememberGroupStateWhenNewData&&console.warn("AG Grid: since v24.0, grid property rememberGroupStateWhenNewData is deprecated. This feature was provided before Transaction Updates worked (which keep group state). Now that transaction updates are possible and they keep group state, this feature is no longer needed."),e.detailCellRendererParams&&e.detailCellRendererParams.autoHeight&&(console.warn("AG Grid: since v24.1, grid property detailCellRendererParams.autoHeight is replaced with grid property detailRowAutoHeight. This allows this feature to work when you provide a custom DetailCellRenderer"),e.detailRowAutoHeight=!0),e.suppressKeyboardEvent&&console.warn("AG Grid: since v24.1 suppressKeyboardEvent in the gridOptions has been deprecated and will be removed in\n future versions of AG Grid. If you need this to be set for every column use the defaultColDef property."),e.suppressEnterpriseResetOnNewColumns&&console.warn("AG Grid: since v25, grid property suppressEnterpriseResetOnNewColumns is deprecated. This was a temporary property to allow changing columns in Server Side Row Model without triggering a reload. Now that it is possible to dynamically change columns in the grid, this is no longer needed."),e.suppressColumnStateEvents&&console.warn('AG Grid: since v25, grid property suppressColumnStateEvents no longer works due to a refactor that we did. It should be possible to achieve similar using event.source, which would be "api" if the event was due to setting column state via the API'),e.defaultExportParams&&console.warn("AG Grid: since v25.2, the grid property `defaultExportParams` has been replaced by `defaultCsvExportParams` and `defaultExcelExportParams`."),e.stopEditingWhenGridLosesFocus&&(console.warn("AG Grid: since v25.2.2, the grid property `stopEditingWhenGridLosesFocus` has been replaced by `stopEditingWhenCellsLoseFocus`."),e.stopEditingWhenCellsLoseFocus=!0),e.applyColumnDefOrder&&console.warn("AG Grid: since v26.0, the grid property `applyColumnDefOrder` is no longer needed, as this is the default behaviour. To turn this behaviour off, set maintainColumnOrder=true"),e.groupMultiAutoColumn&&(console.warn("AG Grid: since v26.0, the grid property `groupMultiAutoColumn` has been replaced by `groupDisplayType = 'multipleColumns'`"),e.groupDisplayType="multipleColumns"),e.groupUseEntireRow&&(console.warn("AG Grid: since v26.0, the grid property `groupUseEntireRow` has been replaced by `groupDisplayType = 'groupRows'`"),e.groupDisplayType="groupRows"),e.groupSuppressAutoColumn){var r=e.treeData?"treeDataDisplayType":"groupDisplayType";console.warn("AG Grid: since v26.0, the grid property `groupSuppressAutoColumn` has been replaced by `"+r+" = 'custom'`"),e.groupDisplayType="custom"}e.defaultGroupSortComparator&&(console.warn("AG Grid: since v26.0, the grid property `defaultGroupSortComparator` has been replaced by `defaultGroupOrderComparator`"),e.defaultGroupOrderComparator=e.defaultGroupSortComparator),e.colWidth&&console.warn("AG Grid: since v26.1, the grid property `colWidth` is deprecated and should be set via `defaultColDef.width`."),e.minColWidth&&console.warn("AG Grid: since v26.1, the grid property `minColWidth` is deprecated and should be set via `defaultColDef.minWidth`."),e.maxColWidth&&console.warn("AG Grid: since v26.1, the grid property `maxColWidth` is deprecated and should be set via `defaultColDef.maxWidth`.")},e.prototype.checkForViolations=function(){this.isTreeData()&&this.treeDataViolations()},e.prototype.treeDataViolations=function(){this.isRowModelDefault()&&i(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()&&(i(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."),i(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.gridOptions.localeText;return function(t,n){return e&&e[t]?e[t]:n}},e.prototype.globalEventHandler=function(e,t){if(!this.destroyed){var n=Dt.getCallbackForEvent(e);"function"===typeof this.gridOptions[n]&&this.gridOptions[n](t)}},e.prototype.getRowHeightAsNumber=function(){return!this.gridOptions.rowHeight||i(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,n){if(void 0===t&&(t=!1),null==n&&(n=this.getDefaultRowHeight()),"function"===typeof this.gridOptions.getRowHeight){if(t)return{height:n,estimated:!0};var r={node:e,data:e.data,api:this.gridOptions.api,context:this.gridOptions.context},o=this.gridOptions.getRowHeight(r);if(this.isNumeric(o))return 0===o&&K((function(){return console.warn("AG Grid: The return of `getRowHeight` cannot be zero. If the intention is to hide rows, use a filter instead.")}),"invalidRowHeight"),{height:Math.max(1,o),estimated:!1}}return e.detail&&this.isMasterDetail()?this.isNumeric(this.gridOptions.detailRowHeight)?{height:this.gridOptions.detailRowHeight,estimated:!1}:{height:300,estimated:!1}:{height:this.gridOptions.rowHeight&&this.isNumeric(this.gridOptions.rowHeight)?this.gridOptions.rowHeight:n,estimated:!1}},e.prototype.isDynamicRowHeight=function(){return"function"===typeof this.gridOptions.getRowHeight},e.prototype.getListItemHeight=function(){return this.getFromTheme(20,"listItemHeight")},e.prototype.chartMenuPanelWidth=function(){return this.environment.chartMenuPanelWidth()},e.prototype.isNumeric=function(e){return!isNaN(e)&&"number"===typeof e&&isFinite(e)},e.prototype.getFromTheme=function(e,t){var n=this.environment.getTheme().theme;return n&&0===n.indexOf("ag-theme")?this.environment.getSassVariable(n,t):e},e.prototype.getDefaultRowHeight=function(){return this.getFromTheme(25,"rowHeight")},e.prototype.matchesGroupDisplayType=function(e,t){var n=["groupRows","multipleColumns","custom","singleColumn"];return n.indexOf(t)<0?(console.warn("AG Grid: '"+t+"' is not a valid groupDisplayType value - possible values are: '"+n.join("', '")+"'"),!1):t===e},e.prototype.matchesTreeDataDisplayType=function(e,t){var n=["auto","custom"];return n.indexOf(t)<0?(console.warn("AG Grid: '"+t+"' is not a valid treeDataDisplayType value - possible values are: '"+n.join("', '")+"'"),!1):t===e},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_NAVIGATE_TO_NEXT_CELL="navigateToNextCell",e.PROP_TAB_TO_NEXT_CELL="tabToNextCell",e.PROP_NAVIGATE_TO_NEXT_HEADER="navigateToNextHeader",e.PROP_TAB_TO_NEXT_HEADER="tabToNextHeader",e.PROP_IS_EXTERNAL_FILTER_PRESENT="isExternalFilterPresent",e.PROP_DOES_EXTERNAL_FILTER_PASS="doesExternalFilterPass",e.PROP_FLOATING_FILTERS_HEIGHT="floatingFiltersHeight",e.PROP_SUPPRESS_ROW_CLICK_SELECTION="suppressRowClickSelection",e.PROP_SUPPRESS_ROW_DRAG="suppressRowDrag",e.PROP_SUPPRESS_MOVE_WHEN_ROW_DRAG="suppressMoveWhenRowDragging",e.PROP_GET_ROW_CLASS="getRowClass",e.PROP_GET_ROW_STYLE="getRowStyle",e.PROP_GET_ROW_HEIGHT="getRowHeight",e.PROP_POPUP_PARENT="popupParent",e.PROP_DOM_LAYOUT="domLayout",e.PROP_FILL_HANDLE_DIRECTION="fillHandleDirection",e.PROP_GROUP_ROW_AGG_NODES="groupRowAggNodes",e.PROP_GET_BUSINESS_KEY_FOR_NODE="getBusinessKeyForNode",e.PROP_GET_CHILD_COUNT="getChildCount",e.PROP_PROCESS_ROW_POST_CREATE="processRowPostCreate",e.PROP_GET_ROW_NODE_ID="getRowNodeId",e.PROP_IS_FULL_WIDTH_CELL="isFullWidthCell",e.PROP_IS_ROW_SELECTABLE="isRowSelectable",e.PROP_IS_ROW_MASTER="isRowMaster",e.PROP_POST_SORT="postSort",e.PROP_GET_DOCUMENT="getDocument",e.PROP_POST_PROCESS_POPUP="postProcessPopup",e.PROP_DEFAULT_GROUP_ORDER_COMPARATOR="defaultGroupOrderComparator",e.PROP_PAGINATION_NUMBER_FORMATTER="paginationNumberFormatter",e.PROP_GET_CONTEXT_MENU_ITEMS="getContextMenuItems",e.PROP_GET_MAIN_MENU_ITEMS="getMainMenuItems",e.PROP_PROCESS_CELL_FOR_CLIPBOARD="processCellForClipboard",e.PROP_PROCESS_CELL_FROM_CLIPBOARD="processCellFromClipboard",e.PROP_SEND_TO_CLIPBOARD="sendToClipboard",e.PROP_PROCESS_TO_SECONDARY_COLDEF="processSecondaryColDef",e.PROP_PROCESS_SECONDARY_COL_GROUP_DEF="processSecondaryColGroupDef",e.PROP_GET_CHART_TOOLBAR_ITEMS="getChartToolbarItems",e.PROP_GET_SERVER_SIDE_STORE_PARAMS="getServerSideStoreParams",e.PROP_IS_SERVER_SIDE_GROUPS_OPEN_BY_DEFAULT="isServerSideGroupOpenByDefault",e.PROP_IS_APPLY_SERVER_SIDE_TRANSACTION="isApplyServerSideTransaction",e.PROP_IS_SERVER_SIDE_GROUP="isServerSideGroup",e.PROP_GET_SERVER_SIDE_GROUP_KEY="getServerSideGroupKey",Ya([de("gridOptions")],e.prototype,"gridOptions",void 0),Ya([de("eventService")],e.prototype,"eventService",void 0),Ya([de("environment")],e.prototype,"environment",void 0),Ya([Xa(0,ge("gridApi")),Xa(1,ge("columnApi"))],e.prototype,"agWire",null),Ya([ue],e.prototype,"destroy",null),Ya([ce],e.prototype,"init",null),e=n=Ya([pe("gridOptionsWrapper")],e)}(),ts=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 n=0;n=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},os=function(e,t){return function(n,r){t(n,r,e)}},is=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return ns(t,e),t.prototype.setBeans=function(e){this.logger=e.create("selectionService"),this.reset(),this.gridOptionsWrapper.isRowModelDefault()&&this.addManagedListener(this.eventService,Ke.EVENT_ROW_DATA_CHANGED,this.reset.bind(this))},t.prototype.init=function(){this.groupSelectsChildren=this.gridOptionsWrapper.isGroupSelectsChildren(),this.addManagedListener(this.eventService,Ke.EVENT_ROW_SELECTED,this.onRowSelected.bind(this))},t.prototype.setLastSelectedNode=function(e){this.lastSelectedNode=e},t.prototype.getLastSelectedNode=function(){return this.lastSelectedNode},t.prototype.getSelectedNodes=function(){var e=[];return k(this.selectedNodes,(function(t,n){n&&e.push(n)})),e},t.prototype.getSelectedRows=function(){var e=[];return k(this.selectedNodes,(function(t,n){n&&n.data&&e.push(n.data)})),e},t.prototype.removeGroupsFromSelection=function(){var e=this;k(this.selectedNodes,(function(t,n){n&&n.group&&(e.selectedNodes[n.id]=void 0)}))},t.prototype.updateGroupsFromChildrenSelections=function(e){if(this.gridOptionsWrapper.isGroupSelectsChildren()&&this.rowModel.getType()===Ce.ROW_MODEL_TYPE_CLIENT_SIDE){var t=this.rowModel.getRootNode();e||(e=new ts(!0,t)).setInactive(),e.forEachChangedNodeDepthFirst((function(e){e!==t&&e.calculateSelectedFromChildren()}))}},t.prototype.getNodeForIdIfSelected=function(e){return this.selectedNodes[e]},t.prototype.clearOtherNodes=function(e){var t=this,n={},r=0;return k(this.selectedNodes,(function(o,i){if(i&&i.id!==e.id){var a=t.selectedNodes[i.id];r+=a.setSelectedParams({newValue:!1,clearSelection:!1,suppressFinishActions:!0}),t.groupSelectsChildren&&i.parent&&(n[i.parent.id]=i.parent)}})),k(n,(function(e,t){t.calculateSelectedFromChildren()})),r},t.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)},t.prototype.syncInRowNode=function(e,t){this.syncInOldRowNode(e,t),this.syncInNewRowNode(e)},t.prototype.syncInOldRowNode=function(e,t){if(o(t)&&e.id!==t.id&&t){var n=t.id;this.selectedNodes[n]==e&&(this.selectedNodes[t.id]=t)}},t.prototype.syncInNewRowNode=function(e){o(this.selectedNodes[e.id])?(e.setSelectedInitialValue(!0),this.selectedNodes[e.id]=e):e.setSelectedInitialValue(!1)},t.prototype.reset=function(){this.logger.log("reset"),this.selectedNodes={},this.lastSelectedNode=null},t.prototype.getBestCostNodeSelection=function(){if(this.rowModel.getType()===Ce.ROW_MODEL_TYPE_CLIENT_SIDE){var e=this.rowModel.getTopLevelNodes();if(null!==e){var t=[];return function e(n){for(var r=0,o=n.length;r=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},ss=function(){function e(){}return e.prototype.sizeColumnsToFit=function(e){"undefined"===typeof e&&console.error("AG Grid: missing parameter to columnApi.sizeColumnsToFit(gridWidth)"),this.columnModel.sizeColumnsToFit(e,"api")},e.prototype.setColumnGroupOpened=function(e,t){this.columnModel.setColumnGroupOpened(e,t,"api")},e.prototype.getColumnGroup=function(e,t){return this.columnModel.getColumnGroup(e,t)},e.prototype.getOriginalColumnGroup=function(e){return this.columnModel.getOriginalColumnGroup(e)},e.prototype.getDisplayNameForColumn=function(e,t){return this.columnModel.getDisplayNameForColumn(e,t)||""},e.prototype.getDisplayNameForColumnGroup=function(e,t){return this.columnModel.getDisplayNameForColumnGroup(e,t)||""},e.prototype.getColumn=function(e){return this.columnModel.getPrimaryColumn(e)},e.prototype.applyColumnState=function(e){return this.columnModel.applyColumnState(e,"api")},e.prototype.getColumnState=function(){return this.columnModel.getColumnState()},e.prototype.resetColumnState=function(){this.columnModel.resetColumnState("api")},e.prototype.getColumnGroupState=function(){return this.columnModel.getColumnGroupState()},e.prototype.setColumnGroupState=function(e){this.columnModel.setColumnGroupState(e,"api")},e.prototype.resetColumnGroupState=function(){this.columnModel.resetColumnGroupState("api")},e.prototype.isPinning=function(){return this.columnModel.isPinningLeft()||this.columnModel.isPinningRight()},e.prototype.isPinningLeft=function(){return this.columnModel.isPinningLeft()},e.prototype.isPinningRight=function(){return this.columnModel.isPinningRight()},e.prototype.getDisplayedColAfter=function(e){return this.columnModel.getDisplayedColAfter(e)},e.prototype.getDisplayedColBefore=function(e){return this.columnModel.getDisplayedColBefore(e)},e.prototype.setColumnVisible=function(e,t){this.columnModel.setColumnVisible(e,t,"api")},e.prototype.setColumnsVisible=function(e,t){this.columnModel.setColumnsVisible(e,t,"api")},e.prototype.setColumnPinned=function(e,t){this.columnModel.setColumnPinned(e,t,"api")},e.prototype.setColumnsPinned=function(e,t){this.columnModel.setColumnsPinned(e,t,"api")},e.prototype.getAllColumns=function(){return this.columnModel.getAllPrimaryColumns()},e.prototype.getAllGridColumns=function(){return this.columnModel.getAllGridColumns()},e.prototype.getDisplayedLeftColumns=function(){return this.columnModel.getDisplayedLeftColumns()},e.prototype.getDisplayedCenterColumns=function(){return this.columnModel.getDisplayedCenterColumns()},e.prototype.getDisplayedRightColumns=function(){return this.columnModel.getDisplayedRightColumns()},e.prototype.getAllDisplayedColumns=function(){return this.columnModel.getAllDisplayedColumns()},e.prototype.getAllDisplayedVirtualColumns=function(){return this.columnModel.getViewportColumns()},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.columnModel.moveColumnByIndex(e,t,"api")):this.columnModel.moveColumn(e,t,"api")},e.prototype.moveColumnByIndex=function(e,t){this.columnModel.moveColumnByIndex(e,t,"api")},e.prototype.moveColumns=function(e,t){this.columnModel.moveColumns(e,t,"api")},e.prototype.moveRowGroupColumn=function(e,t){this.columnModel.moveRowGroupColumn(e,t)},e.prototype.setColumnAggFunc=function(e,t){this.columnModel.setColumnAggFunc(e,t)},e.prototype.setColumnWidth=function(e,t,n,r){void 0===n&&(n=!0),this.columnModel.setColumnWidths([{key:e,newWidth:t}],!1,n,r)},e.prototype.setColumnWidths=function(e,t,n){void 0===t&&(t=!0),this.columnModel.setColumnWidths(e,!1,t,n)},e.prototype.setPivotMode=function(e){this.columnModel.setPivotMode(e)},e.prototype.isPivotMode=function(){return this.columnModel.isPivotMode()},e.prototype.getSecondaryPivotColumn=function(e,t){return this.columnModel.getSecondaryPivotColumn(e,t)},e.prototype.setValueColumns=function(e){this.columnModel.setValueColumns(e,"api")},e.prototype.getValueColumns=function(){return this.columnModel.getValueColumns()},e.prototype.removeValueColumn=function(e){this.columnModel.removeValueColumn(e,"api")},e.prototype.removeValueColumns=function(e){this.columnModel.removeValueColumns(e,"api")},e.prototype.addValueColumn=function(e){this.columnModel.addValueColumn(e,"api")},e.prototype.addValueColumns=function(e){this.columnModel.addValueColumns(e,"api")},e.prototype.setRowGroupColumns=function(e){this.columnModel.setRowGroupColumns(e,"api")},e.prototype.removeRowGroupColumn=function(e){this.columnModel.removeRowGroupColumn(e,"api")},e.prototype.removeRowGroupColumns=function(e){this.columnModel.removeRowGroupColumns(e,"api")},e.prototype.addRowGroupColumn=function(e){this.columnModel.addRowGroupColumn(e,"api")},e.prototype.addRowGroupColumns=function(e){this.columnModel.addRowGroupColumns(e,"api")},e.prototype.getRowGroupColumns=function(){return this.columnModel.getRowGroupColumns()},e.prototype.setPivotColumns=function(e){this.columnModel.setPivotColumns(e,"api")},e.prototype.removePivotColumn=function(e){this.columnModel.removePivotColumn(e,"api")},e.prototype.removePivotColumns=function(e){this.columnModel.removePivotColumns(e,"api")},e.prototype.addPivotColumn=function(e){this.columnModel.addPivotColumn(e,"api")},e.prototype.addPivotColumns=function(e){this.columnModel.addPivotColumns(e,"api")},e.prototype.getPivotColumns=function(){return this.columnModel.getPivotColumns()},e.prototype.getLeftDisplayedColumnGroups=function(){return this.columnModel.getDisplayedTreeLeft()},e.prototype.getCenterDisplayedColumnGroups=function(){return this.columnModel.getDisplayedTreeCentre()},e.prototype.getRightDisplayedColumnGroups=function(){return this.columnModel.getDisplayedTreeRight()},e.prototype.getAllDisplayedColumnGroups=function(){return this.columnModel.getAllDisplayedTrees()},e.prototype.autoSizeColumn=function(e,t){return this.columnModel.autoSizeColumn(e,t,"api")},e.prototype.autoSizeColumns=function(e,t){return this.columnModel.autoSizeColumns(e,t,"api")},e.prototype.autoSizeAllColumns=function(e){this.columnModel.autoSizeAllColumns(e,"api")},e.prototype.setSecondaryColumns=function(e){this.columnModel.setSecondaryColumns(e,"api")},e.prototype.getSecondaryColumns=function(){return this.columnModel.getSecondaryColumns()},e.prototype.getPrimaryColumns=function(){return this.columnModel.getAllPrimaryColumns()},e.prototype.cleanDownReferencesToAvoidMemoryLeakInCaseApplicationIsKeepingReferenceToDestroyedGrid=function(){setTimeout(Xr.removeAllReferences.bind(window,this,"Column API"),100)},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.columnModel.setColumnsVisible(e,!t,"api")},e.prototype.hideColumn=function(e,t){console.error("AG Grid: hideColumn is deprecated, use setColumnVisible"),this.columnModel.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.columnModel.getValueColumns()},e.prototype.removeAggregationColumn=function(e){console.error("AG Grid: removeAggregationColumn is deprecated, use removeValueColumn"),this.columnModel.removeValueColumn(e,"api")},e.prototype.removeAggregationColumns=function(e){console.error("AG Grid: removeAggregationColumns is deprecated, use removeValueColumns"),this.columnModel.removeValueColumns(e,"api")},e.prototype.addAggregationColumn=function(e){console.error("AG Grid: addAggregationColumn is deprecated, use addValueColumn"),this.columnModel.addValueColumn(e,"api")},e.prototype.addAggregationColumns=function(e){console.error("AG Grid: addAggregationColumns is deprecated, use addValueColumns"),this.columnModel.addValueColumns(e,"api")},e.prototype.setColumnAggFunction=function(e,t){console.error("AG Grid: setColumnAggFunction is deprecated, use setColumnAggFunc"),this.columnModel.setColumnAggFunc(e,t,"api")},e.prototype.getDisplayNameForCol=function(e){return console.error("AG Grid: getDisplayNameForCol is deprecated, use getDisplayNameForColumn"),this.getDisplayNameForColumn(e,null)},e.prototype.setColumnState=function(e){return console.error("AG Grid: setColumnState is deprecated, use applyColumnState"),this.columnModel.applyColumnState({state:e,applyOrder:!0},"api")},as([de("columnModel")],e.prototype,"columnModel",void 0),as([ue],e.prototype,"cleanDownReferencesToAvoidMemoryLeakInCaseApplicationIsKeepingReferenceToDestroyedGrid",null),e=as([pe("columnApi")],e)}();(Za=t.SelectionHandleType||(t.SelectionHandleType={}))[Za.FILL=0]="FILL",Za[Za.RANGE=1]="RANGE",(Ja=t.CellRangeType||(t.CellRangeType={}))[Ja.VALUE=0]="VALUE",Ja[Ja.DIMENSION=1]="DIMENSION";var ls,cs="ag-cell-range-selected",us=function(){function e(e,t){this.beans=e,this.cellCtrl=t}return e.prototype.setComp=function(e){this.cellComp=e,this.onRangeSelectionChanged()},e.prototype.onRangeSelectionChanged=function(){this.rangeCount=this.beans.rangeService.getCellRangeCount(this.cellCtrl.getCellPosition()),this.hasChartRange=this.getHasChartRange(),this.cellComp.addOrRemoveCssClass(cs,0!==this.rangeCount),this.cellComp.addOrRemoveCssClass("ag-cell-range-selected-1",1===this.rangeCount),this.cellComp.addOrRemoveCssClass("ag-cell-range-selected-2",2===this.rangeCount),this.cellComp.addOrRemoveCssClass("ag-cell-range-selected-3",3===this.rangeCount),this.cellComp.addOrRemoveCssClass("ag-cell-range-selected-4",this.rangeCount>=4),this.cellComp.addOrRemoveCssClass("ag-cell-range-chart",this.hasChartRange),this.cellComp.setAriaSelected(this.rangeCount>0||void 0),this.cellComp.addOrRemoveCssClass("ag-cell-range-single-cell",this.isSingleCell()),this.updateRangeBorders(),this.refreshHandle()},e.prototype.updateRangeBorders=function(){var e=this.getRangeBorders(),t=this.isSingleCell(),n=!t&&e.top,r=!t&&e.right,o=!t&&e.bottom,i=!t&&e.left;this.cellComp.addOrRemoveCssClass("ag-cell-range-top",n),this.cellComp.addOrRemoveCssClass("ag-cell-range-right",r),this.cellComp.addOrRemoveCssClass("ag-cell-range-bottom",o),this.cellComp.addOrRemoveCssClass("ag-cell-range-left",i)},e.prototype.isSingleCell=function(){var e=this.beans.rangeService;return 1===this.rangeCount&&e&&!e.isMoreThanOneCell()},e.prototype.getHasChartRange=function(){var e=this.beans.rangeService;if(!this.rangeCount||!e)return!1;var n=e.getCellRanges();return n.length>0&&n.every((function(e){return S([t.CellRangeType.DIMENSION,t.CellRangeType.VALUE],e.type)}))},e.prototype.updateRangeBordersIfRangeCount=function(){this.rangeCount>0&&(this.updateRangeBorders(),this.refreshHandle())},e.prototype.getRangeBorders=function(){var e,t,n=this,r=this.beans.gridOptionsWrapper.isEnableRtl(),o=!1,i=!1,a=!1,s=!1,l=this.cellCtrl.getCellPosition().column,c=this.beans,u=c.rangeService,p=c.columnModel;r?(e=p.getDisplayedColAfter(l),t=p.getDisplayedColBefore(l)):(e=p.getDisplayedColBefore(l),t=p.getDisplayedColAfter(l));var d=u.getCellRanges().filter((function(e){return u.isCellInSpecificRange(n.cellCtrl.getCellPosition(),e)}));e||(s=!0),t||(i=!0);for(var h=0;h=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},ys=function(){function e(){}return e.prototype.postConstruct=function(){this.doingMasterDetail=this.gridOptionsWrapper.isMasterDetail(),this.gridOptionsWrapper.isRowModelDefault()&&(this.clientSideRowModel=this.rowModel),this.gridOptionsWrapper.isRowModelServerSide()&&(this.serverSideRowModel=this.rowModel)},ms([de("resizeObserverService")],e.prototype,"resizeObserverService",void 0),ms([de("paginationProxy")],e.prototype,"paginationProxy",void 0),ms([de("context")],e.prototype,"context",void 0),ms([de("columnApi")],e.prototype,"columnApi",void 0),ms([de("gridApi")],e.prototype,"gridApi",void 0),ms([de("gridOptionsWrapper")],e.prototype,"gridOptionsWrapper",void 0),ms([de("expressionService")],e.prototype,"expressionService",void 0),ms([de("rowRenderer")],e.prototype,"rowRenderer",void 0),ms([de("$compile")],e.prototype,"$compile",void 0),ms([de("templateService")],e.prototype,"templateService",void 0),ms([de("valueService")],e.prototype,"valueService",void 0),ms([de("eventService")],e.prototype,"eventService",void 0),ms([de("columnModel")],e.prototype,"columnModel",void 0),ms([de("headerNavigationService")],e.prototype,"headerNavigationService",void 0),ms([de("navigationService")],e.prototype,"navigationService",void 0),ms([de("columnAnimationService")],e.prototype,"columnAnimationService",void 0),ms([he("rangeService")],e.prototype,"rangeService",void 0),ms([de("focusService")],e.prototype,"focusService",void 0),ms([he("contextMenuFactory")],e.prototype,"contextMenuFactory",void 0),ms([de("popupService")],e.prototype,"popupService",void 0),ms([de("valueFormatterService")],e.prototype,"valueFormatterService",void 0),ms([de("stylingService")],e.prototype,"stylingService",void 0),ms([de("columnHoverService")],e.prototype,"columnHoverService",void 0),ms([de("userComponentFactory")],e.prototype,"userComponentFactory",void 0),ms([de("userComponentRegistry")],e.prototype,"userComponentRegistry",void 0),ms([de("animationFrameService")],e.prototype,"animationFrameService",void 0),ms([de("dragAndDropService")],e.prototype,"dragAndDropService",void 0),ms([de("sortController")],e.prototype,"sortController",void 0),ms([de("filterManager")],e.prototype,"filterManager",void 0),ms([de("rowContainerHeightService")],e.prototype,"rowContainerHeightService",void 0),ms([de("frameworkOverrides")],e.prototype,"frameworkOverrides",void 0),ms([de("cellPositionUtils")],e.prototype,"cellPositionUtils",void 0),ms([de("rowPositionUtils")],e.prototype,"rowPositionUtils",void 0),ms([de("selectionService")],e.prototype,"selectionService",void 0),ms([he("selectionHandleFactory")],e.prototype,"selectionHandleFactory",void 0),ms([de("rowCssClassCalculator")],e.prototype,"rowCssClassCalculator",void 0),ms([de("rowModel")],e.prototype,"rowModel",void 0),ms([de("ctrlsService")],e.prototype,"ctrlsService",void 0),ms([de("ctrlsFactory")],e.prototype,"ctrlsFactory",void 0),ms([de("agStackComponentsRegistry")],e.prototype,"agStackComponentsRegistry",void 0),ms([de("valueCache")],e.prototype,"valueCache",void 0),ms([de("rowNodeEventThrottle")],e.prototype,"rowNodeEventThrottle",void 0),ms([ce],e.prototype,"postConstruct",null),e=ms([pe("beans")],e)}(),bs=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),ws=function(e){function t(t,n,r){var o=e.call(this)||this;return o.cellCtrl=t,o.beans=n,o.column=r,o}return bs(t,e),t.prototype.onMouseEvent=function(e,t){if(!Me(t))switch(e){case"click":this.onCellClicked(t);break;case"mousedown":case"touchstart":this.onMouseDown(t);break;case"dblclick":this.onCellDoubleClicked(t);break;case"mouseout":this.onMouseOut(t);break;case"mouseover":this.onMouseOver(t)}},t.prototype.onCellClicked=function(e){if(this.isDoubleClickOnIPad())return this.onCellDoubleClicked(e),void e.preventDefault();var t=this.beans,n=t.eventService,r=t.gridOptionsWrapper,o=this.cellCtrl.createEvent(e,Ke.EVENT_CELL_CLICKED);n.dispatchEvent(o);var i=this.column.getColDef();i.onCellClicked&&window.setTimeout((function(){return i.onCellClicked(o)}),0),(r.isSingleClickEdit()||i.singleClickEdit)&&!r.isSuppressClickEdit()&&this.cellCtrl.startRowOrCellEdit()},t.prototype.isDoubleClickOnIPad=function(){if(!Jt()||Ie("dblclick"))return!1;var e=(new Date).getTime(),t=e-this.lastIPadMouseClickEvent<200;return this.lastIPadMouseClickEvent=e,t},t.prototype.onCellDoubleClicked=function(e){var t=this.column.getColDef(),n=this.cellCtrl.createEvent(e,Ke.EVENT_CELL_DOUBLE_CLICKED);this.beans.eventService.dispatchEvent(n),"function"===typeof t.onCellDoubleClicked&&window.setTimeout((function(){return t.onCellDoubleClicked(n)}),0),!this.beans.gridOptionsWrapper.isSingleClickEdit()&&!this.beans.gridOptionsWrapper.isSuppressClickEdit()&&this.cellCtrl.startRowOrCellEdit()},t.prototype.onMouseDown=function(e){var t=e.ctrlKey,n=e.metaKey,r=e.shiftKey,o=e.target,i=this.beans,a=i.eventService,s=i.rangeService;if(!this.isRightClickInExistingRange(e)){var l=s&&0!=s.getCellRanges().length;if(!r||!l){var c=(qt()||Kt())&&!this.cellCtrl.isEditing()&&!fn(o);this.cellCtrl.focusCell(c)}if(r&&l&&e.preventDefault(),!this.containsWidget(o)){if(s){var u=this.cellCtrl.getCellPosition();if(r)s.extendLatestRangeToCell(u);else{var p=t||n;s.setRangeToCell(u,p)}}a.dispatchEvent(this.cellCtrl.createEvent(e,Ke.EVENT_CELL_MOUSE_DOWN))}}},t.prototype.isRightClickInExistingRange=function(e){var t=this.beans.rangeService;if(t&&(t.isCellInAnyRange(this.cellCtrl.getCellPosition())&&2===e.button))return!0;return!1},t.prototype.containsWidget=function(e){return yn(e,"ag-selection-checkbox",3)},t.prototype.onMouseOut=function(e){if(!this.mouseStayingInsideCell(e)){var t=this.cellCtrl.createEvent(e,Ke.EVENT_CELL_MOUSE_OUT);this.beans.eventService.dispatchEvent(t),this.beans.columnHoverService.clearMouseOver()}},t.prototype.onMouseOver=function(e){if(!this.mouseStayingInsideCell(e)){var t=this.cellCtrl.createEvent(e,Ke.EVENT_CELL_MOUSE_OVER);this.beans.eventService.dispatchEvent(t),this.beans.columnHoverService.setMouseOver([this.column])}},t.prototype.mouseStayingInsideCell=function(e){if(!e.target||!e.relatedTarget)return!1;var t=this.cellCtrl.getGui(),n=t.contains(e.target),r=t.contains(e.relatedTarget);return n&&r},t.prototype.destroy=function(){},t}(ys),Cs=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),xs=function(e){function t(t,n,r,o,i,a){var s=e.call(this)||this;return s.cellCtrl=t,s.beans=n,s.column=r,s.rowNode=o,s.rowCtrl=a,s}return Cs(t,e),t.prototype.setComp=function(e){this.eGui=e},t.prototype.onKeyDown=function(e){var t=e.which||e.keyCode;switch(t){case mo.ENTER:this.onEnterKeyDown(e);break;case mo.F2:this.onF2KeyDown();break;case mo.ESCAPE:this.onEscapeKeyDown();break;case mo.TAB:this.onTabKeyDown(e);break;case mo.BACKSPACE:case mo.DELETE:this.onBackspaceOrDeleteKeyPressed(t);break;case mo.DOWN:case mo.UP:case mo.RIGHT:case mo.LEFT:this.onNavigationKeyPressed(e,t)}},t.prototype.onNavigationKeyPressed=function(e,t){this.cellCtrl.isEditing()||(e.shiftKey&&this.cellCtrl.isRangeSelectionEnabled()?this.onShiftRangeSelect(t):this.beans.navigationService.navigateToNextCell(e,t,this.cellCtrl.getCellPosition(),!0),e.preventDefault())},t.prototype.onShiftRangeSelect=function(e){if(this.beans.rangeService){var t=this.beans.rangeService.extendLatestRangeInDirection(e);t&&this.beans.navigationService.ensureCellVisible(t)}},t.prototype.onTabKeyDown=function(e){this.beans.navigationService.onTabKeyDown(this.cellCtrl,e)},t.prototype.onBackspaceOrDeleteKeyPressed=function(e){this.cellCtrl.isEditing()||this.cellCtrl.startRowOrCellEdit(e)},t.prototype.onEnterKeyDown=function(e){this.cellCtrl.isEditing()||this.rowCtrl.isEditing()?this.cellCtrl.stopEditingAndFocus():this.beans.gridOptionsWrapper.isEnterMovesDown()?this.beans.navigationService.navigateToNextCell(null,mo.DOWN,this.cellCtrl.getCellPosition(),!1):(this.cellCtrl.startRowOrCellEdit(mo.ENTER),this.cellCtrl.isEditing()&&e.preventDefault())},t.prototype.onF2KeyDown=function(){this.cellCtrl.isEditing()||this.cellCtrl.startRowOrCellEdit(mo.F2)},t.prototype.onEscapeKeyDown=function(){this.cellCtrl.isEditing()&&(this.cellCtrl.stopRowOrCellEdit(!0),this.cellCtrl.focusCell(!0))},t.prototype.onKeyPress=function(e){if(!(Fe(e)!==this.eGui)&&!this.cellCtrl.isEditing()){var t=String.fromCharCode(e.charCode);" "===t?this.onSpaceKeyPressed(e):Lr(e)&&(this.cellCtrl.startRowOrCellEdit(null,t),e.preventDefault())}},t.prototype.onSpaceKeyPressed=function(e){var t=this.beans.gridOptionsWrapper;if(!this.cellCtrl.isEditing()&&t.isRowSelection()){var n=this.rowNode.isSelected(),r=!n;if(r||!t.isSuppressRowDeselection()){var o=this.beans.gridOptionsWrapper.isGroupSelectsFiltered(),i=this.rowNode.setSelectedParams({newValue:r,rangeSelect:e.shiftKey,groupSelectsFiltered:o});void 0===n&&0===i&&this.rowNode.setSelectedParams({newValue:!1,rangeSelect:e.shiftKey,groupSelectsFiltered:o})}}e.preventDefault()},t.prototype.destroy=function(){},t}(ze),Ss=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Es=function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},_s=function(e){function t(t,n,r,o){var i=e.call(this,'
')||this;return i.rowNode=t,i.column=n,i.beans=r,i.eCell=o,i}return Ss(t,e),t.prototype.postConstruct=function(){this.getGui().appendChild(Nr("rowDrag",this.beans.gridOptionsWrapper,null)),this.addGuiEventListener("mousedown",(function(e){e.stopPropagation()})),this.addDragSource(),this.checkVisibility()},t.prototype.addDragSource=function(){this.addGuiEventListener("dragstart",this.onDragStart.bind(this))},t.prototype.onDragStart=function(e){var t=this,n=this.column.getColDef().dndSourceOnRowDrag,r=qt();r||e.dataTransfer.setDragImage(this.eCell,0,0);n?n({rowNode:this.rowNode,dragEvent:e}):function(){try{var n=JSON.stringify(t.rowNode.data);r?e.dataTransfer.setData("text",n):(e.dataTransfer.setData("application/json",n),e.dataTransfer.setData("text/plain",n))}catch(o){}}()},t.prototype.checkVisibility=function(){var e=this.column.isDndSource(this.rowNode);this.setDisplayed(e)},Es([ce],t.prototype,"postConstruct",null),t}(io),Rs=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Os=function(){return Os=Object.assign||function(e){for(var t,n=1,r=arguments.length;n=0)&&n}return n},n.prototype.setAnimateFlags=function(e){if(e){var t=o(this.rowNode.oldRowTop);this.slideRowIn=t,this.fadeRowIn=!t}else this.slideRowIn=!1,this.fadeRowIn=!1},n.prototype.isEditing=function(){return this.editingRow},n.prototype.stopRowEditing=function(e){this.stopEditing(e)},n.prototype.isFullWidth=function(){return this.rowType!==ls.Normal},n.prototype.getRowType=function(){return this.rowType},n.prototype.refreshFullWidth=function(){var e=this,t=function(t,n){if(!t)return!0;var r=t.rowComp.getFullWidthCellRenderer();if(!r)return!1;if(!r.refresh)return!1;var o=e.createFullWidthParams(t.element,n);return r.refresh(o)},n=t(this.fullWidthGui,null),r=t(this.centerGui,null),o=t(this.leftGui,Ce.PINNED_LEFT),i=t(this.rightGui,Ce.PINNED_RIGHT);return n&&r&&o&&i},n.prototype.addListeners=function(){this.addManagedListener(this.rowNode,Qi.EVENT_HEIGHT_CHANGED,this.onRowHeightChanged.bind(this)),this.addManagedListener(this.rowNode,Qi.EVENT_ROW_SELECTED,this.onRowSelected.bind(this)),this.addManagedListener(this.rowNode,Qi.EVENT_ROW_INDEX_CHANGED,this.onRowIndexChanged.bind(this)),this.addManagedListener(this.rowNode,Qi.EVENT_TOP_CHANGED,this.onTopChanged.bind(this)),this.addManagedListener(this.rowNode,Qi.EVENT_EXPANDED_CHANGED,this.updateExpandedCss.bind(this)),this.addManagedListener(this.rowNode,Qi.EVENT_HAS_CHILDREN_CHANGED,this.updateExpandedCss.bind(this)),this.addManagedListener(this.rowNode,Qi.EVENT_DATA_CHANGED,this.onRowNodeDataChanged.bind(this)),this.addManagedListener(this.rowNode,Qi.EVENT_CELL_CHANGED,this.onRowNodeCellChanged.bind(this)),this.addManagedListener(this.rowNode,Qi.EVENT_HIGHLIGHT_CHANGED,this.onRowNodeHighlightChanged.bind(this)),this.addManagedListener(this.rowNode,Qi.EVENT_DRAGGING_CHANGED,this.onRowNodeDraggingChanged.bind(this)),this.addManagedListener(this.rowNode,Qi.EVENT_UI_LEVEL_CHANGED,this.onUiLevelChanged.bind(this));var e=this.beans.eventService;this.addManagedListener(e,Ke.EVENT_PAGINATION_PIXEL_OFFSET_CHANGED,this.onPaginationPixelOffsetChanged.bind(this)),this.addManagedListener(e,Ke.EVENT_HEIGHT_SCALE_CHANGED,this.onTopChanged.bind(this)),this.addManagedListener(e,Ke.EVENT_DISPLAYED_COLUMNS_CHANGED,this.onDisplayedColumnsChanged.bind(this)),this.addManagedListener(e,Ke.EVENT_VIRTUAL_COLUMNS_CHANGED,this.onVirtualColumnsChanged.bind(this)),this.addManagedListener(e,Ke.EVENT_CELL_FOCUSED,this.onCellFocusChanged.bind(this)),this.addManagedListener(e,Ke.EVENT_PAGINATION_CHANGED,this.onPaginationChanged.bind(this)),this.addManagedListener(e,Ke.EVENT_MODEL_UPDATED,this.onModelUpdated.bind(this)),this.addManagedListener(e,Ke.EVENT_COLUMN_MOVED,this.onColumnMoved.bind(this)),this.addListenersForCellComps()},n.prototype.onColumnMoved=function(){this.updateColumnLists()},n.prototype.addListenersForCellComps=function(){var e=this;this.addManagedListener(this.rowNode,Qi.EVENT_ROW_INDEX_CHANGED,(function(){e.getAllCellCtrls().forEach((function(e){return e.onRowIndexChanged()}))})),this.addManagedListener(this.rowNode,Qi.EVENT_CELL_CHANGED,(function(t){e.getAllCellCtrls().forEach((function(e){return e.onCellChanged(t)}))}))},n.prototype.onRowNodeDataChanged=function(e){this.getAllCellCtrls().forEach((function(t){return t.refreshCell({suppressFlash:!e.update,newData:!e.update})})),this.onRowSelected(),this.postProcessCss()},n.prototype.onRowNodeCellChanged=function(){this.postProcessCss()},n.prototype.postProcessCss=function(){this.setStylesFromGridOptions(),this.postProcessClassesFromGridOptions(),this.postProcessRowClassRules(),this.postProcessRowDragging()},n.prototype.onRowNodeHighlightChanged=function(){var e=this.rowNode.highlighted;this.allRowGuis.forEach((function(n){var r=e===t.RowHighlightPosition.Above,o=e===t.RowHighlightPosition.Below;n.rowComp.addOrRemoveCssClass("ag-row-highlight-above",r),n.rowComp.addOrRemoveCssClass("ag-row-highlight-below",o)}))},n.prototype.onRowNodeDraggingChanged=function(){this.postProcessRowDragging()},n.prototype.postProcessRowDragging=function(){var e=this.rowNode.dragging;this.allRowGuis.forEach((function(t){return t.rowComp.addOrRemoveCssClass("ag-row-dragging",e)}))},n.prototype.updateExpandedCss=function(){var e=this.rowNode.isExpandable(),t=1==this.rowNode.expanded;this.allRowGuis.forEach((function(n){n.rowComp.addOrRemoveCssClass("ag-row-group",e),n.rowComp.addOrRemoveCssClass("ag-row-group-expanded",e&&t),n.rowComp.addOrRemoveCssClass("ag-row-group-contracted",e&&!t),n.rowComp.setAriaExpanded(e&&t)}))},n.prototype.onDisplayedColumnsChanged=function(){this.updateColumnLists(!0),this.beans.columnModel.wasAutoRowHeightEverActive()&&this.rowNode.checkAutoHeights()},n.prototype.onVirtualColumnsChanged=function(){this.updateColumnLists()},n.prototype.getRowPosition=function(){return{rowPinned:this.rowNode.rowPinned,rowIndex:this.rowNode.rowIndex}},n.prototype.onKeyboardNavigate=function(e){var t=p(this.allRowGuis,(function(t){return t.element.contains(e.target)}));if((t?t.element:null)===e.target){var n=this.rowNode,r=this.beans.focusService.getFocusedCell(),o={rowIndex:n.rowIndex,rowPinned:n.rowPinned,column:r&&r.column};this.beans.navigationService.navigateToNextCell(e,e.keyCode,o,!0),e.preventDefault()}},n.prototype.onTabKeyDown=function(e){if(!e.defaultPrevented&&!Me(e)){var t=p(this.allRowGuis,(function(t){return t.element.contains(e.target)})),n=t?t.element:null,r=n===e.target,o=null;r||(o=this.beans.focusService.findNextFocusableElement(n,!1,e.shiftKey)),(this.isFullWidth()&&r||!o)&&this.beans.navigationService.onTabKeyDown(this,e)}},n.prototype.onFullWidthRowFocused=function(e){var t=this.rowNode,n=this.isFullWidth()&&e.rowIndex===t.rowIndex&&e.rowPinned==t.rowPinned,r=this.fullWidthGui?this.fullWidthGui.element:this.centerGui.element;dn(r,"ag-full-width-focus",n),n&&r.focus({preventScroll:!0})},n.prototype.refreshCell=function(e){this.centerCellCtrls=this.removeCellCtrl(this.centerCellCtrls,e),this.leftCellCtrls=this.removeCellCtrl(this.leftCellCtrls,e),this.rightCellCtrls=this.removeCellCtrl(this.rightCellCtrls,e),this.updateColumnLists()},n.prototype.removeCellCtrl=function(e,t){var n={list:[],map:{}};return e.list.forEach((function(e){e!==t&&(n.list.push(e),n.map[e.getInstanceId()]=e)})),n},n.prototype.onMouseEvent=function(e,t){switch(e){case"dblclick":this.onRowDblClick(t);break;case"click":this.onRowClick(t);break;case"touchstart":case"mousedown":this.onRowMouseDown(t)}},n.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}},n.prototype.createRowEventWithSource=function(e,t){var n=this.createRowEvent(e,t);return n.source=this,n},n.prototype.onRowDblClick=function(e){if(!Me(e)){var t=this.createRowEventWithSource(Ke.EVENT_ROW_DOUBLE_CLICKED,e);this.beans.eventService.dispatchEvent(t)}},n.prototype.onRowMouseDown=function(e){if(this.lastMouseDownOnDragger=yn(e.target,"ag-row-drag",3),this.isFullWidth()){var t=this.rowNode,n=this.beans.columnModel;this.beans.focusService.setFocusedCell(t.rowIndex,n.getAllDisplayedColumns()[0],t.rowPinned,!0)}},n.prototype.onRowClick=function(e){if(!(Me(e)||this.lastMouseDownOnDragger)){var t=this.createRowEventWithSource(Ke.EVENT_ROW_CLICKED,e);this.beans.eventService.dispatchEvent(t);var n=e.ctrlKey||e.metaKey,r=e.shiftKey;if(!(this.beans.gridOptionsWrapper.isGroupSelectsChildren()&&this.rowNode.group||!this.rowNode.selectable||this.rowNode.rowPinned||!this.beans.gridOptionsWrapper.isRowSelection()||this.beans.gridOptionsWrapper.isSuppressRowClickSelection())){var o=this.beans.gridOptionsWrapper.isRowMultiSelectWithClick(),i=!this.beans.gridOptionsWrapper.isSuppressRowDeselection();if(this.rowNode.isSelected())o?this.rowNode.setSelectedParams({newValue:!1}):n?i&&this.rowNode.setSelectedParams({newValue:!1}):this.rowNode.setSelectedParams({newValue:!r,clearSelection:!r,rangeSelect:r});else{var a=!o&&!n;this.rowNode.setSelectedParams({newValue:!0,clearSelection:a,rangeSelect:r})}}}},n.prototype.setupDetailRowAutoHeight=function(e){var t=this;if(this.beans.gridOptionsWrapper.isDetailRowAutoHeight()){var n=function(){var n=e.clientHeight;if(null!=n&&n>0){t.beans.frameworkOverrides.setTimeout((function(){t.rowNode.setRowHeight(n),t.beans.clientSideRowModel?t.beans.clientSideRowModel.onRowHeightChanged():t.beans.serverSideRowModel&&t.beans.serverSideRowModel.onRowHeightChanged()}),0)}},r=this.beans.resizeObserverService.observeResize(e,n);this.addDestroyFunc(r),n()}},n.prototype.createFullWidthParams=function(e,t){var n=this;return{fullWidth:!0,data:this.rowNode.data,node:this.rowNode,value:this.rowNode.key,valueFormatted: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),registerRowDragger:function(e,t,r,o){return n.addFullWidthRowDragging(e,t,r,o)}}},n.prototype.addFullWidthRowDragging=function(e,t,n,r){if(void 0===n&&(n=""),this.isFullWidth()){var o=new aa((function(){return n}),this.rowNode,void 0,e,t,r);this.createManagedBean(o,this.beans.context)}},n.prototype.onUiLevelChanged=function(){var e=this.beans.rowCssClassCalculator.calculateRowLevel(this.rowNode);if(this.rowLevel!=e){var t="ag-row-level-"+e,n="ag-row-level-"+this.rowLevel;this.allRowGuis.forEach((function(e){e.rowComp.addOrRemoveCssClass(t,!0),e.rowComp.addOrRemoveCssClass(n,!1)}))}this.rowLevel=e},n.prototype.isFirstRowOnPage=function(){return this.rowNode.rowIndex===this.beans.paginationProxy.getPageFirstRow()},n.prototype.isLastRowOnPage=function(){return this.rowNode.rowIndex===this.beans.paginationProxy.getPageLastRow()},n.prototype.onModelUpdated=function(){var e=this.isFirstRowOnPage(),t=this.isLastRowOnPage();this.firstRowOnPage!==e&&(this.firstRowOnPage=e,this.allRowGuis.forEach((function(t){return t.rowComp.addOrRemoveCssClass("ag-row-first",e)}))),this.lastRowOnPage!==t&&(this.lastRowOnPage=t,this.allRowGuis.forEach((function(e){return e.rowComp.addOrRemoveCssClass("ag-row-last",t)})))},n.prototype.stopEditing=function(e){if(void 0===e&&(e=!1),this.getAllCellCtrls().forEach((function(t){return t.stopEditing(e)})),this.editingRow){if(!e){var t=this.createRowEvent(Ke.EVENT_ROW_VALUE_CHANGED);this.beans.eventService.dispatchEvent(t)}this.setEditingRow(!1)}},n.prototype.setInlineEditingCss=function(e){this.allRowGuis.forEach((function(t){t.rowComp.addOrRemoveCssClass("ag-row-inline-editing",e),t.rowComp.addOrRemoveCssClass("ag-row-not-inline-editing",!e)}))},n.prototype.setEditingRow=function(e){this.editingRow=e,this.allRowGuis.forEach((function(t){return t.rowComp.addOrRemoveCssClass("ag-row-editing",e)}));var t=e?this.createRowEvent(Ke.EVENT_ROW_EDITING_STARTED):this.createRowEvent(Ke.EVENT_ROW_EDITING_STOPPED);this.beans.eventService.dispatchEvent(t)},n.prototype.startRowEditing=function(e,t,n){void 0===e&&(e=null),void 0===t&&(t=null),void 0===n&&(n=null),this.editingRow||(this.getAllCellCtrls().forEach((function(r){var o=r===n;o?r.startEditing(e,t,o):r.startEditing(null,null,o)})),this.setEditingRow(!0))},n.prototype.getAllCellCtrls=function(){return Ms(this.centerCellCtrls.list,this.leftCellCtrls.list,this.rightCellCtrls.list)},n.prototype.postProcessClassesFromGridOptions=function(){var e=this,t=this.beans.rowCssClassCalculator.processClassesFromGridOptions(this.rowNode,this.scope);t&&t.length&&t.forEach((function(t){e.allRowGuis.forEach((function(e){return e.rowComp.addOrRemoveCssClass(t,!0)}))}))},n.prototype.postProcessRowClassRules=function(){var e=this;this.beans.rowCssClassCalculator.processRowClassRules(this.rowNode,this.scope,(function(t){e.allRowGuis.forEach((function(e){return e.rowComp.addOrRemoveCssClass(t,!0)}))}),(function(t){e.allRowGuis.forEach((function(e){return e.rowComp.addOrRemoveCssClass(t,!1)}))}))},n.prototype.setStylesFromGridOptions=function(){var e=this.processStylesFromGridOptions();this.allRowGuis.forEach((function(t){return t.rowComp.setUserStyles(e)}))},n.prototype.getRowBusinessKey=function(){var e=this.beans.gridOptionsWrapper.getBusinessKeyForNodeFunc();if("function"===typeof e)return e(this.rowNode)},n.prototype.getInitialRowClasses=function(e){var t={rowNode:this.rowNode,rowFocused:this.rowFocused,fadeRowIn:this.fadeRowIn,rowIsEven:this.rowNode.rowIndex%2===0,rowLevel:this.rowLevel,fullWidthRow:this.isFullWidth(),firstRowOnPage:this.isFirstRowOnPage(),lastRowOnPage:this.isLastRowOnPage(),printLayout:this.printLayout,expandable:this.rowNode.isExpandable(),scope:this.scope,pinned:e};return this.beans.rowCssClassCalculator.getInitialRowClasses(t)},n.prototype.processStylesFromGridOptions=function(){var e=this.beans.gridOptionsWrapper.getRowStyle();if(!e||"function"!==typeof e){var t,n=this.beans.gridOptionsWrapper.getRowStyleFunc();if(n)t=n({data:this.rowNode.data,node:this.rowNode,rowIndex:this.rowNode.rowIndex,$scope:this.scope,api:this.beans.gridOptionsWrapper.getApi(),columnApi:this.beans.gridOptionsWrapper.getColumnApi(),context:this.beans.gridOptionsWrapper.getContext()});return V({},e,t)}console.warn("AG Grid: rowStyle should be an object of key/value styles, not be a function, use getRowStyle() instead")},n.prototype.onRowSelected=function(){var e=this,t=this.rowNode.isSelected();this.allRowGuis.forEach((function(n){n.rowComp.setAriaSelected(!!t||void 0),n.rowComp.addOrRemoveCssClass("ag-row-selected",t),n.rowComp.setAriaLabel(e.createAriaLabel())}))},n.prototype.createAriaLabel=function(){var e=this.rowNode.isSelected();if(!e||!this.beans.gridOptionsWrapper.isSuppressRowDeselection())return this.beans.gridOptionsWrapper.getLocaleTextFunc()(e?"ariaRowDeselect":"ariaRowSelect","Press SPACE to "+(e?"deselect":"select")+" this row.")},n.prototype.isUseAnimationFrameForCreate=function(){return this.useAnimationFrameForCreate},n.prototype.addHoverFunctionality=function(e){var t=this;this.active&&(this.addManagedListener(e,"mouseenter",(function(){return t.rowNode.onMouseEnter()})),this.addManagedListener(e,"mouseleave",(function(){return t.rowNode.onMouseLeave()})),this.addManagedListener(this.rowNode,Qi.EVENT_MOUSE_ENTER,(function(){t.beans.gridOptionsWrapper.isSuppressRowHoverHighlight()||un(e,"ag-row-hover")})),this.addManagedListener(this.rowNode,Qi.EVENT_MOUSE_LEAVE,(function(){pn(e,"ag-row-hover")})))},n.prototype.roundRowTopToBounds=function(e){var t=this.beans.ctrlsService.getGridBodyCtrl().getScrollFeature().getVScrollPosition(),n=this.applyPaginationOffset(t.top,!0)-100,r=this.applyPaginationOffset(t.bottom,!0)+100;return Math.min(Math.max(n,e),r)},n.prototype.getFrameworkOverrides=function(){return this.beans.frameworkOverrides},n.prototype.onRowHeightChanged=function(){if(o(this.rowNode.rowHeight)){var e=this.rowNode.rowHeight+"px";this.allRowGuis.forEach((function(t){return t.rowComp.setHeight(e)}))}},n.prototype.addEventListener=function(t,n){"renderedRowRemoved"!==t&&"rowRemoved"!==t||(t=Ke.EVENT_VIRTUAL_ROW_REMOVED,console.warn("AG Grid: Since version 11, event renderedRowRemoved is now called "+Ke.EVENT_VIRTUAL_ROW_REMOVED)),e.prototype.addEventListener.call(this,t,n)},n.prototype.removeEventListener=function(t,n){"renderedRowRemoved"!==t&&"rowRemoved"!==t||(t=Ke.EVENT_VIRTUAL_ROW_REMOVED,console.warn("AG Grid: Since version 11, event renderedRowRemoved and rowRemoved is now called "+Ke.EVENT_VIRTUAL_ROW_REMOVED)),e.prototype.removeEventListener.call(this,t,n)},n.prototype.destroyFirstPass=function(){this.active=!1,this.setupRemoveAnimation();var t=this.createRowEvent(Ke.EVENT_VIRTUAL_ROW_REMOVED);this.dispatchEvent(t),this.beans.eventService.dispatchEvent(t),e.prototype.destroy.call(this)},n.prototype.setupRemoveAnimation=function(){if(null!=this.rowNode.rowTop){var e=this.roundRowTopToBounds(this.rowNode.rowTop);this.setRowTop(e)}else this.allRowGuis.forEach((function(e){return e.rowComp.addOrRemoveCssClass("ag-opacity-zero",!0)}))},n.prototype.destroySecondPass=function(){this.allRowGuis.length=0;var e=function(e){return e.list.forEach((function(e){return e.destroy()})),{list:[],map:{}}};this.centerCellCtrls=e(this.centerCellCtrls),this.leftCellCtrls=e(this.leftCellCtrls),this.rightCellCtrls=e(this.rightCellCtrls)},n.prototype.setFocusedClasses=function(){var e=this;this.allRowGuis.forEach((function(t){t.rowComp.addOrRemoveCssClass("ag-row-focus",e.rowFocused),t.rowComp.addOrRemoveCssClass("ag-row-no-focus",!e.rowFocused)}))},n.prototype.onCellFocusChanged=function(){var e=this.beans.focusService.isRowFocused(this.rowNode.rowIndex,this.rowNode.rowPinned);e!==this.rowFocused&&(this.rowFocused=e,this.setFocusedClasses()),!e&&this.editingRow&&this.stopEditing(!1)},n.prototype.onPaginationChanged=function(){var e=this.beans.paginationProxy.getCurrentPage();this.paginationPage!==e&&(this.paginationPage=e,this.onTopChanged())},n.prototype.onTopChanged=function(){this.setRowTop(this.rowNode.rowTop)},n.prototype.onPaginationPixelOffsetChanged=function(){this.onTopChanged()},n.prototype.applyPaginationOffset=function(e,t){return void 0===t&&(t=!1),this.rowNode.isRowPinned()?e:e+this.beans.paginationProxy.getPixelOffset()*(t?1:-1)},n.prototype.setRowTop=function(e){if(!this.printLayout&&o(e)){var t=this.applyPaginationOffset(e),n=(this.rowNode.isRowPinned()?t:this.beans.rowContainerHeightService.getRealPixelPosition(t))+"px";this.setRowTopStyle(n)}},n.prototype.getInitialRowTop=function(){return this.initialTop},n.prototype.getInitialTransform=function(){return this.initialTransform},n.prototype.setInitialRowTop=function(){if(this.printLayout)return"";var e=this.slideRowIn?this.roundRowTopToBounds(this.rowNode.oldRowTop):this.rowNode.rowTop,t=this.applyPaginationOffset(e),n=(this.rowNode.isRowPinned()?t:this.beans.rowContainerHeightService.getRealPixelPosition(t))+"px";this.beans.gridOptionsWrapper.isSuppressRowTransform()?this.initialTop=n:this.initialTransform="translateY("+n+")"},n.prototype.setRowTopStyle=function(e){var t=this.beans.gridOptionsWrapper.isSuppressRowTransform();this.allRowGuis.forEach((function(n){return t?n.rowComp.setTop(e):n.rowComp.setTransform("translateY("+e+")")}))},n.prototype.getRowNode=function(){return this.rowNode},n.prototype.getCellCtrl=function(e){var t=null;return this.getAllCellCtrls().forEach((function(n){n.getColumn()==e&&(t=n)})),null!=t||this.getAllCellCtrls().forEach((function(n){n.getColSpanningList().indexOf(e)>=0&&(t=n)})),t},n.prototype.onRowIndexChanged=function(){null!=this.rowNode.rowIndex&&(this.onCellFocusChanged(),this.updateRowIndexes())},n.prototype.updateRowIndexes=function(){var e=this,t=this.rowNode.getRowIndexString(),n=this.beans.headerNavigationService.getHeaderRowCount(),r=this.rowNode.rowIndex%2===0;this.allRowGuis.forEach((function(o){o.rowComp.setRowIndex(t),o.rowComp.setAriaRowIndex(n+e.rowNode.rowIndex+1),o.rowComp.addOrRemoveCssClass("ag-row-even",r),o.rowComp.addOrRemoveCssClass("ag-row-odd",!r)}))},n.prototype.getPinnedLeftRowElement=function(){return this.leftGui?this.leftGui.element:void 0},n.prototype.getPinnedRightRowElement=function(){return this.rightGui?this.rightGui.element:void 0},n.prototype.getBodyRowElement=function(){return this.centerGui?this.centerGui.element:void 0},n.prototype.getFullWidthRowElement=function(){return this.fullWidthGui?this.fullWidthGui.element:void 0},n.DOM_DATA_KEY_ROW_CTRL="renderedRow",n}(ze),Ws=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Vs=function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},js=function(){for(var e=0,t=0,n=arguments.length;t=0&&t.push(n)})),t},t.prototype.redrawRows=function(e){var t=null!=e&&e.length>0;if(t){var n=this.getRenderedIndexesForRowNodes(e);this.removeRowCtrls(n)}this.redrawAfterModelUpdate({recycleRows:t})},t.prototype.getCellToRestoreFocusToAfterRefresh=function(e){var t=e.suppressKeepFocus?null:this.focusService.getFocusCellToUseAfterRefresh();if(null==t)return null;var n=document.activeElement,r=this.gridOptionsWrapper.getDomData(n,Ts.DOM_DATA_KEY_CELL_CTRL),o=this.gridOptionsWrapper.getDomData(n,Hs.DOM_DATA_KEY_ROW_CTRL);return r||o?t:null},t.prototype.redrawAfterModelUpdate=function(e){void 0===e&&(e={}),this.getLockOnRefresh();var t=this.getCellToRestoreFocusToAfterRefresh(e);this.updateContainerHeights(),this.scrollToTopIfNewData(e);var n=!this.printLayout&&!!e.recycleRows,r=e.animate&&this.gridOptionsWrapper.isAnimateRows(),o=n?this.recycleRows():null;n||this.removeAllRowComps();var i=function(){if(null==t||null==o)return!1;var e=!1;return k(o,(function(n,r){var o=r.getRowNode(),i=o.rowIndex==t.rowIndex,a=o.rowPinned==t.rowPinned;i&&a&&(e=!0)})),e}();this.redraw(o,r),e.onlyBody||this.refreshFloatingRowComps(),this.dispatchDisplayedRowsChanged(),i||this.restoreFocusedCell(t),this.releaseLockOnRefresh()},t.prototype.scrollToTopIfNewData=function(e){var t=e.newData||e.newPage,n=this.gridOptionsWrapper.isSuppressScrollOnNewData();t&&!n&&this.gridBodyCtrl.getScrollFeature().scrollToTop()},t.prototype.updateContainerHeights=function(){if(this.printLayout)this.rowContainerHeightService.setModelHeight(null);else{var e=this.paginationProxy.getCurrentPageHeight();0===e&&(e=1),this.rowContainerHeightService.setModelHeight(e)}},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, e.g. 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.focusService.setFocusedCell(e.rowIndex,e.column,e.rowPinned,!0)},t.prototype.stopEditing=function(e){void 0===e&&(e=!1),this.getAllRowCtrls().forEach((function(t){t.stopEditing(e)}))},t.prototype.onNewColumnsLoaded=function(){this.getAllCellCtrls().forEach((function(e){return e.onNewColumnsLoaded()}))},t.prototype.getAllCellCtrls=function(){var e=[];return this.getAllRowCtrls().forEach((function(t){return e=e.concat(t.getAllCellCtrls())})),e},t.prototype.getAllRowCtrls=function(){var e=this,t=js(this.topRowCtrls,this.bottomRowCtrls);return Object.keys(this.rowCtrlsByRowIndex).forEach((function(n){return t.push(e.rowCtrlsByRowIndex[n])})),t},t.prototype.addRenderedRowListener=function(e,t,n){var r=this.rowCtrlsByRowIndex[t];r&&r.addEventListener(e,n)},t.prototype.flashCells=function(e){void 0===e&&(e={});var t=e.flashDelay,n=e.fadeDelay;this.getCellCtrls(e.rowNodes,e.columns).forEach((function(e){return e.flashCell({flashDelay:t,fadeDelay:n})}))},t.prototype.refreshCells=function(e){void 0===e&&(e={});var t={forceRefresh:e.force,newData:!1,suppressFlash:e.suppressFlash};this.getCellCtrls(e.rowNodes,e.columns).forEach((function(e){if(e.refreshShouldDestroy()){var n=e.getRowCtrl();n&&n.refreshCell(e)}else e.refreshCell(t)}))},t.prototype.getCellRendererInstances=function(e){return this.getCellCtrls(e.rowNodes,e.columns).map((function(e){return e.getCellRenderer()})).filter((function(e){return null!=e}))},t.prototype.getCellEditorInstances=function(e){var t=[];return this.getCellCtrls(e.rowNodes,e.columns).forEach((function(e){var n=e.getCellEditor();n&&t.push(n)})),t},t.prototype.getEditingCells=function(){var e=[];return this.getAllCellCtrls().forEach((function(t){if(t.isEditing()){var n=t.getCellPosition();e.push(n)}})),e},t.prototype.getCellCtrls=function(e,t){var n,r,i=this,a=[];o(e)&&(n={top:{},bottom:{},normal:{}},e.forEach((function(e){var t=e.id;e.rowPinned===Ce.PINNED_TOP?n.top[t]=!0:e.rowPinned===Ce.PINNED_BOTTOM?n.bottom[t]=!0:n.normal[t]=!0}))),o(t)&&(r={},t.forEach((function(e){var t=i.columnModel.getGridColumn(e);o(t)&&(r[t.getId()]=!0)})));var s=function(e){var t=e.getRowNode(),i=t.id,s=t.rowPinned;if(o(n))if(s===Ce.PINNED_BOTTOM){if(!n.bottom[i])return}else if(s===Ce.PINNED_TOP){if(!n.top[i])return}else if(!n.normal[i])return;e.getAllCellCtrls().forEach((function(e){var t=e.getColumn().getId();r&&!r[t]||a.push(e)}))};return k(this.rowCtrlsByRowIndex,(function(e,t){s(t)})),this.topRowCtrls&&this.topRowCtrls.forEach(s),this.bottomRowCtrls&&this.bottomRowCtrls.forEach(s),a},t.prototype.destroy=function(){this.removeAllRowComps(),e.prototype.destroy.call(this)},t.prototype.removeAllRowComps=function(){var e=Object.keys(this.rowCtrlsByRowIndex);this.removeRowCtrls(e)},t.prototype.recycleRows=function(){var e=[];k(this.rowCtrlsByRowIndex,(function(t,n){null==n.getRowNode().id&&e.push(t)})),this.removeRowCtrls(e);var t={};return k(this.rowCtrlsByRowIndex,(function(e,n){var r=n.getRowNode();t[r.id]=n})),this.rowCtrlsByRowIndex={},t},t.prototype.removeRowCtrls=function(e){var t=this;e.forEach((function(e){var n=t.rowCtrlsByRowIndex[e];n&&(n.destroyFirstPass(),n.destroySecondPass()),delete t.rowCtrlsByRowIndex[e]}))},t.prototype.redrawAfterScroll=function(){this.getLockOnRefresh(),this.redraw(null,!1,!0),this.releaseLockOnRefresh(),this.dispatchDisplayedRowsChanged()},t.prototype.removeRowCompsNotToDraw=function(e){var t={};e.forEach((function(e){return t[e]=!0}));var n=Object.keys(this.rowCtrlsByRowIndex).filter((function(e){return!t[e]}));this.removeRowCtrls(n)},t.prototype.calculateIndexesToDraw=function(e){var t=this,n=vt(this.firstRenderedRow,this.lastRenderedRow),r=function(e,r){var o=r.getRowNode().rowIndex;null!=o&&(ot.lastRenderedRow)&&t.doNotUnVirtualiseRow(r)&&n.push(o)};return k(this.rowCtrlsByRowIndex,r),k(e,r),n.sort((function(e,t){return e-t})),n},t.prototype.redraw=function(e,t,n){var r=this;void 0===t&&(t=!1),void 0===n&&(n=!1),this.rowContainerHeightService.updateOffset(),this.workOutFirstAndLastRowsToRender();var i=this.calculateIndexesToDraw(e);(this.removeRowCompsNotToDraw(i),this.printLayout&&(t=!1),i.forEach((function(i){o(r.createOrUpdateRowCtrl(i,e,t,n))})),e)&&(n&&!this.gridOptionsWrapper.isSuppressAnimationFrame()&&!this.printLayout?this.beans.animationFrameService.addDestroyTask((function(){r.destroyRowCtrls(e,t),r.updateAllRowCtrls(),r.dispatchDisplayedRowsChanged()})):this.destroyRowCtrls(e,t));this.updateAllRowCtrls(),this.checkAngularCompile(),this.gridBodyCtrl.updateRowCount()},t.prototype.dispatchDisplayedRowsChanged=function(){var e={type:Ke.EVENT_DISPLAYED_ROWS_CHANGED};this.eventService.dispatchEvent(e)},t.prototype.onDisplayedColumnsChanged=function(){var e=this.columnModel.isPinningLeft(),t=this.columnModel.isPinningRight();(this.pinningLeft!==e||t!==this.pinningRight)&&(this.pinningLeft=e,this.pinningRight=t,this.embedFullWidthRows&&this.redrawFullWidthEmbeddedRows())},t.prototype.redrawFullWidthEmbeddedRows=function(){var e=[];k(this.rowCtrlsByRowIndex,(function(t,n){if(n.isFullWidth()){var r=n.getRowNode().rowIndex;e.push(r.toString())}})),this.refreshFloatingRowComps(),this.removeRowCtrls(e),this.redrawAfterScroll()},t.prototype.refreshFullWidthRows=function(e){var t=[],n=!!e,r=n?{}:void 0;n&&r&&e.forEach((function(e){return r[e.id]=!0})),k(this.rowCtrlsByRowIndex,(function(e,o){if(o.isFullWidth()){var i=o.getRowNode();if(n&&r){var a=i.level>0&&i.parent?i.parent.id:void 0;if(!r[i.id]&&!r[a])return}if(!o.refreshFullWidth()){var s=o.getRowNode().rowIndex;t.push(s.toString())}}})),this.removeRowCtrls(t),this.redrawAfterScroll()},t.prototype.createOrUpdateRowCtrl=function(e,t,n,r){var i,a=this.rowCtrlsByRowIndex[e];if(a||o(i=this.paginationProxy.getRow(e))&&o(t)&&t[i.id]&&i.alreadyRendered&&(a=t[i.id],t[i.id]=null),!a){if(i||(i=this.paginationProxy.getRow(e)),!o(i))return;a=this.createRowCon(i,n,r)}return i&&(i.alreadyRendered=!0),this.rowCtrlsByRowIndex[e]=a,a},t.prototype.destroyRowCtrls=function(e,t){var n=this,r=[];k(e,(function(e,o){o&&(n.cachedRowCtrls&&o.isCacheable()?n.cachedRowCtrls.addRow(o):(o.destroyFirstPass(),t?(n.zombieRowCtrls[o.getInstanceId()]=o,r.push((function(){o.destroySecondPass(),delete n.zombieRowCtrls[o.getInstanceId()]}))):o.destroySecondPass()))})),t&&(r.push((function(){n.updateAllRowCtrls(),n.dispatchDisplayedRowsChanged()})),Z(r))},t.prototype.checkAngularCompile=function(){var e=this;this.gridOptionsWrapper.isAngularCompileRows()&&window.setTimeout((function(){e.$scope.$apply()}),0)},t.prototype.workOutFirstAndLastRowsToRender=function(){var e,t,n=this;if(this.paginationProxy.isRowsToRender())if(this.printLayout)e=this.paginationProxy.getPageFirstRow(),t=this.paginationProxy.getPageLastRow();else{var r=this.gridOptionsWrapper.getRowBufferInPixels(),o=this.ctrlsService.getGridBodyCtrl(),i=!1,a=void 0,s=void 0;do{var l=this.paginationProxy.getPixelOffset(),c=this.paginationProxy.getCurrentPagePixelRange(),u=c.pageFirstPixel,p=c.pageLastPixel,d=this.rowContainerHeightService.getDivStretchOffset(),h=o.getScrollFeature().getVScrollPosition(),f=h.top,g=h.bottom;a=Math.max(f+l-r,u)+d,s=Math.min(g+l+r,p)+d,i=this.ensureAllRowsInRangeHaveHeightsCalculated(a,s)}while(i);var v=this.paginationProxy.getRowIndexAtPixel(a),m=this.paginationProxy.getRowIndexAtPixel(s),y=this.paginationProxy.getPageFirstRow(),b=this.paginationProxy.getPageLastRow();vb&&(m=b),e=v,t=m}else e=0,t=-1;var w=this.gridOptionsWrapper.getDomLayout()===Ce.DOM_LAYOUT_NORMAL,C=this.gridOptionsWrapper.isSuppressMaxRenderedRowRestriction(),x=Math.max(this.gridOptionsWrapper.getRowBuffer(),500);w&&!C&&t-e>x&&(t=e+x);var S=e!==this.firstRenderedRow,E=t!==this.lastRenderedRow;if(S||E){this.firstRenderedRow=e,this.lastRenderedRow=t;var _={type:Ke.EVENT_VIEWPORT_CHANGED,firstRow:e,lastRow:t,api:this.gridApi,columnApi:this.columnApi};this.eventService.dispatchEvent(_)}if(this.paginationProxy.isRowsToRender()){var R={type:Ke.EVENT_FIRST_DATA_RENDERED,firstRow:e,lastRow:t,api:this.gridApi,columnApi:this.columnApi};window.setTimeout((function(){return n.eventService.dispatchEventOnce(R)}),50)}},t.prototype.ensureAllRowsInRangeHaveHeightsCalculated=function(e,t){var n=this.paginationProxy.ensureRowHeightsValid(e,t,-1,-1);return n&&this.updateContainerHeights(),n},t.prototype.getFirstVirtualRenderedRow=function(){return this.firstRenderedRow},t.prototype.getLastVirtualRenderedRow=function(){return this.lastRenderedRow},t.prototype.doNotUnVirtualiseRow=function(e){var t=e.getRowNode(),n=this.focusService.isRowNodeFocused(t),r=e.isEditing(),o=t.detail;return!!(n||r||o)&&!!this.paginationProxy.isRowPresent(t)},t.prototype.createRowCon=function(e,t,n){var r=this.cachedRowCtrls?this.cachedRowCtrls.getRow(e):null;if(r)return r;var o=this.gridOptionsWrapper.isSuppressAnimationFrame(),i=n&&!o&&!this.printLayout;return new Hs(this.$scope,e,this.beans,t,i,this.printLayout)},t.prototype.getRenderedNodes=function(){var e=this.rowCtrlsByRowIndex;return Object.keys(e).map((function(t){return e[t].getRowNode()}))},t.prototype.getRowByPosition=function(e){var t;switch(e.rowPinned){case Ce.PINNED_TOP:t=this.topRowCtrls[e.rowIndex];break;case Ce.PINNED_BOTTOM:t=this.bottomRowCtrls[e.rowIndex];break;default:t=this.rowCtrlsByRowIndex[e.rowIndex]}return t},t.prototype.getRowNode=function(e){switch(e.rowPinned){case Ce.PINNED_TOP:return this.pinnedRowModel.getPinnedTopRowData()[e.rowIndex];case Ce.PINNED_BOTTOM:return this.pinnedRowModel.getPinnedBottomRowData()[e.rowIndex];default:return this.rowModel.getRow(e.rowIndex)}},t.prototype.isRangeInRenderedViewport=function(e,t){if(null==e||null==t)return!1;var n=e>this.lastRenderedRow;return!(tthis.maxCount){var t=this.entriesList[0];t.destroyFirstPass(),t.destroySecondPass(),this.removeFromCache(t)}},e.prototype.getRow=function(e){if(null==e||null==e.id)return null;var t=this.entriesMap[e.id];return t?(this.removeFromCache(t),t.setCached(!1),t.getRowNode()!=e?null:t):null},e.prototype.removeFromCache=function(e){var t=e.getRowNode().id;delete this.entriesMap[t],b(this.entriesList,e)},e.prototype.getEntries=function(){return this.entriesList},e}(),Us=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Ys=function(e){function t(t,n){var r=e.call(this,t)||this;return r.ctrl=n,r}return Us(t,e),t.prototype.getCtrl=function(){return this.ctrl},t}(io),Xs=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),qs=function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},Ks=function(e){function t(n){var r=e.call(this,t.TEMPLATE,n)||this;return r.headerCompVersion=0,r.column=n.getColumnGroupChild(),r.pinned=n.getPinned(),r}return Xs(t,e),t.prototype.postConstruct=function(){var e=this,t=this.getGui(),n=function(e,n,r){var o=r||t;null!=n&&""!=n?o.setAttribute(e,n):o.removeAttribute(e)},r={setWidth:function(e){return t.style.width=e},addOrRemoveCssClass:function(t,n){return e.addOrRemoveCssClass(t,n)},setAriaSort:function(e){return e?mr(t,e):yr(t)},setColId:function(e){return n("col-id",e)},setTitle:function(e){return n("title",e)},setAriaDescribedBy:function(e){return ar(t,e)},setUserCompDetails:function(t){return e.setUserCompDetails(t)},getUserCompInstance:function(){return e.headerComp}};this.ctrl.setComp(r,this.getGui(),this.eResize);var o=this.ctrl.getSelectAllGui();this.eResize.insertAdjacentElement("afterend",o)},t.prototype.destroyHeaderComp=function(){this.headerComp&&(this.getGui().removeChild(this.headerCompGui),this.headerComp=this.destroyBean(this.headerComp),this.headerCompGui=void 0)},t.prototype.setUserCompDetails=function(e){var t=this;this.headerCompVersion++;var n=this.headerCompVersion;e.newAgStackInstance().then((function(e){return t.afterCompCreated(n,e)}))},t.prototype.afterCompCreated=function(e,t){e==this.headerCompVersion&&this.isAlive()?(this.destroyHeaderComp(),this.headerComp=t,this.headerCompGui=t.getGui(),this.getGui().appendChild(this.headerCompGui),this.ctrl.setDragSource(this.headerCompGui)):this.destroyBean(t)},t.TEMPLATE='
\n \n
',qs([ao("eResize")],t.prototype,"eResize",void 0),qs([ce],t.prototype,"postConstruct",null),qs([ue],t.prototype,"destroyHeaderComp",null),t}(Ys),$s=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Qs=function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},Zs=function(e){function t(n){return e.call(this,t.TEMPLATE,n)||this}return $s(t,e),t.prototype.postConstruct=function(){var e=this,t=this.getGui(),n=function(e,n){return void 0!=n?t.setAttribute(e,n):t.removeAttribute(e)},r={addOrRemoveCssClass:function(t,n){return e.addOrRemoveCssClass(t,n)},addOrRemoveResizableCssClass:function(t,n){return dn(e.eResize,t,n)},setWidth:function(e){return t.style.width=e},setColId:function(e){return t.setAttribute("col-id",e)},setAriaExpanded:function(e){return n("aria-expanded",e)},setTitle:function(e){return n("title",e)},setUserCompDetails:function(t){return e.setUserCompDetails(t)}};this.ctrl.setComp(r,t,this.eResize)},t.prototype.setUserCompDetails=function(e){var t=this;e.newAgStackInstance().then((function(e){return t.afterHeaderCompCreated(e)}))},t.prototype.afterHeaderCompCreated=function(e){var t=this,n=function(){return t.destroyBean(e)};this.isAlive()?(this.getGui().appendChild(e.getGui()),this.addDestroyFunc(n),this.ctrl.setDragSource(e.getGui())):n()},t.TEMPLATE='
\n \n
',Qs([de("userComponentFactory")],t.prototype,"userComponentFactory",void 0),Qs([ao("eResize")],t.prototype,"eResize",void 0),Qs([ce],t.prototype,"postConstruct",null),t}(Ys),Js=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),el=function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},tl=function(e){function t(n){return e.call(this,t.TEMPLATE,n)||this}return Js(t,e),t.prototype.postConstruct=function(){var e=this,t=this.getGui(),n={addOrRemoveCssClass:function(t,n){return e.addOrRemoveCssClass(t,n)},addOrRemoveBodyCssClass:function(t,n){return dn(e.eFloatingFilterBody,t,n)},addOrRemoveButtonWrapperCssClass:function(t,n){return dn(e.eButtonWrapper,t,n)},setCompDetails:function(t){return e.setCompDetails(t)},getFloatingFilterComp:function(){return e.compPromise},setWidth:function(e){return t.style.width=e},setMenuIcon:function(t){return e.eButtonShowMainFilter.appendChild(t)}};this.ctrl.setComp(n,t,this.eButtonShowMainFilter,this.eFloatingFilterBody)},t.prototype.setCompDetails=function(e){var t=this;this.compPromise=e.newAgStackInstance(),this.compPromise.then((function(e){return t.afterCompCreated(e)}))},t.prototype.afterCompCreated=function(e){var t=this;e&&(this.addDestroyFunc((function(){return t.context.destroyBean(e)})),this.isAlive()&&(this.eFloatingFilterBody.appendChild(e.getGui()),e.afterGuiAttached&&e.afterGuiAttached()))},t.TEMPLATE='
\n
\n \n
',el([ao("eFloatingFilterBody")],t.prototype,"eFloatingFilterBody",void 0),el([ao("eButtonWrapper")],t.prototype,"eButtonWrapper",void 0),el([ao("eButtonShowMainFilter")],t.prototype,"eButtonShowMainFilter",void 0),el([ce],t.prototype,"postConstruct",null),t}(Ys),nl=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),rl=function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a};(Is=t.HeaderRowType||(t.HeaderRowType={})).COLUMN_GROUP="group",Is.COLUMN="column",Is.FLOATING_FILTER="filter";var ol,il=function(e){function n(n){var r=e.call(this)||this;r.headerComps={};var o=n.getType()==t.HeaderRowType.COLUMN_GROUP?"ag-header-row-column-group":n.getType()==t.HeaderRowType.FLOATING_FILTER?"ag-header-row-column-filter":"ag-header-row-column";return r.setTemplate('
'),r.ctrl=n,r}return nl(n,e),n.prototype.init=function(){var e=this,t={setTransform:function(t){return e.getGui().style.transform=t},setHeight:function(t){return e.getGui().style.height=t},setTop:function(t){return e.getGui().style.top=t},setHeaderCtrls:function(t){return e.setHeaderCtrls(t)},setWidth:function(t){return e.getGui().style.width=t},setAriaRowIndex:function(t){return hr(e.getGui(),t)}};this.ctrl.setComp(t)},n.prototype.destroyHeaderCtrls=function(){this.setHeaderCtrls([])},n.prototype.setHeaderCtrls=function(e){var t=this;if(this.isAlive()){var n=this.headerComps;if(this.headerComps={},e.forEach((function(e){var r=e.getInstanceId(),o=n[r];delete n[r],null==o&&(o=t.createHeaderComp(e),t.getGui().appendChild(o.getGui())),t.headerComps[r]=o})),k(n,(function(e,n){t.getGui().removeChild(n.getGui()),t.destroyBean(n)})),this.gridOptionsWrapper.isEnsureDomOrder()){var r=H(this.headerComps);r.sort((function(e,t){return e.getCtrl().getColumnGroupChild().getLeft()-t.getCtrl().getColumnGroupChild().getLeft()}));var o=r.map((function(e){return e.getGui()}));Mn(this.getGui(),o)}}},n.prototype.createHeaderComp=function(e){var n;switch(this.ctrl.getType()){case t.HeaderRowType.COLUMN_GROUP:n=new Zs(e);break;case t.HeaderRowType.FLOATING_FILTER:n=new tl(e);break;default:n=new Ks(e)}return this.createBean(n),n.setParentComponent(this),n},rl([ce],n.prototype,"init",null),rl([ue],n.prototype,"destroyHeaderCtrls",null),n}(io),al=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),sl=function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a};(ol=t.HeaderNavigationDirection||(t.HeaderNavigationDirection={}))[ol.UP=0]="UP",ol[ol.DOWN=1]="DOWN",ol[ol.LEFT=2]="LEFT",ol[ol.RIGHT=3]="RIGHT";var ll,cl=function(e){function n(){return null!==e&&e.apply(this,arguments)||this}return al(n,e),n.prototype.postConstruct=function(){var e=this;this.ctrlsService.whenReady((function(t){e.gridBodyCon=t.gridBodyCtrl}))},n.prototype.getHeaderRowCount=function(){var e=this.ctrlsService.getHeaderRowContainerCtrl();return e?e.getRowCount():0},n.prototype.getHeaderRowType=function(e){var t=this.ctrlsService.getHeaderRowContainerCtrl();if(t)return t.getRowType(e)},n.prototype.navigateVertically=function(e,n,r){if(n||(n=this.focusService.getFocusedHeader()),!n)return!1;var o=n.headerRowIndex,i=n.column,a=this.getHeaderRowCount(),s=e===t.HeaderNavigationDirection.UP,l=s?o-1:o+1,c=null,u=!1;l<0&&(l=0,c=i,u=!0),l>=a&&(l=-1);var p=this.getHeaderRowType(o);if(!u){if(p===t.HeaderRowType.COLUMN_GROUP){var d=i;c=s?i.getParent():d.getDisplayedChildren()[0]}else if(p===t.HeaderRowType.FLOATING_FILTER)c=i;else{d=i;c=s?d.getParent():d}if(!c)return!1}return this.focusService.focusHeaderPosition({headerPosition:{headerRowIndex:l,column:c},allowUserOverride:!0,event:r})},n.prototype.navigateHorizontally=function(e,n,r){void 0===n&&(n=!1);var o,i,a=this.focusService.getFocusedHeader();return e===t.HeaderNavigationDirection.LEFT!==this.gridOptionsWrapper.isEnableRtl()?(i="Before",o=this.headerPositionUtils.findHeader(a,i)):(i="After",o=this.headerPositionUtils.findHeader(a,i)),o?this.focusService.focusHeaderPosition({headerPosition:o,direction:i,fromTab:n,allowUserOverride:!0,event:r}):!n||this.focusNextHeaderRow(a,i,r)},n.prototype.focusNextHeaderRow=function(e,t,n){var r,o=e.headerRowIndex,i=null;return"Before"===t?o>0&&(r=o-1,i=this.headerPositionUtils.findColAtEdgeForHeaderRow(r,"end")):(r=o+1,i=this.headerPositionUtils.findColAtEdgeForHeaderRow(r,"start")),this.focusService.focusHeaderPosition({headerPosition:i,direction:t,fromTab:!0,allowUserOverride:!0,event:n})},n.prototype.scrollToColumn=function(e,t){if(void 0===t&&(t="After"),!e.getPinned()){var n;if(e instanceof Oe){var r=e.getDisplayedLeafColumns();n="Before"===t?v(r):r[0]}else n=e;this.gridBodyCon.getScrollFeature().ensureColumnVisible(n),this.gridBodyCon.getScrollFeature().horizontallyScrollHeaderCenterAndFloatingCenter(),this.animationFrameService.flushAllFrames()}},sl([de("focusService")],n.prototype,"focusService",void 0),sl([de("headerPositionUtils")],n.prototype,"headerPositionUtils",void 0),sl([de("animationFrameService")],n.prototype,"animationFrameService",void 0),sl([de("ctrlsService")],n.prototype,"ctrlsService",void 0),sl([ce],n.prototype,"postConstruct",null),n=sl([pe("headerNavigationService")],n)}(ze),ul=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),pl=function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},dl=function(e){function n(){return null!==e&&e.apply(this,arguments)||this}return ul(n,e),n.prototype.setComp=function(e,t,n){this.comp=e,this.eGui=t,this.createManagedBean(new Co(n,{onTabKeyDown:this.onTabKeyDown.bind(this),handleKeyDown:this.handleKeyDown.bind(this),onFocusOut:this.onFocusOut.bind(this)})),this.addManagedListener(this.eventService,Ke.EVENT_COLUMN_PIVOT_MODE_CHANGED,this.onPivotModeChanged.bind(this)),this.onPivotModeChanged(),this.setupHeaderHeight(),this.ctrlsService.registerGridHeaderCtrl(this)},n.prototype.setupHeaderHeight=function(){var e=this.setHeaderHeight.bind(this);e(),this.addManagedListener(this.gridOptionsWrapper,es.PROP_HEADER_HEIGHT,e),this.addManagedListener(this.gridOptionsWrapper,es.PROP_PIVOT_HEADER_HEIGHT,e),this.addManagedListener(this.gridOptionsWrapper,es.PROP_GROUP_HEADER_HEIGHT,e),this.addManagedListener(this.gridOptionsWrapper,es.PROP_PIVOT_GROUP_HEADER_HEIGHT,e),this.addManagedListener(this.gridOptionsWrapper,es.PROP_FLOATING_FILTERS_HEIGHT,e),this.addManagedListener(this.eventService,Ke.EVENT_DISPLAYED_COLUMNS_CHANGED,e)},n.prototype.setHeaderHeight=function(){var e,t,n,r=this.columnModel,o=this.gridOptionsWrapper,i=0,a=r.getHeaderRowCount();r.isPivotMode()?(t=o.getPivotGroupHeaderHeight(),n=o.getPivotHeaderHeight()):(r.hasFloatingFilters()&&(a++,i=1),t=o.getGroupHeaderHeight(),n=o.getHeaderHeight());var s=a-(1+i);e=i*o.getFloatingFiltersHeight(),e+=s*t;var l=(e+=n)+1+"px";this.comp.setHeightAndMinHeight(l)},n.prototype.onPivotModeChanged=function(){var e=this.columnModel.isPivotMode();this.comp.addOrRemoveCssClass("ag-pivot-on",e),this.comp.addOrRemoveCssClass("ag-pivot-off",!e)},n.prototype.onTabKeyDown=function(e){var n=this.gridOptionsWrapper.isEnableRtl(),r=e.shiftKey!==n?t.HeaderNavigationDirection.LEFT:t.HeaderNavigationDirection.RIGHT;(this.headerNavigationService.navigateHorizontally(r,!0,e)||this.focusService.focusNextGridCoreContainer(e.shiftKey))&&e.preventDefault()},n.prototype.handleKeyDown=function(e){var n=null;switch(e.keyCode){case mo.LEFT:n=t.HeaderNavigationDirection.LEFT;case mo.RIGHT:o(n)||(n=t.HeaderNavigationDirection.RIGHT),this.headerNavigationService.navigateHorizontally(n,!1,e);break;case mo.UP:n=t.HeaderNavigationDirection.UP;case mo.DOWN:o(n)||(n=t.HeaderNavigationDirection.DOWN),this.headerNavigationService.navigateVertically(n,null,e)&&e.preventDefault();break;default:return}},n.prototype.onFocusOut=function(e){var t=e.relatedTarget;!t&&this.eGui.contains(document.activeElement)||this.eGui.contains(t)||this.focusService.clearFocusedHeader()},pl([de("headerNavigationService")],n.prototype,"headerNavigationService",void 0),pl([de("focusService")],n.prototype,"focusService",void 0),pl([de("columnModel")],n.prototype,"columnModel",void 0),pl([de("ctrlsService")],n.prototype,"ctrlsService",void 0),n}(ze),hl=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),fl=function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},gl=function(e){function t(t){var n=e.call(this)||this;return n.callback=t,n}return hl(t,e),t.prototype.postConstruct=function(){var e=this.setWidth.bind(this);this.addManagedListener(this.gridOptionsWrapper,es.PROP_DOM_LAYOUT,e),this.addManagedListener(this.eventService,Ke.EVENT_DISPLAYED_COLUMNS_CHANGED,e),this.addManagedListener(this.eventService,Ke.EVENT_DISPLAYED_COLUMNS_WIDTH_CHANGED,e),this.setWidth()},t.prototype.setWidth=function(){var e=this.columnModel,t=this.gridOptionsWrapper.getDomLayout()===Ce.DOM_LAYOUT_PRINT,n=e.getBodyContainerWidth(),r=e.getDisplayedColumnsLeftWidth(),o=e.getDisplayedColumnsRightWidth(),i=t?n+r+o:n;this.callback(i)},fl([de("columnModel")],t.prototype,"columnModel",void 0),fl([ce],t.prototype,"postConstruct",null),t}(ze),vl=function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},ml=function(){function e(e,t){this.needToMoveLeft=!1,this.needToMoveRight=!1,this.pinned=e,this.eContainer=t,this.centerContainer=!o(e)}return e.prototype.init=function(){var e=this;this.ctrlsService.whenReady((function(){e.gridBodyCon=e.ctrlsService.getGridBodyCtrl()}))},e.prototype.getIconName=function(){return this.pinned?ra.ICON_PINNED:ra.ICON_MOVE},e.prototype.onDragEnter=function(e){var n=e.dragItem.columns;if(e.dragSource.type===t.DragSourceType.ToolPanel)this.setColumnsVisible(n,!0,"uiColumnDragged");else{var r=e.dragItem.visibleState,o=(n||[]).filter((function(e){return r[e.getId()]}));this.setColumnsVisible(o,!0,"uiColumnDragged")}this.setColumnsPinned(n,this.pinned,"uiColumnDragged"),this.onDragging(e,!0)},e.prototype.onDragLeave=function(e){if(!this.gridOptionsWrapper.isSuppressDragLeaveHidesColumns()&&!e.fromNudge){var t=e.dragSource.getDragItem().columns;this.setColumnsVisible(t,!1,"uiColumnDragged")}this.ensureIntervalCleared()},e.prototype.setColumnsVisible=function(e,t,n){if(void 0===n&&(n="api"),e){var r=e.filter((function(e){return!e.getColDef().lockVisible}));this.columnModel.setColumnsVisible(r,t,n)}},e.prototype.setColumnsPinned=function(e,t,n){if(void 0===n&&(n="api"),e){var r=e.filter((function(e){return!e.getColDef().lockPinned}));this.columnModel.setColumnsPinned(r,t,n)}},e.prototype.onDragStop=function(){this.ensureIntervalCleared()},e.prototype.normaliseX=function(e){this.gridOptionsWrapper.isEnableRtl()&&(e=this.eContainer.clientWidth-e);return this.centerContainer&&(e+=this.ctrlsService.getCenterRowContainerCtrl().getCenterViewportScrollLeft()),e},e.prototype.checkCenterForScrolling=function(e){if(this.centerContainer){var t=this.ctrlsService.getCenterRowContainerCtrl().getCenterViewportScrollLeft(),n=t+this.ctrlsService.getCenterRowContainerCtrl().getCenterWidth();this.gridOptionsWrapper.isEnableRtl()?(this.needToMoveRight=en-50):(this.needToMoveLeft=en-50),this.needToMoveLeft||this.needToMoveRight?this.ensureIntervalStarted():this.ensureIntervalCleared()}},e.prototype.onDragging=function(e,t){var n=this;if(void 0===t&&(t=!1),this.lastDraggingEvent=e,!i(e.hDirection)){var r=this.normaliseX(e.x);t||this.checkCenterForScrolling(r);var o=this.normaliseDirection(e.hDirection),a=e.dragSource.type,s=e.dragSource.getDragItem().columns;s=s.filter((function(e){return!e.getColDef().lockPinned||e.getPinned()==n.pinned})),this.attemptMoveColumns(a,s,o,r,t)}},e.prototype.normaliseDirection=function(e){if(!this.gridOptionsWrapper.isEnableRtl())return e;switch(e){case t.HorizontalDirection.Left:return t.HorizontalDirection.Right;case t.HorizontalDirection.Right:return t.HorizontalDirection.Left;default:console.error("AG Grid: Unknown direction "+e)}},e.prototype.calculateOldIndex=function(e){var t=this.columnModel.getAllGridColumns(),n=y(e.map((function(e){return t.indexOf(e)}))),r=n[0];return v(n)-r!==n.length-1?null:r},e.prototype.attemptMoveColumns=function(e,n,r,o,i){var a=r===t.HorizontalDirection.Left,s=r===t.HorizontalDirection.Right,l=n.slice();this.columnModel.sortColumnsLikeGridColumns(l);var c=this.calculateValidMoves(l,s,o),u=this.calculateOldIndex(l);if(0!==c.length){var p=c[0],d=null!==u&&!i;if(e==t.DragSourceType.HeaderCell&&(d=null!==u),d){if(a&&p>=u)return;if(s&&p<=u)return}for(var h=0;h0){for(var h=0;h0){var f=l[u-1];o=c.indexOf(f)+1}else-1===(o=c.indexOf(l[0]))&&(o=0);var g=[o],v=function(e,t){return e-t};if(t){for(var m=o+1,y=a.length-1;m<=y;)g.push(m),m++;g.sort(v)}else{m=o,y=a.length-1;for(var b=a[m];m<=y&&this.isColumnHidden(i,b);)m++,g.push(m),b=a[m];m=o-1;for(;m>=0;)g.push(m),m--;g.sort(v).reverse()}return g},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(ra.ICON_LEFT,!0):this.dragAndDropService.setGhostIcon(ra.ICON_RIGHT,!0))},e.prototype.ensureIntervalCleared=function(){this.movingIntervalId&&(window.clearInterval(this.movingIntervalId),this.movingIntervalId=null,this.dragAndDropService.setGhostIcon(ra.ICON_MOVE))},e.prototype.moveInterval=function(){var e;this.intervalCount++,(e=10+5*this.intervalCount)>100&&(e=100);var t=null,n=this.gridBodyCon.getScrollFeature();if(this.needToMoveLeft?t=n.scrollHorizontally(-e):this.needToMoveRight&&(t=n.scrollHorizontally(e)),0!==t)this.onDragging(this.lastDraggingEvent),this.failedMoveAttempts=0;else{this.failedMoveAttempts++;var r=this.lastDraggingEvent.dragItem.columns.filter((function(e){return!e.getColDef().lockPinned}));if(r.length>0&&(this.dragAndDropService.setGhostIcon(ra.ICON_PINNED),this.failedMoveAttempts>7)){var o=this.needToMoveLeft?Ce.PINNED_LEFT:Ce.PINNED_RIGHT;this.setColumnsPinned(r,o,"uiColumnDragged"),this.dragAndDropService.nudge()}}},vl([de("columnModel")],e.prototype,"columnModel",void 0),vl([de("dragAndDropService")],e.prototype,"dragAndDropService",void 0),vl([de("gridOptionsWrapper")],e.prototype,"gridOptionsWrapper",void 0),vl([de("ctrlsService")],e.prototype,"ctrlsService",void 0),vl([ce],e.prototype,"init",null),e}(),yl=function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},bl=function(){function e(e){this.columnsToAggregate=[],this.columnsToGroup=[],this.columnsToPivot=[],this.pinned=e}return e.prototype.onDragEnter=function(e){var t=this;if(this.clearColumnsList(),!this.gridOptionsWrapper.isFunctionsReadOnly()){var n=e.dragItem.columns;n&&n.forEach((function(e){e.isPrimary()&&(e.isAnyFunctionActive()||(e.isAllowValue()?t.columnsToAggregate.push(e):e.isAllowRowGroup()?t.columnsToGroup.push(e):e.isAllowPivot()&&t.columnsToPivot.push(e)))}))}},e.prototype.getIconName=function(){return this.columnsToAggregate.length+this.columnsToGroup.length+this.columnsToPivot.length>0?this.pinned?ra.ICON_PINNED:ra.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.columnModel.addValueColumns(this.columnsToAggregate,"toolPanelDragAndDrop"),this.columnsToGroup.length>0&&this.columnModel.addRowGroupColumns(this.columnsToGroup,"toolPanelDragAndDrop"),this.columnsToPivot.length>0&&this.columnModel.addPivotColumns(this.columnsToPivot,"toolPanelDragAndDrop")},yl([de("columnModel")],e.prototype,"columnModel",void 0),yl([de("gridOptionsWrapper")],e.prototype,"gridOptionsWrapper",void 0),e}(),wl=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Cl=function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},xl=function(e){function n(t,n){var r=e.call(this)||this;return r.pinned=t,r.eContainer=n,r}return wl(n,e),n.prototype.postConstruct=function(){var e=this;this.ctrlsService.whenReady((function(t){switch(e.pinned){case Ce.PINNED_LEFT:e.eSecondaryContainers=[[t.gridBodyCtrl.getBodyViewportElement(),t.leftRowContainerCtrl.getContainerElement()],[t.bottomLeftRowContainerCtrl.getContainerElement()],[t.topLeftRowContainerCtrl.getContainerElement()]];break;case Ce.PINNED_RIGHT:e.eSecondaryContainers=[[t.gridBodyCtrl.getBodyViewportElement(),t.rightRowContainerCtrl.getContainerElement()],[t.bottomRightRowContainerCtrl.getContainerElement()],[t.topRightRowContainerCtrl.getContainerElement()]];break;default:e.eSecondaryContainers=[[t.gridBodyCtrl.getBodyViewportElement(),t.centerRowContainerCtrl.getViewportElement()],[t.bottomCenterRowContainerCtrl.getViewportElement()],[t.topCenterRowContainerCtrl.getViewportElement()]]}}))},n.prototype.isInterestedIn=function(e){return e===t.DragSourceType.HeaderCell||e===t.DragSourceType.ToolPanel&&this.gridOptionsWrapper.isAllowDragFromColumnsToolPanel()},n.prototype.getSecondaryContainers=function(){return this.eSecondaryContainers},n.prototype.getContainer=function(){return this.eContainer},n.prototype.init=function(){this.moveColumnFeature=this.createManagedBean(new ml(this.pinned,this.eContainer)),this.bodyDropPivotTarget=this.createManagedBean(new bl(this.pinned)),this.dragAndDropService.addDropTarget(this)},n.prototype.getIconName=function(){return this.currentDropListener.getIconName()},n.prototype.isDropColumnInPivotMode=function(e){return this.columnModel.isPivotMode()&&e.dragSource.type===t.DragSourceType.ToolPanel},n.prototype.onDragEnter=function(e){this.currentDropListener=this.isDropColumnInPivotMode(e)?this.bodyDropPivotTarget:this.moveColumnFeature,this.currentDropListener.onDragEnter(e)},n.prototype.onDragLeave=function(e){this.currentDropListener.onDragLeave(e)},n.prototype.onDragging=function(e){this.currentDropListener.onDragging(e)},n.prototype.onDragStop=function(e){this.currentDropListener.onDragStop(e)},Cl([de("dragAndDropService")],n.prototype,"dragAndDropService",void 0),Cl([de("columnModel")],n.prototype,"columnModel",void 0),Cl([de("ctrlsService")],n.prototype,"ctrlsService",void 0),Cl([ce],n.prototype,"postConstruct",null),Cl([ce],n.prototype,"init",null),n}(ze),Sl=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),El=function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},_l=0,Rl=function(e){function t(t,n){var r=e.call(this)||this;return r.lastFocusEvent=null,r.columnGroupChild=t,r.parentRowCtrl=n,r.instanceId=t.getUniqueId()+"-"+_l++,r}return Sl(t,e),t.prototype.shouldStopEventPropagation=function(e){var t=this.focusService.getFocusedHeader(),n=t.headerRowIndex,r=t.column;return Gr(this.gridOptionsWrapper,e,n,r)},t.prototype.setGui=function(e){this.eGui=e,this.addDomData()},t.prototype.addDomData=function(){var e=this,n=t.DOM_DATA_KEY_HEADER_CTRL;this.gridOptionsWrapper.setDomData(this.eGui,n,this),this.addDestroyFunc((function(){return e.gridOptionsWrapper.setDomData(e.eGui,n,null)}))},t.prototype.focus=function(e){return!!this.eGui&&(this.lastFocusEvent=e||null,this.eGui.focus(),!0)},t.prototype.getRowIndex=function(){return this.parentRowCtrl.getRowIndex()},t.prototype.getParentRowCtrl=function(){return this.parentRowCtrl},t.prototype.getPinned=function(){return this.parentRowCtrl.getPinned()},t.prototype.getInstanceId=function(){return this.instanceId},t.prototype.getColumnGroupChild=function(){return this.columnGroupChild},t.DOM_DATA_KEY_HEADER_CTRL="headerCtrl",El([de("focusService")],t.prototype,"focusService",void 0),t}(ze),Ol=function(){function e(){}return e.getFloatingFilterType=function(e){return this.filterToFloatingFilterMapping[e]},e.filterToFloatingFilterMapping={set:"agSetColumnFloatingFilter",agSetColumnFilter:"agSetColumnFloatingFilter",multi:"agMultiColumnFloatingFilter",agMultiColumnFilter:"agMultiColumnFloatingFilter",number:"agNumberColumnFloatingFilter",agNumberColumnFilter:"agNumberColumnFloatingFilter",date:"agDateColumnFloatingFilter",agDateColumnFilter:"agDateColumnFloatingFilter",text:"agTextColumnFloatingFilter",agTextColumnFilter:"agTextColumnFloatingFilter"},e}(),Al=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Pl=function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},Tl=function(e){function t(t,n,r,o){var i=e.call(this)||this;return i.columnOrGroup=t,i.eCell=n,i.ariaEl=i.eCell.querySelector("[role=columnheader]")||i.eCell,i.colsSpanning=o,i.beans=r,i}return Al(t,e),t.prototype.setColsSpanning=function(e){this.colsSpanning=e,this.onLeftChanged()},t.prototype.getColumnOrGroup=function(){return this.beans.gridOptionsWrapper.isEnableRtl()&&this.colsSpanning?v(this.colsSpanning):this.columnOrGroup},t.prototype.postConstruct=function(){this.addManagedListener(this.columnOrGroup,_e.EVENT_LEFT_CHANGED,this.onLeftChanged.bind(this)),this.setLeftFirstTime(),this.addManagedListener(this.eventService,Ke.EVENT_DISPLAYED_COLUMNS_WIDTH_CHANGED,this.onLeftChanged.bind(this)),this.addManagedListener(this.beans.gridOptionsWrapper,es.PROP_DOM_LAYOUT,this.onLeftChanged.bind(this))},t.prototype.setLeftFirstTime=function(){var e=this.beans.gridOptionsWrapper.isSuppressColumnMoveAnimation(),t=o(this.columnOrGroup.getOldLeft());this.beans.columnAnimationService.isActive()&&t&&!e?this.animateInLeft():this.onLeftChanged()},t.prototype.animateInLeft=function(){var e=this,t=this.getColumnOrGroup(),n=t.getLeft(),r=t.getOldLeft(),o=this.modifyLeftForPrintLayout(t,r),i=this.modifyLeftForPrintLayout(t,n);this.setLeft(o),this.actualLeft=i,this.beans.columnAnimationService.executeNextVMTurn((function(){e.actualLeft===i&&e.setLeft(i)}))},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){if(!(this.beans.gridOptionsWrapper.getDomLayout()===Ce.DOM_LAYOUT_PRINT))return t;if(e.getPinned()===Ce.PINNED_LEFT)return t;var n=this.beans.columnModel.getDisplayedColumnsLeftWidth();return e.getPinned()===Ce.PINNED_RIGHT?n+this.beans.columnModel.getBodyContainerWidth()+t:n+t},t.prototype.setLeft=function(e){var t;if(o(e)&&(this.eCell.style.left=e+"px"),this.columnOrGroup instanceof _e)t=this.columnOrGroup;else{var n=this.columnOrGroup.getLeafColumns();if(!n.length)return;n.length>1&&vr(this.ariaEl,n.length),t=n[0]}var r=this.beans.columnModel.getAriaColumnIndex(t);gr(this.ariaEl,r)},Pl([ce],t.prototype,"postConstruct",null),t}(ze),Dl=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),kl=function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},Nl=function(e){function t(t,n){var r=e.call(this)||this;return r.columns=t,r.element=n,r}return Dl(t,e),t.prototype.postConstruct=function(){this.gridOptionsWrapper.isColumnHoverHighlight()&&this.addMouseHoverListeners()},t.prototype.addMouseHoverListeners=function(){this.addManagedListener(this.element,"mouseout",this.onMouseOut.bind(this)),this.addManagedListener(this.element,"mouseover",this.onMouseOver.bind(this))},t.prototype.onMouseOut=function(){this.columnHoverService.clearMouseOver()},t.prototype.onMouseOver=function(){this.columnHoverService.setMouseOver(this.columns)},kl([de("columnHoverService")],t.prototype,"columnHoverService",void 0),kl([ce],t.prototype,"postConstruct",null),t}(ze),Ml=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Il=function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},Ll=function(e){function n(t,n){var r=e.call(this,t,n)||this;return r.column=t,r}return Ml(n,e),n.prototype.setComp=function(t,n,r,o){e.prototype.setGui.call(this,n),this.comp=t,this.eButtonShowMainFilter=r,this.eFloatingFilterBody=o;var i=this.column.getColDef();this.active=(!!i.filter||!!i.filterFramework)&&!!i.floatingFilter,this.setupWidth(),this.setupLeft(),this.setupHover(),this.setupFocus(),this.setupUserComp(),this.setupSyncWithFilter(),this.setupUi(),this.addManagedListener(this.eButtonShowMainFilter,"click",this.showParentFilter.bind(this))},n.prototype.setupUi=function(){if(this.comp.addOrRemoveButtonWrapperCssClass("ag-hidden",!this.active||this.suppressFilterButton),this.active){this.comp.addOrRemoveBodyCssClass("ag-floating-filter-full-body",this.suppressFilterButton),this.comp.addOrRemoveBodyCssClass("ag-floating-filter-body",!this.suppressFilterButton);var e=Nr("filter",this.gridOptionsWrapper,this.column);e&&this.eButtonShowMainFilter.appendChild(e)}},n.prototype.setupFocus=function(){this.createManagedBean(new Co(this.eGui,{shouldStopEventPropagation:this.shouldStopEventPropagation.bind(this),onTabKeyDown:this.onTabKeyDown.bind(this),handleKeyDown:this.handleKeyDown.bind(this),onFocusIn:this.onFocusIn.bind(this)}))},n.prototype.onTabKeyDown=function(e){if(!(document.activeElement===this.eGui)){var t=this.focusService.findNextFocusableElement(this.eGui,null,e.shiftKey);t&&(e.preventDefault(),t.focus())}},n.prototype.handleKeyDown=function(e){var t=document.activeElement===this.eGui;switch(e.keyCode){case mo.UP:case mo.DOWN:t||e.preventDefault();case mo.LEFT:case mo.RIGHT:if(t)return;e.stopPropagation();case mo.ENTER:t&&this.focusService.focusInto(this.eGui)&&e.preventDefault();break;case mo.ESCAPE:t||this.eGui.focus()}},n.prototype.onFocusIn=function(e){if(!this.eGui.contains(e.relatedTarget)){var t=this.focusService.isKeyboardMode(),n=!!e.relatedTarget&&!hn(e.relatedTarget,"ag-floating-filter"),r=!!e.relatedTarget&&yn(e.relatedTarget,"ag-floating-filter");if(t&&n&&r&&e.target===this.eGui){var o=this.lastFocusEvent,i=!(!o||o.keyCode!==mo.TAB);if(o&&i){var a=this.beans.focusService.getFocusedHeader(),s=this.beans.columnModel.getDisplayedColAfter(this.column),l=a&&s===a.column,c=!!(t&&o.shiftKey&&l);this.focusService.focusInto(this.eGui,c)}}var u=this.getRowIndex();this.beans.focusService.setFocusedHeader(u,this.column)}},n.prototype.setupHover=function(){var e=this;this.createManagedBean(new Nl([this.column],this.eGui));var t=function(){if(e.gridOptionsWrapper.isColumnHoverHighlight()){var t=e.columnHoverService.isHovered(e.column);e.comp.addOrRemoveCssClass("ag-column-hover",t)}};this.addManagedListener(this.eventService,Ke.EVENT_COLUMN_HOVER_CHANGED,t),t()},n.prototype.setupLeft=function(){var e=new Tl(this.column,this.eGui,this.beans);this.createManagedBean(e)},n.prototype.setupUserComp=function(){if(this.active){var e=this.column.getColDef(),t=this.filterManager.createFilterParams(this.column,e),r=this.userComponentFactory.mergeParamsWithApplicationProvidedParams(e,"filter",t),o=n.getDefaultFloatingFilterType(e);null==o&&(o="agReadOnlyFloatingFilter");var i={api:this.gridApi,column:this.column,filterParams:r,currentParentModel:this.currentParentModel.bind(this),parentFilterInstance:this.parentFilterInstance.bind(this),showParentFilter:this.showParentFilter.bind(this),onFloatingFilterChanged:this.onFloatingFilterChanged.bind(this),suppressFilterButton:!1};this.suppressFilterButton=!!e.floatingFilterComponentParams&&!!e.floatingFilterComponentParams.suppressFilterButton;var a=this.userComponentFactory.getFloatingFilterCompDetails(e,i,o);a&&this.comp.setCompDetails(a)}},n.getDefaultFloatingFilterType=function(e){if(null==e)return null;var n=null;if("string"===typeof e.filter)n=Ol.getFloatingFilterType(e.filter);else if(e.filterFramework);else if(!0===e.filter){n=xe.isRegistered(t.ModuleNames.SetFilterModule)?"agSetColumnFloatingFilter":"agTextColumnFloatingFilter"}return n},n.prototype.currentParentModel=function(){var e=this.getFilterComponent(!1);return e?e.resolveNow(null,(function(e){return e&&e.getModel()})):null},n.prototype.getFilterComponent=function(e){return void 0===e&&(e=!0),this.filterManager.getFilterComponent(this.column,"NO_UI",e)},n.prototype.onFloatingFilterChanged=function(){console.warn("AG Grid: since version 21.x, how floating filters are implemented has changed. Instead of calling params.onFloatingFilterChanged(), get a reference to the main filter via params.parentFilterInstance() and then set a value on the parent filter directly.")},n.prototype.parentFilterInstance=function(e){var t=this,n=this.getFilterComponent();n&&n.then((function(n){var r=t.frameworkComponentWrapper?t.frameworkComponentWrapper.unwrap(n):n;e(r)}))},n.prototype.showParentFilter=function(){var e=this.suppressFilterButton?this.eFloatingFilterBody:this.eButtonShowMainFilter;this.menuFactory.showMenuAfterButtonClick(this.column,e,"floatingFilter","filterMenuTab",["filterMenuTab"])},n.prototype.setupSyncWithFilter=function(){var e=this;if(this.active){var t=function(t){var n=e.comp.getFloatingFilterComp();if(n){var r=e.currentParentModel();n.then((function(e){return e&&e.onParentModelChanged(r,t)}))}};this.addManagedListener(this.column,_e.EVENT_FILTER_CHANGED,t),this.filterManager.isFilterActive(this.column)&&t(null)}},n.prototype.setupWidth=function(){var e=this,t=function(){var t=e.column.getActualWidth()+"px";e.comp.setWidth(t)};this.addManagedListener(this.column,_e.EVENT_WIDTH_CHANGED,t),t()},Il([de("userComponentFactory")],n.prototype,"userComponentFactory",void 0),Il([de("filterManager")],n.prototype,"filterManager",void 0),Il([de("columnHoverService")],n.prototype,"columnHoverService",void 0),Il([de("gridApi")],n.prototype,"gridApi",void 0),Il([de("menuFactory")],n.prototype,"menuFactory",void 0),Il([de("beans")],n.prototype,"beans",void 0),Il([he("frameworkComponentWrapper")],n.prototype,"frameworkComponentWrapper",void 0),n}(Rl),Fl=function(){function e(){}return e.getHeaderClassesFromColDef=function(e,t,n,r){return i(e)?[]:this.getColumnClassesFromCollDef(e.headerClass,e,t,n,r)},e.getToolPanelClassesFromColDef=function(e,t,n,r){return i(e)?[]:this.getColumnClassesFromCollDef(e.toolPanelClass,e,t,n,r)},e.getColumnClassesFromCollDef=function(e,t,n,r,o){if(i(e))return[];var a;"function"===typeof e?a=e({colDef:t,column:r,columnGroup:o,context:n.getContext(),api:n.getApi()}):a=e;return"string"===typeof a?[a]:Array.isArray(a)?a:[]},e}(),Gl=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Hl=function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},Wl=function(e){function t(t,n,r,o,i){var a=e.call(this)||this;return a.pinned=t,a.column=n,a.eResize=r,a.comp=o,a.ctrl=i,a}return Gl(t,e),t.prototype.postConstruct=function(){var e,t,n=this,r=this.column.getColDef(),o=[],i=function(){o.forEach((function(e){return e()})),o.length=0},a=function(){var a=n.column.isResizable(),s=!n.gridOptionsWrapper.isSuppressAutoSize()&&!r.suppressAutoSize;(a!==e||s!==t)&&(e=a,t=s,i(),function(){if(gn(n.eResize,e),e){var r=n.horizontalResizeService.addResizeBar({eResizeBar:n.eResize,onResizeStart:n.onResizeStart.bind(n),onResizing:n.onResizing.bind(n,!1),onResizeEnd:n.onResizing.bind(n,!0)});if(o.push(r),t){var i=n.gridOptionsWrapper.isSkipHeaderOnAutoSize(),a=function(){n.columnModel.autoSizeColumn(n.column,i,"uiColumnResized")};n.eResize.addEventListener("dblclick",a);var s=new wi(n.eResize);s.addEventListener(wi.EVENT_DOUBLE_TAP,a),n.addDestroyFunc((function(){n.eResize.removeEventListener("dblclick",a),s.removeEventListener(wi.EVENT_DOUBLE_TAP,a),s.destroy()}))}}}())};a(),this.addDestroyFunc(i),this.ctrl.addRefreshFunction(a)},t.prototype.onResizing=function(e,t){var n=this.normaliseResizeAmount(t),r=[{key:this.column,newWidth:this.resizeStartWidth+n}];this.columnModel.setColumnWidths(r,this.resizeWithShiftKey,e,"uiColumnDragged"),e&&this.comp.addOrRemoveCssClass("ag-column-resizing",!1)},t.prototype.onResizeStart=function(e){this.resizeStartWidth=this.column.getActualWidth(),this.resizeWithShiftKey=e,this.comp.addOrRemoveCssClass("ag-column-resizing",!0)},t.prototype.normaliseResizeAmount=function(e){var t=e,n=this.pinned!==Ce.PINNED_LEFT,r=this.pinned===Ce.PINNED_RIGHT;return this.gridOptionsWrapper.isEnableRtl()?n&&(t*=-1):r&&(t*=-1),t},Hl([de("horizontalResizeService")],t.prototype,"horizontalResizeService",void 0),Hl([de("columnModel")],t.prototype,"columnModel",void 0),Hl([ce],t.prototype,"postConstruct",null),t}(ze),Vl=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),jl=function(e){function t(t,n,r){void 0===n&&(n="ag-checkbox"),void 0===r&&(r="checkbox");var o=e.call(this,t,n,r)||this;return o.labelAlignment="right",o.selected=!1,o.readOnly=!1,o.passive=!1,o}return Vl(t,e),t.prototype.addInputListeners=function(){this.addManagedListener(this.eInput,"click",this.onCheckboxClick.bind(this)),this.addManagedListener(this.eLabel,"click",this.toggle.bind(this))},t.prototype.getNextValue=function(){return void 0===this.selected||!this.selected},t.prototype.setPassive=function(e){this.passive=e},t.prototype.isReadOnly=function(){return this.readOnly},t.prototype.setReadOnly=function(e){dn(this.eWrapper,"ag-disabled",e),this.eInput.disabled=e,this.readOnly=e},t.prototype.setDisabled=function(t){return dn(this.eWrapper,"ag-disabled",t),e.prototype.setDisabled.call(this,t)},t.prototype.toggle=function(){if(!this.eInput.disabled){var e=this.isSelected(),t=this.getNextValue();this.passive?this.dispatchChange(t,e):this.setValue(t)}},t.prototype.getValue=function(){return this.isSelected()},t.prototype.setValue=function(e,t){return this.refreshSelectedClass(e),this.setSelected(e,t),this},t.prototype.setName=function(e){return this.getInputElement().name=e,this},t.prototype.isSelected=function(){return this.selected},t.prototype.setSelected=function(e,t){this.isSelected()!==e&&(this.previousValue=this.isSelected(),e=this.selected="boolean"===typeof e?e:void 0,this.eInput.checked=e,this.eInput.indeterminate=void 0===e,t||this.dispatchChange(this.selected,this.previousValue))},t.prototype.dispatchChange=function(e,n,r){this.dispatchEvent({type:t.EVENT_CHANGED,selected:e,previousValue:n,event:r});var o=this.getInputElement(),i={type:Ke.EVENT_CHECKBOX_CHANGED,id:o.id,name:o.name,selected:e,previousValue:n};this.eventService.dispatchEvent(i)},t.prototype.onCheckboxClick=function(e){if(!this.passive&&!this.eInput.disabled){var t=this.isSelected(),n=this.selected=e.target.checked;this.refreshSelectedClass(n),this.dispatchChange(n,t,e)}},t.prototype.refreshSelectedClass=function(e){dn(this.eWrapper,"ag-checked",!0===e),dn(this.eWrapper,"ag-indeterminate",null==e)},t}(Vo),Bl=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),zl=function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},Ul=function(e){function t(t){var n=e.call(this)||this;n.cbSelectAllVisible=!1,n.processingEventFromCheckbox=!1,n.column=t;var r=t.getColDef();return n.filteredOnly=!!r&&!!r.headerCheckboxSelectionFilteredOnly,n}return Bl(t,e),t.prototype.onSpaceKeyPressed=function(e){var t=this.cbSelectAll;t.isDisplayed()&&!t.getGui().contains(document.activeElement)&&(e.preventDefault(),t.setValue(!t.getValue()))},t.prototype.getCheckboxGui=function(){return this.cbSelectAll.getGui()},t.prototype.setComp=function(e){this.comp=e,this.cbSelectAll=this.createManagedBean(new jl),this.cbSelectAll.addCssClass("ag-header-select-all"),tr(this.cbSelectAll.getGui(),"presentation"),this.showOrHideSelectAll(),this.addManagedListener(this.eventService,Ke.EVENT_NEW_COLUMNS_LOADED,this.showOrHideSelectAll.bind(this)),this.addManagedListener(this.eventService,Ke.EVENT_DISPLAYED_COLUMNS_CHANGED,this.showOrHideSelectAll.bind(this)),this.addManagedListener(this.eventService,Ke.EVENT_SELECTION_CHANGED,this.onSelectionChanged.bind(this)),this.addManagedListener(this.eventService,Ke.EVENT_MODEL_UPDATED,this.onModelChanged.bind(this)),this.addManagedListener(this.cbSelectAll,jl.EVENT_CHANGED,this.onCbSelectAll.bind(this)),this.cbSelectAll.getInputElement().setAttribute("tabindex","-1"),this.refreshSelectAllLabel()},t.prototype.showOrHideSelectAll=function(){this.cbSelectAllVisible=this.isCheckboxSelection(),this.cbSelectAll.setDisplayed(this.cbSelectAllVisible),this.cbSelectAllVisible&&(this.checkRightRowModelType(),this.updateStateOfCheckbox()),this.refreshHeaderAriaDescribedBy(this.cbSelectAllVisible)},t.prototype.refreshHeaderAriaDescribedBy=function(e){var t=e?this.cbSelectAll.getInputElement().id:void 0;this.comp.setAriaDescribedBy(t)},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.setValue(t),this.refreshSelectAllLabel(),this.processingEventFromCheckbox=!1}},t.prototype.refreshSelectAllLabel=function(){var e=this.gridOptionsWrapper.getLocaleTextFunc(),t=this.cbSelectAll.getValue()?e("ariaChecked","checked"):e("ariaUnchecked","unchecked"),n=e("ariaRowSelectAll","Press Space to toggle all rows selection");this.cbSelectAll.setInputAriaLabel(n+" ("+t+")")},t.prototype.getSelectionCount=function(){var e=this,t=0,n=0,r=function(r){e.gridOptionsWrapper.isGroupSelectsChildren()&&r.group||(r.isSelected()?t++:r.selectable&&n++)};return this.filteredOnly?this.gridApi.forEachNodeAfterFilter(r):this.gridApi.forEachNode(r),{notSelected:n,selected:t}},t.prototype.checkRightRowModelType=function(){var e=this.rowModel.getType();e===Ce.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.getValue()?this.selectionService.selectAllRowNodes(this.filteredOnly):this.selectionService.deselectAllRowNodes(this.filteredOnly))},t.prototype.isCheckboxSelection=function(){var e=this.column.getColDef().headerCheckboxSelection;"function"===typeof e&&(e=e({column:this.column,colDef:this.column.getColDef(),columnApi:this.columnApi,api:this.gridApi}));return!!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))},zl([de("gridApi")],t.prototype,"gridApi",void 0),zl([de("columnApi")],t.prototype,"columnApi",void 0),zl([de("rowModel")],t.prototype,"rowModel",void 0),zl([de("selectionService")],t.prototype,"selectionService",void 0),t}(ze),Yl=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Xl=function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},ql=function(e){function n(t,n){var r=e.call(this,t,n)||this;return r.refreshFunctions=[],r.userHeaderClasses=new Set,r.column=t,r}return Yl(n,e),n.prototype.setComp=function(t,n,r){var o=this;e.prototype.setGui.call(this,n),this.comp=t,this.colDefVersion=this.columnModel.getColDefVersion(),this.updateState(),this.setupWidth(),this.setupMovingCss(),this.setupMenuClass(),this.setupSortableClass(),this.addColumnHoverListener(),this.setupFilterCss(),this.setupColId(),this.setupClassesFromColDef(),this.setupTooltip(),this.addActiveHeaderMouseListeners(),this.setupSelectAll(),this.setupUserComp(),this.createManagedBean(new Wl(this.getPinned(),this.column,r,t,this)),this.createManagedBean(new Nl([this.column],n)),this.createManagedBean(new Tl(this.column,n,this.beans)),this.createManagedBean(new Co(n,{shouldStopEventPropagation:function(e){return o.shouldStopEventPropagation(e)},onTabKeyDown:function(){return null},handleKeyDown:this.handleKeyDown.bind(this),onFocusIn:this.onFocusIn.bind(this),onFocusOut:this.onFocusOut.bind(this)})),this.addManagedListener(this.eventService,Ke.EVENT_NEW_COLUMNS_LOADED,this.onNewColumnsLoaded.bind(this)),this.addManagedListener(this.eventService,Ke.EVENT_COLUMN_VALUE_CHANGED,this.onColumnValueChanged.bind(this)),this.addManagedListener(this.eventService,Ke.EVENT_COLUMN_ROW_GROUP_CHANGED,this.onColumnRowGroupChanged.bind(this)),this.addManagedListener(this.eventService,Ke.EVENT_COLUMN_PIVOT_CHANGED,this.onColumnPivotChanged.bind(this))},n.prototype.setupUserComp=function(){var e=this.lookupUserCompDetails();this.setCompDetails(e)},n.prototype.setCompDetails=function(e){this.userCompDetails=e,this.comp.setUserCompDetails(e)},n.prototype.lookupUserCompDetails=function(){var e=this.createParams(),t=this.column.getColDef();return this.userComponentFactory.getHeaderCompDetails(t,e)},n.prototype.createParams=function(){var e=this,t=this.column.getColDef();return{column:this.column,displayName:this.displayName,enableSorting:t.sortable,enableMenu:this.menuEnabled,showColumnMenu:function(t){e.gridApi.showColumnMenuAfterButtonClick(e.column,t)},progressSort:function(t){e.sortController.progressSort(e.column,!!t,"uiColumnSorted")},setSort:function(t,n){e.sortController.setSortForColumn(e.column,t,!!n,"uiColumnSorted")},api:this.gridApi,columnApi:this.columnApi,context:this.gridOptionsWrapper.getContext(),eGridHeader:this.getGui()}},n.prototype.setupSelectAll=function(){this.selectAllFeature=this.createManagedBean(new Ul(this.column)),this.selectAllFeature.setComp(this.comp)},n.prototype.getSelectAllGui=function(){return this.selectAllFeature.getCheckboxGui()},n.prototype.handleKeyDown=function(e){e.keyCode===mo.SPACE&&this.selectAllFeature.onSpaceKeyPressed(e),e.keyCode===mo.ENTER&&this.onEnterKeyPressed(e)},n.prototype.onEnterKeyPressed=function(e){var t=this.comp.getUserCompInstance();if(t)if(e.ctrlKey||e.metaKey)this.menuEnabled&&t.showMenu&&(e.preventDefault(),t.showMenu());else if(this.sortable){var n=e.shiftKey;this.sortController.progressSort(this.column,n,"uiColumnSorted")}},n.prototype.isMenuEnabled=function(){return this.menuEnabled},n.prototype.onFocusIn=function(e){if(!this.getGui().contains(e.relatedTarget)){var t=this.getRowIndex();this.focusService.setFocusedHeader(t,this.column)}this.setActiveHeader(!0)},n.prototype.onFocusOut=function(e){this.getGui().contains(e.relatedTarget)||this.setActiveHeader(!1)},n.prototype.setupTooltip=function(){var e=this,t={getColumn:function(){return e.column},getColDef:function(){return e.column.getColDef()},getGui:function(){return e.eGui},getLocation:function(){return"header"},getTooltipValue:function(){return e.column.getColDef().headerTooltip}},n=this.createManagedBean(new vs(t,this.beans));n.setComp(this.comp),this.refreshFunctions.push((function(){return n.refreshToolTip()}))},n.prototype.setupClassesFromColDef=function(){var e=this,t=function(){var t=e.column.getColDef(),n=e.gridOptionsWrapper,r=Fl.getHeaderClassesFromColDef(t,n,e.column,null),o=e.userHeaderClasses;e.userHeaderClasses=new Set(r),r.forEach((function(t){o.has(t)?o.delete(t):e.comp.addOrRemoveCssClass(t,!0)})),o.forEach((function(t){return e.comp.addOrRemoveCssClass(t,!1)}))};this.refreshFunctions.push(t),t()},n.prototype.getGui=function(){return this.eGui},n.prototype.setDragSource=function(e){var n=this;this.dragSourceElement=e,this.removeDragSource(),e&&this.draggable&&(this.moveDragSource={type:t.DragSourceType.HeaderCell,eElement:e,defaultIconName:ra.ICON_HIDE,getDragItem:function(){return n.createDragItem()},dragItemName:this.displayName,onDragStarted:function(){return n.column.setMoving(!0,"uiColumnMoved")},onDragStopped:function(){return n.column.setMoving(!1,"uiColumnMoved")}},this.dragAndDropService.addDragSource(this.moveDragSource,!0))},n.prototype.createDragItem=function(){var e={};return e[this.column.getId()]=this.column.isVisible(),{columns:[this.column],visibleState:e}},n.prototype.removeDragSource=function(){this.moveDragSource&&(this.dragAndDropService.removeDragSource(this.moveDragSource),this.moveDragSource=void 0)},n.prototype.onNewColumnsLoaded=function(){var e=this.columnModel.getColDefVersion();e!=this.colDefVersion&&(this.colDefVersion=e,this.refresh())},n.prototype.updateState=function(){var e=this.column.getColDef();this.menuEnabled=this.menuFactory.isMenuEnabled(this.column)&&!e.suppressMenu,this.sortable=e.sortable,this.displayName=this.calculateDisplayName(),this.draggable=this.workOutDraggable()},n.prototype.addRefreshFunction=function(e){this.refreshFunctions.push(e)},n.prototype.refresh=function(){this.updateState(),this.refreshHeaderComp(),this.refreshFunctions.forEach((function(e){return e()}))},n.prototype.refreshHeaderComp=function(){var e=this.lookupUserCompDetails();!!(null!=this.comp.getUserCompInstance()&&this.userCompDetails.componentClass==e.componentClass)&&this.attemptHeaderCompRefresh(e.params)?this.setDragSource(this.dragSourceElement):this.setCompDetails(e)},n.prototype.attemptHeaderCompRefresh=function(e){var t=this.comp.getUserCompInstance();return!!t&&(!!t.refresh&&t.refresh(e))},n.prototype.calculateDisplayName=function(){return this.columnModel.getDisplayNameForColumn(this.column,"header",!0)},n.prototype.checkDisplayName=function(){this.displayName!==this.calculateDisplayName()&&this.refresh()},n.prototype.workOutDraggable=function(){var e=this.column.getColDef();return!!(!this.gridOptionsWrapper.isSuppressMovableColumns()&&!e.suppressMovable&&!e.lockPosition)||!!e.enableRowGroup||!!e.enablePivot},n.prototype.onColumnRowGroupChanged=function(){this.checkDisplayName()},n.prototype.onColumnPivotChanged=function(){this.checkDisplayName()},n.prototype.onColumnValueChanged=function(){this.checkDisplayName()},n.prototype.setupWidth=function(){var e=this,t=function(){e.comp.setWidth(e.column.getActualWidth()+"px")};this.addManagedListener(this.column,_e.EVENT_WIDTH_CHANGED,t),t()},n.prototype.setupMovingCss=function(){var e=this,t=function(){e.comp.addOrRemoveCssClass("ag-header-cell-moving",e.column.isMoving())};this.addManagedListener(this.column,_e.EVENT_MOVING_CHANGED,t),t()},n.prototype.setupMenuClass=function(){var e=this,t=function(){e.comp.addOrRemoveCssClass("ag-column-menu-visible",e.column.isMenuVisible())};this.addManagedListener(this.column,_e.EVENT_MENU_VISIBLE_CHANGED,t),t()},n.prototype.setupSortableClass=function(){var e=this,t=function(){e.comp.addOrRemoveCssClass("ag-header-cell-sortable",!!e.sortable)},n=function(){e.sortable?e.comp.setAriaSort(nr(e.column)):e.comp.setAriaSort(void 0)};t(),n(),this.addRefreshFunction(t),this.addRefreshFunction(n),this.addManagedListener(this.column,_e.EVENT_SORT_CHANGED,n)},n.prototype.addColumnHoverListener=function(){var e=this,t=function(){if(e.gridOptionsWrapper.isColumnHoverHighlight()){var t=e.columnHoverService.isHovered(e.column);e.comp.addOrRemoveCssClass("ag-column-hover",t)}};this.addManagedListener(this.eventService,Ke.EVENT_COLUMN_HOVER_CHANGED,t),t()},n.prototype.setupFilterCss=function(){var e=this,t=function(){e.comp.addOrRemoveCssClass("ag-header-cell-filtered",e.column.isFilterActive())};this.addManagedListener(this.column,_e.EVENT_FILTER_ACTIVE_CHANGED,t),t()},n.prototype.setupColId=function(){this.comp.setColId(this.column.getColId())},n.prototype.addActiveHeaderMouseListeners=function(){var e=this,t=function(t){return e.setActiveHeader("mouseenter"===t.type)};this.addManagedListener(this.getGui(),"mouseenter",t),this.addManagedListener(this.getGui(),"mouseleave",t)},n.prototype.setActiveHeader=function(e){this.comp.addOrRemoveCssClass("ag-header-active",e)},Xl([de("columnModel")],n.prototype,"columnModel",void 0),Xl([de("columnHoverService")],n.prototype,"columnHoverService",void 0),Xl([de("beans")],n.prototype,"beans",void 0),Xl([de("sortController")],n.prototype,"sortController",void 0),Xl([de("menuFactory")],n.prototype,"menuFactory",void 0),Xl([de("dragAndDropService")],n.prototype,"dragAndDropService",void 0),Xl([de("gridApi")],n.prototype,"gridApi",void 0),Xl([de("columnApi")],n.prototype,"columnApi",void 0),Xl([de("userComponentFactory")],n.prototype,"userComponentFactory",void 0),Xl([ue],n.prototype,"removeDragSource",null),n}(Rl),Kl=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),$l=function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},Ql=function(e){function t(t,n,r,o){var i=e.call(this)||this;return i.eResize=n,i.comp=t,i.pinned=r,i.columnGroup=o,i}return Kl(t,e),t.prototype.postConstruct=function(){var e=this;if(this.columnGroup.isResizable()){var t=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(t),!this.gridOptionsWrapper.isSuppressAutoSize()){var n=this.gridOptionsWrapper.isSkipHeaderOnAutoSize();this.eResize.addEventListener("dblclick",(function(t){var r=[];e.columnGroup.getDisplayedLeafColumns().forEach((function(e){e.getColDef().suppressAutoSize||r.push(e.getColId())})),r.length>0&&e.columnModel.autoSizeColumns(r,n,"uiColumnResized")}))}}else this.comp.addOrRemoveResizableCssClass("ag-hidden",!0)},t.prototype.onResizeStart=function(e){var t=this,n=this.columnGroup.getDisplayedLeafColumns();this.resizeCols=n.filter((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 r=null;if(e&&(r=this.columnModel.getDisplayedGroupAfter(this.columnGroup)),r){var o=r.getDisplayedLeafColumns();this.resizeTakeFromCols=o.filter((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;this.comp.addOrRemoveCssClass("ag-column-resizing",!0)},t.prototype.onResizing=function(e,t){var n=[],r=this.normaliseDragChange(t);n.push({columns:this.resizeCols,ratios:this.resizeRatios,width:this.resizeStartWidth+r}),this.resizeTakeFromCols&&n.push({columns:this.resizeTakeFromCols,ratios:this.resizeTakeFromRatios,width:this.resizeTakeFromStartWidth-r}),this.columnModel.resizeColumnSets(n,e,"uiColumnDragged"),e&&this.comp.addOrRemoveCssClass("ag-column-resizing",!1)},t.prototype.normaliseDragChange=function(e){var t=e;return this.gridOptionsWrapper.isEnableRtl()?this.pinned!==Ce.PINNED_LEFT&&(t*=-1):this.pinned===Ce.PINNED_RIGHT&&(t*=-1),t},$l([de("horizontalResizeService")],t.prototype,"horizontalResizeService",void 0),$l([de("columnModel")],t.prototype,"columnModel",void 0),$l([ce],t.prototype,"postConstruct",null),t}(ze),Zl=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Jl=function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},ec=function(e){function t(t,n){var r=e.call(this)||this;return r.removeChildListenersFuncs=[],r.columnGroup=n,r.comp=t,r}return Zl(t,e),t.prototype.postConstruct=function(){this.addListenersToChildrenColumns(),this.addManagedListener(this.columnGroup,Oe.EVENT_DISPLAYED_CHILDREN_CHANGED,this.onDisplayedChildrenChanged.bind(this)),this.onWidthChanged(),this.addDestroyFunc(this.removeListenersOnChildrenColumns.bind(this))},t.prototype.addListenersToChildrenColumns=function(){var e=this;this.removeListenersOnChildrenColumns();var t=this.onWidthChanged.bind(this);this.columnGroup.getLeafColumns().forEach((function(n){n.addEventListener(_e.EVENT_WIDTH_CHANGED,t),n.addEventListener(_e.EVENT_VISIBLE_CHANGED,t),e.removeChildListenersFuncs.push((function(){n.removeEventListener(_e.EVENT_WIDTH_CHANGED,t),n.removeEventListener(_e.EVENT_VISIBLE_CHANGED,t)}))}))},t.prototype.removeListenersOnChildrenColumns=function(){this.removeChildListenersFuncs.forEach((function(e){return e()})),this.removeChildListenersFuncs=[]},t.prototype.onDisplayedChildrenChanged=function(){this.addListenersToChildrenColumns(),this.onWidthChanged()},t.prototype.onWidthChanged=function(){this.comp.setWidth(this.columnGroup.getActualWidth()+"px")},Jl([ce],t.prototype,"postConstruct",null),t}(ze),tc=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),nc=function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},rc=function(e){function n(t,n){var r=e.call(this,t,n)||this;return r.columnGroup=t,r}return tc(n,e),n.prototype.setComp=function(t,n,r){e.prototype.setGui.call(this,n),this.comp=t,this.displayName=this.columnModel.getDisplayNameForColumnGroup(this.columnGroup,"header"),this.addClasses(),this.addAttributes(),this.setupMovingCss(),this.setupExpandable(),this.setupTooltip(),this.setupUserComp();var o=this.getParentRowCtrl().getPinned(),i=this.columnGroup.getOriginalColumnGroup().getLeafColumns();this.createManagedBean(new Nl(i,n)),this.createManagedBean(new Tl(this.columnGroup,n,this.beans)),this.createManagedBean(new Ql(t,r,o,this.columnGroup)),this.createManagedBean(new ec(t,this.columnGroup)),this.createManagedBean(new Co(n,{shouldStopEventPropagation:this.shouldStopEventPropagation.bind(this),onTabKeyDown:function(){},handleKeyDown:this.handleKeyDown.bind(this),onFocusIn:this.onFocusIn.bind(this)}))},n.prototype.setupUserComp=function(){var e=this,t=this.displayName,n={displayName:this.displayName,columnGroup:this.columnGroup,setExpanded:function(t){e.columnModel.setColumnGroupOpened(e.columnGroup.getOriginalColumnGroup(),t,"gridInitializing")},api:this.gridApi,columnApi:this.columnApi,context:this.gridOptionsWrapper.getContext()};if(!t){for(var r=this.columnGroup,o=r.getLeafColumns();r.getParent()&&r.getParent().getLeafColumns().length===o.length;)r=r.getParent();var i=r.getColGroupDef();i&&(t=i.headerName),t||(t=o?this.columnModel.getDisplayNameForColumn(o[0],"header",!0):"")}var a=this.userComponentFactory.getHeaderGroupCompDetails(n);this.comp.setUserCompDetails(a)},n.prototype.setupTooltip=function(){var e=this,t=this.columnGroup.getColGroupDef(),n={getColumn:function(){return e.columnGroup},getGui:function(){return e.eGui},getLocation:function(){return"headerGroup"},getTooltipValue:function(){return t&&t.headerTooltip}};t&&(n.getColDef=function(){return t}),this.createManagedBean(new vs(n,this.beans)).setComp(this.comp)},n.prototype.setupExpandable=function(){var e=this.columnGroup.getOriginalColumnGroup();this.refreshExpanded(),this.addManagedListener(e,Ae.EVENT_EXPANDABLE_CHANGED,this.refreshExpanded.bind(this)),this.addManagedListener(e,Ae.EVENT_EXPANDED_CHANGED,this.refreshExpanded.bind(this))},n.prototype.refreshExpanded=function(){var e=this.columnGroup;this.expandable=e.isExpandable();var t=e.isExpanded();this.expandable?this.comp.setAriaExpanded(t?"true":"false"):this.comp.setAriaExpanded(void 0)},n.prototype.addAttributes=function(){this.comp.setColId(this.columnGroup.getUniqueId())},n.prototype.addClasses=function(){var e=this,t=this.columnGroup.getColGroupDef(),n=Fl.getHeaderClassesFromColDef(t,this.gridOptionsWrapper,null,this.columnGroup);n.push(this.columnGroup.isPadding()?"ag-header-group-cell-no-group":"ag-header-group-cell-with-group"),n.forEach((function(t){return e.comp.addOrRemoveCssClass(t,!0)}))},n.prototype.setupMovingCss=function(){var e=this,t=this.columnGroup.getOriginalColumnGroup().getLeafColumns(),n=function(){return e.comp.addOrRemoveCssClass("ag-header-cell-moving",e.columnGroup.isMoving())};t.forEach((function(t){e.addManagedListener(t,_e.EVENT_MOVING_CHANGED,n)})),n()},n.prototype.onFocusIn=function(e){if(!this.eGui.contains(e.relatedTarget)){var t=this.getRowIndex();this.beans.focusService.setFocusedHeader(t,this.columnGroup)}},n.prototype.handleKeyDown=function(e){var t=document.activeElement===this.eGui;if(this.expandable&&t&&e.keyCode===mo.ENTER){var n=this.columnGroup,r=!n.isExpanded();this.columnModel.setColumnGroupOpened(n.getOriginalColumnGroup(),r,"uiColumnExpanded")}},n.prototype.setDragSource=function(e){var n=this;if(!this.isSuppressMoving()){var r=this.columnGroup.getOriginalColumnGroup().getLeafColumns(),o={type:t.DragSourceType.HeaderCell,eElement:e,defaultIconName:ra.ICON_HIDE,dragItemName:this.displayName,getDragItem:this.getDragItemForGroup.bind(this),onDragStarted:function(){return r.forEach((function(e){return e.setMoving(!0,"uiColumnDragged")}))},onDragStopped:function(){return r.forEach((function(e){return e.setMoving(!1,"uiColumnDragged")}))}};this.dragAndDropService.addDragSource(o,!0),this.addDestroyFunc((function(){return n.dragAndDropService.removeDragSource(o)}))}},n.prototype.getDragItemForGroup=function(){var e=this.columnGroup.getOriginalColumnGroup().getLeafColumns(),t={};e.forEach((function(e){return t[e.getId()]=e.isVisible()}));var n=[];return this.columnModel.getAllDisplayedColumns().forEach((function(t){e.indexOf(t)>=0&&(n.push(t),b(e,t))})),e.forEach((function(e){return n.push(e)})),{columns:n,visibleState:t}},n.prototype.isSuppressMoving=function(){var e=!1;return this.columnGroup.getLeafColumns().forEach((function(t){(t.getColDef().suppressMovable||t.getColDef().lockPosition)&&(e=!0)})),e||this.gridOptionsWrapper.isSuppressMovableColumns()},nc([de("beans")],n.prototype,"beans",void 0),nc([de("columnModel")],n.prototype,"columnModel",void 0),nc([de("dragAndDropService")],n.prototype,"dragAndDropService",void 0),nc([de("userComponentFactory")],n.prototype,"userComponentFactory",void 0),nc([de("gridApi")],n.prototype,"gridApi",void 0),nc([de("columnApi")],n.prototype,"columnApi",void 0),n}(Rl),oc=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),ic=function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},ac=0,sc=function(e){function n(t,n,r){var o=e.call(this)||this;return o.instanceId=ac++,o.headerCellCtrls={},o.rowIndex=t,o.pinned=n,o.type=r,o}return oc(n,e),n.prototype.getInstanceId=function(){return this.instanceId},n.prototype.setComp=function(e){this.comp=e,this.onRowHeightChanged(),this.onVirtualColumnsChanged(),this.setWidth(),this.addEventListeners(),$t()&&this.comp.setTransform("translateZ(0)"),e.setAriaRowIndex(this.rowIndex+1)},n.prototype.addEventListeners=function(){this.addManagedListener(this.eventService,Ke.EVENT_COLUMN_RESIZED,this.onColumnResized.bind(this)),this.addManagedListener(this.gridOptionsWrapper,es.PROP_DOM_LAYOUT,this.onDisplayedColumnsChanged.bind(this)),this.addManagedListener(this.eventService,Ke.EVENT_DISPLAYED_COLUMNS_CHANGED,this.onDisplayedColumnsChanged.bind(this)),this.addManagedListener(this.eventService,Ke.EVENT_VIRTUAL_COLUMNS_CHANGED,this.onVirtualColumnsChanged.bind(this)),this.addManagedListener(this.gridOptionsWrapper,es.PROP_HEADER_HEIGHT,this.onRowHeightChanged.bind(this)),this.addManagedListener(this.gridOptionsWrapper,es.PROP_PIVOT_HEADER_HEIGHT,this.onRowHeightChanged.bind(this)),this.addManagedListener(this.gridOptionsWrapper,es.PROP_GROUP_HEADER_HEIGHT,this.onRowHeightChanged.bind(this)),this.addManagedListener(this.gridOptionsWrapper,es.PROP_PIVOT_GROUP_HEADER_HEIGHT,this.onRowHeightChanged.bind(this)),this.addManagedListener(this.gridOptionsWrapper,es.PROP_FLOATING_FILTERS_HEIGHT,this.onRowHeightChanged.bind(this))},n.prototype.getHtmlElementForColumnHeader=function(e){if(this.type==t.HeaderRowType.COLUMN){var n=p(this.headerCellCtrls,(function(t){return t.getColumnGroupChild()==e}));if(n)return n.getGui()}},n.prototype.onDisplayedColumnsChanged=function(){this.onVirtualColumnsChanged(),this.setWidth()},n.prototype.getType=function(){return this.type},n.prototype.onColumnResized=function(){this.setWidth()},n.prototype.setWidth=function(){var e=this.getWidthForRow();this.comp.setWidth(e+"px")},n.prototype.getWidthForRow=function(){return this.gridOptionsWrapper.getDomLayout()===Ce.DOM_LAYOUT_PRINT?null!=this.pinned?0:this.columnModel.getContainerWidth(Ce.PINNED_RIGHT)+this.columnModel.getContainerWidth(Ce.PINNED_LEFT)+this.columnModel.getContainerWidth(null):this.columnModel.getContainerWidth(this.pinned)},n.prototype.onRowHeightChanged=function(){var e,t,n=this.columnModel.getHeaderRowCount(),r=[],o=0;this.columnModel.isPivotMode()?(e=this.gridOptionsWrapper.getPivotGroupHeaderHeight(),t=this.gridOptionsWrapper.getPivotHeaderHeight()):(this.columnModel.hasFloatingFilters()&&(n++,o=1),e=this.gridOptionsWrapper.getGroupHeaderHeight(),t=this.gridOptionsWrapper.getHeaderHeight());for(var i=n-(1+o),a=0;a=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},uc=function(){for(var e=0,t=0,n=arguments.length;t=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},fc=function(e){function t(t){var n=e.call(this)||this;return n.headerRowComps={},n.rowCompsList=[],n.pinned=t,n}return dc(t,e),t.prototype.init=function(){var e=this;this.selectAndSetTemplate();var t={addOrRemoveCssClass:function(t,n){return e.addOrRemoveCssClass(t,n)},setCtrls:function(t){return e.setCtrls(t)},setCenterWidth:function(t){return e.eCenterContainer.style.width=t},setContainerTransform:function(t){return e.eCenterContainer.style.transform=t},setPinnedContainerWidth:function(t){var n=e.getGui();n.style.width=t,n.style.maxWidth=t,n.style.minWidth=t}};this.createManagedBean(new pc(this.pinned)).setComp(t,this.getGui())},t.prototype.selectAndSetTemplate=function(){var e=this.pinned==Ce.PINNED_LEFT,n=this.pinned==Ce.PINNED_RIGHT,r=e?t.PINNED_LEFT_TEMPLATE:n?t.PINNED_RIGHT_TEMPLATE:t.CENTER_TEMPLATE;this.setTemplate(r),this.eRowContainer=this.eCenterContainer?this.eCenterContainer:this.getGui()},t.prototype.destroyRowComps=function(){this.setCtrls([])},t.prototype.destroyRowComp=function(e){this.destroyBean(e),this.eRowContainer.removeChild(e.getGui())},t.prototype.setCtrls=function(e){var t,n=this,r=this.headerRowComps;this.headerRowComps={},this.rowCompsList=[];e.forEach((function(e){var o=e.getInstanceId(),i=r[o];delete r[o];var a=i||n.createBean(new il(e));n.headerRowComps[o]=a,n.rowCompsList.push(a),function(e){var r=e.getGui();r.parentElement!=n.eRowContainer&&n.eRowContainer.appendChild(r),t&&Nn(n.eRowContainer,r,t),t=r}(a)})),H(r).forEach((function(e){return n.destroyRowComp(e)}))},t.PINNED_LEFT_TEMPLATE='