UNPKG

1.07 MBJavaScriptView Raw
1/**
2 * @ag-grid-community/all-modules - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue * @version v29.2.0
3 * @link https://www.ag-grid.com/
4 * @license MIT
5 */
6/**
7 * @ag-grid-community/all-modules - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue * @version v29.2.0
8 * @link https://www.ag-grid.com/
9 * @license MIT
10 */
11/**
12 * @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue
13 * @version v29.2.0
14 * @link https://www.ag-grid.com/
15 * @license MIT
16 */
17function t(t){return null==t||""===t?null:t}function e(t,e){return void 0===e&&(e=!1),null!=t&&(""!==t||e)}function o(t){return!e(t)}function i(t){return null==t||0===t.length}function n(t){return null!=t&&"function"==typeof t.toString?t.toString():null}function r(t){if(void 0!==t){if(null===t||""===t)return null;if("number"==typeof t)return isNaN(t)?void 0:t;var e=parseInt(t,10);return isNaN(e)?void 0:e}}function s(t){if(void 0!==t)return null!==t&&""!==t&&("boolean"==typeof t?t:/true/i.test(t))}function a(t){if(t instanceof Set||t instanceof Map){var e=[];return t.forEach((function(t){return e.push(t)})),e}return Object.values(t)}var l=Object.freeze({__proto__:null,makeNull:t,exists:e,missing:o,missingOrEmpty:i,toStringOrNull:n,attrToNumber:r,attrToBoolean:s,attrToString:function(t){if(null!=t&&""!==t)return t},referenceCompare:function(t,e){return null==t&&null==e||(null!=t||null==e)&&((null==t||null!=e)&&t===e)},jsonEquals:function(t,e){return(t?JSON.stringify(t):null)===(e?JSON.stringify(e):null)},defaultComparator:function(t,e,o){void 0===o&&(o=!1);var i=null==t,n=null==e;if(t&&t.toNumber&&(t=t.toNumber()),e&&e.toNumber&&(e=e.toNumber()),i&&n)return 0;if(i)return-1;if(n)return 1;function r(t,e){return t>e?1:t<e?-1:0}if("string"!=typeof t)return r(t,e);if(!o)return r(t,e);try{return t.localeCompare(e)}catch(o){return r(t,e)}},values:a}),u=function(){function t(){this.existingKeys={}}return t.prototype.addExistingKeys=function(t){for(var e=0;e<t.length;e++)this.existingKeys[t[e]]=!0},t.prototype.getUniqueKey=function(t,e){t=n(t);for(var o=0;;){var i=void 0;if(t?(i=t,0!==o&&(i+="_"+o)):e?(i=e,0!==o&&(i+="_"+o)):i=""+o,!this.existingKeys[i])return this.existingKeys[i]=!0,i;o++}},t}();
18/**
19 * @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue
20 * @version v29.2.0
21 * @link https://www.ag-grid.com/
22 * @license MIT
23 */
24/**
25 * @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue
26 * @version v29.2.0
27 * @link https://www.ag-grid.com/
28 * @license MIT
29 */
30function c(t,e){null!=t&&(Array.isArray(t)?t.forEach((function(t,o){return e(""+o,t)})):Object.keys(t).forEach((function(o){return e(o,t[o])})))}function p(t){for(var e={},o=Object.keys(t),i=0;i<o.length;i++){var n=o[i],r=t[n];e[n]=r}return e}function d(t,e){if(t){var o=t,i={};return Object.keys(o).forEach((function(t){if(!(e&&e.indexOf(t)>=0)){var n=o[t],r=S(n)&&n.constructor===Object;i[t]=r?d(n):n}})),i}}function h(t,e){return t[e]}function f(t,e,o){t[e]=o}function g(t,e,o,i){var n=h(t,o);void 0!==n&&f(e,o,i?i(n):n)}function v(t){var e={};return t.filter((function(t){return null!=t})).forEach((function(t){Object.keys(t).forEach((function(t){return e[t]=null}))})),Object.keys(e)}function y(t){if(!t)return[];var e=Object;if("function"==typeof e.values)return e.values(t);var o=[];for(var i in t)t.hasOwnProperty(i)&&t.propertyIsEnumerable(i)&&o.push(t[i]);return o}function m(t,o,i,n){void 0===i&&(i=!0),void 0===n&&(n=!1),e(o)&&c(o,(function(e,o){var r=t[e];if(r!==o){if(n)if(null==r&&null!=o)"object"==typeof o&&o.constructor===Object&&(r={},t[e]=r);S(o)&&S(r)&&!Array.isArray(r)?m(r,o,i,n):(i||void 0!==o)&&(t[e]=o)}}))}function C(t,e,o){if(e&&t){if(!o)return t[e];for(var i=e.split("."),n=t,r=0;r<i.length;r++){if(null==n)return;n=n[i[r]]}return n}}function w(t,e){Object.keys(t).forEach((function(e){"object"==typeof t[e]&&(t[e]=void 0)}));var o=Object.getPrototypeOf(t),i={};Object.keys(o).forEach((function(t){if("function"==typeof o[t]){i[t]={value:function(){console.warn("AG Grid: "+e+" function "+t+"() cannot be called as the grid has been destroyed.\n Please don't call grid API functions on destroyed grids - as a matter of fact you shouldn't\n be keeping the API reference, your application has a memory leak! Remove the API reference\n when the grid is destroyed.")},writable:!0}}})),Object.defineProperties(t,i)}function S(t){return"object"==typeof t&&null!==t}var E=Object.freeze({__proto__:null,iterateObject:c,cloneObject:p,deepCloneObject:function(t){return JSON.parse(JSON.stringify(t))},deepCloneDefinition:d,getProperty:h,setProperty:f,copyPropertiesIfPresent:function(t,e){for(var o=[],i=2;i<arguments.length;i++)o[i-2]=arguments[i];o.forEach((function(o){return g(t,e,o)}))},copyPropertyIfPresent:g,getAllKeysInObjects:v,getAllValuesInObject:y,mergeDeep:m,missingOrEmptyObject:function(t){return o(t)||0===Object.keys(t).length},get:function(t,e,o){if(null==t)return o;for(var i=e.split("."),n=t;i.length>1;)if(null==(n=n[i.shift()]))return o;var r=n[i[0]];return null!=r?r:o},set:function(t,e,o){if(null!=t){var i=e.split("."),n=t;i.forEach((function(t,e){n[t]||(n[t]={}),e<i.length-1&&(n=n[t])})),n[i[i.length-1]]=o}},getValueUsingField:C,removeAllReferences:w,isNonNullObject:S}),R={};
31/**
32 * @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue
33 * @version v29.2.0
34 * @link https://www.ag-grid.com/
35 * @license MIT
36 */function O(t,e){R[e]||(t(),R[e]=!0)}function b(t){if(t.name)return t.name;var e=/function\s+([^\(]+)/.exec(t.toString());return e&&2===e.length?e[1].trim():null}function T(t){return!!(t&&t.constructor&&t.call&&t.apply)}function P(t){N(t,400)}var D=[],_=!1;function A(t){D.push(t),_||(_=!0,window.setTimeout((function(){var t=D.slice();D.length=0,_=!1,t.forEach((function(t){return t()}))}),0))}function N(t,e){void 0===e&&(e=0),t.length>0&&window.setTimeout((function(){return t.forEach((function(t){return t()}))}),e)}function F(t,e){var o;return function(){for(var i=[],n=0;n<arguments.length;n++)i[n]=arguments[n];var r=this;window.clearTimeout(o),o=window.setTimeout((function(){t.apply(r,i)}),e)}}function L(t,e){var o=0;return function(){for(var i=[],n=0;n<arguments.length;n++)i[n]=arguments[n];var r=this,s=(new Date).getTime();s-o<e||(o=s,t.apply(r,i))}}function M(t,e,o,i){void 0===o&&(o=100);var n=(new Date).getTime(),r=null,s=!1,a=function(){var a=(new Date).getTime()-n>o;(t()||a)&&(e(),s=!0,null!=r&&(window.clearInterval(r),r=null),a&&i&&console.warn(i))};a(),s||(r=window.setInterval(a,10))}function I(t){t&&t()}var G=Object.freeze({__proto__:null,doOnce:O,getFunctionName:b,isFunction:T,executeInAWhile:P,executeNextVMTurn:A,executeAfter:N,debounce:F,throttle:L,waitUntil:M,compose:function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return function(e){return t.reduce((function(t,e){return e(t)}),e)}},callIfPresent:I,noop:function(){}}),x=function(t,e){var o="function"==typeof Symbol&&t[Symbol.iterator];if(!o)return t;var i,n,r=o.call(t),s=[];try{for(;(void 0===e||e-- >0)&&!(i=r.next()).done;)s.push(i.value)}catch(t){n={error:t}}finally{try{i&&!i.done&&(o=r.return)&&o.call(r)}finally{if(n)throw n.error}}return s},H=function(){for(var t=[],e=0;e<arguments.length;e++)t=t.concat(x(arguments[e]));return t},V=function(){function t(t,e){if(this.beanWrappers={},this.destroyed=!1,t&&t.beanClasses){this.contextParams=t,this.logger=e,this.logger.log(">> creating ag-Application Context"),this.createBeans();var o=this.getBeanInstances();this.wireBeans(o),this.logger.log(">> ag-Application Context ready - component is alive")}}return t.prototype.getBeanInstances=function(){return a(this.beanWrappers).map((function(t){return t.beanInstance}))},t.prototype.createBean=function(t,e){if(!t)throw Error("Can't wire to bean since it is null");return this.wireBeans([t],e),t},t.prototype.wireBeans=function(t,o){this.autoWireBeans(t),this.methodWireBeans(t),this.callLifeCycleMethods(t,"preConstructMethods"),e(o)&&t.forEach(o),this.callLifeCycleMethods(t,"postConstructMethods")},t.prototype.createBeans=function(){var t=this;this.contextParams.beanClasses.forEach(this.createBeanWrapper.bind(this)),c(this.beanWrappers,(function(e,o){var i;o.bean.__agBeanMetaData&&o.bean.__agBeanMetaData.autowireMethods&&o.bean.__agBeanMetaData.autowireMethods.agConstructor&&(i=o.bean.__agBeanMetaData.autowireMethods.agConstructor);var n=t.getBeansForParameters(i,o.bean.name),r=new(o.bean.bind.apply(o.bean,H([null],n)));o.beanInstance=r}));var e=Object.keys(this.beanWrappers).join(", ");this.logger.log("created beans: "+e)},t.prototype.createBeanWrapper=function(t){var e=t.__agBeanMetaData;if(!e){var o=void 0;return o=t.prototype.constructor?b(t.prototype.constructor):""+t,void console.error("Context item "+o+" is not a bean")}var i={bean:t,beanInstance:null,beanName:e.beanName};this.beanWrappers[e.beanName]=i},t.prototype.autoWireBeans=function(t){var e=this;t.forEach((function(t){e.forEachMetaDataInHierarchy(t,(function(o,i){var n=o.agClassAttributes;n&&n.forEach((function(o){var n=e.lookupBeanInstance(i,o.beanName,o.optional);t[o.attributeName]=n}))}))}))},t.prototype.methodWireBeans=function(t){var e=this;t.forEach((function(t){e.forEachMetaDataInHierarchy(t,(function(o,i){c(o.autowireMethods,(function(o,n){if("agConstructor"!==o){var r=e.getBeansForParameters(n,i);t[o].apply(t,r)}}))}))}))},t.prototype.forEachMetaDataInHierarchy=function(t,e){for(var o=Object.getPrototypeOf(t);null!=o;){var i=o.constructor;if(i.hasOwnProperty("__agBeanMetaData"))e(i.__agBeanMetaData,this.getBeanName(i));o=Object.getPrototypeOf(o)}},t.prototype.getBeanName=function(t){if(t.__agBeanMetaData&&t.__agBeanMetaData.beanName)return t.__agBeanMetaData.beanName;var e=t.toString();return e.substring(9,e.indexOf("("))},t.prototype.getBeansForParameters=function(t,e){var o=this,i=[];return t&&c(t,(function(t,n){var r=o.lookupBeanInstance(e,n);i[Number(t)]=r})),i},t.prototype.lookupBeanInstance=function(t,e,o){if(void 0===o&&(o=!1),"context"===e)return this;if(this.contextParams.providedBeanInstances&&this.contextParams.providedBeanInstances.hasOwnProperty(e))return this.contextParams.providedBeanInstances[e];var i=this.beanWrappers[e];return i?i.beanInstance:(o||console.error("AG Grid: unable to find bean reference "+e+" while initialising "+t),null)},t.prototype.callLifeCycleMethods=function(t,e){var o=this;t.forEach((function(t){return o.callLifeCycleMethodsOnBean(t,e)}))},t.prototype.callLifeCycleMethodsOnBean=function(t,e,o){var i={};this.forEachMetaDataInHierarchy(t,(function(t){var n=t[e];n&&n.forEach((function(t){t!=o&&(i[t]=!0)}))})),Object.keys(i).forEach((function(e){return t[e]()}))},t.prototype.getBean=function(t){return this.lookupBeanInstance("getBean",t,!0)},t.prototype.destroy=function(){if(!this.destroyed){this.logger.log(">> Shutting down ag-Application Context");var t=this.getBeanInstances();this.destroyBeans(t),this.contextParams.providedBeanInstances=null,this.destroyed=!0,this.logger.log(">> ag-Application Context shut down - component is dead")}},t.prototype.destroyBean=function(t){t&&this.destroyBeans([t])},t.prototype.destroyBeans=function(t){var e=this;return t?(t.forEach((function(t){e.callLifeCycleMethodsOnBean(t,"preDestroyMethods","destroy");var o=t;"function"==typeof o.destroy&&o.destroy()})),[]):[]},t}();function k(t,e,o){var i=q(t.constructor);i.preConstructMethods||(i.preConstructMethods=[]),i.preConstructMethods.push(e)}function B(t,e,o){var i=q(t.constructor);i.postConstructMethods||(i.postConstructMethods=[]),i.postConstructMethods.push(e)}function j(t,e,o){var i=q(t.constructor);i.preDestroyMethods||(i.preDestroyMethods=[]),i.preDestroyMethods.push(e)}function W(t){return function(e){q(e).beanName=t}}function U(t){return function(e,o,i){K(e,t,!1,e,o,null)}}function z(t){return function(e,o,i){K(e,t,!0,e,o,null)}}function K(t,e,o,i,n,r){if(null!==e)if("number"!=typeof r){var s=q(t.constructor);s.agClassAttributes||(s.agClassAttributes=[]),s.agClassAttributes.push({attributeName:n,beanName:e,optional:o})}else console.error("AG Grid: Autowired should be on an attribute");else console.error("AG Grid: Autowired name should not be null")}function Y(t){return function(e,o,i){var n,r="function"==typeof e?e:e.constructor;if("number"==typeof i){var s=void 0;o?(n=q(r),s=o):(n=q(r),s="agConstructor"),n.autowireMethods||(n.autowireMethods={}),n.autowireMethods[s]||(n.autowireMethods[s]={}),n.autowireMethods[s][i]=t}}}function q(t){return t.hasOwnProperty("__agBeanMetaData")||(t.__agBeanMetaData={}),t.__agBeanMetaData}
37/**
38 * @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue
39 * @version v29.2.0
40 * @link https://www.ag-grid.com/
41 * @license MIT
42 */var Q,X=function(t,e,o,i){var n,r=arguments.length,s=r<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,o):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,o,i);else for(var a=t.length-1;a>=0;a--)(n=t[a])&&(s=(r<3?n(s):r>3?n(e,o,s):n(e,o))||s);return r>3&&s&&Object.defineProperty(e,o,s),s},J=function(t,e){return function(o,i){e(o,i,t)}},Z=function(){function t(){this.allSyncListeners=new Map,this.allAsyncListeners=new Map,this.globalSyncListeners=new Set,this.globalAsyncListeners=new Set,this.asyncFunctionsQueue=[],this.scheduled=!1,this.firedEvents={}}return t.prototype.setBeans=function(t,e,o,i){if(void 0===i&&(i=null),this.frameworkOverrides=o,this.gridOptionsService=e,i){var n=e.useAsyncEvents();this.addGlobalListener(i,n)}},t.prototype.getListeners=function(t,e,o){var i=e?this.allAsyncListeners:this.allSyncListeners,n=i.get(t);return!n&&o&&(n=new Set,i.set(t,n)),n},t.prototype.noRegisteredListenersExist=function(){return 0===this.allSyncListeners.size&&0===this.allAsyncListeners.size&&0===this.globalSyncListeners.size&&0===this.globalAsyncListeners.size},t.prototype.addEventListener=function(t,e,o){void 0===o&&(o=!1),this.getListeners(t,o,!0).add(e)},t.prototype.removeEventListener=function(t,e,o){void 0===o&&(o=!1);var i=this.getListeners(t,o,!1);i&&(i.delete(e),0===i.size&&(o?this.allAsyncListeners:this.allSyncListeners).delete(t))},t.prototype.addGlobalListener=function(t,e){void 0===e&&(e=!1),(e?this.globalAsyncListeners:this.globalSyncListeners).add(t)},t.prototype.removeGlobalListener=function(t,e){void 0===e&&(e=!1),(e?this.globalAsyncListeners:this.globalSyncListeners).delete(t)},t.prototype.dispatchEvent=function(t){var e=t;if(this.gridOptionsService){var o=this.gridOptionsService,i=o.api,n=o.columnApi,r=o.context;e.api=i,e.columnApi=n,e.context=r}this.dispatchToListeners(e,!0),this.dispatchToListeners(e,!1),this.firedEvents[e.type]=!0},t.prototype.dispatchEventOnce=function(t){this.firedEvents[t.type]||this.dispatchEvent(t)},t.prototype.dispatchToListeners=function(t,e){var o=this,i=t.type;if(e&&"event"in t){var n=t.event;n instanceof Event&&(t.eventPath=n.composedPath())}var r=this.getListeners(i,e,!1);r&&function(i){i.forEach((function(i){e?o.dispatchAsync((function(){return i(t)})):i(t)}))}(r),(e?this.globalAsyncListeners:this.globalSyncListeners).forEach((function(n){e?o.dispatchAsync((function(){return o.frameworkOverrides.dispatchEvent(i,(function(){return n(i,t)}),!0)})):o.frameworkOverrides.dispatchEvent(i,(function(){return n(i,t)}),!0)}))},t.prototype.dispatchAsync=function(t){this.asyncFunctionsQueue.push(t),this.scheduled||(window.setTimeout(this.flushAsyncQueue.bind(this),0),this.scheduled=!0)},t.prototype.flushAsyncQueue=function(){this.scheduled=!1;var t=this.asyncFunctionsQueue.slice();this.asyncFunctionsQueue=[],t.forEach((function(t){return t()}))},X([J(0,Y("loggerFactory")),J(1,Y("gridOptionsService")),J(2,Y("frameworkOverrides")),J(3,Y("globalEventListener"))],t.prototype,"setBeans",null),t=X([W("eventService")],t)}();!function(t){t.CommunityCoreModule="@ag-grid-community/core",t.InfiniteRowModelModule="@ag-grid-community/infinite-row-model",t.ClientSideRowModelModule="@ag-grid-community/client-side-row-model",t.CsvExportModule="@ag-grid-community/csv-export",t.EnterpriseCoreModule="@ag-grid-enterprise/core",t.RowGroupingModule="@ag-grid-enterprise/row-grouping",t.ColumnsToolPanelModule="@ag-grid-enterprise/column-tool-panel",t.FiltersToolPanelModule="@ag-grid-enterprise/filter-tool-panel",t.MenuModule="@ag-grid-enterprise/menu",t.SetFilterModule="@ag-grid-enterprise/set-filter",t.MultiFilterModule="@ag-grid-enterprise/multi-filter",t.StatusBarModule="@ag-grid-enterprise/status-bar",t.SideBarModule="@ag-grid-enterprise/side-bar",t.RangeSelectionModule="@ag-grid-enterprise/range-selection",t.MasterDetailModule="@ag-grid-enterprise/master-detail",t.RichSelectModule="@ag-grid-enterprise/rich-select",t.GridChartsModule="@ag-grid-enterprise/charts",t.ViewportRowModelModule="@ag-grid-enterprise/viewport-row-model",t.ServerSideRowModelModule="@ag-grid-enterprise/server-side-row-model",t.ExcelExportModule="@ag-grid-enterprise/excel-export",t.ClipboardModule="@ag-grid-enterprise/clipboard",t.SparklinesModule="@ag-grid-enterprise/sparklines",t.AngularModule="@ag-grid-community/angular",t.ReactModule="@ag-grid-community/react",t.VueModule="@ag-grid-community/vue"}(Q||(Q={}));
43/**
44 * @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue
45 * @version v29.2.0
46 * @link https://www.ag-grid.com/
47 * @license MIT
48 */
49var $=function(t,e){var o="function"==typeof Symbol&&t[Symbol.iterator];if(!o)return t;var i,n,r=o.call(t),s=[];try{for(;(void 0===e||e-- >0)&&!(i=r.next()).done;)s.push(i.value)}catch(t){n={error:t}}finally{try{i&&!i.done&&(o=r.return)&&o.call(r)}finally{if(n)throw n.error}}return s},tt=function(){function t(){}return t.register=function(e,o){void 0===o&&(o=!0),t.runVersionChecks(e),t.modulesMap[e.moduleName]=e,t.setModuleBased(o)},t.runVersionChecks=function(e){if(t.currentModuleVersion||(t.currentModuleVersion=e.version),e.version?e.version!==t.currentModuleVersion&&console.error("AG Grid: You are using incompatible versions of AG Grid modules. Major and minor versions should always match across modules. '"+e.moduleName+"' is version "+e.version+" but the other modules are version "+this.currentModuleVersion+". Please update all modules to the same version."):console.error("AG Grid: You are using incompatible versions of AG Grid modules. Major and minor versions should always match across modules. '"+e.moduleName+"' is incompatible. Please update all modules to the same version."),e.validate){var o=e.validate();if(!o.isValid){var i=o;console.error("AG Grid: "+i.message)}}},t.setModuleBased=function(e){void 0===t.moduleBased?t.moduleBased=e:t.moduleBased!==e&&O((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")},t.setIsBundled=function(){t.isBundled=!0},t.registerModules=function(e,o){void 0===o&&(o=!0),t.setModuleBased(o),e&&e.forEach((function(e){return t.register(e,o)}))},t.assertRegistered=function(e,o){var i;if(this.isRegistered(e))return!0;var n,r=o+e;if(t.isBundled)n="AG Grid: unable to use "+o+" as 'ag-grid-enterprise' has not been loaded. Check you are using the Enterprise bundle:\n \n <script src=\"https://cdn.jsdelivr.net/npm/ag-grid-enterprise@AG_GRID_VERSION/dist/ag-grid-enterprise.min.js\"><\/script>\n \nFor more info see: https://ag-grid.com/javascript-data-grid/getting-started/#getting-started-with-ag-grid-enterprise";else if(t.moduleBased||void 0===t.moduleBased){var s=null===(i=Object.entries(Q).find((function(t){var o=$(t,2);return o[0],o[1]===e})))||void 0===i?void 0:i[0];n="AG Grid: unable to use "+o+" as the "+s+" is not registered. Check if you have registered the module:\n \n import { ModuleRegistry } from '@ag-grid-community/core';\n import { "+s+" } from '"+e+"';\n \n ModuleRegistry.registerModules([ "+s+" ]);\n\nFor more info see: https://www.ag-grid.com/javascript-grid/modules/"}else n="AG Grid: unable to use "+o+" as package 'ag-grid-enterprise' has not been imported. Check that you have imported the package:\n \n import 'ag-grid-enterprise';\n \nFor more info see: https://www.ag-grid.com/javascript-grid/packages/";return O((function(){console.warn(n)}),r),!1},t.isRegistered=function(e){return!!t.modulesMap[e]},t.getRegisteredModules=function(){return a(t.modulesMap)},t.isPackageBased=function(){return!t.moduleBased},t.modulesMap={},t}(),et=function(t,e,o,i){var n,r=arguments.length,s=r<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,o):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,o,i);else for(var a=t.length-1;a>=0;a--)(n=t[a])&&(s=(r<3?n(s):r>3?n(e,o,s):n(e,o))||s);return r>3&&s&&Object.defineProperty(e,o,s),s},ot=0;function it(){return ot++}var nt=function(){function t(t,e,o,i){this.instanceId=it(),this.autoHeaderHeight=null,this.moving=!1,this.menuVisible=!1,this.filterActive=!1,this.eventService=new Z,this.rowGroupActive=!1,this.pivotActive=!1,this.aggregationActive=!1,this.colDef=t,this.userProvidedColDef=e,this.colId=o,this.primary=i,this.setState(t)}return t.prototype.getInstanceId=function(){return this.instanceId},t.prototype.setState=function(t){void 0!==t.sort?"asc"!==t.sort&&"desc"!==t.sort||(this.sort=t.sort):"asc"!==t.initialSort&&"desc"!==t.initialSort||(this.sort=t.initialSort);var e=r(t.sortIndex),o=r(t.initialSortIndex);void 0!==e?null!==e&&(this.sortIndex=e):null!==o&&(this.sortIndex=o);var i=s(t.hide),n=s(t.initialHide);this.visible=void 0!==i?!i:!n,void 0!==t.pinned?this.setPinned(t.pinned):this.setPinned(t.initialPinned);var a=r(t.flex),l=r(t.initialFlex);void 0!==a?this.flex=a:void 0!==l&&(this.flex=l)},t.prototype.setColDef=function(t,e){this.colDef=t,this.userProvidedColDef=e,this.initMinAndMaxWidths(),this.initDotNotation(),this.eventService.dispatchEvent(this.createColumnEvent("colDefChanged","api"))},t.prototype.getUserProvidedColDef=function(){return this.userProvidedColDef},t.prototype.setParent=function(t){this.parent=t},t.prototype.getParent=function(){return this.parent},t.prototype.setOriginalParent=function(t){this.originalParent=t},t.prototype.getOriginalParent=function(){return this.originalParent},t.prototype.initialise=function(){this.initMinAndMaxWidths(),this.resetActualWidth("gridInitializing"),this.initDotNotation(),this.validate()},t.prototype.initDotNotation=function(){var t=this.gridOptionsService.is("suppressFieldDotNotation");this.fieldContainsDots=e(this.colDef.field)&&this.colDef.field.indexOf(".")>=0&&!t,this.tooltipFieldContainsDots=e(this.colDef.tooltipField)&&this.colDef.tooltipField.indexOf(".")>=0&&!t},t.prototype.initMinAndMaxWidths=function(){var t=this.colDef;this.minWidth=this.columnUtils.calculateColMinWidth(t),this.maxWidth=this.columnUtils.calculateColMaxWidth(t)},t.prototype.resetActualWidth=function(t){void 0===t&&(t="api");var e=this.columnUtils.calculateColInitialWidth(this.colDef);this.setActualWidth(e,t,!0)},t.prototype.isEmptyGroup=function(){return!1},t.prototype.isRowGroupDisplayed=function(t){if(o(this.colDef)||o(this.colDef.showRowGroup))return!1;var e=!0===this.colDef.showRowGroup,i=this.colDef.showRowGroup===t;return e||i},t.prototype.isPrimary=function(){return this.primary},t.prototype.isFilterAllowed=function(){return!!this.colDef.filter||!!this.colDef.filterFramework},t.prototype.isFieldContainsDots=function(){return this.fieldContainsDots},t.prototype.isTooltipFieldContainsDots=function(){return this.tooltipFieldContainsDots},t.prototype.validate=function(){var t=this.colDef;function o(t,e,o){O((function(){o?console.warn(t,o):O((function(){return console.warn(t)}),e)}),e)}if(this.gridOptionsService.isRowModelType("clientSide")&&!tt.isRegistered(Q.RowGroupingModule)){(i=["enableRowGroup","rowGroup","rowGroupIndex","enablePivot","enableValue","pivot","pivotIndex","aggFunc"].filter((function(o){return e(t[o])}))).length>0&&tt.assertRegistered(Q.RowGroupingModule,i.map((function(t){return"colDef."+t})).join(", "))}if("agRichSelect"!==this.colDef.cellEditor&&"agRichSelectCellEditor"!==this.colDef.cellEditor||tt.assertRegistered(Q.RichSelectModule,this.colDef.cellEditor),this.gridOptionsService.isTreeData()){var i;(i=["rowGroup","rowGroupIndex","pivot","pivotIndex"].filter((function(o){return e(t[o])}))).length>0&&o("AG Grid: "+i.join()+" is not possible when doing tree data, your column definition should not have "+i.join(),"TreeDataCannotRowGroup")}e(t.menuTabs)&&tt.assertRegistered(Q.MenuModule,"menuTabs"),e(t.columnsMenuParams)&&tt.assertRegistered(Q.MenuModule,"columnsMenuParams"),e(t.columnsMenuParams)&&tt.assertRegistered(Q.ColumnsToolPanelModule,"columnsMenuParams"),e(this.colDef.width)&&"number"!=typeof this.colDef.width&&o("AG Grid: colDef.width should be a number, not "+typeof this.colDef.width,"ColumnCheck"),(t.pinnedRowCellRenderer||t.pinnedRowCellRendererParams||t.pinnedRowCellRendererFramework)&&o("AG Grid: pinnedRowCellRenderer[Params,Framework] no longer exist. Use cellRendererSelector if you want a different Cell Renderer for pinned rows. Check params.node.rowPinned.","colDef.pinnedRowCellRenderer-deprecated"),e(t.columnGroupShow)&&"closed"!==t.columnGroupShow&&"open"!==t.columnGroupShow&&o("AG Grid: '"+t.columnGroupShow+"' is not valid for columnGroupShow. Valid values are 'open', 'closed', undefined, null","columnGroupShow_invalid")},t.prototype.addEventListener=function(t,e){this.eventService.addEventListener(t,e)},t.prototype.removeEventListener=function(t,e){this.eventService.removeEventListener(t,e)},t.prototype.createColumnFunctionCallbackParams=function(t){return{node:t,data:t.data,column:this,colDef:this.colDef,context:this.gridOptionsService.context,api:this.gridOptionsService.api,columnApi:this.gridOptionsService.columnApi}},t.prototype.isSuppressNavigable=function(t){if("boolean"==typeof this.colDef.suppressNavigable)return this.colDef.suppressNavigable;if("function"==typeof this.colDef.suppressNavigable){var e=this.createColumnFunctionCallbackParams(t);return(0,this.colDef.suppressNavigable)(e)}return!1},t.prototype.isCellEditable=function(t){return!(t.group&&!this.gridOptionsService.is("enableGroupEdit"))&&this.isColumnFunc(t,this.colDef.editable)},t.prototype.isSuppressFillHandle=function(){return!!s(this.colDef.suppressFillHandle)},t.prototype.isAutoHeight=function(){return!!s(this.colDef.autoHeight)},t.prototype.isAutoHeaderHeight=function(){return!!s(this.colDef.autoHeaderHeight)},t.prototype.isRowDrag=function(t){return this.isColumnFunc(t,this.colDef.rowDrag)},t.prototype.isDndSource=function(t){return this.isColumnFunc(t,this.colDef.dndSource)},t.prototype.isCellCheckboxSelection=function(t){return this.isColumnFunc(t,this.colDef.checkboxSelection)},t.prototype.isSuppressPaste=function(t){return this.isColumnFunc(t,this.colDef?this.colDef.suppressPaste:null)},t.prototype.isResizable=function(){return!!s(this.colDef.resizable)},t.prototype.isColumnFunc=function(t,e){return"boolean"==typeof e?e:"function"==typeof e&&e(this.createColumnFunctionCallbackParams(t))},t.prototype.setMoving=function(t,e){void 0===e&&(e="api"),this.moving=t,this.eventService.dispatchEvent(this.createColumnEvent("movingChanged",e))},t.prototype.createColumnEvent=function(t,e){return{type:t,column:this,columns:[this],source:e,api:this.gridOptionsService.api,columnApi:this.gridOptionsService.columnApi,context:this.gridOptionsService.context}},t.prototype.isMoving=function(){return this.moving},t.prototype.getSort=function(){return this.sort},t.prototype.setSort=function(t,e){void 0===e&&(e="api"),this.sort!==t&&(this.sort=t,this.eventService.dispatchEvent(this.createColumnEvent("sortChanged",e)))},t.prototype.setMenuVisible=function(t,e){void 0===e&&(e="api"),this.menuVisible!==t&&(this.menuVisible=t,this.eventService.dispatchEvent(this.createColumnEvent("menuVisibleChanged",e)))},t.prototype.isMenuVisible=function(){return this.menuVisible},t.prototype.isSortAscending=function(){return"asc"===this.sort},t.prototype.isSortDescending=function(){return"desc"===this.sort},t.prototype.isSortNone=function(){return o(this.sort)},t.prototype.isSorting=function(){return e(this.sort)},t.prototype.getSortIndex=function(){return this.sortIndex},t.prototype.setSortIndex=function(t){this.sortIndex=t},t.prototype.setAggFunc=function(t){this.aggFunc=t},t.prototype.getAggFunc=function(){return this.aggFunc},t.prototype.getLeft=function(){return this.left},t.prototype.getOldLeft=function(){return this.oldLeft},t.prototype.getRight=function(){return this.left+this.actualWidth},t.prototype.setLeft=function(t,e){void 0===e&&(e="api"),this.oldLeft=this.left,this.left!==t&&(this.left=t,this.eventService.dispatchEvent(this.createColumnEvent("leftChanged",e)))},t.prototype.isFilterActive=function(){return this.filterActive},t.prototype.setFilterActive=function(t,e,o){void 0===e&&(e="api"),this.filterActive!==t&&(this.filterActive=t,this.eventService.dispatchEvent(this.createColumnEvent("filterActiveChanged",e)));var i=this.createColumnEvent("filterChanged",e);o&&m(i,o),this.eventService.dispatchEvent(i)},t.prototype.setPinned=function(t){this.pinned=!0===t||"left"===t?"left":"right"===t?"right":null},t.prototype.setFirstRightPinned=function(t,e){void 0===e&&(e="api"),this.firstRightPinned!==t&&(this.firstRightPinned=t,this.eventService.dispatchEvent(this.createColumnEvent("firstRightPinnedChanged",e)))},t.prototype.setLastLeftPinned=function(t,e){void 0===e&&(e="api"),this.lastLeftPinned!==t&&(this.lastLeftPinned=t,this.eventService.dispatchEvent(this.createColumnEvent("lastLeftPinnedChanged",e)))},t.prototype.isFirstRightPinned=function(){return this.firstRightPinned},t.prototype.isLastLeftPinned=function(){return this.lastLeftPinned},t.prototype.isPinned=function(){return"left"===this.pinned||"right"===this.pinned},t.prototype.isPinnedLeft=function(){return"left"===this.pinned},t.prototype.isPinnedRight=function(){return"right"===this.pinned},t.prototype.getPinned=function(){return this.pinned},t.prototype.setVisible=function(t,e){void 0===e&&(e="api");var o=!0===t;this.visible!==o&&(this.visible=o,this.eventService.dispatchEvent(this.createColumnEvent("visibleChanged",e)))},t.prototype.isVisible=function(){return this.visible},t.prototype.isSpanHeaderHeight=function(){return!!this.getColDef().spanHeaderHeight},t.prototype.getColDef=function(){return this.colDef},t.prototype.getColumnGroupShow=function(){return this.colDef.columnGroupShow},t.prototype.getColId=function(){return this.colId},t.prototype.getId=function(){return this.getColId()},t.prototype.getUniqueId=function(){return this.getId()},t.prototype.getDefinition=function(){return this.colDef},t.prototype.getActualWidth=function(){return this.actualWidth},t.prototype.getAutoHeaderHeight=function(){return this.autoHeaderHeight},t.prototype.setAutoHeaderHeight=function(t){var e=t!==this.autoHeaderHeight;return this.autoHeaderHeight=t,e},t.prototype.createBaseColDefParams=function(t){return{node:t,data:t.data,colDef:this.colDef,column:this,api:this.gridOptionsService.api,columnApi:this.gridOptionsService.columnApi,context:this.gridOptionsService.context}},t.prototype.getColSpan=function(t){if(o(this.colDef.colSpan))return 1;var e=this.createBaseColDefParams(t),i=this.colDef.colSpan(e);return Math.max(i,1)},t.prototype.getRowSpan=function(t){if(o(this.colDef.rowSpan))return 1;var e=this.createBaseColDefParams(t),i=this.colDef.rowSpan(e);return Math.max(i,1)},t.prototype.setActualWidth=function(t,e,o){void 0===e&&(e="api"),void 0===o&&(o=!1),null!=this.minWidth&&(t=Math.max(t,this.minWidth)),null!=this.maxWidth&&(t=Math.min(t,this.maxWidth)),this.actualWidth!==t&&(this.actualWidth=t,this.flex&&"flex"!==e&&"gridInitializing"!==e&&(this.flex=null),o||this.fireColumnWidthChangedEvent(e))},t.prototype.fireColumnWidthChangedEvent=function(t){this.eventService.dispatchEvent(this.createColumnEvent("widthChanged",t))},t.prototype.isGreaterThanMax=function(t){return null!=this.maxWidth&&t>this.maxWidth},t.prototype.getMinWidth=function(){return this.minWidth},t.prototype.getMaxWidth=function(){return this.maxWidth},t.prototype.getFlex=function(){return this.flex||0},t.prototype.setFlex=function(t){this.flex!==t&&(this.flex=t)},t.prototype.setMinimum=function(t){void 0===t&&(t="api"),e(this.minWidth)&&this.setActualWidth(this.minWidth,t)},t.prototype.setRowGroupActive=function(t,e){void 0===e&&(e="api"),this.rowGroupActive!==t&&(this.rowGroupActive=t,this.eventService.dispatchEvent(this.createColumnEvent("columnRowGroupChanged",e)))},t.prototype.isRowGroupActive=function(){return this.rowGroupActive},t.prototype.setPivotActive=function(t,e){void 0===e&&(e="api"),this.pivotActive!==t&&(this.pivotActive=t,this.eventService.dispatchEvent(this.createColumnEvent("columnPivotChanged",e)))},t.prototype.isPivotActive=function(){return this.pivotActive},t.prototype.isAnyFunctionActive=function(){return this.isPivotActive()||this.isRowGroupActive()||this.isValueActive()},t.prototype.isAnyFunctionAllowed=function(){return this.isAllowPivot()||this.isAllowRowGroup()||this.isAllowValue()},t.prototype.setValueActive=function(t,e){void 0===e&&(e="api"),this.aggregationActive!==t&&(this.aggregationActive=t,this.eventService.dispatchEvent(this.createColumnEvent("columnValueChanged",e)))},t.prototype.isValueActive=function(){return this.aggregationActive},t.prototype.isAllowPivot=function(){return!0===this.colDef.enablePivot},t.prototype.isAllowValue=function(){return!0===this.colDef.enableValue},t.prototype.isAllowRowGroup=function(){return!0===this.colDef.enableRowGroup},t.prototype.getMenuTabs=function(t){var e=this.getColDef().menuTabs;return null==e&&(e=t),e},t.EVENT_MOVING_CHANGED="movingChanged",t.EVENT_LEFT_CHANGED="leftChanged",t.EVENT_WIDTH_CHANGED="widthChanged",t.EVENT_LAST_LEFT_PINNED_CHANGED="lastLeftPinnedChanged",t.EVENT_FIRST_RIGHT_PINNED_CHANGED="firstRightPinnedChanged",t.EVENT_VISIBLE_CHANGED="visibleChanged",t.EVENT_FILTER_CHANGED="filterChanged",t.EVENT_FILTER_ACTIVE_CHANGED="filterActiveChanged",t.EVENT_SORT_CHANGED="sortChanged",t.EVENT_COL_DEF_CHANGED="colDefChanged",t.EVENT_MENU_VISIBLE_CHANGED="menuVisibleChanged",t.EVENT_ROW_GROUP_CHANGED="columnRowGroupChanged",t.EVENT_PIVOT_CHANGED="columnPivotChanged",t.EVENT_VALUE_CHANGED="columnValueChanged",et([U("gridOptionsService")],t.prototype,"gridOptionsService",void 0),et([U("columnUtils")],t.prototype,"columnUtils",void 0),et([B],t.prototype,"initialise",null),t}(),rt=function(t,e,o,i){var n,r=arguments.length,s=r<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,o):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,o,i);else for(var a=t.length-1;a>=0;a--)(n=t[a])&&(s=(r<3?n(s):r>3?n(e,o,s):n(e,o))||s);return r>3&&s&&Object.defineProperty(e,o,s),s},st=function(){function t(t,e,o,i){this.localEventService=new Z,this.expandable=!1,this.instanceId=it(),this.expandableListenerRemoveCallback=null,this.colGroupDef=t,this.groupId=e,this.expanded=!!t&&!!t.openByDefault,this.padding=o,this.level=i}return t.prototype.destroy=function(){this.expandableListenerRemoveCallback&&this.reset(null,void 0)},t.prototype.reset=function(t,e){this.colGroupDef=t,this.level=e,this.originalParent=null,this.expandableListenerRemoveCallback&&this.expandableListenerRemoveCallback(),this.children=void 0,this.expandable=void 0},t.prototype.getInstanceId=function(){return this.instanceId},t.prototype.setOriginalParent=function(t){this.originalParent=t},t.prototype.getOriginalParent=function(){return this.originalParent},t.prototype.getLevel=function(){return this.level},t.prototype.isVisible=function(){return!!this.children&&this.children.some((function(t){return t.isVisible()}))},t.prototype.isPadding=function(){return this.padding},t.prototype.setExpanded=function(e){this.expanded=void 0!==e&&e;var o={type:t.EVENT_EXPANDED_CHANGED};this.localEventService.dispatchEvent(o)},t.prototype.isExpandable=function(){return this.expandable},t.prototype.isExpanded=function(){return this.expanded},t.prototype.getGroupId=function(){return this.groupId},t.prototype.getId=function(){return this.getGroupId()},t.prototype.setChildren=function(t){this.children=t},t.prototype.getChildren=function(){return this.children},t.prototype.getColGroupDef=function(){return this.colGroupDef},t.prototype.getLeafColumns=function(){var t=[];return this.addLeafColumns(t),t},t.prototype.addLeafColumns=function(e){this.children&&this.children.forEach((function(o){o instanceof nt?e.push(o):o instanceof t&&o.addLeafColumns(e)}))},t.prototype.getColumnGroupShow=function(){var t=this.colGroupDef;if(t)return t.columnGroupShow},t.prototype.setupExpandable=function(){var t=this;this.setExpandable(),this.expandableListenerRemoveCallback&&this.expandableListenerRemoveCallback();var e=this.onColumnVisibilityChanged.bind(this);this.getLeafColumns().forEach((function(t){return t.addEventListener("visibleChanged",e)})),this.expandableListenerRemoveCallback=function(){t.getLeafColumns().forEach((function(t){return t.removeEventListener("visibleChanged",e)})),t.expandableListenerRemoveCallback=null}},t.prototype.setExpandable=function(){if(!this.isPadding()){for(var e=!1,o=!1,i=!1,n=this.findChildrenRemovingPadding(),r=0,s=n.length;r<s;r++){var a=n[r];if(a.isVisible()){var l=a.getColumnGroupShow();"open"===l?(e=!0,i=!0):"closed"===l?(o=!0,i=!0):(e=!0,o=!0)}}var u=e&&o&&i;if(this.expandable!==u){this.expandable=u;var c={type:t.EVENT_EXPANDABLE_CHANGED};this.localEventService.dispatchEvent(c)}}},t.prototype.findChildrenRemovingPadding=function(){var e=[],o=function(i){i.forEach((function(i){i instanceof t&&i.isPadding()?o(i.children):e.push(i)}))};return o(this.children),e},t.prototype.onColumnVisibilityChanged=function(){this.setExpandable()},t.prototype.addEventListener=function(t,e){this.localEventService.addEventListener(t,e)},t.prototype.removeEventListener=function(t,e){this.localEventService.removeEventListener(t,e)},t.EVENT_EXPANDED_CHANGED="expandedChanged",t.EVENT_EXPANDABLE_CHANGED="expandableChanged",rt([j],t.prototype,"destroy",null),t}(),at={numericColumn:{headerClass:"ag-right-aligned-header",cellClass:"ag-right-aligned-cell"},rightAligned:{headerClass:"ag-right-aligned-header",cellClass:"ag-right-aligned-cell"}};
50/**
51 * @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue
52 * @version v29.2.0
53 * @link https://www.ag-grid.com/
54 * @license MIT
55 */
56/**
57 * @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue
58 * @version v29.2.0
59 * @link https://www.ag-grid.com/
60 * @license MIT
61 */
62function lt(){for(var t=[],o=0;o<arguments.length;o++)t[o]=arguments[o];for(var i=0;i<t.length;i++){var n=t[i];if(e(n))return n}return null}function ut(t){if(t&&t.length)return t[t.length-1]}function ct(t,e,o){return null==t&&null==e||null!=t&&null!=e&&t.length===e.length&&t.every((function(t,i){return o?o(t,e[i]):e[i]===t}))}function pt(t){return t.sort((function(t,e){return t-e}))}function dt(t,e){var o=t.indexOf(e);o>=0&&t.splice(o,1)}function ht(t,e){e.forEach((function(e){return dt(t,e)}))}function ft(t,e,o){t.splice(o,0,e)}function gt(t,e,o){ht(t,e),e.slice().reverse().forEach((function(e){return ft(t,e,o)}))}function vt(t,e){return t.indexOf(e)>-1}function yt(t){return[].concat.apply([],t)}function mt(t,e){null!=e&&null!=t&&e.forEach((function(e){return t.push(e)}))}var Ct=Object.freeze({__proto__:null,firstExistingValue:lt,existsAndNotEmpty:function(t){return null!=t&&t.length>0},last:ut,areEqual:ct,shallowCompare:function(t,e){return ct(t,e)},sortNumerically:pt,removeRepeatsFromArray:function(t,e){if(t)for(var o=t.length-2;o>=0;o--){var i=t[o]===e,n=t[o+1]===e;i&&n&&t.splice(o+1,1)}},removeFromArray:dt,removeAllFromArray:ht,insertIntoArray:ft,insertArrayIntoArray:function(t,e,o){if(null!=t&&null!=e)for(var i=e.length-1;i>=0;i--){ft(t,e[i],o)}},moveInArray:gt,includes:vt,flatten:yt,pushAll:mt,toStrings:function(t){return t.map(n)},forEachReverse:function(t,e){if(null!=t)for(var o=t.length-1;o>=0;o--)e(t[o],o)}}),wt=["touchstart","touchend","touchmove","touchcancel","scroll"],St={};
63/**
64 * @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue
65 * @version v29.2.0
66 * @link https://www.ag-grid.com/
67 * @license MIT
68 */function Et(t){t.__ag_Grid_Stop_Propagation=!0}function Rt(t){return!0===t.__ag_Grid_Stop_Propagation}var Ot,bt=(Ot={select:"input",change:"input",submit:"form",reset:"form",error:"img",load:"img",abort:"img"},function(t){if("boolean"==typeof St[t])return St[t];var e=document.createElement(Ot[t]||"div");return St[t="on"+t]=t in e});function Tt(t,e,o){for(var i=e.target;i;){var n=t.getDomData(i,o);if(n)return n;i=i.parentElement}return null}function Pt(t,e){return!(!e||!t)&&_t(e).indexOf(t)>=0}function Dt(t){for(var e=[],o=t.target;o;)e.push(o),o=o.parentElement;return e}function _t(t){var e=t;return e.path?e.path:e.composedPath?e.composedPath():Dt(e)}function At(t,e,o,i){var n=vt(wt,o)?{passive:!0}:void 0;t&&t.addEventListener&&t.addEventListener(e,o,i,n)}var Nt,Ft=Object.freeze({__proto__:null,stopPropagationForAgGrid:Et,isStopPropagationForAgGrid:Rt,isEventSupported:bt,getCtrlForEvent:Tt,isElementInEventPath:Pt,createEventPath:Dt,getEventPath:_t,addSafePassiveEventListener:At}),Lt=function(t,e,o,i){var n,r=arguments.length,s=r<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,o):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,o,i);else for(var a=t.length-1;a>=0;a--)(n=t[a])&&(s=(r<3?n(s):r>3?n(e,o,s):n(e,o))||s);return r>3&&s&&Object.defineProperty(e,o,s),s},Mt=function(){function t(){var t=this;this.destroyFunctions=[],this.destroyed=!1,this.__v_skip=!0,this.isAlive=function(){return!t.destroyed}}return t.prototype.getFrameworkOverrides=function(){return this.frameworkOverrides},t.prototype.getContext=function(){return this.context},t.prototype.destroy=function(){this.destroyFunctions.forEach((function(t){return t()})),this.destroyFunctions.length=0,this.destroyed=!0,this.dispatchEvent({type:t.EVENT_DESTROYED})},t.prototype.addEventListener=function(t,e){this.localEventService||(this.localEventService=new Z),this.localEventService.addEventListener(t,e)},t.prototype.removeEventListener=function(t,e){this.localEventService&&this.localEventService.removeEventListener(t,e)},t.prototype.dispatchEventAsync=function(t){var e=this;window.setTimeout((function(){return e.dispatchEvent(t)}),0)},t.prototype.dispatchEvent=function(t){this.localEventService&&this.localEventService.dispatchEvent(t)},t.prototype.addManagedListener=function(t,e,o){var i=this;if(!this.destroyed){t instanceof HTMLElement?At(this.getFrameworkOverrides(),t,e,o):t.addEventListener(e,o);var n=function(){return t.removeEventListener(e,o),i.destroyFunctions=i.destroyFunctions.filter((function(t){return t!==n})),null};return this.destroyFunctions.push(n),n}},t.prototype.addManagedPropertyListener=function(t,e){var o=this;if(!this.destroyed){this.gridOptionsService.addEventListener(t,e);var i=function(){return o.gridOptionsService.removeEventListener(t,e),o.destroyFunctions=o.destroyFunctions.filter((function(t){return t!==i})),null};return this.destroyFunctions.push(i),i}},t.prototype.addDestroyFunc=function(t){this.isAlive()?this.destroyFunctions.push(t):t()},t.prototype.createManagedBean=function(t,e){var o=this.createBean(t,e);return this.addDestroyFunc(this.destroyBean.bind(this,t,e)),o},t.prototype.createBean=function(t,e,o){return(e||this.getContext()).createBean(t,o)},t.prototype.destroyBean=function(t,e){return(e||this.getContext()).destroyBean(t)},t.prototype.destroyBeans=function(t,e){var o=this;return t&&t.forEach((function(t){return o.destroyBean(t,e)})),[]},t.EVENT_DESTROYED="destroyed",Lt([U("frameworkOverrides")],t.prototype,"frameworkOverrides",void 0),Lt([U("context")],t.prototype,"context",void 0),Lt([U("eventService")],t.prototype,"eventService",void 0),Lt([U("gridOptionsService")],t.prototype,"gridOptionsService",void 0),Lt([U("localeService")],t.prototype,"localeService",void 0),Lt([U("environment")],t.prototype,"environment",void 0),Lt([j],t.prototype,"destroy",null),t}(),It=(Nt=function(t,e){return(Nt=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])})(t,e)},function(t,e){function o(){this.constructor=t}Nt(t,e),t.prototype=null===e?Object.create(e):(o.prototype=e.prototype,new o)}),Gt=function(t,e,o,i){var n,r=arguments.length,s=r<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,o):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,o,i);else for(var a=t.length-1;a>=0;a--)(n=t[a])&&(s=(r<3?n(s):r>3?n(e,o,s):n(e,o))||s);return r>3&&s&&Object.defineProperty(e,o,s),s},xt=function(t,e){return function(o,i){e(o,i,t)}},Ht=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return It(e,t),e.prototype.setBeans=function(t){this.logger=t.create("ColumnFactory")},e.prototype.createColumnTree=function(t,e,o){var i=new u,n=this.extractExistingTreeData(o),r=n.existingCols,s=n.existingGroups,a=n.existingColKeys;i.addExistingKeys(a);var l=this.recursivelyCreateColumns(t,0,e,r,i,s),c=this.findMaxDept(l,0);this.logger.log("Number of levels for grouped columns is "+c);var p=this.balanceColumnTree(l,0,c,i);return this.columnUtils.depthFirstOriginalTreeSearch(null,p,(function(t,e){t instanceof st&&t.setupExpandable(),t.setOriginalParent(e)})),{columnTree:p,treeDept:c}},e.prototype.extractExistingTreeData=function(t){var e=[],o=[],i=[];return t&&this.columnUtils.depthFirstOriginalTreeSearch(null,t,(function(t){if(t instanceof st){var n=t;o.push(n)}else{var r=t;i.push(r.getId()),e.push(r)}})),{existingCols:e,existingGroups:o,existingColKeys:i}},e.prototype.createForAutoGroups=function(t,e){var o=this;return t.map((function(t){return o.createAutoGroupTreeItem(e,t)}))},e.prototype.createAutoGroupTreeItem=function(t,e){for(var o=e,i=this.findDepth(t)-1;i>=0;i--){var n=new st(null,"FAKE_PATH_"+e.getId()+"}_"+i,!0,i);this.createBean(n),n.setChildren([o]),o.setOriginalParent(n),o=n}return o},e.prototype.findDepth=function(t){for(var e=0,o=t;o&&o[0]&&o[0]instanceof st;)e++,o=o[0].getChildren();return e},e.prototype.balanceColumnTree=function(t,e,o,i){for(var n=[],r=0;r<t.length;r++){var s=t[r];if(s instanceof st){var a=s,l=this.balanceColumnTree(a.getChildren(),e+1,o,i);a.setChildren(l),n.push(a)}else{for(var u=void 0,c=void 0,p=o-1;p>=e;p--){var d=i.getUniqueKey(null,null),h=this.createMergedColGroupDef(null),f=new st(h,d,!0,e);this.createBean(f),c&&c.setChildren([f]),c=f,u||(u=c)}if(u&&c){if(n.push(u),t.some((function(t){return t instanceof st}))){c.setChildren([s]);continue}c.setChildren(t);break}n.push(s)}}return n},e.prototype.findMaxDept=function(t,e){for(var o=e,i=0;i<t.length;i++){var n=t[i];if(n instanceof st){var r=n,s=this.findMaxDept(r.getChildren(),e+1);o<s&&(o=s)}}return o},e.prototype.recursivelyCreateColumns=function(t,e,o,i,n,r){var s=this;return(t||[]).map((function(t){return s.isColumnGroup(t)?s.createColumnGroup(o,t,e,i,n,r):s.createColumn(o,t,i,n)}))},e.prototype.createColumnGroup=function(t,e,o,i,n,r){var s,a=this.createMergedColGroupDef(e),l=n.getUniqueKey(a.groupId||null,null),u=this.findExistingGroup(e,r);u?((s=u).reset(a,o),dt(r,u)):(s=new st(a,l,!1,o),this.createBean(s));var c=this.recursivelyCreateColumns(a.children,o+1,t,i,n,r);return s.setChildren(c),s},e.prototype.createMergedColGroupDef=function(t){var e={};return Object.assign(e,this.gridOptionsService.get("defaultColGroupDef")),Object.assign(e,t),e},e.prototype.createColumn=function(t,e,o,i){var n=this.mergeColDefs(e),r=this.findExistingColumn(e,o);if(o&&r&&dt(o,r),r)r.setColDef(n,e),this.applyColumnState(r,n);else{var s=i.getUniqueKey(n.colId,n.field);r=new nt(n,e,s,t),this.context.createBean(r)}return r},e.prototype.applyColumnState=function(t,e){var o=r(e.flex);if(void 0!==o&&t.setFlex(o),t.getFlex()<=0){var i=r(e.width);if(null!=i)t.setActualWidth(i);else{var n=t.getActualWidth();t.setActualWidth(n)}}void 0!==e.sort&&("asc"==e.sort||"desc"==e.sort?t.setSort(e.sort):t.setSort(void 0));var a=r(e.sortIndex);void 0!==a&&t.setSortIndex(a);var l=s(e.hide);void 0!==l&&t.setVisible(!l),void 0!==e.pinned&&t.setPinned(e.pinned)},e.prototype.findExistingColumn=function(t,e){return(e||[]).find((function(e){var o=e.getUserProvidedColDef();if(!o)return!1;var i=null!=t.colId,n=null!=t.field;return i?e.getId()===t.colId:n?o.field===t.field:o===t}))},e.prototype.findExistingGroup=function(t,e){return e.find((function(e){return!!e.getColGroupDef()&&(!(null==t.groupId)&&e.getId()===t.groupId)}))},e.prototype.mergeColDefs=function(t){var e={},o=this.gridOptionsService.get("defaultColDef");m(e,o,!1,!0);var i=t.type;i||(i=o&&o.type),i&&this.assignColumnTypes(i,e),m(e,t,!1,!0);var n=this.gridOptionsService.get("autoGroupColumnDef"),r=this.gridOptionsService.isColumnsSortingCoupledToGroup();return t.rowGroup&&n&&r&&m(e,{sort:n.sort,initialSort:n.initialSort},!1,!0),e},e.prototype.assignColumnTypes=function(t,e){var o=[];if(t instanceof Array){t.some((function(t){return"string"!=typeof t}))?console.warn("AG Grid: if colDef.type is supplied an array it should be of type 'string[]'"):o=t}else{if("string"!=typeof t)return void console.warn("AG Grid: colDef.type should be of type 'string' | 'string[]'");o=t.split(",")}var i=Object.assign({},at);c(this.gridOptionsService.get("columnTypes")||{},(function(t,e){t in i?console.warn("AG Grid: the column type '"+t+"' is a default column type and cannot be overridden."):i[t]=e})),o.forEach((function(t){var o=i[t.trim()];o?m(e,o,!1,!0):console.warn("AG Grid: colDef.type '"+t+"' does not correspond to defined gridOptions.columnTypes")}))},e.prototype.isColumnGroup=function(t){return void 0!==t.children},Gt([U("columnUtils")],e.prototype,"columnUtils",void 0),Gt([xt(0,Y("loggerFactory"))],e.prototype,"setBeans",null),e=Gt([W("columnFactory")],e)}(Mt),Vt=function(){function t(){}return t.ColDefPropertyMap={headerName:void 0,columnGroupShow:void 0,headerClass:void 0,toolPanelClass:void 0,headerValueGetter:void 0,pivotKeys:void 0,groupId:void 0,colId:void 0,sort:void 0,initialSort:void 0,field:void 0,type:void 0,tooltipComponent:void 0,tooltipField:void 0,headerTooltip:void 0,cellClass:void 0,showRowGroup:void 0,filter:void 0,initialAggFunc:void 0,defaultAggFunc:void 0,aggFunc:void 0,pinned:void 0,initialPinned:void 0,chartDataType:void 0,cellEditorPopupPosition:void 0,headerGroupComponent:void 0,headerGroupComponentFramework:void 0,headerGroupComponentParams:void 0,cellStyle:void 0,cellRenderer:void 0,cellRendererParams:void 0,cellRendererFramework:void 0,cellEditor:void 0,cellEditorFramework:void 0,cellEditorParams:void 0,filterFramework:void 0,filterParams:void 0,pivotValueColumn:void 0,headerComponent:void 0,headerComponentFramework:void 0,headerComponentParams:void 0,floatingFilterComponent:void 0,floatingFilterComponentParams:void 0,floatingFilterComponentFramework:void 0,tooltipComponentParams:void 0,tooltipComponentFramework:void 0,refData:void 0,columnsMenuParams:void 0,children:void 0,sortingOrder:void 0,allowedAggFuncs:void 0,menuTabs:void 0,pivotTotalColumnIds:void 0,cellClassRules:void 0,icons:void 0,sortIndex:void 0,initialSortIndex:void 0,flex:void 0,initialFlex:void 0,width:void 0,initialWidth:void 0,minWidth:void 0,maxWidth:void 0,rowGroupIndex:void 0,initialRowGroupIndex:void 0,pivotIndex:void 0,initialPivotIndex:void 0,suppressCellFlash:void 0,suppressColumnsToolPanel:void 0,suppressFiltersToolPanel:void 0,openByDefault:void 0,marryChildren:void 0,hide:void 0,initialHide:void 0,rowGroup:void 0,initialRowGroup:void 0,pivot:void 0,initialPivot:void 0,checkboxSelection:void 0,showDisabledCheckboxes:void 0,headerCheckboxSelection:void 0,headerCheckboxSelectionFilteredOnly:void 0,headerCheckboxSelectionCurrentPageOnly:void 0,suppressMenu:void 0,suppressMovable:void 0,lockPosition:void 0,lockVisible:void 0,lockPinned:void 0,unSortIcon:void 0,suppressSizeToFit:void 0,suppressAutoSize:void 0,enableRowGroup:void 0,enablePivot:void 0,enableValue:void 0,editable:void 0,suppressPaste:void 0,suppressNavigable:void 0,enableCellChangeFlash:void 0,rowDrag:void 0,dndSource:void 0,autoHeight:void 0,wrapText:void 0,sortable:void 0,resizable:void 0,singleClickEdit:void 0,floatingFilter:void 0,cellEditorPopup:void 0,suppressFillHandle:void 0,wrapHeaderText:void 0,autoHeaderHeight:void 0,dndSourceOnRowDrag:void 0,valueGetter:void 0,valueSetter:void 0,filterValueGetter:void 0,keyCreator:void 0,valueFormatter:void 0,valueParser:void 0,comparator:void 0,equals:void 0,pivotComparator:void 0,suppressKeyboardEvent:void 0,suppressHeaderKeyboardEvent:void 0,colSpan:void 0,rowSpan:void 0,getQuickFilterText:void 0,onCellValueChanged:void 0,onCellClicked:void 0,onCellDoubleClicked:void 0,onCellContextMenu:void 0,rowDragText:void 0,tooltipValueGetter:void 0,cellRendererSelector:void 0,cellEditorSelector:void 0,spanHeaderHeight:void 0},t.ALL_PROPERTIES=Object.keys(t.ColDefPropertyMap),t.FRAMEWORK_PROPERTIES=["__ob__","__v_skip","__metadata__","mappedColumnProperties","hasChildColumns","toColDef","createColDefFromGridColumn"],t}(),kt=function(){function t(){}return t.EVENT_COLUMN_EVERYTHING_CHANGED="columnEverythingChanged",t.EVENT_NEW_COLUMNS_LOADED="newColumnsLoaded",t.EVENT_COLUMN_PIVOT_MODE_CHANGED="columnPivotModeChanged",t.EVENT_COLUMN_ROW_GROUP_CHANGED="columnRowGroupChanged",t.EVENT_EXPAND_COLLAPSE_ALL="expandOrCollapseAll",t.EVENT_COLUMN_PIVOT_CHANGED="columnPivotChanged",t.EVENT_GRID_COLUMNS_CHANGED="gridColumnsChanged",t.EVENT_COLUMN_VALUE_CHANGED="columnValueChanged",t.EVENT_COLUMN_MOVED="columnMoved",t.EVENT_COLUMN_VISIBLE="columnVisible",t.EVENT_COLUMN_PINNED="columnPinned",t.EVENT_COLUMN_GROUP_OPENED="columnGroupOpened",t.EVENT_COLUMN_RESIZED="columnResized",t.EVENT_DISPLAYED_COLUMNS_CHANGED="displayedColumnsChanged",t.EVENT_VIRTUAL_COLUMNS_CHANGED="virtualColumnsChanged",t.EVENT_ASYNC_TRANSACTIONS_FLUSHED="asyncTransactionsFlushed",t.EVENT_ROW_GROUP_OPENED="rowGroupOpened",t.EVENT_ROW_DATA_CHANGED="rowDataChanged",t.EVENT_ROW_DATA_UPDATED="rowDataUpdated",t.EVENT_PINNED_ROW_DATA_CHANGED="pinnedRowDataChanged",t.EVENT_RANGE_SELECTION_CHANGED="rangeSelectionChanged",t.EVENT_CHART_CREATED="chartCreated",t.EVENT_CHART_RANGE_SELECTION_CHANGED="chartRangeSelectionChanged",t.EVENT_CHART_OPTIONS_CHANGED="chartOptionsChanged",t.EVENT_CHART_DESTROYED="chartDestroyed",t.EVENT_TOOL_PANEL_VISIBLE_CHANGED="toolPanelVisibleChanged",t.EVENT_TOOL_PANEL_SIZE_CHANGED="toolPanelSizeChanged",t.EVENT_INTERNAL_TOOL_PANEL_VISIBLE_CHANGED="internalToolPanelVisibleChanged",t.EVENT_COLUMN_PANEL_ITEM_DRAG_START="columnPanelItemDragStart",t.EVENT_COLUMN_PANEL_ITEM_DRAG_END="columnPanelItemDragEnd",t.EVENT_MODEL_UPDATED="modelUpdated",t.EVENT_PASTE_START="pasteStart",t.EVENT_PASTE_END="pasteEnd",t.EVENT_FILL_START="fillStart",t.EVENT_FILL_END="fillEnd",t.EVENT_UNDO_STARTED="undoStarted",t.EVENT_UNDO_ENDED="undoEnded",t.EVENT_REDO_STARTED="redoStarted",t.EVENT_REDO_ENDED="redoEnded",t.EVENT_KEY_SHORTCUT_CHANGED_CELL_START="keyShortcutChangedCellStart",t.EVENT_KEY_SHORTCUT_CHANGED_CELL_END="keyShortcutChangedCellEnd",t.EVENT_CELL_CLICKED="cellClicked",t.EVENT_CELL_DOUBLE_CLICKED="cellDoubleClicked",t.EVENT_CELL_MOUSE_DOWN="cellMouseDown",t.EVENT_CELL_CONTEXT_MENU="cellContextMenu",t.EVENT_CELL_VALUE_CHANGED="cellValueChanged",t.EVENT_CELL_EDIT_REQUEST="cellEditRequest",t.EVENT_ROW_VALUE_CHANGED="rowValueChanged",t.EVENT_CELL_FOCUSED="cellFocused",t.EVENT_CELL_FOCUS_CLEARED="cellFocusCleared",t.EVENT_FULL_WIDTH_ROW_FOCUSED="fullWidthRowFocused",t.EVENT_ROW_SELECTED="rowSelected",t.EVENT_SELECTION_CHANGED="selectionChanged",t.EVENT_CELL_KEY_DOWN="cellKeyDown",t.EVENT_CELL_KEY_PRESS="cellKeyPress",t.EVENT_CELL_MOUSE_OVER="cellMouseOver",t.EVENT_CELL_MOUSE_OUT="cellMouseOut",t.EVENT_FILTER_CHANGED="filterChanged",t.EVENT_FILTER_MODIFIED="filterModified",t.EVENT_FILTER_OPENED="filterOpened",t.EVENT_SORT_CHANGED="sortChanged",t.EVENT_VIRTUAL_ROW_REMOVED="virtualRowRemoved",t.EVENT_ROW_CLICKED="rowClicked",t.EVENT_ROW_DOUBLE_CLICKED="rowDoubleClicked",t.EVENT_GRID_READY="gridReady",t.EVENT_GRID_SIZE_CHANGED="gridSizeChanged",t.EVENT_VIEWPORT_CHANGED="viewportChanged",t.EVENT_SCROLLBAR_WIDTH_CHANGED="scrollbarWidthChanged",t.EVENT_FIRST_DATA_RENDERED="firstDataRendered",t.EVENT_DRAG_STARTED="dragStarted",t.EVENT_DRAG_STOPPED="dragStopped",t.EVENT_CHECKBOX_CHANGED="checkboxChanged",t.EVENT_ROW_EDITING_STARTED="rowEditingStarted",t.EVENT_ROW_EDITING_STOPPED="rowEditingStopped",t.EVENT_CELL_EDITING_STARTED="cellEditingStarted",t.EVENT_CELL_EDITING_STOPPED="cellEditingStopped",t.EVENT_BODY_SCROLL="bodyScroll",t.EVENT_BODY_SCROLL_END="bodyScrollEnd",t.EVENT_HEIGHT_SCALE_CHANGED="heightScaleChanged",t.EVENT_PAGINATION_CHANGED="paginationChanged",t.EVENT_COMPONENT_STATE_CHANGED="componentStateChanged",t.EVENT_BODY_HEIGHT_CHANGED="bodyHeightChanged",t.EVENT_DISPLAYED_COLUMNS_WIDTH_CHANGED="displayedColumnsWidthChanged",t.EVENT_SCROLL_VISIBILITY_CHANGED="scrollVisibilityChanged",t.EVENT_COLUMN_HOVER_CHANGED="columnHoverChanged",t.EVENT_FLASH_CELLS="flashCells",t.EVENT_PAGINATION_PIXEL_OFFSET_CHANGED="paginationPixelOffsetChanged",t.EVENT_DISPLAYED_ROWS_CHANGED="displayedRowsChanged",t.EVENT_LEFT_PINNED_WIDTH_CHANGED="leftPinnedWidthChanged",t.EVENT_RIGHT_PINNED_WIDTH_CHANGED="rightPinnedWidthChanged",t.EVENT_ROW_CONTAINER_HEIGHT_CHANGED="rowContainerHeightChanged",t.EVENT_HEADER_HEIGHT_CHANGED="headerHeightChanged",t.EVENT_COLUMN_HEADER_HEIGHT_CHANGED="columnHeaderHeightChanged",t.EVENT_ROW_DRAG_ENTER="rowDragEnter",t.EVENT_ROW_DRAG_MOVE="rowDragMove",t.EVENT_ROW_DRAG_LEAVE="rowDragLeave",t.EVENT_ROW_DRAG_END="rowDragEnd",t.EVENT_GRID_STYLES_CHANGED="gridStylesChanged",t.EVENT_POPUP_TO_FRONT="popupToFront",t.EVENT_COLUMN_ROW_GROUP_CHANGE_REQUEST="columnRowGroupChangeRequest",t.EVENT_COLUMN_PIVOT_CHANGE_REQUEST="columnPivotChangeRequest",t.EVENT_COLUMN_VALUE_CHANGE_REQUEST="columnValueChangeRequest",t.EVENT_COLUMN_AGG_FUNC_CHANGE_REQUEST="columnAggFuncChangeRequest",t.EVENT_KEYBOARD_FOCUS="keyboardFocus",t.EVENT_MOUSE_FOCUS="mouseFocus",t.EVENT_STORE_UPDATED="storeUpdated",t.EVENT_FILTER_DESTROYED="filterDestroyed",t}(),Bt=function(t,e){var o="function"==typeof Symbol&&t[Symbol.iterator];if(!o)return t;var i,n,r=o.call(t),s=[];try{for(;(void 0===e||e-- >0)&&!(i=r.next()).done;)s.push(i.value)}catch(t){n={error:t}}finally{try{i&&!i.done&&(o=r.return)&&o.call(r)}finally{if(n)throw n.error}}return s},jt=function(){for(var t=[],e=0;e<arguments.length;e++)t=t.concat(Bt(arguments[e]));return t},Wt=function(){function t(){}return t.STRING_PROPERTIES=["rowSelection","overlayLoadingTemplate","overlayNoRowsTemplate","quickFilterText","rowModelType","editType","domLayout","clipboardDelimiter","rowGroupPanelShow","multiSortKey","pivotColumnGroupTotals","pivotRowTotals","pivotPanelShow","fillHandleDirection","serverSideStoreType","groupDisplayType","treeDataDisplayType","colResizeDefault"],t.OBJECT_PROPERTIES=["components","frameworkComponents","rowStyle","context","autoGroupColumnDef","localeText","icons","datasource","serverSideDatasource","viewportDatasource","groupRowRendererParams","aggFuncs","fullWidthCellRendererParams","defaultColGroupDef","defaultColDef","defaultCsvExportParams","defaultExcelExportParams","columnTypes","rowClassRules","detailCellRendererParams","loadingCellRendererParams","loadingOverlayComponentParams","noRowsOverlayComponentParams","popupParent","statusBar","sideBar","chartThemeOverrides","customChartThemes","chartToolPanelsDef"],t.ARRAY_PROPERTIES=["sortingOrder","alignedGrids","rowData","columnDefs","excelStyles","pinnedTopRowData","pinnedBottomRowData","chartThemes","rowClass"],t.NUMBER_PROPERTIES=["rowHeight","detailRowHeight","rowBuffer","headerHeight","groupHeaderHeight","floatingFiltersHeight","pivotHeaderHeight","pivotGroupHeaderHeight","groupDefaultExpanded","viewportRowModelPageSize","viewportRowModelBufferSize","autoSizePadding","maxBlocksInCache","maxConcurrentDatasourceRequests","tooltipShowDelay","tooltipHideDelay","cacheOverflowSize","paginationPageSize","cacheBlockSize","infiniteInitialRowCount","serverSideInitialRowCount","scrollbarWidth","asyncTransactionWaitMillis","blockLoadDebounceMillis","keepDetailRowsCount","undoRedoCellEditingLimit","cellFlashDelay","cellFadeDelay","tabIndex"],t.BOOLEAN_PROPERTIES=["suppressMakeColumnVisibleAfterUnGroup","suppressRowClickSelection","suppressCellSelection","suppressCellFocus","suppressHorizontalScroll","alwaysShowHorizontalScroll","alwaysShowVerticalScroll","debug","enableBrowserTooltips","enableCellExpressions","groupSelectsChildren","groupIncludeFooter","groupIncludeTotalFooter","groupSuppressBlankHeader","suppressMenuHide","suppressRowDeselection","unSortIcon","suppressMultiSort","alwaysMultiSort","singleClickEdit","suppressLoadingOverlay","suppressNoRowsOverlay","suppressAutoSize","skipHeaderOnAutoSize","suppressParentsInRowNodes","suppressColumnMoveAnimation","suppressMovableColumns","suppressFieldDotNotation","enableRangeSelection","enableRangeHandle","enableFillHandle","suppressClearOnFillReduction","deltaSort","suppressTouch","suppressAsyncEvents","allowContextMenuWithControlKey","suppressContextMenu","rememberGroupStateWhenNewData","enableCellChangeFlash","suppressDragLeaveHidesColumns","suppressRowGroupHidesColumns","suppressMiddleClickScrolls","suppressPreventDefaultOnMouseWheel","suppressCopyRowsToClipboard","copyHeadersToClipboard","copyGroupHeadersToClipboard","pivotMode","suppressAggFuncInHeader","suppressColumnVirtualisation","suppressAggAtRootLevel","suppressFocusAfterRefresh","functionsPassive","functionsReadOnly","animateRows","groupSelectsFiltered","groupRemoveSingleChildren","groupRemoveLowestSingleChildren","enableRtl","suppressClickEdit","rowDragEntireRow","rowDragManaged","suppressRowDrag","suppressMoveWhenRowDragging","rowDragMultiRow","enableGroupEdit","embedFullWidthRows","suppressPaginationPanel","groupHideOpenParents","groupAllowUnbalanced","pagination","paginationAutoPageSize","suppressScrollOnNewData","suppressScrollWhenPopupsAreOpen","purgeClosedRowNodes","cacheQuickFilter","excludeHiddenColumnsFromQuickFilter","ensureDomOrder","accentedSort","suppressChangeDetection","valueCache","valueCacheNeverExpires","aggregateOnlyChangedColumns","suppressAnimationFrame","suppressExcelExport","suppressCsvExport","treeData","masterDetail","suppressMultiRangeSelection","enterMovesDownAfterEdit","enterMovesDown","suppressPropertyNamesCheck","rowMultiSelectWithClick","suppressRowHoverHighlight","suppressRowTransform","suppressClipboardPaste","suppressLastEmptyLineOnPaste","enableCharts","enableChartToolPanelsButton","suppressChartToolPanelsButton","suppressMaintainUnsortedOrder","enableCellTextSelection","suppressBrowserResizeObserver","suppressMaxRenderedRowRestriction","excludeChildrenWhenTreeDataFiltering","tooltipMouseTrack","keepDetailRows","paginateChildRows","preventDefaultOnContextMenu","undoRedoCellEditing","allowDragFromColumnsToolPanel","immutableData","pivotSuppressAutoColumn","suppressExpandablePivotGroups","debounceVerticalScrollbar","detailRowAutoHeight","serverSideFilteringAlwaysResets","serverSideSortingAlwaysResets","serverSideSortAllLevels","serverSideFilterAllLevels","serverSideSortOnServer","serverSideFilterOnServer","suppressAggFilteredOnly","showOpenedGroup","suppressClipboardApi","suppressModelUpdateAfterUpdateTransaction","stopEditingWhenCellsLoseFocus","maintainColumnOrder","groupMaintainOrder","columnHoverHighlight","reactUi","suppressReactUi","readOnlyEdit","suppressRowVirtualisation","enableCellEditingOnBackspace","resetRowDataOnUpdate","removePivotHeaderRowWhenSingleValueColumn","suppressCopySingleCellRanges","groupRowsSticky","suppressServerSideInfiniteScroll","rowGroupPanelSuppressSort","allowShowChangeAfterFilter","suppressCutToClipboard"],t.FUNCTIONAL_PROPERTIES=["localeTextFunc","doesExternalFilterPass","groupRowAggNodes","isFullWidthCell","processSecondaryColDef","processSecondaryColGroupDef","processPivotResultColDef","processPivotResultColGroupDef","getBusinessKeyForNode","isRowSelectable","postSort","defaultGroupOrderComparator","rowDragText","groupRowRenderer","groupRowRendererFramework","fullWidthCellRenderer","fullWidthCellRendererFramework","loadingCellRenderer","loadingCellRendererFramework","loadingOverlayComponent","loadingOverlayComponentFramework","noRowsOverlayComponent","noRowsOverlayComponentFramework","detailCellRenderer","detailCellRendererFramework"],t.CALLBACK_PROPERTIES=["getLocaleText","isExternalFilterPresent","getRowHeight","getRowClass","getRowStyle","getContextMenuItems","getMainMenuItems","processRowPostCreate","processCellForClipboard","getGroupRowAgg","getRowNodeId","isFullWidthRow","sendToClipboard","navigateToNextHeader","tabToNextHeader","navigateToNextCell","tabToNextCell","processCellFromClipboard","getDocument","postProcessPopup","getChildCount","getDataPath","isRowMaster","postSortRows","processHeaderForClipboard","processGroupHeaderForClipboard","paginationNumberFormatter","processDataFromClipboard","getServerSideGroupKey","isServerSideGroup","createChartContainer","getChartToolbarItems","fillOperation","isApplyServerSideTransaction","getServerSideStoreParams","getServerSideGroupLevelParams","isServerSideGroupOpenByDefault","isGroupOpenByDefault","initialGroupOrderComparator","loadingCellRendererSelector","getRowId","groupAggFiltering"],t.FUNCTION_PROPERTIES=jt(t.FUNCTIONAL_PROPERTIES,t.CALLBACK_PROPERTIES),t.ALL_PROPERTIES=jt(t.ARRAY_PROPERTIES,t.OBJECT_PROPERTIES,t.STRING_PROPERTIES,t.NUMBER_PROPERTIES,t.FUNCTION_PROPERTIES,t.BOOLEAN_PROPERTIES),t.FRAMEWORK_PROPERTIES=["__ob__","__v_skip","__metadata__","mappedColumnProperties","hasChildColumns","toColDef","createColDefFromGridColumn"],t}(),Ut=function(){return(Ut=Object.assign||function(t){for(var e,o=1,i=arguments.length;o<i;o++)for(var n in e=arguments[o])Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t}).apply(this,arguments)},zt=function(t,e){var o="function"==typeof Symbol&&t[Symbol.iterator];if(!o)return t;var i,n,r=o.call(t),s=[];try{for(;(void 0===e||e-- >0)&&!(i=r.next()).done;)s.push(i.value)}catch(t){n={error:t}}finally{try{i&&!i.done&&(o=r.return)&&o.call(r)}finally{if(n)throw n.error}}return s},Kt=function(){for(var t=[],e=0;e<arguments.length;e++)t=t.concat(zt(arguments[e]));return t},Yt=function(){function t(){}return t.getCallbackForEvent=function(t){return!t||t.length<2?t:"on"+t[0].toUpperCase()+t.substr(1)},t.getCoercionLookup=function(){var e={};return Kt(t.ARRAY_PROPERTIES,t.OBJECT_PROPERTIES,t.STRING_PROPERTIES,t.FUNCTION_PROPERTIES,t.EVENT_CALLBACKS).forEach((function(t){return e[t]="none"})),t.BOOLEAN_PROPERTIES.forEach((function(t){return e[t]="boolean"})),t.NUMBER_PROPERTIES.forEach((function(t){return e[t]="number"})),e},t.getValue=function(e,o){var i=t.coercionLookup[e];if(i){var n=o;switch(i){case"number":n=t.toNumber(o);break;case"boolean":n=t.toBoolean(o);break;case"none":"groupAggFiltering"===e&&"function"!=typeof o&&(n=t.toBoolean(o))}return n}},t.getGridOptionKeys=function(e,o){return o?Object.keys(t.coercionLookup):Object.keys(e)},t.copyAttributesToGridOptions=function(e,o,i){void 0===i&&(i=!1),"object"!=typeof e&&(e={});var n=e;return t.getGridOptionKeys(o,i).forEach((function(e){var i=o[e];if(void 0!==i){var r=t.getValue(e,i);void 0!==r&&(n[e]=r)}})),e},t.processOnChange=function(e,o){if(e&&0!==Object.keys(e).length){var i=Ut({},e);i.columnTypes&&(o.setColumnTypes(i.columnTypes.currentValue,"gridOptionsChanged"),delete i.columnTypes),i.autoGroupColumnDef&&(o.setAutoGroupColumnDef(i.autoGroupColumnDef.currentValue,"gridOptionsChanged"),delete i.autoGroupColumnDef),i.defaultColDef&&(o.setDefaultColDef(i.defaultColDef.currentValue,"gridOptionsChanged"),delete i.defaultColDef),i.columnDefs&&(o.setColumnDefs(i.columnDefs.currentValue,"gridOptionsChanged"),delete i.columnDefs),Object.keys(i).forEach((function(e){var n=e,r=t.getValue(n,i[n].currentValue);o.__setProperty(n,r)}));var n={type:kt.EVENT_COMPONENT_STATE_CHANGED};c(e,(function(t,e){n[t]=e})),o.dispatchEvent(n)}},t.toBoolean=function(t){return"boolean"==typeof t?t:"string"==typeof t&&("TRUE"===t.toUpperCase()||""==t)},t.toNumber=function(t){return"number"==typeof t?t:"string"==typeof t?Number(t):void 0},t.EVENTS=a(kt),t.EXCLUDED_INTERNAL_EVENTS=[kt.EVENT_SCROLLBAR_WIDTH_CHANGED,kt.EVENT_CHECKBOX_CHANGED,kt.EVENT_HEIGHT_SCALE_CHANGED,kt.EVENT_BODY_HEIGHT_CHANGED,kt.EVENT_DISPLAYED_COLUMNS_WIDTH_CHANGED,kt.EVENT_SCROLL_VISIBILITY_CHANGED,kt.EVENT_COLUMN_HOVER_CHANGED,kt.EVENT_FLASH_CELLS,kt.EVENT_PAGINATION_PIXEL_OFFSET_CHANGED,kt.EVENT_DISPLAYED_ROWS_CHANGED,kt.EVENT_LEFT_PINNED_WIDTH_CHANGED,kt.EVENT_RIGHT_PINNED_WIDTH_CHANGED,kt.EVENT_ROW_CONTAINER_HEIGHT_CHANGED,kt.EVENT_POPUP_TO_FRONT,kt.EVENT_KEYBOARD_FOCUS,kt.EVENT_MOUSE_FOCUS,kt.EVENT_STORE_UPDATED,kt.EVENT_COLUMN_PANEL_ITEM_DRAG_START,kt.EVENT_COLUMN_PANEL_ITEM_DRAG_END,kt.EVENT_FILL_START,kt.EVENT_FILL_END,kt.EVENT_KEY_SHORTCUT_CHANGED_CELL_START,kt.EVENT_KEY_SHORTCUT_CHANGED_CELL_END,kt.EVENT_FULL_WIDTH_ROW_FOCUSED,kt.EVENT_HEADER_HEIGHT_CHANGED,kt.EVENT_COLUMN_HEADER_HEIGHT_CHANGED,kt.EVENT_INTERNAL_TOOL_PANEL_VISIBLE_CHANGED,kt.EVENT_CELL_FOCUS_CLEARED,kt.EVENT_GRID_STYLES_CHANGED,kt.EVENT_FILTER_DESTROYED],t.PUBLIC_EVENTS=t.EVENTS.filter((function(e){return!vt(t.EXCLUDED_INTERNAL_EVENTS,e)})),t.EVENT_CALLBACKS=t.EVENTS.map((function(e){return t.getCallbackForEvent(e)})),t.STRING_PROPERTIES=Wt.STRING_PROPERTIES,t.OBJECT_PROPERTIES=Wt.OBJECT_PROPERTIES,t.ARRAY_PROPERTIES=Wt.ARRAY_PROPERTIES,t.NUMBER_PROPERTIES=Wt.NUMBER_PROPERTIES,t.BOOLEAN_PROPERTIES=Wt.BOOLEAN_PROPERTIES,t.FUNCTION_PROPERTIES=Wt.FUNCTION_PROPERTIES,t.ALL_PROPERTIES=Wt.ALL_PROPERTIES,t.ALL_PROPERTIES_SET=new Set(Wt.ALL_PROPERTIES),t.coercionLookup=t.getCoercionLookup(),t}();
69/**
70 * @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue
71 * @version v29.2.0
72 * @link https://www.ag-grid.com/
73 * @license MIT
74 */
75/**
76 * @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue
77 * @version v29.2.0
78 * @link https://www.ag-grid.com/
79 * @license MIT
80 */
81function qt(t,e,o){var i={},n=t.filter((function(t){return!e.some((function(e){return e===t}))}));return n.length>0&&n.forEach((function(t){return i[t]=Qt(t,o)})),i}function Qt(t,e,o,i){var n=e.map((function(e){return{value:e,relevance:Xt(t.toLowerCase(),e.toLocaleLowerCase())}}));if(n.sort((function(t,e){return e.relevance-t.relevance})),o&&(n=n.filter((function(t){return 0!==t.relevance}))),i&&i>0){var r=n[0].relevance*i;n=n.filter((function(t){return r-t.relevance<0}))}return n.map((function(t){return t.value}))}function Xt(t,e){for(var o=t.replace(/\s/g,""),i=e.replace(/\s/g,""),n=0,r=-1,s=0;s<o.length;s++){var a=i.indexOf(o[s],r+1);-1!==a&&(n+=100-100*(r=a)/1e4*100)}return n}var Jt=Object.freeze({__proto__:null,fuzzyCheckStrings:qt,fuzzySuggestions:Qt}),Zt=function(t,e,o,i){var n,r=arguments.length,s=r<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,o):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,o,i);else for(var a=t.length-1;a>=0;a--)(n=t[a])&&(s=(r<3?n(s):r>3?n(e,o,s):n(e,o))||s);return r>3&&s&&Object.defineProperty(e,o,s),s},$t=function(t,e){var o="function"==typeof Symbol&&t[Symbol.iterator];if(!o)return t;var i,n,r=o.call(t),s=[];try{for(;(void 0===e||e-- >0)&&!(i=r.next()).done;)s.push(i.value)}catch(t){n={error:t}}finally{try{i&&!i.done&&(o=r.return)&&o.call(r)}finally{if(n)throw n.error}}return s},te=function(){for(var t=[],e=0;e<arguments.length;e++)t=t.concat($t(arguments[e]));return t};
82/**
83 * @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue
84 * @version v29.2.0
85 * @link https://www.ag-grid.com/
86 * @license MIT
87 */function ee(t,e,o,i){var n=o?"Please use '"+o+"' instead. ":"";O((function(){return console.warn("AG Grid: since v"+t+", '"+e+"' is deprecated. "+n+(null!=i?i:""))}),"Deprecated_"+e)}var oe=function(){function t(){this.deprecatedProperties={serverSideInfiniteScroll:{version:"29",message:"Infinite Scrolling is now the default behaviour. This can be suppressed with `suppressServerSideInfiniteScroll`."},rememberGroupStateWhenNewData:{version:"24",message:"Now that transaction updates are possible and they keep group state, this feature is no longer needed."},suppressEnterpriseResetOnNewColumns:{version:"25",message:"Now that it is possible to dynamically change columns in the grid, this is no longer needed."},suppressColumnStateEvents:{version:"25",message:'Events should be ignored based on the `event.source`, which will be "api" if the event was due to setting column state via the API.'},defaultExportParams:{version:"25.2",message:"The property `defaultExportParams` has been replaced by `defaultCsvExportParams` and `defaultExcelExportParams`"},stopEditingWhenGridLosesFocus:{version:"25.2.2",newProp:"stopEditingWhenCellsLoseFocus",copyToNewProp:!0},applyColumnDefOrder:{version:"26",message:"The property `applyColumnDefOrder` is no longer needed, as this is the default behaviour. To turn this behaviour off, set maintainColumnOrder=true"},groupMultiAutoColumn:{version:"26",newProp:"groupDisplayType",copyToNewProp:!0,newPropValue:"multipleColumns"},groupUseEntireRow:{version:"26",newProp:"groupDisplayType",copyToNewProp:!0,newPropValue:"groupRows"},defaultGroupSortComparator:{version:"26",newProp:"initialGroupOrderComparator"},enableMultiRowDragging:{version:"26.1",newProp:"rowDragMultiRow",copyToNewProp:!0},colWidth:{version:"26.1",newProp:"defaultColDef.width"},minColWidth:{version:"26.1",newProp:"defaultColDef.minWidth"},maxColWidth:{version:"26.1",newProp:"defaultColDef.maxWidth"},reactUi:{version:"26.1",message:"React UI is on by default, so no need for reactUi=true. To turn it off, set suppressReactUi=true."},suppressCellSelection:{version:"27",newProp:"suppressCellFocus",copyToNewProp:!0},clipboardDeliminator:{version:"27.1",newProp:"clipboardDelimiter",copyToNewProp:!0},getRowNodeId:{version:"27.1",newProp:"getRowId",message:"The difference: if getRowId() is implemented then immutable data is enabled by default."},defaultGroupOrderComparator:{version:"27.2",newProp:"initialGroupOrderComparator"},groupRowAggNodes:{version:"27.2",newProp:"getGroupRowAgg"},postSort:{version:"27.2",newProp:"postSortRows"},isFullWidthCell:{version:"27.2",newProp:"isFullWidthRow"},localeTextFunc:{version:"27.2",newProp:"getLocaleText"},serverSideFilteringAlwaysResets:{version:"28.0",newProp:"serverSideFilterAllLevels",copyToNewProp:!0},serverSideSortingAlwaysResets:{version:"28.0",newProp:"serverSideSortAllLevels",copyToNewProp:!0},suppressReactUi:{version:"28",message:"The legacy React rendering engine is deprecated and will be removed in the next major version of the grid."},processSecondaryColDef:{version:"28",newProp:"processPivotResultColDef",copyToNewProp:!0},processSecondaryColGroupDef:{version:"28",newProp:"processPivotResultColGroupDef",copyToNewProp:!0},getServerSideStoreParams:{version:"28",newProp:"getServerSideGroupLevelParams",copyToNewProp:!0},enableChartToolPanelsButton:{version:"29",message:"The Chart Tool Panels button is now enabled by default. To hide the Chart Tool Panels button and display the hamburger button instead, set suppressChartToolPanelsButton=true."},functionsPassive:{version:"29.2"},onColumnRowGroupChangeRequest:{version:"29.2"},onColumnPivotChangeRequest:{version:"29.2"},onColumnValueChangeRequest:{version:"29.2"},onColumnAggFuncChangeRequest:{version:"29.2"}}}return t.prototype.pickOneWarning=function(t,e){console.warn("AG Grid: "+t+" and "+e+" do not work with each other, you need to pick one.")},t.prototype.init=function(){var t=this;if(this.checkForDeprecated(),this.checkForViolations(),!0!==this.gridOptions.suppressPropertyNamesCheck&&(this.checkGridOptionsProperties(),this.checkColumnDefProperties()),this.checkColumnDefViolations(),this.gridOptionsService.is("groupSelectsChildren")&&this.gridOptionsService.is("suppressParentsInRowNodes")&&console.warn("AG Grid: 'groupSelectsChildren' does not work with 'suppressParentsInRowNodes', this selection method needs the part in rowNode to work"),this.gridOptionsService.is("groupSelectsChildren")&&"multiple"!==this.gridOptionsService.get("rowSelection")&&console.warn("AG Grid: rowSelection must be 'multiple' for groupSelectsChildren to make sense"),this.gridOptionsService.is("groupRemoveSingleChildren")&&this.gridOptionsService.is("groupHideOpenParents")&&this.pickOneWarning("groupRemoveSingleChildren","groupHideOpenParents"),this.gridOptionsService.isRowModelType("serverSide")){var e=function(t,e){return"AG Grid: '"+t+"' is not supported on the Server-Side Row Model."+(e?" Please use "+e+" instead.":"")};this.gridOptionsService.exists("groupDefaultExpanded")&&console.warn(e("groupDefaultExpanded","isServerSideGroupOpenByDefault callback")),this.gridOptionsService.exists("groupIncludeFooter")&&console.warn(e("groupIncludeFooter")),this.gridOptionsService.exists("groupIncludeTotalFooter")&&console.warn(e("groupIncludeTotalFooter"))}this.gridOptionsService.is("enableRangeSelection")?tt.assertRegistered(Q.RangeSelectionModule,"enableRangeSelection"):(this.gridOptionsService.is("enableRangeHandle")||this.gridOptionsService.is("enableFillHandle"))&&console.warn("AG Grid: 'enableRangeHandle' or 'enableFillHandle' will not work unless 'enableRangeSelection' is set to true");var o=function(e,o){return t.gridOptionsService.exists(e)&&tt.assertRegistered(o,e)};o("sideBar",Q.SideBarModule),o("statusBar",Q.StatusBarModule),o("enableCharts",Q.GridChartsModule),o("getMainMenuItems",Q.MenuModule),o("getContextMenuItems",Q.MenuModule),o("allowContextMenuWithControlKey",Q.MenuModule),this.gridOptionsService.is("groupRowsSticky")&&(this.gridOptionsService.is("groupHideOpenParents")&&this.pickOneWarning("groupRowsSticky","groupHideOpenParents"),this.gridOptionsService.is("masterDetail")&&this.pickOneWarning("groupRowsSticky","masterDetail"),this.gridOptionsService.is("pagination")&&this.pickOneWarning("groupRowsSticky","pagination"))},t.prototype.checkColumnDefProperties=function(){var t=this;null!=this.gridOptions.columnDefs&&this.gridOptions.columnDefs.forEach((function(e){var o=Object.getOwnPropertyNames(e),i=te(Vt.ALL_PROPERTIES,Vt.FRAMEWORK_PROPERTIES);t.checkProperties(o,i,i,"colDef","https://www.ag-grid.com/javascript-data-grid/column-properties/")}))},t.prototype.checkColumnDefViolations=function(){var t,e=null!==(t=this.gridOptionsService.get("rowModelType"))&&void 0!==t?t:"clientSide",o={infinite:["headerCheckboxSelection","headerCheckboxSelectionFilteredOnly","headerCheckboxSelectionCurrentPageOnly"],viewport:["headerCheckboxSelection","headerCheckboxSelectionFilteredOnly","headerCheckboxSelectionCurrentPageOnly"],serverSide:["headerCheckboxSelectionFilteredOnly","headerCheckboxSelectionCurrentPageOnly"],clientSide:[]}[e];if(null==o?void 0:o.length){var i=function(t){o.forEach((function(o){o in t&&t[o]&&console.warn("AG Grid: Column property "+o+" is not supported with the row model type "+e+".")}))};null!=this.gridOptions.columnDefs&&this.gridOptions.columnDefs.forEach((function(t){return i(t)})),null!=this.gridOptions.autoGroupColumnDef&&i(this.gridOptions.autoGroupColumnDef),null!=this.gridOptions.defaultColDef&&i(this.gridOptions.defaultColDef)}},t.prototype.checkGridOptionsProperties=function(){var t=Object.getOwnPropertyNames(this.gridOptions),e=te(Wt.ALL_PROPERTIES,Wt.FRAMEWORK_PROPERTIES,Yt.EVENT_CALLBACKS),o=te(e,["api","columnApi"],Object.keys(this.deprecatedProperties));this.checkProperties(t,o,e,"gridOptions","https://www.ag-grid.com/javascript-data-grid/grid-options/")},t.prototype.checkProperties=function(t,e,o,i,n){var r=qt(t,e,o);c(r,(function(t,e){console.warn("AG Grid: invalid "+i+" property '"+t+"' did you mean any of these: "+e.slice(0,8).join(", "))})),Object.keys(r).length>0&&console.warn("AG Grid: to see all the valid "+i+" properties please check: "+n)},t.prototype.checkForDeprecated=function(){var t=this.gridOptions;if(Object.entries(this.deprecatedProperties).forEach((function(e){var o,i=$t(e,2),n=i[0],r=i[1],s=t[n];s&&(ee(r.version,n,r.newProp,r.message),r.copyToNewProp&&r.newProp&&null==t[r.newProp]&&(t[r.newProp]=null!==(o=r.newPropValue)&&void 0!==o?o:s))})),t.groupSuppressAutoColumn){var e=t.treeData?"treeDataDisplayType":"groupDisplayType";console.warn("AG Grid: since v26.0, the grid property `groupSuppressAutoColumn` has been replaced by `"+e+" = 'custom'`"),t[e]="custom"}t.immutableData&&(t.getRowId?console.warn("AG Grid: since v27.1, `immutableData` is deprecated. With the `getRowId` callback implemented, immutable data is enabled by default so you can remove `immutableData=true`."):console.warn("AG Grid: since v27.1, `immutableData` is deprecated. To enable immutable data you must implement the `getRowId()` callback.")),t.serverSideStoreType&&(console.warn("AG Grid: since v29.0, `serverSideStoreType` has been replaced by `suppressServerSideInfiniteScroll`. Set to false to use Partial Store, and true to use Full Store."),t.suppressServerSideInfiniteScroll="partial"!==t.serverSideStoreType)},t.prototype.checkForViolations=function(){this.gridOptionsService.is("treeData")&&this.treeDataViolations()},t.prototype.treeDataViolations=function(){this.gridOptionsService.isRowModelType("clientSide")&&(this.gridOptionsService.exists("getDataPath")||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.gridOptionsService.isRowModelType("serverSide")&&(this.gridOptionsService.exists("isServerSideGroup")||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."),this.gridOptionsService.exists("getServerSideGroupKey")||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."))},Zt([U("gridOptions")],t.prototype,"gridOptions",void 0),Zt([U("gridOptionsService")],t.prototype,"gridOptionsService",void 0),Zt([B],t.prototype,"init",null),t=Zt([W("gridOptionsValidator")],t)}();function ie(t,e){var o=["groupRows","multipleColumns","custom","singleColumn"];return o.indexOf(e)<0?(console.warn("AG Grid: '"+e+"' is not a valid groupDisplayType value - possible values are: '"+o.join("', '")+"'"),!1):e===t}
88/**
89 * @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue
90 * @version v29.2.0
91 * @link https://www.ag-grid.com/
92 * @license MIT
93 */
94var ne=function(t,e,o,i){var n,r=arguments.length,s=r<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,o):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,o,i);else for(var a=t.length-1;a>=0;a--)(n=t[a])&&(s=(r<3?n(s):r>3?n(e,o,s):n(e,o))||s);return r>3&&s&&Object.defineProperty(e,o,s),s},re=function(){function t(t,e,o,i){this.displayedChildren=[],this.localEventService=new Z,this.groupId=e,this.partId=o,this.providedColumnGroup=t,this.pinned=i}return t.createUniqueId=function(t,e){return t+"_"+e},t.prototype.reset=function(){this.parent=null,this.children=null,this.displayedChildren=null},t.prototype.getParent=function(){return this.parent},t.prototype.setParent=function(t){this.parent=t},t.prototype.getUniqueId=function(){return t.createUniqueId(this.groupId,this.partId)},t.prototype.isEmptyGroup=function(){return 0===this.displayedChildren.length},t.prototype.isMoving=function(){var t=this.getProvidedColumnGroup().getLeafColumns();return!(!t||0===t.length)&&t.every((function(t){return t.isMoving()}))},t.prototype.checkLeft=function(){if(this.displayedChildren.forEach((function(e){e instanceof t&&e.checkLeft()})),this.displayedChildren.length>0)if(this.gridOptionsService.is("enableRtl")){var e=ut(this.displayedChildren).getLeft();this.setLeft(e)}else{var o=this.displayedChildren[0].getLeft();this.setLeft(o)}else this.setLeft(null)},t.prototype.getLeft=function(){return this.left},t.prototype.getOldLeft=function(){return this.oldLeft},t.prototype.setLeft=function(e){this.oldLeft=e,this.left!==e&&(this.left=e,this.localEventService.dispatchEvent(this.createAgEvent(t.EVENT_LEFT_CHANGED)))},t.prototype.getPinned=function(){return this.pinned},t.prototype.createAgEvent=function(t){return{type:t}},t.prototype.addEventListener=function(t,e){this.localEventService.addEventListener(t,e)},t.prototype.removeEventListener=function(t,e){this.localEventService.removeEventListener(t,e)},t.prototype.getGroupId=function(){return this.groupId},t.prototype.getPartId=function(){return this.partId},t.prototype.isChildInThisGroupDeepSearch=function(e){var o=!1;return this.children.forEach((function(i){e===i&&(o=!0),i instanceof t&&i.isChildInThisGroupDeepSearch(e)&&(o=!0)})),o},t.prototype.getActualWidth=function(){var t=0;return this.displayedChildren&&this.displayedChildren.forEach((function(e){t+=e.getActualWidth()})),t},t.prototype.isResizable=function(){if(!this.displayedChildren)return!1;var t=!1;return this.displayedChildren.forEach((function(e){e.isResizable()&&(t=!0)})),t},t.prototype.getMinWidth=function(){var t=0;return this.displayedChildren.forEach((function(e){t+=e.getMinWidth()||0})),t},t.prototype.addChild=function(t){this.children||(this.children=[]),this.children.push(t)},t.prototype.getDisplayedChildren=function(){return this.displayedChildren},t.prototype.getLeafColumns=function(){var t=[];return this.addLeafColumns(t),t},t.prototype.getDisplayedLeafColumns=function(){var t=[];return this.addDisplayedLeafColumns(t),t},t.prototype.getDefinition=function(){return this.providedColumnGroup.getColGroupDef()},t.prototype.getColGroupDef=function(){return this.providedColumnGroup.getColGroupDef()},t.prototype.isPadding=function(){return this.providedColumnGroup.isPadding()},t.prototype.isExpandable=function(){return this.providedColumnGroup.isExpandable()},t.prototype.isExpanded=function(){return this.providedColumnGroup.isExpanded()},t.prototype.setExpanded=function(t){this.providedColumnGroup.setExpanded(t)},t.prototype.addDisplayedLeafColumns=function(e){this.displayedChildren.forEach((function(o){o instanceof nt?e.push(o):o instanceof t&&o.addDisplayedLeafColumns(e)}))},t.prototype.addLeafColumns=function(e){this.children.forEach((function(o){o instanceof nt?e.push(o):o instanceof t&&o.addLeafColumns(e)}))},t.prototype.getChildren=function(){return this.children},t.prototype.getColumnGroupShow=function(){return this.providedColumnGroup.getColumnGroupShow()},t.prototype.getProvidedColumnGroup=function(){return this.providedColumnGroup},t.prototype.getOriginalColumnGroup=function(){return ee("27","getOriginalColumnGroup","getProvidedColumnGroup"),this.getProvidedColumnGroup()},t.prototype.getPaddingLevel=function(){var t=this.getParent();return this.isPadding()&&t&&t.isPadding()?1+t.getPaddingLevel():0},t.prototype.calculateDisplayedColumns=function(){var e=this;this.displayedChildren=[];for(var o=this;null!=o&&o.isPadding();)o=o.getParent();if(!(!!o&&o.providedColumnGroup.isExpandable()))return this.displayedChildren=this.children,void this.localEventService.dispatchEvent(this.createAgEvent(t.EVENT_DISPLAYED_CHILDREN_CHANGED));this.children.forEach((function(i){if(!(i instanceof t&&(!i.displayedChildren||!i.displayedChildren.length)))switch(i.getColumnGroupShow()){case"open":o.providedColumnGroup.isExpanded()&&e.displayedChildren.push(i);break;case"closed":o.providedColumnGroup.isExpanded()||e.displayedChildren.push(i);break;default:e.displayedChildren.push(i)}})),this.localEventService.dispatchEvent(this.createAgEvent(t.EVENT_DISPLAYED_CHILDREN_CHANGED))},t.EVENT_LEFT_CHANGED="leftChanged",t.EVENT_DISPLAYED_CHILDREN_CHANGED="displayedChildrenChanged",ne([U("gridOptionsService")],t.prototype,"gridOptionsService",void 0),t}(),se=function(){function t(){this.existingIds={}}return t.prototype.getInstanceIdForKey=function(t){var e,o=this.existingIds[t];return e="number"!=typeof o?0:o+1,this.existingIds[t]=e,e},t}(),ae=function(){var t=function(e,o){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])})(e,o)};return function(e,o){function i(){this.constructor=e}t(e,o),e.prototype=null===o?Object.create(o):(i.prototype=o.prototype,new i)}}(),le=function(t,e,o,i){var n,r=arguments.length,s=r<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,o):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,o,i);else for(var a=t.length-1;a>=0;a--)(n=t[a])&&(s=(r<3?n(s):r>3?n(e,o,s):n(e,o))||s);return r>3&&s&&Object.defineProperty(e,o,s),s},ue="ag-Grid-AutoColumn",ce=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return ae(e,t),e.prototype.createAutoGroupColumns=function(t,e){var o=this,i=[],n=this.gridOptionsService.isTreeData(),r=this.gridOptionsService.isGroupMultiAutoColumn();return n&&r&&(console.warn('AG Grid: you cannot mix groupDisplayType = "multipleColumns" with treeData, only one column can be used to display groups when doing tree data'),r=!1),r?e.forEach((function(e,n){i.push(o.createOneAutoGroupColumn(t,e,n))})):i.push(this.createOneAutoGroupColumn(t)),i},e.prototype.createOneAutoGroupColumn=function(t,e,i){var n,r=this.generateDefaultColDef(e);(n=e?"ag-Grid-AutoColumn-"+e.getId():"ag-Grid-AutoColumn",m(r,this.gridOptionsService.get("autoGroupColumnDef")),(r=this.columnFactory.mergeColDefs(r)).colId=n,this.gridOptionsService.isTreeData())||o(r.field)&&o(r.valueGetter)&&o(r.filterValueGetter)&&"agGroupColumnFilter"!==r.filter&&(r.filter=!1);i&&i>0&&(r.headerCheckboxSelection=!1);var s=t.find((function(t){return t.getId()==n}));if(s)return s.setColDef(r,null),this.columnFactory.applyColumnState(s,r),s;this.gridOptionsService.isColumnsSortingCoupledToGroup()&&(r.sort||r.initialSort)&&!r.field&&m(r,{sort:null,initialSort:null},!0,!0);var a=new nt(r,null,n,!0);return this.context.createBean(a),a},e.prototype.generateDefaultColDef=function(t){var e=this.gridOptionsService.get("autoGroupColumnDef"),o={headerName:this.localeService.getLocaleTextFunc()("group","Group")};if(e&&(e.cellRenderer||e.cellRendererFramework||e.cellRendererSelector)||(o.cellRenderer="agGroupCellRenderer"),t){var i=t.getColDef();Object.assign(o,{headerName:this.columnModel.getDisplayNameForColumn(t,"header"),headerValueGetter:i.headerValueGetter}),(i.cellRenderer||i.cellRendererFramework)&&Object.assign(o,{cellRendererParams:{innerRenderer:i.cellRenderer,innerRendererFramework:i.cellRendererFramework,innerRendererParams:i.cellRendererParams}}),o.showRowGroup=t.getColId()}else o.showRowGroup=!0;return o},le([U("columnModel")],e.prototype,"columnModel",void 0),le([U("columnFactory")],e.prototype,"columnFactory",void 0),e=le([W("autoGroupColService")],e)}(Mt),pe=/[&<>"']/g,de={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"};function he(t){return t[0].toUpperCase()+t.substr(1).toLowerCase()}function fe(t,e){if(null==t)return null;var o=t.toString().toString();return e?o:o.replace(pe,(function(t){return de[t]}))}function ge(t){if(!t||null==t)return null;return t.replace(/([a-z])([A-Z])/g,"$1 $2").replace(/([A-Z]+)([A-Z])([a-z])/g,"$1 $2$3").replace(/\./g," ").split(" ").map((function(t){return t.substring(0,1).toUpperCase()+(t.length>1?t.substring(1,t.length):"")})).join(" ")}var ve=Object.freeze({__proto__:null,utf8_encode:function(t){var e=String.fromCharCode;function o(t,o){return e(t>>o&63|128)}function i(t){if(t>=0&&t<=31&&10!==t)return"_x"+t.toString(16).toUpperCase().padStart(4,"0")+"_";if(0==(4294967168&t))return e(t);var i="";return 0==(4294965248&t)?i=e(t>>6&31|192):0==(4294901760&t)?(!function(t){if(t>=55296&&t<=57343)throw Error("Lone surrogate U+"+t.toString(16).toUpperCase()+" is not a scalar value")}(t),i=e(t>>12&15|224),i+=o(t,6)):0==(4292870144&t)&&(i=e(t>>18&7|240),i+=o(t,12),i+=o(t,6)),i+=e(63&t|128)}for(var n=function(t){var e=[];if(!t)return[];for(var o,i,n=t.length,r=0;r<n;)(o=t.charCodeAt(r++))>=55296&&o<=56319&&r<n?56320==(64512&(i=t.charCodeAt(r++)))?e.push(((1023&o)<<10)+(1023&i)+65536):(e.push(o),r--):e.push(o);return e}(t),r=n.length,s=-1,a="";++s<r;)a+=i(n[s]);return a},capitalise:he,escapeString:fe,camelCaseToHumanText:ge});
95/**
96 * @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue
97 * @version v29.2.0
98 * @link https://www.ag-grid.com/
99 * @license MIT
100 */function ye(t){var e=new Map;return t.forEach((function(t){return e.set(t[0],t[1])})),e}var me=Object.freeze({__proto__:null,convertToMap:ye,mapById:function(t,e){var o=new Map;return t.forEach((function(t){return o.set(e(t),t)})),o},keys:function(t){var e=[];return t.forEach((function(t,o){return e.push(o)})),e}}),Ce=function(){var t=function(e,o){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])})(e,o)};return function(e,o){function i(){this.constructor=e}t(e,o),e.prototype=null===o?Object.create(o):(i.prototype=o.prototype,new i)}}(),we=function(t,e,o,i){var n,r=arguments.length,s=r<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,o):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,o,i);else for(var a=t.length-1;a>=0;a--)(n=t[a])&&(s=(r<3?n(s):r>3?n(e,o,s):n(e,o))||s);return r>3&&s&&Object.defineProperty(e,o,s),s},Se=function(t,e){return function(o,i){e(o,i,t)}},Ee=function(t,e){var o={};for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&e.indexOf(i)<0&&(o[i]=t[i]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var n=0;for(i=Object.getOwnPropertySymbols(t);n<i.length;n++)e.indexOf(i[n])<0&&Object.prototype.propertyIsEnumerable.call(t,i[n])&&(o[i[n]]=t[i[n]])}return o},Re=function(t){var e="function"==typeof Symbol&&Symbol.iterator,o=e&&t[e],i=0;if(o)return o.call(t);if(t&&"number"==typeof t.length)return{next:function(){return t&&i>=t.length&&(t=void 0),{value:t&&t[i++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")},Oe=function(t,e){var o="function"==typeof Symbol&&t[Symbol.iterator];if(!o)return t;var i,n,r=o.call(t),s=[];try{for(;(void 0===e||e-- >0)&&!(i=r.next()).done;)s.push(i.value)}catch(t){n={error:t}}finally{try{i&&!i.done&&(o=r.return)&&o.call(r)}finally{if(n)throw n.error}}return s},be=function(){for(var t=[],e=0;e<arguments.length;e++)t=t.concat(Oe(arguments[e]));return t},Te=function(t){function n(){var e=null!==t&&t.apply(this,arguments)||this;return e.primaryHeaderRowCount=0,e.secondaryHeaderRowCount=0,e.gridHeaderRowCount=0,e.displayedColumnsLeft=[],e.displayedColumnsRight=[],e.displayedColumnsCenter=[],e.displayedColumns=[],e.displayedColumnsAndGroupsMap={},e.viewportColumns=[],e.viewportColumnsHash="",e.headerViewportColumns=[],e.viewportColumnsCenter=[],e.headerViewportColumnsCenter=[],e.autoHeightActiveAtLeastOnce=!1,e.rowGroupColumns=[],e.valueColumns=[],e.pivotColumns=[],e.ready=!1,e.autoGroupsNeedBuilding=!1,e.forceRecreateAutoGroups=!1,e.pivotMode=!1,e.bodyWidth=0,e.leftWidth=0,e.rightWidth=0,e.bodyWidthDirty=!0,e.flexColsCalculatedAtLestOnce=!1,e}return Ce(n,t),n.prototype.init=function(){var t=this;this.suppressColumnVirtualisation=this.gridOptionsService.is("suppressColumnVirtualisation");var e=this.gridOptionsService.is("pivotMode");this.isPivotSettingAllowed(e)&&(this.pivotMode=e),this.usingTreeData=this.gridOptionsService.isTreeData(),this.addManagedPropertyListener("groupDisplayType",(function(){return t.onAutoGroupColumnDefChanged()})),this.addManagedPropertyListener("autoGroupColumnDef",(function(){return t.onAutoGroupColumnDefChanged()})),this.addManagedPropertyListener("defaultColDef",(function(e){return t.onSharedColDefChanged(e.source)})),this.addManagedPropertyListener("columnTypes",(function(e){return t.onSharedColDefChanged(e.source)}))},n.prototype.onAutoGroupColumnDefChanged=function(){this.autoGroupsNeedBuilding=!0,this.forceRecreateAutoGroups=!0,this.updateGridColumns(),this.updateDisplayedColumns("gridOptionsChanged")},n.prototype.onSharedColDefChanged=function(t){void 0===t&&(t="api"),this.forceRecreateAutoGroups=!0,this.createColumnsFromColumnDefs(!0,t)},n.prototype.setColumnDefs=function(t,e){void 0===e&&(e="api");var o=!!this.columnDefs;this.columnDefs=t,this.createColumnsFromColumnDefs(o,e)},n.prototype.destroyOldColumns=function(t,e){var o={};if(t){this.columnUtils.depthFirstOriginalTreeSearch(null,t,(function(t){o[t.getInstanceId()]=t})),e&&this.columnUtils.depthFirstOriginalTreeSearch(null,e,(function(t){o[t.getInstanceId()]=null}));var i=Object.values(o).filter((function(t){return null!=t}));this.destroyBeans(i)}},n.prototype.destroyColumns=function(){this.destroyOldColumns(this.primaryColumnTree),this.destroyOldColumns(this.secondaryBalancedTree),this.destroyOldColumns(this.groupAutoColsBalancedTree)},n.prototype.createColumnsFromColumnDefs=function(t,e){var o=this;void 0===e&&(e="api");var i=t?this.compareColumnStatesAndDispatchEvents(e):void 0;this.valueCache.expire(),this.autoGroupsNeedBuilding=!0;var n=this.primaryColumns,r=this.primaryColumnTree,s=this.columnFactory.createColumnTree(this.columnDefs,!0,r);this.destroyOldColumns(this.primaryColumnTree,s.columnTree),this.primaryColumnTree=s.columnTree,this.primaryHeaderRowCount=s.treeDept+1,this.primaryColumns=this.getColumnsFromTree(this.primaryColumnTree),this.primaryColumnsMap={},this.primaryColumns.forEach((function(t){return o.primaryColumnsMap[t.getId()]=t})),this.extractRowGroupColumns(e,n),this.extractPivotColumns(e,n),this.extractValueColumns(e,n),this.ready=!0;var a=void 0===this.gridColsArePrimary;(this.gridColsArePrimary||a)&&(this.updateGridColumns(),t&&!this.gridOptionsService.is("maintainColumnOrder")&&this.orderGridColumnsLikePrimary(),this.updateDisplayedColumns(e),this.checkViewportColumns()),this.dispatchEverythingChanged(e),i&&i(),this.dispatchNewColumnsLoaded()},n.prototype.dispatchNewColumnsLoaded=function(){var t={type:kt.EVENT_NEW_COLUMNS_LOADED};this.eventService.dispatchEvent(t)},n.prototype.dispatchEverythingChanged=function(t){void 0===t&&(t="api");var e={type:kt.EVENT_COLUMN_EVERYTHING_CHANGED,source:t};this.eventService.dispatchEvent(e)},n.prototype.orderGridColumnsLikePrimary=function(){var t=this,e=this.primaryColumns;e&&(this.gridColumns.sort((function(o,i){var n=e.indexOf(o),r=e.indexOf(i),s=n>=0,a=r>=0;return s&&a?n-r:s?1:a?-1:t.gridColumns.indexOf(o)-t.gridColumns.indexOf(i)})),this.gridColumns=this.placeLockedColumns(this.gridColumns))},n.prototype.getAllDisplayedAutoHeightCols=function(){return this.displayedAutoHeightCols},n.prototype.setViewport=function(){this.gridOptionsService.is("enableRtl")?(this.viewportLeft=this.bodyWidth-this.scrollPosition-this.scrollWidth,this.viewportRight=this.bodyWidth-this.scrollPosition):(this.viewportLeft=this.scrollPosition,this.viewportRight=this.scrollWidth+this.scrollPosition)},n.prototype.getDisplayedColumnsStartingAt=function(t){for(var e=t,o=[];null!=e;)o.push(e),e=this.getDisplayedColAfter(e);return o},n.prototype.checkViewportColumns=function(){if(null!=this.displayedColumnsCenter&&this.extractViewport()){var t={type:kt.EVENT_VIRTUAL_COLUMNS_CHANGED};this.eventService.dispatchEvent(t)}},n.prototype.setViewportPosition=function(t,e){(t!==this.scrollWidth||e!==this.scrollPosition||this.bodyWidthDirty)&&(this.scrollWidth=t,this.scrollPosition=e,this.bodyWidthDirty=!0,this.setViewport(),this.ready&&this.checkViewportColumns())},n.prototype.isPivotMode=function(){return this.pivotMode},n.prototype.isPivotSettingAllowed=function(t){return!t||!this.gridOptionsService.isTreeData()||(console.warn("AG Grid: Pivot mode not available in conjunction Tree Data i.e. 'gridOptions.treeData: true'"),!1)},n.prototype.setPivotMode=function(t,e){if(void 0===e&&(e="api"),t!==this.pivotMode&&this.isPivotSettingAllowed(this.pivotMode)){this.pivotMode=t,this.autoGroupsNeedBuilding=!0,this.updateGridColumns(),this.updateDisplayedColumns(e);var o={type:kt.EVENT_COLUMN_PIVOT_MODE_CHANGED};this.eventService.dispatchEvent(o)}},n.prototype.getSecondaryPivotColumn=function(t,e){if(o(this.secondaryColumns))return null;var i=this.getPrimaryColumn(e),n=null;return this.secondaryColumns.forEach((function(e){var o=e.getColDef().pivotKeys,r=e.getColDef().pivotValueColumn;ct(o,t)&&r===i&&(n=e)})),n},n.prototype.setBeans=function(t){this.logger=t.create("columnModel")},n.prototype.setFirstRightAndLastLeftPinned=function(t){var e,o;this.gridOptionsService.is("enableRtl")?(e=this.displayedColumnsLeft?this.displayedColumnsLeft[0]:null,o=this.displayedColumnsRight?ut(this.displayedColumnsRight):null):(e=this.displayedColumnsLeft?ut(this.displayedColumnsLeft):null,o=this.displayedColumnsRight?this.displayedColumnsRight[0]:null),this.gridColumns.forEach((function(i){i.setLastLeftPinned(i===e,t),i.setFirstRightPinned(i===o,t)}))},n.prototype.autoSizeColumns=function(t){var e=this,o=t.columns,i=t.skipHeader,n=t.skipHeaderGroups,r=t.stopAtGroup,s=t.source,a=void 0===s?"api":s;this.animationFrameService.flushAllFrames();for(var l=[],u=-1,c=null!=i?i:this.gridOptionsService.is("skipHeaderOnAutoSize"),p=null!=n?n:c;0!==u;)u=0,this.actionOnGridColumns(o,(function(t){if(l.indexOf(t)>=0)return!1;var o=e.autoWidthCalculator.getPreferredWidthForColumn(t,c);if(o>0){var i=e.normaliseColumnWidth(t,o);t.setActualWidth(i,a),l.push(t),u++}return!0}),a);p||this.autoSizeColumnGroupsByColumns(o,r),this.dispatchColumnResizedEvent(l,!0,"autosizeColumns")},n.prototype.dispatchColumnResizedEvent=function(t,e,o,i){if(void 0===i&&(i=null),t&&t.length){var n={type:kt.EVENT_COLUMN_RESIZED,columns:t,column:1===t.length?t[0]:null,flexColumns:i,finished:e,source:o};this.eventService.dispatchEvent(n)}},n.prototype.dispatchColumnChangedEvent=function(t,e,o){var i={type:t,columns:e,column:e&&1==e.length?e[0]:null,source:o};this.eventService.dispatchEvent(i)},n.prototype.dispatchColumnMovedEvent=function(t){var e=t.movedColumns,o=t.source,i=t.toIndex,n=t.finished,r={type:kt.EVENT_COLUMN_MOVED,columns:e,column:e&&1===e.length?e[0]:null,toIndex:i,finished:n,source:o};this.eventService.dispatchEvent(r)},n.prototype.dispatchColumnPinnedEvent=function(t,e){if(t.length){var o=1===t.length?t[0]:null,i=this.getCommonValue(t,(function(t){return t.getPinned()})),n={type:kt.EVENT_COLUMN_PINNED,pinned:null!=i?i:null,columns:t,column:o,source:e};this.eventService.dispatchEvent(n)}},n.prototype.dispatchColumnVisibleEvent=function(t,e){if(t.length){var o=1===t.length?t[0]:null,i=this.getCommonValue(t,(function(t){return t.isVisible()})),n={type:kt.EVENT_COLUMN_VISIBLE,visible:i,columns:t,column:o,source:e};this.eventService.dispatchEvent(n)}},n.prototype.autoSizeColumn=function(t,e,o){void 0===o&&(o="api"),t&&this.autoSizeColumns({columns:[t],skipHeader:e,skipHeaderGroups:!0,source:o})},n.prototype.autoSizeColumnGroupsByColumns=function(t,e){var o,i,n,r,s,a=new Set;this.getGridColumns(t).forEach((function(t){for(var o=t.getParent();o&&o!=e;)o.isPadding()||a.add(o),o=o.getParent()}));try{for(var l=Re(a),u=l.next();!u.done;u=l.next()){var c=u.value;try{for(var p=(n=void 0,Re(this.ctrlsService.getHeaderRowContainerCtrls())),d=p.next();!d.done;d=p.next()){if(s=d.value.getHeaderCtrlForColumn(c))break}}catch(t){n={error:t}}finally{try{d&&!d.done&&(r=p.return)&&r.call(p)}finally{if(n)throw n.error}}s&&s.resizeLeafColumnsToFit()}}catch(t){o={error:t}}finally{try{u&&!u.done&&(i=l.return)&&i.call(l)}finally{if(o)throw o.error}}return[]},n.prototype.autoSizeAllColumns=function(t,e){void 0===e&&(e="api");var o=this.getAllDisplayedColumns();this.autoSizeColumns({columns:o,skipHeader:t,source:e})},n.prototype.getColumnsFromTree=function(t){var e=[],o=function(t){for(var i=0;i<t.length;i++){var n=t[i];n instanceof nt?e.push(n):n instanceof st&&o(n.getChildren())}};return o(t),e},n.prototype.getAllDisplayedTrees=function(){return this.displayedTreeLeft&&this.displayedTreeRight&&this.displayedTreeCentre?this.displayedTreeLeft.concat(this.displayedTreeCentre).concat(this.displayedTreeRight):null},n.prototype.getPrimaryColumnTree=function(){return this.primaryColumnTree},n.prototype.getHeaderRowCount=function(){return this.gridHeaderRowCount},n.prototype.getDisplayedTreeLeft=function(){return this.displayedTreeLeft},n.prototype.getDisplayedTreeRight=function(){return this.displayedTreeRight},n.prototype.getDisplayedTreeCentre=function(){return this.displayedTreeCentre},n.prototype.isColumnDisplayed=function(t){return this.getAllDisplayedColumns().indexOf(t)>=0},n.prototype.getAllDisplayedColumns=function(){return this.displayedColumns},n.prototype.getViewportColumns=function(){return this.viewportColumns},n.prototype.getDisplayedLeftColumnsForRow=function(t){return this.colSpanActive?this.getDisplayedColumnsForRow(t,this.displayedColumnsLeft):this.displayedColumnsLeft},n.prototype.getDisplayedRightColumnsForRow=function(t){return this.colSpanActive?this.getDisplayedColumnsForRow(t,this.displayedColumnsRight):this.displayedColumnsRight},n.prototype.getDisplayedColumnsForRow=function(t,e,o,i){for(var n,r=[],s=null,a=function(a){var l,u=e[a],c=e.length-a,p=Math.min(u.getColSpan(t),c),d=[u];if(p>1){for(var h=p-1,f=1;f<=h;f++)d.push(e[a+f]);a+=h}if(o?(l=!1,d.forEach((function(t){o(t)&&(l=!0)}))):l=!0,l){if(0===r.length&&s)!!i&&i(u)&&r.push(s);r.push(u)}s=u,n=a},l=0;l<e.length;l++)a(l),l=n;return r},n.prototype.getViewportCenterColumnsForRow=function(t){var o=this;if(!this.colSpanActive)return this.viewportColumnsCenter;var i=this.suppressColumnVirtualisation?null:this.isColumnInRowViewport.bind(this);return this.getDisplayedColumnsForRow(t,this.displayedColumnsCenter,i,(function(t){var i=t.getLeft();return e(i)&&i>o.viewportLeft}))},n.prototype.getAriaColumnIndex=function(t){return this.getAllGridColumns().indexOf(t)+1},n.prototype.isColumnInHeaderViewport=function(t){return!!t.isAutoHeaderHeight()||this.isColumnInRowViewport(t)},n.prototype.isColumnInRowViewport=function(t){if(t.isAutoHeight())return!0;var e=t.getLeft()||0,o=e+t.getActualWidth(),i=this.viewportLeft-200,n=this.viewportRight+200;return!(e<i&&o<i)&&!(e>n&&o>n)},n.prototype.getDisplayedColumnsLeftWidth=function(){return this.getWidthOfColsInList(this.displayedColumnsLeft)},n.prototype.getDisplayedColumnsRightWidth=function(){return this.getWidthOfColsInList(this.displayedColumnsRight)},n.prototype.updatePrimaryColumnList=function(t,e,o,n,r,s){var a=this;if(void 0===s&&(s="api"),t&&!i(t)){var l=!1;if(t.forEach((function(t){var i=a.getPrimaryColumn(t);if(i){if(o){if(e.indexOf(i)>=0)return;e.push(i)}else{if(e.indexOf(i)<0)return;dt(e,i)}n(i),l=!0}})),l){this.autoGroupsNeedBuilding&&this.updateGridColumns(),this.updateDisplayedColumns(s);var u={type:r,columns:e,column:1===e.length?e[0]:null,source:s};this.eventService.dispatchEvent(u)}}},n.prototype.setRowGroupColumns=function(t,e){void 0===e&&(e="api"),this.autoGroupsNeedBuilding=!0,this.setPrimaryColumnList(t,this.rowGroupColumns,kt.EVENT_COLUMN_ROW_GROUP_CHANGED,this.setRowGroupActive.bind(this),e)},n.prototype.setRowGroupActive=function(t,e,o){t!==e.isRowGroupActive()&&(e.setRowGroupActive(t,o),t&&!this.gridOptionsService.is("suppressRowGroupHidesColumns")&&this.setColumnVisible(e,!1,o),t||this.gridOptionsService.is("suppressMakeColumnVisibleAfterUnGroup")||this.setColumnVisible(e,!0,o))},n.prototype.addRowGroupColumn=function(t,e){void 0===e&&(e="api"),t&&this.addRowGroupColumns([t],e)},n.prototype.addRowGroupColumns=function(t,e){void 0===e&&(e="api"),this.autoGroupsNeedBuilding=!0,this.updatePrimaryColumnList(t,this.rowGroupColumns,!0,this.setRowGroupActive.bind(this,!0),kt.EVENT_COLUMN_ROW_GROUP_CHANGED,e)},n.prototype.removeRowGroupColumns=function(t,e){void 0===e&&(e="api"),this.autoGroupsNeedBuilding=!0,this.updatePrimaryColumnList(t,this.rowGroupColumns,!1,this.setRowGroupActive.bind(this,!1),kt.EVENT_COLUMN_ROW_GROUP_CHANGED,e)},n.prototype.removeRowGroupColumn=function(t,e){void 0===e&&(e="api"),t&&this.removeRowGroupColumns([t],e)},n.prototype.addPivotColumns=function(t,e){void 0===e&&(e="api"),this.updatePrimaryColumnList(t,this.pivotColumns,!0,(function(t){return t.setPivotActive(!0,e)}),kt.EVENT_COLUMN_PIVOT_CHANGED,e)},n.prototype.setPivotColumns=function(t,e){void 0===e&&(e="api"),this.setPrimaryColumnList(t,this.pivotColumns,kt.EVENT_COLUMN_PIVOT_CHANGED,(function(t,o){o.setPivotActive(t,e)}),e)},n.prototype.addPivotColumn=function(t,e){void 0===e&&(e="api"),this.addPivotColumns([t],e)},n.prototype.removePivotColumns=function(t,e){void 0===e&&(e="api"),this.updatePrimaryColumnList(t,this.pivotColumns,!1,(function(t){return t.setPivotActive(!1,e)}),kt.EVENT_COLUMN_PIVOT_CHANGED,e)},n.prototype.removePivotColumn=function(t,e){void 0===e&&(e="api"),this.removePivotColumns([t],e)},n.prototype.setPrimaryColumnList=function(t,o,i,n,r){var s=this;o.length=0,e(t)&&t.forEach((function(t){var e=s.getPrimaryColumn(t);e&&o.push(e)})),(this.primaryColumns||[]).forEach((function(t){var e=o.indexOf(t)>=0;n(e,t)})),this.autoGroupsNeedBuilding&&this.updateGridColumns(),this.updateDisplayedColumns(r),this.dispatchColumnChangedEvent(i,o,r)},n.prototype.setValueColumns=function(t,e){void 0===e&&(e="api"),this.setPrimaryColumnList(t,this.valueColumns,kt.EVENT_COLUMN_VALUE_CHANGED,this.setValueActive.bind(this),e)},n.prototype.setValueActive=function(t,e,o){if(t!==e.isValueActive()&&(e.setValueActive(t,o),t&&!e.getAggFunc())){var i=this.aggFuncService.getDefaultAggFunc(e);e.setAggFunc(i)}},n.prototype.addValueColumns=function(t,e){void 0===e&&(e="api"),this.updatePrimaryColumnList(t,this.valueColumns,!0,this.setValueActive.bind(this,!0),kt.EVENT_COLUMN_VALUE_CHANGED,e)},n.prototype.addValueColumn=function(t,e){void 0===e&&(e="api"),t&&this.addValueColumns([t],e)},n.prototype.removeValueColumn=function(t,e){void 0===e&&(e="api"),this.removeValueColumns([t],e)},n.prototype.removeValueColumns=function(t,e){void 0===e&&(e="api"),this.updatePrimaryColumnList(t,this.valueColumns,!1,this.setValueActive.bind(this,!1),kt.EVENT_COLUMN_VALUE_CHANGED,e)},n.prototype.normaliseColumnWidth=function(t,o){var i=t.getMinWidth();e(i)&&o<i&&(o=i);var n=t.getMaxWidth();return e(n)&&t.isGreaterThanMax(o)&&(o=n),o},n.prototype.getPrimaryOrGridColumn=function(t){return this.getPrimaryColumn(t)||this.getGridColumn(t)},n.prototype.setColumnWidths=function(t,e,o,i){var n=this;void 0===i&&(i="api");var r=[];t.forEach((function(t){var o=n.getPrimaryOrGridColumn(t.key);if(o&&(r.push({width:t.newWidth,ratios:[1],columns:[o]}),"shift"===n.gridOptionsService.get("colResizeDefault")&&(e=!e),e)){var i=n.getDisplayedColAfter(o);if(!i)return;var s=o.getActualWidth()-t.newWidth,a=i.getActualWidth()+s;r.push({width:a,ratios:[1],columns:[i]})}})),0!==r.length&&this.resizeColumnSets({resizeSets:r,finished:o,source:i})},n.prototype.checkMinAndMaxWidthsForSet=function(t){var o=t.columns,i=t.width,n=0,r=0,s=!0;return o.forEach((function(t){var o=t.getMinWidth();n+=o||0;var i=t.getMaxWidth();e(i)&&i>0?r+=i:s=!1})),i>=n&&(!s||i<=r)},n.prototype.resizeColumnSets=function(t){var o=this,i=t.resizeSets,n=t.finished,r=t.source;if(!i||i.every((function(t){return o.checkMinAndMaxWidthsForSet(t)}))){var s=[],a=[];i.forEach((function(t){var o=t.width,i=t.columns,n=t.ratios,l={},u={};i.forEach((function(t){return a.push(t)}));for(var c=!0,p=0,d=function(){if(++p>1e3)return console.error("AG Grid: infinite loop in resizeColumnSets"),"break";c=!1;var t=[],r=0,s=o;i.forEach((function(e,o){if(u[e.getId()])s-=l[e.getId()];else{t.push(e);var i=n[o];r+=i}}));var a=1/r;t.forEach((function(i,r){var p;r===t.length-1?p=s:(p=Math.round(n[r]*o*a),s-=p);var d=i.getMinWidth(),h=i.getMaxWidth();e(d)&&p<d?(p=d,u[i.getId()]=!0,c=!0):e(h)&&h>0&&p>h&&(p=h,u[i.getId()]=!0,c=!0),l[i.getId()]=p}))};c;){if("break"===d())break}i.forEach((function(t){var e=l[t.getId()];t.getActualWidth()!==e&&(t.setActualWidth(e,r),s.push(t))}))}));var l=s.length>0,u=[];l&&(u=this.refreshFlexedColumns({resizingCols:a,skipSetLeft:!0}),this.setLeftValues(r),this.updateBodyWidths(),this.checkViewportColumns());var c=a.concat(u);(l||n)&&this.dispatchColumnResizedEvent(c,n,r,u)}else if(n){var p=i&&i.length>0?i[0].columns:null;this.dispatchColumnResizedEvent(p,n,r)}},n.prototype.setColumnAggFunc=function(t,e,o){if(void 0===o&&(o="api"),t){var i=this.getPrimaryColumn(t);i&&(i.setAggFunc(e),this.dispatchColumnChangedEvent(kt.EVENT_COLUMN_VALUE_CHANGED,[i],o))}},n.prototype.moveRowGroupColumn=function(t,e,o){void 0===o&&(o="api");var i=this.rowGroupColumns[t];this.rowGroupColumns.splice(t,1),this.rowGroupColumns.splice(e,0,i);var n={type:kt.EVENT_COLUMN_ROW_GROUP_CHANGED,columns:this.rowGroupColumns,column:1===this.rowGroupColumns.length?this.rowGroupColumns[0]:null,source:o};this.eventService.dispatchEvent(n)},n.prototype.moveColumns=function(t,e,o,i){if(void 0===o&&(o="api"),void 0===i&&(i=!0),this.columnAnimationService.start(),e>this.gridColumns.length-t.length)return console.warn("AG Grid: tried to insert columns in invalid location, toIndex = "+e),void console.warn("AG Grid: remember that you should not count the moving columns when calculating the new index");var n=this.getGridColumns(t);!this.doesMovePassRules(n,e)||(gt(this.gridColumns,n,e),this.updateDisplayedColumns(o),this.dispatchColumnMovedEvent({movedColumns:n,source:o,toIndex:e,finished:i}),this.columnAnimationService.finish())},n.prototype.doesMovePassRules=function(t,e){var o=this.getProposedColumnOrder(t,e);return this.doesOrderPassRules(o)},n.prototype.doesOrderPassRules=function(t){return!!this.doesMovePassMarryChildren(t)&&!!this.doesMovePassLockedPositions(t)},n.prototype.getProposedColumnOrder=function(t,e){var o=this.gridColumns.slice();return gt(o,t,e),o},n.prototype.sortColumnsLikeGridColumns=function(t){var e=this;!t||t.length<=1||(t.filter((function(t){return e.gridColumns.indexOf(t)<0})).length>0||t.sort((function(t,o){return e.gridColumns.indexOf(t)-e.gridColumns.indexOf(o)})))},n.prototype.doesMovePassLockedPositions=function(t){var e=0,o=!0;return t.forEach((function(t){var i,n=(i=t.getColDef().lockPosition)?!0===i||"left"===i?0:2:1;n<e&&(o=!1),e=n})),o},n.prototype.doesMovePassMarryChildren=function(t){var e=!0;return this.columnUtils.depthFirstOriginalTreeSearch(null,this.gridBalancedTree,(function(o){if(o instanceof st){var i=o,n=i.getColGroupDef();if(n&&n.marryChildren){var r=[];i.getLeafColumns().forEach((function(e){var o=t.indexOf(e);r.push(o)})),Math.max.apply(Math,r)-Math.min.apply(Math,r)>i.getLeafColumns().length-1&&(e=!1)}}})),e},n.prototype.moveColumn=function(t,e,o){void 0===o&&(o="api"),this.moveColumns([t],e,o)},n.prototype.moveColumnByIndex=function(t,e,o){void 0===o&&(o="api");var i=this.gridColumns[t];this.moveColumn(i,e,o)},n.prototype.getColumnDefs=function(){var t=this;if(this.primaryColumns){var e=this.primaryColumns.slice();return this.gridColsArePrimary?e.sort((function(e,o){return t.gridColumns.indexOf(e)-t.gridColumns.indexOf(o)})):this.lastPrimaryOrder&&e.sort((function(e,o){return t.lastPrimaryOrder.indexOf(e)-t.lastPrimaryOrder.indexOf(o)})),this.columnDefFactory.buildColumnDefs(e,this.rowGroupColumns,this.pivotColumns)}},n.prototype.getBodyContainerWidth=function(){return this.bodyWidth},n.prototype.getContainerWidth=function(t){switch(t){case"left":return this.leftWidth;case"right":return this.rightWidth;default:return this.bodyWidth}},n.prototype.updateBodyWidths=function(){var t=this.getWidthOfColsInList(this.displayedColumnsCenter),e=this.getWidthOfColsInList(this.displayedColumnsLeft),o=this.getWidthOfColsInList(this.displayedColumnsRight);if(this.bodyWidthDirty=this.bodyWidth!==t,this.bodyWidth!==t||this.leftWidth!==e||this.rightWidth!==o){this.bodyWidth=t,this.leftWidth=e,this.rightWidth=o;var i={type:kt.EVENT_DISPLAYED_COLUMNS_WIDTH_CHANGED};this.eventService.dispatchEvent(i)}},n.prototype.getValueColumns=function(){return this.valueColumns?this.valueColumns:[]},n.prototype.getPivotColumns=function(){return this.pivotColumns?this.pivotColumns:[]},n.prototype.isPivotActive=function(){return this.pivotColumns&&this.pivotColumns.length>0&&this.pivotMode},n.prototype.getRowGroupColumns=function(){return this.rowGroupColumns?this.rowGroupColumns:[]},n.prototype.getDisplayedCenterColumns=function(){return this.displayedColumnsCenter},n.prototype.getDisplayedLeftColumns=function(){return this.displayedColumnsLeft},n.prototype.getDisplayedRightColumns=function(){return this.displayedColumnsRight},n.prototype.getDisplayedColumns=function(t){switch(t){case"left":return this.getDisplayedLeftColumns();case"right":return this.getDisplayedRightColumns();default:return this.getDisplayedCenterColumns()}},n.prototype.getAllPrimaryColumns=function(){return this.primaryColumns?this.primaryColumns.slice():null},n.prototype.getSecondaryColumns=function(){return this.secondaryColumns?this.secondaryColumns.slice():null},n.prototype.getAllColumnsForQuickFilter=function(){return this.columnsForQuickFilter},n.prototype.getAllGridColumns=function(){return this.gridColumns},n.prototype.isEmpty=function(){return i(this.gridColumns)},n.prototype.isRowGroupEmpty=function(){return i(this.rowGroupColumns)},n.prototype.setColumnVisible=function(t,e,o){void 0===o&&(o="api"),this.setColumnsVisible([t],e,o)},n.prototype.setColumnsVisible=function(t,e,o){void 0===e&&(e=!1),void 0===o&&(o="api"),this.applyColumnState({state:t.map((function(t){return{colId:"string"==typeof t?t:t.getColId(),hide:!e}}))},o)},n.prototype.setColumnPinned=function(t,e,o){void 0===o&&(o="api"),t&&this.setColumnsPinned([t],e,o)},n.prototype.setColumnsPinned=function(t,e,o){var i;(void 0===o&&(o="api"),this.gridOptionsService.isDomLayout("print"))?console.warn("AG Grid: Changing the column pinning status is not allowed with domLayout='print'"):(this.columnAnimationService.start(),i=!0===e||"left"===e?"left":"right"===e?"right":null,this.actionOnGridColumns(t,(function(t){return t.getPinned()!==i&&(t.setPinned(i),!0)}),o,(function(){return{type:kt.EVENT_COLUMN_PINNED,pinned:i,column:null,columns:null,source:o}})),this.columnAnimationService.finish())},n.prototype.actionOnGridColumns=function(t,o,n,r){var s=this;if(!i(t)){var a=[];if(t.forEach((function(t){var e=s.getGridColumn(t);e&&(!1!==o(e)&&a.push(e))})),a.length&&(this.updateDisplayedColumns(n),e(r)&&r)){var l=r();l.columns=a,l.column=1===a.length?a[0]:null,this.eventService.dispatchEvent(l)}}},n.prototype.getDisplayedColBefore=function(t){var e=this.getAllDisplayedColumns(),o=e.indexOf(t);return o>0?e[o-1]:null},n.prototype.getDisplayedColAfter=function(t){var e=this.getAllDisplayedColumns(),o=e.indexOf(t);return o<e.length-1?e[o+1]:null},n.prototype.getDisplayedGroupAfter=function(t){return this.getDisplayedGroupAtDirection(t,"After")},n.prototype.getDisplayedGroupBefore=function(t){return this.getDisplayedGroupAtDirection(t,"Before")},n.prototype.getDisplayedGroupAtDirection=function(t,e){for(var o=t.getProvidedColumnGroup().getLevel()+t.getPaddingLevel(),i=t.getDisplayedLeafColumns(),n="After"===e?ut(i):i[0],r="getDisplayedCol"+e;;){var s=this[r](n);if(!s)return null;var a=this.getColumnGroupAtLevel(s,o);if(a!==t)return a}},n.prototype.getColumnGroupAtLevel=function(t,e){for(var o=t.getParent();;){if(o.getProvidedColumnGroup().getLevel()+o.getPaddingLevel()<=e)break;o=o.getParent()}return o},n.prototype.isPinningLeft=function(){return this.displayedColumnsLeft.length>0},n.prototype.isPinningRight=function(){return this.displayedColumnsRight.length>0},n.prototype.getPrimaryAndSecondaryAndAutoColumns=function(){var t;return(t=[]).concat.apply(t,be([this.primaryColumns||[],this.groupAutoColumns||[],this.secondaryColumns||[]]))},n.prototype.createStateItemFromColumn=function(t){var e=t.isRowGroupActive()?this.rowGroupColumns.indexOf(t):null,o=t.isPivotActive()?this.pivotColumns.indexOf(t):null,i=t.isValueActive()?t.getAggFunc():null,n=null!=t.getSort()?t.getSort():null,r=null!=t.getSortIndex()?t.getSortIndex():null,s=null!=t.getFlex()&&t.getFlex()>0?t.getFlex():null;return{colId:t.getColId(),width:t.getActualWidth(),hide:!t.isVisible(),pinned:t.getPinned(),sort:n,sortIndex:r,aggFunc:i,rowGroup:t.isRowGroupActive(),rowGroupIndex:e,pivot:t.isPivotActive(),pivotIndex:o,flex:s}},n.prototype.getColumnState=function(){if(o(this.primaryColumns)||!this.isAlive())return[];var t=this.getPrimaryAndSecondaryAndAutoColumns().map(this.createStateItemFromColumn.bind(this));return this.orderColumnStateList(t),t},n.prototype.orderColumnStateList=function(t){var e=ye(this.gridColumns.map((function(t,e){return[t.getColId(),e]})));t.sort((function(t,o){return(e.has(t.colId)?e.get(t.colId):-1)-(e.has(o.colId)?e.get(o.colId):-1)}))},n.prototype.resetColumnState=function(t){void 0===t&&(t="api");var e=this.getColumnsFromTree(this.primaryColumnTree),i=[],n=1e3,r=1e3,s=[];this.groupAutoColumns&&(s=s.concat(this.groupAutoColumns)),e&&(s=s.concat(e)),s.forEach((function(t){var e=function(t,e){return null!=t?t:null!=e?e:null},s=t.getColDef(),a=e(s.sort,s.initialSort),l=e(s.sortIndex,s.initialSortIndex),u=e(s.hide,s.initialHide),c=e(s.pinned,s.initialPinned),p=e(s.width,s.initialWidth),d=e(s.flex,s.initialFlex),h=e(s.rowGroupIndex,s.initialRowGroupIndex),f=e(s.rowGroup,s.initialRowGroup);null!=h||null!=f&&0!=f||(h=null,f=null);var g=e(s.pivotIndex,s.initialPivotIndex),v=e(s.pivot,s.initialPivot);null!=g||null!=v&&0!=v||(g=null,v=null);var y=e(s.aggFunc,s.initialAggFunc),m={colId:t.getColId(),sort:a,sortIndex:l,hide:u,pinned:c,width:p,flex:d,rowGroup:f,rowGroupIndex:h,pivot:v,pivotIndex:g,aggFunc:y};o(h)&&f&&(m.rowGroupIndex=n++),o(g)&&v&&(m.pivotIndex=r++),i.push(m)})),this.applyColumnState({state:i,applyOrder:!0},t)},n.prototype.applyColumnState=function(t,o){var n=this;if(i(this.primaryColumns))return!1;if(t&&t.state&&!t.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;var r=function(e,i,r){var s=n.compareColumnStatesAndDispatchEvents(o);n.autoGroupsNeedBuilding=!0;var a=i.slice(),l={},u={},c=[],p=[],d=0,h=n.rowGroupColumns.slice(),f=n.pivotColumns.slice();e.forEach((function(e){var i=e.colId||"";if(i.startsWith("ag-Grid-AutoColumn"))return c.push(e),void p.push(e);var s=r(i);s?(n.syncColumnWithStateItem(s,e,t.defaultState,l,u,!1,o),dt(a,s)):(p.push(e),d+=1)}));var g=function(e){return n.syncColumnWithStateItem(e,null,t.defaultState,l,u,!1,o)};a.forEach(g);var v=function(t,e,o,i){var n=t[o.getId()],r=t[i.getId()],s=null!=n,a=null!=r;if(s&&a)return n-r;if(s)return-1;if(a)return 1;var l=e.indexOf(o),u=e.indexOf(i),c=l>=0;return c&&u>=0?l-u:c?-1:1};n.rowGroupColumns.sort(v.bind(n,l,h)),n.pivotColumns.sort(v.bind(n,u,f)),n.updateGridColumns();var y=n.groupAutoColumns?n.groupAutoColumns.slice():[];return c.forEach((function(e){var i=n.getAutoColumn(e.colId);dt(y,i),n.syncColumnWithStateItem(i,e,t.defaultState,null,null,!0,o)})),y.forEach(g),n.applyOrderAfterApplyState(t),n.updateDisplayedColumns(o),n.dispatchEverythingChanged(o),s(),{unmatchedAndAutoStates:p,unmatchedCount:d}};this.columnAnimationService.start();var s=r(t.state||[],this.primaryColumns||[],(function(t){return n.getPrimaryColumn(t)})),a=s.unmatchedAndAutoStates,l=s.unmatchedCount;return(a.length>0||e(t.defaultState))&&(l=r(a,this.secondaryColumns||[],(function(t){return n.getSecondaryColumn(t)})).unmatchedCount),this.columnAnimationService.finish(),0===l},n.prototype.applyOrderAfterApplyState=function(t){var e=this;if(t.applyOrder&&t.state){var o=[],i={};t.state.forEach((function(t){if(t.colId&&!i[t.colId]){var n=e.gridColumnsMap[t.colId];n&&(o.push(n),i[t.colId]=!0)}}));var n=0;this.gridColumns.forEach((function(t){var e=t.getColId();null!=i[e]||(e.startsWith("ag-Grid-AutoColumn")?ft(o,t,n++):o.push(t))})),o=this.placeLockedColumns(o),this.doesMovePassMarryChildren(o)?this.gridColumns=o:console.warn("AG Grid: Applying column order broke a group where columns should be married together. Applying new order has been discarded.")}},n.prototype.compareColumnStatesAndDispatchEvents=function(t){var e=this,o={rowGroupColumns:this.rowGroupColumns.slice(),pivotColumns:this.pivotColumns.slice(),valueColumns:this.valueColumns.slice()},i=this.getColumnState(),n={};return i.forEach((function(t){n[t.colId]=t})),function(){var r=e.getPrimaryAndSecondaryAndAutoColumns(),s=function(o,i,n,r){if(!ct(i.map(r),n.map(r))){var s={type:o,columns:n,column:1===n.length?n[0]:null,source:t};e.eventService.dispatchEvent(s)}},a=function(t){var e=[];return r.forEach((function(o){var i=n[o.getColId()];i&&t(i,o)&&e.push(o)})),e},l=function(t){return t.getColId()};s(kt.EVENT_COLUMN_ROW_GROUP_CHANGED,o.rowGroupColumns,e.rowGroupColumns,l),s(kt.EVENT_COLUMN_PIVOT_CHANGED,o.pivotColumns,e.pivotColumns,l);a((function(t,e){var o=null!=t.aggFunc,i=o!=e.isValueActive(),n=o&&t.aggFunc!=e.getAggFunc();return i||n})).length>0&&e.dispatchColumnChangedEvent(kt.EVENT_COLUMN_VALUE_CHANGED,e.valueColumns,t);e.dispatchColumnResizedEvent(a((function(t,e){return t.width!=e.getActualWidth()})),!0,t);e.dispatchColumnPinnedEvent(a((function(t,e){return t.pinned!=e.getPinned()})),t);e.dispatchColumnVisibleEvent(a((function(t,e){return t.hide==e.isVisible()})),t);a((function(t,e){return t.sort!=e.getSort()||t.sortIndex!=e.getSortIndex()})).length>0&&e.sortController.dispatchSortChangedEvents(t),e.normaliseColumnMovedEventForColumnState(i,t)}},n.prototype.getCommonValue=function(t,e){if(t&&0!=t.length){for(var o=e(t[0]),i=1;i<t.length;i++)if(o!==e(t[i]))return;return o}},n.prototype.normaliseColumnMovedEventForColumnState=function(t,e){var o=this,i=this.getColumnState(),n={};i.forEach((function(t){return n[t.colId]=t}));var r={};t.forEach((function(t){n[t.colId]&&(r[t.colId]=!0)}));var s=t.filter((function(t){return r[t.colId]})),a=i.filter((function(t){return r[t.colId]})),l=[];a.forEach((function(t,e){var i=s&&s[e];if(i&&i.colId!==t.colId){var n=o.getGridColumn(i.colId);n&&l.push(n)}})),l.length&&this.dispatchColumnMovedEvent({movedColumns:l,source:e,finished:!0})},n.prototype.syncColumnWithStateItem=function(t,o,i,n,r,s,a){if(t){var l=function(t,n){var r={value1:void 0,value2:void 0},s=!1;return o&&(void 0!==o[t]&&(r.value1=o[t],s=!0),e(n)&&void 0!==o[n]&&(r.value2=o[n],s=!0)),!s&&i&&(void 0!==i[t]&&(r.value1=i[t]),e(n)&&void 0!==i[n]&&(r.value2=i[n])),r},u=l("hide").value1;void 0!==u&&t.setVisible(!u,a);var c=l("pinned").value1;void 0!==c&&t.setPinned(c);var p=this.columnUtils.calculateColMinWidth(t.getColDef()),d=l("flex").value1;if(void 0!==d&&t.setFlex(d),t.getFlex()<=0){var h=l("width").value1;null!=h&&null!=p&&h>=p&&t.setActualWidth(h,a)}var f=l("sort").value1;void 0!==f&&("desc"===f||"asc"===f?t.setSort(f,a):t.setSort(void 0,a));var g=l("sortIndex").value1;if(void 0!==g&&t.setSortIndex(g),!s&&t.isPrimary()){var v=l("aggFunc").value1;void 0!==v&&("string"==typeof v?(t.setAggFunc(v),t.isValueActive()||(t.setValueActive(!0,a),this.valueColumns.push(t))):(e(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."),t.isValueActive()&&(t.setValueActive(!1,a),dt(this.valueColumns,t))));var y=l("rowGroup","rowGroupIndex"),m=y.value1,C=y.value2;void 0===m&&void 0===C||("number"==typeof C||m?(t.isRowGroupActive()||(t.setRowGroupActive(!0,a),this.rowGroupColumns.push(t)),n&&"number"==typeof C&&(n[t.getId()]=C)):t.isRowGroupActive()&&(t.setRowGroupActive(!1,a),dt(this.rowGroupColumns,t)));var w=l("pivot","pivotIndex"),S=w.value1,E=w.value2;void 0===S&&void 0===E||("number"==typeof E||S?(t.isPivotActive()||(t.setPivotActive(!0,a),this.pivotColumns.push(t)),r&&"number"==typeof E&&(r[t.getId()]=E)):t.isPivotActive()&&(t.setPivotActive(!1,a),dt(this.pivotColumns,t)))}}},n.prototype.getGridColumns=function(t){return this.getColumns(t,this.getGridColumn.bind(this))},n.prototype.getColumns=function(t,e){var o=[];return t&&t.forEach((function(t){var i=e(t);i&&o.push(i)})),o},n.prototype.getColumnWithValidation=function(t){if(null==t)return null;var e=this.getGridColumn(t);return e||console.warn("AG Grid: could not find column "+t),e},n.prototype.getPrimaryColumn=function(t){return this.primaryColumns?this.getColumn(t,this.primaryColumns,this.primaryColumnsMap):null},n.prototype.getGridColumn=function(t){return this.getColumn(t,this.gridColumns,this.gridColumnsMap)},n.prototype.getSecondaryColumn=function(t){return this.secondaryColumns?this.getColumn(t,this.secondaryColumns,this.secondaryColumnsMap):null},n.prototype.getColumn=function(t,e,o){if(!t)return null;if("string"==typeof t&&o[t])return o[t];for(var i=0;i<e.length;i++)if(this.columnsMatch(e[i],t))return e[i];return this.getAutoColumn(t)},n.prototype.getSourceColumnsForGroupColumn=function(t){var e=t.getColDef().showRowGroup;if(!e)return null;if(!0===e)return this.rowGroupColumns.slice(0);var o=this.getPrimaryColumn(e);return o?[o]:null},n.prototype.getAutoColumn=function(t){var i=this;return this.groupAutoColumns&&e(this.groupAutoColumns)&&!o(this.groupAutoColumns)&&this.groupAutoColumns.find((function(e){return i.columnsMatch(e,t)}))||null},n.prototype.columnsMatch=function(t,e){var o=t===e,i=t.getColDef()===e,n=t.getColId()==e;return o||i||n},n.prototype.getDisplayNameForColumn=function(t,e,o){if(void 0===o&&(o=!1),!t)return null;var i=this.getHeaderName(t.getColDef(),t,null,null,e);return o?this.wrapHeaderNameWithAggFunc(t,i):i},n.prototype.getDisplayNameForProvidedColumnGroup=function(t,e,o){var i=e?e.getColGroupDef():null;return i?this.getHeaderName(i,null,t,e,o):null},n.prototype.getDisplayNameForColumnGroup=function(t,e){return this.getDisplayNameForProvidedColumnGroup(t,t.getProvidedColumnGroup(),e)},n.prototype.getHeaderName=function(t,e,o,i,n){var r=t.headerValueGetter;if(r){var s={colDef:t,column:e,columnGroup:o,providedColumnGroup:i,location:n,api:this.gridOptionsService.api,columnApi:this.gridOptionsService.columnApi,context:this.gridOptionsService.context};return"function"==typeof r?r(s):"string"==typeof r?this.expressionService.evaluate(r,s):(console.warn("AG Grid: headerValueGetter must be a function or a string"),"")}return null!=t.headerName?t.headerName:t.field?ge(t.field):""},n.prototype.wrapHeaderNameWithAggFunc=function(t,o){if(this.gridOptionsService.is("suppressAggFuncInHeader"))return o;var i,n=t.getColDef().pivotValueColumn,r=null;if(e(n)){var s=this.gridOptionsService.is("removePivotHeaderRowWhenSingleValueColumn")&&1===this.valueColumns.length,a=void 0!==t.getColDef().pivotTotalColumnIds;if(s&&!a)return o;r=n?n.getAggFunc():null,i=!0}else{var l=t.isValueActive(),u=this.pivotMode||!this.isRowGroupEmpty();l&&u?(r=t.getAggFunc(),i=!0):i=!1}if(i){var c="string"==typeof r?r:"func";return this.localeService.getLocaleTextFunc()(c,c)+"("+o+")"}return o},n.prototype.getColumnGroup=function(t,e){if(!t)return null;if(t instanceof re)return t;var o=this.getAllDisplayedTrees(),i="number"==typeof e,n=null;return this.columnUtils.depthFirstAllColumnTreeSearch(o,(function(o){if(o instanceof re){var r=o;(i?t===r.getGroupId()&&e===r.getPartId():t===r.getGroupId())&&(n=r)}})),n},n.prototype.isReady=function(){return this.ready},n.prototype.extractValueColumns=function(t,e){this.valueColumns=this.extractColumns(e,this.valueColumns,(function(e,o){return e.setValueActive(o,t)}),(function(){}),(function(){}),(function(t){var e=t.aggFunc;return null===e||""===e?null:void 0!==e?!!e:void 0}),(function(t){return null!=t.initialAggFunc&&""!=t.initialAggFunc})),this.valueColumns.forEach((function(t){var e=t.getColDef();null!=e.aggFunc&&""!=e.aggFunc?t.setAggFunc(e.aggFunc):t.getAggFunc()||t.setAggFunc(e.initialAggFunc)}))},n.prototype.extractRowGroupColumns=function(t,e){this.rowGroupColumns=this.extractColumns(e,this.rowGroupColumns,(function(e,o){return e.setRowGroupActive(o,t)}),(function(t){return t.rowGroupIndex}),(function(t){return t.initialRowGroupIndex}),(function(t){return t.rowGroup}),(function(t){return t.initialRowGroup}))},n.prototype.extractColumns=function(t,e,o,i,n,a,l){void 0===t&&(t=[]),void 0===e&&(e=[]);var u=[],c=[];(this.primaryColumns||[]).forEach((function(o){var p=t.indexOf(o)<0,d=o.getColDef(),h=s(a(d)),f=s(l(d)),g=r(i(d)),v=r(n(d));(void 0!==h?h:void 0!==g?null!==g&&g>=0:p?void 0!==f?f:!!(void 0!==v)&&(null!=v&&v>=0):e.indexOf(o)>=0)&&((p?null!=g||null!=v:null!=g)?u.push(o):c.push(o))}));var p=function(t){var e=i(t.getColDef()),o=n(t.getColDef());return null!=e?e:o};u.sort((function(t,e){var o=p(t),i=p(e);return o===i?0:o<i?-1:1}));var d=[].concat(u);return e.forEach((function(t){c.indexOf(t)>=0&&d.push(t)})),c.forEach((function(t){d.indexOf(t)<0&&d.push(t)})),e.forEach((function(t){d.indexOf(t)<0&&o(t,!1)})),d.forEach((function(t){e.indexOf(t)<0&&o(t,!0)})),d},n.prototype.extractPivotColumns=function(t,e){this.pivotColumns=this.extractColumns(e,this.pivotColumns,(function(e,o){return e.setPivotActive(o,t)}),(function(t){return t.pivotIndex}),(function(t){return t.initialPivotIndex}),(function(t){return t.pivot}),(function(t){return t.initialPivot}))},n.prototype.resetColumnGroupState=function(t){void 0===t&&(t="api");var e=[];this.columnUtils.depthFirstOriginalTreeSearch(null,this.primaryColumnTree,(function(t){if(t instanceof st){var o=t.getColGroupDef(),i={groupId:t.getGroupId(),open:o?o.openByDefault:void 0};e.push(i)}})),this.setColumnGroupState(e,t)},n.prototype.getColumnGroupState=function(){var t=[];return this.columnUtils.depthFirstOriginalTreeSearch(null,this.gridBalancedTree,(function(e){e instanceof st&&t.push({groupId:e.getGroupId(),open:e.isExpanded()})})),t},n.prototype.setColumnGroupState=function(t,e){var o=this;void 0===e&&(e="api"),this.columnAnimationService.start();var i=[];t.forEach((function(t){var e=t.groupId,n=t.open,r=o.getProvidedColumnGroup(e);r&&r.isExpanded()!==n&&(o.logger.log("columnGroupOpened("+r.getGroupId()+","+n+")"),r.setExpanded(n),i.push(r))})),this.updateGroupsAndDisplayedColumns(e),this.setFirstRightAndLastLeftPinned(e),i.forEach((function(t){var e={type:kt.EVENT_COLUMN_GROUP_OPENED,columnGroup:t};o.eventService.dispatchEvent(e)})),this.columnAnimationService.finish()},n.prototype.setColumnGroupOpened=function(t,e,o){var i;void 0===o&&(o="api"),i=t instanceof st?t.getId():t||"",this.setColumnGroupState([{groupId:i,open:e}],o)},n.prototype.getProvidedColumnGroup=function(t){"string"!=typeof t&&console.error("AG Grid: group key must be a string");var e=null;return this.columnUtils.depthFirstOriginalTreeSearch(null,this.gridBalancedTree,(function(o){o instanceof st&&o.getId()===t&&(e=o)})),e},n.prototype.calculateColumnsForDisplay=function(){var t=this;return this.pivotMode&&o(this.secondaryColumns)?this.gridColumns.filter((function(e){var o=t.groupAutoColumns&&vt(t.groupAutoColumns,e),i=t.valueColumns&&vt(t.valueColumns,e);return o||i})):this.gridColumns.filter((function(e){return t.groupAutoColumns&&vt(t.groupAutoColumns,e)||e.isVisible()}))},n.prototype.checkColSpanActiveInCols=function(t){var o=!1;return t.forEach((function(t){e(t.getColDef().colSpan)&&(o=!0)})),o},n.prototype.calculateColumnsForGroupDisplay=function(){var t=this;this.groupDisplayColumns=[],this.groupDisplayColumnsMap={};var o=function(o){var i=o.getColDef(),n=i.showRowGroup;i&&e(n)&&(t.groupDisplayColumns.push(o),"string"==typeof n?t.groupDisplayColumnsMap[n]=o:!0===n&&t.getRowGroupColumns().forEach((function(e){t.groupDisplayColumnsMap[e.getId()]=o})))};this.gridColumns.forEach(o),this.groupAutoColumns&&this.groupAutoColumns.forEach(o)},n.prototype.getGroupDisplayColumns=function(){return this.groupDisplayColumns},n.prototype.getGroupDisplayColumnForGroup=function(t){return this.groupDisplayColumnsMap[t]},n.prototype.updateDisplayedColumns=function(t){var e=this.calculateColumnsForDisplay();this.buildDisplayedTrees(e),this.calculateColumnsForGroupDisplay(),this.updateGroupsAndDisplayedColumns(t),this.setFirstRightAndLastLeftPinned(t)},n.prototype.isSecondaryColumnsPresent=function(){return e(this.secondaryColumns)},n.prototype.setSecondaryColumns=function(t,e){var i=this;void 0===e&&(e="api");var n=t&&t.length>0;if(n||!o(this.secondaryColumns)){if(n){this.processSecondaryColumnDefinitions(t);var r=this.columnFactory.createColumnTree(t,!1,this.secondaryBalancedTree||this.previousSecondaryColumns||void 0);this.destroyOldColumns(this.secondaryBalancedTree,r.columnTree),this.secondaryBalancedTree=r.columnTree,this.secondaryHeaderRowCount=r.treeDept+1,this.secondaryColumns=this.getColumnsFromTree(this.secondaryBalancedTree),this.secondaryColumnsMap={},this.secondaryColumns.forEach((function(t){return i.secondaryColumnsMap[t.getId()]=t})),this.previousSecondaryColumns=null}else this.previousSecondaryColumns=this.secondaryBalancedTree,this.secondaryBalancedTree=null,this.secondaryHeaderRowCount=-1,this.secondaryColumns=null,this.secondaryColumnsMap={};this.updateGridColumns(),this.updateDisplayedColumns(e)}},n.prototype.processSecondaryColumnDefinitions=function(t){var o=this.gridOptionsService.get("processPivotResultColDef")||this.gridOptionsService.get("processSecondaryColDef"),i=this.gridOptionsService.get("processPivotResultColGroupDef")||this.gridOptionsService.get("processSecondaryColGroupDef");if(o||i){var n=function(t){t.forEach((function(t){if(e(t.children)){var r=t;i&&i(r),n(r.children)}else{o&&o(t)}}))};t&&n(t)}},n.prototype.updateGridColumns=function(){var t,e=this,o=this.gridBalancedTree;if(this.gridColsArePrimary?this.lastPrimaryOrder=this.gridColumns:this.lastSecondaryOrder=this.gridColumns,this.secondaryColumns&&this.secondaryBalancedTree){var i=this.secondaryColumns.every((function(t){return void 0!==e.gridColumnsMap[t.getColId()]}));this.gridBalancedTree=this.secondaryBalancedTree.slice(),this.gridHeaderRowCount=this.secondaryHeaderRowCount,this.gridColumns=this.secondaryColumns.slice(),this.gridColsArePrimary=!1,i&&(t=this.lastSecondaryOrder)}else this.primaryColumns&&(this.gridBalancedTree=this.primaryColumnTree.slice(),this.gridHeaderRowCount=this.primaryHeaderRowCount,this.gridColumns=this.primaryColumns.slice(),this.gridColsArePrimary=!0,t=this.lastPrimaryOrder);if(this.createGroupAutoColumnsIfNeeded()&&t){var n=ye(this.groupAutoColumns.map((function(t){return[t,!0]})));t=t.filter((function(t){return!n.has(t)})),t=be(this.groupAutoColumns,t)}if(this.addAutoGroupToGridColumns(),this.orderGridColsLike(t),this.gridColumns=this.placeLockedColumns(this.gridColumns),this.refreshQuickFilterColumns(),this.clearDisplayedAndViewportColumns(),this.colSpanActive=this.checkColSpanActiveInCols(this.gridColumns),this.gridColumnsMap={},this.gridColumns.forEach((function(t){return e.gridColumnsMap[t.getId()]=t})),this.setAutoHeightActive(),!ct(o,this.gridBalancedTree)){var r={type:kt.EVENT_GRID_COLUMNS_CHANGED};this.eventService.dispatchEvent(r)}},n.prototype.setAutoHeightActive=function(){if(this.autoHeightActive=this.gridColumns.filter((function(t){return t.isAutoHeight()})).length>0,this.autoHeightActive){this.autoHeightActiveAtLeastOnce=!0;var t=this.rowModel.getType();if(!("clientSide"===t||"serverSide"===t)){O((function(){return console.warn("AG Grid - autoHeight columns only work with Client Side Row Model and Server Side Row Model.")}),"autoHeightActive.wrongRowModel")}}},n.prototype.orderGridColsLike=function(t){if(!o(t)){var e=ye(t.map((function(t,e){return[t,e]}))),i=!0;if(this.gridColumns.forEach((function(t){e.has(t)&&(i=!1)})),!i){var n=ye(this.gridColumns.map((function(t){return[t,!0]}))),r=t.filter((function(t){return n.has(t)})),s=ye(r.map((function(t){return[t,!0]}))),a=this.gridColumns.filter((function(t){return!s.has(t)})),l=r.slice();a.forEach((function(t){var e=t.getOriginalParent();if(e){for(var o=[];!o.length&&e;){e.getLeafColumns().forEach((function(t){var e=l.indexOf(t)>=0,i=o.indexOf(t)<0;e&&i&&o.push(t)})),e=e.getOriginalParent()}if(o.length){var i=o.map((function(t){return l.indexOf(t)})),n=Math.max.apply(Math,be(i));ft(l,t,n+1)}else l.push(t)}else l.push(t)})),this.gridColumns=l}}},n.prototype.isPrimaryColumnGroupsPresent=function(){return this.primaryHeaderRowCount>1},n.prototype.refreshQuickFilterColumns=function(){var t,e;this.groupAutoColumns?e=(null!==(t=this.primaryColumns)&&void 0!==t?t:[]).concat(this.groupAutoColumns):this.primaryColumns&&(e=this.primaryColumns),e=null!=e?e:[],this.columnsForQuickFilter=this.gridOptionsService.is("excludeHiddenColumnsFromQuickFilter")?e.filter((function(t){return t.isVisible()})):e},n.prototype.placeLockedColumns=function(t){var e=[],o=[],i=[];return t.forEach((function(t){var n=t.getColDef().lockPosition;"right"===n?i.push(t):"left"===n||!0===n?e.push(t):o.push(t)})),be(e,o,i)},n.prototype.addAutoGroupToGridColumns=function(){if(o(this.groupAutoColumns))return this.destroyOldColumns(this.groupAutoColsBalancedTree),void(this.groupAutoColsBalancedTree=null);this.gridColumns=this.groupAutoColumns?this.groupAutoColumns.concat(this.gridColumns):this.gridColumns;var t=this.columnFactory.createForAutoGroups(this.groupAutoColumns,this.gridBalancedTree);this.destroyOldColumns(this.groupAutoColsBalancedTree,t),this.groupAutoColsBalancedTree=t,this.gridBalancedTree=t.concat(this.gridBalancedTree)},n.prototype.clearDisplayedAndViewportColumns=function(){this.viewportRowLeft={},this.viewportRowRight={},this.viewportRowCenter={},this.displayedColumnsLeft=[],this.displayedColumnsRight=[],this.displayedColumnsCenter=[],this.displayedColumns=[],this.viewportColumns=[],this.headerViewportColumns=[],this.viewportColumnsHash=""},n.prototype.updateGroupsAndDisplayedColumns=function(t){this.updateOpenClosedVisibilityInColumnGroups(),this.deriveDisplayedColumns(t),this.refreshFlexedColumns(),this.extractViewport(),this.updateBodyWidths();var e={type:kt.EVENT_DISPLAYED_COLUMNS_CHANGED};this.eventService.dispatchEvent(e)},n.prototype.deriveDisplayedColumns=function(t){this.derivedDisplayedColumnsFromDisplayedTree(this.displayedTreeLeft,this.displayedColumnsLeft),this.derivedDisplayedColumnsFromDisplayedTree(this.displayedTreeCentre,this.displayedColumnsCenter),this.derivedDisplayedColumnsFromDisplayedTree(this.displayedTreeRight,this.displayedColumnsRight),this.joinDisplayedColumns(),this.setLeftValues(t),this.displayedAutoHeightCols=this.displayedColumns.filter((function(t){return t.isAutoHeight()}))},n.prototype.isAutoRowHeightActive=function(){return this.autoHeightActive},n.prototype.wasAutoRowHeightEverActive=function(){return this.autoHeightActiveAtLeastOnce},n.prototype.joinDisplayedColumns=function(){this.gridOptionsService.is("enableRtl")?this.displayedColumns=this.displayedColumnsRight.concat(this.displayedColumnsCenter).concat(this.displayedColumnsLeft):this.displayedColumns=this.displayedColumnsLeft.concat(this.displayedColumnsCenter).concat(this.displayedColumnsRight)},n.prototype.setLeftValues=function(t){this.setLeftValuesOfColumns(t),this.setLeftValuesOfGroups()},n.prototype.setLeftValuesOfColumns=function(t){var e=this;if(this.primaryColumns){var o=this.primaryColumns.slice(0),i=this.gridOptionsService.is("enableRtl");[this.displayedColumnsLeft,this.displayedColumnsRight,this.displayedColumnsCenter].forEach((function(n){if(i){var r=e.getWidthOfColsInList(n);n.forEach((function(e){r-=e.getActualWidth(),e.setLeft(r,t)}))}else{var s=0;n.forEach((function(e){e.setLeft(s,t),s+=e.getActualWidth()}))}ht(o,n)})),o.forEach((function(e){e.setLeft(null,t)}))}},n.prototype.setLeftValuesOfGroups=function(){[this.displayedTreeLeft,this.displayedTreeRight,this.displayedTreeCentre].forEach((function(t){t.forEach((function(t){t instanceof re&&t.checkLeft()}))}))},n.prototype.derivedDisplayedColumnsFromDisplayedTree=function(t,e){e.length=0,this.columnUtils.depthFirstDisplayedColumnTreeSearch(t,(function(t){t instanceof nt&&e.push(t)}))},n.prototype.extractViewportColumns=function(){this.suppressColumnVirtualisation?(this.viewportColumnsCenter=this.displayedColumnsCenter,this.headerViewportColumnsCenter=this.displayedColumnsCenter):(this.viewportColumnsCenter=this.displayedColumnsCenter.filter(this.isColumnInRowViewport.bind(this)),this.headerViewportColumnsCenter=this.displayedColumnsCenter.filter(this.isColumnInHeaderViewport.bind(this))),this.viewportColumns=this.viewportColumnsCenter.concat(this.displayedColumnsLeft).concat(this.displayedColumnsRight),this.headerViewportColumns=this.headerViewportColumnsCenter.concat(this.displayedColumnsLeft).concat(this.displayedColumnsRight)},n.prototype.getVirtualHeaderGroupRow=function(t,e){var i;switch(t){case"left":i=this.viewportRowLeft[e];break;case"right":i=this.viewportRowRight[e];break;default:i=this.viewportRowCenter[e]}return o(i)&&(i=[]),i},n.prototype.calculateHeaderRows=function(){this.viewportRowLeft={},this.viewportRowRight={},this.viewportRowCenter={};var t={};this.headerViewportColumns.forEach((function(e){return t[e.getId()]=!0}));var e=function(o,i,n){for(var r=!1,s=0;s<o.length;s++){var a=o[s],l=!1;if(a instanceof nt)l=!0===t[a.getId()];else{var u=a.getDisplayedChildren();u&&(l=e(u,i,n+1))}l&&(r=!0,i[n]||(i[n]=[]),i[n].push(a))}return r};e(this.displayedTreeLeft,this.viewportRowLeft,0),e(this.displayedTreeRight,this.viewportRowRight,0),e(this.displayedTreeCentre,this.viewportRowCenter,0)},n.prototype.extractViewport=function(){this.extractViewportColumns();var t=this.viewportColumns.map((function(t){return t.getId()+"-"+(t.getPinned()||"normal")})).join("#"),e=this.viewportColumnsHash!==t;return e&&(this.viewportColumnsHash=t,this.calculateHeaderRows()),e},n.prototype.refreshFlexedColumns=function(t){var o=this;void 0===t&&(t={});var i=t.source?t.source:"flex";if(null!=t.viewportWidth&&(this.flexViewportWidth=t.viewportWidth),!this.flexViewportWidth)return[];var n=-1;t.resizingCols&&t.resizingCols.forEach((function(t){var e=o.displayedColumnsCenter.indexOf(t);n<e&&(n=e)}));var r=function(t){var e=o.displayedColumnsCenter.indexOf(t)>n;return t.getFlex()&&e},s=this.displayedColumnsCenter.filter((function(t){return!r(t)})),a=this.displayedColumnsCenter.filter((function(t){return r(t)})),l=[];if(!a.length)return[];var u,c=[];t:for(;;){var p=a.reduce((function(t,e){return t+e.getFlex()}),0);u=this.flexViewportWidth-this.getWidthOfColsInList(s);for(var d=0;d<a.length;d++){var h=a[d],f=u*h.getFlex()/p,g=0,v=h.getMinWidth(),y=h.getMaxWidth();if(e(v)&&f<v?g=v:e(y)&&f>y&&(g=y),g){h.setActualWidth(g,i),dt(a,h),l.push(h),s.push(h);continue t}c[d]=Math.round(f)}break}var m=u;return a.forEach((function(t,e){t.setActualWidth(Math.min(c[e],m),i),l.push(t),m-=c[e]})),t.skipSetLeft||this.setLeftValues(i),t.updateBodyWidths&&this.updateBodyWidths(),t.fireResizedEvent&&this.dispatchColumnResizedEvent(l,!0,i,a),this.flexColsCalculatedAtLestOnce||(this.gridOptionsService.isRowModelType("clientSide")&&this.rowModel.resetRowHeights(),this.flexColsCalculatedAtLestOnce=!0),a},n.prototype.sizeColumnsToFit=function(t,o,i,n){var r,s,a,l,u;void 0===o&&(o="sizeColumnsToFit");var c={};n&&(null===(r=null==n?void 0:n.columnLimits)||void 0===r||r.forEach((function(t){var e=t.key,o=Ee(t,["key"]);c["string"==typeof e?e:e.getColId()]=o})));var p=this.getAllDisplayedColumns(),d=t===this.getWidthOfColsInList(p);if(!(t<=0||!p.length||d)){var h=[],f=[];p.forEach((function(t){!0===t.getColDef().suppressSizeToFit?f.push(t):h.push(t)}));var g=h.slice(0),v=!1,y=function(t){dt(h,t),f.push(t)};for(h.forEach((function(t){return t.resetActualWidth(o)}));!v;){v=!0;var m=t-this.getWidthOfColsInList(f);if(m<=0)h.forEach((function(t){var e,i,r=null!==(i=null===(e=null==c?void 0:c[t.getId()])||void 0===e?void 0:e.minWidth)&&void 0!==i?i:null==n?void 0:n.defaultMinWidth;"number"!=typeof r?t.setMinimum(o):t.setActualWidth(r)}));else for(var C=m/this.getWidthOfColsInList(h),w=m,S=h.length-1;S>=0;S--){var E=h[S],R=null==c?void 0:c[E.getId()],O=null!==(s=null==R?void 0:R.minWidth)&&void 0!==s?s:null==n?void 0:n.defaultMinWidth,b=null!==(a=null==R?void 0:R.maxWidth)&&void 0!==a?a:null==n?void 0:n.defaultMaxWidth,T=null!==(l=E.getMinWidth())&&void 0!==l?l:0,P=null!==(u=E.getMaxWidth())&&void 0!==u?u:Number.MAX_VALUE,D="number"==typeof O&&O>T?O:E.getMinWidth(),_="number"==typeof b&&b<P?b:E.getMaxWidth(),A=Math.round(E.getActualWidth()*C);e(D)&&A<D?(A=D,y(E),v=!1):e(_)&&A>_?(A=_,y(E),v=!1):0===S&&(A=w),E.setActualWidth(A,o,!0),w-=A}}g.forEach((function(t){t.fireColumnWidthChangedEvent(o)})),this.setLeftValues(o),this.updateBodyWidths(),i||this.dispatchColumnResizedEvent(g,!0,o)}},n.prototype.buildDisplayedTrees=function(t){var e=[],o=[],i=[];t.forEach((function(t){switch(t.getPinned()){case"left":e.push(t);break;case"right":o.push(t);break;default:i.push(t)}}));var n=new se;this.displayedTreeLeft=this.displayedGroupCreator.createDisplayedGroups(e,this.gridBalancedTree,n,"left",this.displayedTreeLeft),this.displayedTreeRight=this.displayedGroupCreator.createDisplayedGroups(o,this.gridBalancedTree,n,"right",this.displayedTreeRight),this.displayedTreeCentre=this.displayedGroupCreator.createDisplayedGroups(i,this.gridBalancedTree,n,null,this.displayedTreeCentre),this.updateDisplayedMap()},n.prototype.updateDisplayedMap=function(){var t=this;this.displayedColumnsAndGroupsMap={};var e=function(e){t.displayedColumnsAndGroupsMap[e.getUniqueId()]=e};this.columnUtils.depthFirstAllColumnTreeSearch(this.displayedTreeCentre,e),this.columnUtils.depthFirstAllColumnTreeSearch(this.displayedTreeLeft,e),this.columnUtils.depthFirstAllColumnTreeSearch(this.displayedTreeRight,e)},n.prototype.isDisplayed=function(t){return this.displayedColumnsAndGroupsMap[t.getUniqueId()]===t},n.prototype.updateOpenClosedVisibilityInColumnGroups=function(){var t=this.getAllDisplayedTrees();this.columnUtils.depthFirstAllColumnTreeSearch(t,(function(t){t instanceof re&&t.calculateDisplayedColumns()}))},n.prototype.getGroupAutoColumns=function(){return this.groupAutoColumns},n.prototype.createGroupAutoColumnsIfNeeded=function(){if(!this.autoGroupsNeedBuilding)return!1;this.autoGroupsNeedBuilding=!1;var t=this.gridOptionsService.isGroupUseEntireRow(this.pivotMode),e=this.pivotMode?this.gridOptionsService.is("pivotSuppressAutoColumn"):this.isGroupSuppressAutoColumn();if((this.rowGroupColumns.length>0||this.usingTreeData)&&!e&&!t){var o=this.groupAutoColumns||[],i=this.autoGroupColService.createAutoGroupColumns(o,this.rowGroupColumns);if(!this.autoColsEqual(i,this.groupAutoColumns)||this.forceRecreateAutoGroups)return this.groupAutoColumns=i,!0}else this.groupAutoColumns=null;return!1},n.prototype.isGroupSuppressAutoColumn=function(){var t=this.gridOptionsService.get("groupDisplayType");if(!!t&&ie("custom",t))return!0;var e,o,i,n=this.gridOptionsService.get("treeDataDisplayType");return!!n&&(e="custom",(i=["auto","custom"]).indexOf(o=n)<0?(console.warn("AG Grid: '"+o+"' is not a valid treeDataDisplayType value - possible values are: '"+i.join("', '")+"'"),!1):o===e)},n.prototype.autoColsEqual=function(t,e){return ct(t,e,(function(t,e){return t.getColId()===e.getColId()}))},n.prototype.getWidthOfColsInList=function(t){return t.reduce((function(t,e){return t+e.getActualWidth()}),0)},n.prototype.getGridBalancedTree=function(){return this.gridBalancedTree},n.prototype.hasFloatingFilters=function(){return!!this.gridColumns&&this.gridColumns.some((function(t){return t.getColDef().floatingFilter}))},n.prototype.getFirstDisplayedColumn=function(){var t=this.gridOptionsService.is("enableRtl"),e=["getDisplayedLeftColumns","getDisplayedCenterColumns","getDisplayedRightColumns"];t&&e.reverse();for(var o=0;o<e.length;o++){var i=this[e[o]]();if(i.length)return t?ut(i):i[0]}return null},n.prototype.setColumnHeaderHeight=function(t,e){if(t.setAutoHeaderHeight(e)){var o={type:kt.EVENT_COLUMN_HEADER_HEIGHT_CHANGED,column:t,columns:[t],source:"autosizeColumnHeaderHeight"};this.eventService.dispatchEvent(o)}},n.prototype.getColumnGroupHeaderRowHeight=function(){return this.isPivotMode()?this.getPivotGroupHeaderHeight():this.getGroupHeaderHeight()},n.prototype.getColumnHeaderRowHeight=function(){var t=this.isPivotMode()?this.getPivotHeaderHeight():this.getHeaderHeight(),e=this.getAllDisplayedColumns().filter((function(t){return t.isAutoHeaderHeight()})).map((function(t){return t.getAutoHeaderHeight()||0}));return Math.max.apply(Math,be([t],e))},n.prototype.getHeaderHeight=function(){var t;return null!==(t=this.gridOptionsService.getNum("headerHeight"))&&void 0!==t?t:this.environment.getFromTheme(25,"headerHeight")},n.prototype.getFloatingFiltersHeight=function(){var t;return null!==(t=this.gridOptionsService.getNum("floatingFiltersHeight"))&&void 0!==t?t:this.getHeaderHeight()},n.prototype.getGroupHeaderHeight=function(){var t;return null!==(t=this.gridOptionsService.getNum("groupHeaderHeight"))&&void 0!==t?t:this.getHeaderHeight()},n.prototype.getPivotHeaderHeight=function(){var t;return null!==(t=this.gridOptionsService.getNum("pivotHeaderHeight"))&&void 0!==t?t:this.getHeaderHeight()},n.prototype.getPivotGroupHeaderHeight=function(){var t;return null!==(t=this.gridOptionsService.getNum("pivotGroupHeaderHeight"))&&void 0!==t?t:this.getGroupHeaderHeight()},we([U("expressionService")],n.prototype,"expressionService",void 0),we([U("columnFactory")],n.prototype,"columnFactory",void 0),we([U("displayedGroupCreator")],n.prototype,"displayedGroupCreator",void 0),we([U("ctrlsService")],n.prototype,"ctrlsService",void 0),we([U("autoWidthCalculator")],n.prototype,"autoWidthCalculator",void 0),we([U("columnUtils")],n.prototype,"columnUtils",void 0),we([U("columnAnimationService")],n.prototype,"columnAnimationService",void 0),we([U("autoGroupColService")],n.prototype,"autoGroupColService",void 0),we([z("aggFuncService")],n.prototype,"aggFuncService",void 0),we([z("valueCache")],n.prototype,"valueCache",void 0),we([z("animationFrameService")],n.prototype,"animationFrameService",void 0),we([U("rowModel")],n.prototype,"rowModel",void 0),we([U("sortController")],n.prototype,"sortController",void 0),we([U("columnDefFactory")],n.prototype,"columnDefFactory",void 0),we([B],n.prototype,"init",null),we([j],n.prototype,"destroyColumns",null),we([Se(0,Y("loggerFactory"))],n.prototype,"setBeans",null),n=we([W("columnModel")],n)}(Mt),Pe=function(){var t=function(e,o){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])})(e,o)};return function(e,o){function i(){this.constructor=e}t(e,o),e.prototype=null===o?Object.create(o):(i.prototype=o.prototype,new i)}}(),De=function(t,e,o,i){var n,r=arguments.length,s=r<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,o):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,o,i);else for(var a=t.length-1;a>=0;a--)(n=t[a])&&(s=(r<3?n(s):r>3?n(e,o,s):n(e,o))||s);return r>3&&s&&Object.defineProperty(e,o,s),s},_e=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Pe(e,t),e.prototype.calculateColMinWidth=function(t){return null!=t.minWidth?t.minWidth:this.environment.getMinColWidth()},e.prototype.calculateColMaxWidth=function(t){return null!=t.maxWidth?t.maxWidth:Number.MAX_SAFE_INTEGER},e.prototype.calculateColInitialWidth=function(t){var e,o=this.calculateColMinWidth(t),i=this.calculateColMaxWidth(t),n=r(t.width),s=r(t.initialWidth);return e=null!=n?n:null!=s?s:200,Math.max(Math.min(e,i),o)},e.prototype.getOriginalPathForColumn=function(t,e){var o=[],i=!1,n=function(e,r){for(var s=0;s<e.length;s++){if(i)return;var a=e[s];if(a instanceof st)n(a.getChildren(),r+1),o[r]=a;else a===t&&(i=!0)}};return n(e,0),i?o:null},e.prototype.depthFirstOriginalTreeSearch=function(t,e,o){var i=this;e&&e.forEach((function(e){e instanceof st&&i.depthFirstOriginalTreeSearch(e,e.getChildren(),o),o(e,t)}))},e.prototype.depthFirstAllColumnTreeSearch=function(t,e){var o=this;t&&t.forEach((function(t){t instanceof re&&o.depthFirstAllColumnTreeSearch(t.getChildren(),e),e(t)}))},e.prototype.depthFirstDisplayedColumnTreeSearch=function(t,e){var o=this;t&&t.forEach((function(t){t instanceof re&&o.depthFirstDisplayedColumnTreeSearch(t.getDisplayedChildren(),e),e(t)}))},e=De([W("columnUtils")],e)}(Mt),Ae=function(){var t=function(e,o){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])})(e,o)};return function(e,o){function i(){this.constructor=e}t(e,o),e.prototype=null===o?Object.create(o):(i.prototype=o.prototype,new i)}}(),Ne=function(t,e,o,i){var n,r=arguments.length,s=r<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,o):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,o,i);else for(var a=t.length-1;a>=0;a--)(n=t[a])&&(s=(r<3?n(s):r>3?n(e,o,s):n(e,o))||s);return r>3&&s&&Object.defineProperty(e,o,s),s},Fe=function(t){function o(){return null!==t&&t.apply(this,arguments)||this}return Ae(o,t),o.prototype.createDisplayedGroups=function(t,e,o,i,n){var r,s,a=this,l=[],u=this.mapOldGroupsById(n);return t.forEach((function(t){for(var n=a.getOriginalPathForColumn(e,t),c=[],p=!s,d=0;d<n.length;d++)if(p||n[d]!==s[d]){var h=a.createColumnGroup(n[d],o,u,i);c[d]=h,0==d?l.push(h):c[d-1].addChild(h)}else c[d]=r[d];0===c.length?l.push(t):ut(c).addChild(t);r=c,s=n})),this.setupParentsIntoColumns(l,null),l},o.prototype.createColumnGroup=function(t,o,i,n){var r=t.getGroupId(),s=o.getInstanceIdForKey(r),a=i[re.createUniqueId(r,s)];return a&&a.getProvidedColumnGroup()!==t&&(a=null),e(a)?a.reset():(a=new re(t,r,s,n),this.context.createBean(a)),a},o.prototype.mapOldGroupsById=function(t){var e={},o=function(t){t.forEach((function(t){if(t instanceof re){var i=t;e[t.getUniqueId()]=i,o(i.getChildren())}}))};return t&&o(t),e},o.prototype.setupParentsIntoColumns=function(t,e){var o=this;t.forEach((function(t){if(t.setParent(e),t instanceof re){var i=t;o.setupParentsIntoColumns(i.getChildren(),i)}}))},o.prototype.getOriginalPathForColumn=function(t,e){var o=[],i=!1,n=function(t,r){for(var s=0;s<t.length;s++){if(i)return;var a=t[s];a instanceof st?(n(a.getChildren(),r+1),o[r]=a):a===e&&(i=!0)}};return n(t,0),i?o:(console.warn("AG Grid: could not get path"),null)},o=Ne([W("displayedGroupCreator")],o)}(Mt),Le=function(){var t=function(e,o){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])})(e,o)};return function(e,o){function i(){this.constructor=e}t(e,o),e.prototype=null===o?Object.create(o):(i.prototype=o.prototype,new i)}}(),Me=function(t,e,o,i){var n,r=arguments.length,s=r<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,o):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,o,i);else for(var a=t.length-1;a>=0;a--)(n=t[a])&&(s=(r<3?n(s):r>3?n(e,o,s):n(e,o))||s);return r>3&&s&&Object.defineProperty(e,o,s),s},Ie=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.componentsMappedByName={},e}return Le(e,t),e.prototype.setupComponents=function(t){var e=this;t&&t.forEach((function(t){return e.addComponent(t)}))},e.prototype.addComponent=function(t){var e=t.componentName.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase().toUpperCase();this.componentsMappedByName[e]=t.componentClass},e.prototype.getComponentClass=function(t){return this.componentsMappedByName[t]},e=Me([W("agStackComponentsRegistry")],e)}(Mt);
101/**
102 * @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue
103 * @version v29.2.0
104 * @link https://www.ag-grid.com/
105 * @license MIT
106 */
107/**
108 * @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue
109 * @version v29.2.0
110 * @link https://www.ag-grid.com/
111 * @license MIT
112 */
113function Ge(t,e,o){null==o||""==o?He(t,e):xe(t,e,o)}function xe(t,e,o){t.setAttribute(Ve(e),o.toString())}function He(t,e){t.removeAttribute(Ve(e))}function Ve(t){return"aria-"+t}function ke(t,e){e?t.setAttribute("role",e):t.removeAttribute("role")}function Be(t){return"asc"===t?"ascending":"desc"===t?"descending":"mixed"===t?"other":"none"}function je(t){return parseInt(t.getAttribute("aria-level"),10)}function We(t){return parseInt(t.getAttribute("aria-posinset"),10)}function Ue(t,e){Ge(t,"label",e)}function ze(t,e){Ge(t,"labelledby",e)}function Ke(t,e){Ge(t,"description",e)}function Ye(t,e){Ge(t,"describedby",e)}function qe(t,e){Ge(t,"live",e)}function Qe(t,e){Ge(t,"level",e)}function Xe(t,e){Ge(t,"disabled",e)}function Je(t,e){Ge(t,"hidden",e)}function Ze(t,e){xe(t,"expanded",e)}function $e(t){He(t,"expanded")}function to(t,e){xe(t,"setsize",e)}function eo(t,e){xe(t,"posinset",e)}function oo(t,e){xe(t,"multiselectable",e)}function io(t,e){xe(t,"rowcount",e)}function no(t,e){xe(t,"rowindex",e)}function ro(t,e){xe(t,"colcount",e)}function so(t,e){xe(t,"colindex",e)}function ao(t,e){xe(t,"colspan",e)}function lo(t,e){xe(t,"sort",e)}function uo(t){He(t,"sort")}function co(t,e){Ge(t,"selected",e)}function po(t,e){xe(t,"checked",void 0===e?"mixed":e)}var ho,fo,go,vo,yo,mo,Co,wo,So=Object.freeze({__proto__:null,setAriaRole:ke,getAriaSortState:Be,getAriaLevel:je,getAriaPosInSet:We,getAriaDescribedBy:function(t){return t.getAttribute("aria-describedby")||""},setAriaLabel:Ue,setAriaLabelledBy:ze,setAriaDescription:Ke,setAriaDescribedBy:Ye,setAriaLive:qe,setAriaLevel:Qe,setAriaDisabled:Xe,setAriaHidden:Je,setAriaExpanded:Ze,removeAriaExpanded:$e,setAriaSetSize:to,setAriaPosInSet:eo,setAriaMultiSelectable:oo,setAriaRowCount:io,setAriaRowIndex:no,setAriaColCount:ro,setAriaColIndex:so,setAriaColSpan:ao,setAriaSort:lo,removeAriaSort:uo,setAriaSelected:co,setAriaChecked:po});
114/**
115 * @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue
116 * @version v29.2.0
117 * @link https://www.ag-grid.com/
118 * @license MIT
119 */function Eo(){return void 0===ho&&(ho=/^((?!chrome|android).)*safari/i.test(navigator.userAgent)),ho}function Ro(){if(void 0===fo)if(Eo()){var t=navigator.userAgent.match(/version\/(\d+)/i);t&&(fo=null!=t[1]?parseFloat(t[1]):0)}else fo=0;return fo}function Oo(){if(void 0===go){var t=window;go=!!t.chrome&&(!!t.chrome.webstore||!!t.chrome.runtime)||/Chrome/.test(navigator.userAgent)&&/Google Inc/.test(navigator.vendor)}return go}function bo(){return void 0===vo&&(vo=/(firefox)/i.test(navigator.userAgent)),vo}function To(){return void 0===yo&&(yo=/(Mac|iPhone|iPod|iPad)/i.test(navigator.platform)),yo}function Po(){return void 0===mo&&(mo=/iPad|iPhone|iPod/.test(navigator.platform)||"MacIntel"===navigator.platform&&navigator.maxTouchPoints>1),mo}function Do(){return!Eo()||Ro()>=15}function _o(t){if(!t)return null;var e=t.tabIndex,o=t.getAttribute("tabIndex");return-1!==e||null!==o&&(""!==o||bo())?e.toString():null}function Ao(){if(!document.body)return-1;var t=1e6,e=navigator.userAgent.toLowerCase().match(/firefox/)?6e6:1e9,o=document.createElement("div");for(document.body.appendChild(o);;){var i=2*t;if(o.style.height=i+"px",i>e||o.clientHeight!==i)break;t=i}return document.body.removeChild(o),t}function No(){var t,e,o;return null!==(e=null===(t=document.body)||void 0===t?void 0:t.clientWidth)&&void 0!==e?e:window.innerHeight||(null===(o=document.documentElement)||void 0===o?void 0:o.clientWidth)||-1}function Fo(){var t,e,o;return null!==(e=null===(t=document.body)||void 0===t?void 0:t.clientHeight)&&void 0!==e?e:window.innerHeight||(null===(o=document.documentElement)||void 0===o?void 0:o.clientHeight)||-1}function Lo(){return null==wo&&Mo(),wo}function Mo(){var t=document.body,e=document.createElement("div");e.style.width=e.style.height="100px",e.style.opacity="0",e.style.overflow="scroll",e.style.msOverflowStyle="scrollbar",e.style.position="absolute",t.appendChild(e);var o=e.offsetWidth-e.clientWidth;0===o&&0===e.clientWidth&&(o=null),e.parentNode&&e.parentNode.removeChild(e),null!=o&&(wo=o,Co=0===o)}function Io(){return null==Co&&Mo(),Co}var Go=Object.freeze({__proto__:null,isBrowserSafari:Eo,getSafariVersion:Ro,isBrowserChrome:Oo,isBrowserFirefox:bo,isMacOsUserAgent:To,isIOSUserAgent:Po,browserSupportsPreventScroll:Do,getTabIndex:_o,getMaxDivHeight:Ao,getBodyWidth:No,getBodyHeight:Fo,getScrollbarWidth:Lo,isInvisibleScrollbar:Io});
120/**
121 * @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue
122 * @version v29.2.0
123 * @link https://www.ag-grid.com/
124 * @license MIT
125 */function xo(t,e){return t.toString().padStart(e,"0")}function Ho(t,e){for(var o=[],i=t;i<=e;i++)o.push(i);return o}function Vo(t,e,o){return"number"!=typeof t?"":t.toString().replace(".",o).replace(/(\d)(?=(\d{3})+(?!\d))/g,"$1"+e)}var ko=Object.freeze({__proto__:null,padStartWidthZeros:xo,createArrayOfNumbers:Ho,cleanNumber:function(t){return"string"==typeof t&&(t=parseInt(t,10)),"number"==typeof t?Math.floor(t):null},decToHex:function(t,e){for(var o="",i=0;i<e;i++)o+=String.fromCharCode(255&t),t>>>=8;return o},formatNumberTwoDecimalPlacesAndCommas:function(t,e,o){return"number"!=typeof t?"":Vo(Math.round(100*t)/100,e,o)},formatNumberCommas:Vo,sum:function(t){return null==t?null:t.reduce((function(t,e){return t+e}),0)},zeroOrGreater:function(t,e){return t>=0?t:e},oneOrGreater:function(t,e){var o=parseInt(t,10);return!isNaN(o)&&isFinite(o)&&o>0?o:e}}),Bo=function(t,e){var o="function"==typeof Symbol&&t[Symbol.iterator];if(!o)return t;var i,n,r=o.call(t),s=[];try{for(;(void 0===e||e-- >0)&&!(i=r.next()).done;)s.push(i.value)}catch(t){n={error:t}}finally{try{i&&!i.done&&(o=r.return)&&o.call(r)}finally{if(n)throw n.error}}return s};
126/**
127 * @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue
128 * @version v29.2.0
129 * @link https://www.ag-grid.com/
130 * @license MIT
131 */function jo(t,e,o){if(void 0===e&&(e=!0),void 0===o&&(o="-"),!t)return null;var i=[t.getFullYear(),t.getMonth()+1,t.getDate()].map((function(t){return xo(t,2)})).join(o);return e&&(i+=" "+[t.getHours(),t.getMinutes(),t.getSeconds()].map((function(t){return xo(t,2)})).join(":")),i}var Wo=function(t){if(t>3&&t<21)return"th";switch(t%10){case 1:return"st";case 2:return"nd";case 3:return"rd"}return"th"};function Uo(t,e){void 0===e&&(e="YYYY-MM-DD");var o=xo(t.getFullYear(),4),i=["January","February","March","April","May","June","July","August","September","October","November","December"],n=["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],r={YYYY:function(){return o.slice(o.length-4,o.length)},YY:function(){return o.slice(o.length-2,o.length)},Y:function(){return""+t.getFullYear()},MMMM:function(){return i[t.getMonth()]},MMM:function(){return i[t.getMonth()].slice(0,3)},MM:function(){return xo(t.getMonth()+1,2)},Mo:function(){return""+(t.getMonth()+1)+Wo(t.getMonth()+1)},M:function(){return""+(t.getMonth()+1)},Do:function(){return""+t.getDate()+Wo(t.getDate())},DD:function(){return xo(t.getDate(),2)},D:function(){return""+t.getDate()},dddd:function(){return n[t.getDay()]},ddd:function(){return n[t.getDay()].slice(0,3)},dd:function(){return n[t.getDay()].slice(0,2)},do:function(){return""+t.getDay()+Wo(t.getDay())},d:function(){return""+t.getDay()}},s=new RegExp(Object.keys(r).join("|"),"g");return e.replace(s,(function(t){return t in r?r[t]():t}))}function zo(t){if(!t)return null;var e=Bo(t.split(" "),2),o=e[0],i=e[1];if(!o)return null;var n=o.split("-").map((function(t){return parseInt(t,10)}));if(3!==n.filter((function(t){return!isNaN(t)})).length)return null;var r=Bo(n,3),s=r[0],a=r[1],l=r[2],u=new Date(s,a-1,l);if(u.getFullYear()!==s||u.getMonth()!==a-1||u.getDate()!==l)return null;if(!i||"00:00:00"===i)return u;var c=Bo(i.split(":").map((function(t){return parseInt(t,10)})),3),p=c[0],d=c[1],h=c[2];return p>=0&&p<24&&u.setHours(p),d>=0&&d<60&&u.setMinutes(d),h>=0&&h<60&&u.setSeconds(h),u}var Ko,Yo=Object.freeze({__proto__:null,serialiseDate:jo,dateToFormattedString:Uo,parseDateTimeFromString:zo}),qo=function(t){var e="function"==typeof Symbol&&Symbol.iterator,o=e&&t[e],i=0;if(o)return o.call(t);if(t&&"number"==typeof t.length)return{next:function(){return t&&i>=t.length&&(t=void 0),{value:t&&t[i++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")},Qo=function(t,e){var o="function"==typeof Symbol&&t[Symbol.iterator];if(!o)return t;var i,n,r=o.call(t),s=[];try{for(;(void 0===e||e-- >0)&&!(i=r.next()).done;)s.push(i.value)}catch(t){n={error:t}}finally{try{i&&!i.done&&(o=r.return)&&o.call(r)}finally{if(n)throw n.error}}return s};
132/**
133 * @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue
134 * @version v29.2.0
135 * @link https://www.ag-grid.com/
136 * @license MIT
137 */var Xo=".ag-hidden, .ag-hidden *, [disabled], .ag-disabled, .ag-disabled *";function Jo(t){var e=Element.prototype.matches||Element.prototype.msMatchesSelector,o=e.call(t,"input, select, button, textarea"),i=e.call(t,Xo),n=di(t);return o&&!i&&n}function Zo(t,e,o){void 0===o&&(o={});var i=o.skipAriaHidden;t.classList.toggle("ag-hidden",!e),i||Je(t,!e)}function $o(t,e,o){void 0===o&&(o={});var i=o.skipAriaHidden;t.classList.toggle("ag-invisible",!e),i||Je(t,!e)}function ti(t,e){var o=e?function(t){return t.setAttribute("disabled","")}:function(t){return t.removeAttribute("disabled")};o(t),Ai(t.querySelectorAll("input"),(function(t){return o(t)}))}function ei(t,e,o){for(var i=0;t;){if(t.classList.contains(e))return!0;if(t=t.parentElement,"number"==typeof o){if(++i>o)break}else if(t===o)break}return!1}function oi(t){var e=window.getComputedStyle(t),o=e.height,i=e.width,n=e.borderTopWidth,r=e.borderRightWidth,s=e.borderBottomWidth,a=e.borderLeftWidth,l=e.paddingTop,u=e.paddingRight,c=e.paddingBottom,p=e.paddingLeft,d=e.marginTop,h=e.marginRight,f=e.marginBottom,g=e.marginLeft,v=e.boxSizing;return{height:parseFloat(o),width:parseFloat(i),borderTopWidth:parseFloat(n),borderRightWidth:parseFloat(r),borderBottomWidth:parseFloat(s),borderLeftWidth:parseFloat(a),paddingTop:parseFloat(l),paddingRight:parseFloat(u),paddingBottom:parseFloat(c),paddingLeft:parseFloat(p),marginTop:parseFloat(d),marginRight:parseFloat(h),marginBottom:parseFloat(f),marginLeft:parseFloat(g),boxSizing:v}}function ii(t){var e=oi(t);return"border-box"===e.boxSizing?e.height-e.paddingTop-e.paddingBottom:e.height}function ni(t){var e=oi(t);return"border-box"===e.boxSizing?e.width-e.paddingLeft-e.paddingRight:e.width}function ri(t){var e=oi(t),o=e.marginBottom+e.marginTop;return Math.ceil(t.offsetHeight+o)}function si(t){var e=oi(t),o=e.marginLeft+e.marginRight;return Math.ceil(t.offsetWidth+o)}function ai(){if("boolean"==typeof Ko)return Ko;var t=document.createElement("div");return t.style.direction="rtl",t.style.width="1px",t.style.height="1px",t.style.position="fixed",t.style.top="0px",t.style.overflow="hidden",t.dir="rtl",t.innerHTML='<div style="width: 2px">\n <span style="display: inline-block; width: 1px"></span>\n <span style="display: inline-block; width: 1px"></span>\n </div>',document.body.appendChild(t),t.scrollLeft=1,Ko=0===Math.floor(t.scrollLeft),document.body.removeChild(t),Ko}function li(t,e){var o=t.scrollLeft;return e&&(o=Math.abs(o),Oo()&&!ai()&&(o=t.scrollWidth-t.clientWidth-o)),o}function ui(t,e,o){o&&(ai()?e*=-1:(Eo()||Oo())&&(e=t.scrollWidth-t.clientWidth-e)),t.scrollLeft=e}function ci(t){for(;t&&t.firstChild;)t.removeChild(t.firstChild)}function pi(t){t&&t.parentNode&&t.parentNode.removeChild(t)}function di(t){return null!==t.offsetParent}function hi(t){var e=document.createElement("div");return e.innerHTML=(t||"").trim(),e.firstChild}function fi(t){return t&&t.clientHeight?t.clientHeight:0}function gi(t){return t&&t.clientWidth?t.clientWidth:0}function vi(t,e,o){if(!o||o.nextSibling!==e){var i=document.activeElement,n=e.contains(i);o?o.nextSibling?t.insertBefore(e,o.nextSibling):t.appendChild(e):t.firstChild&&t.firstChild!==e&&t.insertAdjacentElement("afterbegin",e),n&&i&&Do()&&i.focus({preventScroll:!0})}}function yi(t,e){for(var o=0;o<e.length;o++){var i=e[o],n=t.children[o];n!==i&&t.insertBefore(i,n)}}function mi(t,e,o){o?o.insertAdjacentElement("afterend",e):t.firstChild?t.insertAdjacentElement("afterbegin",e):t.appendChild(e)}function Ci(t,e){var o,i;if(e)try{for(var n=qo(Object.entries(e)),r=n.next();!r.done;r=n.next()){var s=Qo(r.value,2),a=s[0],l=s[1];if(a&&a.length&&null!=l){var u=a.replace(/[A-Z]/g,(function(t){return"-"+t.toLocaleLowerCase()})),c=l.toString(),p=c.replace(/\s*!important/g,"").length!=c.length?"important":void 0;t.style.setProperty(u,l,p)}}}catch(t){o={error:t}}finally{try{r&&!r.done&&(i=n.return)&&i.call(n)}finally{if(o)throw o.error}}}function wi(t){return t.clientWidth<t.scrollWidth}function Si(t){return t.clientHeight<t.scrollHeight}function Ei(t,e){"flex"===e?(t.style.removeProperty("width"),t.style.removeProperty("minWidth"),t.style.removeProperty("maxWidth"),t.style.flex="1 1 auto"):Ri(t,e)}function Ri(t,e){e=bi(e),t.style.width=e.toString(),t.style.maxWidth=e.toString(),t.style.minWidth=e.toString()}function Oi(t,e){e=bi(e),t.style.height=e.toString(),t.style.maxHeight=e.toString(),t.style.minHeight=e.toString()}function bi(t){return"number"==typeof t?t+"px":t}function Ti(t){return t instanceof Node||t instanceof HTMLElement}function Pi(t){if(null==t)return[];var e=[];return Ai(t,(function(t){return e.push(t)})),e}function Di(t,e){if(t)for(var o=0;o<t.length;o++){var i=t[o];e(i.name,i.value)}}function _i(t,e,o){null==o?t.removeAttribute(e):t.setAttribute(e,o.toString())}function Ai(t,e){if(null!=t)for(var o=0;o<t.length;o++)e(t[o])}var Ni=Object.freeze({__proto__:null,radioCssClass:function(t,e,o){for(var i=t.parentElement,n=i&&i.firstChild;n;)e&&n.classList.toggle(e,n===t),o&&n.classList.toggle(o,n!==t),n=n.nextSibling},FOCUSABLE_SELECTOR:"[tabindex], input, select, button, textarea, [href]",FOCUSABLE_EXCLUDE:Xo,isFocusableFormField:Jo,setDisplayed:Zo,setVisible:$o,setDisabled:ti,isElementChildOfClass:ei,getElementSize:oi,getInnerHeight:ii,getInnerWidth:ni,getAbsoluteHeight:ri,getAbsoluteWidth:si,isRtlNegativeScroll:ai,getScrollLeft:li,setScrollLeft:ui,clearElement:ci,removeElement:function(t,e){pi(t.querySelector(e))},removeFromParent:pi,isVisible:di,loadTemplate:hi,appendHtml:function(t,e){t.lastChild?t.insertAdjacentHTML("afterbegin",e):t.innerHTML=e},getElementAttribute:function(t,e){return t.attributes&&t.attributes[e]?t.attributes[e].value:null},offsetHeight:fi,offsetWidth:gi,ensureDomOrder:vi,setDomChildOrder:yi,insertWithDomOrder:mi,prependDC:function(t,o){e(t.firstChild)?t.insertBefore(o,t.firstChild):t.appendChild(o)},addStylesToElement:Ci,isHorizontalScrollShowing:wi,isVerticalScrollShowing:Si,setElementWidth:Ei,setFixedWidth:Ri,setElementHeight:function(t,e){"flex"===e?(t.style.removeProperty("height"),t.style.removeProperty("minHeight"),t.style.removeProperty("maxHeight"),t.style.flex="1 1 auto"):Oi(t,e)},setFixedHeight:Oi,formatSize:bi,isNodeOrElement:Ti,copyNodeList:Pi,iterateNamedNodeMap:Di,addOrRemoveAttribute:_i,nodeListForEach:Ai}),Fi={columnGroupOpened:"expanded",columnGroupClosed:"contracted",columnSelectClosed:"tree-closed",columnSelectOpen:"tree-open",columnSelectIndeterminate:"tree-indeterminate",columnMovePin:"pin",columnMoveHide:"eye-slash",columnMoveMove:"arrows",columnMoveLeft:"left",columnMoveRight:"right",columnMoveGroup:"group",columnMoveValue:"aggregation",columnMovePivot:"pivot",dropNotAllowed:"not-allowed",groupContracted:"tree-closed",groupExpanded:"tree-open",setFilterGroupClosed:"tree-closed",setFilterGroupOpen:"tree-open",setFilterGroupIndeterminate:"tree-indeterminate",chart:"chart",close:"cross",cancel:"cancel",check:"tick",first:"first",previous:"previous",next:"next",last:"last",linked:"linked",unlinked:"unlinked",colorPicker:"color-picker",groupLoading:"loading",menu:"menu",filter:"filter",columns:"columns",maximize:"maximize",minimize:"minimize",menuPin:"pin",menuValue:"aggregation",menuAddRowGroup:"group",menuRemoveRowGroup:"group",clipboardCopy:"copy",clipboardCut:"cut",clipboardPaste:"paste",pivotPanel:"pivot",rowGroupPanel:"group",valuePanel:"aggregation",columnDrag:"grip",rowDrag:"grip",save:"save",csvExport:"csv",excelExport:"excel",smallDown:"small-down",smallLeft:"small-left",smallRight:"small-right",smallUp:"small-up",sortAscending:"asc",sortDescending:"desc",sortUnSort:"none"};
138/**
139 * @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue
140 * @version v29.2.0
141 * @link https://www.ag-grid.com/
142 * @license MIT
143 */function Li(t,e,o){var i=Mi(t,e,o);if(i&&i.className.indexOf("ag-icon")>-1)return i;var n=document.createElement("span");return n.appendChild(i),n}function Mi(t,e,o,i){var n=null,r=o&&o.getColDef().icons;if(r&&(n=r[t]),e&&!n){var s=e.get("icons");s&&(n=s[t])}if(!n){var a=document.createElement("span"),l=Fi[t];return l||(i?l=t:(console.warn("AG Grid: Did not find icon "+t),l="")),a.setAttribute("class","ag-icon ag-icon-"+l),a.setAttribute("unselectable","on"),ke(a,"presentation"),a}var u=void 0;if("function"==typeof n)u=n();else{if("string"!=typeof n)throw new Error("icon from grid options needs to be a string or a function");u=n}return"string"==typeof u?hi(u):Ti(u)?u:void console.warn("AG Grid: iconRenderer should return back a string or a dom object")}var Ii=Object.freeze({__proto__:null,iconNameClassMap:Fi,createIcon:Li,createIconNoSpan:Mi}),Gi=function(){function t(){}return t.BACKSPACE="Backspace",t.TAB="Tab",t.ENTER="Enter",t.ESCAPE="Escape",t.SPACE=" ",t.LEFT="ArrowLeft",t.UP="ArrowUp",t.RIGHT="ArrowRight",t.DOWN="ArrowDown",t.DELETE="Delete",t.F2="F2",t.PAGE_UP="PageUp",t.PAGE_DOWN="PageDown",t.PAGE_HOME="Home",t.PAGE_END="End",t.A="KeyA",t.C="KeyC",t.D="KeyD",t.V="KeyV",t.X="KeyX",t.Y="KeyY",t.Z="KeyZ",t}();
144/**
145 * @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue
146 * @version v29.2.0
147 * @link https://www.ag-grid.com/
148 * @license MIT
149 */function xi(t){return!(t.altKey||t.ctrlKey||t.metaKey)&&1===t.key.length}function Hi(t,e,o,i,n){var r=i?i.getColDef().suppressKeyboardEvent:void 0;if(!r)return!1;var s={event:e,editing:n,column:i,api:t.api,node:o,data:o.data,colDef:i.getColDef(),context:t.context,columnApi:t.columnApi};if(r&&r(s))return!0;return!1}function Vi(t,o,i,n){var r=n.getDefinition(),s=r&&r.suppressHeaderKeyboardEvent;return!!e(s)&&!!s({api:t.api,columnApi:t.columnApi,context:t.context,colDef:r,column:n,headerRowIndex:i,event:o})}function ki(t){var e;switch(t.keyCode){case 65:e=Gi.A;break;case 67:e=Gi.C;break;case 86:e=Gi.V;break;case 68:e=Gi.D;break;case 90:e=Gi.Z;break;case 89:e=Gi.Y;break;default:e=t.code}return e}function Bi(t,e){return void 0===e&&(e=!1),t===Gi.DELETE||!e&&t===Gi.BACKSPACE&&To()}var ji=Object.freeze({__proto__:null,isEventFromPrintableCharacter:xi,isUserSuppressingKeyboardEvent:Hi,isUserSuppressingHeaderKeyboardEvent:Vi,normaliseQwertyAzerty:ki,isDeleteKey:Bi});
150/**
151 * @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue
152 * @version v29.2.0
153 * @link https://www.ag-grid.com/
154 * @license MIT
155 */function Wi(t,e,o){if(0===o)return!1;var i=Math.abs(t.clientX-e.clientX),n=Math.abs(t.clientY-e.clientY);return Math.max(i,n)<=o}var Ui=Object.freeze({__proto__:null,areEventsNear:Wi});
156/**
157 * @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue
158 * @version v29.2.0
159 * @link https://www.ag-grid.com/
160 * @license MIT
161 */var zi=Object.freeze({__proto__:null,sortRowNodesByOrder:function(t,e){if(!t)return!1;for(var o=function(t,o){var i=e[t.id],n=e[o.id],r=void 0!==i,s=void 0!==n;return r&&s?i-n:!r&&!s?t.__objectId-o.__objectId:r?1:-1},i=!1,n=0;n<t.length-1;n++)if(o(t[n],t[n+1])>0){i=!0;break}return!!i&&(t.sort(o),!0)},traverseNodesWithKey:function(t,e){var o=[];!function t(i){if(!i)return;i.forEach((function(i){if(i.group||i.hasChildren()){o.push(i.key);var n=o.join("|");e(i,n),t(i.childrenAfterGroup),o.pop()}}))}(t)}});
162/**
163 * @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue
164 * @version v29.2.0
165 * @link https://www.ag-grid.com/
166 * @license MIT
167 */function Ki(t){var e=new Set;return t.forEach((function(t){return e.add(t)})),e}var Yi,qi=Object.freeze({__proto__:null,convertToSet:Ki}),Qi=function(){return(Qi=Object.assign||function(t){for(var e,o=1,i=arguments.length;o<i;o++)for(var n in e=arguments[o])Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t}).apply(this,arguments)},Xi=Qi(Qi(Qi(Qi(Qi(Qi(Qi(Qi(Qi(Qi(Qi(Qi(Qi(Qi(Qi(Qi(Qi(Qi({},So),Ct),Go),Yo),Ni),Ft),G),Jt),l),Ii),ji),me),Ui),ko),E),zi),qi),ve),Ji=function(){function t(t,e){void 0===t&&(t=0),void 0===e&&(e=1),this.nextValue=t,this.step=e}return t.prototype.next=function(){var t=this.nextValue;return this.nextValue+=this.step,t},t.prototype.peek=function(){return this.nextValue},t.prototype.skip=function(t){this.nextValue+=t},t}();
168/**
169 * @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue
170 * @version v29.2.0
171 * @link https://www.ag-grid.com/
172 * @license MIT
173 */!function(t){t[t.IN_PROGRESS=0]="IN_PROGRESS",t[t.RESOLVED=1]="RESOLVED"}(Yi||(Yi={}));var Zi,$i=function(){function t(t){var e=this;this.status=Yi.IN_PROGRESS,this.resolution=null,this.waiters=[],t((function(t){return e.onDone(t)}),(function(t){return e.onReject(t)}))}return t.all=function(e){return new t((function(t){var o=e.length,i=new Array(o);e.forEach((function(e,n){e.then((function(e){i[n]=e,0===--o&&t(i)}))}))}))},t.resolve=function(e){return void 0===e&&(e=null),new t((function(t){return t(e)}))},t.prototype.then=function(e){var o=this;return new t((function(t){o.status===Yi.RESOLVED?t(e(o.resolution)):o.waiters.push((function(o){return t(e(o))}))}))},t.prototype.resolveNow=function(t,e){return this.status===Yi.RESOLVED?e(this.resolution):t},t.prototype.onDone=function(t){this.status=Yi.RESOLVED,this.resolution=t,this.waiters.forEach((function(e){return e(t)}))},t.prototype.onReject=function(t){console.warn("TBI")},t}(),tn=function(){function t(){this.timestamp=(new Date).getTime()}return t.prototype.print=function(t){var e=(new Date).getTime()-this.timestamp;console.info(t+" = "+e),this.timestamp=(new Date).getTime()},t}(),en=function(){var t=function(e,o){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])})(e,o)};return function(e,o){function i(){this.constructor=e}t(e,o),e.prototype=null===o?Object.create(o):(i.prototype=o.prototype,new i)}}(),on=function(){return(on=Object.assign||function(t){for(var e,o=1,i=arguments.length;o<i;o++)for(var n in e=arguments[o])Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t}).apply(this,arguments)},nn=function(t,e,o,i){var n,r=arguments.length,s=r<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,o):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,o,i);else for(var a=t.length-1;a>=0;a--)(n=t[a])&&(s=(r<3?n(s):r>3?n(e,o,s):n(e,o))||s);return r>3&&s&&Object.defineProperty(e,o,s),s};
174/**
175 * @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue
176 * @version v29.2.0
177 * @link https://www.ag-grid.com/
178 * @license MIT
179 */!function(t){t[t.NOTHING=0]="NOTHING",t[t.WAITING_TO_SHOW=1]="WAITING_TO_SHOW",t[t.SHOWING=2]="SHOWING"}(Zi||(Zi={}));var rn=function(t){function o(e){var o=t.call(this)||this;return o.DEFAULT_SHOW_TOOLTIP_DELAY=2e3,o.DEFAULT_HIDE_TOOLTIP_DELAY=1e4,o.SHOW_QUICK_TOOLTIP_DIFF=1e3,o.FADE_OUT_TOOLTIP_TIMEOUT=1e3,o.state=Zi.NOTHING,o.tooltipInstanceCount=0,o.tooltipMouseTrack=!1,o.parentComp=e,o}return en(o,t),o.prototype.postConstruct=function(){this.tooltipShowDelay=this.getTooltipDelay("show")||this.DEFAULT_SHOW_TOOLTIP_DELAY,this.tooltipHideDelay=this.getTooltipDelay("hide")||this.DEFAULT_HIDE_TOOLTIP_DELAY,this.tooltipMouseTrack=this.gridOptionsService.is("tooltipMouseTrack");var t=this.parentComp.getGui();this.addManagedListener(t,"mouseenter",this.onMouseEnter.bind(this)),this.addManagedListener(t,"mouseleave",this.onMouseLeave.bind(this)),this.addManagedListener(t,"mousemove",this.onMouseMove.bind(this)),this.addManagedListener(t,"mousedown",this.onMouseDown.bind(this)),this.addManagedListener(t,"keydown",this.onKeyDown.bind(this))},o.prototype.destroy=function(){this.setToDoNothing(),t.prototype.destroy.call(this)},o.prototype.onMouseEnter=function(t){if(!Po()&&this.state==Zi.NOTHING){var e=this.isLastTooltipHiddenRecently()?200:this.tooltipShowDelay;this.showTooltipTimeoutId=window.setTimeout(this.showTooltip.bind(this),e),this.lastMouseEvent=t,this.state=Zi.WAITING_TO_SHOW}},o.prototype.onMouseLeave=function(){this.setToDoNothing()},o.prototype.onKeyDown=function(){this.setToDoNothing()},o.prototype.setToDoNothing=function(){this.state===Zi.SHOWING&&this.hideTooltip(),this.clearTimeouts(),this.state=Zi.NOTHING},o.prototype.onMouseMove=function(t){this.lastMouseEvent=t,this.tooltipMouseTrack&&this.state===Zi.SHOWING&&this.tooltipComp&&this.positionTooltipUnderLastMouseEvent()},o.prototype.onMouseDown=function(){this.setToDoNothing()},o.prototype.getTooltipDelay=function(t){var o=this.gridOptionsService.getNum("tooltipShowDelay"),i=this.gridOptionsService.getNum("tooltipHideDelay"),n="show"===t?o:i,r=he(t);return e(n)?(n<0&&O((function(){return console.warn("AG Grid: tooltip"+r+"Delay should not be lower than 0")}),"tooltip"+r+"DelayWarn"),Math.max(200,n)):null},o.prototype.hideTooltip=function(){this.tooltipComp&&(this.destroyTooltipComp(),o.lastTooltipHideTime=(new Date).getTime()),this.state=Zi.NOTHING},o.prototype.destroyTooltipComp=function(){var t=this;this.tooltipComp.getGui().classList.add("ag-tooltip-hiding");var e=this.tooltipPopupDestroyFunc,o=this.tooltipComp;window.setTimeout((function(){e(),t.getContext().destroyBean(o)}),this.FADE_OUT_TOOLTIP_TIMEOUT),this.tooltipPopupDestroyFunc=void 0,this.tooltipComp=void 0},o.prototype.isLastTooltipHiddenRecently=function(){return(new Date).getTime()-o.lastTooltipHideTime<this.SHOW_QUICK_TOOLTIP_DIFF},o.prototype.showTooltip=function(){var t=on({},this.parentComp.getTooltipParams());if(e(t.value)){this.state=Zi.SHOWING,this.tooltipInstanceCount++;var o=this.newTooltipComponentCallback.bind(this,this.tooltipInstanceCount);this.userComponentFactory.getTooltipCompDetails(t).newAgStackInstance().then(o)}else this.setToDoNothing()},o.prototype.newTooltipComponentCallback=function(t,e){if(this.state!==Zi.SHOWING||this.tooltipInstanceCount!==t)this.getContext().destroyBean(e);else{var o=e.getGui();this.tooltipComp=e,o.classList.contains("ag-tooltip")||o.classList.add("ag-tooltip-custom");var i=this.localeService.getLocaleTextFunc(),n=this.popupService.addPopup({eChild:o,ariaLabel:i("ariaLabelTooltip","Tooltip")});n&&(this.tooltipPopupDestroyFunc=n.hideFunc),this.positionTooltipUnderLastMouseEvent(),this.hideTooltipTimeoutId=window.setTimeout(this.hideTooltip.bind(this),this.tooltipHideDelay)}},o.prototype.positionTooltipUnderLastMouseEvent=function(){this.popupService.positionPopupUnderMouseEvent({type:"tooltip",mouseEvent:this.lastMouseEvent,ePopup:this.tooltipComp.getGui(),nudgeY:18,skipObserver:this.tooltipMouseTrack})},o.prototype.clearTimeouts=function(){this.showTooltipTimeoutId&&(window.clearTimeout(this.showTooltipTimeoutId),this.showTooltipTimeoutId=void 0),this.hideTooltipTimeoutId&&(window.clearTimeout(this.hideTooltipTimeoutId),this.hideTooltipTimeoutId=void 0)},nn([U("popupService")],o.prototype,"popupService",void 0),nn([U("userComponentFactory")],o.prototype,"userComponentFactory",void 0),nn([U("columnApi")],o.prototype,"columnApi",void 0),nn([U("gridApi")],o.prototype,"gridApi",void 0),nn([B],o.prototype,"postConstruct",null),o}(Mt),sn=function(){function t(t){this.cssClassStates={},this.getGui=t}return t.prototype.addCssClass=function(t){var e=this,o=(t||"").split(" ");if(o.length>1)o.forEach((function(t){return e.addCssClass(t)}));else if(!0!==this.cssClassStates[t]&&t.length){var i=this.getGui();i&&i.classList.add(t),this.cssClassStates[t]=!0}},t.prototype.removeCssClass=function(t){var e=this,o=(t||"").split(" ");if(o.length>1)o.forEach((function(t){return e.removeCssClass(t)}));else if(!1!==this.cssClassStates[t]&&t.length){var i=this.getGui();i&&i.classList.remove(t),this.cssClassStates[t]=!1}},t.prototype.containsCssClass=function(t){var e=this.getGui();return!!e&&e.classList.contains(t)},t.prototype.addOrRemoveCssClass=function(t,e){var o=this;if(t){if(t.indexOf(" ")>=0){var i=(t||"").split(" ");if(i.length>1)return void i.forEach((function(t){return o.addOrRemoveCssClass(t,e)}))}if(this.cssClassStates[t]!==e&&t.length){var n=this.getGui();n&&n.classList.toggle(t,e),this.cssClassStates[t]=e}}},t}(),an=function(){var t=function(e,o){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])})(e,o)};return function(e,o){function i(){this.constructor=e}t(e,o),e.prototype=null===o?Object.create(o):(i.prototype=o.prototype,new i)}}(),ln=function(t,e,o,i){var n,r=arguments.length,s=r<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,o):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,o,i);else for(var a=t.length-1;a>=0;a--)(n=t[a])&&(s=(r<3?n(s):r>3?n(e,o,s):n(e,o))||s);return r>3&&s&&Object.defineProperty(e,o,s),s},un=new Ji,cn=function(t){function e(e){var o=t.call(this)||this;return o.displayed=!0,o.visible=!0,o.compId=un.next(),o.cssClassManager=new sn((function(){return o.eGui})),e&&o.setTemplate(e),o}return an(e,t),e.prototype.preConstructOnComponent=function(){this.usingBrowserTooltips=this.gridOptionsService.is("enableBrowserTooltips")},e.prototype.getCompId=function(){return this.compId},e.prototype.getTooltipParams=function(){return{value:this.tooltipText,location:"UNKNOWN"}},e.prototype.setTooltip=function(t){var e=this;this.tooltipText!=t&&(this.tooltipText&&(e.usingBrowserTooltips?e.getGui().removeAttribute("title"):e.tooltipFeature=e.destroyBean(e.tooltipFeature)),null!=t&&(this.tooltipText=t,this.tooltipText&&(e.usingBrowserTooltips?e.getGui().setAttribute("title",e.tooltipText):e.tooltipFeature=e.createBean(new rn(e)))))},e.prototype.createChildComponentsFromTags=function(t,e){var o=this;Pi(t.childNodes).forEach((function(i){if(i instanceof HTMLElement){var n=o.createComponentFromElement(i,(function(t){t.getGui()&&o.copyAttributesFromNode(i,t.getGui())}),e);if(n){if(n.addItems&&i.children.length){o.createChildComponentsFromTags(i,e);var r=Array.prototype.slice.call(i.children);n.addItems(r)}o.swapComponentForNode(n,t,i)}else i.childNodes&&o.createChildComponentsFromTags(i,e)}}))},e.prototype.createComponentFromElement=function(t,o,i){var n=t.nodeName,r=i?i[t.getAttribute("ref")]:void 0,s=this.agStackComponentsRegistry.getComponentClass(n);if(s){e.elementGettingCreated=t;var a=new s(r);return a.setParentComponent(this),this.createBean(a,null,o),a}return null},e.prototype.copyAttributesFromNode=function(t,e){Di(t.attributes,(function(t,o){return e.setAttribute(t,o)}))},e.prototype.swapComponentForNode=function(t,e,o){var i=t.getGui();e.replaceChild(i,o),e.insertBefore(document.createComment(o.nodeName),i),this.addDestroyFunc(this.destroyBean.bind(this,t)),this.swapInComponentForQuerySelectors(t,o)},e.prototype.swapInComponentForQuerySelectors=function(t,e){var o=this;this.iterateOverQuerySelectors((function(i){o[i.attributeName]===e&&(o[i.attributeName]=t)}))},e.prototype.iterateOverQuerySelectors=function(t){for(var e=Object.getPrototypeOf(this);null!=e;){var o=e.__agComponentMetaData,i=b(e.constructor);o&&o[i]&&o[i].querySelectors&&o[i].querySelectors.forEach((function(e){return t(e)})),e=Object.getPrototypeOf(e)}},e.prototype.setTemplate=function(t,e){var o=hi(t);this.setTemplateFromElement(o,e)},e.prototype.setTemplateFromElement=function(t,e){this.eGui=t,this.eGui.__agComponent=this,this.wireQuerySelectors(),this.getContext()&&this.createChildComponentsFromTags(this.getGui(),e)},e.prototype.createChildComponentsPreConstruct=function(){this.getGui()&&this.createChildComponentsFromTags(this.getGui())},e.prototype.wireQuerySelectors=function(){var t=this;if(this.eGui){var e=this;this.iterateOverQuerySelectors((function(o){var i=function(t){return e[o.attributeName]=t};if(o.refSelector&&t.eGui.getAttribute("ref")===o.refSelector)i(t.eGui);else{var n=t.eGui.querySelector(o.querySelector);n&&i(n.__agComponent||n)}}))}},e.prototype.getGui=function(){return this.eGui},e.prototype.getFocusableElement=function(){return this.eGui},e.prototype.setParentComponent=function(t){this.parentComponent=t},e.prototype.getParentComponent=function(){return this.parentComponent},e.prototype.setGui=function(t){this.eGui=t},e.prototype.queryForHtmlElement=function(t){return this.eGui.querySelector(t)},e.prototype.queryForHtmlInputElement=function(t){return this.eGui.querySelector(t)},e.prototype.appendChild=function(t,e){if(null!=t)if(e||(e=this.eGui),Ti(t))e.appendChild(t);else{var o=t;e.appendChild(o.getGui())}},e.prototype.isDisplayed=function(){return this.displayed},e.prototype.setVisible=function(t,e){if(void 0===e&&(e={}),t!==this.visible){this.visible=t;var o=e.skipAriaHidden;$o(this.eGui,t,{skipAriaHidden:o})}},e.prototype.setDisplayed=function(t,o){if(void 0===o&&(o={}),t!==this.displayed){this.displayed=t;var i=o.skipAriaHidden;Zo(this.eGui,t,{skipAriaHidden:i});var n={type:e.EVENT_DISPLAYED_CHANGED,visible:this.displayed};this.dispatchEvent(n)}},e.prototype.destroy=function(){this.tooltipFeature&&(this.tooltipFeature=this.destroyBean(this.tooltipFeature)),this.parentComponent&&(this.parentComponent=void 0);var e=this.eGui;e&&e.__agComponent&&(e.__agComponent=void 0),t.prototype.destroy.call(this)},e.prototype.addGuiEventListener=function(t,e,o){var i=this;this.eGui.addEventListener(t,e,o),this.addDestroyFunc((function(){return i.eGui.removeEventListener(t,e)}))},e.prototype.addCssClass=function(t){this.cssClassManager.addCssClass(t)},e.prototype.removeCssClass=function(t){this.cssClassManager.removeCssClass(t)},e.prototype.containsCssClass=function(t){return this.cssClassManager.containsCssClass(t)},e.prototype.addOrRemoveCssClass=function(t,e){this.cssClassManager.addOrRemoveCssClass(t,e)},e.prototype.getAttribute=function(t){var e=this.eGui;return e?e.getAttribute(t):null},e.prototype.getRefElement=function(t){return this.queryForHtmlElement('[ref="'+t+'"]')},e.EVENT_DISPLAYED_CHANGED="displayedChanged",ln([U("agStackComponentsRegistry")],e.prototype,"agStackComponentsRegistry",void 0),ln([k],e.prototype,"preConstructOnComponent",null),ln([k],e.prototype,"createChildComponentsPreConstruct",null),e}(Mt);
180/**
181 * @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue
182 * @version v29.2.0
183 * @link https://www.ag-grid.com/
184 * @license MIT
185 */
186/**
187 * @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue
188 * @version v29.2.0
189 * @link https://www.ag-grid.com/
190 * @license MIT
191 */
192function pn(t){return hn.bind(this,t,void 0)}function dn(t){return hn.bind(this,"[ref="+t+"]",t)}function hn(t,e,o,i,n){null!==t?"number"!=typeof n?function(t,e,o){var i=function(t,e){t.__agComponentMetaData||(t.__agComponentMetaData={});t.__agComponentMetaData[e]||(t.__agComponentMetaData[e]={});return t.__agComponentMetaData[e]}
193/**
194 * @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue
195 * @version v29.2.0
196 * @link https://www.ag-grid.com/
197 * @license MIT
198 */(t,b(t.constructor));i[e]||(i[e]=[]);i[e].push(o)}(o,"querySelectors",{attributeName:i,querySelector:t,refSelector:e}):console.error("AG Grid: QuerySelector should be on an attribute"):console.error("AG Grid: QuerySelector selector should not be null")}var fn=function(){var t=function(e,o){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])})(e,o)};return function(e,o){function i(){this.constructor=e}t(e,o),e.prototype=null===o?Object.create(o):(i.prototype=o.prototype,new i)}}(),gn=function(t,e,o,i){var n,r=arguments.length,s=r<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,o):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,o,i);else for(var a=t.length-1;a>=0;a--)(n=t[a])&&(s=(r<3?n(s):r>3?n(e,o,s):n(e,o))||s);return r>3&&s&&Object.defineProperty(e,o,s),s},vn=function(t){function e(){return t.call(this,'\n <div class="ag-floating-filter-input" role="presentation">\n <ag-input-text-field ref="eFloatingFilterText"></ag-input-text-field>\n </div>')||this}return fn(e,t),e.prototype.destroy=function(){t.prototype.destroy.call(this)},e.prototype.init=function(t){this.params=t;var e=this.columnModel.getDisplayNameForColumn(t.column,"header",!0),o=this.localeService.getLocaleTextFunc();this.eFloatingFilterText.setDisabled(!0).setInputAriaLabel(e+" "+o("ariaFilterInput","Filter Input"))},e.prototype.onParentModelChanged=function(t){var e=this;t?this.params.parentFilterInstance((function(o){if(o.getModelAsString){var i=o.getModelAsString(t);e.eFloatingFilterText.setValue(i)}})):this.eFloatingFilterText.setValue("")},gn([dn("eFloatingFilterText")],e.prototype,"eFloatingFilterText",void 0),gn([U("columnModel")],e.prototype,"columnModel",void 0),e}(cn),yn=function(){function t(t,e,o,i){var n=this;this.alive=!0,this.context=t,this.eParent=i,e.getDateCompDetails(o).newAgStackInstance().then((function(e){n.alive?(n.dateComp=e,e&&(i.appendChild(e.getGui()),e.afterGuiAttached&&e.afterGuiAttached(),n.tempValue&&e.setDate(n.tempValue),null!=n.disabled&&n.setDateCompDisabled(n.disabled))):t.destroyBean(e)}))}return t.prototype.destroy=function(){this.alive=!1,this.dateComp=this.context.destroyBean(this.dateComp)},t.prototype.getDate=function(){return this.dateComp?this.dateComp.getDate():this.tempValue},t.prototype.setDate=function(t){this.dateComp?this.dateComp.setDate(t):this.tempValue=t},t.prototype.setDisabled=function(t){this.dateComp?this.setDateCompDisabled(t):this.disabled=t},t.prototype.setDisplayed=function(t){Zo(this.eParent,t)},t.prototype.setInputPlaceholder=function(t){this.dateComp&&this.dateComp.setInputPlaceholder&&this.dateComp.setInputPlaceholder(t)},t.prototype.setInputAriaLabel=function(t){this.dateComp&&this.dateComp.setInputAriaLabel&&this.dateComp.setInputAriaLabel(t)},t.prototype.afterGuiAttached=function(t){this.dateComp&&"function"==typeof this.dateComp.afterGuiAttached&&this.dateComp.afterGuiAttached(t)},t.prototype.setDateCompDisabled=function(t){null!=this.dateComp&&null!=this.dateComp.setDisabled&&this.dateComp.setDisabled(t)},t}(),mn=function(){return(mn=Object.assign||function(t){for(var e,o=1,i=arguments.length;o<i;o++)for(var n in e=arguments[o])Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t}).apply(this,arguments)},Cn=function(){function t(){this.customFilterOptions={}}return t.prototype.init=function(t,e){this.filterOptions=t.filterOptions||e,this.mapCustomOptions(),this.selectDefaultItem(t),this.checkForDeprecatedParams()},t.prototype.checkForDeprecatedParams=function(){this.filterOptions.some((function(t){return"string"!=typeof t&&null!=t.test}))&&console.warn("AG Grid: [IFilterOptionDef] since v26.2.0, test() has been replaced with predicate()."),this.filterOptions.some((function(t){return"string"!=typeof t&&null!=t.hideFilterInput}))&&console.warn("AG Grid: [IFilterOptionDef] since v26.2.0, useOfHideFilterInput has been replaced with numberOfInputs.")},t.prototype.getFilterOptions=function(){return this.filterOptions},t.prototype.mapCustomOptions=function(){var t=this;this.filterOptions&&this.filterOptions.forEach((function(e){if("string"!=typeof e){if([["displayKey"],["displayName"],["predicate","test"]].every((function(t){return!!t.some((function(t){return null!=e[t]}))||(console.warn("AG Grid: ignoring FilterOptionDef as it doesn't contain one of '"+t+"'"),!1)}))){var o=e.test,i=mn({},e);null!=o&&null==e.predicate&&(i.predicate=function(t,e){return o(t[0],e)},delete i.test),i.hideFilterInput&&null==i.numberOfInputs&&(i.numberOfInputs=0,delete i.hideFilterInput),t.customFilterOptions[e.displayKey]=i}else t.filterOptions=t.filterOptions.filter((function(t){return t===e}))||[]}}))},t.prototype.selectDefaultItem=function(t){if(t.defaultOption)this.defaultOption=t.defaultOption;else if(this.filterOptions.length>=1){var e=this.filterOptions[0];"string"==typeof e?this.defaultOption=e:e.displayKey?this.defaultOption=e.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")},t.prototype.getDefaultOption=function(){return this.defaultOption},t.prototype.getCustomOption=function(t){return this.customFilterOptions[t]},t}(),wn={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",blank:"Blank",notBlank:"Not blank",andCondition:"AND",orCondition:"OR",dateFormatOoo:"yyyy-mm-dd"},Sn=function(){var t=function(e,o){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])})(e,o)};return function(e,o){function i(){this.constructor=e}t(e,o),e.prototype=null===o?Object.create(o):(i.prototype=o.prototype,new i)}}(),En=function(){return(En=Object.assign||function(t){for(var e,o=1,i=arguments.length;o<i;o++)for(var n in e=arguments[o])Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t}).apply(this,arguments)},Rn=function(t,e,o,i){var n,r=arguments.length,s=r<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,o):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,o,i);else for(var a=t.length-1;a>=0;a--)(n=t[a])&&(s=(r<3?n(s):r>3?n(e,o,s):n(e,o))||s);return r>3&&s&&Object.defineProperty(e,o,s),s},On=function(t){function e(e,o){void 0===o&&(o={});var i=t.call(this)||this;return i.eFocusableElement=e,i.callbacks=o,i.callbacks=En({shouldStopEventPropagation:function(){return!1},onTabKeyDown:function(t){if(!t.defaultPrevented){var e=i.focusService.findNextFocusableElement(i.eFocusableElement,!1,t.shiftKey);e&&(e.focus(),t.preventDefault())}}},o),i}return Sn(e,t),e.prototype.postConstruct=function(){this.eFocusableElement.classList.add(e.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)},e.prototype.addKeyDownListeners=function(t){var e=this;this.addManagedListener(t,"keydown",(function(t){t.defaultPrevented||Rt(t)||(e.callbacks.shouldStopEventPropagation(t)?Et(t):t.key===Gi.TAB?e.callbacks.onTabKeyDown(t):e.callbacks.handleKeyDown&&e.callbacks.handleKeyDown(t))}))},e.FOCUS_MANAGED_CLASS="ag-focus-managed",Rn([U("focusService")],e.prototype,"focusService",void 0),Rn([B],e.prototype,"postConstruct",null),e}(Mt),bn=function(){var t=function(e,o){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])})(e,o)};return function(e,o){function i(){this.constructor=e}t(e,o),e.prototype=null===o?Object.create(o):(i.prototype=o.prototype,new i)}}(),Tn=function(t,e,o,i){var n,r=arguments.length,s=r<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,o):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,o,i);else for(var a=t.length-1;a>=0;a--)(n=t[a])&&(s=(r<3?n(s):r>3?n(e,o,s):n(e,o))||s);return r>3&&s&&Object.defineProperty(e,o,s),s},Pn=function(t){function e(e,o){var i=t.call(this)||this;return i.element=e,i.dragStartPosition={x:0,y:0},i.position={x:0,y:0},i.lastSize={width:-1,height:-1},i.positioned=!1,i.resizersAdded=!1,i.resizeListeners=[],i.boundaryEl=null,i.isResizing=!1,i.isMoving=!1,i.resizable={},i.movable=!1,i.currentResizer=null,i.config=Object.assign({},{popup:!1},o),i}return bn(e,t),e.prototype.center=function(){var t=this.offsetParent,e=t.clientHeight,o=t.clientWidth/2-this.getWidth()/2,i=e/2-this.getHeight()/2;this.offsetElement(o,i)},e.prototype.initialisePosition=function(){var t=this.config,e=t.centered,o=t.forcePopupParentAsOffsetParent,i=t.minWidth,n=t.width,r=t.minHeight,s=t.height,a=t.x,l=t.y;this.offsetParent||this.setOffsetParent();var u=0,c=0,p=!!this.element.offsetParent;if(p){var d=this.findBoundaryElement(),h=window.getComputedStyle(d);if(null!=h.minWidth){var f=d.offsetWidth-this.element.offsetWidth;c=parseInt(h.minWidth,10)-f}if(null!=h.minHeight){var g=d.offsetHeight-this.element.offsetHeight;u=parseInt(h.minHeight,10)-g}}if(this.minHeight=r||u,this.minWidth=i||c,n&&this.setWidth(n),s&&this.setHeight(s),n&&s||this.refreshSize(),e)this.center();else if(a||l)this.offsetElement(a,l);else if(p&&o&&this.boundaryEl){var v=parseFloat(this.boundaryEl.style.top),y=parseFloat(this.boundaryEl.style.left);this.offsetElement(isNaN(y)?0:y,isNaN(v)?0:v)}this.positioned=!!this.offsetParent},e.prototype.isPositioned=function(){return this.positioned},e.prototype.getPosition=function(){return this.position},e.prototype.setMovable=function(t,e){if(this.config.popup&&t!==this.movable){this.movable=t;var o=this.moveElementDragListener||{eElement:e,onDragStart:this.onMoveStart.bind(this),onDragging:this.onMove.bind(this),onDragStop:this.onMoveEnd.bind(this)};t?(this.dragService.addDragSource(o),this.moveElementDragListener=o):(this.dragService.removeDragSource(o),this.moveElementDragListener=void 0)}},e.prototype.setResizable=function(t){var e=this;if(this.clearResizeListeners(),t?this.addResizers():this.removeResizers(),"boolean"==typeof t){if(!1===t)return;t={topLeft:t,top:t,topRight:t,right:t,bottomRight:t,bottom:t,bottomLeft:t,left:t}}Object.keys(t).forEach((function(o){var i=!!t[o],n=e.getResizerElement(o),r={dragStartPixels:0,eElement:n,onDragStart:function(t){return e.onResizeStart(t,o)},onDragging:e.onResize.bind(e),onDragStop:function(t){return e.onResizeEnd(t,o)}};(i||!e.isAlive()&&!i)&&(i?(e.dragService.addDragSource(r),e.resizeListeners.push(r),n.style.pointerEvents="all"):n.style.pointerEvents="none",e.resizable[o]=i)}))},e.prototype.removeSizeFromEl=function(){this.element.style.removeProperty("height"),this.element.style.removeProperty("width"),this.element.style.removeProperty("flex")},e.prototype.restoreLastSize=function(){this.element.style.flex="0 0 auto";var t=this.lastSize,e=t.height,o=t.width;-1!==o&&(this.element.style.width=o+"px"),-1!==e&&(this.element.style.height=e+"px")},e.prototype.getHeight=function(){return this.element.offsetHeight},e.prototype.setHeight=function(t){var e=this.config,o=e.popup,i=e.forcePopupParentAsOffsetParent,n=this.element,r=!1;if("string"==typeof t&&-1!==t.indexOf("%"))Oi(n,t),t=ri(n),r=!0;else if(this.positioned){var s=this.element.getBoundingClientRect(),a=this.offsetParent.getBoundingClientRect();t=Math.max(this.minHeight,t);var l=this.offsetParent.clientHeight;if(l){var u=o?this.position.y:s.top,c=o?0:a.top,p=0;if(i&&this.boundaryEl)p=this.boundaryEl.getBoundingClientRect().bottom-s.bottom;var d=l+c-u-p;t>d&&(t=d)}}this.getHeight()!==t&&(r?(n.style.maxHeight="unset",n.style.minHeight="unset"):o?Oi(n,t):(n.style.height=t+"px",n.style.flex="0 0 auto",this.lastSize.height="number"==typeof t?t:parseFloat(t)))},e.prototype.getWidth=function(){return this.element.offsetWidth},e.prototype.setWidth=function(t){var e=this.element,o=this.config.popup,i=!1;if("string"==typeof t&&-1!==t.indexOf("%"))Ri(e,t),t=si(e),i=!0;else if(this.positioned){t=Math.max(this.minWidth,t);var n=this.offsetParent.clientWidth,r=o?this.position.x:this.element.getBoundingClientRect().left;n&&t+r>n&&(t=n-r)}this.getWidth()!==t&&(i?(e.style.maxWidth="unset",e.style.minWidth="unset"):this.config.popup?Ri(e,t):(e.style.width=t+"px",e.style.flex=" unset",this.lastSize.width="number"==typeof t?t:parseFloat(t)))},e.prototype.offsetElement=function(t,e){void 0===t&&(t=0),void 0===e&&(e=0);var o=this.config.forcePopupParentAsOffsetParent?this.boundaryEl:this.element;this.popupService.positionPopup({ePopup:o,keepWithinBounds:!0,skipObserver:this.movable||this.isResizable(),updatePosition:function(){return{x:t,y:e}}}),this.setPosition(parseFloat(o.style.left),parseFloat(o.style.top))},e.prototype.setPosition=function(t,e){this.position.x=t,this.position.y=e},e.prototype.updateDragStartPosition=function(t,e){this.dragStartPosition={x:t,y:e}},e.prototype.calculateMouseMovement=function(t){var e=t.e,o=t.isLeft,i=t.isTop,n=t.anywhereWithin,r=t.topBuffer,s=e.clientX-this.dragStartPosition.x,a=e.clientY-this.dragStartPosition.y;return{movementX:this.shouldSkipX(e,!!o,!!n,s)?0:s,movementY:this.shouldSkipY(e,!!i,r,a)?0:a}},e.prototype.shouldSkipX=function(t,e,o,i){var n=this.element.getBoundingClientRect(),r=this.offsetParent.getBoundingClientRect(),s=this.boundaryEl.getBoundingClientRect(),a=this.config.popup?this.position.x:n.left,l=a<=0&&r.left>=t.clientX||r.right<=t.clientX&&r.right<=s.right;return!!l||(l=e?i<0&&t.clientX>a+r.left||i>0&&t.clientX<a+r.left:o?i<0&&t.clientX>s.right||i>0&&t.clientX<a+r.left:i<0&&t.clientX>s.right||i>0&&t.clientX<s.right)},e.prototype.shouldSkipY=function(t,e,o,i){void 0===o&&(o=0);var n=this.element.getBoundingClientRect(),r=this.offsetParent.getBoundingClientRect(),s=this.boundaryEl.getBoundingClientRect(),a=this.config.popup?this.position.y:n.top,l=a<=0&&r.top>=t.clientY||r.bottom<=t.clientY&&r.bottom<=s.bottom;return!!l||(l=e?i<0&&t.clientY>a+r.top+o||i>0&&t.clientY<a+r.top:i<0&&t.clientY>s.bottom||i>0&&t.clientY<s.bottom)},e.prototype.createResizeMap=function(){var t=this.element;this.resizerMap={topLeft:{element:t.querySelector("[ref=eTopLeftResizer]")},top:{element:t.querySelector("[ref=eTopResizer]")},topRight:{element:t.querySelector("[ref=eTopRightResizer]")},right:{element:t.querySelector("[ref=eRightResizer]")},bottomRight:{element:t.querySelector("[ref=eBottomRightResizer]")},bottom:{element:t.querySelector("[ref=eBottomResizer]")},bottomLeft:{element:t.querySelector("[ref=eBottomLeftResizer]")},left:{element:t.querySelector("[ref=eLeftResizer]")}}},e.prototype.addResizers=function(){if(!this.resizersAdded){var t=this.element;if(t){var e=(new DOMParser).parseFromString('<div class="ag-resizer-wrapper">\n <div ref="eTopLeftResizer" class="ag-resizer ag-resizer-topLeft"></div>\n <div ref="eTopResizer" class="ag-resizer ag-resizer-top"></div>\n <div ref="eTopRightResizer" class="ag-resizer ag-resizer-topRight"></div>\n <div ref="eRightResizer" class="ag-resizer ag-resizer-right"></div>\n <div ref="eBottomRightResizer" class="ag-resizer ag-resizer-bottomRight"></div>\n <div ref="eBottomResizer" class="ag-resizer ag-resizer-bottom"></div>\n <div ref="eBottomLeftResizer" class="ag-resizer ag-resizer-bottomLeft"></div>\n <div ref="eLeftResizer" class="ag-resizer ag-resizer-left"></div>\n </div>',"text/html").body;t.appendChild(e.firstChild),this.createResizeMap(),this.resizersAdded=!0}}},e.prototype.removeResizers=function(){this.resizerMap=void 0;var t=this.element.querySelector(".ag-resizer-wrapper");t&&this.element.removeChild(t),this.resizersAdded=!1},e.prototype.getResizerElement=function(t){return this.resizerMap[t].element},e.prototype.onResizeStart=function(t,e){this.boundaryEl=this.findBoundaryElement(),this.positioned||this.initialisePosition(),this.currentResizer={isTop:!!e.match(/top/i),isRight:!!e.match(/right/i),isBottom:!!e.match(/bottom/i),isLeft:!!e.match(/left/i)},this.element.classList.add("ag-resizing"),this.resizerMap[e].element.classList.add("ag-active");var o=this.config,i=o.popup,n=o.forcePopupParentAsOffsetParent;i||n||this.applySizeToSiblings(this.currentResizer.isBottom||this.currentResizer.isTop),this.isResizing=!0,this.updateDragStartPosition(t.clientX,t.clientY)},e.prototype.getSiblings=function(){var t=this.element.parentElement;return t?Array.prototype.slice.call(t.children).filter((function(t){return!t.classList.contains("ag-hidden")})):null},e.prototype.getMinSizeOfSiblings=function(){for(var t=this.getSiblings()||[],e=0,o=0,i=0;i<t.length;i++){var n=t[i],r=!!n.style.flex&&"0 0 auto"!==n.style.flex;if(n!==this.element){var s=this.minHeight||0,a=this.minWidth||0;if(r){var l=window.getComputedStyle(n);l.minHeight&&(s=parseInt(l.minHeight,10)),l.minWidth&&(a=parseInt(l.minWidth,10))}else s=n.offsetHeight,a=n.offsetWidth;e+=s,o+=a}}return{height:e,width:o}},e.prototype.applySizeToSiblings=function(t){var e=null,o=this.getSiblings();if(o){for(var i=0;i<o.length;i++){var n=o[i];n!==e&&(t?n.style.height=n.offsetHeight+"px":n.style.width=n.offsetWidth+"px",n.style.flex="0 0 auto",n===this.element&&(e=o[i+1]))}e&&(e.style.removeProperty("height"),e.style.removeProperty("min-height"),e.style.removeProperty("max-height"),e.style.flex="1 1 auto")}},e.prototype.isResizable=function(){return Object.values(this.resizable).some((function(t){return t}))},e.prototype.onResize=function(t){if(this.isResizing&&this.currentResizer){var e=this.config,o=e.popup,i=e.forcePopupParentAsOffsetParent,n=this.currentResizer,r=n.isTop,s=n.isRight,a=n.isBottom,l=n.isLeft,u=s||l,c=a||r,p=this.calculateMouseMovement({e:t,isLeft:l,isTop:r}),d=p.movementX,h=p.movementY,f=this.position.x,g=this.position.y,v=0,y=0;if(u&&d){var m=l?-1:1,C=this.getWidth(),w=C+d*m,S=!1;l&&(f+(v=C-w)<=0||w<=this.minWidth)&&(S=!0,v=0),S||this.setWidth(w)}if(c&&h){m=r?-1:1;var E=this.getHeight(),R=E+h*m,O=!1;r?(g+(y=E-R)<=0||R<=this.minHeight)&&(O=!0,y=0):!this.config.popup&&!this.config.forcePopupParentAsOffsetParent&&E<R&&this.getMinSizeOfSiblings().height+R>this.element.parentElement.offsetHeight&&(O=!0),O||this.setHeight(R)}this.updateDragStartPosition(t.clientX,t.clientY),((o||i)&&v||y)&&this.offsetElement(f+v,g+y)}},e.prototype.onResizeEnd=function(t,e){this.isResizing=!1,this.currentResizer=null,this.boundaryEl=null;var o={type:"resize",api:this.gridOptionsService.api,columnApi:this.gridOptionsService.columnApi};this.element.classList.remove("ag-resizing"),this.resizerMap[e].element.classList.remove("ag-active"),this.dispatchEvent(o)},e.prototype.refreshSize=function(){var t=this.element;this.config.popup&&(this.config.width||this.setWidth(t.offsetWidth),this.config.height||this.setHeight(t.offsetHeight))},e.prototype.onMoveStart=function(t){this.boundaryEl=this.findBoundaryElement(),this.positioned||this.initialisePosition(),this.isMoving=!0,this.element.classList.add("ag-moving"),this.updateDragStartPosition(t.clientX,t.clientY)},e.prototype.onMove=function(t){if(this.isMoving){var e,o=this.position,i=o.x,n=o.y;this.config.calculateTopBuffer&&(e=this.config.calculateTopBuffer());var r=this.calculateMouseMovement({e:t,isTop:!0,anywhereWithin:!0,topBuffer:e}),s=r.movementX,a=r.movementY;this.offsetElement(i+s,n+a),this.updateDragStartPosition(t.clientX,t.clientY)}},e.prototype.onMoveEnd=function(){this.isMoving=!1,this.boundaryEl=null,this.element.classList.remove("ag-moving")},e.prototype.setOffsetParent=function(){this.config.forcePopupParentAsOffsetParent?this.offsetParent=this.popupService.getPopupParent():this.offsetParent=this.element.offsetParent},e.prototype.findBoundaryElement=function(){for(var t=this.element;t;){if("static"!==window.getComputedStyle(t).position)return t;t=t.parentElement}return this.element},e.prototype.clearResizeListeners=function(){for(;this.resizeListeners.length;){var t=this.resizeListeners.pop();this.dragService.removeDragSource(t)}},e.prototype.destroy=function(){t.prototype.destroy.call(this),this.moveElementDragListener&&this.dragService.removeDragSource(this.moveElementDragListener),this.clearResizeListeners(),this.removeResizers()},Tn([U("popupService")],e.prototype,"popupService",void 0),Tn([U("dragService")],e.prototype,"dragService",void 0),e}(Mt),Dn=function(){var t=function(e,o){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])})(e,o)};return function(e,o){function i(){this.constructor=e}t(e,o),e.prototype=null===o?Object.create(o):(i.prototype=o.prototype,new i)}}(),_n=function(t,e,o,i){var n,r=arguments.length,s=r<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,o):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,o,i);else for(var a=t.length-1;a>=0;a--)(n=t[a])&&(s=(r<3?n(s):r>3?n(e,o,s):n(e,o))||s);return r>3&&s&&Object.defineProperty(e,o,s),s},An=function(t){function e(e){var o=t.call(this)||this;return o.filterNameKey=e,o.applyActive=!1,o.hidePopup=null,o.debouncePending=!1,o.appliedModel=null,o}return Dn(e,t),e.prototype.postConstruct=function(){this.resetTemplate(),this.createManagedBean(new On(this.getFocusableElement(),{handleKeyDown:this.handleKeyDown.bind(this)})),this.positionableFeature=new Pn(this.getPositionableElement(),{forcePopupParentAsOffsetParent:!0}),this.createBean(this.positionableFeature)},e.prototype.handleKeyDown=function(t){},e.prototype.getFilterTitle=function(){return this.translate(this.filterNameKey)},e.prototype.isFilterActive=function(){return!!this.appliedModel},e.prototype.resetTemplate=function(t){var e=this.getGui();e&&e.removeEventListener("submit",this.onFormSubmit);var o='\n <form class="ag-filter-wrapper">\n <div class="ag-filter-body-wrapper ag-'+this.getCssIdentifier()+'-body-wrapper" ref="eFilterBody">\n '+this.createBodyTemplate()+"\n </div>\n </form>";this.setTemplate(o,t),(e=this.getGui())&&e.addEventListener("submit",this.onFormSubmit)},e.prototype.isReadOnly=function(){return!!this.providedFilterParams.readOnly},e.prototype.init=function(t){var e=this;this.setParams(t),this.resetUiToDefaults(!0).then((function(){e.updateUiVisibility(),e.setupOnBtApplyDebounce()}))},e.prototype.setParams=function(t){this.providedFilterParams=t,this.applyActive=e.isUseApplyButton(t),this.createButtonPanel()},e.prototype.createButtonPanel=function(){var t=this,e=this.providedFilterParams.buttons;if(!(!e||e.length<1||this.isReadOnly())){var o=document.createElement("div");o.classList.add("ag-filter-apply-panel");Ki(e).forEach((function(e){return function(e){var i,n;switch(e){case"apply":i=t.translate("applyFilter"),n=function(e){return t.onBtApply(!1,!1,e)};break;case"clear":i=t.translate("clearFilter"),n=function(){return t.onBtClear()};break;case"reset":i=t.translate("resetFilter"),n=function(){return t.onBtReset()};break;case"cancel":i=t.translate("cancelFilter"),n=function(e){t.onBtCancel(e)};break;default:return void console.warn("AG Grid: Unknown button type specified")}var r=hi('<button\n type="'+("apply"===e?"submit":"button")+'"\n ref="'+e+'FilterButton"\n class="ag-standard-button ag-filter-apply-panel-button"\n >'+i+"\n </button>");o.appendChild(r),t.addManagedListener(r,"click",n)}(e)})),this.getGui().appendChild(o)}},e.prototype.getDefaultDebounceMs=function(){return 0},e.prototype.setupOnBtApplyDebounce=function(){var t=this,o=e.getDebounceMs(this.providedFilterParams,this.getDefaultDebounceMs()),i=F(this.checkApplyDebounce.bind(this),o);this.onBtApplyDebounce=function(){t.debouncePending=!0,i()}},e.prototype.checkApplyDebounce=function(){this.debouncePending&&(this.debouncePending=!1,this.onBtApply())},e.prototype.getModel=function(){return this.appliedModel?this.appliedModel:null},e.prototype.setModel=function(t){var e=this;return(null!=t?this.setModelIntoUi(t):this.resetUiToDefaults()).then((function(){e.updateUiVisibility(),e.applyModel("api")}))},e.prototype.onBtCancel=function(t){var e=this;this.resetUiToActiveModel(this.getModel(),(function(){e.providedFilterParams.closeOnApply&&e.close(t)}))},e.prototype.resetUiToActiveModel=function(t,e){var o=this,i=function(){o.onUiChanged(!1,"prevent"),null==e||e()};null!=t?this.setModelIntoUi(t).then(i):this.resetUiToDefaults().then(i)},e.prototype.onBtClear=function(){var t=this;this.resetUiToDefaults().then((function(){return t.onUiChanged()}))},e.prototype.onBtReset=function(){this.onBtClear(),this.onBtApply()},e.prototype.applyModel=function(t){var e=this.getModelFromUi();if(!this.isModelValid(e))return!1;var o=this.appliedModel;return this.appliedModel=e,!this.areModelsEqual(o,e)},e.prototype.isModelValid=function(t){return!0},e.prototype.onFormSubmit=function(t){t.preventDefault()},e.prototype.onBtApply=function(t,e,o){void 0===t&&(t=!1),void 0===e&&(e=!1),o&&o.preventDefault(),this.applyModel(e?"rowDataUpdated":"ui")&&this.providedFilterParams.filterChangedCallback({afterFloatingFilter:t,afterDataChange:e}),this.providedFilterParams.closeOnApply&&this.applyActive&&!t&&!e&&this.close(o)},e.prototype.onNewRowsLoaded=function(){},e.prototype.close=function(t){if(this.hidePopup){var e,o=t,i=o&&o.key;"Enter"!==i&&"Space"!==i||(e={keyboardEvent:o}),this.hidePopup(e),this.hidePopup=null}},e.prototype.onUiChanged=function(t,e){if(void 0===t&&(t=!1),this.updateUiVisibility(),this.providedFilterParams.filterModifiedCallback(),this.applyActive&&!this.isReadOnly()){var o=this.isModelValid(this.getModelFromUi());ti(this.getRefElement("applyFilterButton"),!o)}t&&!e||"immediately"===e?this.onBtApply(t):(this.applyActive||e)&&"debounce"!==e||this.onBtApplyDebounce()},e.prototype.afterGuiAttached=function(t){"floatingFilter"===(null==t?void 0:t.container)?(this.positionableFeature.restoreLastSize(),this.positionableFeature.setResizable(this.gridOptionsService.is("enableRtl")?{bottom:!0,bottomLeft:!0,left:!0}:{bottom:!0,bottomRight:!0,right:!0})):(this.positionableFeature.removeSizeFromEl(),this.positionableFeature.setResizable(!1)),null!=t&&(this.hidePopup=t.hidePopup)},e.prototype.afterGuiDetached=function(){this.checkApplyDebounce()},e.getDebounceMs=function(t,o){return e.isUseApplyButton(t)?(null!=t.debounceMs&&console.warn("AG Grid: debounceMs is ignored when apply button is present"),0):null!=t.debounceMs?t.debounceMs:o},e.isUseApplyButton=function(t){return!!t.buttons&&t.buttons.indexOf("apply")>=0},e.prototype.destroy=function(){var e=this.getGui();e&&e.removeEventListener("submit",this.onFormSubmit),this.hidePopup=null,t.prototype.destroy.call(this)},e.prototype.translate=function(t){return this.localeService.getLocaleTextFunc()(t,wn[t])},e.prototype.getCellValue=function(t){var e=this.providedFilterParams,o=e.api,i=e.colDef,n=e.column,r=e.columnApi,s=e.context;return this.providedFilterParams.valueGetter({api:o,colDef:i,column:n,columnApi:r,context:s,data:t.data,getValue:function(e){return t.data[e]},node:t})},e.prototype.getPositionableElement=function(){return this.eFilterBody},_n([U("rowModel")],e.prototype,"rowModel",void 0),_n([dn("eFilterBody")],e.prototype,"eFilterBody",void 0),_n([B],e.prototype,"postConstruct",null),e}(cn),Nn=function(){var t=function(e,o){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])})(e,o)};return function(e,o){function i(){this.constructor=e}t(e,o),e.prototype=null===o?Object.create(o):(i.prototype=o.prototype,new i)}}(),Fn=function(t,e,o,i){var n,r=arguments.length,s=r<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,o):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,o,i);else for(var a=t.length-1;a>=0;a--)(n=t[a])&&(s=(r<3?n(s):r>3?n(e,o,s):n(e,o))||s);return r>3&&s&&Object.defineProperty(e,o,s),s},Ln=function(t){function e(e,o){var i=t.call(this,o)||this;return i.labelSeparator="",i.labelAlignment="left",i.disabled=!1,i.label="",i.config=e||{},i}return Nn(e,t),e.prototype.postConstruct=function(){this.addCssClass("ag-labeled"),this.eLabel.classList.add("ag-label");var t=this.config,e=t.labelSeparator,o=t.label,i=t.labelWidth,n=t.labelAlignment;null!=e&&this.setLabelSeparator(e),null!=o&&this.setLabel(o),null!=i&&this.setLabelWidth(i),this.setLabelAlignment(n||this.labelAlignment),this.refreshLabel()},e.prototype.refreshLabel=function(){ci(this.eLabel),"string"==typeof this.label?this.eLabel.innerText=this.label+this.labelSeparator:this.label&&this.eLabel.appendChild(this.label),""===this.label?(Zo(this.eLabel,!1),ke(this.eLabel,"presentation")):(Zo(this.eLabel,!0),ke(this.eLabel,null))},e.prototype.setLabelSeparator=function(t){return this.labelSeparator===t||(this.labelSeparator=t,null!=this.label&&this.refreshLabel()),this},e.prototype.getLabelId=function(){return this.eLabel.id=this.eLabel.id||"ag-"+this.getCompId()+"-label",this.eLabel.id},e.prototype.getLabel=function(){return this.label},e.prototype.setLabel=function(t){return this.label===t||(this.label=t,this.refreshLabel()),this},e.prototype.setLabelAlignment=function(t){var e=this.getGui().classList;return e.toggle("ag-label-align-left","left"===t),e.toggle("ag-label-align-right","right"===t),e.toggle("ag-label-align-top","top"===t),this},e.prototype.setLabelEllipsis=function(t){return this.eLabel.classList.toggle("ag-label-ellipsis",t),this},e.prototype.setLabelWidth=function(t){return null==this.label||Ei(this.eLabel,t),this},e.prototype.setDisabled=function(t){t=!!t;var e=this.getGui();return ti(e,t),e.classList.toggle("ag-disabled",t),this.disabled=t,this},e.prototype.isDisabled=function(){return!!this.disabled},Fn([B],e.prototype,"postConstruct",null),e}(cn),Mn=function(){var t=function(e,o){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])})(e,o)};return function(e,o){function i(){this.constructor=e}t(e,o),e.prototype=null===o?Object.create(o):(i.prototype=o.prototype,new i)}}(),In=function(t){function e(e,o,i){var n=t.call(this,e,o)||this;return n.className=i,n}return Mn(e,t),e.prototype.postConstruct=function(){t.prototype.postConstruct.call(this),this.className&&this.addCssClass(this.className)},e.prototype.onValueChange=function(t){var o=this;return this.addManagedListener(this,e.EVENT_CHANGED,(function(){return t(o.getValue())})),this},e.prototype.getWidth=function(){return this.getGui().clientWidth},e.prototype.setWidth=function(t){return Ri(this.getGui(),t),this},e.prototype.getPreviousValue=function(){return this.previousValue},e.prototype.getValue=function(){return this.value},e.prototype.setValue=function(t,o){return this.value===t||(this.previousValue=this.value,this.value=t,o||this.dispatchEvent({type:e.EVENT_CHANGED})),this},e.EVENT_CHANGED="valueChange",e}(Ln),Gn=function(){var t=function(e,o){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])})(e,o)};return function(e,o){function i(){this.constructor=e}t(e,o),e.prototype=null===o?Object.create(o):(i.prototype=o.prototype,new i)}}(),xn=function(t,e,o,i){var n,r=arguments.length,s=r<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,o):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,o,i);else for(var a=t.length-1;a>=0;a--)(n=t[a])&&(s=(r<3?n(s):r>3?n(e,o,s):n(e,o))||s);return r>3&&s&&Object.defineProperty(e,o,s),s},Hn=function(t){function o(e,o,i,n){var r=t.call(this,e,'<div class="ag-picker-field" role="presentation">\n <div ref="eLabel"></div>\n <div ref="eWrapper"\n class="ag-wrapper ag-picker-field-wrapper"\n tabIndex="-1"\n aria-expanded="false"\n '+(n?'role="'+n+'"':"")+'\n >\n <div ref="eDisplayField" class="ag-picker-field-display"></div>\n <div ref="eIcon" class="ag-picker-field-icon" aria-hidden="true"></div>\n </div>\n </div>',o)||this;return r.pickerIcon=i,r.isPickerDisplayed=!1,r.isDestroyingPicker=!1,r.skipClick=!1,r}return Gn(o,t),o.prototype.postConstruct=function(){var e=this;t.prototype.postConstruct.call(this);var o=this.getCompId()+"-display";this.eDisplayField.setAttribute("id",o),Ye(this.eWrapper,o);var i=function(){e.skipClick?e.skipClick=!1:e.isDisabled()||(e.pickerComponent=e.showPicker())},n=this.getGui();if(this.addManagedListener(n,"mousedown",(function(t){!e.skipClick&&e.pickerComponent&&e.pickerComponent.isAlive()&&di(e.pickerComponent.getGui())&&n.contains(t.target)&&(e.skipClick=!0)})),this.addManagedListener(n,"keydown",(function(t){switch(t.key){case Gi.UP:case Gi.DOWN:case Gi.ENTER:case Gi.SPACE:i();case Gi.ESCAPE:e.isPickerDisplayed&&t.preventDefault()}})),this.addManagedListener(this.eWrapper,"click",i),this.addManagedListener(this.eLabel,"click",i),this.pickerIcon){var r=Mi(this.pickerIcon,this.gridOptionsService);r&&this.eIcon.appendChild(r)}},o.prototype.refreshLabel=function(){e(this.getLabel())?ze(this.eWrapper,this.getLabelId()):this.eWrapper.removeAttribute("aria-labelledby"),t.prototype.refreshLabel.call(this)},o.prototype.setAriaLabel=function(t){return Ue(this.eWrapper,t),this},o.prototype.setInputWidth=function(t){return Ei(this.eWrapper,t),this},o.prototype.getFocusableElement=function(){return this.eWrapper},xn([dn("eLabel")],o.prototype,"eLabel",void 0),xn([dn("eWrapper")],o.prototype,"eWrapper",void 0),xn([dn("eDisplayField")],o.prototype,"eDisplayField",void 0),xn([dn("eIcon")],o.prototype,"eIcon",void 0),o}(In),Vn=function(){var t=function(e,o){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])})(e,o)};return function(e,o){function i(){this.constructor=e}t(e,o),e.prototype=null===o?Object.create(o):(i.prototype=o.prototype,new i)}}(),kn=function(t,e,o,i){var n,r=arguments.length,s=r<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,o):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,o,i);else for(var a=t.length-1;a>=0;a--)(n=t[a])&&(s=(r<3?n(s):r>3?n(e,o,s):n(e,o))||s);return r>3&&s&&Object.defineProperty(e,o,s),s},Bn=function(t){function e(e){void 0===e&&(e="default");var o=t.call(this,'<div class="ag-list ag-'+e+'-list" role="listbox"></div>')||this;return o.cssIdentifier=e,o.options=[],o.itemEls=[],o}return Vn(e,t),e.prototype.init=function(){this.addManagedListener(this.getGui(),"keydown",this.handleKeyDown.bind(this))},e.prototype.handleKeyDown=function(t){var e=t.key;switch(e){case Gi.ENTER:if(this.highlightedEl){var o=this.itemEls.indexOf(this.highlightedEl);this.setValueByIndex(o)}else this.setValue(this.getValue());break;case Gi.DOWN:case Gi.UP:var i=e===Gi.DOWN,n=void 0;if(t.preventDefault(),this.highlightedEl){var r=this.itemEls.indexOf(this.highlightedEl)+(i?1:-1);r=Math.min(Math.max(r,0),this.itemEls.length-1),n=this.itemEls[r]}else n=this.itemEls[i?0:this.itemEls.length-1];this.highlightItem(n)}},e.prototype.addOptions=function(t){var e=this;return t.forEach((function(t){return e.addOption(t)})),this},e.prototype.addOption=function(t){var e=t.value,o=fe(t.text||e);return this.options.push({value:e,text:o}),this.renderOption(e,o),this.updateIndices(),this},e.prototype.updateIndices=function(){var t=this.getGui().querySelectorAll(".ag-list-item");t.forEach((function(e,o){eo(e,o+1),to(e,t.length)}))},e.prototype.renderOption=function(t,e){var o=this,i=document.createElement("div");ke(i,"option"),i.classList.add("ag-list-item","ag-"+this.cssIdentifier+"-list-item"),i.innerHTML="<span>"+e+"</span>",i.tabIndex=-1,this.itemEls.push(i),this.addManagedListener(i,"mouseover",(function(){return o.highlightItem(i)})),this.addManagedListener(i,"mouseleave",(function(){return o.clearHighlighted()})),this.addManagedListener(i,"click",(function(){return o.setValue(t)})),this.getGui().appendChild(i)},e.prototype.setValue=function(t,e){if(this.value===t)return this.fireItemSelected(),this;if(null==t)return this.reset(),this;var o=this.options.findIndex((function(e){return e.value===t}));if(-1!==o){var i=this.options[o];this.value=i.value,this.displayValue=null!=i.text?i.text:i.value,this.highlightItem(this.itemEls[o]),e||this.fireChangeEvent()}return this},e.prototype.setValueByIndex=function(t){return this.setValue(this.options[t].value)},e.prototype.getValue=function(){return this.value},e.prototype.getDisplayValue=function(){return this.displayValue},e.prototype.refreshHighlighted=function(){var t=this;this.clearHighlighted();var e=this.options.findIndex((function(e){return e.value===t.value}));-1!==e&&this.highlightItem(this.itemEls[e])},e.prototype.reset=function(){this.value=null,this.displayValue=null,this.clearHighlighted(),this.fireChangeEvent()},e.prototype.highlightItem=function(t){t.offsetParent&&(this.clearHighlighted(),this.highlightedEl=t,this.highlightedEl.classList.add(e.ACTIVE_CLASS),co(this.highlightedEl,!0),this.highlightedEl.focus())},e.prototype.clearHighlighted=function(){this.highlightedEl&&this.highlightedEl.offsetParent&&(this.highlightedEl.classList.remove(e.ACTIVE_CLASS),co(this.highlightedEl,!1),this.highlightedEl=null)},e.prototype.fireChangeEvent=function(){this.dispatchEvent({type:In.EVENT_CHANGED}),this.fireItemSelected()},e.prototype.fireItemSelected=function(){this.dispatchEvent({type:e.EVENT_ITEM_SELECTED})},e.EVENT_ITEM_SELECTED="selectedItem",e.ACTIVE_CLASS="ag-active-item",kn([B],e.prototype,"init",null),e}(cn),jn=function(){var t=function(e,o){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])})(e,o)};return function(e,o){function i(){this.constructor=e}t(e,o),e.prototype=null===o?Object.create(o):(i.prototype=o.prototype,new i)}}(),Wn=function(t,e,o,i){var n,r=arguments.length,s=r<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,o):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,o,i);else for(var a=t.length-1;a>=0;a--)(n=t[a])&&(s=(r<3?n(s):r>3?n(e,o,s):n(e,o))||s);return r>3&&s&&Object.defineProperty(e,o,s),s},Un=function(t){function e(e){return t.call(this,e,"ag-select","smallDown","listbox")||this}return jn(e,t),e.prototype.init=function(){var t=this;this.listComponent=this.createBean(new Bn("select")),this.listComponent.setParentComponent(this),this.eWrapper.tabIndex=0,this.listComponent.addManagedListener(this.listComponent,Bn.EVENT_ITEM_SELECTED,(function(){t.hideList&&t.hideList(),t.dispatchEvent({type:e.EVENT_ITEM_SELECTED})})),this.listComponent.addManagedListener(this.listComponent,In.EVENT_CHANGED,(function(){t.setValue(t.listComponent.getValue(),!1,!0),t.hideList&&t.hideList()}))},e.prototype.showPicker=function(){var t=this,e=this.listComponent.getGui(),o=this.gridOptionsService.getDocument(),i=this.addManagedListener(o.body,"wheel",(function(o){!e.contains(o.target)&&t.hideList&&t.hideList()})),n=this.addManagedListener(e,"focusout",(function(o){!e.contains(o.relatedTarget)&&t.hideList&&t.hideList()})),r=this.localeService.getLocaleTextFunc(),s=this.popupService.addPopup({modal:!0,eChild:e,closeOnEsc:!0,closedCallback:function(){t.hideList=null,t.isPickerDisplayed=!1,n(),i(),t.isAlive()&&(Ze(t.eWrapper,!1),t.getFocusableElement().focus())},ariaLabel:r("ariaLabelSelectField","Select Field")});return s&&(this.hideList=s.hideFunc),this.isPickerDisplayed=!0,Ei(e,si(this.eWrapper)),Ze(this.eWrapper,!0),e.style.maxHeight=ii(this.popupService.getPopupParent())+"px",e.style.position="absolute",this.popupService.positionPopupByComponent({type:"ag-list",eventSource:this.eWrapper,ePopup:e,position:"under",keepWithinBounds:!0}),this.listComponent.refreshHighlighted(),this.listComponent},e.prototype.addOptions=function(t){var e=this;return t.forEach((function(t){return e.addOption(t)})),this},e.prototype.addOption=function(t){return this.listComponent.addOption(t),this},e.prototype.setValue=function(e,o,i){return this.value===e?this:(i||this.listComponent.setValue(e,!0),this.listComponent.getValue()===this.getValue()?this:(this.eDisplayField.innerHTML=this.listComponent.getDisplayValue(),t.prototype.setValue.call(this,e,o)))},e.prototype.destroy=function(){this.hideList&&this.hideList(),this.destroyBean(this.listComponent),t.prototype.destroy.call(this)},e.EVENT_ITEM_SELECTED="selectedItem",Wn([U("popupService")],e.prototype,"popupService",void 0),Wn([B],e.prototype,"init",null),e}(Hn),zn=function(){var t=function(e,o){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])})(e,o)};return function(e,o){function i(){this.constructor=e}t(e,o),e.prototype=null===o?Object.create(o):(i.prototype=o.prototype,new i)}}(),Kn=function(t,e,o,i){var n,r=arguments.length,s=r<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,o):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,o,i);else for(var a=t.length-1;a>=0;a--)(n=t[a])&&(s=(r<3?n(s):r>3?n(e,o,s):n(e,o))||s);return r>3&&s&&Object.defineProperty(e,o,s),s},Yn=function(t){function o(e,o,i,n){void 0===i&&(i="text"),void 0===n&&(n="input");var r=t.call(this,e,'\n <div role="presentation">\n <div ref="eLabel" class="ag-input-field-label"></div>\n <div ref="eWrapper" class="ag-wrapper ag-input-wrapper" role="presentation">\n <'+n+' ref="eInput" class="ag-input-field-input"></'+n+">\n </div>\n </div>",o)||this;return r.inputType=i,r.displayFieldTag=n,r}return zn(o,t),o.prototype.postConstruct=function(){t.prototype.postConstruct.call(this),this.setInputType(),this.eLabel.classList.add(this.className+"-label"),this.eWrapper.classList.add(this.className+"-input-wrapper"),this.eInput.classList.add(this.className+"-input"),this.addCssClass("ag-input-field"),this.eInput.id=this.eInput.id||"ag-"+this.getCompId()+"-input";var e=this.config,o=e.width,i=e.value;null!=o&&this.setWidth(o),null!=i&&this.setValue(i),this.addInputListeners()},o.prototype.refreshLabel=function(){e(this.getLabel())?ze(this.eInput,this.getLabelId()):this.eInput.removeAttribute("aria-labelledby"),t.prototype.refreshLabel.call(this)},o.prototype.addInputListeners=function(){var t=this;this.addManagedListener(this.eInput,"input",(function(e){return t.setValue(e.target.value)}))},o.prototype.setInputType=function(){"input"===this.displayFieldTag&&this.eInput.setAttribute("type",this.inputType)},o.prototype.getInputElement=function(){return this.eInput},o.prototype.setInputWidth=function(t){return Ei(this.eWrapper,t),this},o.prototype.setInputName=function(t){return this.getInputElement().setAttribute("name",t),this},o.prototype.getFocusableElement=function(){return this.eInput},o.prototype.setMaxLength=function(t){return this.eInput.maxLength=t,this},o.prototype.setInputPlaceholder=function(t){return _i(this.eInput,"placeholder",t),this},o.prototype.setInputAriaLabel=function(t){return Ue(this.eInput,t),this},o.prototype.setDisabled=function(e){return ti(this.eInput,e),t.prototype.setDisabled.call(this,e)},Kn([dn("eLabel")],o.prototype,"eLabel",void 0),Kn([dn("eWrapper")],o.prototype,"eWrapper",void 0),Kn([dn("eInput")],o.prototype,"eInput",void 0),o}(In),qn=function(){var t=function(e,o){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])})(e,o)};return function(e,o){function i(){this.constructor=e}t(e,o),e.prototype=null===o?Object.create(o):(i.prototype=o.prototype,new i)}}(),Qn=function(t){function e(e,o,i){void 0===o&&(o="ag-checkbox"),void 0===i&&(i="checkbox");var n=t.call(this,e,o,i)||this;return n.labelAlignment="right",n.selected=!1,n.readOnly=!1,n.passive=!1,n}return qn(e,t),e.prototype.addInputListeners=function(){this.addManagedListener(this.eInput,"click",this.onCheckboxClick.bind(this)),this.addManagedListener(this.eLabel,"click",this.toggle.bind(this))},e.prototype.getNextValue=function(){return void 0===this.selected||!this.selected},e.prototype.setPassive=function(t){this.passive=t},e.prototype.isReadOnly=function(){return this.readOnly},e.prototype.setReadOnly=function(t){this.eWrapper.classList.toggle("ag-disabled",t),this.eInput.disabled=t,this.readOnly=t},e.prototype.setDisabled=function(e){return this.eWrapper.classList.toggle("ag-disabled",e),t.prototype.setDisabled.call(this,e)},e.prototype.toggle=function(){if(!this.eInput.disabled){var t=this.isSelected(),e=this.getNextValue();this.passive?this.dispatchChange(e,t):this.setValue(e)}},e.prototype.getValue=function(){return this.isSelected()},e.prototype.setValue=function(t,e){return this.refreshSelectedClass(t),this.setSelected(t,e),this},e.prototype.setName=function(t){return this.getInputElement().name=t,this},e.prototype.isSelected=function(){return this.selected},e.prototype.setSelected=function(t,e){this.isSelected()!==t&&(this.previousValue=this.isSelected(),t=this.selected="boolean"==typeof t?t:void 0,this.eInput.checked=t,this.eInput.indeterminate=void 0===t,e||this.dispatchChange(this.selected,this.previousValue))},e.prototype.dispatchChange=function(t,o,i){this.dispatchEvent({type:e.EVENT_CHANGED,selected:t,previousValue:o,event:i});var n=this.getInputElement(),r={type:kt.EVENT_CHECKBOX_CHANGED,id:n.id,name:n.name,selected:t,previousValue:o};this.eventService.dispatchEvent(r)},e.prototype.onCheckboxClick=function(t){if(!this.passive&&!this.eInput.disabled){var e=this.isSelected(),o=this.selected=t.target.checked;this.refreshSelectedClass(o),this.dispatchChange(o,e,t)}},e.prototype.refreshSelectedClass=function(t){this.eWrapper.classList.toggle("ag-checked",!0===t),this.eWrapper.classList.toggle("ag-indeterminate",null==t)},e}(Yn),Xn=function(){var t=function(e,o){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])})(e,o)};return function(e,o){function i(){this.constructor=e}t(e,o),e.prototype=null===o?Object.create(o):(i.prototype=o.prototype,new i)}}(),Jn=function(t){function e(e){return t.call(this,e,"ag-radio-button","radio")||this}return Xn(e,t),e.prototype.isSelected=function(){return this.eInput.checked},e.prototype.toggle=function(){this.eInput.disabled||this.isSelected()||this.setValue(!0)},e.prototype.addInputListeners=function(){t.prototype.addInputListeners.call(this),this.addManagedListener(this.eventService,kt.EVENT_CHECKBOX_CHANGED,this.onChange.bind(this))},e.prototype.onChange=function(t){t.selected&&t.name&&this.eInput.name&&this.eInput.name===t.name&&t.id&&this.eInput.id!==t.id&&this.setValue(!1,!0)},e}(Qn),Zn=function(){var t=function(e,o){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])})(e,o)};return function(e,o){function i(){this.constructor=e}t(e,o),e.prototype=null===o?Object.create(o):(i.prototype=o.prototype,new i)}}(),$n=function(t,e){var o="function"==typeof Symbol&&t[Symbol.iterator];if(!o)return t;var i,n,r=o.call(t),s=[];try{for(;(void 0===e||e-- >0)&&!(i=r.next()).done;)s.push(i.value)}catch(t){n={error:t}}finally{try{i&&!i.done&&(o=r.return)&&o.call(r)}finally{if(n)throw n.error}}return s},tr=function(){for(var t=[],e=0;e<arguments.length;e++)t=t.concat($n(arguments[e]));return t},er=function(){function t(t,e){this.localeService=t,this.optionsFactory=e}return t.prototype.getModelAsString=function(t){var e=this;if(!t)return null;var o=null!=t.operator,i=this.localeService.getLocaleTextFunc();if(o){var n=t,r=n.conditions;if(!r)r=[n.condition1,n.condition2];var s=r.map((function(t){return e.getModelAsString(t)})),a="AND"===n.operator?"andCondition":"orCondition";return s.join(" "+i(a,wn[a])+" ")}if(t.type===or.BLANK||t.type===or.NOT_BLANK)return i(t.type,t.type);var l=t,u=this.optionsFactory.getCustomOption(l.type),c=u||{},p=c.displayKey,d=c.displayName,h=c.numberOfInputs;return p&&d&&0===h?(i(p,d),d):this.conditionToString(l,u)},t}(),or=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.eTypes=[],e.eJoinOperatorPanels=[],e.eJoinOperatorsAnd=[],e.eJoinOperatorsOr=[],e.eConditionBodies=[],e.listener=function(){return e.onUiChanged()},e.lastUiCompletePosition=null,e.joinOperatorId=0,e}return Zn(e,t),e.prototype.getNumberOfInputs=function(t){var o=this.optionsFactory.getCustomOption(t);if(o){var i=o.numberOfInputs;return null!=i?i:1}var n=[e.EMPTY,e.NOT_BLANK,e.BLANK];return t&&n.indexOf(t)>=0?0:t===e.IN_RANGE?2:1},e.prototype.onFloatingFilterChanged=function(t,e){this.setTypeFromFloatingFilter(t),this.setValueFromFloatingFilter(e),this.onUiChanged(!0)},e.prototype.setTypeFromFloatingFilter=function(t){var e=this;this.eTypes.forEach((function(o,i){0===i?o.setValue(t,!0):o.setValue(e.optionsFactory.getDefaultOption(),!0)}))},e.prototype.getModelFromUi=function(){var t=this.getUiCompleteConditions();return 0===t.length?null:this.maxNumConditions>1&&t.length>1?{filterType:this.getFilterType(),operator:this.getJoinOperator(),condition1:t[0],condition2:t[1],conditions:t}:t[0]},e.prototype.getConditionTypes=function(){return this.eTypes.map((function(t){return t.getValue()}))},e.prototype.getConditionType=function(t){return this.eTypes[t].getValue()},e.prototype.getJoinOperator=function(){return 0===this.eJoinOperatorsOr.length?this.defaultJoinOperator:!0===this.eJoinOperatorsOr[0].getValue()?"OR":"AND"},e.prototype.areModelsEqual=function(t,e){var o=this;if(!t&&!e)return!0;if(!t&&e||t&&!e)return!1;var i,n=!t.operator,r=!e.operator;if(!n&&r||n&&!r)return!1;if(n){var s=t,a=e;i=this.areSimpleModelsEqual(s,a)}else{var l=t,u=e;i=l.operator===u.operator&&ct(l.conditions,u.conditions,(function(t,e){return o.areSimpleModelsEqual(t,e)}))}return i},e.prototype.setModelIntoUi=function(t){var e=this;if(t.operator){var o=t;o.conditions||(o.conditions=[o.condition1,o.condition2]);var i=this.validateAndUpdateConditions(o.conditions),n=this.getNumConditions();if(i<n)this.removeConditionsAndOperators(i);else if(i>n)for(var r=n;r<i;r++)this.createJoinOperatorPanel(),this.createOption();var s="OR"===o.operator;this.eJoinOperatorsAnd.forEach((function(t){return t.setValue(!s,!0)})),this.eJoinOperatorsOr.forEach((function(t){return t.setValue(s,!0)})),o.conditions.forEach((function(t,o){e.eTypes[o].setValue(t.type,!0),e.setConditionIntoUi(t,o)}))}else{var a=t;this.getNumConditions()>1&&this.removeConditionsAndOperators(1),this.eTypes[0].setValue(a.type,!0),this.setConditionIntoUi(a,0)}return this.lastUiCompletePosition=this.getNumConditions()-1,this.createMissingConditionsAndOperators(),this.onUiChanged(),$i.resolve()},e.prototype.validateAndUpdateConditions=function(t){var e=t.length;return e>this.maxNumConditions&&(t.splice(this.maxNumConditions),O((function(){return console.warn('AG Grid: Filter Model contains more conditions than "filterParams.maxNumConditions". Additional conditions have been ignored.')}),"simpleFilterSetModelMaxNumConditions"),e=this.maxNumConditions),e},e.prototype.doesFilterPass=function(t){var e,o=this,i=this.getModel();if(null==i)return!0;var n=i.operator,r=[];if(n){var s=i;r.push.apply(r,tr(null!==(e=s.conditions)&&void 0!==e?e:[]))}else r.push(i);return r[n&&"OR"===n?"some":"every"]((function(e){return o.individualConditionPasses(t,e)}))},e.prototype.setParams=function(e){t.prototype.setParams.call(this,e),this.setNumConditions(e),this.defaultJoinOperator=this.getDefaultJoinOperator(e.defaultJoinOperator),this.filterPlaceholder=e.filterPlaceholder,this.optionsFactory=new Cn,this.optionsFactory.init(e,this.getDefaultFilterOptions()),this.createOption(),this.createMissingConditionsAndOperators()},e.prototype.setNumConditions=function(t){var e,o;null!=t.suppressAndOrCondition&&O((function(){return console.warn('AG Grid: Since v29.2 "filterParams.suppressAndOrCondition" is deprecated. Use "filterParams.maxNumConditions = 1" instead.')}),"simpleFilterSuppressAndOrCondition"),null!=t.alwaysShowBothConditions&&O((function(){return console.warn('AG Grid: Since v29.2 "filterParams.alwaysShowBothConditions" is deprecated. Use "filterParams.numAlwaysVisibleConditions = 2" instead.')}),"simpleFilterAlwaysShowBothConditions"),this.maxNumConditions=null!==(e=t.maxNumConditions)&&void 0!==e?e:t.suppressAndOrCondition?1:2,this.maxNumConditions<1&&(O((function(){return console.warn('AG Grid: "filterParams.maxNumConditions" must be greater than or equal to zero.')}),"simpleFilterMaxNumConditions"),this.maxNumConditions=1),this.numAlwaysVisibleConditions=null!==(o=t.numAlwaysVisibleConditions)&&void 0!==o?o:t.alwaysShowBothConditions?2:1,this.numAlwaysVisibleConditions<1&&(O((function(){return console.warn('AG Grid: "filterParams.numAlwaysVisibleConditions" must be greater than or equal to zero.')}),"simpleFilterNumAlwaysVisibleConditions"),this.numAlwaysVisibleConditions=1),this.numAlwaysVisibleConditions>this.maxNumConditions&&(O((function(){return console.warn('AG Grid: "filterParams.numAlwaysVisibleConditions" cannot be greater than "filterParams.maxNumConditions".')}),"simpleFilterNumAlwaysVisibleGreaterThanMaxNumConditions"),this.numAlwaysVisibleConditions=this.maxNumConditions)},e.prototype.createOption=function(){var t=this,e=this.createManagedBean(new Un);this.eTypes.push(e),e.addCssClass("ag-filter-select"),this.eFilterBody.appendChild(e.getGui());var o=this.createValueElement();this.eConditionBodies.push(o),this.eFilterBody.appendChild(o),this.putOptionsIntoDropdown(e),this.resetType(e);var i=this.getNumConditions()-1;this.forEachPositionInput(i,(function(e){return t.resetInput(e)})),this.addChangedListeners(e,i)},e.prototype.createJoinOperatorPanel=function(){var t=document.createElement("div");this.eJoinOperatorPanels.push(t),t.classList.add("ag-filter-condition");var e=this.createJoinOperator(this.eJoinOperatorsAnd,t,"and"),o=this.createJoinOperator(this.eJoinOperatorsOr,t,"or");this.eFilterBody.appendChild(t);var i=this.eJoinOperatorPanels.length-1,n=this.joinOperatorId++;this.resetJoinOperatorAnd(e,i,n),this.resetJoinOperatorOr(o,i,n),this.isReadOnly()||(e.onValueChange(this.listener),o.onValueChange(this.listener))},e.prototype.createJoinOperator=function(t,e,o){var i=this.createManagedBean(new Jn);return t.push(i),i.addCssClass("ag-filter-condition-operator"),i.addCssClass("ag-filter-condition-operator-"+o),e.appendChild(i.getGui()),i},e.prototype.getDefaultJoinOperator=function(t){return"AND"===t||"OR"===t?t:"AND"},e.prototype.putOptionsIntoDropdown=function(t){var e=this,o=this.optionsFactory.getFilterOptions();o.forEach((function(o){var i="string"==typeof o?e.createBoilerplateListOption(o):e.createCustomListOption(o);t.addOption(i)})),t.setDisabled(o.length<=1)},e.prototype.createBoilerplateListOption=function(t){return{value:t,text:this.translate(t)}},e.prototype.createCustomListOption=function(t){var e=t.displayKey,o=this.optionsFactory.getCustomOption(t.displayKey);return{value:e,text:o?this.localeService.getLocaleTextFunc()(o.displayKey,o.displayName):this.translate(e)}},e.prototype.isAllowTwoConditions=function(){return this.maxNumConditions>=2},e.prototype.createBodyTemplate=function(){return""},e.prototype.getCssIdentifier=function(){return"simple-filter"},e.prototype.updateUiVisibility=function(){var t=this.getJoinOperator();this.updateNumConditions(),this.updateConditionStatusesAndValues(this.lastUiCompletePosition,t)},e.prototype.updateNumConditions=function(){for(var t,e=-1,o=!0,i=0;i<this.getNumConditions();i++)this.isConditionUiComplete(i)?e=i:o=!1;if(this.shouldAddNewConditionAtEnd(o))this.createJoinOperatorPanel(),this.createOption();else{var n=null!==(t=this.lastUiCompletePosition)&&void 0!==t?t:this.getNumConditions()-2;if(e<n){this.removeConditionsAndOperators(n+1);var r=e+1,s=n-r;s>0&&this.removeConditionsAndOperators(r,s),this.createMissingConditionsAndOperators()}}this.lastUiCompletePosition=e},e.prototype.updateConditionStatusesAndValues=function(t,e){var o=this;this.eTypes.forEach((function(e,i){var n=o.isConditionDisabled(i,t);(1===i?[e,o.eJoinOperatorPanels[0],o.eJoinOperatorsAnd[0],o.eJoinOperatorsOr[0]]:[e]).forEach((function(t){t instanceof Yn||t instanceof Un?t.setDisabled(n):ti(t,n)}))})),this.eConditionBodies.forEach((function(t,e){Zo(t,o.isConditionBodyVisible(e))}));var i="OR"===(null!=e?e:this.getJoinOperator());this.eJoinOperatorsAnd.forEach((function(t,e){t.setValue(!i,!0)})),this.eJoinOperatorsOr.forEach((function(t,e){t.setValue(i,!0)})),this.forEachInput((function(e,i,n,r){o.setElementDisplayed(e,i<r),o.setElementDisabled(e,o.isConditionDisabled(n,t))})),this.resetPlaceholder()},e.prototype.shouldAddNewConditionAtEnd=function(t){return t&&this.getNumConditions()<this.maxNumConditions&&!this.isReadOnly()},e.prototype.removeConditionsAndOperators=function(t,e){if(!(t>=this.getNumConditions())){this.removeComponents(this.eTypes,t,e),this.removeElements(this.eConditionBodies,t,e),this.removeValueElements(t,e);var o=Math.max(t-1,0);this.removeElements(this.eJoinOperatorPanels,o,e),this.removeComponents(this.eJoinOperatorsAnd,o,e),this.removeComponents(this.eJoinOperatorsOr,o,e)}},e.prototype.removeElements=function(t,e,o){this.removeItems(t,e,o).forEach((function(t){return pi(t)}))},e.prototype.removeComponents=function(t,e,o){var i=this;this.removeItems(t,e,o).forEach((function(t){pi(t.getGui()),i.destroyBean(t)}))},e.prototype.removeItems=function(t,e,o){return null==o?t.splice(e):t.splice(e,o)},e.prototype.afterGuiAttached=function(e){if(t.prototype.afterGuiAttached.call(this,e),this.resetPlaceholder(),!e||!e.suppressFocus&&!this.isReadOnly()){var o=this.getInputs(0)[0];if(!o)return;o instanceof Yn&&o.getInputElement().focus()}},e.prototype.afterGuiDetached=function(){t.prototype.afterGuiDetached.call(this);var e=this.getModel();this.areModelsEqual(e,this.getModelFromUi())||this.resetUiToActiveModel(e);for(var o=-1,i=-1,n=!1,r=this.getJoinOperator(),s=this.getNumConditions()-1;s>=0;s--)if(this.isConditionUiComplete(s))-1===o&&(o=s,i=s);else{var a=s<o;(s>=this.numAlwaysVisibleConditions&&!this.isConditionUiComplete(s-1)||a)&&(this.removeConditionsAndOperators(s,1),n=!0,a&&i--)}var l=!1;this.getNumConditions()<this.numAlwaysVisibleConditions&&(this.createMissingConditionsAndOperators(),l=!0),this.shouldAddNewConditionAtEnd(i===this.getNumConditions()-1)&&(this.createJoinOperatorPanel(),this.createOption(),l=!0),l&&this.updateConditionStatusesAndValues(i,r),n&&this.updateJoinOperatorsDisabled(),this.lastUiCompletePosition=i},e.prototype.getPlaceholderText=function(t,e){var o=this.translate(t);if(T(this.filterPlaceholder)){var i=this.filterPlaceholder,n=this.eTypes[e].getValue();o=i({filterOptionKey:n,filterOption:this.translate(n),placeholder:o})}else"string"==typeof this.filterPlaceholder&&(o=this.filterPlaceholder);return o},e.prototype.resetPlaceholder=function(){var t=this,e=this.localeService.getLocaleTextFunc();this.forEachInput((function(o,i,n,r){if(o instanceof Yn){var s=0===i&&r>1?"inRangeStart":0===i?"filterOoo":"inRangeEnd",a=0===i&&r>1?e("ariaFilterFromValue","Filter from value"):0===i?e("ariaFilterValue","Filter Value"):e("ariaFilterToValue","Filter to Value");o.setInputPlaceholder(t.getPlaceholderText(s,n)),o.setInputAriaLabel(a)}}))},e.prototype.setElementValue=function(t,e){t instanceof Yn&&t.setValue(null!=e?String(e):null,!0)},e.prototype.setElementDisplayed=function(t,e){t instanceof cn&&Zo(t.getGui(),e)},e.prototype.setElementDisabled=function(t,e){t instanceof cn&&ti(t.getGui(),e)},e.prototype.attachElementOnChange=function(t,e){t instanceof Yn&&t.onValueChange(e)},e.prototype.forEachInput=function(t){var e=this;this.getConditionTypes().forEach((function(o,i){e.forEachPositionTypeInput(i,o,t)}))},e.prototype.forEachPositionInput=function(t,e){var o=this.getConditionType(t);this.forEachPositionTypeInput(t,o,e)},e.prototype.forEachPositionTypeInput=function(t,e,o){for(var i=this.getNumberOfInputs(e),n=this.getInputs(t),r=0;r<n.length;r++){var s=n[r];null!=s&&o(s,r,t,i)}},e.prototype.isConditionDisabled=function(t,e){return!!this.isReadOnly()||0!==t&&t>e+1},e.prototype.isConditionBodyVisible=function(t){var e=this.getConditionType(t);return this.getNumberOfInputs(e)>0},e.prototype.isConditionUiComplete=function(t){return!(t>=this.getNumConditions())&&(this.getConditionType(t)!==e.EMPTY&&!this.getValues(t).some((function(t){return null==t})))},e.prototype.getNumConditions=function(){return this.eTypes.length},e.prototype.getUiCompleteConditions=function(){for(var t=[],e=0;e<this.getNumConditions();e++)this.isConditionUiComplete(e)&&t.push(this.createCondition(e));return t},e.prototype.createMissingConditionsAndOperators=function(){if(!this.isReadOnly())for(var t=this.getNumConditions();t<this.numAlwaysVisibleConditions;t++)this.createJoinOperatorPanel(),this.createOption()},e.prototype.resetUiToDefaults=function(t){var e=this;return this.removeConditionsAndOperators(this.isReadOnly()?1:this.numAlwaysVisibleConditions),this.eTypes.forEach((function(t){return e.resetType(t)})),this.eJoinOperatorsAnd.forEach((function(t,o){return e.resetJoinOperatorAnd(t,o,e.joinOperatorId+o)})),this.eJoinOperatorsOr.forEach((function(t,o){return e.resetJoinOperatorOr(t,o,e.joinOperatorId+o)})),this.joinOperatorId++,this.forEachInput((function(t){return e.resetInput(t)})),this.resetPlaceholder(),this.createMissingConditionsAndOperators(),this.lastUiCompletePosition=null,t||this.onUiChanged(),$i.resolve()},e.prototype.resetType=function(t){var e=this.localeService.getLocaleTextFunc()("ariaFilteringOperator","Filtering operator");t.setValue(this.optionsFactory.getDefaultOption(),!0).setAriaLabel(e).setDisabled(this.isReadOnly())},e.prototype.resetJoinOperatorAnd=function(t,e,o){this.resetJoinOperator(t,e,this.isDefaultOperator("AND"),this.translate("andCondition"),o)},e.prototype.resetJoinOperatorOr=function(t,e,o){this.resetJoinOperator(t,e,this.isDefaultOperator("OR"),this.translate("orCondition"),o)},e.prototype.resetJoinOperator=function(t,e,o,i,n){this.updateJoinOperatorDisabled(t.setValue(o,!0).setName("ag-simple-filter-and-or-"+this.getCompId()+"-"+n).setLabel(i),e)},e.prototype.updateJoinOperatorsDisabled=function(){var t=this;this.eJoinOperatorsAnd.forEach((function(e,o){return t.updateJoinOperatorDisabled(e,o)})),this.eJoinOperatorsOr.forEach((function(e,o){return t.updateJoinOperatorDisabled(e,o)}))},e.prototype.updateJoinOperatorDisabled=function(t,e){t.setDisabled(this.isReadOnly()||e>0)},e.prototype.resetInput=function(t){this.setElementValue(t,null),this.setElementDisabled(t,this.isReadOnly())},e.prototype.setConditionIntoUi=function(t,e){var o=this,i=this.mapValuesFromModel(t);this.forEachInput((function(t,n,r,s){r===e&&o.setElementValue(t,null!=i[n]?i[n]:null)}))},e.prototype.setValueFromFloatingFilter=function(t){var e=this;this.forEachInput((function(o,i,n,r){e.setElementValue(o,0===i&&0===n?t:null)}))},e.prototype.isDefaultOperator=function(t){return t===this.defaultJoinOperator},e.prototype.addChangedListeners=function(t,e){var o=this;this.isReadOnly()||(t.onValueChange(this.listener),this.forEachPositionInput(e,(function(t){o.attachElementOnChange(t,o.listener)})))},e.prototype.individualConditionPasses=function(t,e){var o=this.getCellValue(t.node),i=this.mapValuesFromModel(e),n=this.optionsFactory.getCustomOption(e.type),r=this.evaluateCustomFilter(n,i,o);return null!=r?r:null==o?this.evaluateNullValue(e.type):this.evaluateNonNullValue(i,o,e,t)},e.prototype.evaluateCustomFilter=function(t,e,o){if(null!=t){var i=t.predicate;return null==i||e.some((function(t){return null==t}))?void 0:i(e,o)}},e.prototype.isBlank=function(t){return null==t||"string"==typeof t&&0===t.trim().length},e.EMPTY="empty",e.BLANK="blank",e.NOT_BLANK="notBlank",e.EQUALS="equals",e.NOT_EQUAL="notEqual",e.LESS_THAN="lessThan",e.LESS_THAN_OR_EQUAL="lessThanOrEqual",e.GREATER_THAN="greaterThan",e.GREATER_THAN_OR_EQUAL="greaterThanOrEqual",e.IN_RANGE="inRange",e.CONTAINS="contains",e.NOT_CONTAINS="notContains",e.STARTS_WITH="startsWith",e.ENDS_WITH="endsWith",e}(An),ir=function(){var t=function(e,o){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])})(e,o)};return function(e,o){function i(){this.constructor=e}t(e,o),e.prototype=null===o?Object.create(o):(i.prototype=o.prototype,new i)}}(),nr=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return ir(e,t),e.prototype.setParams=function(e){t.prototype.setParams.call(this,e),this.scalarFilterParams=e},e.prototype.evaluateNullValue=function(t){switch(t){case e.EQUALS:case e.NOT_EQUAL:if(this.scalarFilterParams.includeBlanksInEquals)return!0;break;case e.GREATER_THAN:case e.GREATER_THAN_OR_EQUAL:if(this.scalarFilterParams.includeBlanksInGreaterThan)return!0;break;case e.LESS_THAN:case e.LESS_THAN_OR_EQUAL:if(this.scalarFilterParams.includeBlanksInLessThan)return!0;break;case e.IN_RANGE:if(this.scalarFilterParams.includeBlanksInRange)return!0;break;case e.BLANK:return!0;case e.NOT_BLANK:return!1}return!1},e.prototype.evaluateNonNullValue=function(t,o,i){var n=this.comparator(),r=null!=t[0]?n(t[0],o):0;switch(i.type){case e.EQUALS:return 0===r;case e.NOT_EQUAL:return 0!==r;case e.GREATER_THAN:return r>0;case e.GREATER_THAN_OR_EQUAL:return r>=0;case e.LESS_THAN:return r<0;case e.LESS_THAN_OR_EQUAL:return r<=0;case e.IN_RANGE:var s=n(t[1],o);return this.scalarFilterParams.inRangeInclusive?r>=0&&s<=0:r>0&&s<0;case e.BLANK:return this.isBlank(o);case e.NOT_BLANK:return!this.isBlank(o);default:return console.warn('AG Grid: Unexpected type of filter "'+i.type+'", it looks like the filter was configured with incorrect Filter Options'),!0}},e}(or),rr=function(){var t=function(e,o){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])})(e,o)};return function(e,o){function i(){this.constructor=e}t(e,o),e.prototype=null===o?Object.create(o):(i.prototype=o.prototype,new i)}}(),sr=function(){return(sr=Object.assign||function(t){for(var e,o=1,i=arguments.length;o<i;o++)for(var n in e=arguments[o])Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t}).apply(this,arguments)},ar=function(t,e,o,i){var n,r=arguments.length,s=r<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,o):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,o,i);else for(var a=t.length-1;a>=0;a--)(n=t[a])&&(s=(r<3?n(s):r>3?n(e,o,s):n(e,o))||s);return r>3&&s&&Object.defineProperty(e,o,s),s},lr=function(t){function e(e,o,i){var n=t.call(this,o,i)||this;return n.dateFilterParams=e,n}return rr(e,t),e.prototype.conditionToString=function(t,e){var o=t.type,i=(e||{}).numberOfInputs,n=o==or.IN_RANGE||2===i,r=zo(t.dateFrom),s=zo(t.dateTo),a=this.dateFilterParams.inRangeFloatingFilterDateFormat;return n?(null!==r?Uo(r,a):"null")+"-"+(null!==s?Uo(s,a):"null"):null!=r?Uo(r,a):""+o},e}(er),ur=function(t){function e(){var e=t.call(this,"dateFilter")||this;return e.eConditionPanelsFrom=[],e.eConditionPanelsTo=[],e.dateConditionFromComps=[],e.dateConditionToComps=[],e.minValidYear=1e3,e.maxValidYear=1/0,e}return rr(e,t),e.prototype.afterGuiAttached=function(e){t.prototype.afterGuiAttached.call(this,e),this.dateConditionFromComps[0].afterGuiAttached(e)},e.prototype.mapValuesFromModel=function(t){var e=t||{},o=e.dateFrom,i=e.dateTo,n=e.type;return[o&&zo(o)||null,i&&zo(i)||null].slice(0,this.getNumberOfInputs(n))},e.prototype.comparator=function(){return this.dateFilterParams.comparator?this.dateFilterParams.comparator:this.defaultComparator.bind(this)},e.prototype.defaultComparator=function(t,e){return null==e||e<t?-1:e>t?1:0},e.prototype.setParams=function(e){this.dateFilterParams=e,t.prototype.setParams.call(this,e);var o=function(t,o){if(null!=e[t]){if(!isNaN(e[t]))return null==e[t]?o:Number(e[t]);console.warn("AG Grid: DateFilter "+t+" is not a number")}return o};this.minValidYear=o("minValidYear",1e3),this.maxValidYear=o("maxValidYear",1/0),this.minValidYear>this.maxValidYear&&console.warn("AG Grid: DateFilter minValidYear should be <= maxValidYear"),this.filterModelFormatter=new lr(this.dateFilterParams,this.localeService,this.optionsFactory)},e.prototype.createDateCompWrapper=function(t){var e=this,o=new yn(this.getContext(),this.userComponentFactory,{onDateChanged:function(){return e.onUiChanged()},filterParams:this.dateFilterParams},t);return this.addDestroyFunc((function(){return o.destroy()})),o},e.prototype.setElementValue=function(t,e){t.setDate(e)},e.prototype.setElementDisplayed=function(t,e){t.setDisplayed(e)},e.prototype.setElementDisabled=function(t,e){t.setDisabled(e)},e.prototype.getDefaultFilterOptions=function(){return e.DEFAULT_FILTER_OPTIONS},e.prototype.createValueElement=function(){var t=document.createElement("div");return t.classList.add("ag-filter-body"),this.createFromToElement(t,this.eConditionPanelsFrom,this.dateConditionFromComps,"from"),this.createFromToElement(t,this.eConditionPanelsTo,this.dateConditionToComps,"to"),t},e.prototype.createFromToElement=function(t,e,o,i){var n=document.createElement("div");n.classList.add("ag-filter-"+i),n.classList.add("ag-filter-date-"+i),e.push(n),t.appendChild(n),o.push(this.createDateCompWrapper(n))},e.prototype.removeValueElements=function(t,e){this.removeDateComps(this.dateConditionFromComps,t,e),this.removeDateComps(this.dateConditionToComps,t,e),this.removeItems(this.eConditionPanelsFrom,t,e),this.removeItems(this.eConditionPanelsTo,t,e)},e.prototype.removeDateComps=function(t,e,o){this.removeItems(t,e,o).forEach((function(t){return t.destroy()}))},e.prototype.isConditionUiComplete=function(e){var o=this;if(!t.prototype.isConditionUiComplete.call(this,e))return!1;var i=!0;return this.forEachInput((function(t,n,r,s){var a;r!==e||!i||n>=s||(i=i&&(null!=(a=t.getDate())&&a.getUTCFullYear()>=o.minValidYear&&a.getUTCFullYear()<=o.maxValidYear))})),i},e.prototype.areSimpleModelsEqual=function(t,e){return t.dateFrom===e.dateFrom&&t.dateTo===e.dateTo&&t.type===e.type},e.prototype.getFilterType=function(){return"date"},e.prototype.createCondition=function(t){var e=this.getConditionType(t),o={},i=this.getValues(t);return i.length>0&&(o.dateFrom=jo(i[0])),i.length>1&&(o.dateTo=jo(i[1])),sr({dateFrom:null,dateTo:null,filterType:this.getFilterType(),type:e},o)},e.prototype.resetPlaceholder=function(){var t=this.localeService.getLocaleTextFunc(),e=this.translate("dateFormatOoo"),o=t("ariaFilterValue","Filter Value");this.forEachInput((function(t){t.setInputPlaceholder(e),t.setInputAriaLabel(o)}))},e.prototype.getInputs=function(t){return t>=this.dateConditionFromComps.length?[null,null]:[this.dateConditionFromComps[t],this.dateConditionToComps[t]]},e.prototype.getValues=function(t){var e=[];return this.forEachPositionInput(t,(function(t,o,i,n){o<n&&e.push(t.getDate())})),e},e.prototype.getModelAsString=function(t){var e;return null!==(e=this.filterModelFormatter.getModelAsString(t))&&void 0!==e?e:""},e.DEFAULT_FILTER_OPTIONS=[nr.EQUALS,nr.GREATER_THAN,nr.LESS_THAN,nr.NOT_EQUAL,nr.IN_RANGE,nr.BLANK,nr.NOT_BLANK],ar([U("userComponentFactory")],e.prototype,"userComponentFactory",void 0),e}(nr),cr=function(){var t=function(e,o){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])})(e,o)};return function(e,o){function i(){this.constructor=e}t(e,o),e.prototype=null===o?Object.create(o):(i.prototype=o.prototype,new i)}}(),pr=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return cr(e,t),e.prototype.getDefaultDebounceMs=function(){return 0},e.prototype.destroy=function(){t.prototype.destroy.call(this)},e.prototype.isEventFromFloatingFilter=function(t){return t&&t.afterFloatingFilter},e.prototype.isEventFromDataChange=function(t){return null==t?void 0:t.afterDataChange},e.prototype.getLastType=function(){return this.lastType},e.prototype.isReadOnly=function(){return this.readOnly},e.prototype.setLastTypeFromModel=function(t){if(t){var e;if(t.operator)e=t.conditions[0];else e=t;this.lastType=e.type}else this.lastType=this.optionsFactory.getDefaultOption()},e.prototype.canWeEditAfterModelFromParentFilter=function(t){if(!t)return this.isTypeEditable(this.lastType);if(t.operator)return!1;var e=t;return this.isTypeEditable(e.type)},e.prototype.init=function(t){this.optionsFactory=new Cn,this.optionsFactory.init(t.filterParams,this.getDefaultFilterOptions()),this.lastType=this.optionsFactory.getDefaultOption(),this.readOnly=!!t.filterParams.readOnly;var e=this.isTypeEditable(this.lastType);this.setEditable(e)},e.prototype.doesFilterHaveSingleInput=function(t){var e=(this.optionsFactory.getCustomOption(t)||{}).numberOfInputs;return null==e||1==e},e.prototype.isTypeEditable=function(t){var e=[or.IN_RANGE,or.EMPTY,or.BLANK,or.NOT_BLANK];return!!t&&!this.isReadOnly()&&this.doesFilterHaveSingleInput(t)&&e.indexOf(t)<0},e}(cn),dr=function(){var t=function(e,o){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])})(e,o)};return function(e,o){function i(){this.constructor=e}t(e,o),e.prototype=null===o?Object.create(o):(i.prototype=o.prototype,new i)}}(),hr=function(t,e,o,i){var n,r=arguments.length,s=r<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,o):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,o,i);else for(var a=t.length-1;a>=0;a--)(n=t[a])&&(s=(r<3?n(s):r>3?n(e,o,s):n(e,o))||s);return r>3&&s&&Object.defineProperty(e,o,s),s},fr=function(t){function e(){return t.call(this,'\n <div class="ag-floating-filter-input" role="presentation">\n <ag-input-text-field ref="eReadOnlyText"></ag-input-text-field>\n <div ref="eDateWrapper" style="display: flex;"></div>\n </div>')||this}return dr(e,t),e.prototype.getDefaultFilterOptions=function(){return ur.DEFAULT_FILTER_OPTIONS},e.prototype.init=function(e){t.prototype.init.call(this,e),this.params=e,this.filterParams=e.filterParams,this.createDateComponent();var o=this.localeService.getLocaleTextFunc();this.eReadOnlyText.setDisabled(!0).setInputAriaLabel(o("ariaDateFilterInput","Date Filter Input")),this.filterModelFormatter=new lr(this.filterParams,this.localeService,this.optionsFactory)},e.prototype.setEditable=function(t){Zo(this.eDateWrapper,t),Zo(this.eReadOnlyText.getGui(),!t)},e.prototype.onParentModelChanged=function(e,o){if(!this.isEventFromFloatingFilter(o)&&!this.isEventFromDataChange(o)){t.prototype.setLastTypeFromModel.call(this,e);var i=!this.isReadOnly()&&this.canWeEditAfterModelFromParentFilter(e);if(this.setEditable(i),i){if(e){var n=e;this.dateComp.setDate(zo(n.dateFrom))}else this.dateComp.setDate(null);this.eReadOnlyText.setValue("")}else this.eReadOnlyText.setValue(this.filterModelFormatter.getModelAsString(e)),this.dateComp.setDate(null)}},e.prototype.onDateChanged=function(){var t=this,e=jo(this.dateComp.getDate());this.params.parentFilterInstance((function(o){if(o){var i=zo(e);o.onFloatingFilterChanged(t.getLastType()||null,i)}}))},e.prototype.createDateComponent=function(){var t=this,e=An.getDebounceMs(this.params.filterParams,this.getDefaultDebounceMs()),o={onDateChanged:F(this.onDateChanged.bind(this),e),filterParams:this.params.column.getColDef().filterParams};this.dateComp=new yn(this.getContext(),this.userComponentFactory,o,this.eDateWrapper),this.addDestroyFunc((function(){return t.dateComp.destroy()}))},e.prototype.getFilterModelFormatter=function(){return this.filterModelFormatter},hr([U("userComponentFactory")],e.prototype,"userComponentFactory",void 0),hr([dn("eReadOnlyText")],e.prototype,"eReadOnlyText",void 0),hr([dn("eDateWrapper")],e.prototype,"eDateWrapper",void 0),e}(pr),gr=function(){var t=function(e,o){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])})(e,o)};return function(e,o){function i(){this.constructor=e}t(e,o),e.prototype=null===o?Object.create(o):(i.prototype=o.prototype,new i)}}(),vr=function(t,e,o,i){var n,r=arguments.length,s=r<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,o):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,o,i);else for(var a=t.length-1;a>=0;a--)(n=t[a])&&(s=(r<3?n(s):r>3?n(e,o,s):n(e,o))||s);return r>3&&s&&Object.defineProperty(e,o,s),s},yr=function(t){function e(){return t.call(this,'\n <div class="ag-filter-filter">\n <ag-input-text-field class="ag-date-filter" ref="eDateInput"></ag-input-text-field>\n </div>')||this}return gr(e,t),e.prototype.destroy=function(){t.prototype.destroy.call(this)},e.prototype.init=function(t){var e=this,o=this.gridOptionsService.getDocument(),i=this.eDateInput.getInputElement(),n=this.shouldUseBrowserDatePicker(t);n&&(i.type="date");var r=n&&Eo();this.addManagedListener(i,"mousedown",(function(){e.eDateInput.isDisabled()||r||i.focus()})),this.addManagedListener(i,"input",(function(i){i.target===o.activeElement&&(e.eDateInput.isDisabled()||t.onDateChanged())}));var s=t.filterParams||{},a=s.minValidYear,l=s.maxValidYear;a&&(i.min=a+"-01-01"),l&&(i.max=l+"-12-31")},e.prototype.getDate=function(){return zo(this.eDateInput.getValue())},e.prototype.setDate=function(t){this.eDateInput.setValue(jo(t,!1))},e.prototype.setInputPlaceholder=function(t){this.eDateInput.setInputPlaceholder(t)},e.prototype.setDisabled=function(t){this.eDateInput.setDisabled(t)},e.prototype.afterGuiAttached=function(t){t&&t.suppressFocus||this.eDateInput.getInputElement().focus()},e.prototype.shouldUseBrowserDatePicker=function(t){return t.filterParams&&null!=t.filterParams.browserDatePicker?t.filterParams.browserDatePicker:Oo()||bo()||Eo()&&Ro()>=14.1},vr([dn("eDateInput")],e.prototype,"eDateInput",void 0),e}(cn),mr=function(){var t=function(e,o){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])})(e,o)};return function(e,o){function i(){this.constructor=e}t(e,o),e.prototype=null===o?Object.create(o):(i.prototype=o.prototype,new i)}}(),Cr=function(t){function o(e,o,i){return void 0===o&&(o="ag-text-field"),void 0===i&&(i="text"),t.call(this,e,o,i)||this}return mr(o,t),o.prototype.postConstruct=function(){t.prototype.postConstruct.call(this),this.config.allowedCharPattern&&this.preventDisallowedCharacters()},o.prototype.setValue=function(o,i){var n=t.prototype.setValue.call(this,o,i);return this.eInput.value!==o&&(this.eInput.value=e(o)?o:""),n},o.prototype.preventDisallowedCharacters=function(){var t=new RegExp("["+this.config.allowedCharPattern+"]");this.addManagedListener(this.eInput,"keypress",(function(e){e.ctrlKey||e.metaKey||e.key&&!t.test(e.key)&&e.preventDefault()})),this.addManagedListener(this.eInput,"paste",(function(e){var o,i=null===(o=e.clipboardData)||void 0===o?void 0:o.getData("text");i&&i.split("").some((function(e){return!t.test(e)}))&&e.preventDefault()}))},o}(Yn),wr=function(){var t=function(e,o){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])})(e,o)};return function(e,o){function i(){this.constructor=e}t(e,o),e.prototype=null===o?Object.create(o):(i.prototype=o.prototype,new i)}}(),Sr=function(t){function e(e){return t.call(this,e,"ag-number-field","number")||this}return wr(e,t),e.prototype.postConstruct=function(){var e=this;t.prototype.postConstruct.call(this),this.addManagedListener(this.eInput,"blur",(function(){var t=parseFloat(e.eInput.value),o=isNaN(t)?"":e.normalizeValue(t.toString());e.value!==o&&e.setValue(o)})),this.addManagedListener(this.eInput,"wheel",this.onWheel.bind(this)),this.eInput.step="any"},e.prototype.onWheel=function(t){document.activeElement===this.eInput&&t.preventDefault()},e.prototype.normalizeValue=function(t){if(""===t)return"";this.precision&&(t=this.adjustPrecision(t));var e=parseFloat(t);return null!=this.min&&e<this.min?t=this.min.toString():null!=this.max&&e>this.max&&(t=this.max.toString()),t},e.prototype.adjustPrecision=function(t){if(this.precision){var e=parseFloat(t).toFixed(this.precision);t=parseFloat(e).toString()}return t},e.prototype.setMin=function(t){return this.min===t||(this.min=t,_i(this.eInput,"min",t)),this},e.prototype.setMax=function(t){return this.max===t||(this.max=t,_i(this.eInput,"max",t)),this},e.prototype.setPrecision=function(t){return this.precision=t,this},e.prototype.setStep=function(t){return this.step===t||(this.step=t,_i(this.eInput,"step",t)),this},e.prototype.setValue=function(e,o){if(null!=e&&(e=this.adjustPrecision(e))!=this.normalizeValue(e))return this;return t.prototype.setValue.call(this,e,o)},e}(Cr),Er=function(){var t=function(e,o){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])})(e,o)};return function(e,o){function i(){this.constructor=e}t(e,o),e.prototype=null===o?Object.create(o):(i.prototype=o.prototype,new i)}}(),Rr=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Er(e,t),e.prototype.conditionToString=function(t,e){var o=(e||{}).numberOfInputs;return t.type==or.IN_RANGE||2===o?t.filter+"-"+t.filterTo:null!=t.filter?""+t.filter:""+t.type},e}(er);function Or(t){var e=(null!=t?t:{}).allowedCharPattern;return e||(Oo()?null:"\\d\\-\\.")}var br,Tr,Pr,Dr=function(e){function o(){var t=e.call(this,"numberFilter")||this;return t.eValuesFrom=[],t.eValuesTo=[],t}return Er(o,e),o.prototype.mapValuesFromModel=function(t){var e=t||{},o=e.filter,i=e.filterTo,n=e.type;return[this.processValue(o),this.processValue(i)].slice(0,this.getNumberOfInputs(n))},o.prototype.getDefaultDebounceMs=function(){return 500},o.prototype.comparator=function(){return function(t,e){return t===e?0:t<e?1:-1}},o.prototype.setParams=function(t){this.numberFilterParams=t,e.prototype.setParams.call(this,t),this.filterModelFormatter=new Rr(this.localeService,this.optionsFactory)},o.prototype.getDefaultFilterOptions=function(){return o.DEFAULT_FILTER_OPTIONS},o.prototype.createValueElement=function(){var t=Or(this.numberFilterParams),e=document.createElement("div");return e.classList.add("ag-filter-body"),ke(e,"presentation"),this.createFromToElement(e,this.eValuesFrom,"from",t),this.createFromToElement(e,this.eValuesTo,"to",t),e},o.prototype.createFromToElement=function(t,e,o,i){var n=this.createManagedBean(i?new Cr({allowedCharPattern:i}):new Sr);n.addCssClass("ag-filter-"+o),n.addCssClass("ag-filter-filter"),e.push(n),t.appendChild(n.getGui())},o.prototype.removeValueElements=function(t,e){this.removeComponents(this.eValuesFrom,t,e),this.removeComponents(this.eValuesTo,t,e)},o.prototype.getValues=function(t){var e=this,o=[];return this.forEachPositionInput(t,(function(t,i,n,r){i<r&&o.push(e.processValue(e.stringToFloat(t.getValue())))})),o},o.prototype.areSimpleModelsEqual=function(t,e){return t.filter===e.filter&&t.filterTo===e.filterTo&&t.type===e.type},o.prototype.getFilterType=function(){return"number"},o.prototype.processValue=function(t){return null==t||isNaN(t)?null:t},o.prototype.stringToFloat=function(e){if("number"==typeof e)return e;var o=t(e);return null!=o&&""===o.trim()&&(o=null),this.numberFilterParams.numberParser?this.numberFilterParams.numberParser(o):null==o||"-"===o.trim()?null:parseFloat(o)},o.prototype.createCondition=function(t){var e=this.getConditionType(t),o={filterType:this.getFilterType(),type:e},i=this.getValues(t);return i.length>0&&(o.filter=i[0]),i.length>1&&(o.filterTo=i[1]),o},o.prototype.getInputs=function(t){return t>=this.eValuesFrom.length?[null,null]:[this.eValuesFrom[t],this.eValuesTo[t]]},o.prototype.getModelAsString=function(t){var e;return null!==(e=this.filterModelFormatter.getModelAsString(t))&&void 0!==e?e:""},o.DEFAULT_FILTER_OPTIONS=[nr.EQUALS,nr.NOT_EQUAL,nr.LESS_THAN,nr.LESS_THAN_OR_EQUAL,nr.GREATER_THAN,nr.GREATER_THAN_OR_EQUAL,nr.IN_RANGE,nr.BLANK,nr.NOT_BLANK],o}(nr),_r=function(){var t=function(e,o){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])})(e,o)};return function(e,o){function i(){this.constructor=e}t(e,o),e.prototype=null===o?Object.create(o):(i.prototype=o.prototype,new i)}}(),Ar=function(){return(Ar=Object.assign||function(t){for(var e,o=1,i=arguments.length;o<i;o++)for(var n in e=arguments[o])Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t}).apply(this,arguments)},Nr=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return _r(e,t),e.prototype.conditionToString=function(t,e){var o=(e||{}).numberOfInputs;return t.type==or.IN_RANGE||2===o?t.filter+"-"+t.filterTo:null!=t.filter?""+t.filter:""+t.type},e}(er),Fr=function(e){function o(){var t=e.call(this,"textFilter")||this;return t.eValuesFrom=[],t.eValuesTo=[],t}return _r(o,e),o.trimInput=function(t){var e=t&&t.trim();return""===e?t:e},o.prototype.getDefaultDebounceMs=function(){return 500},o.prototype.setParams=function(t){this.textFilterParams=t,e.prototype.setParams.call(this,t),this.matcher=this.getTextMatcher(),this.formatter=this.textFilterParams.textFormatter||(this.textFilterParams.caseSensitive?o.DEFAULT_FORMATTER:o.DEFAULT_LOWERCASE_FORMATTER),this.filterModelFormatter=new Nr(this.localeService,this.optionsFactory)},o.prototype.getTextMatcher=function(){var t=this.textFilterParams.textCustomComparator;return t?(Xi.doOnce((function(){return console.warn("AG Grid - textCustomComparator is deprecated, use textMatcher instead.")}),"textCustomComparator.deprecated"),function(e){var o=e.filterOption,i=e.value,n=e.filterText;return t(o,i,n)}):this.textFilterParams.textMatcher||o.DEFAULT_MATCHER},o.prototype.createCondition=function(t){var e=this.getConditionType(t),o={filterType:this.getFilterType(),type:e},i=this.getValues(t);return i.length>0&&(o.filter=i[0]),i.length>1&&(o.filterTo=i[1]),o},o.prototype.getFilterType=function(){return"text"},o.prototype.areSimpleModelsEqual=function(t,e){return t.filter===e.filter&&t.filterTo===e.filterTo&&t.type===e.type},o.prototype.getInputs=function(t){return t>=this.eValuesFrom.length?[null,null]:[this.eValuesFrom[t],this.eValuesTo[t]]},o.prototype.getValues=function(e){var i=this,n=[];return this.forEachPositionInput(e,(function(e,r,s,a){if(r<a){var l=t(e.getValue()),u=(i.textFilterParams.trimInput?o.trimInput(l):l)||null;n.push(u),e.setValue(u,!0)}})),n},o.prototype.getDefaultFilterOptions=function(){return o.DEFAULT_FILTER_OPTIONS},o.prototype.createValueElement=function(){var t=document.createElement("div");return t.classList.add("ag-filter-body"),ke(t,"presentation"),this.createFromToElement(t,this.eValuesFrom,"from"),this.createFromToElement(t,this.eValuesTo,"to"),t},o.prototype.createFromToElement=function(t,e,o){var i=this.createManagedBean(new Cr);i.addCssClass("ag-filter-"+o),i.addCssClass("ag-filter-filter"),e.push(i),t.appendChild(i.getGui())},o.prototype.removeValueElements=function(t,e){this.removeComponents(this.eValuesFrom,t,e),this.removeComponents(this.eValuesTo,t,e)},o.prototype.mapValuesFromModel=function(t){var e=t||{},o=e.filter,i=e.filterTo,n=e.type;return[o||null,i||null].slice(0,this.getNumberOfInputs(n))},o.prototype.evaluateNullValue=function(t){var e=[or.NOT_EQUAL,or.NOT_CONTAINS,or.BLANK];return!!t&&e.indexOf(t)>=0},o.prototype.evaluateNonNullValue=function(t,e,o,i){var n=this,r=t.map((function(t){return n.formatter(t)}))||[],s=this.formatter(e),a=this.textFilterParams,l=a.api,u=a.colDef,c=a.column,p=a.columnApi,d=a.context,h=a.textFormatter;if(o.type===or.BLANK)return this.isBlank(e);if(o.type===or.NOT_BLANK)return!this.isBlank(e);var f={api:l,colDef:u,column:c,columnApi:p,context:d,node:i.node,data:i.data,filterOption:o.type,value:s,textFormatter:h};return r.some((function(t){return n.matcher(Ar(Ar({},f),{filterText:t}))}))},o.prototype.getModelAsString=function(t){var e;return null!==(e=this.filterModelFormatter.getModelAsString(t))&&void 0!==e?e:""},o.DEFAULT_FILTER_OPTIONS=[or.CONTAINS,or.NOT_CONTAINS,or.EQUALS,or.NOT_EQUAL,or.STARTS_WITH,or.ENDS_WITH,or.BLANK,or.NOT_BLANK],o.DEFAULT_FORMATTER=function(t){return t},o.DEFAULT_LOWERCASE_FORMATTER=function(t){return null==t?null:t.toString().toLowerCase()},o.DEFAULT_MATCHER=function(t){var e=t.filterOption,i=t.value,n=t.filterText;if(null==n)return!1;switch(e){case o.CONTAINS:return i.indexOf(n)>=0;case o.NOT_CONTAINS:return i.indexOf(n)<0;case o.EQUALS:return i===n;case o.NOT_EQUAL:return i!=n;case o.STARTS_WITH:return 0===i.indexOf(n);case o.ENDS_WITH:var r=i.lastIndexOf(n);return r>=0&&r===i.length-n.length;default:return!1}},o}(or),Lr=function(){var t=function(e,o){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])})(e,o)};return function(e,o){function i(){this.constructor=e}t(e,o),e.prototype=null===o?Object.create(o):(i.prototype=o.prototype,new i)}}(),Mr=function(t,e,o,i){var n,r=arguments.length,s=r<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,o):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,o,i);else for(var a=t.length-1;a>=0;a--)(n=t[a])&&(s=(r<3?n(s):r>3?n(e,o,s):n(e,o))||s);return r>3&&s&&Object.defineProperty(e,o,s),s},Ir=function(t){function e(e){var o=t.call(this)||this;return o.params=e,o}return Lr(e,t),e.prototype.setupGui=function(t){this.eFloatingFilterTextInput=this.createManagedBean(new Cr(this.params.config)),this.eFloatingFilterTextInput.setInputAriaLabel(this.params.ariaLabel),t.appendChild(this.eFloatingFilterTextInput.getGui())},e.prototype.setEditable=function(t){this.eFloatingFilterTextInput.setDisabled(!t)},e.prototype.getValue=function(){return this.eFloatingFilterTextInput.getValue()},e.prototype.setValue=function(t,e){this.eFloatingFilterTextInput.setValue(t,e)},e.prototype.addValueChangedListener=function(t){var e=this.eFloatingFilterTextInput.getGui();this.addManagedListener(e,"input",t),this.addManagedListener(e,"keypress",t),this.addManagedListener(e,"keydown",t)},e}(Mt),Gr=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Lr(e,t),e.prototype.postConstruct=function(){this.setTemplate('\n <div class="ag-floating-filter-input" role="presentation" ref="eFloatingFilterInputContainer"></div>\n ')},e.prototype.getDefaultDebounceMs=function(){return 500},e.prototype.onParentModelChanged=function(t,e){this.isEventFromFloatingFilter(e)||this.isEventFromDataChange(e)||(this.setLastTypeFromModel(t),this.setEditable(this.canWeEditAfterModelFromParentFilter(t)),this.floatingFilterInputService.setValue(this.getFilterModelFormatter().getModelAsString(t)))},e.prototype.init=function(e){this.params=e;var o=this.columnModel.getDisplayNameForColumn(e.column,"header",!0)+" "+this.localeService.getLocaleTextFunc()("ariaFilterInput","Filter Input");if(this.floatingFilterInputService=this.createFloatingFilterInputService(o),this.floatingFilterInputService.setupGui(this.eFloatingFilterInputContainer),t.prototype.init.call(this,e),this.applyActive=An.isUseApplyButton(this.params.filterParams),!this.isReadOnly()){var i=An.getDebounceMs(this.params.filterParams,this.getDefaultDebounceMs()),n=F(this.syncUpWithParentFilter.bind(this),i);this.floatingFilterInputService.addValueChangedListener(n)}},e.prototype.syncUpWithParentFilter=function(t){var e=this,o=t.key===Gi.ENTER;if(!this.applyActive||o){var i=this.floatingFilterInputService.getValue();this.params.filterParams.trimInput&&(i=Fr.trimInput(i),this.floatingFilterInputService.setValue(i,!0)),this.params.parentFilterInstance((function(t){t&&t.onFloatingFilterChanged(e.getLastType()||null,i||null)}))}},e.prototype.setEditable=function(t){this.floatingFilterInputService.setEditable(t)},Mr([U("columnModel")],e.prototype,"columnModel",void 0),Mr([dn("eFloatingFilterInputContainer")],e.prototype,"eFloatingFilterInputContainer",void 0),Mr([B],e.prototype,"postConstruct",null),e}(pr),xr=function(){var t=function(e,o){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])})(e,o)};return function(e,o){function i(){this.constructor=e}t(e,o),e.prototype=null===o?Object.create(o):(i.prototype=o.prototype,new i)}}(),Hr=function(t){function e(e){var o=t.call(this)||this;return o.params=e,o.numberInputActive=!0,o}return xr(e,t),e.prototype.setupGui=function(t){this.eFloatingFilterNumberInput=this.createManagedBean(new Sr),this.eFloatingFilterTextInput=this.createManagedBean(new Cr),this.eFloatingFilterTextInput.setDisabled(!0),this.eFloatingFilterNumberInput.setInputAriaLabel(this.params.ariaLabel),this.eFloatingFilterTextInput.setInputAriaLabel(this.params.ariaLabel),t.appendChild(this.eFloatingFilterNumberInput.getGui()),t.appendChild(this.eFloatingFilterTextInput.getGui())},e.prototype.setEditable=function(t){this.numberInputActive=t,this.eFloatingFilterNumberInput.setDisplayed(this.numberInputActive),this.eFloatingFilterTextInput.setDisplayed(!this.numberInputActive)},e.prototype.getValue=function(){return this.getActiveInputElement().getValue()},e.prototype.setValue=function(t,e){this.getActiveInputElement().setValue(t,e)},e.prototype.getActiveInputElement=function(){return this.numberInputActive?this.eFloatingFilterNumberInput:this.eFloatingFilterTextInput},e.prototype.addValueChangedListener=function(t){this.setupListeners(this.eFloatingFilterNumberInput.getGui(),t),this.setupListeners(this.eFloatingFilterTextInput.getGui(),t)},e.prototype.setupListeners=function(t,e){this.addManagedListener(t,"input",e),this.addManagedListener(t,"keypress",e),this.addManagedListener(t,"keydown",e)},e}(Mt),Vr=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return xr(e,t),e.prototype.init=function(e){t.prototype.init.call(this,e),this.filterModelFormatter=new Rr(this.localeService,this.optionsFactory)},e.prototype.getDefaultFilterOptions=function(){return Dr.DEFAULT_FILTER_OPTIONS},e.prototype.getFilterModelFormatter=function(){return this.filterModelFormatter},e.prototype.createFloatingFilterInputService=function(t){var e=Or(this.params.filterParams);return e?this.createManagedBean(new Ir({config:{allowedCharPattern:e},ariaLabel:t})):this.createManagedBean(new Hr({ariaLabel:t}))},e}(Gr),kr=function(){var t=function(e,o){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])})(e,o)};return function(e,o){function i(){this.constructor=e}t(e,o),e.prototype=null===o?Object.create(o):(i.prototype=o.prototype,new i)}}(),Br=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return kr(e,t),e.prototype.init=function(e){t.prototype.init.call(this,e),this.filterModelFormatter=new Nr(this.localeService,this.optionsFactory)},e.prototype.getDefaultFilterOptions=function(){return Fr.DEFAULT_FILTER_OPTIONS},e.prototype.getFilterModelFormatter=function(){return this.filterModelFormatter},e.prototype.createFloatingFilterInputService=function(t){return this.createManagedBean(new Ir({ariaLabel:t}))},e}(Gr),jr=function(){function t(t,e){var o=this;void 0===e&&(e=!1),this.destroyFuncs=[],this.touching=!1,this.eventService=new Z,this.eElement=t,this.preventMouseClick=e;var i=this.onTouchStart.bind(this),n=this.onTouchMove.bind(this),r=this.onTouchEnd.bind(this);this.eElement.addEventListener("touchstart",i,{passive:!0}),this.eElement.addEventListener("touchmove",n,{passive:!0}),this.eElement.addEventListener("touchend",r,{passive:!1}),this.destroyFuncs.push((function(){o.eElement.removeEventListener("touchstart",i,{passive:!0}),o.eElement.removeEventListener("touchmove",n,{passive:!0}),o.eElement.removeEventListener("touchend",r,{passive:!1})}))}return t.prototype.getActiveTouch=function(t){for(var e=0;e<t.length;e++){if(t[e].identifier===this.touchStart.identifier)return t[e]}return null},t.prototype.addEventListener=function(t,e){this.eventService.addEventListener(t,e)},t.prototype.removeEventListener=function(t,e){this.eventService.removeEventListener(t,e)},t.prototype.onTouchStart=function(e){var o=this;if(!this.touching){this.touchStart=e.touches[0],this.touching=!0,this.moved=!1;var i=this.touchStart;window.setTimeout((function(){var n=o.touchStart===i;if(o.touching&&n&&!o.moved){o.moved=!0;var r={type:t.EVENT_LONG_TAP,touchStart:o.touchStart,touchEvent:e};o.eventService.dispatchEvent(r)}}),500)}},t.prototype.onTouchMove=function(t){if(this.touching){var e=this.getActiveTouch(t.touches);if(e)!Wi(e,this.touchStart,4)&&(this.moved=!0)}},t.prototype.onTouchEnd=function(e){if(this.touching){if(!this.moved){var o={type:t.EVENT_TAP,touchStart:this.touchStart};this.eventService.dispatchEvent(o),this.checkForDoubleTap()}this.preventMouseClick&&e.cancelable&&e.preventDefault(),this.touching=!1}},t.prototype.checkForDoubleTap=function(){var e=(new Date).getTime();if(this.lastTapTime&&this.lastTapTime>0)if(e-this.lastTapTime>t.DOUBLE_TAP_MILLIS){var o={type:t.EVENT_DOUBLE_TAP,touchStart:this.touchStart};this.eventService.dispatchEvent(o),this.lastTapTime=null}else this.lastTapTime=e;else this.lastTapTime=e},t.prototype.destroy=function(){this.destroyFuncs.forEach((function(t){return t()}))},t.EVENT_TAP="tap",t.EVENT_DOUBLE_TAP="doubleTap",t.EVENT_LONG_TAP="longTap",t.DOUBLE_TAP_MILLIS=500,t}(),Wr=function(){var t=function(e,o){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])})(e,o)};return function(e,o){function i(){this.constructor=e}t(e,o),e.prototype=null===o?Object.create(o):(i.prototype=o.prototype,new i)}}(),Ur=function(t,e,o,i){var n,r=arguments.length,s=r<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,o):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,o,i);else for(var a=t.length-1;a>=0;a--)(n=t[a])&&(s=(r<3?n(s):r>3?n(e,o,s):n(e,o))||s);return r>3&&s&&Object.defineProperty(e,o,s),s},zr=function(t){function e(o){var i=t.call(this)||this;return o||i.setTemplate(e.TEMPLATE),i}return Wr(e,t),e.prototype.attachCustomElements=function(t,e,o,i,n){this.eSortOrder=t,this.eSortAsc=e,this.eSortDesc=o,this.eSortMixed=i,this.eSortNone=n},e.prototype.setupSort=function(t,e){var o=this;void 0===e&&(e=!1),this.column=t,this.suppressOrder=e,this.setupMultiSortIndicator(),!!this.column.getColDef().sortable&&(this.addInIcon("sortAscending",this.eSortAsc,t),this.addInIcon("sortDescending",this.eSortDesc,t),this.addInIcon("sortUnSort",this.eSortNone,t),this.addManagedListener(this.eventService,kt.EVENT_SORT_CHANGED,(function(){return o.onSortChanged()})),this.addManagedListener(this.eventService,kt.EVENT_COLUMN_ROW_GROUP_CHANGED,(function(){return o.onSortChanged()})),this.onSortChanged())},e.prototype.addInIcon=function(t,e,o){if(null!=e){var i=Mi(t,this.gridOptionsService,o);i&&e.appendChild(i)}},e.prototype.onSortChanged=function(){this.updateIcons(),this.suppressOrder||this.updateSortOrder()},e.prototype.updateIcons=function(){var t=this.sortController.getDisplaySortForColumn(this.column);if(this.eSortAsc){var e="asc"===t;Zo(this.eSortAsc,e,{skipAriaHidden:!0})}if(this.eSortDesc){var o="desc"===t;Zo(this.eSortDesc,o,{skipAriaHidden:!0})}if(this.eSortNone){var i=!this.column.getColDef().unSortIcon&&!this.gridOptionsService.is("unSortIcon"),n=null==t;Zo(this.eSortNone,!i&&n,{skipAriaHidden:!0})}},e.prototype.setupMultiSortIndicator=function(){var t=this;this.addInIcon("sortUnSort",this.eSortMixed,this.column);var e=this.column.getColDef().showRowGroup;this.gridOptionsService.isColumnsSortingCoupledToGroup()&&e&&(this.addManagedListener(this.eventService,kt.EVENT_SORT_CHANGED,(function(){return t.updateMultiSortIndicator()})),this.addManagedListener(this.eventService,kt.EVENT_COLUMN_ROW_GROUP_CHANGED,(function(){return t.updateMultiSortIndicator()})),this.updateMultiSortIndicator())},e.prototype.updateMultiSortIndicator=function(){if(this.eSortMixed){var t="mixed"===this.sortController.getDisplaySortForColumn(this.column);Zo(this.eSortMixed,t,{skipAriaHidden:!0})}},e.prototype.updateSortOrder=function(){var t,e=this;if(this.eSortOrder){var o=this.sortController.getColumnsWithSortingOrdered(),i=null!==(t=this.sortController.getDisplaySortIndexForColumn(this.column))&&void 0!==t?t:-1,n=o.some((function(t){var o;return null!==(o=e.sortController.getDisplaySortIndexForColumn(t))&&void 0!==o&&o})),r=i>=0&&n;Zo(this.eSortOrder,r,{skipAriaHidden:!0}),i>=0?this.eSortOrder.innerHTML=(i+1).toString():ci(this.eSortOrder)}},e.TEMPLATE='<span class="ag-sort-indicator-container">\n <span ref="eSortOrder" class="ag-sort-indicator-icon ag-sort-order ag-hidden" aria-hidden="true"></span>\n <span ref="eSortAsc" class="ag-sort-indicator-icon ag-sort-ascending-icon ag-hidden" aria-hidden="true"></span>\n <span ref="eSortDesc" class="ag-sort-indicator-icon ag-sort-descending-icon ag-hidden" aria-hidden="true"></span>\n <span ref="eSortMixed" class="ag-sort-indicator-icon ag-sort-mixed-icon ag-hidden" aria-hidden="true"></span>\n <span ref="eSortNone" class="ag-sort-indicator-icon ag-sort-none-icon ag-hidden" aria-hidden="true"></span>\n </span>',Ur([dn("eSortOrder")],e.prototype,"eSortOrder",void 0),Ur([dn("eSortAsc")],e.prototype,"eSortAsc",void 0),Ur([dn("eSortDesc")],e.prototype,"eSortDesc",void 0),Ur([dn("eSortMixed")],e.prototype,"eSortMixed",void 0),Ur([dn("eSortNone")],e.prototype,"eSortNone",void 0),Ur([U("columnModel")],e.prototype,"columnModel",void 0),Ur([U("sortController")],e.prototype,"sortController",void 0),e}(cn),Kr=function(){var t=function(e,o){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])})(e,o)};return function(e,o){function i(){this.constructor=e}t(e,o),e.prototype=null===o?Object.create(o):(i.prototype=o.prototype,new i)}}(),Yr=function(t,e,o,i){var n,r=arguments.length,s=r<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,o):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,o,i);else for(var a=t.length-1;a>=0;a--)(n=t[a])&&(s=(r<3?n(s):r>3?n(e,o,s):n(e,o))||s);return r>3&&s&&Object.defineProperty(e,o,s),s},qr=function(t){function o(){var e=null!==t&&t.apply(this,arguments)||this;return e.lastMovingChanged=0,e}return Kr(o,t),o.prototype.destroy=function(){t.prototype.destroy.call(this)},o.prototype.refresh=function(t){return this.params=t,this.workOutTemplate()==this.currentTemplate&&(this.workOutShowMenu()==this.currentShowMenu&&(this.workOutSort()==this.currentSort&&(this.setDisplayName(t),!0)))},o.prototype.workOutTemplate=function(){var t=lt(this.params.template,o.TEMPLATE);return t=t&&t.trim?t.trim():t},o.prototype.init=function(t){this.params=t,this.currentTemplate=this.workOutTemplate(),this.setTemplate(this.currentTemplate),this.setupTap(),this.setupIcons(t.column),this.setMenu(),this.setupSort(),this.setupFilterIcon(),this.setDisplayName(t)},o.prototype.setDisplayName=function(t){if(this.currentDisplayName!=t.displayName){this.currentDisplayName=t.displayName;var e=fe(this.currentDisplayName);this.eText&&(this.eText.innerHTML=e)}},o.prototype.setupIcons=function(t){this.addInIcon("menu",this.eMenu,t),this.addInIcon("filter",this.eFilter,t)},o.prototype.addInIcon=function(t,e,o){if(null!=e){var i=Mi(t,this.gridOptionsService,o);i&&e.appendChild(i)}},o.prototype.setupTap=function(){var t=this,o=this.gridOptionsService;if(!o.is("suppressTouch")){var i=new jr(this.getGui(),!0),n=o.is("suppressMenuHide"),r=n&&e(this.eMenu),s=r?new jr(this.eMenu,!0):i;if(this.params.enableMenu){var a=r?"EVENT_TAP":"EVENT_LONG_TAP";this.addManagedListener(s,jr[a],(function(e){o.api.showColumnMenuAfterMouseClick(t.params.column,e.touchStart)}))}if(this.params.enableSorting){this.addManagedListener(i,jr.EVENT_TAP,(function(e){var o=e.touchStart.target;n&&t.eMenu.contains(o)||t.sortController.progressSort(t.params.column,!1,"uiColumnSorted")}))}this.addDestroyFunc((function(){return i.destroy()})),r&&this.addDestroyFunc((function(){return s.destroy()}))}},o.prototype.workOutShowMenu=function(){var t=!this.gridOptionsService.is("suppressMenuHide"),e=Po()&&t;return this.params.enableMenu&&!e},o.prototype.setMenu=function(){var t=this;if(this.eMenu)if(this.currentShowMenu=this.workOutShowMenu(),this.currentShowMenu){var e=this.gridOptionsService.is("suppressMenuHide");this.addManagedListener(this.eMenu,"click",(function(){return t.showMenu(t.eMenu)})),this.eMenu.classList.toggle("ag-header-menu-always-show",e)}else pi(this.eMenu)},o.prototype.showMenu=function(t){t||(t=this.eMenu),this.menuFactory.showMenuAfterButtonClick(this.params.column,t,"columnMenu")},o.prototype.workOutSort=function(){return this.params.enableSorting},o.prototype.setupSort=function(){var t=this;if(this.currentSort=this.params.enableSorting,this.eSortIndicator||(this.eSortIndicator=this.context.createBean(new zr(!0)),this.eSortIndicator.attachCustomElements(this.eSortOrder,this.eSortAsc,this.eSortDesc,this.eSortMixed,this.eSortNone)),this.eSortIndicator.setupSort(this.params.column),this.currentSort){var e="ctrl"===this.gridOptionsService.get("multiSortKey");this.addManagedListener(this.params.column,nt.EVENT_MOVING_CHANGED,(function(){t.lastMovingChanged=(new Date).getTime()})),this.eLabel&&this.addManagedListener(this.eLabel,"click",(function(o){var i=t.params.column.isMoving(),n=(new Date).getTime()-t.lastMovingChanged<50;if(!(i||n)){var r=e?o.ctrlKey||o.metaKey:o.shiftKey;t.params.progressSort(r)}}));var o=function(){if(t.addOrRemoveCssClass("ag-header-cell-sorted-asc",t.params.column.isSortAscending()),t.addOrRemoveCssClass("ag-header-cell-sorted-desc",t.params.column.isSortDescending()),t.addOrRemoveCssClass("ag-header-cell-sorted-none",t.params.column.isSortNone()),t.params.column.getColDef().showRowGroup){var e=t.columnModel.getSourceColumnsForGroupColumn(t.params.column),o=!(null==e?void 0:e.every((function(e){return t.params.column.getSort()==e.getSort()})));t.addOrRemoveCssClass("ag-header-cell-sorted-mixed",o)}};this.addManagedListener(this.eventService,kt.EVENT_SORT_CHANGED,o),this.addManagedListener(this.eventService,kt.EVENT_COLUMN_ROW_GROUP_CHANGED,o)}},o.prototype.setupFilterIcon=function(){this.eFilter&&(this.addManagedListener(this.params.column,nt.EVENT_FILTER_CHANGED,this.onFilterChanged.bind(this)),this.onFilterChanged())},o.prototype.onFilterChanged=function(){var t=this.params.column.isFilterActive();Zo(this.eFilter,t,{skipAriaHidden:!0})},o.TEMPLATE='<div class="ag-cell-label-container" role="presentation">\n <span ref="eMenu" class="ag-header-icon ag-header-cell-menu-button" aria-hidden="true"></span>\n <div ref="eLabel" class="ag-header-cell-label" role="presentation">\n <span ref="eText" class="ag-header-cell-text"></span>\n <span ref="eFilter" class="ag-header-icon ag-header-label-icon ag-filter-icon" aria-hidden="true"></span>\n <ag-sort-indicator ref="eSortIndicator"></ag-sort-indicator>\n </div>\n </div>',Yr([U("sortController")],o.prototype,"sortController",void 0),Yr([U("menuFactory")],o.prototype,"menuFactory",void 0),Yr([U("columnModel")],o.prototype,"columnModel",void 0),Yr([dn("eFilter")],o.prototype,"eFilter",void 0),Yr([dn("eSortIndicator")],o.prototype,"eSortIndicator",void 0),Yr([dn("eMenu")],o.prototype,"eMenu",void 0),Yr([dn("eLabel")],o.prototype,"eLabel",void 0),Yr([dn("eText")],o.prototype,"eText",void 0),Yr([dn("eSortOrder")],o.prototype,"eSortOrder",void 0),Yr([dn("eSortAsc")],o.prototype,"eSortAsc",void 0),Yr([dn("eSortDesc")],o.prototype,"eSortDesc",void 0),Yr([dn("eSortMixed")],o.prototype,"eSortMixed",void 0),Yr([dn("eSortNone")],o.prototype,"eSortNone",void 0),o}(cn),Qr=function(){var t=function(e,o){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])})(e,o)};return function(e,o){function i(){this.constructor=e}t(e,o),e.prototype=null===o?Object.create(o):(i.prototype=o.prototype,new i)}}(),Xr=function(t,e,o,i){var n,r=arguments.length,s=r<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,o):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,o,i);else for(var a=t.length-1;a>=0;a--)(n=t[a])&&(s=(r<3?n(s):r>3?n(e,o,s):n(e,o))||s);return r>3&&s&&Object.defineProperty(e,o,s),s},Jr=function(t){function o(){return t.call(this,o.TEMPLATE)||this}return Qr(o,t),o.prototype.destroy=function(){t.prototype.destroy.call(this)},o.prototype.init=function(t){this.params=t,this.checkWarnings(),this.setupLabel(),this.addGroupExpandIcon(),this.setupExpandIcons()},o.prototype.checkWarnings=function(){if(this.params.template){O((function(){return console.warn("AG Grid: A template was provided for Header Group Comp - templates are only supported for Header Comps (not groups)")}),"HeaderGroupComp.templateNotSupported")}},o.prototype.setupExpandIcons=function(){var t=this;this.addInIcon("columnGroupOpened","agOpened"),this.addInIcon("columnGroupClosed","agClosed");var e=function(e){if(!Rt(e)){var o=!t.params.columnGroup.isExpanded();t.columnModel.setColumnGroupOpened(t.params.columnGroup.getProvidedColumnGroup(),o,"uiColumnExpanded")}};this.addTouchAndClickListeners(this.eCloseIcon,e),this.addTouchAndClickListeners(this.eOpenIcon,e);var o=function(t){Et(t)};this.addManagedListener(this.eCloseIcon,"dblclick",o),this.addManagedListener(this.eOpenIcon,"dblclick",o),this.addManagedListener(this.getGui(),"dblclick",e),this.updateIconVisibility();var i=this.params.columnGroup.getProvidedColumnGroup();this.addManagedListener(i,st.EVENT_EXPANDED_CHANGED,this.updateIconVisibility.bind(this)),this.addManagedListener(i,st.EVENT_EXPANDABLE_CHANGED,this.updateIconVisibility.bind(this))},o.prototype.addTouchAndClickListeners=function(t,e){var o=new jr(t,!0);this.addManagedListener(o,jr.EVENT_TAP,e),this.addDestroyFunc((function(){return o.destroy()})),this.addManagedListener(t,"click",e)},o.prototype.updateIconVisibility=function(){if(this.params.columnGroup.isExpandable()){var t=this.params.columnGroup.isExpanded();Zo(this.eOpenIcon,t),Zo(this.eCloseIcon,!t)}else Zo(this.eOpenIcon,!1),Zo(this.eCloseIcon,!1)},o.prototype.addInIcon=function(t,e){var o=Mi(t,this.gridOptionsService,null);o&&this.getRefElement(e).appendChild(o)},o.prototype.addGroupExpandIcon=function(){if(!this.params.columnGroup.isExpandable())return Zo(this.eOpenIcon,!1),void Zo(this.eCloseIcon,!1)},o.prototype.setupLabel=function(){var t=this.params.displayName;if(e(t)){var o=fe(t);this.getRefElement("agLabel").innerHTML=o}},o.TEMPLATE='<div class="ag-header-group-cell-label" ref="agContainer" role="presentation">\n <span ref="agLabel" class="ag-header-group-text" role="presentation"></span>\n <span ref="agOpened" class="ag-header-icon ag-header-expand-icon ag-header-expand-icon-expanded"></span>\n <span ref="agClosed" class="ag-header-icon ag-header-expand-icon ag-header-expand-icon-collapsed"></span>\n </div>',Xr([U("columnModel")],o.prototype,"columnModel",void 0),Xr([dn("agOpened")],o.prototype,"eOpenIcon",void 0),Xr([dn("agClosed")],o.prototype,"eCloseIcon",void 0),o}(cn),Zr=function(){var t=function(e,o){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])})(e,o)};return function(e,o){function i(){this.constructor=e}t(e,o),e.prototype=null===o?Object.create(o):(i.prototype=o.prototype,new i)}}(),$r=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Zr(e,t),e.prototype.isPopup=function(){return!0},e.prototype.setParentComponent=function(e){e.addCssClass("ag-has-popup"),t.prototype.setParentComponent.call(this,e)},e.prototype.destroy=function(){var e=this.parentComponent;e&&e.isAlive()&&e.getGui().classList.remove("ag-has-popup"),t.prototype.destroy.call(this)},e}(cn),ts=function(){var t=function(e,o){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])})(e,o)};return function(e,o){function i(){this.constructor=e}t(e,o),e.prototype=null===o?Object.create(o):(i.prototype=o.prototype,new i)}}(),es=function(t,e,o,i){var n,r=arguments.length,s=r<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,o):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,o,i);else for(var a=t.length-1;a>=0;a--)(n=t[a])&&(s=(r<3?n(s):r>3?n(e,o,s):n(e,o))||s);return r>3&&s&&Object.defineProperty(e,o,s),s},os=function(t){function o(){return t.call(this,o.TEMPLATE)||this}return ts(o,t),o.prototype.init=function(t){this.params=t,this.focusAfterAttached=t.cellStartedEdit,this.eTextArea.setMaxLength(t.maxLength||200).setCols(t.cols||60).setRows(t.rows||10),e(t.value,!0)&&this.eTextArea.setValue(t.value.toString(),!0),this.addGuiEventListener("keydown",this.onKeyDown.bind(this))},o.prototype.onKeyDown=function(t){var e=t.key;(e===Gi.LEFT||e===Gi.UP||e===Gi.RIGHT||e===Gi.DOWN||t.shiftKey&&e===Gi.ENTER)&&t.stopPropagation()},o.prototype.afterGuiAttached=function(){var t=this.localeService.getLocaleTextFunc();this.eTextArea.setInputAriaLabel(t("ariaInputEditor","Input Editor")),this.focusAfterAttached&&this.eTextArea.getFocusableElement().focus()},o.prototype.getValue=function(){return this.params.parseValue(this.eTextArea.getValue())},o.TEMPLATE='<div class="ag-large-text" tabindex="0">\n <ag-input-text-area ref="eTextArea" class="ag-large-text-input"></ag-input-text-area>\n </div>',es([dn("eTextArea")],o.prototype,"eTextArea",void 0),o}($r),is=function(){var t=function(e,o){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])})(e,o)};return function(e,o){function i(){this.constructor=e}t(e,o),e.prototype=null===o?Object.create(o):(i.prototype=o.prototype,new i)}}(),ns=function(t,e,o,i){var n,r=arguments.length,s=r<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,o):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,o,i);else for(var a=t.length-1;a>=0;a--)(n=t[a])&&(s=(r<3?n(s):r>3?n(e,o,s):n(e,o))||s);return r>3&&s&&Object.defineProperty(e,o,s),s},rs=function(t){function e(){var e=t.call(this,'<div class="ag-cell-edit-wrapper"><ag-select class="ag-cell-editor" ref="eSelect"></ag-select></div>')||this;return e.startedByEnter=!1,e}return is(e,t),e.prototype.init=function(t){var e=this;if(this.focusAfterAttached=t.cellStartedEdit,o(t.values))console.warn("AG Grid: no values found for select cellEditor");else{this.startedByEnter=null!=t.eventKey&&t.eventKey===Gi.ENTER;var i=!1;t.values.forEach((function(o){var n={value:o},r=e.valueFormatterService.formatValue(t.column,null,o),s=null!=r;n.text=s?r:o,e.eSelect.addOption(n),i=i||t.value===o})),i?this.eSelect.setValue(t.value,!0):t.values.length&&this.eSelect.setValue(t.values[0],!0),"fullRow"!==this.gridOptionsService.get("editType")&&this.addManagedListener(this.eSelect,Un.EVENT_ITEM_SELECTED,(function(){return t.stopEditing()}))}},e.prototype.afterGuiAttached=function(){this.focusAfterAttached&&this.eSelect.getFocusableElement().focus(),this.startedByEnter&&this.eSelect.showPicker()},e.prototype.focusIn=function(){this.eSelect.getFocusableElement().focus()},e.prototype.getValue=function(){return this.eSelect.getValue()},e.prototype.isPopup=function(){return!1},ns([U("valueFormatterService")],e.prototype,"valueFormatterService",void 0),ns([dn("eSelect")],e.prototype,"eSelect",void 0),e}($r),ss=function(){var t=function(e,o){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])})(e,o)};return function(e,o){function i(){this.constructor=e}t(e,o),e.prototype=null===o?Object.create(o):(i.prototype=o.prototype,new i)}}(),as=function(t,e,o,i){var n,r=arguments.length,s=r<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,o):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,o,i);else for(var a=t.length-1;a>=0;a--)(n=t[a])&&(s=(r<3?n(s):r>3?n(e,o,s):n(e,o))||s);return r>3&&s&&Object.defineProperty(e,o,s),s},ls=function(t){function o(){return t.call(this,o.TEMPLATE)||this}return ss(o,t),o.prototype.init=function(t){this.params=t;var e,o=this.eInput;t.cellStartedEdit?(this.focusAfterAttached=!0,t.eventKey===Gi.BACKSPACE||t.eventKey===Gi.DELETE?e="":t.charPress?e=t.charPress:(e=this.getStartValue(t),t.eventKey!==Gi.F2&&(this.highlightAllOnFocus=!0))):(this.focusAfterAttached=!1,e=this.getStartValue(t)),null!=e&&o.setValue(e,!0),null!=t.maxLength&&o.setMaxLength(t.maxLength),this.addManagedListener(o.getGui(),"keydown",(function(t){var e=t.key;e!==Gi.PAGE_UP&&e!==Gi.PAGE_DOWN||t.preventDefault()}))},o.prototype.afterGuiAttached=function(){var t=this.localeService.getLocaleTextFunc(),o=this.eInput;if(o.setInputAriaLabel(t("ariaInputEditor","Input Editor")),this.focusAfterAttached){Eo()||o.getFocusableElement().focus();var i=o.getInputElement();if(this.highlightAllOnFocus)i.select();else{var n=o.getValue(),r=e(n)&&n.length||0;r&&i.setSelectionRange(r,r)}}},o.prototype.focusIn=function(){var t=this.eInput,e=t.getFocusableElement(),o=t.getInputElement();e.focus(),o.select()},o.prototype.getValue=function(){var t=this.eInput;return this.params.parseValue(t.getValue())},o.prototype.getStartValue=function(t){return t.useFormatter||t.column.getColDef().refData?t.formatValue(t.value):t.value},o.prototype.isPopup=function(){return!1},o.TEMPLATE='<div class="ag-cell-edit-wrapper">\n <ag-input-text-field class="ag-cell-editor" ref="eInput"></ag-input-text-field>\n </div>',as([dn("eInput")],o.prototype,"eInput",void 0),o}($r),us=function(){var t=function(e,o){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])})(e,o)};return function(e,o){function i(){this.constructor=e}t(e,o),e.prototype=null===o?Object.create(o):(i.prototype=o.prototype,new i)}}(),cs=function(t,e,o,i){var n,r=arguments.length,s=r<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,o):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,o,i);else for(var a=t.length-1;a>=0;a--)(n=t[a])&&(s=(r<3?n(s):r>3?n(e,o,s):n(e,o))||s);return r>3&&s&&Object.defineProperty(e,o,s),s},ps=function(t){function o(){var e=t.call(this,o.TEMPLATE)||this;return e.refreshCount=0,e}return us(o,t),o.prototype.init=function(t){this.eValue=this.queryForHtmlElement(".ag-value-change-value"),this.eDelta=this.queryForHtmlElement(".ag-value-change-delta"),this.refresh(t)},o.prototype.showDelta=function(t,o){var i=Math.abs(o),n=t.formatValue(i),r=e(n)?n:i,s=o>=0;this.eDelta.innerHTML=s?"\u2191"+r:"\u2193"+r,this.eDelta.classList.toggle("ag-value-change-delta-up",s),this.eDelta.classList.toggle("ag-value-change-delta-down",!s)},o.prototype.setTimerToRemoveDelta=function(){var t=this;this.refreshCount++;var e=this.refreshCount;window.setTimeout((function(){e===t.refreshCount&&t.hideDeltaValue()}),2e3)},o.prototype.hideDeltaValue=function(){this.eValue.classList.remove("ag-value-change-value-highlight"),ci(this.eDelta)},o.prototype.refresh=function(t){var o=t.value;if(o===this.lastValue)return!1;if(e(t.valueFormatted)?this.eValue.innerHTML=t.valueFormatted:e(t.value)?this.eValue.innerHTML=o:ci(this.eValue),this.filterManager.isSuppressFlashingCellsBecauseFiltering())return!1;if("number"==typeof o&&"number"==typeof this.lastValue){var i=o-this.lastValue;this.showDelta(t,i)}return this.lastValue&&this.eValue.classList.add("ag-value-change-value-highlight"),this.setTimerToRemoveDelta(),this.lastValue=o,!0},o.TEMPLATE='<span><span class="ag-value-change-delta"></span><span class="ag-value-change-value"></span></span>',cs([U("filterManager")],o.prototype,"filterManager",void 0),o}(cn),ds=function(){var t=function(e,o){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])})(e,o)};return function(e,o){function i(){this.constructor=e}t(e,o),e.prototype=null===o?Object.create(o):(i.prototype=o.prototype,new i)}}(),hs=function(t,e,o,i){var n,r=arguments.length,s=r<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,o):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,o,i);else for(var a=t.length-1;a>=0;a--)(n=t[a])&&(s=(r<3?n(s):r>3?n(e,o,s):n(e,o))||s);return r>3&&s&&Object.defineProperty(e,o,s),s},fs=function(t){function i(){var e=t.call(this,i.TEMPLATE)||this;return e.refreshCount=0,e.eCurrent=e.queryForHtmlElement(".ag-value-slide-current"),e}return ds(i,t),i.prototype.init=function(t){this.refresh(t)},i.prototype.addSlideAnimation=function(){var t=this;this.refreshCount++;var e=this.refreshCount;this.ePrevious&&this.getGui().removeChild(this.ePrevious),this.ePrevious=hi('<span class="ag-value-slide-previous ag-value-slide-out"></span>'),this.ePrevious.innerHTML=this.eCurrent.innerHTML,this.getGui().insertBefore(this.ePrevious,this.eCurrent),window.setTimeout((function(){e===t.refreshCount&&t.ePrevious.classList.add("ag-value-slide-out-end")}),50),window.setTimeout((function(){e===t.refreshCount&&(t.getGui().removeChild(t.ePrevious),t.ePrevious=null)}),3e3)},i.prototype.refresh=function(t){var i=t.value;return o(i)&&(i=""),i!==this.lastValue&&(!this.filterManager.isSuppressFlashingCellsBecauseFiltering()&&(this.addSlideAnimation(),this.lastValue=i,e(t.valueFormatted)?this.eCurrent.innerHTML=t.valueFormatted:e(t.value)?this.eCurrent.innerHTML=i:ci(this.eCurrent),!0))},i.TEMPLATE='<span>\n <span class="ag-value-slide-current"></span>\n </span>',hs([U("filterManager")],i.prototype,"filterManager",void 0),i}(cn),gs=function(){return(gs=Object.assign||function(t){for(var e,o=1,i=arguments.length;o<i;o++)for(var n in e=arguments[o])Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t}).apply(this,arguments)},vs=function(){function t(e){this.rowIndex=null,this.key=null,this.childrenMapped={},this.displayed=!1,this.rowTop=null,this.oldRowTop=null,this.selectable=!0,this.__objectId=t.OBJECT_ID_SEQUENCE++,this.__autoHeights={},this.alreadyRendered=!1,this.highlighted=null,this.selected=!1,this.beans=e}return t.prototype.setData=function(t){this.setDataCommon(t,!1)},t.prototype.updateData=function(t){this.setDataCommon(t,!0)},t.prototype.setDataCommon=function(t,e){var o=this.data;this.data=t,this.beans.valueCache.onDataChanged(),this.updateDataOnDetailNode(),this.checkRowSelectable(),this.resetQuickFilterAggregateText();var i=this.createDataChangedEvent(t,o,e);this.dispatchLocalEvent(i)},t.prototype.updateDataOnDetailNode=function(){this.detailNode&&(this.detailNode.data=this.data)},t.prototype.createDataChangedEvent=function(e,o,i){return{type:t.EVENT_DATA_CHANGED,node:this,oldData:o,newData:e,update:i}},t.prototype.createLocalRowEvent=function(t){return{type:t,node:this}},t.prototype.getRowIndexString=function(){return"top"===this.rowPinned?"t-"+this.rowIndex:"bottom"===this.rowPinned?"b-"+this.rowIndex:this.rowIndex.toString()},t.prototype.createDaemonNode=function(){var e=new t(this.beans);return e.id=this.id,e.data=this.data,e.__daemon=!0,e.selected=this.selected,e.level=this.level,e},t.prototype.setDataAndId=function(t,o){var i=e(this.id)?this.createDaemonNode():null,n=this.data;this.data=t,this.updateDataOnDetailNode(),this.setId(o),this.beans.selectionService.syncInRowNode(this,i),this.checkRowSelectable();var r=this.createDataChangedEvent(t,n,!1);this.dispatchLocalEvent(r)},t.prototype.checkRowSelectable=function(){var t=this.beans.gridOptionsService.get("isRowSelectable");this.setRowSelectable(!t||t(this))},t.prototype.setRowSelectable=function(e){if(this.selectable!==e&&(this.selectable=e,this.eventService&&this.eventService.dispatchEvent(this.createLocalRowEvent(t.EVENT_SELECTABLE_CHANGED)),this.beans.gridOptionsService.is("groupSelectsChildren"))){var o=this.calculateSelectedFromChildren();this.setSelectedParams({newValue:null!=o&&o,source:"selectableChanged"})}},t.prototype.setId=function(e){var o=this.beans.gridOptionsService.getRowIdFunc();if(o)if(this.data){var i=this.getGroupKeys(!0);this.id=o({data:this.data,parentKeys:i.length>0?i:void 0,level:this.level}),null!==this.id&&"string"==typeof this.id&&this.id.startsWith(t.ID_PREFIX_ROW_GROUP)&&console.error("AG Grid: Row IDs cannot start with "+t.ID_PREFIX_ROW_GROUP+", this is a reserved prefix for AG Grid's row grouping feature."),null!==this.id&&"string"!=typeof this.id&&(this.id=""+this.id)}else this.id=void 0;else this.id=e},t.prototype.getGroupKeys=function(t){void 0===t&&(t=!1);var e=[],o=this;for(t&&(o=o.parent);o&&o.level>=0;)e.push(o.key),o=o.parent;return e.reverse(),e},t.prototype.isPixelInRange=function(t){return!(!e(this.rowTop)||!e(this.rowHeight))&&(t>=this.rowTop&&t<this.rowTop+this.rowHeight)},t.prototype.setFirstChild=function(e){this.firstChild!==e&&(this.firstChild=e,this.eventService&&this.eventService.dispatchEvent(this.createLocalRowEvent(t.EVENT_FIRST_CHILD_CHANGED)))},t.prototype.setLastChild=function(e){this.lastChild!==e&&(this.lastChild=e,this.eventService&&this.eventService.dispatchEvent(this.createLocalRowEvent(t.EVENT_LAST_CHILD_CHANGED)))},t.prototype.setChildIndex=function(e){this.childIndex!==e&&(this.childIndex=e,this.eventService&&this.eventService.dispatchEvent(this.createLocalRowEvent(t.EVENT_CHILD_INDEX_CHANGED)))},t.prototype.setRowTop=function(e){this.oldRowTop=this.rowTop,this.rowTop!==e&&(this.rowTop=e,this.eventService&&this.eventService.dispatchEvent(this.createLocalRowEvent(t.EVENT_TOP_CHANGED)),this.setDisplayed(null!==e))},t.prototype.clearRowTopAndRowIndex=function(){this.oldRowTop=null,this.setRowTop(null),this.setRowIndex(null)},t.prototype.setDisplayed=function(e){this.displayed!==e&&(this.displayed=e,this.eventService&&this.eventService.dispatchEvent(this.createLocalRowEvent(t.EVENT_DISPLAYED_CHANGED)))},t.prototype.setDragging=function(e){this.dragging!==e&&(this.dragging=e,this.eventService&&this.eventService.dispatchEvent(this.createLocalRowEvent(t.EVENT_DRAGGING_CHANGED)))},t.prototype.setHighlighted=function(e){e!==this.highlighted&&(this.highlighted=e,this.eventService&&this.eventService.dispatchEvent(this.createLocalRowEvent(t.EVENT_HIGHLIGHT_CHANGED)))},t.prototype.setAllChildrenCount=function(e){this.allChildrenCount!==e&&(this.allChildrenCount=e,this.eventService&&this.eventService.dispatchEvent(this.createLocalRowEvent(t.EVENT_ALL_CHILDREN_COUNT_CHANGED)))},t.prototype.setMaster=function(e){this.master!==e&&(this.master&&!e&&(this.expanded=!1),this.master=e,this.eventService&&this.eventService.dispatchEvent(this.createLocalRowEvent(t.EVENT_MASTER_CHANGED)))},t.prototype.setGroup=function(e){this.group!==e&&(this.group&&!e&&(this.expanded=!1),this.group=e,this.updateHasChildren(),this.eventService&&this.eventService.dispatchEvent(this.createLocalRowEvent(t.EVENT_GROUP_CHANGED)))},t.prototype.setRowHeight=function(e,o){void 0===o&&(o=!1),this.rowHeight=e,this.rowHeightEstimated=o,this.eventService&&this.eventService.dispatchEvent(this.createLocalRowEvent(t.EVENT_HEIGHT_CHANGED))},t.prototype.setRowAutoHeight=function(t,e){this.__autoHeights||(this.__autoHeights={}),this.__autoHeights[e.getId()]=t,null!=t&&(null==this.checkAutoHeightsDebounced&&(this.checkAutoHeightsDebounced=F(this.checkAutoHeights.bind(this),1)),this.checkAutoHeightsDebounced())},t.prototype.checkAutoHeights=function(){var t=!1,e=!0,o=0,i=this.__autoHeights;if(null!=i&&(this.beans.columnModel.getAllDisplayedAutoHeightCols().forEach((function(n){var r=i[n.getId()];null!=r?(e=!1,r>o&&(o=r)):t=!0})),!t&&((e||o<10)&&(o=this.beans.gridOptionsService.getRowHeightForNode(this).height),o!=this.rowHeight))){this.setRowHeight(o);var n=this.beans.rowModel;n.onRowHeightChangedDebounced&&n.onRowHeightChangedDebounced()}},t.prototype.setRowIndex=function(e){this.rowIndex!==e&&(this.rowIndex=e,this.eventService&&this.eventService.dispatchEvent(this.createLocalRowEvent(t.EVENT_ROW_INDEX_CHANGED)))},t.prototype.setUiLevel=function(e){this.uiLevel!==e&&(this.uiLevel=e,this.eventService&&this.eventService.dispatchEvent(this.createLocalRowEvent(t.EVENT_UI_LEVEL_CHANGED)))},t.prototype.setExpanded=function(e,o){if(this.expanded!==e){this.expanded=e,this.eventService&&this.eventService.dispatchEvent(this.createLocalRowEvent(t.EVENT_EXPANDED_CHANGED));var i=Object.assign({},this.createGlobalRowEvent(kt.EVENT_ROW_GROUP_OPENED),{expanded:e,event:o||null});this.beans.rowNodeEventThrottle.dispatchExpanded(i),this.beans.gridOptionsService.is("groupIncludeFooter")&&this.beans.rowRenderer.refreshCells({rowNodes:[this]})}},t.prototype.createGlobalRowEvent=function(t){return{type:t,node:this,data:this.data,rowIndex:this.rowIndex,rowPinned:this.rowPinned,context:this.beans.gridOptionsService.context,api:this.beans.gridOptionsService.api,columnApi:this.beans.gridOptionsService.columnApi}},t.prototype.dispatchLocalEvent=function(t){this.eventService&&this.eventService.dispatchEvent(t)},t.prototype.setDataValue=function(t,e,o){var i=this.beans.columnModel.getPrimaryColumn(t),n=this.beans.valueService.getValue(i,this);if(this.beans.gridOptionsService.is("readOnlyEdit"))return this.dispatchEventForSaveValueReadOnly(i,n,e,o),!1;var r=this.beans.valueService.setValue(this,i,e,o);return this.dispatchCellChangedEvent(i,e,n),this.checkRowSelectable(),r},t.prototype.dispatchEventForSaveValueReadOnly=function(t,e,o,i){var n={type:kt.EVENT_CELL_EDIT_REQUEST,event:null,rowIndex:this.rowIndex,rowPinned:this.rowPinned,column:t,colDef:t.getColDef(),context:this.beans.gridOptionsService.context,api:this.beans.gridOptionsService.api,columnApi:this.beans.gridOptionsService.columnApi,data:this.data,node:this,oldValue:e,newValue:o,value:o,source:i};this.beans.eventService.dispatchEvent(n)},t.prototype.setGroupValue=function(t,e){var i=this.beans.columnModel.getGridColumn(t);o(this.groupData)&&(this.groupData={});var n=i.getColId(),r=this.groupData[n];r!==e&&(this.groupData[n]=e,this.dispatchCellChangedEvent(i,e,r))},t.prototype.setAggData=function(t){var e=this,o=v([this.aggData,t]),i=this.aggData;this.aggData=t,this.eventService&&o.forEach((function(t){var o=e.beans.columnModel.getGridColumn(t),n=e.aggData?e.aggData[t]:void 0,r=i?i[t]:void 0;e.dispatchCellChangedEvent(o,n,r)}))},t.prototype.updateHasChildren=function(){var e=this.group&&!this.footer||this.childrenAfterGroup&&this.childrenAfterGroup.length>0;if(this.beans.gridOptionsService.isRowModelType("serverSide")){var o=this.beans.gridOptionsService.isTreeData(),i=this.beans.gridOptionsService.get("isServerSideGroup");e=!this.stub&&!this.footer&&(o?!!i&&i(this.data):!!this.group)}e!==this.__hasChildren&&(this.__hasChildren=!!e,this.eventService&&this.eventService.dispatchEvent(this.createLocalRowEvent(t.EVENT_HAS_CHILDREN_CHANGED)))},t.prototype.hasChildren=function(){return null==this.__hasChildren&&this.updateHasChildren(),this.__hasChildren},t.prototype.isEmptyRowGroupNode=function(){return this.group&&i(this.childrenAfterGroup)},t.prototype.dispatchCellChangedEvent=function(e,o,i){var n={type:t.EVENT_CELL_CHANGED,node:this,column:e,newValue:o,oldValue:i};this.dispatchLocalEvent(n)},t.prototype.resetQuickFilterAggregateText=function(){this.quickFilterAggregateText=null},t.prototype.isExpandable=function(){return!!(this.hasChildren()&&!this.footer||this.master)},t.prototype.isSelected=function(){return this.footer?this.sibling.isSelected():this.selected},t.prototype.depthFirstSearch=function(t){this.childrenAfterGroup&&this.childrenAfterGroup.forEach((function(e){return e.depthFirstSearch(t)})),t(this)},t.prototype.calculateSelectedFromChildren=function(){var t,e=!1,o=!1,i=!1;if(!(null===(t=this.childrenAfterGroup)||void 0===t?void 0:t.length))return this.selectable?this.selected:null;for(var n=0;n<this.childrenAfterGroup.length;n++){var r=this.childrenAfterGroup[n],s=r.isSelected();if(!r.selectable){var a=r.calculateSelectedFromChildren();if(null===a)continue;s=a}switch(s){case!0:e=!0;break;case!1:o=!0;break;default:i=!0}}return i||e&&o?void 0:!!e||!o&&(this.selectable?this.selected:null)},t.prototype.setSelectedInitialValue=function(t){this.selected=t},t.prototype.selectThisNode=function(e,o,i){void 0===i&&(i="api");var n=!this.selectable&&e,r=this.selected===e;if(n||r)return!1;this.selected=e,this.eventService&&this.dispatchLocalEvent(this.createLocalRowEvent(t.EVENT_ROW_SELECTED));var s=gs(gs({},this.createGlobalRowEvent(kt.EVENT_ROW_SELECTED)),{event:o||null,source:i});return this.beans.eventService.dispatchEvent(s),!0},t.prototype.setSelected=function(t,e,o,i){void 0===e&&(e=!1),void 0===o&&(o=!1),void 0===i&&(i="api"),this.setSelectedParams({newValue:t,clearSelection:e,suppressFinishActions:o,rangeSelect:!1,source:i})},t.prototype.setSelectedParams=function(t){return this.rowPinned?(console.warn("AG Grid: cannot select pinned rows"),0):void 0===this.id?(console.warn("AG Grid: cannot select node until id for node is known"),0):this.beans.selectionService.setNodeSelected(gs(gs({},t),{node:this.footer?this.sibling:this}))},t.prototype.isRowPinned=function(){return"top"===this.rowPinned||"bottom"===this.rowPinned},t.prototype.isParentOfNode=function(t){for(var e=this.parent;e;){if(e===t)return!0;e=e.parent}return!1},t.prototype.addEventListener=function(t,e){this.eventService||(this.eventService=new Z),this.eventService.addEventListener(t,e)},t.prototype.removeEventListener=function(t,e){this.eventService&&(this.eventService.removeEventListener(t,e),this.eventService.noRegisteredListenersExist()&&(this.eventService=null))},t.prototype.onMouseEnter=function(){this.dispatchLocalEvent(this.createLocalRowEvent(t.EVENT_MOUSE_ENTER))},t.prototype.onMouseLeave=function(){this.dispatchLocalEvent(this.createLocalRowEvent(t.EVENT_MOUSE_LEAVE))},t.prototype.getFirstChildOfFirstChild=function(t){for(var o=this,i=!0,n=!1,r=null;i&&!n;){var s=o.parent;e(s)&&o.firstChild?s.rowGroupColumn===t&&(n=!0,r=s):i=!1,o=s}return n?r:null},t.prototype.isFullWidthCell=function(){var t=this.getIsFullWidthCellFunc();return!!t&&t({rowNode:this})},t.prototype.getIsFullWidthCellFunc=function(){var t=this.beans.gridOptionsService.getCallback("isFullWidthRow");if(t)return t;var e=this.beans.gridOptionsService.get("isFullWidthCell");return e?function(t){return e(t.rowNode)}:void 0},t.prototype.getRoute=function(){if(null!=this.key){for(var t=[],e=this;null!=e.key;)t.push(e.key),e=e.parent;return t.reverse()}},t.prototype.createFooter=function(){var e=this;if(!this.sibling){var o=new t(this.beans);Object.keys(this).forEach((function(t){o[t]=e[t]})),o.footer=!0,o.setRowTop(null),o.setRowIndex(null),o.oldRowTop=null,o.id="rowGroupFooter_"+this.id,o.sibling=this,this.sibling=o}},t.ID_PREFIX_ROW_GROUP="row-group-",t.ID_PREFIX_TOP_PINNED="t-",t.ID_PREFIX_BOTTOM_PINNED="b-",t.OBJECT_ID_SEQUENCE=0,t.EVENT_ROW_SELECTED="rowSelected",t.EVENT_DATA_CHANGED="dataChanged",t.EVENT_CELL_CHANGED="cellChanged",t.EVENT_ALL_CHILDREN_COUNT_CHANGED="allChildrenCountChanged",t.EVENT_MASTER_CHANGED="masterChanged",t.EVENT_GROUP_CHANGED="groupChanged",t.EVENT_MOUSE_ENTER="mouseEnter",t.EVENT_MOUSE_LEAVE="mouseLeave",t.EVENT_HEIGHT_CHANGED="heightChanged",t.EVENT_TOP_CHANGED="topChanged",t.EVENT_DISPLAYED_CHANGED="displayedChanged",t.EVENT_FIRST_CHILD_CHANGED="firstChildChanged",t.EVENT_LAST_CHILD_CHANGED="lastChildChanged",t.EVENT_CHILD_INDEX_CHANGED="childIndexChanged",t.EVENT_ROW_INDEX_CHANGED="rowIndexChanged",t.EVENT_EXPANDED_CHANGED="expandedChanged",t.EVENT_HAS_CHILDREN_CHANGED="hasChildrenChanged",t.EVENT_SELECTABLE_CHANGED="selectableChanged",t.EVENT_UI_LEVEL_CHANGED="uiLevelChanged",t.EVENT_HIGHLIGHT_CHANGED="rowHighlightChanged",t.EVENT_DRAGGING_CHANGED="draggingChanged",t}(),ys=function(){var t=function(e,o){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])})(e,o)};return function(e,o){function i(){this.constructor=e}t(e,o),e.prototype=null===o?Object.create(o):(i.prototype=o.prototype,new i)}}(),ms=function(){return(ms=Object.assign||function(t){for(var e,o=1,i=arguments.length;o<i;o++)for(var n in e=arguments[o])Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t}).apply(this,arguments)},Cs=function(t,e,o,i){var n,r=arguments.length,s=r<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,o):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,o,i);else for(var a=t.length-1;a>=0;a--)(n=t[a])&&(s=(r<3?n(s):r>3?n(e,o,s):n(e,o))||s);return r>3&&s&&Object.defineProperty(e,o,s),s},ws=function(t){function e(){return t.call(this,'\n <div class="ag-selection-checkbox" role="presentation">\n <ag-checkbox role="presentation" ref="eCheckbox"></ag-checkbox>\n </div>')||this}return ys(e,t),e.prototype.postConstruct=function(){this.eCheckbox.setPassive(!0),qe(this.eCheckbox.getInputElement(),"polite")},e.prototype.getCheckboxId=function(){return this.eCheckbox.getInputElement().id},e.prototype.onDataChanged=function(){this.onSelectionChanged()},e.prototype.onSelectableChanged=function(){this.showOrHideSelect()},e.prototype.onSelectionChanged=function(){var t=this.localeService.getLocaleTextFunc(),e=this.rowNode.isSelected(),o=void 0===e?t("ariaIndeterminate","indeterminate"):!0===e?t("ariaChecked","checked"):t("ariaUnchecked","unchecked"),i=t("ariaRowToggleSelection","Press Space to toggle row selection");this.eCheckbox.setValue(e,!0),this.eCheckbox.setInputAriaLabel(i+" ("+o+")")},e.prototype.onCheckedClicked=function(t){var e=this.gridOptionsService.is("groupSelectsFiltered");return this.rowNode.setSelectedParams({newValue:!1,rangeSelect:t.shiftKey,groupSelectsFiltered:e,event:t,source:"checkboxSelected"})},e.prototype.onUncheckedClicked=function(t){var e=this.gridOptionsService.is("groupSelectsFiltered");return this.rowNode.setSelectedParams({newValue:!0,rangeSelect:t.shiftKey,groupSelectsFiltered:e,event:t,source:"checkboxSelected"})},e.prototype.init=function(t){var e=this;if(this.rowNode=t.rowNode,this.column=t.column,this.overrides=t.overrides,this.onSelectionChanged(),this.addManagedListener(this.eCheckbox.getInputElement(),"dblclick",(function(t){Et(t)})),this.addManagedListener(this.eCheckbox.getInputElement(),"click",(function(t){Et(t),e.eCheckbox.getValue()?e.onCheckedClicked(t):e.onUncheckedClicked(t||{})})),this.addManagedListener(this.rowNode,vs.EVENT_ROW_SELECTED,this.onSelectionChanged.bind(this)),this.addManagedListener(this.rowNode,vs.EVENT_DATA_CHANGED,this.onDataChanged.bind(this)),this.addManagedListener(this.rowNode,vs.EVENT_SELECTABLE_CHANGED,this.onSelectableChanged.bind(this)),this.gridOptionsService.get("isRowSelectable")||"function"==typeof this.getIsVisible()){var o=this.showOrHideSelect.bind(this);this.addManagedListener(this.eventService,kt.EVENT_DISPLAYED_COLUMNS_CHANGED,o),this.addManagedListener(this.rowNode,vs.EVENT_DATA_CHANGED,o),this.addManagedListener(this.rowNode,vs.EVENT_CELL_CHANGED,o),this.showOrHideSelect()}this.eCheckbox.getInputElement().setAttribute("tabindex","-1")},e.prototype.showOrHideSelect=function(){var t,e,o,i,n=this.rowNode.selectable,r=this.getIsVisible();if(n)if("function"==typeof r){var s=null===(t=this.overrides)||void 0===t?void 0:t.callbackParams,a=null===(e=this.column)||void 0===e?void 0:e.createColumnFunctionCallbackParams(this.rowNode);n=!!a&&r(ms(ms({},s),a))}else n=null!=r&&r;if(null===(o=this.column)||void 0===o?void 0:o.getColDef().showDisabledCheckboxes)return this.eCheckbox.setDisabled(!n),this.setVisible(!0),void this.setDisplayed(!0);(null===(i=this.overrides)||void 0===i?void 0:i.removeHidden)?this.setDisplayed(n):this.setVisible(n)},e.prototype.getIsVisible=function(){var t,e;return this.overrides?this.overrides.isVisible:null===(e=null===(t=this.column)||void 0===t?void 0:t.getColDef())||void 0===e?void 0:e.checkboxSelection},Cs([dn("eCheckbox")],e.prototype,"eCheckbox",void 0),Cs([B],e.prototype,"postConstruct",null),e}(cn),Ss=function(){var t=function(e,o){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])})(e,o)};return function(e,o){function i(){this.constructor=e}t(e,o),e.prototype=null===o?Object.create(o):(i.prototype=o.prototype,new i)}}(),Es=function(t,e,o,i){var n,r=arguments.length,s=r<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,o):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,o,i);else for(var a=t.length-1;a>=0;a--)(n=t[a])&&(s=(r<3?n(s):r>3?n(e,o,s):n(e,o))||s);return r>3&&s&&Object.defineProperty(e,o,s),s},Rs=function(t){var e="function"==typeof Symbol&&Symbol.iterator,o=e&&t[e],i=0;if(o)return o.call(t);if(t&&"number"==typeof t.length)return{next:function(){return t&&i>=t.length&&(t=void 0),{value:t&&t[i++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")};
199/**
200 * @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue
201 * @version v29.2.0
202 * @link https://www.ag-grid.com/
203 * @license MIT
204 */!function(t){t[t.ToolPanel=0]="ToolPanel",t[t.HeaderCell=1]="HeaderCell",t[t.RowDrag=2]="RowDrag",t[t.ChartPanel=3]="ChartPanel"}(br||(br={})),function(t){t[t.Up=0]="Up",t[t.Down=1]="Down"}(Tr||(Tr={})),function(t){t[t.Left=0]="Left",t[t.Right=1]="Right"}(Pr||(Pr={}));var Os,bs=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.dragSourceAndParamsList=[],e.dropTargets=[],e}var o;return Ss(e,t),o=e,e.prototype.init=function(){this.ePinnedIcon=Li("columnMovePin",this.gridOptionsService,null),this.eHideIcon=Li("columnMoveHide",this.gridOptionsService,null),this.eMoveIcon=Li("columnMoveMove",this.gridOptionsService,null),this.eLeftIcon=Li("columnMoveLeft",this.gridOptionsService,null),this.eRightIcon=Li("columnMoveRight",this.gridOptionsService,null),this.eGroupIcon=Li("columnMoveGroup",this.gridOptionsService,null),this.eAggregateIcon=Li("columnMoveValue",this.gridOptionsService,null),this.ePivotIcon=Li("columnMovePivot",this.gridOptionsService,null),this.eDropNotAllowedIcon=Li("dropNotAllowed",this.gridOptionsService,null)},e.prototype.addDragSource=function(t,e){void 0===e&&(e=!1);var o={eElement:t.eElement,dragStartPixels:t.dragStartPixels,onDragStart:this.onDragStart.bind(this,t),onDragStop:this.onDragStop.bind(this),onDragging:this.onDragging.bind(this)};this.dragSourceAndParamsList.push({params:o,dragSource:t}),this.dragService.addDragSource(o,e)},e.prototype.removeDragSource=function(t){var e=this.dragSourceAndParamsList.find((function(e){return e.dragSource===t}));e&&(this.dragService.removeDragSource(e.params),dt(this.dragSourceAndParamsList,e))},e.prototype.clearDragSourceParamsList=function(){var t=this;this.dragSourceAndParamsList.forEach((function(e){return t.dragService.removeDragSource(e.params)})),this.dragSourceAndParamsList.length=0,this.dropTargets.length=0},e.prototype.nudge=function(){this.dragging&&this.onDragging(this.eventLastTime,!0)},e.prototype.onDragStart=function(t,e){this.dragging=!0,this.dragSource=t,this.eventLastTime=e,this.dragItem=this.dragSource.getDragItem(),this.lastDropTarget=this.dragSource.dragSourceDropTarget,this.dragSource.onDragStarted&&this.dragSource.onDragStarted(),this.createGhost()},e.prototype.onDragStop=function(t){if(this.eventLastTime=null,this.dragging=!1,this.dragSource.onDragStopped&&this.dragSource.onDragStopped(),this.lastDropTarget&&this.lastDropTarget.onDragStop){var e=this.createDropTargetEvent(this.lastDropTarget,t,null,null,!1);this.lastDropTarget.onDragStop(e)}this.lastDropTarget=null,this.dragItem=null,this.removeGhost()},e.prototype.onDragging=function(t,e){var o,i,n,r,s=this,a=this.getHorizontalDirection(t),l=this.getVerticalDirection(t);this.eventLastTime=t,this.positionGhost(t);var u=this.dropTargets.filter((function(e){return s.isMouseOnDropTarget(t,e)})),c=this.findCurrentDropTarget(t,u);if(c!==this.lastDropTarget)this.leaveLastTargetIfExists(t,a,l,e),null!==this.lastDropTarget&&null===c&&(null===(i=(o=this.dragSource).onGridExit)||void 0===i||i.call(o,this.dragItem)),null===this.lastDropTarget&&null!==c&&(null===(r=(n=this.dragSource).onGridEnter)||void 0===r||r.call(n,this.dragItem)),this.enterDragTargetIfExists(c,t,a,l,e),this.lastDropTarget=c;else if(c&&c.onDragging){var p=this.createDropTargetEvent(c,t,a,l,e);c.onDragging(p)}},e.prototype.getAllContainersFromDropTarget=function(t){var e=t.getSecondaryContainers?t.getSecondaryContainers():null,o=[[t.getContainer()]];return e?o.concat(e):o},e.prototype.allContainersIntersect=function(t,e){var o,i;try{for(var n=Rs(e),r=n.next();!r.done;r=n.next()){var s=r.value.getBoundingClientRect();if(0===s.width||0===s.height)return!1;var a=t.clientX>=s.left&&t.clientX<s.right,l=t.clientY>=s.top&&t.clientY<s.bottom;if(!a||!l)return!1}}catch(t){o={error:t}}finally{try{r&&!r.done&&(i=n.return)&&i.call(n)}finally{if(o)throw o.error}}return!0},e.prototype.isMouseOnDropTarget=function(t,e){var o,i,n=this.getAllContainersFromDropTarget(e),r=!1;try{for(var s=Rs(n),a=s.next();!a.done;a=s.next()){var l=a.value;if(this.allContainersIntersect(t,l)){r=!0;break}}}catch(t){o={error:t}}finally{try{a&&!a.done&&(i=s.return)&&i.call(s)}finally{if(o)throw o.error}}return!(e.targetContainsSource&&!e.getContainer().contains(this.dragSource.eElement))&&(r&&e.isInterestedIn(this.dragSource.type,this.dragSource.eElement))},e.prototype.findCurrentDropTarget=function(t,e){var o,i,n,r,s=e.length;if(0===s)return null;if(1===s)return e[0];var a=this.gridOptionsService.getRootNode().elementsFromPoint(t.clientX,t.clientY);try{for(var l=Rs(a),u=l.next();!u.done;u=l.next()){var c=u.value;try{for(var p=(n=void 0,Rs(e)),d=p.next();!d.done;d=p.next()){var h=d.value;if(-1!==yt(this.getAllContainersFromDropTarget(h)).indexOf(c))return h}}catch(t){n={error:t}}finally{try{d&&!d.done&&(r=p.return)&&r.call(p)}finally{if(n)throw n.error}}}}catch(t){o={error:t}}finally{try{u&&!u.done&&(i=l.return)&&i.call(l)}finally{if(o)throw o.error}}return null},e.prototype.enterDragTargetIfExists=function(t,e,o,i,n){if(t){if(t.onDragEnter){var r=this.createDropTargetEvent(t,e,o,i,n);t.onDragEnter(r)}this.setGhostIcon(t.getIconName?t.getIconName():null)}},e.prototype.leaveLastTargetIfExists=function(t,e,o,i){if(this.lastDropTarget){if(this.lastDropTarget.onDragLeave){var n=this.createDropTargetEvent(this.lastDropTarget,t,e,o,i);this.lastDropTarget.onDragLeave(n)}this.setGhostIcon(null)}},e.prototype.addDropTarget=function(t){this.dropTargets.push(t)},e.prototype.removeDropTarget=function(t){this.dropTargets=this.dropTargets.filter((function(e){return e.getContainer()!==t.getContainer()}))},e.prototype.hasExternalDropZones=function(){return this.dropTargets.some((function(t){return t.external}))},e.prototype.findExternalZone=function(t){return this.dropTargets.filter((function(t){return t.external})).find((function(e){return e.getContainer()===t.getContainer()}))||null},e.prototype.getHorizontalDirection=function(t){var e=this.eventLastTime&&this.eventLastTime.clientX,o=t.clientX;return e===o?null:e>o?Pr.Left:Pr.Right},e.prototype.getVerticalDirection=function(t){var e=this.eventLastTime&&this.eventLastTime.clientY,o=t.clientY;return e===o?null:e>o?Tr.Up:Tr.Down},e.prototype.createDropTargetEvent=function(t,e,o,i,n){var r=t.getContainer(),s=r.getBoundingClientRect(),a=this.gridApi,l=this.columnApi,u=this.dragItem,c=this.dragSource;return{event:e,x:e.clientX-s.left,y:e.clientY-s.top,vDirection:i,hDirection:o,dragSource:c,fromNudge:n,dragItem:u,api:a,columnApi:l,dropZoneTarget:r}},e.prototype.positionGhost=function(t){var e=this.eGhost;if(e){var o=e.getBoundingClientRect().height,i=No()-2,n=Fo()-2,r=t.pageY-o/2,s=t.pageX-10,a=this.gridOptionsService.getDocument(),l=a.defaultView||window,u=l.pageYOffset||a.documentElement.scrollTop,c=l.pageXOffset||a.documentElement.scrollLeft;i>0&&s+e.clientWidth>i+c&&(s=i+c-e.clientWidth),s<0&&(s=0),n>0&&r+e.clientHeight>n+u&&(r=n+u-e.clientHeight),r<0&&(r=0),e.style.left=s+"px",e.style.top=r+"px"}},e.prototype.removeGhost=function(){this.eGhost&&this.eGhostParent&&this.eGhostParent.removeChild(this.eGhost),this.eGhost=null},e.prototype.createGhost=function(){this.eGhost=hi(o.GHOST_TEMPLATE),this.mouseEventService.stampTopLevelGridCompWithGridInstance(this.eGhost);var t=this.environment.getTheme().theme;t&&this.eGhost.classList.add(t),this.eGhostIcon=this.eGhost.querySelector(".ag-dnd-ghost-icon"),this.setGhostIcon(null);var e=this.eGhost.querySelector(".ag-dnd-ghost-label"),i=this.dragSource.dragItemName;T(i)&&(i=i()),e.innerHTML=fe(i)||"",this.eGhost.style.height="25px",this.eGhost.style.top="20px",this.eGhost.style.left="20px";var n=this.gridOptionsService.getDocument(),r=null;try{r=n.fullscreenElement}catch(t){}finally{if(!r){var s=this.gridOptionsService.getRootNode(),a=s.querySelector("body");r=a||(s instanceof ShadowRoot?s:null==s?void 0:s.documentElement)}}this.eGhostParent=r,this.eGhostParent?this.eGhostParent.appendChild(this.eGhost):console.warn("AG Grid: could not find document body, it is needed for dragging columns")},e.prototype.setGhostIcon=function(t,e){void 0===e&&(e=!1),ci(this.eGhostIcon);var i=null;switch(t||(t=this.dragSource.defaultIconName||o.ICON_NOT_ALLOWED),t){case o.ICON_PINNED:i=this.ePinnedIcon;break;case o.ICON_MOVE:i=this.eMoveIcon;break;case o.ICON_LEFT:i=this.eLeftIcon;break;case o.ICON_RIGHT:i=this.eRightIcon;break;case o.ICON_GROUP:i=this.eGroupIcon;break;case o.ICON_AGGREGATE:i=this.eAggregateIcon;break;case o.ICON_PIVOT:i=this.ePivotIcon;break;case o.ICON_NOT_ALLOWED:i=this.eDropNotAllowedIcon;break;case o.ICON_HIDE:i=this.eHideIcon}this.eGhostIcon.classList.toggle("ag-shake-left-to-right",e),i===this.eHideIcon&&this.gridOptionsService.is("suppressDragLeaveHidesColumns")||i&&this.eGhostIcon.appendChild(i)},e.ICON_PINNED="pinned",e.ICON_MOVE="move",e.ICON_LEFT="left",e.ICON_RIGHT="right",e.ICON_GROUP="group",e.ICON_AGGREGATE="aggregate",e.ICON_PIVOT="pivot",e.ICON_NOT_ALLOWED="notAllowed",e.ICON_HIDE="hide",e.GHOST_TEMPLATE='<div class="ag-dnd-ghost ag-unselectable">\n <span class="ag-dnd-ghost-icon ag-shake-left-to-right"></span>\n <div class="ag-dnd-ghost-label"></div>\n </div>',Es([U("dragService")],e.prototype,"dragService",void 0),Es([U("mouseEventService")],e.prototype,"mouseEventService",void 0),Es([U("columnApi")],e.prototype,"columnApi",void 0),Es([U("gridApi")],e.prototype,"gridApi",void 0),Es([B],e.prototype,"init",null),Es([j],e.prototype,"clearDragSourceParamsList",null),e=o=Es([W("dragAndDropService")],e)}(Mt),Ts=function(){var t=function(e,o){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])})(e,o)};return function(e,o){function i(){this.constructor=e}t(e,o),e.prototype=null===o?Object.create(o):(i.prototype=o.prototype,new i)}}(),Ps=function(t,e,o,i){var n,r=arguments.length,s=r<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,o):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,o,i);else for(var a=t.length-1;a>=0;a--)(n=t[a])&&(s=(r<3?n(s):r>3?n(e,o,s):n(e,o))||s);return r>3&&s&&Object.defineProperty(e,o,s),s},Ds=function(t){function e(e,o,i,n,r,s){var a=t.call(this)||this;return a.cellValueFn=e,a.rowNode=o,a.column=i,a.customGui=n,a.dragStartPixels=r,a.suppressVisibilityChange=s,a.dragSource=null,a}return Ts(e,t),e.prototype.isCustomGui=function(){return null!=this.customGui},e.prototype.postConstruct=function(){if(this.customGui?this.setDragElement(this.customGui,this.dragStartPixels):(this.setTemplate('<div class="ag-drag-handle ag-row-drag" aria-hidden="true"></div>'),this.getGui().appendChild(Mi("rowDrag",this.beans.gridOptionsService,null)),this.addDragSource()),this.checkCompatibility(),!this.suppressVisibilityChange){var t=this.beans.gridOptionsService.is("rowDragManaged")?new Ns(this,this.beans,this.rowNode,this.column):new As(this,this.beans,this.rowNode,this.column);this.createManagedBean(t,this.beans.context)}},e.prototype.setDragElement=function(t,e){this.setTemplateFromElement(t),this.addDragSource(e)},e.prototype.getSelectedNodes=function(){if(!this.beans.gridOptionsService.is("rowDragMultiRow"))return[this.rowNode];var t=this.beans.selectionService.getSelectedNodes();return-1!==t.indexOf(this.rowNode)?t:[this.rowNode]},e.prototype.checkCompatibility=function(){var t=this.beans.gridOptionsService.is("rowDragManaged");this.beans.gridOptionsService.isTreeData()&&t&&O((function(){return console.warn("AG Grid: If using row drag with tree data, you cannot have rowDragManaged=true")}),"RowDragComp.managedAndTreeData")},e.prototype.getDragItem=function(){return{rowNode:this.rowNode,rowNodes:this.getSelectedNodes(),columns:this.column?[this.column]:void 0,defaultTextValue:this.cellValueFn()}},e.prototype.getRowDragText=function(t){if(t){var e=t.getColDef();if(e.rowDragText)return e.rowDragText}return this.gridOptionsService.get("rowDragText")},e.prototype.addDragSource=function(t){var e=this;void 0===t&&(t=4),this.dragSource&&this.removeDragSource();var o=this.getRowDragText(this.column),i=this.localeService.getLocaleTextFunc();this.dragSource={type:br.RowDrag,eElement:this.getGui(),dragItemName:function(){var t,n=e.getDragItem(),r=(null===(t=n.rowNodes)||void 0===t?void 0:t.length)||1;return o?o(n,r):1===r?e.cellValueFn():r+" "+i("rowDragRows","rows")},getDragItem:function(){return e.getDragItem()},dragStartPixels:t,dragSourceDomDataKey:this.beans.gridOptionsService.getDomDataKey()},this.beans.dragAndDropService.addDragSource(this.dragSource,!0)},e.prototype.removeDragSource=function(){this.dragSource&&this.beans.dragAndDropService.removeDragSource(this.dragSource),this.dragSource=null},Ps([U("beans")],e.prototype,"beans",void 0),Ps([B],e.prototype,"postConstruct",null),Ps([j],e.prototype,"removeDragSource",null),e}(cn),_s=function(t){function e(e,o,i){var n=t.call(this)||this;return n.parent=e,n.rowNode=o,n.column=i,n}return Ts(e,t),e.prototype.setDisplayedOrVisible=function(t){var e={skipAriaHidden:!0};if(t)this.parent.setDisplayed(!1,e);else{var o=!0,i=!1;this.column&&(o=this.column.isRowDrag(this.rowNode)||this.parent.isCustomGui(),i=T(this.column.getColDef().rowDrag)),i?(this.parent.setDisplayed(!0,e),this.parent.setVisible(o,e)):(this.parent.setDisplayed(o,e),this.parent.setVisible(!0,e))}},e}(Mt),As=function(t){function e(e,o,i,n){var r=t.call(this,e,i,n)||this;return r.beans=o,r}return Ts(e,t),e.prototype.postConstruct=function(){this.addManagedPropertyListener("suppressRowDrag",this.onSuppressRowDrag.bind(this)),this.addManagedListener(this.rowNode,vs.EVENT_DATA_CHANGED,this.workOutVisibility.bind(this)),this.addManagedListener(this.rowNode,vs.EVENT_CELL_CHANGED,this.workOutVisibility.bind(this)),this.addManagedListener(this.rowNode,vs.EVENT_CELL_CHANGED,this.workOutVisibility.bind(this)),this.addManagedListener(this.beans.eventService,kt.EVENT_NEW_COLUMNS_LOADED,this.workOutVisibility.bind(this)),this.workOutVisibility()},e.prototype.onSuppressRowDrag=function(){this.workOutVisibility()},e.prototype.workOutVisibility=function(){var t=this.beans.gridOptionsService.is("suppressRowDrag");this.setDisplayedOrVisible(t)},Ps([B],e.prototype,"postConstruct",null),e}(_s),Ns=function(t){function e(e,o,i,n){var r=t.call(this,e,i,n)||this;return r.beans=o,r}return Ts(e,t),e.prototype.postConstruct=function(){this.addManagedListener(this.beans.eventService,kt.EVENT_SORT_CHANGED,this.workOutVisibility.bind(this)),this.addManagedListener(this.beans.eventService,kt.EVENT_FILTER_CHANGED,this.workOutVisibility.bind(this)),this.addManagedListener(this.beans.eventService,kt.EVENT_COLUMN_ROW_GROUP_CHANGED,this.workOutVisibility.bind(this)),this.addManagedListener(this.beans.eventService,kt.EVENT_NEW_COLUMNS_LOADED,this.workOutVisibility.bind(this)),this.addManagedListener(this.rowNode,vs.EVENT_DATA_CHANGED,this.workOutVisibility.bind(this)),this.addManagedListener(this.rowNode,vs.EVENT_CELL_CHANGED,this.workOutVisibility.bind(this)),this.addManagedPropertyListener("suppressRowDrag",this.onSuppressRowDrag.bind(this)),this.workOutVisibility()},e.prototype.onSuppressRowDrag=function(){this.workOutVisibility()},e.prototype.workOutVisibility=function(){var t=this.beans.ctrlsService.getGridBodyCtrl().getRowDragFeature(),e=t&&t.shouldPreventRowMove(),o=this.beans.gridOptionsService.is("suppressRowDrag"),i=this.beans.dragAndDropService.hasExternalDropZones(),n=e&&!i||o;this.setDisplayedOrVisible(n)},Ps([B],e.prototype,"postConstruct",null),e}(_s),Fs=function(){var t=function(e,o){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])})(e,o)};return function(e,o){function i(){this.constructor=e}t(e,o),e.prototype=null===o?Object.create(o):(i.prototype=o.prototype,new i)}}(),Ls=function(){return(Ls=Object.assign||function(t){for(var e,o=1,i=arguments.length;o<i;o++)for(var n in e=arguments[o])Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t}).apply(this,arguments)},Ms=function(t,e,o,i){var n,r=arguments.length,s=r<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,o):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,o,i);else for(var a=t.length-1;a>=0;a--)(n=t[a])&&(s=(r<3?n(s):r>3?n(e,o,s):n(e,o))||s);return r>3&&s&&Object.defineProperty(e,o,s),s},Is=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Fs(e,t),e.prototype.init=function(t,e,o,i,n,r,s){this.params=s,this.eGui=e,this.eCheckbox=o,this.eExpanded=i,this.eContracted=n,this.comp=t,this.compClass=r;var a=this.isTopLevelFooter(),l=this.isEmbeddedRowMismatch(),u=null==s.value&&!s.node.master,c=!1;if(this.gridOptionsService.is("groupIncludeFooter")&&this.gridOptionsService.is("groupHideOpenParents")){var p=s.node;if(p.footer)c=(s.colDef&&s.colDef.showRowGroup)!==(p.rowGroupColumn&&p.rowGroupColumn.getColId())}this.cellIsBlank=!a&&(l||u&&!s.node.master||c),this.cellIsBlank||(this.setupShowingValueForOpenedParent(),this.findDisplayedGroupNode(),this.addFullWidthRowDraggerIfNeeded(),this.addExpandAndContract(),this.addCheckboxIfNeeded(),this.addValueElement(),this.setupIndent(),this.refreshAriaExpanded())},e.prototype.destroy=function(){t.prototype.destroy.call(this),this.expandListener=null},e.prototype.refreshAriaExpanded=function(){var t=this.params,e=t.node,o=t.eParentOfValue;if(this.expandListener&&(this.expandListener=this.expandListener()),this.isExpandable()){var i=function(){Ze(o,!!e.expanded)};this.expandListener=this.addManagedListener(e,vs.EVENT_EXPANDED_CHANGED,i)||null,i()}else $e(o)},e.prototype.isTopLevelFooter=function(){if(!this.gridOptionsService.is("groupIncludeTotalFooter"))return!1;if(null!=this.params.value||-1!=this.params.node.level)return!1;var t=this.params.colDef;if(null==t)return!0;if(!0===t.showRowGroup)return!0;var e=this.columnModel.getRowGroupColumns();return!e||0===e.length||e[0].getId()===t.showRowGroup},e.prototype.isEmbeddedRowMismatch=function(){if(!this.params.fullWidth||!this.gridOptionsService.is("embedFullWidthRows"))return!1;var t="left"===this.params.pinned,e="right"===this.params.pinned,o=!t&&!e;return this.gridOptionsService.is("enableRtl")?this.columnModel.isPinningLeft()?!e:!o:this.columnModel.isPinningLeft()?!t:!o},e.prototype.findDisplayedGroupNode=function(){var t=this.params.column,e=this.params.node;if(this.showingValueForOpenedParent)for(var i=e.parent;null!=i;){if(i.rowGroupColumn&&t.isRowGroupDisplayed(i.rowGroupColumn.getId())){this.displayedGroupNode=i;break}i=i.parent}o(this.displayedGroupNode)&&(this.displayedGroupNode=e)},e.prototype.setupShowingValueForOpenedParent=function(){var t=this.params.node,e=this.params.column;if(this.gridOptionsService.is("groupHideOpenParents"))if(t.groupData){if(null!=t.rowGroupColumn){var o=t.rowGroupColumn.getId();if(e.isRowGroupDisplayed(o))return void(this.showingValueForOpenedParent=!1)}var i=null!=t.groupData[e.getId()];this.showingValueForOpenedParent=i}else this.showingValueForOpenedParent=!1;else this.showingValueForOpenedParent=!1},e.prototype.addValueElement=function(){this.displayedGroupNode.footer?this.addFooterValue():(this.addGroupValue(),this.addChildCount())},e.prototype.addGroupValue=function(){var t=this.adjustParamsWithDetailsFromRelatedColumn(),e=this.getInnerCompDetails(t),o=t.valueFormatted,i=t.value,n=o;null==n&&(n=""===i&&this.params.node.group?this.localeService.getLocaleTextFunc()("blanks","(Blanks)"):null!=i?i:null);this.comp.setInnerRenderer(e,n)},e.prototype.adjustParamsWithDetailsFromRelatedColumn=function(){var t=this.displayedGroupNode.rowGroupColumn,e=this.params.column;if(!t)return this.params;if(null!=e&&!e.isRowGroupDisplayed(t.getId()))return this.params;var o=this.params,i=this.params,n=i.value,r=i.node,s=this.valueFormatterService.formatValue(t,r,n);return Ls(Ls({},o),{valueFormatted:s})},e.prototype.addFooterValue=function(){var t=this.params.footerValueGetter,e="";if(t){var o=p(this.params);o.value=this.params.value,"function"==typeof t?e=t(o):"string"==typeof t?e=this.expressionService.evaluate(t,o):console.warn("AG Grid: footerValueGetter should be either a function or a string (expression)")}else e="Total "+(null!=this.params.value?this.params.value:"");var i=this.getInnerCompDetails(this.params);this.comp.setInnerRenderer(i,e)},e.prototype.getInnerCompDetails=function(t){var e=this;if(t.fullWidth)return this.userComponentFactory.getFullWidthGroupRowInnerCellRenderer(this.gridOptionsService.get("groupRowRendererParams"),t);var o=this.userComponentFactory.getInnerRendererDetails(t,t),i=function(t){return t&&t.componentClass==e.compClass};if(o&&!i(o))return o;var n=this.displayedGroupNode.rowGroupColumn,r=n?n.getColDef():void 0;if(r){var s=this.userComponentFactory.getCellRendererDetails(r,t);if(s&&!i(s))return s;if(i(s)&&r.cellRendererParams&&r.cellRendererParams.innerRenderer)return this.userComponentFactory.getInnerRendererDetails(r.cellRendererParams,t)}},e.prototype.addChildCount=function(){this.params.suppressCount||(this.addManagedListener(this.displayedGroupNode,vs.EVENT_ALL_CHILDREN_COUNT_CHANGED,this.updateChildCount.bind(this)),this.updateChildCount())},e.prototype.updateChildCount=function(){var t=this.displayedGroupNode.allChildrenCount,e=this.isShowRowGroupForThisRow()&&null!=t&&t>=0?"("+t+")":"";this.comp.setChildCount(e)},e.prototype.isShowRowGroupForThisRow=function(){if(this.gridOptionsService.isTreeData())return!0;var t=this.displayedGroupNode.rowGroupColumn;if(!t)return!1;var e=this.params.column;return null==e||e.isRowGroupDisplayed(t.getId())},e.prototype.addExpandAndContract=function(){var t=this.params,e=Mi("groupExpanded",this.gridOptionsService,null),o=Mi("groupContracted",this.gridOptionsService,null);e&&this.eExpanded.appendChild(e),o&&this.eContracted.appendChild(o);var i=t.eGridCell;this.gridOptionsService.is("enableGroupEdit")||!this.isExpandable()||t.suppressDoubleClickExpand||this.addManagedListener(i,"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(i,"keydown",this.onKeyDown.bind(this)),this.addManagedListener(t.node,vs.EVENT_EXPANDED_CHANGED,this.showExpandAndContractIcons.bind(this)),this.showExpandAndContractIcons();var n=this.onRowNodeIsExpandableChanged.bind(this);this.addManagedListener(this.displayedGroupNode,vs.EVENT_ALL_CHILDREN_COUNT_CHANGED,n),this.addManagedListener(this.displayedGroupNode,vs.EVENT_MASTER_CHANGED,n),this.addManagedListener(this.displayedGroupNode,vs.EVENT_GROUP_CHANGED,n),this.addManagedListener(this.displayedGroupNode,vs.EVENT_HAS_CHILDREN_CHANGED,n)},e.prototype.onExpandClicked=function(t){Rt(t)||(Et(t),this.onExpandOrContract(t))},e.prototype.onExpandOrContract=function(t){var e=this.displayedGroupNode,o=!e.expanded;!o&&e.sticky&&this.scrollToStickyNode(e),e.setExpanded(o,t)},e.prototype.scrollToStickyNode=function(t){this.ctrlsService.getGridBodyCtrl().getScrollFeature().setVerticalScrollPosition(t.rowTop-t.stickyRowTop)},e.prototype.isExpandable=function(){if(this.showingValueForOpenedParent)return!0;var t=this.displayedGroupNode,e=this.columnModel.isPivotMode()&&t.leafGroup;if(!(t.isExpandable()&&!t.footer&&!e))return!1;var o=this.params.column;return null==o||"string"!=typeof o.getColDef().showRowGroup||this.isShowRowGroupForThisRow()},e.prototype.showExpandAndContractIcons=function(){var t=this.params,e=this.displayedGroupNode,o=this.columnModel,i=t.node,n=this.isExpandable();if(n){var r=!!this.showingValueForOpenedParent||i.expanded;this.comp.setExpandedDisplayed(r),this.comp.setContractedDisplayed(!r)}else this.comp.setExpandedDisplayed(!1),this.comp.setContractedDisplayed(!1);var s=o.isPivotMode(),a=s&&e.leafGroup,l=n&&!a,u=i.footer&&-1===i.level;this.comp.addOrRemoveCssClass("ag-cell-expandable",l),this.comp.addOrRemoveCssClass("ag-row-group",l),s?this.comp.addOrRemoveCssClass("ag-pivot-leaf-group",a):u||this.comp.addOrRemoveCssClass("ag-row-group-leaf-indent",!l)},e.prototype.onRowNodeIsExpandableChanged=function(){this.showExpandAndContractIcons(),this.setIndent(),this.refreshAriaExpanded()},e.prototype.setupIndent=function(){var t=this.params.node;this.params.suppressPadding||(this.addManagedListener(t,vs.EVENT_UI_LEVEL_CHANGED,this.setIndent.bind(this)),this.setIndent())},e.prototype.setIndent=function(){if(!this.gridOptionsService.is("groupHideOpenParents")){var t=this.params,e=t.node,o=!!t.colDef,i=this.gridOptionsService.isTreeData(),n=!o||i||!0===t.colDef.showRowGroup?e.uiLevel:0;this.indentClass&&this.comp.addOrRemoveCssClass(this.indentClass,!1),this.indentClass="ag-row-group-indent-"+n,this.comp.addOrRemoveCssClass(this.indentClass,!0)}},e.prototype.addFullWidthRowDraggerIfNeeded=function(){var t=this;if(this.params.fullWidth&&this.params.rowDrag){var e=new Ds((function(){return t.params.value}),this.params.node);this.createManagedBean(e,this.context),this.eGui.insertAdjacentElement("afterbegin",e.getGui())}},e.prototype.isUserWantsSelected=function(){var t=this.params.checkbox;return"function"==typeof t||!0===t},e.prototype.addCheckboxIfNeeded=function(){var t=this,e=this.displayedGroupNode,o=this.isUserWantsSelected()&&!e.footer&&!e.rowPinned&&!e.detail;if(o){var i=new ws;this.getContext().createBean(i),i.init({rowNode:e,column:this.params.column,overrides:{isVisible:this.params.checkbox,callbackParams:this.params,removeHidden:!0}}),this.eCheckbox.appendChild(i.getGui()),this.addDestroyFunc((function(){return t.getContext().destroyBean(i)}))}this.comp.setCheckboxVisible(o)},e.prototype.onKeyDown=function(t){t.key!==Gi.ENTER||this.params.suppressEnterExpand||(this.params.column&&this.params.column.isCellEditable(this.params.node)||this.onExpandOrContract(t))},e.prototype.onCellDblClicked=function(t){Rt(t)||(Pt(this.eExpanded,t)||Pt(this.eContracted,t)||this.onExpandOrContract(t))},Ms([U("expressionService")],e.prototype,"expressionService",void 0),Ms([U("valueFormatterService")],e.prototype,"valueFormatterService",void 0),Ms([U("columnModel")],e.prototype,"columnModel",void 0),Ms([U("userComponentFactory")],e.prototype,"userComponentFactory",void 0),Ms([U("ctrlsService")],e.prototype,"ctrlsService",void 0),e}(Mt),Gs=function(){var t=function(e,o){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])})(e,o)};return function(e,o){function i(){this.constructor=e}t(e,o),e.prototype=null===o?Object.create(o):(i.prototype=o.prototype,new i)}}(),xs=function(t,e,o,i){var n,r=arguments.length,s=r<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,o):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,o,i);else for(var a=t.length-1;a>=0;a--)(n=t[a])&&(s=(r<3?n(s):r>3?n(e,o,s):n(e,o))||s);return r>3&&s&&Object.defineProperty(e,o,s),s},Hs=function(t){function e(){return t.call(this,e.TEMPLATE)||this}return Gs(e,t),e.prototype.init=function(t){var e=this,o={setInnerRenderer:function(t,o){return e.setRenderDetails(t,o)},setChildCount:function(t){return e.eChildCount.innerHTML=t},addOrRemoveCssClass:function(t,o){return e.addOrRemoveCssClass(t,o)},setContractedDisplayed:function(t){return Zo(e.eContracted,t)},setExpandedDisplayed:function(t){return Zo(e.eExpanded,t)},setCheckboxVisible:function(t){return e.eCheckbox.classList.toggle("ag-invisible",!t)}},i=this.createManagedBean(new Is),n=!t.colDef,r=this.getGui();i.init(o,r,this.eCheckbox,this.eExpanded,this.eContracted,this.constructor,t),n&&ke(r,"gridcell")},e.prototype.setRenderDetails=function(t,e){var o=this;if(t){var i=t.newAgStackInstance();if(!i)return;i.then((function(t){if(t){var e=function(){return o.context.destroyBean(t)};o.isAlive()?(o.eValue.appendChild(t.getGui()),o.addDestroyFunc(e)):e()}}))}else this.eValue.innerText=e},e.prototype.destroy=function(){this.getContext().destroyBean(this.innerCellRenderer),t.prototype.destroy.call(this)},e.prototype.refresh=function(){return!1},e.TEMPLATE='<span class="ag-cell-wrapper">\n <span class="ag-group-expanded" ref="eExpanded"></span>\n <span class="ag-group-contracted" ref="eContracted"></span>\n <span class="ag-group-checkbox ag-invisible" ref="eCheckbox"></span>\n <span class="ag-group-value" ref="eValue"></span>\n <span class="ag-group-child-count" ref="eChildCount"></span>\n </span>',xs([dn("eExpanded")],e.prototype,"eExpanded",void 0),xs([dn("eContracted")],e.prototype,"eContracted",void 0),xs([dn("eCheckbox")],e.prototype,"eCheckbox",void 0),xs([dn("eValue")],e.prototype,"eValue",void 0),xs([dn("eChildCount")],e.prototype,"eChildCount",void 0),e}(cn),Vs=function(){var t=function(e,o){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])})(e,o)};return function(e,o){function i(){this.constructor=e}t(e,o),e.prototype=null===o?Object.create(o):(i.prototype=o.prototype,new i)}}(),ks=function(t,e,o,i){var n,r=arguments.length,s=r<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,o):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,o,i);else for(var a=t.length-1;a>=0;a--)(n=t[a])&&(s=(r<3?n(s):r>3?n(e,o,s):n(e,o))||s);return r>3&&s&&Object.defineProperty(e,o,s),s},Bs=function(t){function e(){return t.call(this,e.TEMPLATE)||this}return Vs(e,t),e.prototype.init=function(t){t.node.failedLoad?this.setupFailed():this.setupLoading()},e.prototype.setupFailed=function(){var t=this.localeService.getLocaleTextFunc();this.eLoadingText.innerText=t("loadingError","ERR")},e.prototype.setupLoading=function(){var t=Mi("groupLoading",this.gridOptionsService,null);t&&this.eLoadingIcon.appendChild(t);var e=this.localeService.getLocaleTextFunc();this.eLoadingText.innerText=e("loadingOoo","Loading")},e.prototype.refresh=function(t){return!1},e.prototype.destroy=function(){t.prototype.destroy.call(this)},e.TEMPLATE='<div class="ag-loading">\n <span class="ag-loading-icon" ref="eLoadingIcon"></span>\n <span class="ag-loading-text" ref="eLoadingText"></span>\n </div>',ks([dn("eLoadingIcon")],e.prototype,"eLoadingIcon",void 0),ks([dn("eLoadingText")],e.prototype,"eLoadingText",void 0),e}(cn),js=function(){var t=function(e,o){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])})(e,o)};return function(e,o){function i(){this.constructor=e}t(e,o),e.prototype=null===o?Object.create(o):(i.prototype=o.prototype,new i)}}(),Ws=function(t){function e(){return t.call(this)||this}return js(e,t),e.prototype.destroy=function(){t.prototype.destroy.call(this)},e.prototype.init=function(t){var o,i=null!==(o=this.gridOptionsService.get("overlayLoadingTemplate"))&&void 0!==o?o:e.DEFAULT_LOADING_OVERLAY_TEMPLATE,n=this.localeService.getLocaleTextFunc(),r=i.replace("[LOADING...]",n("loadingOoo","Loading..."));this.setTemplate(r)},e.DEFAULT_LOADING_OVERLAY_TEMPLATE='<span class="ag-overlay-loading-center">[LOADING...]</span>',e}(cn),Us=function(){var t=function(e,o){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])})(e,o)};return function(e,o){function i(){this.constructor=e}t(e,o),e.prototype=null===o?Object.create(o):(i.prototype=o.prototype,new i)}}(),zs=function(t){function e(){return t.call(this)||this}return Us(e,t),e.prototype.destroy=function(){t.prototype.destroy.call(this)},e.prototype.init=function(t){var o,i=null!==(o=this.gridOptionsService.get("overlayNoRowsTemplate"))&&void 0!==o?o:e.DEFAULT_NO_ROWS_TEMPLATE,n=this.localeService.getLocaleTextFunc(),r=i.replace("[NO_ROWS_TO_SHOW]",n("noRowsToShow","No Rows To Show"));this.setTemplate(r)},e.DEFAULT_NO_ROWS_TEMPLATE='<span class="ag-overlay-no-rows-center">[NO_ROWS_TO_SHOW]</span>',e}(cn),Ks=function(){var t=function(e,o){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])})(e,o)};return function(e,o){function i(){this.constructor=e}t(e,o),e.prototype=null===o?Object.create(o):(i.prototype=o.prototype,new i)}}(),Ys=function(t){function e(){return t.call(this,'<div class="ag-tooltip"></div>')||this}return Ks(e,t),e.prototype.init=function(t){var e=t.value;this.getGui().innerHTML=fe(e)},e}($r),qs=function(){var t=function(e,o){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])})(e,o)};return function(e,o){function i(){this.constructor=e}t(e,o),e.prototype=null===o?Object.create(o):(i.prototype=o.prototype,new i)}}(),Qs=function(t,e,o,i){var n,r=arguments.length,s=r<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,o):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,o,i);else for(var a=t.length-1;a>=0;a--)(n=t[a])&&(s=(r<3?n(s):r>3?n(e,o,s):n(e,o))||s);return r>3&&s&&Object.defineProperty(e,o,s),s},Xs=function(t,e){var o="function"==typeof Symbol&&t[Symbol.iterator];if(!o)return t;var i,n,r=o.call(t),s=[];try{for(;(void 0===e||e-- >0)&&!(i=r.next()).done;)s.push(i.value)}catch(t){n={error:t}}finally{try{i&&!i.done&&(o=r.return)&&o.call(r)}finally{if(n)throw n.error}}return s},Js=function(){for(var t=[],e=0;e<arguments.length;e++)t=t.concat(Xs(arguments[e]));return t},Zs=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.agGridDefaults={agDateInput:yr,agColumnHeader:qr,agColumnGroupHeader:Jr,agSortIndicator:zr,agTextColumnFloatingFilter:Br,agNumberColumnFloatingFilter:Vr,agDateColumnFloatingFilter:fr,agReadOnlyFloatingFilter:vn,agAnimateShowChangeCellRenderer:ps,agAnimateSlideCellRenderer:fs,agGroupCellRenderer:Hs,agGroupRowRenderer:Hs,agLoadingCellRenderer:Bs,agCellEditor:ls,agTextCellEditor:ls,agSelectCellEditor:rs,agLargeTextCellEditor:os,agTextColumnFilter:Fr,agNumberColumnFilter:Dr,agDateColumnFilter:ur,agLoadingOverlay:Ws,agNoRowsOverlay:zs,agTooltipComponent:Ys},e.enterpriseAgDefaultCompsModule={agSetColumnFilter:Q.SetFilterModule,agSetColumnFloatingFilter:Q.SetFilterModule,agMultiColumnFilter:Q.MultiFilterModule,agMultiColumnFloatingFilter:Q.MultiFilterModule,agGroupColumnFilter:Q.RowGroupingModule,agGroupColumnFloatingFilter:Q.RowGroupingModule,agRichSelect:Q.RichSelectModule,agRichSelectCellEditor:Q.RichSelectModule,agDetailCellRenderer:Q.MasterDetailModule,agSparklineCellRenderer:Q.SparklinesModule},e.deprecatedAgGridDefaults={agPopupTextCellEditor:'AG Grid: Since v27.1 The agPopupTextCellEditor is deprecated. Instead use { cellEditor: "agTextCellEditor", cellEditorPopup: true }',agPopupSelectCellEditor:'AG Grid: Since v27.1 the agPopupSelectCellEditor is deprecated. Instead use { cellEditor: "agSelectCellEditor", cellEditorPopup: true }'},e.jsComps={},e.fwComps={},e}return qs(e,t),e.prototype.init=function(){var t=this;null!=this.gridOptions.components&&c(this.gridOptions.components,(function(e,o){return t.registerJsComponent(e,o)})),null!=this.gridOptions.frameworkComponents&&c(this.gridOptions.frameworkComponents,(function(e,o){return t.registerFwComponent(e,o)}))},e.prototype.registerDefaultComponent=function(t,e){this.agGridDefaults[t]?console.error("Trying to overwrite a default component. You should call registerComponent"):this.agGridDefaults[t]=e},e.prototype.registerJsComponent=function(t,e){this.fwComps[t]?console.error("Trying to register a component that you have already registered for frameworks: "+t):this.jsComps[t]=e},e.prototype.registerFwComponent=function(t,e){O((function(){return console.warn("AG Grid: As of v27, registering components via grid property frameworkComponents is deprecated. Instead register both JavaScript AND Framework Components via the components property.")}),"UserComponentRegistry.frameworkComponentsDeprecated"),this.fwComps[t]=e},e.prototype.retrieve=function(t,e){var o=this,i=function(t,e){return{componentFromFramework:e,component:t}},n=this.getFrameworkOverrides().frameworkComponent(e,this.gridOptions.components);if(null!=n)return i(n,!0);var r=this.fwComps[e];if(r)return i(r,!0);var s=this.jsComps[e];if(s)return i(s,this.getFrameworkOverrides().isFrameworkComponent(s));var a=this.agGridDefaults[e];if(a)return i(a,!1);var l=this.enterpriseAgDefaultCompsModule[e];return l?tt.assertRegistered(l,"AG Grid '"+t+"' component: "+e):this.deprecatedAgGridDefaults[e]?O((function(){return console.warn(o.deprecatedAgGridDefaults[e])}),e):O((function(){o.warnAboutMissingComponent(t,e)}),"MissingComp"+e),null},e.prototype.warnAboutMissingComponent=function(t,e){var o=Qt(e,Js(Object.keys(this.agGridDefaults).filter((function(t){return!["agCellEditor","agGroupRowRenderer","agSortIndicator"].includes(t)})),Object.keys(this.jsComps),Object.keys(this.fwComps)),!0,.8);console.warn("AG Grid: Could not find '"+e+"' component. It was configured as \""+t+": '"+e+"'\" but it wasn't found in the list of registered components."),o.length>0&&console.warn(" Did you mean: ["+o.slice(0,3)+"]?"),console.warn("If using a custom component check it has been registered as described in: https://ag-grid.com/javascript-data-grid/components/")},Qs([U("gridOptions")],e.prototype,"gridOptions",void 0),Qs([B],e.prototype,"init",null),e=Qs([W("userComponentRegistry")],e)}(Mt),$s={propertyName:"dateComponent",cellRenderer:!1},ta={propertyName:"headerComponent",cellRenderer:!1},ea={propertyName:"headerGroupComponent",cellRenderer:!1},oa={propertyName:"cellRenderer",cellRenderer:!0},ia={propertyName:"cellEditor",cellRenderer:!1},na={propertyName:"innerRenderer",cellRenderer:!0},ra={propertyName:"loadingOverlayComponent",cellRenderer:!1},sa={propertyName:"noRowsOverlayComponent",cellRenderer:!1},aa={propertyName:"tooltipComponent",cellRenderer:!1},la={propertyName:"filter",cellRenderer:!1},ua={propertyName:"floatingFilterComponent",cellRenderer:!1},ca={propertyName:"toolPanel",cellRenderer:!1},pa={propertyName:"statusPanel",cellRenderer:!1},da={propertyName:"fullWidthCellRenderer",cellRenderer:!0},ha={propertyName:"loadingCellRenderer",cellRenderer:!0},fa={propertyName:"groupRowRenderer",cellRenderer:!0},ga={propertyName:"detailCellRenderer",cellRenderer:!0},va=function(){function t(){}return t.getFloatingFilterType=function(t){return this.filterToFloatingFilterMapping[t]},t.filterToFloatingFilterMapping={set:"agSetColumnFloatingFilter",agSetColumnFilter:"agSetColumnFloatingFilter",multi:"agMultiColumnFloatingFilter",agMultiColumnFilter:"agMultiColumnFloatingFilter",group:"agGroupColumnFloatingFilter",agGroupColumnFilter:"agGroupColumnFloatingFilter",number:"agNumberColumnFloatingFilter",agNumberColumnFilter:"agNumberColumnFloatingFilter",date:"agDateColumnFloatingFilter",agDateColumnFilter:"agDateColumnFloatingFilter",text:"agTextColumnFloatingFilter",agTextColumnFilter:"agTextColumnFloatingFilter"},t}(),ya=function(){var t=function(e,o){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])})(e,o)};return function(e,o){function i(){this.constructor=e}t(e,o),e.prototype=null===o?Object.create(o):(i.prototype=o.prototype,new i)}}(),ma=function(t,e,o,i){var n,r=arguments.length,s=r<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,o):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,o,i);else for(var a=t.length-1;a>=0;a--)(n=t[a])&&(s=(r<3?n(s):r>3?n(e,o,s):n(e,o))||s);return r>3&&s&&Object.defineProperty(e,o,s),s},Ca=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return ya(e,t),e.prototype.getHeaderCompDetails=function(t,e){return this.getCompDetails(t,ta,"agColumnHeader",e)},e.prototype.getHeaderGroupCompDetails=function(t){var e=t.columnGroup.getColGroupDef();return this.getCompDetails(e,ea,"agColumnGroupHeader",t)},e.prototype.getFullWidthCellRendererDetails=function(t){return this.getCompDetails(this.gridOptions,da,null,t,!0)},e.prototype.getFullWidthLoadingCellRendererDetails=function(t){return this.getCompDetails(this.gridOptions,ha,"agLoadingCellRenderer",t,!0)},e.prototype.getFullWidthGroupCellRendererDetails=function(t){return this.getCompDetails(this.gridOptions,fa,"agGroupRowRenderer",t,!0)},e.prototype.getFullWidthDetailCellRendererDetails=function(t){return this.getCompDetails(this.gridOptions,ga,"agDetailCellRenderer",t,!0)},e.prototype.getInnerRendererDetails=function(t,e){return this.getCompDetails(t,na,null,e)},e.prototype.getFullWidthGroupRowInnerCellRenderer=function(t,e){return this.getCompDetails(t,na,null,e)},e.prototype.getCellRendererDetails=function(t,e){return this.getCompDetails(t,oa,null,e)},e.prototype.getCellEditorDetails=function(t,e){return this.getCompDetails(t,ia,"agCellEditor",e,!0)},e.prototype.getFilterDetails=function(t,e,o){return this.getCompDetails(t,la,o,e,!0)},e.prototype.getDateCompDetails=function(t){return this.getCompDetails(this.gridOptions,$s,"agDateInput",t,!0)},e.prototype.getLoadingOverlayCompDetails=function(t){return this.getCompDetails(this.gridOptions,ra,"agLoadingOverlay",t,!0)},e.prototype.getNoRowsOverlayCompDetails=function(t){return this.getCompDetails(this.gridOptions,sa,"agNoRowsOverlay",t,!0)},e.prototype.getTooltipCompDetails=function(t){return this.getCompDetails(t.colDef,aa,"agTooltipComponent",t,!0)},e.prototype.getSetFilterCellRendererDetails=function(t,e){return this.getCompDetails(t,oa,null,e)},e.prototype.getFloatingFilterCompDetails=function(t,e,o){return this.getCompDetails(t,ua,o,e)},e.prototype.getToolPanelCompDetails=function(t,e){return this.getCompDetails(t,ca,null,e,!0)},e.prototype.getStatusPanelCompDetails=function(t,e){return this.getCompDetails(t,pa,null,e,!0)},e.prototype.getCompDetails=function(t,e,o,i,n){var r=this;void 0===n&&(n=!1);var s=e.propertyName,a=e.cellRenderer,l=this.getCompKeys(t,e,i),u=l.compName,c=l.jsComp,p=l.fwComp,d=l.paramsFromSelector,h=l.popupFromSelector,f=l.popupPositionFromSelector,g=function(t){var e=r.userComponentRegistry.retrieve(s,t);e&&(c=e.componentFromFramework?void 0:e.component,p=e.componentFromFramework?e.component:void 0)};if(null!=u&&g(u),null==c&&null==p&&null!=o&&g(o),c&&a&&!this.agComponentUtils.doesImplementIComponent(c)&&(c=this.agComponentUtils.adaptFunction(s,c)),c||p){var v=this.mergeParamsWithApplicationProvidedParams(t,e,i,d),y=null==c,m=c||p;return{componentFromFramework:y,componentClass:m,params:v,type:e,popupFromSelector:h,popupPositionFromSelector:f,newAgStackInstance:function(){return r.newAgStackInstance(m,y,v,e)}}}n&&console.error("AG Grid: Could not find component "+u+", did you forget to configure this component?")},e.prototype.getCompKeys=function(t,e,o){var i,n,r,s,a,l,u=this,c=e.propertyName;if(t){var p=t,d=p[c+"Selector"],h=d?d(o):null,f=function(t,e){var o=function(){var t="AG Grid: As of v27, the property "+c+"Framework is deprecated. The property "+c+" can now be used for JavaScript AND Framework Components.";O((function(){return console.warn(t)}),"UserComponentFactory."+c+"FrameworkDeprecated")};if("string"==typeof t)i=t;else if("string"==typeof e)o(),i=e;else if(null!=t&&!0!==t){u.getFrameworkOverrides().isFrameworkComponent(t)?r=t:n=t}else null!=e&&(o(),r=e)};if(h){if(null!=h.frameworkComponent){var g="AG Grid: As of v27, the return for "+c+"Selector has attributes [component, params] only. The attribute frameworkComponent is deprecated. You should now return back Framework Components using the 'component' attribute and the grid works out if it's a framework component or not.";O((function(){return console.warn(g)}),"UserComponentFactory."+c+"FrameworkSelectorDeprecated"),f(h.frameworkComponent,void 0)}else f(h.component,void 0);s=h.params,a=h.popup,l=h.popupPosition}else f(p[c],p[c+"Framework"])}return{compName:i,jsComp:n,fwComp:r,paramsFromSelector:s,popupFromSelector:a,popupPositionFromSelector:l}},e.prototype.newAgStackInstance=function(t,e,o,i){var n,r=i.propertyName;if(!e)n=new t;else{var s=this.componentMetadataProvider.retrieve(r);n=this.frameworkComponentWrapper.wrap(t,s.mandatoryMethodList,s.optionalMethodList,i)}var a=this.initComponent(n,o);return null==a?$i.resolve(n):a.then((function(){return n}))},e.prototype.mergeParamsWithApplicationProvidedParams=function(t,e,o,i){void 0===i&&(i=null);var n={context:this.gridOptionsService.context,columnApi:this.gridOptionsService.columnApi,api:this.gridOptionsService.api};m(n,o);var r=t&&t[e.propertyName+"Params"];"function"==typeof r?m(n,r(o)):"object"==typeof r&&m(n,r);return m(n,i),n},e.prototype.initComponent=function(t,e){if(this.context.createBean(t),null!=t.init)return t.init(e)},e.prototype.getDefaultFloatingFilterType=function(t){if(null==t)return null;var e=null,o=this.getCompKeys(t,la),i=o.compName,n=o.jsComp,r=o.fwComp;i?e=va.getFloatingFilterType(i):null==n&&null==r&&!0===t.filter&&(e=tt.isRegistered(Q.SetFilterModule)?"agSetColumnFloatingFilter":"agTextColumnFloatingFilter");return e},ma([U("gridOptions")],e.prototype,"gridOptions",void 0),ma([U("agComponentUtils")],e.prototype,"agComponentUtils",void 0),ma([U("componentMetadataProvider")],e.prototype,"componentMetadataProvider",void 0),ma([U("userComponentRegistry")],e.prototype,"userComponentRegistry",void 0),ma([z("frameworkComponentWrapper")],e.prototype,"frameworkComponentWrapper",void 0),e=ma([W("userComponentFactory")],e)}(Mt);
205/**
206 * @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue
207 * @version v29.2.0
208 * @link https://www.ag-grid.com/
209 * @license MIT
210 */!function(t){t[t.SINGLE_SHEET=0]="SINGLE_SHEET",t[t.MULTI_SHEET=1]="MULTI_SHEET"}(Os||(Os={}));
211/**
212 * @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue
213 * @version v29.2.0
214 * @link https://www.ag-grid.com/
215 * @license MIT
216 */
217var wa,Sa,Ea=function(){var t=function(e,o){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])})(e,o)};return function(e,o){function i(){this.constructor=e}t(e,o),e.prototype=null===o?Object.create(o):(i.prototype=o.prototype,new i)}}(),Ra=function(t,e,o,i){var n,r=arguments.length,s=r<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,o):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,o,i);else for(var a=t.length-1;a>=0;a--)(n=t[a])&&(s=(r<3?n(s):r>3?n(e,o,s):n(e,o))||s);return r>3&&s&&Object.defineProperty(e,o,s),s},Oa=function(t){function o(){var e=null!==t&&t.apply(this,arguments)||this;return e.dragEndFunctions=[],e.dragSources=[],e}return Ea(o,t),o.prototype.init=function(){this.logger=this.loggerFactory.create("DragService")},o.prototype.removeAllListeners=function(){this.dragSources.forEach(this.removeListener.bind(this)),this.dragSources.length=0},o.prototype.removeListener=function(t){var e=t.dragSource.eElement,o=t.mouseDownListener;if(e.removeEventListener("mousedown",o),t.touchEnabled){var i=t.touchStartListener;e.removeEventListener("touchstart",i,{passive:!0})}},o.prototype.removeDragSource=function(t){var e=this.dragSources.find((function(e){return e.dragSource===t}));e&&(this.removeListener(e),dt(this.dragSources,e))},o.prototype.isDragging=function(){return this.dragging},o.prototype.addDragSource=function(t,e){var o=this;void 0===e&&(e=!1);var i=this.onMouseDown.bind(this,t);t.eElement.addEventListener("mousedown",i);var n=null,r=this.gridOptionsService.is("suppressTouch");e&&!r&&(n=function(e){Jo(e.target)||(e.cancelable&&(e.preventDefault(),e.stopPropagation()),o.onTouchStart(t,e))},t.eElement.addEventListener("touchstart",n,{passive:!1})),this.dragSources.push({dragSource:t,mouseDownListener:i,touchStartListener:n,touchEnabled:e})},o.prototype.onTouchStart=function(t,e){var o=this;this.currentDragParams=t,this.dragging=!1;var i=e.touches[0];this.touchLastTime=i,this.touchStart=i;var n=function(e){return o.onTouchUp(e,t.eElement)},r=e.target,s=[{target:document,type:"touchmove",listener:function(t){t.cancelable&&t.preventDefault()},options:{passive:!1}},{target:r,type:"touchmove",listener:function(e){return o.onTouchMove(e,t.eElement)},options:{passive:!0}},{target:r,type:"touchend",listener:n,options:{passive:!0}},{target:r,type:"touchcancel",listener:n,options:{passive:!0}}];this.addTemporaryEvents(s),0===t.dragStartPixels&&this.onCommonMove(i,this.touchStart,t.eElement)},o.prototype.onMouseDown=function(t,e){var o=this,i=e;if(!(t.skipMouseEvent&&t.skipMouseEvent(e)||i._alreadyProcessedByDragService||(i._alreadyProcessedByDragService=!0,0!==e.button))){this.currentDragParams=t,this.dragging=!1,this.mouseStartEvent=e;var n=this.gridOptionsService.getDocument(),r=[{target:n,type:"mousemove",listener:function(e){return o.onMouseMove(e,t.eElement)}},{target:n,type:"mouseup",listener:function(e){return o.onMouseUp(e,t.eElement)}},{target:n,type:"contextmenu",listener:function(t){return t.preventDefault()}}];this.addTemporaryEvents(r),0===t.dragStartPixels&&this.onMouseMove(e,t.eElement)}},o.prototype.addTemporaryEvents=function(t){t.forEach((function(t){var e=t.target,o=t.type,i=t.listener,n=t.options;e.addEventListener(o,i,n)})),this.dragEndFunctions.push((function(){t.forEach((function(t){var e=t.target,o=t.type,i=t.listener,n=t.options;e.removeEventListener(o,i,n)}))}))},o.prototype.isEventNearStartEvent=function(t,o){var i=this.currentDragParams.dragStartPixels;return Wi(t,o,e(i)?i:4)},o.prototype.getFirstActiveTouch=function(t){for(var e=0;e<t.length;e++)if(t[e].identifier===this.touchStart.identifier)return t[e];return null},o.prototype.onCommonMove=function(t,e,o){if(!this.dragging){if(!this.dragging&&this.isEventNearStartEvent(t,e))return;this.dragging=!0;var i={type:kt.EVENT_DRAG_STARTED,target:o};this.eventService.dispatchEvent(i),this.currentDragParams.onDragStart(e),this.currentDragParams.onDragging(e)}this.currentDragParams.onDragging(t)},o.prototype.onTouchMove=function(t,e){var o=this.getFirstActiveTouch(t.touches);o&&this.onCommonMove(o,this.touchStart,e)},o.prototype.onMouseMove=function(t,e){(this.gridOptionsService.is("enableCellTextSelection")||Eo())&&"mousemove"===t.type&&t.cancelable&&this.mouseEventService.isEventFromThisGrid(t)&&!this.isOverFormFieldElement(t)&&t.preventDefault(),this.onCommonMove(t,this.mouseStartEvent,e)},o.prototype.isOverFormFieldElement=function(t){var e=t.target,o=null==e?void 0:e.tagName.toLocaleLowerCase();return!!(null==o?void 0:o.match("^a$|textarea|input|select|button"))},o.prototype.onTouchUp=function(t,e){var o=this.getFirstActiveTouch(t.changedTouches);o||(o=this.touchLastTime),this.onUpCommon(o,e)},o.prototype.onMouseUp=function(t,e){this.onUpCommon(t,e)},o.prototype.onUpCommon=function(t,e){if(this.dragging){this.dragging=!1,this.currentDragParams.onDragStop(t);var o={type:kt.EVENT_DRAG_STOPPED,target:e};this.eventService.dispatchEvent(o)}this.mouseStartEvent=null,this.touchStart=null,this.touchLastTime=null,this.currentDragParams=null,this.dragEndFunctions.forEach((function(t){return t()})),this.dragEndFunctions.length=0},Ra([U("loggerFactory")],o.prototype,"loggerFactory",void 0),Ra([U("mouseEventService")],o.prototype,"mouseEventService",void 0),Ra([B],o.prototype,"init",null),Ra([j],o.prototype,"removeAllListeners",null),o=Ra([W("dragService")],o)}(Mt);!function(t){t[t.Above=0]="Above",t[t.Below=1]="Below"}(wa||(wa={})),function(t){t.EVERYTHING="group",t.FILTER="filter",t.SORT="sort",t.MAP="map",t.AGGREGATE="aggregate",t.FILTER_AGGREGATES="filter_aggregates",t.PIVOT="pivot",t.NOTHING="nothing"}(Sa||(Sa={}));
218/**
219 * @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue
220 * @version v29.2.0
221 * @link https://www.ag-grid.com/
222 * @license MIT
223 */
224var ba=function(t,e,o,i){var n,r=arguments.length,s=r<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,o):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,o,i);else for(var a=t.length-1;a>=0;a--)(n=t[a])&&(s=(r<3?n(s):r>3?n(e,o,s):n(e,o))||s);return r>3&&s&&Object.defineProperty(e,o,s),s};function Ta(t){var e=t;return null!=e&&null!=e.getFrameworkComponentInstance?e.getFrameworkComponentInstance():t}var Pa,Da=function(){function t(){this.detailGridInfoMap={},this.destroyCalled=!1}return t.prototype.registerOverlayWrapperComp=function(t){this.overlayWrapperComp=t},t.prototype.registerSideBarComp=function(t){this.sideBarComp=t},t.prototype.init=function(){var t=this;switch(this.rowModel.getType()){case"clientSide":this.clientSideRowModel=this.rowModel;break;case"infinite":this.infiniteRowModel=this.rowModel;break;case"serverSide":this.serverSideRowModel=this.rowModel}this.ctrlsService.whenReady((function(){t.gridBodyCtrl=t.ctrlsService.getGridBodyCtrl()}))},t.prototype.__getAlignedGridService=function(){return this.alignedGridsService},t.prototype.__getContext=function(){return this.context},t.prototype.getSetterMethod=function(t){return"set"+t.charAt(0).toUpperCase()+t.substring(1)},t.prototype.__setProperty=function(t,e){this.gridOptionsService.set(t,e);var o=this.getSetterMethod(t);this[o]&&this[o](e)},t.prototype.addDetailGridInfo=function(t,e){this.detailGridInfoMap[t]=e},t.prototype.removeDetailGridInfo=function(t){this.detailGridInfoMap[t]=void 0},t.prototype.getDetailGridInfo=function(t){return this.detailGridInfoMap[t]},t.prototype.forEachDetailGridInfo=function(t){var o=0;c(this.detailGridInfoMap,(function(i,n){e(n)&&(t(n,o),o++)}))},t.prototype.getDataAsCsv=function(t){if(tt.assertRegistered(Q.CsvExportModule,"api.getDataAsCsv"))return this.csvCreator.getDataAsCsv(t)},t.prototype.exportDataAsCsv=function(t){tt.assertRegistered(Q.CsvExportModule,"api.exportDataAsCSv")&&this.csvCreator.exportDataAsCsv(t)},t.prototype.getExcelExportMode=function(t){var e=this.gridOptionsService.get("defaultExcelExportParams");return Object.assign({exportMode:"xlsx"},e,t).exportMode},t.prototype.assertNotExcelMultiSheet=function(t,e){if(!tt.assertRegistered(Q.ExcelExportModule,"api."+t))return!1;var o=this.getExcelExportMode(e);return this.excelCreator.getFactoryMode(o)!==Os.MULTI_SHEET||(console.warn("AG Grid: The Excel Exporter is currently on Multi Sheet mode. End that operation by calling 'api.getMultipleSheetAsExcel()' or 'api.exportMultipleSheetsAsExcel()'"),!1)},t.prototype.getDataAsExcel=function(t){if(this.assertNotExcelMultiSheet("getDataAsExcel",t))return this.excelCreator.getDataAsExcel(t)},t.prototype.exportDataAsExcel=function(t){this.assertNotExcelMultiSheet("exportDataAsExcel",t)&&this.excelCreator.exportDataAsExcel(t)},t.prototype.getSheetDataForExcel=function(t){if(tt.assertRegistered(Q.ExcelExportModule,"api.getSheetDataForExcel")){var e=this.getExcelExportMode(t);return this.excelCreator.setFactoryMode(Os.MULTI_SHEET,e),this.excelCreator.getSheetDataForExcel(t)}},t.prototype.getMultipleSheetsAsExcel=function(t){if(tt.assertRegistered(Q.ExcelExportModule,"api.getMultipleSheetsAsExcel"))return this.excelCreator.getMultipleSheetsAsExcel(t)},t.prototype.exportMultipleSheetsAsExcel=function(t){if(tt.assertRegistered(Q.ExcelExportModule,"api.exportMultipleSheetsAsExcel"))return this.excelCreator.exportMultipleSheetsAsExcel(t)},t.prototype.setGridAriaProperty=function(t,e){if(t){var o=this.ctrlsService.getGridBodyCtrl().getGui(),i="aria-"+t;null===e?o.removeAttribute(i):o.setAttribute(i,e)}},t.prototype.logMissingRowModel=function(t){for(var e=[],o=1;o<arguments.length;o++)e[o-1]=arguments[o];console.error("AG Grid: api."+t+" can only be called when gridOptions.rowModelType is "+e.join(" or "))},t.prototype.setServerSideDatasource=function(t){this.serverSideRowModel?this.serverSideRowModel.setDatasource(t):this.logMissingRowModel("setServerSideDatasource","serverSide")},t.prototype.setCacheBlockSize=function(t){this.serverSideRowModel?(this.gridOptionsService.set("cacheBlockSize",t),this.serverSideRowModel.resetRootStore()):this.logMissingRowModel("setCacheBlockSize","serverSide")},t.prototype.setDatasource=function(t){this.gridOptionsService.isRowModelType("infinite")?this.rowModel.setDatasource(t):this.logMissingRowModel("setDatasource","infinite")},t.prototype.setViewportDatasource=function(t){this.gridOptionsService.isRowModelType("viewport")?this.rowModel.setViewportDatasource(t):this.logMissingRowModel("setViewportDatasource","viewport")},t.prototype.setRowData=function(t){null==this.immutableService?this.logMissingRowModel("setRowData","clientSide"):this.immutableService.isActive()?this.immutableService.setRowData(t):(this.selectionService.reset(),this.clientSideRowModel.setRowData(t))},t.prototype.setPinnedTopRowData=function(t){this.pinnedRowModel.setPinnedTopRowData(t)},t.prototype.setPinnedBottomRowData=function(t){this.pinnedRowModel.setPinnedBottomRowData(t)},t.prototype.getPinnedTopRowCount=function(){return this.pinnedRowModel.getPinnedTopRowCount()},t.prototype.getPinnedBottomRowCount=function(){return this.pinnedRowModel.getPinnedBottomRowCount()},t.prototype.getPinnedTopRow=function(t){return this.pinnedRowModel.getPinnedTopRow(t)},t.prototype.getPinnedBottomRow=function(t){return this.pinnedRowModel.getPinnedBottomRow(t)},t.prototype.setColumnDefs=function(t,e){void 0===e&&(e="api"),this.columnModel.setColumnDefs(t,e),this.gridOptionsService.set("columnDefs",t,!0,{source:e})},t.prototype.setAutoGroupColumnDef=function(t,e){void 0===e&&(e="api"),this.gridOptionsService.set("autoGroupColumnDef",t,!0,{source:e})},t.prototype.setDefaultColDef=function(t,e){void 0===e&&(e="api"),this.gridOptionsService.set("defaultColDef",t,!0,{source:e})},t.prototype.setColumnTypes=function(t,e){void 0===e&&(e="api"),this.gridOptionsService.set("columnTypes",t,!0,{source:e})},t.prototype.expireValueCache=function(){this.valueCache.expire()},t.prototype.getVerticalPixelRange=function(){return this.gridBodyCtrl.getScrollFeature().getVScrollPosition()},t.prototype.getHorizontalPixelRange=function(){return this.gridBodyCtrl.getScrollFeature().getHScrollPosition()},t.prototype.setAlwaysShowHorizontalScroll=function(t){this.gridOptionsService.set("alwaysShowHorizontalScroll",t)},t.prototype.setAlwaysShowVerticalScroll=function(t){this.gridOptionsService.set("alwaysShowVerticalScroll",t)},t.prototype.refreshCells=function(t){void 0===t&&(t={}),this.rowRenderer.refreshCells(t)},t.prototype.flashCells=function(t){void 0===t&&(t={}),this.rowRenderer.flashCells(t)},t.prototype.redrawRows=function(t){void 0===t&&(t={});var e=t?t.rowNodes:void 0;this.rowRenderer.redrawRows(e)},t.prototype.setFunctionsReadOnly=function(t){this.gridOptionsService.set("functionsReadOnly",t)},t.prototype.refreshHeader=function(){this.ctrlsService.getHeaderRowContainerCtrls().forEach((function(t){return t.refresh()}))},t.prototype.isAnyFilterPresent=function(){return this.filterManager.isAnyFilterPresent()},t.prototype.isColumnFilterPresent=function(){return this.filterManager.isColumnFilterPresent()||this.filterManager.isAggregateFilterPresent()},t.prototype.isQuickFilterPresent=function(){return this.filterManager.isQuickFilterPresent()},t.prototype.getModel=function(){return this.rowModel},t.prototype.setRowNodeExpanded=function(t,e,o){t&&(o&&t.parent&&-1!==t.parent.level&&this.setRowNodeExpanded(t.parent,e,o),t.setExpanded(e))},t.prototype.onGroupExpandedOrCollapsed=function(){o(this.clientSideRowModel)?this.logMissingRowModel("onGroupExpandedOrCollapsed","clientSide"):this.clientSideRowModel.refreshModel({step:Sa.MAP})},t.prototype.refreshClientSideRowModel=function(t){o(this.clientSideRowModel)?this.logMissingRowModel("refreshClientSideRowModel","clientSide"):this.clientSideRowModel.refreshModel(t)},t.prototype.isAnimationFrameQueueEmpty=function(){return this.animationFrameService.isQueueEmpty()},t.prototype.flushAllAnimationFrames=function(){this.animationFrameService.flushAllFrames()},t.prototype.getRowNode=function(t){return this.rowModel.getRowNode(t)},t.prototype.getSizesForCurrentTheme=function(){return{rowHeight:this.gridOptionsService.getRowHeightAsNumber(),headerHeight:this.columnModel.getHeaderHeight()}},t.prototype.expandAll=function(){this.clientSideRowModel?this.clientSideRowModel.expandOrCollapseAll(!0):this.serverSideRowModel?this.serverSideRowModel.expandAll(!0):this.logMissingRowModel("expandAll","clientSide","serverSide")},t.prototype.collapseAll=function(){this.clientSideRowModel?this.clientSideRowModel.expandOrCollapseAll(!1):this.serverSideRowModel?this.serverSideRowModel.expandAll(!1):this.logMissingRowModel("expandAll","clientSide","serverSide")},t.prototype.addRenderedRowListener=function(t,e,o){this.rowRenderer.addRenderedRowListener(t,e,o)},t.prototype.getQuickFilter=function(){return this.gridOptionsService.get("quickFilterText")},t.prototype.setQuickFilter=function(t){this.gridOptionsService.set("quickFilterText",t)},t.prototype.setExcludeHiddenColumnsFromQuickFilter=function(t){this.gridOptionsService.set("excludeHiddenColumnsFromQuickFilter",t)},t.prototype.selectAll=function(t){void 0===t&&(t="apiSelectAll"),this.selectionService.selectAllRowNodes({source:t})},t.prototype.deselectAll=function(t){void 0===t&&(t="apiSelectAll"),this.selectionService.deselectAllRowNodes({source:t})},t.prototype.selectAllFiltered=function(t){void 0===t&&(t="apiSelectAllFiltered"),this.selectionService.selectAllRowNodes({source:t,justFiltered:!0})},t.prototype.deselectAllFiltered=function(t){void 0===t&&(t="apiSelectAllFiltered"),this.selectionService.deselectAllRowNodes({source:t,justFiltered:!0})},t.prototype.getServerSideSelectionState=function(){return o(this.serverSideRowModel)?(this.logMissingRowModel("getServerSideSelectionState","serverSide"),null):this.selectionService.getServerSideSelectionState()},t.prototype.setServerSideSelectionState=function(t){o(this.serverSideRowModel)?this.logMissingRowModel("setServerSideSelectionState","serverSide"):this.selectionService.setServerSideSelectionState(t)},t.prototype.selectAllOnCurrentPage=function(t){void 0===t&&(t="apiSelectAllCurrentPage"),this.selectionService.selectAllRowNodes({source:t,justCurrentPage:!0})},t.prototype.deselectAllOnCurrentPage=function(t){void 0===t&&(t="apiSelectAllCurrentPage"),this.selectionService.deselectAllRowNodes({source:t,justCurrentPage:!0})},t.prototype.sizeColumnsToFit=function(t){this.gridBodyCtrl.sizeColumnsToFit(t)},t.prototype.showLoadingOverlay=function(){this.overlayWrapperComp.showLoadingOverlay()},t.prototype.showNoRowsOverlay=function(){this.overlayWrapperComp.showNoRowsOverlay()},t.prototype.hideOverlay=function(){this.overlayWrapperComp.hideOverlay()},t.prototype.getSelectedNodes=function(){return this.selectionService.getSelectedNodes()},t.prototype.getSelectedRows=function(){return this.selectionService.getSelectedRows()},t.prototype.getBestCostNodeSelection=function(){if(!o(this.clientSideRowModel))return this.selectionService.getBestCostNodeSelection();this.logMissingRowModel("getBestCostNodeSelection","clientSide")},t.prototype.getRenderedNodes=function(){return this.rowRenderer.getRenderedNodes()},t.prototype.ensureColumnVisible=function(t,e){void 0===e&&(e="auto"),this.gridBodyCtrl.getScrollFeature().ensureColumnVisible(t,e)},t.prototype.ensureIndexVisible=function(t,e){this.gridBodyCtrl.getScrollFeature().ensureIndexVisible(t,e)},t.prototype.ensureNodeVisible=function(t,e){void 0===e&&(e=null),this.gridBodyCtrl.getScrollFeature().ensureNodeVisible(t,e)},t.prototype.forEachLeafNode=function(t){o(this.clientSideRowModel)?this.logMissingRowModel("forEachLeafNode","clientSide"):this.clientSideRowModel.forEachLeafNode(t)},t.prototype.forEachNode=function(t,e){this.rowModel.forEachNode(t,e)},t.prototype.forEachNodeAfterFilter=function(t){o(this.clientSideRowModel)?this.logMissingRowModel("forEachNodeAfterFilter","clientSide"):this.clientSideRowModel.forEachNodeAfterFilter(t)},t.prototype.forEachNodeAfterFilterAndSort=function(t){o(this.clientSideRowModel)?this.logMissingRowModel("forEachNodeAfterFilterAndSort","clientSide"):this.clientSideRowModel.forEachNodeAfterFilterAndSort(t)},t.prototype.getFilterInstance=function(t,e){var o=this.getFilterInstanceImpl(t,(function(t){if(e){var o=Ta(t);e(o)}}));return Ta(o)},t.prototype.getFilterInstanceImpl=function(t,e){var o=this.columnModel.getPrimaryColumn(t);if(o){var i=this.filterManager.getFilterComponent(o,"NO_UI"),n=i&&i.resolveNow(null,(function(t){return t}));return n?setTimeout(e,0,n):i&&i.then((function(t){e(t)})),n}},t.prototype.destroyFilter=function(t){var e=this.columnModel.getPrimaryColumn(t);if(e)return this.filterManager.destroyFilter(e,"api")},t.prototype.getStatusPanel=function(t){if(tt.assertRegistered(Q.StatusBarModule,"api.getStatusPanel"))return Ta(this.statusBarService.getStatusPanel(t))},t.prototype.getColumnDef=function(t){var e=this.columnModel.getPrimaryColumn(t);return e?e.getColDef():null},t.prototype.getColumnDefs=function(){return this.columnModel.getColumnDefs()},t.prototype.onFilterChanged=function(){this.filterManager.onFilterChanged()},t.prototype.onSortChanged=function(){this.sortController.onSortChanged("api")},t.prototype.setFilterModel=function(t){this.filterManager.setFilterModel(t)},t.prototype.getFilterModel=function(){return this.filterManager.getFilterModel()},t.prototype.getFocusedCell=function(){return this.focusService.getFocusedCell()},t.prototype.clearFocusedCell=function(){return this.focusService.clearFocusedCell()},t.prototype.setFocusedCell=function(t,e,o){this.focusService.setFocusedCell({rowIndex:t,column:e,rowPinned:o,forceBrowserFocus:!0})},t.prototype.setSuppressRowDrag=function(t){this.gridOptionsService.set("suppressRowDrag",t)},t.prototype.setSuppressMoveWhenRowDragging=function(t){this.gridOptionsService.set("suppressMoveWhenRowDragging",t)},t.prototype.setSuppressRowClickSelection=function(t){this.gridOptionsService.set("suppressRowClickSelection",t)},t.prototype.addRowDropZone=function(t){this.gridBodyCtrl.getRowDragFeature().addRowDropZone(t)},t.prototype.removeRowDropZone=function(t){var e=this.dragAndDropService.findExternalZone(t);e&&this.dragAndDropService.removeDropTarget(e)},t.prototype.getRowDropZoneParams=function(t){return this.gridBodyCtrl.getRowDragFeature().getRowDropZone(t)},t.prototype.setHeaderHeight=function(t){this.gridOptionsService.set("headerHeight",t)},t.prototype.setDomLayout=function(t){this.gridOptionsService.set("domLayout",t)},t.prototype.setEnableCellTextSelection=function(t){this.gridBodyCtrl.setCellTextSelection(t)},t.prototype.setFillHandleDirection=function(t){this.gridOptionsService.set("fillHandleDirection",t)},t.prototype.setGroupHeaderHeight=function(t){this.gridOptionsService.set("groupHeaderHeight",t)},t.prototype.setFloatingFiltersHeight=function(t){this.gridOptionsService.set("floatingFiltersHeight",t)},t.prototype.setPivotHeaderHeight=function(t){this.gridOptionsService.set("pivotHeaderHeight",t)},t.prototype.setPivotGroupHeaderHeight=function(t){this.gridOptionsService.set("pivotGroupHeaderHeight",t)},t.prototype.setPivotMode=function(t){this.columnModel.setPivotMode(t)},t.prototype.setAnimateRows=function(t){this.gridOptionsService.set("animateRows",t)},t.prototype.setIsExternalFilterPresent=function(t){this.gridOptionsService.set("isExternalFilterPresent",t)},t.prototype.setDoesExternalFilterPass=function(t){this.gridOptionsService.set("doesExternalFilterPass",t)},t.prototype.setNavigateToNextCell=function(t){this.gridOptionsService.set("navigateToNextCell",t)},t.prototype.setTabToNextCell=function(t){this.gridOptionsService.set("tabToNextCell",t)},t.prototype.setTabToNextHeader=function(t){this.gridOptionsService.set("tabToNextHeader",t)},t.prototype.setNavigateToNextHeader=function(t){this.gridOptionsService.set("navigateToNextHeader",t)},t.prototype.setRowGroupPanelShow=function(t){this.gridOptionsService.set("rowGroupPanelShow",t)},t.prototype.setGroupRowAggNodes=function(t){ee("27.2","setGroupRowAggNodes","setGetGroupRowAgg"),this.gridOptionsService.set("groupRowAggNodes",t)},t.prototype.setGetGroupRowAgg=function(t){this.gridOptionsService.set("getGroupRowAgg",t)},t.prototype.setGetBusinessKeyForNode=function(t){this.gridOptionsService.set("getBusinessKeyForNode",t)},t.prototype.setGetChildCount=function(t){this.gridOptionsService.set("getChildCount",t)},t.prototype.setProcessRowPostCreate=function(t){this.gridOptionsService.set("processRowPostCreate",t)},t.prototype.setGetRowNodeId=function(t){ee("27.1","setGetRowNodeId","setGetRowId"),this.gridOptionsService.set("getRowNodeId",t)},t.prototype.setGetRowId=function(t){this.gridOptionsService.set("getRowId",t)},t.prototype.setGetRowClass=function(t){this.gridOptionsService.set("getRowClass",t)},t.prototype.setIsFullWidthCell=function(t){ee("27.2","setIsFullWidthCell","setIsFullWidthRow"),this.gridOptionsService.set("isFullWidthCell",t)},t.prototype.setIsFullWidthRow=function(t){this.gridOptionsService.set("isFullWidthRow",t)},t.prototype.setIsRowSelectable=function(t){this.gridOptionsService.set("isRowSelectable",t)},t.prototype.setIsRowMaster=function(t){this.gridOptionsService.set("isRowMaster",t)},t.prototype.setPostSort=function(t){ee("27.2","setPostSort","setPostSortRows"),this.gridOptionsService.set("postSort",t)},t.prototype.setPostSortRows=function(t){this.gridOptionsService.set("postSortRows",t)},t.prototype.setGetDocument=function(t){this.gridOptionsService.set("getDocument",t)},t.prototype.setGetContextMenuItems=function(t){this.gridOptionsService.set("getContextMenuItems",t)},t.prototype.setGetMainMenuItems=function(t){this.gridOptionsService.set("getMainMenuItems",t)},t.prototype.setProcessCellForClipboard=function(t){this.gridOptionsService.set("processCellForClipboard",t)},t.prototype.setSendToClipboard=function(t){this.gridOptionsService.set("sendToClipboard",t)},t.prototype.setProcessCellFromClipboard=function(t){this.gridOptionsService.set("processCellFromClipboard",t)},t.prototype.setProcessSecondaryColDef=function(t){ee("28.0","setProcessSecondaryColDef","setProcessPivotResultColDef"),this.setProcessPivotResultColDef(t)},t.prototype.setProcessSecondaryColGroupDef=function(t){ee("28.0","setProcessSecondaryColGroupDef","setProcessPivotResultColGroupDef"),this.setProcessPivotResultColGroupDef(t)},t.prototype.setProcessPivotResultColDef=function(t){this.gridOptionsService.set("processPivotResultColDef",t)},t.prototype.setProcessPivotResultColGroupDef=function(t){this.gridOptionsService.set("processPivotResultColGroupDef",t)},t.prototype.setPostProcessPopup=function(t){this.gridOptionsService.set("postProcessPopup",t)},t.prototype.setDefaultGroupOrderComparator=function(t){ee("27.2","setDefaultGroupOrderComparator","setInitialGroupOrderComparator"),this.gridOptionsService.set("defaultGroupOrderComparator",t)},t.prototype.setInitialGroupOrderComparator=function(t){this.gridOptionsService.set("initialGroupOrderComparator",t)},t.prototype.setGetChartToolbarItems=function(t){this.gridOptionsService.set("getChartToolbarItems",t)},t.prototype.setPaginationNumberFormatter=function(t){this.gridOptionsService.set("paginationNumberFormatter",t)},t.prototype.setGetServerSideStoreParams=function(t){ee("28.0","setGetServerSideStoreParams","setGetServerSideGroupLevelParams"),this.setGetServerSideGroupLevelParams(t)},t.prototype.setGetServerSideGroupLevelParams=function(t){this.gridOptionsService.set("getServerSideGroupLevelParams",t)},t.prototype.setIsServerSideGroupOpenByDefault=function(t){this.gridOptionsService.set("isServerSideGroupOpenByDefault",t)},t.prototype.setIsApplyServerSideTransaction=function(t){this.gridOptionsService.set("isApplyServerSideTransaction",t)},t.prototype.setIsServerSideGroup=function(t){this.gridOptionsService.set("isServerSideGroup",t)},t.prototype.setGetServerSideGroupKey=function(t){this.gridOptionsService.set("getServerSideGroupKey",t)},t.prototype.setGetRowStyle=function(t){this.gridOptionsService.set("getRowStyle",t)},t.prototype.setGetRowHeight=function(t){this.gridOptionsService.set("getRowHeight",t)},t.prototype.assertSideBarLoaded=function(t){return tt.assertRegistered(Q.SideBarModule,"api."+t)},t.prototype.isSideBarVisible=function(){return this.assertSideBarLoaded("isSideBarVisible")&&this.sideBarComp.isDisplayed()},t.prototype.setSideBarVisible=function(t){this.assertSideBarLoaded("setSideBarVisible")&&this.sideBarComp.setDisplayed(t)},t.prototype.setSideBarPosition=function(t){this.assertSideBarLoaded("setSideBarPosition")&&this.sideBarComp.setSideBarPosition(t)},t.prototype.openToolPanel=function(t){this.assertSideBarLoaded("openToolPanel")&&this.sideBarComp.openToolPanel(t,"api")},t.prototype.closeToolPanel=function(){this.assertSideBarLoaded("closeToolPanel")&&this.sideBarComp.close("api")},t.prototype.getOpenedToolPanel=function(){return this.assertSideBarLoaded("getOpenedToolPanel")?this.sideBarComp.openedItem():null},t.prototype.refreshToolPanel=function(){this.assertSideBarLoaded("refreshToolPanel")&&this.sideBarComp.refresh()},t.prototype.isToolPanelShowing=function(){return this.assertSideBarLoaded("isToolPanelShowing")&&this.sideBarComp.isToolPanelShowing()},t.prototype.getToolPanelInstance=function(t){if(this.assertSideBarLoaded("getToolPanelInstance"))return Ta(this.sideBarComp.getToolPanelInstance(t))},t.prototype.getSideBar=function(){if(this.assertSideBarLoaded("getSideBar"))return this.sideBarComp.getDef()},t.prototype.setSideBar=function(t){this.gridOptionsService.set("sideBar",t)},t.prototype.setSuppressClipboardPaste=function(t){this.gridOptionsService.set("suppressClipboardPaste",t)},t.prototype.resetRowHeights=function(){if(e(this.clientSideRowModel)){if(this.columnModel.isAutoRowHeightActive())return void console.warn("AG Grid: calling gridApi.resetRowHeights() makes no sense when using Auto Row Height.");this.clientSideRowModel.resetRowHeights()}},t.prototype.setGroupRemoveSingleChildren=function(t){this.gridOptionsService.set("groupRemoveSingleChildren",t)},t.prototype.setGroupRemoveLowestSingleChildren=function(t){this.gridOptionsService.set("groupRemoveLowestSingleChildren",t)},t.prototype.setGroupDisplayType=function(t){this.gridOptionsService.set("groupDisplayType",t)},t.prototype.setRowClass=function(t){this.gridOptionsService.set("rowClass",t)},t.prototype.setDeltaSort=function(t){this.gridOptionsService.set("deltaSort",t)},t.prototype.setRowCount=function(t,e){if(this.serverSideRowModel)return this.columnModel.isRowGroupEmpty()?void this.serverSideRowModel.setRowCount(t,e):void console.error("AG Grid: setRowCount cannot be used while using row grouping.");this.infiniteRowModel?this.infiniteRowModel.setRowCount(t,e):this.logMissingRowModel("setRowCount","infinite","serverSide")},t.prototype.onRowHeightChanged=function(){this.clientSideRowModel?this.clientSideRowModel.onRowHeightChanged():this.serverSideRowModel&&this.serverSideRowModel.onRowHeightChanged()},t.prototype.getValue=function(t,e){var i=this.columnModel.getPrimaryColumn(t);return o(i)&&(i=this.columnModel.getGridColumn(t)),o(i)?null:this.valueService.getValue(i,e)},t.prototype.addEventListener=function(t,e){var o=this.gridOptionsService.useAsyncEvents();this.eventService.addEventListener(t,e,o)},t.prototype.addGlobalListener=function(t){var e=this.gridOptionsService.useAsyncEvents();this.eventService.addGlobalListener(t,e)},t.prototype.removeEventListener=function(t,e){var o=this.gridOptionsService.useAsyncEvents();this.eventService.removeEventListener(t,e,o)},t.prototype.removeGlobalListener=function(t){var e=this.gridOptionsService.useAsyncEvents();this.eventService.removeGlobalListener(t,e)},t.prototype.dispatchEvent=function(t){this.eventService.dispatchEvent(t)},t.prototype.destroy=function(){if(!this.destroyCalled){this.destroyCalled=!0;var t=this.ctrlsService.getGridCtrl();t&&t.destroyGridUi(),this.context.destroy()}},t.prototype.cleanDownReferencesToAvoidMemoryLeakInCaseApplicationIsKeepingReferenceToDestroyedGrid=function(){setTimeout(w.bind(window,this,"Grid API"),100)},t.prototype.warnIfDestroyed=function(t){return this.destroyCalled&&console.warn("AG Grid: Grid API method "+t+" was called on a grid that was destroyed."),this.destroyCalled},t.prototype.resetQuickFilter=function(){this.warnIfDestroyed("resetQuickFilter")||this.filterManager.resetQuickFilterCache()},t.prototype.getCellRanges=function(){return this.rangeService?this.rangeService.getCellRanges():(tt.assertRegistered(Q.RangeSelectionModule,"api.getCellRanges"),null)},t.prototype.addCellRange=function(t){this.rangeService?this.rangeService.addCellRange(t):tt.assertRegistered(Q.RangeSelectionModule,"api.addCellRange")},t.prototype.clearRangeSelection=function(){this.rangeService&&this.rangeService.removeAllCellRanges(),tt.assertRegistered(Q.RangeSelectionModule,"gridApi.clearRangeSelection")},t.prototype.undoCellEditing=function(){this.undoRedoService.undo("api")},t.prototype.redoCellEditing=function(){this.undoRedoService.redo("api")},t.prototype.getCurrentUndoSize=function(){return this.undoRedoService.getCurrentUndoStackSize()},t.prototype.getCurrentRedoSize=function(){return this.undoRedoService.getCurrentRedoStackSize()},t.prototype.getChartModels=function(){if(tt.assertRegistered(Q.GridChartsModule,"api.getChartModels"))return this.chartService.getChartModels()},t.prototype.getChartRef=function(t){if(tt.assertRegistered(Q.GridChartsModule,"api.getChartRef"))return this.chartService.getChartRef(t)},t.prototype.getChartImageDataURL=function(t){if(tt.assertRegistered(Q.GridChartsModule,"api.getChartImageDataURL"))return this.chartService.getChartImageDataURL(t)},t.prototype.downloadChart=function(t){if(tt.assertRegistered(Q.GridChartsModule,"api.downloadChart"))return this.chartService.downloadChart(t)},t.prototype.openChartToolPanel=function(t){if(tt.assertRegistered(Q.GridChartsModule,"api.openChartToolPanel"))return this.chartService.openChartToolPanel(t)},t.prototype.closeChartToolPanel=function(t){if(tt.assertRegistered(Q.GridChartsModule,"api.closeChartToolPanel"))return this.chartService.closeChartToolPanel(t.chartId)},t.prototype.createRangeChart=function(t){if(tt.assertRegistered(Q.GridChartsModule,"api.createRangeChart"))return this.chartService.createRangeChart(t)},t.prototype.createCrossFilterChart=function(t){if(tt.assertRegistered(Q.GridChartsModule,"api.createCrossFilterChart"))return this.chartService.createCrossFilterChart(t)},t.prototype.restoreChart=function(t,e){if(tt.assertRegistered(Q.GridChartsModule,"api.restoreChart"))return this.chartService.restoreChart(t,e)},t.prototype.createPivotChart=function(t){if(tt.assertRegistered(Q.GridChartsModule,"api.createPivotChart"))return this.chartService.createPivotChart(t)},t.prototype.copyToClipboard=function(t){tt.assertRegistered(Q.ClipboardModule,"api.copyToClipboard")&&this.clipboardService.copyToClipboard(t)},t.prototype.cutToClipboard=function(t){tt.assertRegistered(Q.ClipboardModule,"api.cutToClipboard")&&this.clipboardService.cutToClipboard(t)},t.prototype.copySelectedRowsToClipboard=function(t){tt.assertRegistered(Q.ClipboardModule,"api.copySelectedRowsToClipboard")&&this.clipboardService.copySelectedRowsToClipboard(t)},t.prototype.copySelectedRangeToClipboard=function(t){tt.assertRegistered(Q.ClipboardModule,"api.copySelectedRangeToClipboard")&&this.clipboardService.copySelectedRangeToClipboard(t)},t.prototype.copySelectedRangeDown=function(){tt.assertRegistered(Q.ClipboardModule,"api.copySelectedRangeDown")&&this.clipboardService.copyRangeDown()},t.prototype.showColumnMenuAfterButtonClick=function(t,e){var o=this.columnModel.getGridColumn(t);this.menuFactory.showMenuAfterButtonClick(o,e,"columnMenu")},t.prototype.showColumnMenuAfterMouseClick=function(t,e){var o=this.columnModel.getGridColumn(t);o||(o=this.columnModel.getPrimaryColumn(t)),o?this.menuFactory.showMenuAfterMouseEvent(o,e):console.error("AG Grid: column '"+t+"' not found")},t.prototype.hidePopupMenu=function(){this.contextMenuFactory&&this.contextMenuFactory.hideActiveMenu(),this.menuFactory.hideActiveMenu()},t.prototype.setPopupParent=function(t){this.gridOptionsService.set("popupParent",t)},t.prototype.tabToNextCell=function(t){return this.navigationService.tabToNextCell(!1,t)},t.prototype.tabToPreviousCell=function(t){return this.navigationService.tabToNextCell(!0,t)},t.prototype.getCellRendererInstances=function(t){return void 0===t&&(t={}),this.rowRenderer.getCellRendererInstances(t).map(Ta)},t.prototype.getCellEditorInstances=function(t){return void 0===t&&(t={}),this.rowRenderer.getCellEditorInstances(t).map(Ta)},t.prototype.getEditingCells=function(){return this.rowRenderer.getEditingCells()},t.prototype.stopEditing=function(t){void 0===t&&(t=!1),this.rowRenderer.stopEditing(t)},t.prototype.startEditingCell=function(t){var e=this.columnModel.getGridColumn(t.colKey);if(e){var o={rowIndex:t.rowIndex,rowPinned:t.rowPinned||null,column:e};null==t.rowPinned&&this.gridBodyCtrl.getScrollFeature().ensureIndexVisible(t.rowIndex);var i=this.navigationService.getCellByPosition(o);i&&i.startRowOrCellEdit(t.key,t.charPress)}else console.warn("AG Grid: no column found for "+t.colKey)},t.prototype.addAggFunc=function(t,e){this.aggFuncService&&this.aggFuncService.addAggFunc(t,e)},t.prototype.addAggFuncs=function(t){this.aggFuncService&&this.aggFuncService.addAggFuncs(t)},t.prototype.clearAggFuncs=function(){this.aggFuncService&&this.aggFuncService.clear()},t.prototype.applyServerSideTransaction=function(t){if(this.serverSideTransactionManager)return this.serverSideTransactionManager.applyTransaction(t);this.logMissingRowModel("applyServerSideTransaction","serverSide")},t.prototype.applyServerSideTransactionAsync=function(t,e){if(this.serverSideTransactionManager)return this.serverSideTransactionManager.applyTransactionAsync(t,e);this.logMissingRowModel("applyServerSideTransactionAsync","serverSide")},t.prototype.retryServerSideLoads=function(){this.serverSideRowModel?this.serverSideRowModel.retryLoads():this.logMissingRowModel("retryServerSideLoads","serverSide")},t.prototype.flushServerSideAsyncTransactions=function(){if(this.serverSideTransactionManager)return this.serverSideTransactionManager.flushAsyncTransactions();this.logMissingRowModel("flushServerSideAsyncTransactions","serverSide")},t.prototype.applyTransaction=function(t){if(this.clientSideRowModel){var e=this.clientSideRowModel.updateRowData(t);return this.rowRenderer.refreshFullWidthRows(e.update),this.gridOptionsService.is("suppressChangeDetection")||this.rowRenderer.refreshCells(),e}this.logMissingRowModel("applyTransaction","clientSide")},t.prototype.applyTransactionAsync=function(t,e){this.clientSideRowModel?this.clientSideRowModel.batchUpdateRowData(t,e):this.logMissingRowModel("applyTransactionAsync","clientSide")},t.prototype.flushAsyncTransactions=function(){this.clientSideRowModel?this.clientSideRowModel.flushAsyncTransactions():this.logMissingRowModel("flushAsyncTransactions","clientSide")},t.prototype.setSuppressModelUpdateAfterUpdateTransaction=function(t){this.gridOptionsService.set("suppressModelUpdateAfterUpdateTransaction",t)},t.prototype.refreshInfiniteCache=function(){this.infiniteRowModel?this.infiniteRowModel.refreshCache():this.logMissingRowModel("refreshInfiniteCache","infinite")},t.prototype.purgeInfiniteCache=function(){this.infiniteRowModel?this.infiniteRowModel.purgeCache():this.logMissingRowModel("purgeInfiniteCache","infinite")},t.prototype.refreshServerSide=function(t){this.serverSideRowModel?this.serverSideRowModel.refreshStore(t):this.logMissingRowModel("refreshServerSide","serverSide")},t.prototype.refreshServerSideStore=function(t){return ee("28.0","refreshServerSideStore","refreshServerSide"),this.refreshServerSide(t)},t.prototype.getServerSideStoreState=function(){return ee("28.0","getServerSideStoreState","getServerSideGroupLevelState"),this.getServerSideGroupLevelState()},t.prototype.getServerSideGroupLevelState=function(){return this.serverSideRowModel?this.serverSideRowModel.getStoreState():(this.logMissingRowModel("getServerSideGroupLevelState","serverSide"),[])},t.prototype.getInfiniteRowCount=function(){if(this.infiniteRowModel)return this.infiniteRowModel.getRowCount();this.logMissingRowModel("getInfiniteRowCount","infinite")},t.prototype.isLastRowIndexKnown=function(){if(this.infiniteRowModel)return this.infiniteRowModel.isLastRowIndexKnown();this.logMissingRowModel("isLastRowIndexKnown","infinite")},t.prototype.getCacheBlockState=function(){return this.rowNodeBlockLoader.getBlockState()},t.prototype.getFirstDisplayedRow=function(){return this.rowRenderer.getFirstVirtualRenderedRow()},t.prototype.getLastDisplayedRow=function(){return this.rowRenderer.getLastVirtualRenderedRow()},t.prototype.getDisplayedRowAtIndex=function(t){return this.rowModel.getRow(t)},t.prototype.getDisplayedRowCount=function(){return this.rowModel.getRowCount()},t.prototype.setPagination=function(t){this.gridOptionsService.set("pagination",t)},t.prototype.paginationIsLastPageFound=function(){return this.paginationProxy.isLastPageFound()},t.prototype.paginationGetPageSize=function(){return this.paginationProxy.getPageSize()},t.prototype.paginationSetPageSize=function(t){this.gridOptionsService.set("paginationPageSize",t)},t.prototype.paginationGetCurrentPage=function(){return this.paginationProxy.getCurrentPage()},t.prototype.paginationGetTotalPages=function(){return this.paginationProxy.getTotalPages()},t.prototype.paginationGetRowCount=function(){return this.paginationProxy.getMasterRowCount()},t.prototype.paginationGoToNextPage=function(){this.paginationProxy.goToNextPage()},t.prototype.paginationGoToPreviousPage=function(){this.paginationProxy.goToPreviousPage()},t.prototype.paginationGoToFirstPage=function(){this.paginationProxy.goToFirstPage()},t.prototype.paginationGoToLastPage=function(){this.paginationProxy.goToLastPage()},t.prototype.paginationGoToPage=function(t){this.paginationProxy.goToPage(t)},ba([z("immutableService")],t.prototype,"immutableService",void 0),ba([z("csvCreator")],t.prototype,"csvCreator",void 0),ba([z("excelCreator")],t.prototype,"excelCreator",void 0),ba([U("rowRenderer")],t.prototype,"rowRenderer",void 0),ba([U("navigationService")],t.prototype,"navigationService",void 0),ba([U("filterManager")],t.prototype,"filterManager",void 0),ba([U("columnModel")],t.prototype,"columnModel",void 0),ba([U("selectionService")],t.prototype,"selectionService",void 0),ba([U("gridOptionsService")],t.prototype,"gridOptionsService",void 0),ba([U("valueService")],t.prototype,"valueService",void 0),ba([U("alignedGridsService")],t.prototype,"alignedGridsService",void 0),ba([U("eventService")],t.prototype,"eventService",void 0),ba([U("pinnedRowModel")],t.prototype,"pinnedRowModel",void 0),ba([U("context")],t.prototype,"context",void 0),ba([U("rowModel")],t.prototype,"rowModel",void 0),ba([U("sortController")],t.prototype,"sortController",void 0),ba([U("paginationProxy")],t.prototype,"paginationProxy",void 0),ba([U("focusService")],t.prototype,"focusService",void 0),ba([U("dragAndDropService")],t.prototype,"dragAndDropService",void 0),ba([z("rangeService")],t.prototype,"rangeService",void 0),ba([z("clipboardService")],t.prototype,"clipboardService",void 0),ba([z("aggFuncService")],t.prototype,"aggFuncService",void 0),ba([U("menuFactory")],t.prototype,"menuFactory",void 0),ba([z("contextMenuFactory")],t.prototype,"contextMenuFactory",void 0),ba([U("valueCache")],t.prototype,"valueCache",void 0),ba([U("animationFrameService")],t.prototype,"animationFrameService",void 0),ba([z("statusBarService")],t.prototype,"statusBarService",void 0),ba([z("chartService")],t.prototype,"chartService",void 0),ba([z("undoRedoService")],t.prototype,"undoRedoService",void 0),ba([z("rowNodeBlockLoader")],t.prototype,"rowNodeBlockLoader",void 0),ba([z("ssrmTransactionManager")],t.prototype,"serverSideTransactionManager",void 0),ba([U("ctrlsService")],t.prototype,"ctrlsService",void 0),ba([B],t.prototype,"init",null),ba([j],t.prototype,"cleanDownReferencesToAvoidMemoryLeakInCaseApplicationIsKeepingReferenceToDestroyedGrid",null),t=ba([W("gridApi")],t)}(),_a=function(){var t=function(e,o){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])})(e,o)};return function(e,o){function i(){this.constructor=e}t(e,o),e.prototype=null===o?Object.create(o):(i.prototype=o.prototype,new i)}}(),Aa=function(){return(Aa=Object.assign||function(t){for(var e,o=1,i=arguments.length;o<i;o++)for(var n in e=arguments[o])Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t}).apply(this,arguments)},Na=function(t,e,o,i){var n,r=arguments.length,s=r<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,o):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,o,i);else for(var a=t.length-1;a>=0;a--)(n=t[a])&&(s=(r<3?n(s):r>3?n(e,o,s):n(e,o))||s);return r>3&&s&&Object.defineProperty(e,o,s),s},Fa=function(t){function o(){var e=null!==t&&t.apply(this,arguments)||this;return e.allColumnFilters=new Map,e.activeAggregateFilters=[],e.activeColumnFilters=[],e.quickFilter=null,e.quickFilterParts=null,e.processingFilterChange=!1,e}var i;return _a(o,t),i=o,o.prototype.init=function(){var t=this;this.addManagedListener(this.eventService,kt.EVENT_GRID_COLUMNS_CHANGED,(function(){return t.onColumnsChanged()})),this.addManagedListener(this.eventService,kt.EVENT_COLUMN_VALUE_CHANGED,(function(){return t.refreshFiltersForAggregations()})),this.addManagedListener(this.eventService,kt.EVENT_COLUMN_PIVOT_CHANGED,(function(){return t.refreshFiltersForAggregations()})),this.addManagedListener(this.eventService,kt.EVENT_COLUMN_PIVOT_MODE_CHANGED,(function(){t.refreshFiltersForAggregations(),t.resetQuickFilterCache()})),this.addManagedListener(this.eventService,kt.EVENT_NEW_COLUMNS_LOADED,(function(){return t.resetQuickFilterCache()})),this.addManagedListener(this.eventService,kt.EVENT_COLUMN_ROW_GROUP_CHANGED,(function(){return t.resetQuickFilterCache()})),this.addManagedListener(this.eventService,kt.EVENT_COLUMN_VISIBLE,(function(){t.gridOptionsService.is("excludeHiddenColumnsFromQuickFilter")&&t.resetQuickFilterCache()})),this.addManagedPropertyListener("quickFilterText",(function(e){return t.setQuickFilter(e.currentValue)})),this.addManagedPropertyListener("excludeHiddenColumnsFromQuickFilter",(function(){return t.onExcludeHiddenColumnsFromQuickFilterChanged()})),this.quickFilter=this.parseQuickFilter(this.gridOptionsService.get("quickFilterText")),this.setQuickFilterParts(),this.allowShowChangeAfterFilter=this.gridOptionsService.is("allowShowChangeAfterFilter"),this.externalFilterPresent=this.isExternalFilterPresentCallback()},o.prototype.isExternalFilterPresentCallback=function(){var t=this.gridOptionsService.getCallback("isExternalFilterPresent");return"function"==typeof t&&t({})},o.prototype.doesExternalFilterPass=function(t){var e=this.gridOptionsService.get("doesExternalFilterPass");return"function"==typeof e&&e(t)},o.prototype.setQuickFilterParts=function(){this.quickFilterParts=this.quickFilter?this.quickFilter.split(" "):null},o.prototype.setFilterModel=function(t){var e=this,o=[],i=this.getFilterModel();if(t){var n=Ki(Object.keys(t));this.allColumnFilters.forEach((function(i,r){var s=t[r];o.push(e.setModelOnFilterWrapper(i.filterPromise,s)),n.delete(r)})),n.forEach((function(i){var n=e.columnModel.getPrimaryColumn(i)||e.columnModel.getGridColumn(i);if(n)if(n.isFilterAllowed()){var r=e.getOrCreateFilterWrapper(n,"NO_UI");r?o.push(e.setModelOnFilterWrapper(r.filterPromise,t[i])):console.warn("AG-Grid: setFilterModel() - unable to fully apply model, unable to create filter for colId: "+i)}else console.warn("AG Grid: setFilterModel() - unable to fully apply model, filtering disabled for colId: "+i);else console.warn("AG Grid: setFilterModel() - no column found for colId: "+i)}))}else this.allColumnFilters.forEach((function(t){o.push(e.setModelOnFilterWrapper(t.filterPromise,null))}));$i.all(o).then((function(){var t=e.getFilterModel(),o=[];e.allColumnFilters.forEach((function(e,n){var r=i?i[n]:null,s=t?t[n]:null;Xi.jsonEquals(r,s)||o.push(e.column)})),o.length>0&&e.onFilterChanged({columns:o})}))},o.prototype.setModelOnFilterWrapper=function(t,e){return new $i((function(o){t.then((function(t){"function"!=typeof t.setModel&&(console.warn("AG Grid: filter missing setModel method, which is needed for setFilterModel"),o()),(t.setModel(e)||$i.resolve()).then((function(){return o()}))}))}))},o.prototype.getFilterModel=function(){var t={};return this.allColumnFilters.forEach((function(o,i){var n=o.filterPromise.resolveNow(null,(function(t){return t}));if(null==n)return null;if("function"==typeof n.getModel){var r=n.getModel();e(r)&&(t[i]=r)}else console.warn("AG Grid: filter API missing getModel method, which is needed for getFilterModel")})),t},o.prototype.isColumnFilterPresent=function(){return this.activeColumnFilters.length>0},o.prototype.isAggregateFilterPresent=function(){return!!this.activeAggregateFilters.length},o.prototype.isExternalFilterPresent=function(){return this.externalFilterPresent},o.prototype.doAggregateFiltersPass=function(t,e){return this.doColumnFiltersPass(t,e,!0)},o.prototype.updateActiveFilters=function(){var t=this;this.activeColumnFilters.length=0,this.activeAggregateFilters.length=0;var e=function(t){return!!t&&(t.isFilterActive?t.isFilterActive():(console.warn("AG Grid: Filter is missing isFilterActive() method"),!1))},o=!!this.gridOptionsService.getGroupAggFiltering();this.allColumnFilters.forEach((function(i){if(i.filterPromise.resolveNow(!1,e)){var n=i.filterPromise.resolveNow(null,(function(t){return t}));!function(e){if(!e.isPrimary())return!0;var i=!t.columnModel.isPivotActive();return!(!e.isValueActive()||!i)&&(!!t.columnModel.isPivotMode()||o)}(i.column)?t.activeColumnFilters.push(n):t.activeAggregateFilters.push(n)}}))},o.prototype.updateFilterFlagInColumns=function(t,e){this.allColumnFilters.forEach((function(o){var i=o.filterPromise.resolveNow(!1,(function(t){return t.isFilterActive()}));o.column.setFilterActive(i,t,e)}))},o.prototype.isAnyFilterPresent=function(){return this.isQuickFilterPresent()||this.isColumnFilterPresent()||this.isAggregateFilterPresent()||this.isExternalFilterPresent()},o.prototype.doColumnFiltersPass=function(t,e,o){for(var i=t.data,n=t.aggData,r=o?this.activeAggregateFilters:this.activeColumnFilters,s=o?n:i,a=0;a<r.length;a++){var l=r[a];if(null!=l&&l!==e){if("function"!=typeof l.doesFilterPass)throw new Error("Filter is missing method doesFilterPass");if(!l.doesFilterPass({node:t,data:s}))return!1}}return!0},o.prototype.parseQuickFilter=function(t){return e(t)?this.gridOptionsService.isRowModelType("clientSide")?t.toUpperCase():(console.warn("AG Grid - Quick filtering only works with the Client-Side Row Model"),null):null},o.prototype.setQuickFilter=function(t){if(null==t||"string"==typeof t){var e=this.parseQuickFilter(t);this.quickFilter!==e&&(this.quickFilter=e,this.setQuickFilterParts(),this.onFilterChanged())}else console.warn("AG Grid - setQuickFilter() only supports string inputs, received: "+typeof t)},o.prototype.resetQuickFilterCache=function(){this.rowModel.forEachNode((function(t){return t.quickFilterAggregateText=null}))},o.prototype.onExcludeHiddenColumnsFromQuickFilterChanged=function(){this.columnModel.refreshQuickFilterColumns(),this.resetQuickFilterCache(),this.isQuickFilterPresent()&&this.onFilterChanged()},o.prototype.refreshFiltersForAggregations=function(){this.gridOptionsService.getGroupAggFiltering()&&this.onFilterChanged()},o.prototype.callOnFilterChangedOutsideRenderCycle=function(t){var e=this;void 0===t&&(t={});var o=function(){return e.onFilterChanged(t)};this.rowRenderer.isRefreshInProgress()?setTimeout(o,0):o()},o.prototype.onFilterChanged=function(t){void 0===t&&(t={});var e=t.filterInstance,o=t.additionalEventAttributes,i=t.columns;this.updateDependantFilters(),this.updateActiveFilters(),this.updateFilterFlagInColumns("filterChanged",o),this.externalFilterPresent=this.isExternalFilterPresentCallback(),this.allColumnFilters.forEach((function(t){t.filterPromise&&t.filterPromise.then((function(t){t&&t!==e&&t.onAnyFilterChanged&&t.onAnyFilterChanged()}))}));var n={type:kt.EVENT_FILTER_CHANGED,columns:i||[]};o&&m(n,o),this.processingFilterChange=!0,this.eventService.dispatchEvent(n),this.processingFilterChange=!1},o.prototype.isSuppressFlashingCellsBecauseFiltering=function(){return!this.allowShowChangeAfterFilter&&this.processingFilterChange},o.prototype.isQuickFilterPresent=function(){return null!==this.quickFilter},o.prototype.doesRowPassOtherFilters=function(t,e){return this.doesRowPassFilter({rowNode:e,filterInstanceToSkip:t})},o.prototype.doesRowPassQuickFilterNoCache=function(t,o){var i=this;return this.columnModel.getAllColumnsForQuickFilter().some((function(n){var r=i.getQuickFilterTextForColumn(n,t);return e(r)&&r.indexOf(o)>=0}))},o.prototype.doesRowPassQuickFilterCache=function(t,e){return t.quickFilterAggregateText||this.aggregateRowForQuickFilter(t),t.quickFilterAggregateText.indexOf(e)>=0},o.prototype.doesRowPassQuickFilter=function(t){var e=this,o=this.gridOptionsService.is("cacheQuickFilter");return this.quickFilterParts.every((function(i){return o?e.doesRowPassQuickFilterCache(t,i):e.doesRowPassQuickFilterNoCache(t,i)}))},o.prototype.doesRowPassAggregateFilters=function(t){return!(this.isAggregateFilterPresent()&&!this.doAggregateFiltersPass(t.rowNode,t.filterInstanceToSkip))},o.prototype.doesRowPassFilter=function(t){return!(this.isQuickFilterPresent()&&!this.doesRowPassQuickFilter(t.rowNode))&&(!(this.isExternalFilterPresent()&&!this.doesExternalFilterPass(t.rowNode))&&!(this.isColumnFilterPresent()&&!this.doColumnFiltersPass(t.rowNode,t.filterInstanceToSkip)))},o.prototype.getQuickFilterTextForColumn=function(t,o){var i=this.valueService.getValue(t,o,!0),n=t.getColDef();if(n.getQuickFilterText){var r={value:i,node:o,data:o.data,column:t,colDef:n,api:this.gridOptionsService.api,columnApi:this.gridOptionsService.columnApi,context:this.gridOptionsService.context};i=n.getQuickFilterText(r)}return e(i)?i.toString().toUpperCase():null},o.prototype.aggregateRowForQuickFilter=function(t){var o=this,n=[];this.columnModel.getAllColumnsForQuickFilter().forEach((function(i){var r=o.getQuickFilterTextForColumn(i,t);e(r)&&n.push(r)})),t.quickFilterAggregateText=n.join(i.QUICK_FILTER_SEPARATOR)},o.prototype.onNewRowsLoaded=function(t){this.allColumnFilters.forEach((function(t){t.filterPromise.then((function(t){t.onNewRowsLoaded&&t.onNewRowsLoaded()}))})),this.updateFilterFlagInColumns(t,{afterDataChange:!0}),this.updateActiveFilters()},o.prototype.createValueGetter=function(t){var e=this;return function(o){var i=o.node;return e.valueService.getValue(t,i,!0)}},o.prototype.getFilterComponent=function(t,e,o){var i;if(void 0===o&&(o=!0),o)return(null===(i=this.getOrCreateFilterWrapper(t,e))||void 0===i?void 0:i.filterPromise)||null;var n=this.cachedFilter(t);return n?n.filterPromise:null},o.prototype.isFilterActive=function(t){var e=this.cachedFilter(t);return!!e&&e.filterPromise.resolveNow(!1,(function(t){return t.isFilterActive()}))},o.prototype.getOrCreateFilterWrapper=function(t,e){if(!t.isFilterAllowed())return null;var o=this.cachedFilter(t);return o?"NO_UI"!==e&&this.putIntoGui(o,e):(o=this.createFilterWrapper(t,e),this.allColumnFilters.set(t.getColId(),o)),o},o.prototype.cachedFilter=function(t){return this.allColumnFilters.get(t.getColId())},o.prototype.createFilterInstance=function(t){var e,o=this,i=tt.isRegistered(Q.SetFilterModule)?"agSetColumnFilter":"agTextColumnFilter",n=t.getColDef(),r=Aa(Aa({},this.createFilterParams(t,n)),{filterModifiedCallback:function(){var i={type:kt.EVENT_FILTER_MODIFIED,column:t,filterInstance:e};o.eventService.dispatchEvent(i)},filterChangedCallback:function(i){var n={filterInstance:e,additionalEventAttributes:i,columns:[t]};o.callOnFilterChangedOutsideRenderCycle(n)},doesRowPassOtherFilter:function(t){return o.doesRowPassOtherFilters(e,t)}}),s=this.userComponentFactory.getFilterDetails(n,r,i);if(!s)return null;var a=s.newAgStackInstance();return a&&a.then((function(t){return e=t})),a},o.prototype.createFilterParams=function(t,e){return{column:t,colDef:p(e),rowModel:this.rowModel,filterChangedCallback:function(){},filterModifiedCallback:function(){},valueGetter:this.createValueGetter(t),doesRowPassOtherFilter:function(){return!0},api:this.gridOptionsService.api,columnApi:this.gridOptionsService.columnApi,context:this.gridOptionsService.context}},o.prototype.createFilterWrapper=function(t,e){var o={column:t,filterPromise:null,compiledElement:null,guiPromise:$i.resolve(null)};return o.filterPromise=this.createFilterInstance(t),o.filterPromise&&this.putIntoGui(o,e),o},o.prototype.putIntoGui=function(t,o){var i=this,n=document.createElement("div");n.className="ag-filter",t.guiPromise=new $i((function(r){t.filterPromise.then((function(s){var a=s.getGui();e(a)||console.warn("AG Grid: getGui method from filter returned "+a+", it should be a DOM element or an HTML template string."),"string"==typeof a&&(a=hi(a)),n.appendChild(a),r(n);var l={type:kt.EVENT_FILTER_OPENED,column:t.column,source:o,eGui:n};i.eventService.dispatchEvent(l)}))}))},o.prototype.onColumnsChanged=function(){var t=this,e=[];this.allColumnFilters.forEach((function(o,i){(o.column.isPrimary()?t.columnModel.getPrimaryColumn(i):t.columnModel.getGridColumn(i))||(e.push(o.column),t.disposeFilterWrapper(o,"columnChanged"))})),e.length>0?this.onFilterChanged({columns:e}):this.updateDependantFilters()},o.prototype.updateDependantFilters=function(){var t=this,e=this.columnModel.getGroupAutoColumns();null==e||e.forEach((function(e){"agGroupColumnFilter"===e.getColDef().filter&&t.getOrCreateFilterWrapper(e,"NO_UI")}))},o.prototype.isFilterAllowed=function(t){var e,o;if(!t.isFilterAllowed())return!1;var i=this.allColumnFilters.get(t.getColId());return null===(o=null===(e=null==i?void 0:i.filterPromise)||void 0===e?void 0:e.resolveNow(!0,(function(t){var e,o;return"function"!=typeof(null===(e=t)||void 0===e?void 0:e.isFilterAllowed)||(null===(o=t)||void 0===o?void 0:o.isFilterAllowed())})))||void 0===o||o},o.prototype.getFloatingFilterCompDetails=function(t,e){var o=this,i=t.getColDef(),n=this.createFilterParams(t,i),r=this.userComponentFactory.mergeParamsWithApplicationProvidedParams(i,la,n),s=this.userComponentFactory.getDefaultFloatingFilterType(i);null==s&&(s="agReadOnlyFloatingFilter");var a={column:t,filterParams:r,currentParentModel:function(){return o.getCurrentFloatingFilterParentModel(t)},parentFilterInstance:function(e){var i=o.getFilterComponent(t,"NO_UI");null!=i&&i.then((function(t){e(Ta(t))}))},showParentFilter:e,suppressFilterButton:!1};return this.userComponentFactory.getFloatingFilterCompDetails(i,a,s)},o.prototype.getCurrentFloatingFilterParentModel=function(t){var e=this.getFilterComponent(t,"NO_UI",!1);return e?e.resolveNow(null,(function(t){return t&&t.getModel()})):null},o.prototype.destroyFilter=function(t,e){void 0===e&&(e="api");var o=this.allColumnFilters.get(t.getColId());o&&(this.disposeFilterWrapper(o,e),this.onFilterChanged({columns:[t]}))},o.prototype.disposeFilterWrapper=function(t,e){var o=this;t.filterPromise.then((function(i){(i.setModel(null)||$i.resolve()).then((function(){o.getContext().destroyBean(i),t.column.setFilterActive(!1,"filterDestroyed"),o.allColumnFilters.delete(t.column.getColId());var n={type:kt.EVENT_FILTER_DESTROYED,source:e,column:t.column};o.eventService.dispatchEvent(n)}))}))},o.prototype.destroy=function(){var e=this;t.prototype.destroy.call(this),this.allColumnFilters.forEach((function(t){return e.disposeFilterWrapper(t,"gridDestroyed")}))},o.QUICK_FILTER_SEPARATOR="\n",Na([U("valueService")],o.prototype,"valueService",void 0),Na([U("columnModel")],o.prototype,"columnModel",void 0),Na([U("rowModel")],o.prototype,"rowModel",void 0),Na([U("userComponentFactory")],o.prototype,"userComponentFactory",void 0),Na([U("rowRenderer")],o.prototype,"rowRenderer",void 0),Na([B],o.prototype,"init",null),o=i=Na([W("filterManager")],o)}(Mt),La=function(){var t=function(e,o){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])})(e,o)};return function(e,o){function i(){this.constructor=e}t(e,o),e.prototype=null===o?Object.create(o):(i.prototype=o.prototype,new i)}}(),Ma=function(t){function e(e,o){var i=t.call(this,e)||this;return i.ctrl=o,i}return La(e,t),e.prototype.getCtrl=function(){return this.ctrl},e}(cn),Ia=function(){var t=function(e,o){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])})(e,o)};return function(e,o){function i(){this.constructor=e}t(e,o),e.prototype=null===o?Object.create(o):(i.prototype=o.prototype,new i)}}(),Ga=function(t,e,o,i){var n,r=arguments.length,s=r<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,o):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,o,i);else for(var a=t.length-1;a>=0;a--)(n=t[a])&&(s=(r<3?n(s):r>3?n(e,o,s):n(e,o))||s);return r>3&&s&&Object.defineProperty(e,o,s),s},xa=function(t){function e(o){return t.call(this,e.TEMPLATE,o)||this}return Ia(e,t),e.prototype.postConstruct=function(){var t=this,e=this.getGui(),o={addOrRemoveCssClass:function(e,o){return t.addOrRemoveCssClass(e,o)},addOrRemoveBodyCssClass:function(e,o){return t.eFloatingFilterBody.classList.toggle(e,o)},setButtonWrapperDisplayed:function(e){return Zo(t.eButtonWrapper,e)},setCompDetails:function(e){return t.setCompDetails(e)},getFloatingFilterComp:function(){return t.compPromise},setWidth:function(t){return e.style.width=t},setMenuIcon:function(e){return t.eButtonShowMainFilter.appendChild(e)}};this.ctrl.setComp(o,e,this.eButtonShowMainFilter,this.eFloatingFilterBody)},e.prototype.setCompDetails=function(t){var e=this;this.compPromise=t.newAgStackInstance(),this.compPromise.then((function(t){return e.afterCompCreated(t)}))},e.prototype.afterCompCreated=function(t){var e=this;t&&(this.addDestroyFunc((function(){return e.context.destroyBean(t)})),this.isAlive()&&(this.eFloatingFilterBody.appendChild(t.getGui()),t.afterGuiAttached&&t.afterGuiAttached()))},e.TEMPLATE='<div class="ag-header-cell ag-floating-filter" role="gridcell" tabindex="-1">\n <div ref="eFloatingFilterBody" role="presentation"></div>\n <div class="ag-floating-filter-button ag-hidden" ref="eButtonWrapper" role="presentation">\n <button type="button" aria-label="Open Filter Menu" class="ag-floating-filter-button-button" ref="eButtonShowMainFilter" tabindex="-1"></button>\n </div>\n </div>',Ga([dn("eFloatingFilterBody")],e.prototype,"eFloatingFilterBody",void 0),Ga([dn("eButtonWrapper")],e.prototype,"eButtonWrapper",void 0),Ga([dn("eButtonShowMainFilter")],e.prototype,"eButtonShowMainFilter",void 0),Ga([B],e.prototype,"postConstruct",null),e}(Ma),Ha=function(){var t=function(e,o){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])})(e,o)};return function(e,o){function i(){this.constructor=e}t(e,o),e.prototype=null===o?Object.create(o):(i.prototype=o.prototype,new i)}}(),Va=function(t,e,o,i){var n,r=arguments.length,s=r<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,o):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,o,i);else for(var a=t.length-1;a>=0;a--)(n=t[a])&&(s=(r<3?n(s):r>3?n(e,o,s):n(e,o))||s);return r>3&&s&&Object.defineProperty(e,o,s),s};
225/**
226 * @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue
227 * @version v29.2.0
228 * @link https://www.ag-grid.com/
229 * @license MIT
230 */!function(t){t.AUTO_HEIGHT="ag-layout-auto-height",t.NORMAL="ag-layout-normal",t.PRINT="ag-layout-print"}(Pa||(Pa={}));var ka,Ba=function(t){function e(e){var o=t.call(this)||this;return o.view=e,o}return Ha(e,t),e.prototype.postConstruct=function(){this.addManagedPropertyListener("domLayout",this.updateLayoutClasses.bind(this)),this.updateLayoutClasses()},e.prototype.updateLayoutClasses=function(){var t=this.getDomLayout(),e={autoHeight:"autoHeight"===t,normal:"normal"===t,print:"print"===t},o=e.autoHeight?Pa.AUTO_HEIGHT:e.print?Pa.PRINT:Pa.NORMAL;this.view.updateLayoutClasses(o,e)},e.prototype.getDomLayout=function(){var t,e=null!==(t=this.gridOptionsService.get("domLayout"))&&void 0!==t?t:"normal";return-1===["normal","print","autoHeight"].indexOf(e)?(O((function(){return console.warn("AG Grid: "+e+" is not valid for DOM Layout, valid values are 'normal', 'autoHeight', 'print'.")}),"warn about dom layout values"),"normal"):e},Va([B],e.prototype,"postConstruct",null),e}(Mt),ja=function(){var t=function(e,o){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])})(e,o)};return function(e,o){function i(){this.constructor=e}t(e,o),e.prototype=null===o?Object.create(o):(i.prototype=o.prototype,new i)}}(),Wa=function(){return(Wa=Object.assign||function(t){for(var e,o=1,i=arguments.length;o<i;o++)for(var n in e=arguments[o])Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t}).apply(this,arguments)},Ua=function(t,e,o,i){var n,r=arguments.length,s=r<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,o):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,o,i);else for(var a=t.length-1;a>=0;a--)(n=t[a])&&(s=(r<3?n(s):r>3?n(e,o,s):n(e,o))||s);return r>3&&s&&Object.defineProperty(e,o,s),s},za=function(t){function e(e){var o=t.call(this)||this;return o.scrollLeft=-1,o.nextScrollTop=-1,o.scrollTop=-1,o.eBodyViewport=e,o.resetLastHScrollDebounced=F((function(){return o.eLastHScroll=null}),500),o.resetLastVScrollDebounced=F((function(){return o.eLastVScroll=null}),500),o}return ja(e,t),e.prototype.postConstruct=function(){var t=this;this.enableRtl=this.gridOptionsService.is("enableRtl"),this.addManagedListener(this.eventService,kt.EVENT_DISPLAYED_COLUMNS_WIDTH_CHANGED,this.onDisplayedColumnsWidthChanged.bind(this)),this.ctrlsService.whenReady((function(e){t.centerRowContainerCtrl=e.centerRowContainerCtrl,t.onDisplayedColumnsWidthChanged(),t.addScrollListener()}))},e.prototype.addScrollListener=function(){var t=this.ctrlsService.getFakeHScrollComp(),e=this.ctrlsService.getFakeVScrollComp();this.addManagedListener(this.centerRowContainerCtrl.getViewportElement(),"scroll",this.onHScroll.bind(this)),this.addManagedListener(t.getViewport(),"scroll",this.onFakeHScroll.bind(this));var o=this.gridOptionsService.is("debounceVerticalScrollbar"),i=o?F(this.onVScroll.bind(this),100):this.onVScroll.bind(this),n=o?F(this.onFakeVScroll.bind(this),100):this.onFakeVScroll.bind(this);this.addManagedListener(this.eBodyViewport,"scroll",i),this.addManagedListener(e.getViewport(),"scroll",n)},e.prototype.onDisplayedColumnsWidthChanged=function(){this.enableRtl&&this.horizontallyScrollHeaderCenterAndFloatingCenter()},e.prototype.horizontallyScrollHeaderCenterAndFloatingCenter=function(t){if(!(null==this.centerRowContainerCtrl)){void 0===t&&(t=this.centerRowContainerCtrl.getCenterViewportScrollLeft());var e=this.enableRtl?t:-t,o=this.ctrlsService.getTopCenterRowContainerCtrl(),i=this.ctrlsService.getStickyTopCenterRowContainerCtrl(),n=this.ctrlsService.getBottomCenterRowContainerCtrl(),r=this.ctrlsService.getFakeHScrollComp();this.ctrlsService.getHeaderRowContainerCtrl().setHorizontalScroll(e),n.setContainerTranslateX(e),o.setContainerTranslateX(e),i.setContainerTranslateX(e);var s=this.centerRowContainerCtrl.getViewportElement();ui(this.eLastHScroll===s?r.getViewport():this.centerRowContainerCtrl.getViewportElement(),Math.abs(t),this.enableRtl)}},e.prototype.isControllingHScroll=function(t){return this.eLastHScroll?t===this.eLastHScroll:(this.eLastHScroll=t,!0)},e.prototype.isControllingVScroll=function(t){return this.eLastVScroll?t===this.eLastVScroll:(this.eLastVScroll=t,!0)},e.prototype.onFakeHScroll=function(){var t=this.ctrlsService.getFakeHScrollComp().getViewport();this.isControllingHScroll(t)&&this.onHScrollCommon(t)},e.prototype.onHScroll=function(){var t=this.centerRowContainerCtrl.getViewportElement();this.isControllingHScroll(t)&&this.onHScrollCommon(t)},e.prototype.onHScrollCommon=function(t){var e=this.centerRowContainerCtrl.getViewportElement().scrollLeft;this.shouldBlockScrollUpdate("horizontal",e,!0)||(this.doHorizontalScroll(Math.round(li(t,this.enableRtl))),this.resetLastHScrollDebounced())},e.prototype.onFakeVScroll=function(){var t=this.ctrlsService.getFakeVScrollComp().getViewport();this.isControllingVScroll(t)&&this.onVScrollCommon(t)},e.prototype.onVScroll=function(){this.isControllingVScroll(this.eBodyViewport)&&this.onVScrollCommon(this.eBodyViewport)},e.prototype.onVScrollCommon=function(t){var e=t.scrollTop;if(!this.shouldBlockScrollUpdate("vertical",e,!0)){if(this.animationFrameService.setScrollTop(e),this.nextScrollTop=e,t===this.eBodyViewport)this.ctrlsService.getFakeVScrollComp().getViewport().scrollTop=e;else this.eBodyViewport.scrollTop=e;this.gridOptionsService.is("suppressAnimationFrame")?this.scrollGridIfNeeded():this.animationFrameService.schedule(),this.resetLastVScrollDebounced()}},e.prototype.doHorizontalScroll=function(t){var e=li(this.ctrlsService.getFakeHScrollComp().getViewport(),this.enableRtl);this.scrollLeft===t&&t===e||(this.scrollLeft=t,this.fireScrollEvent("horizontal"),this.horizontallyScrollHeaderCenterAndFloatingCenter(t),this.onHorizontalViewportChanged())},e.prototype.fireScrollEvent=function(t){var e=this,o={type:kt.EVENT_BODY_SCROLL,direction:t,left:this.scrollLeft,top:this.scrollTop};this.eventService.dispatchEvent(o),window.clearTimeout(this.scrollTimer),this.scrollTimer=void 0,this.scrollTimer=window.setTimeout((function(){var t=Wa(Wa({},o),{type:kt.EVENT_BODY_SCROLL_END});e.eventService.dispatchEvent(t)}),100)},e.prototype.shouldBlockScrollUpdate=function(t,e,o){return void 0===o&&(o=!1),!(o&&!Po())&&("vertical"===t?this.shouldBlockVerticalScroll(e):this.shouldBlockHorizontalScroll(e))},e.prototype.shouldBlockVerticalScroll=function(t){var e=ii(this.eBodyViewport),o=this.eBodyViewport.scrollHeight;return t<0||t+e>o},e.prototype.shouldBlockHorizontalScroll=function(t){var e=this.centerRowContainerCtrl.getCenterWidth(),o=this.centerRowContainerCtrl.getViewportElement().scrollWidth;if(this.enableRtl&&ai()){if(t>0)return!0}else if(t<0)return!0;return Math.abs(t)+e>o},e.prototype.redrawRowsAfterScroll=function(){this.fireScrollEvent("vertical")},e.prototype.onHorizontalViewportChanged=function(){this.centerRowContainerCtrl.onHorizontalViewportChanged()},e.prototype.checkScrollLeft=function(){this.scrollLeft!==this.centerRowContainerCtrl.getCenterViewportScrollLeft()&&this.onHScrollCommon(this.centerRowContainerCtrl.getViewportElement())},e.prototype.scrollGridIfNeeded=function(){var t=this.scrollTop!=this.nextScrollTop;return t&&(this.scrollTop=this.nextScrollTop,this.redrawRowsAfterScroll()),t},e.prototype.setHorizontalScrollPosition=function(t){var e=this.centerRowContainerCtrl.getViewportElement().scrollWidth-this.centerRowContainerCtrl.getCenterWidth();this.shouldBlockScrollUpdate("horizontal",t)&&(t=this.enableRtl&&ai()?t>0?0:e:Math.min(Math.max(t,0),e)),ui(this.centerRowContainerCtrl.getViewportElement(),Math.abs(t),this.enableRtl),this.doHorizontalScroll(t)},e.prototype.setVerticalScrollPosition=function(t){this.eBodyViewport.scrollTop=t},e.prototype.getVScrollPosition=function(){return{top:this.eBodyViewport.scrollTop,bottom:this.eBodyViewport.scrollTop+this.eBodyViewport.offsetHeight}},e.prototype.getHScrollPosition=function(){return this.centerRowContainerCtrl.getHScrollPosition()},e.prototype.isHorizontalScrollShowing=function(){return this.centerRowContainerCtrl.isHorizontalScrollShowing()},e.prototype.scrollHorizontally=function(t){var e=this.centerRowContainerCtrl.getViewportElement().scrollLeft;return this.setHorizontalScrollPosition(e+t),this.centerRowContainerCtrl.getViewportElement().scrollLeft-e},e.prototype.scrollToTop=function(){this.eBodyViewport.scrollTop=0},e.prototype.ensureNodeVisible=function(t,e){void 0===e&&(e=null);for(var o=this.rowModel.getRowCount(),i=-1,n=0;n<o;n++){var r=this.rowModel.getRow(n);if("function"==typeof t){if(r&&t(r)){i=n;break}}else if(t===r||t===r.data){i=n;break}}i>=0&&this.ensureIndexVisible(i,e)},e.prototype.ensureIndexVisible=function(t,e){if(!this.gridOptionsService.isDomLayout("print")){var o=this.paginationProxy.getRowCount();if("number"!=typeof t||t<0||t>=o)console.warn("AG Grid: Invalid row index for ensureIndexVisible: "+t);else{this.gridOptionsService.is("pagination")&&!this.gridOptionsService.is("suppressPaginationPanel")||this.paginationProxy.goToPageWithIndex(t);var i,n=this.ctrlsService.getGridBodyCtrl().getStickyTopHeight(),r=this.paginationProxy.getRow(t);do{var s=r.rowTop,a=r.rowHeight,l=this.paginationProxy.getPixelOffset(),u=r.rowTop-l,c=u+r.rowHeight,p=this.getVScrollPosition(),d=this.heightScaler.getDivStretchOffset(),h=p.top+d,f=p.bottom+d,g=f-h,v=this.heightScaler.getScrollPositionForPixel(u),y=this.heightScaler.getScrollPositionForPixel(c-g),m=Math.min((v+y)/2,u),C=null;"top"===e?C=v:"bottom"===e?C=y:"middle"===e?C=m:h+n>u?C=v-n:f<c&&(C=y),null!==C&&(this.eBodyViewport.scrollTop=C,this.rowRenderer.redrawAfterScroll()),i=s!==r.rowTop||a!==r.rowHeight}while(i);this.animationFrameService.flushAllFrames()}}},e.prototype.ensureColumnVisible=function(t,e){void 0===e&&(e="auto");var o=this.columnModel.getGridColumn(t);if(o&&!o.isPinned()&&this.columnModel.isColumnDisplayed(o)){var i=this.getPositionedHorizontalScroll(o,e);null!==i&&this.centerRowContainerCtrl.setCenterViewportScrollLeft(i),this.centerRowContainerCtrl.onHorizontalViewportChanged(),this.animationFrameService.flushAllFrames()}},e.prototype.getPositionedHorizontalScroll=function(t,e){var o=this.isColumnOutsideViewport(t),i=o.columnBeforeStart,n=o.columnAfterEnd,r=this.centerRowContainerCtrl.getCenterWidth()<t.getActualWidth(),s=this.centerRowContainerCtrl.getCenterWidth(),a=this.enableRtl,l=(a?i:n)||r,u=a?n:i;"auto"!==e&&(l="start"===e,u="end"===e);var c="middle"===e;if(l||u||c){var p=this.getColumnBounds(t),d=p.colLeft,h=p.colMiddle,f=p.colRight;return c?h-s/2:l?a?f:d:a?d-s:f-s}return null},e.prototype.isColumnOutsideViewport=function(t){var e=this.getViewportBounds(),o=e.start,i=e.end,n=this.getColumnBounds(t),r=n.colLeft,s=n.colRight,a=this.enableRtl;return{columnBeforeStart:a?o>s:i<s,columnAfterEnd:a?i<r:o>r}},e.prototype.getColumnBounds=function(t){var e=this.enableRtl,o=this.columnModel.getBodyContainerWidth(),i=t.getActualWidth(),n=t.getLeft(),r=e?-1:1,s=e?o-n:n;return{colLeft:s,colMiddle:s+i/2*r,colRight:s+i*r}},e.prototype.getViewportBounds=function(){var t=this.centerRowContainerCtrl.getCenterWidth(),e=this.centerRowContainerCtrl.getCenterViewportScrollLeft();return{start:e,end:t+e,width:t}},Ua([U("ctrlsService")],e.prototype,"ctrlsService",void 0),Ua([U("animationFrameService")],e.prototype,"animationFrameService",void 0),Ua([U("paginationProxy")],e.prototype,"paginationProxy",void 0),Ua([U("rowModel")],e.prototype,"rowModel",void 0),Ua([U("rowContainerHeightService")],e.prototype,"heightScaler",void 0),Ua([U("rowRenderer")],e.prototype,"rowRenderer",void 0),Ua([U("columnModel")],e.prototype,"columnModel",void 0),Ua([B],e.prototype,"postConstruct",null),e}(Mt),Ka=function(){function t(t){this.tickingInterval=null,this.onScrollCallback=null,this.scrollContainer=t.scrollContainer,this.scrollHorizontally=-1!==t.scrollAxis.indexOf("x"),this.scrollVertically=-1!==t.scrollAxis.indexOf("y"),this.scrollByTick=null!=t.scrollByTick?t.scrollByTick:20,t.onScrollCallback&&(this.onScrollCallback=t.onScrollCallback),this.scrollVertically&&(this.getVerticalPosition=t.getVerticalPosition,this.setVerticalPosition=t.setVerticalPosition),this.scrollHorizontally&&(this.getHorizontalPosition=t.getHorizontalPosition,this.setHorizontalPosition=t.setHorizontalPosition),this.shouldSkipVerticalScroll=t.shouldSkipVerticalScroll||function(){return!1},this.shouldSkipHorizontalScroll=t.shouldSkipHorizontalScroll||function(){return!1}}return t.prototype.check=function(t,e){void 0===e&&(e=!1);var o=e||this.shouldSkipVerticalScroll();if(!o||!this.shouldSkipHorizontalScroll()){var i=this.scrollContainer.getBoundingClientRect(),n=this.scrollByTick;this.tickLeft=t.clientX<i.left+n,this.tickRight=t.clientX>i.right-n,this.tickUp=t.clientY<i.top+n&&!o,this.tickDown=t.clientY>i.bottom-n&&!o,this.tickLeft||this.tickRight||this.tickUp||this.tickDown?this.ensureTickingStarted():this.ensureCleared()}},t.prototype.ensureTickingStarted=function(){null===this.tickingInterval&&(this.tickingInterval=window.setInterval(this.doTick.bind(this),100),this.tickCount=0)},t.prototype.doTick=function(){var t;if(this.tickCount++,t=this.tickCount>20?200:this.tickCount>10?80:40,this.scrollVertically){var e=this.getVerticalPosition();this.tickUp&&this.setVerticalPosition(e-t),this.tickDown&&this.setVerticalPosition(e+t)}if(this.scrollHorizontally){var o=this.getHorizontalPosition();this.tickLeft&&this.setHorizontalPosition(o-t),this.tickRight&&this.setHorizontalPosition(o+t)}this.onScrollCallback&&this.onScrollCallback()},t.prototype.ensureCleared=function(){this.tickingInterval&&(window.clearInterval(this.tickingInterval),this.tickingInterval=null)},t}(),Ya=function(){var t=function(e,o){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])})(e,o)};return function(e,o){function i(){this.constructor=e}t(e,o),e.prototype=null===o?Object.create(o):(i.prototype=o.prototype,new i)}}(),qa=function(){return(qa=Object.assign||function(t){for(var e,o=1,i=arguments.length;o<i;o++)for(var n in e=arguments[o])Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t}).apply(this,arguments)},Qa=function(t,e,o,i){var n,r=arguments.length,s=r<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,o):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,o,i);else for(var a=t.length-1;a>=0;a--)(n=t[a])&&(s=(r<3?n(s):r>3?n(e,o,s):n(e,o))||s);return r>3&&s&&Object.defineProperty(e,o,s),s},Xa=function(t,e){var o="function"==typeof Symbol&&t[Symbol.iterator];if(!o)return t;var i,n,r=o.call(t),s=[];try{for(;(void 0===e||e-- >0)&&!(i=r.next()).done;)s.push(i.value)}catch(t){n={error:t}}finally{try{i&&!i.done&&(o=r.return)&&o.call(r)}finally{if(n)throw n.error}}return s},Ja=function(){for(var t=[],e=0;e<arguments.length;e++)t=t.concat(Xa(arguments[e]));return t},Za=function(t){function e(e){var o=t.call(this)||this;return o.isMultiRowDrag=!1,o.isGridSorted=!1,o.isGridFiltered=!1,o.isRowGroupActive=!1,o.eContainer=e,o}return Ya(e,t),e.prototype.postConstruct=function(){var t=this;this.gridOptionsService.isRowModelType("clientSide")&&(this.clientSideRowModel=this.rowModel);var e=function(){t.onSortChanged(),t.onFilterChanged(),t.onRowGroupChanged()};this.addManagedListener(this.eventService,kt.EVENT_SORT_CHANGED,this.onSortChanged.bind(this)),this.addManagedListener(this.eventService,kt.EVENT_FILTER_CHANGED,this.onFilterChanged.bind(this)),this.addManagedListener(this.eventService,kt.EVENT_COLUMN_ROW_GROUP_CHANGED,this.onRowGroupChanged.bind(this)),this.addManagedListener(this.eventService,kt.EVENT_MODEL_UPDATED,(function(){e()})),e(),this.ctrlsService.whenReady((function(){var e=t.ctrlsService.getGridBodyCtrl();t.autoScrollService=new Ka({scrollContainer:e.getBodyViewportElement(),scrollAxis:"y",getVerticalPosition:function(){return e.getScrollFeature().getVScrollPosition().top},setVerticalPosition:function(t){return e.getScrollFeature().setVerticalScrollPosition(t)},onScrollCallback:function(){t.onDragging(t.lastDraggingEvent)}})}))},e.prototype.onSortChanged=function(){this.isGridSorted=this.sortController.isSortActive()},e.prototype.onFilterChanged=function(){this.isGridFiltered=this.filterManager.isAnyFilterPresent()},e.prototype.onRowGroupChanged=function(){var t=this.columnModel.getRowGroupColumns();this.isRowGroupActive=!i(t)},e.prototype.getContainer=function(){return this.eContainer},e.prototype.isInterestedIn=function(t){return t===br.RowDrag},e.prototype.getIconName=function(){return this.gridOptionsService.is("rowDragManaged")&&this.shouldPreventRowMove()?bs.ICON_NOT_ALLOWED:bs.ICON_MOVE},e.prototype.shouldPreventRowMove=function(){return this.isGridSorted||this.isGridFiltered||this.isRowGroupActive},e.prototype.getRowNodes=function(t){var e=this;if(!this.isFromThisGrid(t))return t.dragItem.rowNodes||[];var o=this.gridOptionsService.is("rowDragMultiRow"),i=Ja(this.selectionService.getSelectedNodes()).sort((function(t,o){return null==t.rowIndex||null==o.rowIndex?0:e.getRowIndexNumber(t)-e.getRowIndexNumber(o)})),n=t.dragItem.rowNode;return o&&-1!==i.indexOf(n)?(this.isMultiRowDrag=!0,i):(this.isMultiRowDrag=!1,[n])},e.prototype.onDragEnter=function(t){t.dragItem.rowNodes=this.getRowNodes(t),this.dispatchGridEvent(kt.EVENT_ROW_DRAG_ENTER,t),this.getRowNodes(t).forEach((function(t){t.setDragging(!0)})),this.onEnterOrDragging(t)},e.prototype.onDragging=function(t){this.onEnterOrDragging(t)},e.prototype.isFromThisGrid=function(t){return t.dragSource.dragSourceDomDataKey===this.gridOptionsService.getDomDataKey()},e.prototype.isDropZoneWithinThisGrid=function(t){var e=this.ctrlsService.getGridBodyCtrl().getGui(),o=t.dropZoneTarget;return!e.contains(o)},e.prototype.onEnterOrDragging=function(t){this.dispatchGridEvent(kt.EVENT_ROW_DRAG_MOVE,t),this.lastDraggingEvent=t;var e=this.mouseEventService.getNormalisedPosition(t).y;this.gridOptionsService.is("rowDragManaged")&&this.doManagedDrag(t,e),this.autoScrollService.check(t.event)},e.prototype.doManagedDrag=function(t,e){var o=this.isFromThisGrid(t),i=this.gridOptionsService.is("rowDragManaged"),n=t.dragItem.rowNodes;i&&this.shouldPreventRowMove()||(this.gridOptionsService.is("suppressMoveWhenRowDragging")||!o?this.isDropZoneWithinThisGrid(t)||this.clientSideRowModel.highlightRowAtPixel(n[0],e):this.moveRows(n,e))},e.prototype.getRowIndexNumber=function(t){return parseInt(ut(t.getRowIndexString().split("-")),10)},e.prototype.moveRowAndClearHighlight=function(t){var e=this,o=this.clientSideRowModel.getLastHighlightedRowNode(),i=o&&o.highlighted===wa.Below,n=this.mouseEventService.getNormalisedPosition(t).y,r=t.dragItem.rowNodes,s=i?1:0;if(this.isFromThisGrid(t))r.forEach((function(t){t.rowTop<n&&(s-=1)})),this.moveRows(r,n,s);else{var a=this.gridOptionsService.getRowIdFunc(),l=this.clientSideRowModel.getRowIndexAtPixel(n)+1;this.clientSideRowModel.getHighlightPosition(n)===wa.Above&&l--,this.clientSideRowModel.updateRowData({add:r.map((function(t){return t.data})).filter((function(t){return!e.clientSideRowModel.getRowNode(a?a({data:t,level:0}):t.id)})),addIndex:l})}this.clearRowHighlight()},e.prototype.clearRowHighlight=function(){this.clientSideRowModel.highlightRowAtPixel(null)},e.prototype.moveRows=function(t,e,o){void 0===o&&(o=0),this.clientSideRowModel.ensureRowsAtPixel(t,e,o)&&(this.focusService.clearFocusedCell(),this.rangeService&&this.rangeService.removeAllCellRanges())},e.prototype.addRowDropZone=function(t){var e=this;if(t.getContainer())if(this.dragAndDropService.findExternalZone(t))console.warn("AG Grid: addRowDropZone - target already exists in the list of DropZones. Use `removeRowDropZone` before adding it again.");else{var o={getContainer:t.getContainer};t.fromGrid?(t.fromGrid=void 0,o=t):(t.onDragEnter&&(o.onDragEnter=function(o){t.onDragEnter(e.draggingToRowDragEvent(kt.EVENT_ROW_DRAG_ENTER,o))}),t.onDragLeave&&(o.onDragLeave=function(o){t.onDragLeave(e.draggingToRowDragEvent(kt.EVENT_ROW_DRAG_LEAVE,o))}),t.onDragging&&(o.onDragging=function(o){t.onDragging(e.draggingToRowDragEvent(kt.EVENT_ROW_DRAG_MOVE,o))}),t.onDragStop&&(o.onDragStop=function(o){t.onDragStop(e.draggingToRowDragEvent(kt.EVENT_ROW_DRAG_END,o))})),this.dragAndDropService.addDropTarget(qa({isInterestedIn:function(t){return t===br.RowDrag},getIconName:function(){return bs.ICON_MOVE},external:!0},o))}else O((function(){return console.warn("AG Grid: addRowDropZone - A container target needs to be provided")}),"add-drop-zone-empty-target")},e.prototype.getRowDropZone=function(t){var e=this,o=this.getContainer.bind(this),i=this.onDragEnter.bind(this),n=this.onDragLeave.bind(this),r=this.onDragging.bind(this),s=this.onDragStop.bind(this);return t?{getContainer:o,onDragEnter:t.onDragEnter?function(o){i(o),t.onDragEnter(e.draggingToRowDragEvent(kt.EVENT_ROW_DRAG_ENTER,o))}:i,onDragLeave:t.onDragLeave?function(o){n(o),t.onDragLeave(e.draggingToRowDragEvent(kt.EVENT_ROW_DRAG_LEAVE,o))}:n,onDragging:t.onDragging?function(o){r(o),t.onDragging(e.draggingToRowDragEvent(kt.EVENT_ROW_DRAG_MOVE,o))}:r,onDragStop:t.onDragStop?function(o){s(o),t.onDragStop(e.draggingToRowDragEvent(kt.EVENT_ROW_DRAG_END,o))}:s,fromGrid:!0}:{getContainer:o,onDragEnter:i,onDragLeave:n,onDragging:r,onDragStop:s,fromGrid:!0}},e.prototype.draggingToRowDragEvent=function(t,e){var o,i,n=this.mouseEventService.getNormalisedPosition(e).y,r=-1;switch(n>this.paginationProxy.getCurrentPageHeight()||(r=this.rowModel.getRowIndexAtPixel(n),o=this.rowModel.getRow(r)),e.vDirection){case Tr.Down:i="down";break;case Tr.Up:i="up";break;default:i=null}return{type:t,api:this.gridOptionsService.api,columnApi:this.gridOptionsService.columnApi,context:this.gridOptionsService.context,event:e.event,node:e.dragItem.rowNode,nodes:e.dragItem.rowNodes,overIndex:r,overNode:o,y:n,vDirection:i}},e.prototype.dispatchGridEvent=function(t,e){var o=this.draggingToRowDragEvent(t,e);this.eventService.dispatchEvent(o)},e.prototype.onDragLeave=function(t){this.dispatchGridEvent(kt.EVENT_ROW_DRAG_LEAVE,t),this.stopDragging(t),this.gridOptionsService.is("rowDragManaged")&&this.clearRowHighlight(),this.isFromThisGrid(t)&&(this.isMultiRowDrag=!1)},e.prototype.onDragStop=function(t){this.dispatchGridEvent(kt.EVENT_ROW_DRAG_END,t),this.stopDragging(t),!this.gridOptionsService.is("rowDragManaged")||!this.gridOptionsService.is("suppressMoveWhenRowDragging")&&this.isFromThisGrid(t)||this.isDropZoneWithinThisGrid(t)||this.moveRowAndClearHighlight(t)},e.prototype.stopDragging=function(t){this.autoScrollService.ensureCleared(),this.getRowNodes(t).forEach((function(t){t.setDragging(!1)}))},Qa([U("dragAndDropService")],e.prototype,"dragAndDropService",void 0),Qa([U("rowModel")],e.prototype,"rowModel",void 0),Qa([U("paginationProxy")],e.prototype,"paginationProxy",void 0),Qa([U("columnModel")],e.prototype,"columnModel",void 0),Qa([U("focusService")],e.prototype,"focusService",void 0),Qa([U("sortController")],e.prototype,"sortController",void 0),Qa([U("filterManager")],e.prototype,"filterManager",void 0),Qa([U("selectionService")],e.prototype,"selectionService",void 0),Qa([U("mouseEventService")],e.prototype,"mouseEventService",void 0),Qa([U("ctrlsService")],e.prototype,"ctrlsService",void 0),Qa([z("rangeService")],e.prototype,"rangeService",void 0),Qa([B],e.prototype,"postConstruct",null),e}(Mt),$a=function(){var t=function(e,o){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])})(e,o)};return function(e,o){function i(){this.constructor=e}t(e,o),e.prototype=null===o?Object.create(o):(i.prototype=o.prototype,new i)}}(),tl=function(t,e,o,i){var n,r=arguments.length,s=r<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,o):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,o,i);else for(var a=t.length-1;a>=0;a--)(n=t[a])&&(s=(r<3?n(s):r>3?n(e,o,s):n(e,o))||s);return r>3&&s&&Object.defineProperty(e,o,s),s};
231/**
232 * @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue
233 * @version v29.2.0
234 * @link https://www.ag-grid.com/
235 * @license MIT
236 */!function(t){t.ANIMATION_ON="ag-row-animation",t.ANIMATION_OFF="ag-row-no-animation"}(ka||(ka={}));var el,ol,il=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.stickyTopHeight=0,e}return $a(e,t),e.prototype.getScrollFeature=function(){return this.bodyScrollFeature},e.prototype.getBodyViewportElement=function(){return this.eBodyViewport},e.prototype.setComp=function(t,e,o,i,n,r){this.comp=t,this.eGridBody=e,this.eBodyViewport=o,this.eTop=i,this.eBottom=n,this.eStickyTop=r,this.setCellTextSelection(this.gridOptionsService.is("enableCellTextSelection")),this.createManagedBean(new Ba(this.comp)),this.bodyScrollFeature=this.createManagedBean(new za(this.eBodyViewport)),this.addRowDragListener(),this.setupRowAnimationCssClass(),this.addEventListeners(),this.addFocusListeners([i,o,n,r]),this.onGridColumnsChanged(),this.addBodyViewportListener(),this.setFloatingHeights(),this.disableBrowserDragging(),this.addStopEditingWhenGridLosesFocus(),this.ctrlsService.registerGridBodyCtrl(this)},e.prototype.getComp=function(){return this.comp},e.prototype.addEventListeners=function(){this.addManagedListener(this.eventService,kt.EVENT_GRID_COLUMNS_CHANGED,this.onGridColumnsChanged.bind(this)),this.addManagedListener(this.eventService,kt.EVENT_SCROLL_VISIBILITY_CHANGED,this.onScrollVisibilityChanged.bind(this)),this.addManagedListener(this.eventService,kt.EVENT_PINNED_ROW_DATA_CHANGED,this.onPinnedRowDataChanged.bind(this)),this.addManagedListener(this.eventService,kt.EVENT_HEADER_HEIGHT_CHANGED,this.onHeaderHeightChanged.bind(this))},e.prototype.addFocusListeners=function(t){var e=this;t.forEach((function(t){e.addManagedListener(t,"focusin",(function(e){var o=ei(e.target,"ag-root",t);t.classList.toggle("ag-has-focus",!o)})),e.addManagedListener(t,"focusout",(function(e){var o=e.target,i=e.relatedTarget,n=t.contains(i),r=ei(i,"ag-root",t);ei(o,"ag-root",t)||n&&!r||t.classList.remove("ag-has-focus")}))}))},e.prototype.setColumnMovingCss=function(t){this.comp.setColumnMovingCss("ag-column-moving",t)},e.prototype.setCellTextSelection=function(t){void 0===t&&(t=!1);var e=t?"ag-selectable":null;this.comp.setCellSelectableCss(e,t)},e.prototype.onScrollVisibilityChanged=function(){var t=this.scrollVisibleService.isVerticalScrollShowing();this.setVerticalScrollPaddingVisible(t),this.setStickyTopWidth(t);var e="calc(100% + "+((t&&this.gridOptionsService.getScrollbarWidth()||0)+(Io()?16:0))+"px)";this.comp.setBodyViewportWidth(e)},e.prototype.onGridColumnsChanged=function(){var t=this.columnModel.getAllGridColumns();this.comp.setColumnCount(t?t.length:0)},e.prototype.disableBrowserDragging=function(){this.addManagedListener(this.eGridBody,"dragstart",(function(t){if(t.target instanceof HTMLImageElement)return t.preventDefault(),!1}))},e.prototype.addStopEditingWhenGridLosesFocus=function(){var t=this;if(this.gridOptionsService.is("stopEditingWhenCellsLoseFocus")){var e=function(e){var i=e.relatedTarget;if(null!==_o(i)){var n=o.some((function(t){return t.contains(i)}))&&t.mouseEventService.isElementInThisGrid(i);if(!n){var r=t.popupService;n=r.getActivePopups().some((function(t){return t.contains(i)}))||r.isElementWithinCustomPopup(i)}n||t.rowRenderer.stopEditing()}else t.rowRenderer.stopEditing()},o=[this.eBodyViewport,this.eBottom,this.eTop,this.eStickyTop];o.forEach((function(o){return t.addManagedListener(o,"focusout",e)}))}},e.prototype.updateRowCount=function(){var t=this.headerNavigationService.getHeaderRowCount(),e=this.rowModel.isLastRowIndexKnown()?this.rowModel.getRowCount():-1,o=-1===e?-1:t+e;this.comp.setRowCount(o)},e.prototype.registerBodyViewportResizeListener=function(t){this.comp.registerBodyViewportResizeListener(t)},e.prototype.setVerticalScrollPaddingVisible=function(t){var e=t?"scroll":"hidden";this.comp.setPinnedTopBottomOverflowY(e)},e.prototype.isVerticalScrollShowing=function(){var t=this.gridOptionsService.is("alwaysShowVerticalScroll"),e=t?"ag-force-vertical-scroll":null,o=this.gridOptionsService.isDomLayout("normal");return this.comp.setAlwaysVerticalScrollClass(e,t),t||o&&Si(this.eBodyViewport)},e.prototype.setupRowAnimationCssClass=function(){var t=this,e=function(){var e=t.gridOptionsService.isAnimateRows()&&!t.rowContainerHeightService.isStretching(),o=e?ka.ANIMATION_ON:ka.ANIMATION_OFF;t.comp.setRowAnimationCssOnBodyViewport(o,e)};e(),this.addManagedListener(this.eventService,kt.EVENT_HEIGHT_SCALE_CHANGED,e),this.addManagedPropertyListener("animateRows",e)},e.prototype.getGridBodyElement=function(){return this.eGridBody},e.prototype.addBodyViewportListener=function(){var t=this,e=function(e,o,i){if(e||i){if(t.gridOptionsService.is("preventDefaultOnContextMenu"))(e||i).preventDefault();var n=(e||o).target;n!==t.eBodyViewport&&n!==t.ctrlsService.getCenterRowContainerCtrl().getViewportElement()||t.contextMenuFactory&&(e?t.contextMenuFactory.onContextMenu(e,null,null,null,null,t.eGridBody):i&&t.contextMenuFactory.onContextMenu(null,i,null,null,null,t.eGridBody))}};this.addManagedListener(this.eBodyViewport,"contextmenu",e),this.mockContextMenuForIPad(e),this.addManagedListener(this.eBodyViewport,"wheel",this.onBodyViewportWheel.bind(this)),this.addManagedListener(this.eStickyTop,"wheel",this.onStickyTopWheel.bind(this))},e.prototype.mockContextMenuForIPad=function(t){if(Po()){var e=new jr(this.eBodyViewport);this.addManagedListener(e,jr.EVENT_LONG_TAP,(function(e){t(void 0,e.touchStart,e.touchEvent)})),this.addDestroyFunc((function(){return e.destroy()}))}},e.prototype.onBodyViewportWheel=function(t){this.gridOptionsService.is("suppressScrollWhenPopupsAreOpen")&&this.popupService.hasAnchoredPopup()&&t.preventDefault()},e.prototype.onStickyTopWheel=function(t){t.preventDefault(),t.offsetY&&this.scrollVertically(t.deltaY)},e.prototype.getGui=function(){return this.eGridBody},e.prototype.scrollVertically=function(t){var e=this.eBodyViewport.scrollTop;return this.bodyScrollFeature.setVerticalScrollPosition(e+t),this.eBodyViewport.scrollTop-e},e.prototype.addRowDragListener=function(){this.rowDragFeature=this.createManagedBean(new Za(this.eBodyViewport)),this.dragAndDropService.addDropTarget(this.rowDragFeature)},e.prototype.getRowDragFeature=function(){return this.rowDragFeature},e.prototype.onPinnedRowDataChanged=function(){this.setFloatingHeights()},e.prototype.setFloatingHeights=function(){var t=this.pinnedRowModel,e=t.getPinnedTopTotalHeight();e&&(e+=1);var o=t.getPinnedBottomTotalHeight();o&&(o+=1),this.comp.setTopHeight(e),this.comp.setBottomHeight(o),this.comp.setTopDisplay(e?"inherit":"none"),this.comp.setBottomDisplay(o?"inherit":"none"),this.setStickyTopOffsetTop()},e.prototype.setStickyTopHeight=function(t){void 0===t&&(t=0),this.comp.setStickyTopHeight(t+"px"),this.stickyTopHeight=t},e.prototype.getStickyTopHeight=function(){return this.stickyTopHeight},e.prototype.setStickyTopWidth=function(t){if(t){var e=this.gridOptionsService.getScrollbarWidth();this.comp.setStickyTopWidth("calc(100% - "+e+"px)")}else this.comp.setStickyTopWidth("100%")},e.prototype.onHeaderHeightChanged=function(){this.setStickyTopOffsetTop()},e.prototype.setStickyTopOffsetTop=function(){var t=this.ctrlsService.getGridHeaderCtrl().getHeaderHeight(),e=this.pinnedRowModel.getPinnedTopTotalHeight(),o=0;t>0&&(o+=t+1),e>0&&(o+=e+1),this.comp.setStickyTopTop(o+"px")},e.prototype.sizeColumnsToFit=function(t,e){var o=this,i=this.isVerticalScrollShowing()?this.gridOptionsService.getScrollbarWidth():0,n=ni(this.eGridBody)-i;n>0?this.columnModel.sizeColumnsToFit(n,"sizeColumnsToFit",!1,t):void 0===e?window.setTimeout((function(){o.sizeColumnsToFit(t,100)}),0):100===e?window.setTimeout((function(){o.sizeColumnsToFit(t,500)}),100):500===e?window.setTimeout((function(){o.sizeColumnsToFit(t,-1)}),500):console.warn("AG Grid: tried to call sizeColumnsToFit() but the grid is coming back with zero width, maybe the grid is not visible yet on the screen?")},e.prototype.addScrollEventListener=function(t){this.eBodyViewport.addEventListener("scroll",t,{passive:!0})},e.prototype.removeScrollEventListener=function(t){this.eBodyViewport.removeEventListener("scroll",t)},tl([U("rowContainerHeightService")],e.prototype,"rowContainerHeightService",void 0),tl([U("ctrlsService")],e.prototype,"ctrlsService",void 0),tl([U("columnModel")],e.prototype,"columnModel",void 0),tl([U("scrollVisibleService")],e.prototype,"scrollVisibleService",void 0),tl([z("contextMenuFactory")],e.prototype,"contextMenuFactory",void 0),tl([U("headerNavigationService")],e.prototype,"headerNavigationService",void 0),tl([U("dragAndDropService")],e.prototype,"dragAndDropService",void 0),tl([U("pinnedRowModel")],e.prototype,"pinnedRowModel",void 0),tl([U("rowRenderer")],e.prototype,"rowRenderer",void 0),tl([U("popupService")],e.prototype,"popupService",void 0),tl([U("mouseEventService")],e.prototype,"mouseEventService",void 0),tl([U("rowModel")],e.prototype,"rowModel",void 0),e}(Mt);!function(t){t[t.FILL=0]="FILL",t[t.RANGE=1]="RANGE"}(el||(el={})),function(t){t[t.VALUE=0]="VALUE",t[t.DIMENSION=1]="DIMENSION"}(ol||(ol={}));
237/**
238 * @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue
239 * @version v29.2.0
240 * @link https://www.ag-grid.com/
241 * @license MIT
242 */
243var nl,rl=function(){function t(t,e){this.beans=t,this.cellCtrl=e}return t.prototype.setComp=function(t,e){this.cellComp=t,this.eGui=e,this.onRangeSelectionChanged()},t.prototype.onRangeSelectionChanged=function(){this.cellComp&&(this.rangeCount=this.beans.rangeService.getCellRangeCount(this.cellCtrl.getCellPosition()),this.hasChartRange=this.getHasChartRange(),this.cellComp.addOrRemoveCssClass("ag-cell-range-selected",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),co(this.eGui,this.rangeCount>0||void 0),this.cellComp.addOrRemoveCssClass("ag-cell-range-single-cell",this.isSingleCell()),this.updateRangeBorders(),this.refreshHandle())},t.prototype.updateRangeBorders=function(){var t=this.getRangeBorders(),e=this.isSingleCell(),o=!e&&t.top,i=!e&&t.right,n=!e&&t.bottom,r=!e&&t.left;this.cellComp.addOrRemoveCssClass("ag-cell-range-top",o),this.cellComp.addOrRemoveCssClass("ag-cell-range-right",i),this.cellComp.addOrRemoveCssClass("ag-cell-range-bottom",n),this.cellComp.addOrRemoveCssClass("ag-cell-range-left",r)},t.prototype.isSingleCell=function(){var t=this.beans.rangeService;return 1===this.rangeCount&&t&&!t.isMoreThanOneCell()},t.prototype.getHasChartRange=function(){var t=this.beans.rangeService;if(!this.rangeCount||!t)return!1;var e=t.getCellRanges();return e.length>0&&e.every((function(t){return vt([ol.DIMENSION,ol.VALUE],t.type)}))},t.prototype.updateRangeBordersIfRangeCount=function(){this.rangeCount>0&&(this.updateRangeBorders(),this.refreshHandle())},t.prototype.getRangeBorders=function(){var t,e,o=this,i=this.beans.gridOptionsService.is("enableRtl"),n=!1,r=!1,s=!1,a=!1,l=this.cellCtrl.getCellPosition().column,u=this.beans,c=u.rangeService,p=u.columnModel;i?(t=p.getDisplayedColAfter(l),e=p.getDisplayedColBefore(l)):(t=p.getDisplayedColBefore(l),e=p.getDisplayedColAfter(l));var d=c.getCellRanges().filter((function(t){return c.isCellInSpecificRange(o.cellCtrl.getCellPosition(),t)}));t||(a=!0),e||(r=!0);for(var h=0;h<d.length&&!(n&&r&&s&&a);h++){var f=d[h],g=c.getRangeStartRow(f),v=c.getRangeEndRow(f);!n&&this.beans.rowPositionUtils.sameRow(g,this.cellCtrl.getCellPosition())&&(n=!0),!s&&this.beans.rowPositionUtils.sameRow(v,this.cellCtrl.getCellPosition())&&(s=!0),!a&&t&&f.columns.indexOf(t)<0&&(a=!0),!r&&e&&f.columns.indexOf(e)<0&&(r=!0)}return{top:n,right:r,bottom:s,left:a}},t.prototype.refreshHandle=function(){if(this.beans.rangeService){var t=this.shouldHaveSelectionHandle();this.selectionHandle&&!t&&(this.selectionHandle=this.beans.context.destroyBean(this.selectionHandle)),t&&this.addSelectionHandle(),this.cellComp.addOrRemoveCssClass("ag-cell-range-handle",!!this.selectionHandle)}},t.prototype.shouldHaveSelectionHandle=function(){var t=this.beans,e=t.gridOptionsService,o=t.rangeService,i=o.getCellRanges(),n=i.length;if(this.rangeCount<1||n<1)return!1;var r=ut(i),s=this.cellCtrl.getCellPosition(),a=e.is("enableFillHandle")&&!this.cellCtrl.isSuppressFillHandle(),l=e.is("enableRangeHandle"),u=1===n&&!this.cellCtrl.isEditing()&&(a||l);if(this.hasChartRange){var c=i[0].type===ol.DIMENSION&&o.isCellInSpecificRange(s,i[0]);this.cellComp.addOrRemoveCssClass("ag-cell-range-chart-category",c),u=r.type===ol.VALUE}return u&&null!=r.endRow&&o.isContiguousRange(r)&&o.isBottomRightCell(r,s)},t.prototype.addSelectionHandle=function(){var t=this.beans,e=t.gridOptionsService,i=ut(t.rangeService.getCellRanges()).type,n=e.is("enableFillHandle")&&o(i)?el.FILL:el.RANGE;this.selectionHandle&&this.selectionHandle.getType()!==n&&(this.selectionHandle=this.beans.context.destroyBean(this.selectionHandle)),this.selectionHandle||(this.selectionHandle=this.beans.selectionHandleFactory.createSelectionHandle(n)),this.selectionHandle.refresh(this.cellCtrl)},t.prototype.destroy=function(){this.beans.context.destroyBean(this.selectionHandle)},t}(),sl=function(){var t=function(e,o){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])})(e,o)};return function(e,o){function i(){this.constructor=e}t(e,o),e.prototype=null===o?Object.create(o):(i.prototype=o.prototype,new i)}}(),al=function(t){function e(e,o){var i=t.call(this)||this;return i.cellCtrl=e,i.beans=o,i.column=e.getColumn(),i.rowNode=e.getRowNode(),i.setupColSpan(),i.setupRowSpan(),i}return sl(e,t),e.prototype.setupRowSpan=function(){this.rowSpan=this.column.getRowSpan(this.rowNode)},e.prototype.setComp=function(t){this.eGui=t,this.onLeftChanged(),this.onWidthChanged(),this.applyRowSpan()},e.prototype.onDisplayColumnsChanged=function(){var t=this.getColSpanningList();ct(this.colsSpanning,t)||(this.colsSpanning=t,this.onWidthChanged(),this.onLeftChanged())},e.prototype.setupColSpan=function(){null!=this.column.getColDef().colSpan&&(this.colsSpanning=this.getColSpanningList(),this.addManagedListener(this.beans.eventService,kt.EVENT_DISPLAYED_COLUMNS_CHANGED,this.onDisplayColumnsChanged.bind(this)),this.addManagedListener(this.beans.eventService,kt.EVENT_DISPLAYED_COLUMNS_WIDTH_CHANGED,this.onWidthChanged.bind(this)))},e.prototype.onWidthChanged=function(){if(this.eGui){var t=this.getCellWidth();this.eGui.style.width=t+"px"}},e.prototype.getCellWidth=function(){return this.colsSpanning?this.colsSpanning.reduce((function(t,e){return t+e.getActualWidth()}),0):this.column.getActualWidth()},e.prototype.getColSpanningList=function(){var t=this.column.getColSpan(this.rowNode),e=[];if(1===t)e.push(this.column);else for(var i=this.column,n=this.column.getPinned(),r=0;i&&r<t&&(e.push(i),(i=this.beans.columnModel.getDisplayedColAfter(i))&&!o(i))&&n===i.getPinned();r++);return e},e.prototype.onLeftChanged=function(){if(this.eGui){var t=this.modifyLeftForPrintLayout(this.getCellLeft());this.eGui.style.left=t+"px"}},e.prototype.getCellLeft=function(){return(this.beans.gridOptionsService.is("enableRtl")&&this.colsSpanning?ut(this.colsSpanning):this.column).getLeft()},e.prototype.modifyLeftForPrintLayout=function(t){if(!this.cellCtrl.isPrintLayout()||"left"===this.column.getPinned())return t;var e=this.beans.columnModel.getDisplayedColumnsLeftWidth();return"right"===this.column.getPinned()?e+this.beans.columnModel.getBodyContainerWidth()+(t||0):e+(t||0)},e.prototype.applyRowSpan=function(){if(1!==this.rowSpan){var t=this.beans.gridOptionsService.getRowHeightAsNumber()*this.rowSpan;this.eGui.style.height=t+"px",this.eGui.style.zIndex="1"}},e.prototype.destroy=function(){t.prototype.destroy.call(this)},e}(Mt),ll=function(){var t=function(e,o){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])})(e,o)};return function(e,o){function i(){this.constructor=e}t(e,o),e.prototype=null===o?Object.create(o):(i.prototype=o.prototype,new i)}}(),ul=function(t){function e(e,o){var i=t.call(this)||this;return i.staticClasses=[],i.cellCtrl=e,i.beans=o,i.column=e.getColumn(),i.rowNode=e.getRowNode(),i}return ll(e,t),e.prototype.setComp=function(t){this.cellComp=t,this.applyUserStyles(),this.applyCellClassRules(),this.applyClassesFromColDef()},e.prototype.applyCellClassRules=function(){var t=this,e=this.column.getColDef(),o={value:this.cellCtrl.getValue(),data:this.rowNode.data,node:this.rowNode,colDef:e,column:this.column,rowIndex:this.rowNode.rowIndex,api:this.beans.gridOptionsService.api,columnApi:this.beans.gridOptionsService.columnApi,context:this.beans.gridOptionsService.context};this.beans.stylingService.processClassRules(e.cellClassRules,o,(function(e){return t.cellComp.addOrRemoveCssClass(e,!0)}),(function(e){return t.cellComp.addOrRemoveCssClass(e,!1)}))},e.prototype.applyUserStyles=function(){var t=this.column.getColDef();if(t.cellStyle){var e;if("function"==typeof t.cellStyle){var o={column:this.column,value:this.cellCtrl.getValue(),colDef:t,data:this.rowNode.data,node:this.rowNode,rowIndex:this.rowNode.rowIndex,api:this.beans.gridOptionsService.api,columnApi:this.beans.gridOptionsService.columnApi,context:this.beans.gridOptionsService.context};e=(0,t.cellStyle)(o)}else e=t.cellStyle;e&&this.cellComp.setUserStyles(e)}},e.prototype.applyClassesFromColDef=function(){var t=this,e=this.column.getColDef(),o={value:this.cellCtrl.getValue(),data:this.rowNode.data,node:this.rowNode,column:this.column,colDef:e,rowIndex:this.rowNode.rowIndex,api:this.beans.gridOptionsService.api,columnApi:this.beans.gridOptionsService.columnApi,context:this.beans.gridOptionsService.context};this.staticClasses.length&&this.staticClasses.forEach((function(e){return t.cellComp.addOrRemoveCssClass(e,!1)})),this.staticClasses=this.beans.stylingService.getStaticCellClasses(e,o),this.staticClasses.length&&this.staticClasses.forEach((function(e){return t.cellComp.addOrRemoveCssClass(e,!0)}))},e.prototype.destroy=function(){t.prototype.destroy.call(this)},e}(Mt),cl=function(){var t=function(e,o){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])})(e,o)};return function(e,o){function i(){this.constructor=e}t(e,o),e.prototype=null===o?Object.create(o):(i.prototype=o.prototype,new i)}}(),pl=function(t){function e(e,o){var i=t.call(this)||this;return i.ctrl=e,i.beans=o,i}return cl(e,t),e.prototype.setComp=function(t){this.comp=t,this.setupTooltip()},e.prototype.setupTooltip=function(){this.browserTooltips=this.beans.gridOptionsService.is("enableBrowserTooltips"),this.updateTooltipText(),this.browserTooltips?this.comp.setTitle(null!=this.tooltip?this.tooltip:void 0):this.createTooltipFeatureIfNeeded()},e.prototype.updateTooltipText=function(){this.tooltip=this.ctrl.getTooltipValue()},e.prototype.createTooltipFeatureIfNeeded=function(){var t=this;if(null==this.genericTooltipFeature){var e={getTooltipParams:function(){return t.getTooltipParams()},getGui:function(){return t.ctrl.getGui()}};this.genericTooltipFeature=this.createManagedBean(new rn(e),this.beans.context)}},e.prototype.refreshToolTip=function(){this.updateTooltipText(),this.browserTooltips&&this.comp.setTitle(null!=this.tooltip?this.tooltip:void 0)},e.prototype.getTooltipParams=function(){var t=this.ctrl,e=t.getColumn?t.getColumn():void 0,o=t.getColDef?t.getColDef():void 0,i=t.getRowNode?t.getRowNode():void 0;return{location:t.getLocation(),colDef:o,column:e,rowIndex:t.getRowIndex?t.getRowIndex():void 0,node:i,data:i?i.data:void 0,value:this.getTooltipText(),valueFormatted:t.getValueFormatted?t.getValueFormatted():void 0}},e.prototype.getTooltipText=function(){return this.tooltip},e.prototype.destroy=function(){t.prototype.destroy.call(this)},e}(Mt),dl=function(t,e,o,i){var n,r=arguments.length,s=r<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,o):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,o,i);else for(var a=t.length-1;a>=0;a--)(n=t[a])&&(s=(r<3?n(s):r>3?n(e,o,s):n(e,o))||s);return r>3&&s&&Object.defineProperty(e,o,s),s},hl=function(){function t(){}return t.prototype.postConstruct=function(){this.doingMasterDetail=this.gridOptionsService.isMasterDetail(),this.gridOptionsService.isRowModelType("clientSide")&&(this.clientSideRowModel=this.rowModel),this.gridOptionsService.isRowModelType("serverSide")&&(this.serverSideRowModel=this.rowModel)},dl([U("resizeObserverService")],t.prototype,"resizeObserverService",void 0),dl([U("paginationProxy")],t.prototype,"paginationProxy",void 0),dl([U("context")],t.prototype,"context",void 0),dl([U("columnApi")],t.prototype,"columnApi",void 0),dl([U("gridApi")],t.prototype,"gridApi",void 0),dl([U("gridOptionsService")],t.prototype,"gridOptionsService",void 0),dl([U("expressionService")],t.prototype,"expressionService",void 0),dl([U("environment")],t.prototype,"environment",void 0),dl([U("rowRenderer")],t.prototype,"rowRenderer",void 0),dl([U("templateService")],t.prototype,"templateService",void 0),dl([U("valueService")],t.prototype,"valueService",void 0),dl([U("eventService")],t.prototype,"eventService",void 0),dl([U("columnModel")],t.prototype,"columnModel",void 0),dl([U("headerNavigationService")],t.prototype,"headerNavigationService",void 0),dl([U("navigationService")],t.prototype,"navigationService",void 0),dl([U("columnAnimationService")],t.prototype,"columnAnimationService",void 0),dl([z("rangeService")],t.prototype,"rangeService",void 0),dl([U("focusService")],t.prototype,"focusService",void 0),dl([z("contextMenuFactory")],t.prototype,"contextMenuFactory",void 0),dl([U("popupService")],t.prototype,"popupService",void 0),dl([U("valueFormatterService")],t.prototype,"valueFormatterService",void 0),dl([U("stylingService")],t.prototype,"stylingService",void 0),dl([U("columnHoverService")],t.prototype,"columnHoverService",void 0),dl([U("userComponentFactory")],t.prototype,"userComponentFactory",void 0),dl([U("userComponentRegistry")],t.prototype,"userComponentRegistry",void 0),dl([U("animationFrameService")],t.prototype,"animationFrameService",void 0),dl([U("dragService")],t.prototype,"dragService",void 0),dl([U("dragAndDropService")],t.prototype,"dragAndDropService",void 0),dl([U("sortController")],t.prototype,"sortController",void 0),dl([U("filterManager")],t.prototype,"filterManager",void 0),dl([U("rowContainerHeightService")],t.prototype,"rowContainerHeightService",void 0),dl([U("frameworkOverrides")],t.prototype,"frameworkOverrides",void 0),dl([U("cellPositionUtils")],t.prototype,"cellPositionUtils",void 0),dl([U("rowPositionUtils")],t.prototype,"rowPositionUtils",void 0),dl([U("selectionService")],t.prototype,"selectionService",void 0),dl([z("selectionHandleFactory")],t.prototype,"selectionHandleFactory",void 0),dl([U("rowCssClassCalculator")],t.prototype,"rowCssClassCalculator",void 0),dl([U("rowModel")],t.prototype,"rowModel",void 0),dl([U("ctrlsService")],t.prototype,"ctrlsService",void 0),dl([U("ctrlsFactory")],t.prototype,"ctrlsFactory",void 0),dl([U("agStackComponentsRegistry")],t.prototype,"agStackComponentsRegistry",void 0),dl([U("valueCache")],t.prototype,"valueCache",void 0),dl([U("rowNodeEventThrottle")],t.prototype,"rowNodeEventThrottle",void 0),dl([U("localeService")],t.prototype,"localeService",void 0),dl([B],t.prototype,"postConstruct",null),t=dl([W("beans")],t)}(),fl=function(){var t=function(e,o){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])})(e,o)};return function(e,o){function i(){this.constructor=e}t(e,o),e.prototype=null===o?Object.create(o):(i.prototype=o.prototype,new i)}}(),gl=function(t){function e(e,o,i){var n=t.call(this)||this;return n.cellCtrl=e,n.beans=o,n.column=i,n}return fl(e,t),e.prototype.onMouseEvent=function(t,e){if(!Rt(e))switch(t){case"click":this.onCellClicked(e);break;case"mousedown":case"touchstart":this.onMouseDown(e);break;case"dblclick":this.onCellDoubleClicked(e);break;case"mouseout":this.onMouseOut(e);break;case"mouseover":this.onMouseOver(e)}},e.prototype.onCellClicked=function(t){if(this.isDoubleClickOnIPad())return this.onCellDoubleClicked(t),void t.preventDefault();var e=this.beans,o=e.eventService,i=e.rangeService,n=e.gridOptionsService,r=t.ctrlKey||t.metaKey;i&&r&&i.getCellRangeCount(this.cellCtrl.getCellPosition())>1&&i.intersectLastRange(!0);var s=this.cellCtrl.createEvent(t,kt.EVENT_CELL_CLICKED);o.dispatchEvent(s);var a=this.column.getColDef();a.onCellClicked&&window.setTimeout((function(){return a.onCellClicked(s)}),0),(n.is("singleClickEdit")||a.singleClickEdit)&&!n.is("suppressClickEdit")&&this.cellCtrl.startRowOrCellEdit()},e.prototype.isDoubleClickOnIPad=function(){if(!Po()||bt("dblclick"))return!1;var t=(new Date).getTime(),e=t-this.lastIPadMouseClickEvent<200;return this.lastIPadMouseClickEvent=t,e},e.prototype.onCellDoubleClicked=function(t){var e=this.column.getColDef(),o=this.cellCtrl.createEvent(t,kt.EVENT_CELL_DOUBLE_CLICKED);this.beans.eventService.dispatchEvent(o),"function"==typeof e.onCellDoubleClicked&&window.setTimeout((function(){return e.onCellDoubleClicked(o)}),0),!this.beans.gridOptionsService.is("singleClickEdit")&&!this.beans.gridOptionsService.is("suppressClickEdit")&&this.cellCtrl.startRowOrCellEdit(null,null,t)},e.prototype.onMouseDown=function(t){var e=t.ctrlKey,o=t.metaKey,i=t.shiftKey,n=t.target,r=this.beans,s=r.eventService,a=r.rangeService;if(!this.isRightClickInExistingRange(t)){var l=a&&0!=a.getCellRanges().length;if(!i||!l){var u=Eo()&&!this.cellCtrl.isEditing()&&!Jo(n);this.cellCtrl.focusCell(u)}if(i&&l&&t.preventDefault(),!this.containsWidget(n)){if(a){var c=this.cellCtrl.getCellPosition();if(i)a.extendLatestRangeToCell(c);else{var p=e||o;a.setRangeToCell(c,p)}}s.dispatchEvent(this.cellCtrl.createEvent(t,kt.EVENT_CELL_MOUSE_DOWN))}}},e.prototype.isRightClickInExistingRange=function(t){var e=this.beans.rangeService;if(e&&(e.isCellInAnyRange(this.cellCtrl.getCellPosition())&&2===t.button))return!0;return!1},e.prototype.containsWidget=function(t){return ei(t,"ag-selection-checkbox",3)},e.prototype.onMouseOut=function(t){if(!this.mouseStayingInsideCell(t)){var e=this.cellCtrl.createEvent(t,kt.EVENT_CELL_MOUSE_OUT);this.beans.eventService.dispatchEvent(e),this.beans.columnHoverService.clearMouseOver()}},e.prototype.onMouseOver=function(t){if(!this.mouseStayingInsideCell(t)){var e=this.cellCtrl.createEvent(t,kt.EVENT_CELL_MOUSE_OVER);this.beans.eventService.dispatchEvent(e),this.beans.columnHoverService.setMouseOver([this.column])}},e.prototype.mouseStayingInsideCell=function(t){if(!t.target||!t.relatedTarget)return!1;var e=this.cellCtrl.getGui(),o=e.contains(t.target),i=e.contains(t.relatedTarget);return o&&i},e.prototype.destroy=function(){},e}(hl),vl=function(){var t=function(e,o){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])})(e,o)};return function(e,o){function i(){this.constructor=e}t(e,o),e.prototype=null===o?Object.create(o):(i.prototype=o.prototype,new i)}}(),yl=function(t){function e(e,o,i,n,r){var s=t.call(this)||this;return s.cellCtrl=e,s.beans=o,s.rowNode=n,s.rowCtrl=r,s}return vl(e,t),e.prototype.setComp=function(t){this.eGui=t},e.prototype.onKeyDown=function(t){var e=t.key;switch(e){case Gi.ENTER:this.onEnterKeyDown(t);break;case Gi.F2:this.onF2KeyDown(t);break;case Gi.ESCAPE:this.onEscapeKeyDown(t);break;case Gi.TAB:this.onTabKeyDown(t);break;case Gi.BACKSPACE:case Gi.DELETE:this.onBackspaceOrDeleteKeyPressed(e,t);break;case Gi.DOWN:case Gi.UP:case Gi.RIGHT:case Gi.LEFT:this.onNavigationKeyPressed(t,e)}},e.prototype.onNavigationKeyPressed=function(t,e){this.cellCtrl.isEditing()||(t.shiftKey&&this.cellCtrl.isRangeSelectionEnabled()?this.onShiftRangeSelect(t):this.beans.navigationService.navigateToNextCell(t,e,this.cellCtrl.getCellPosition(),!0),t.preventDefault())},e.prototype.onShiftRangeSelect=function(t){if(this.beans.rangeService){var e=this.beans.rangeService.extendLatestRangeInDirection(t);e&&this.beans.navigationService.ensureCellVisible(e)}},e.prototype.onTabKeyDown=function(t){this.beans.navigationService.onTabKeyDown(this.cellCtrl,t)},e.prototype.onBackspaceOrDeleteKeyPressed=function(t,e){var o=this.cellCtrl,i=this.beans,n=this.rowNode,r=i.gridOptionsService,s=i.rangeService,a=i.eventService;o.isEditing()||(a.dispatchEvent({type:kt.EVENT_KEY_SHORTCUT_CHANGED_CELL_START}),Bi(t,r.is("enableCellEditingOnBackspace"))?s&&r.isEnableRangeSelection()?s.clearCellRangeCellValues():o.isCellEditable()&&n.setDataValue(o.getColumn(),null,"cellClear"):o.startRowOrCellEdit(t,void 0,e),a.dispatchEvent({type:kt.EVENT_KEY_SHORTCUT_CHANGED_CELL_END}))},e.prototype.onEnterKeyDown=function(t){this.cellCtrl.isEditing()||this.rowCtrl.isEditing()?this.cellCtrl.stopEditingAndFocus():this.beans.gridOptionsService.is("enterMovesDown")?this.beans.navigationService.navigateToNextCell(null,Gi.DOWN,this.cellCtrl.getCellPosition(),!1):(this.cellCtrl.startRowOrCellEdit(Gi.ENTER,void 0,t),this.cellCtrl.isEditing()&&t.preventDefault())},e.prototype.onF2KeyDown=function(t){this.cellCtrl.isEditing()||this.cellCtrl.startRowOrCellEdit(Gi.F2,void 0,t)},e.prototype.onEscapeKeyDown=function(t){this.cellCtrl.isEditing()&&(this.cellCtrl.stopRowOrCellEdit(!0),this.cellCtrl.focusCell(!0))},e.prototype.onKeyPress=function(t){if(!(t.target!==this.eGui)&&!this.cellCtrl.isEditing()){var e=String.fromCharCode(t.charCode);" "===e?this.onSpaceKeyPressed(t):xi(t)&&(this.cellCtrl.startRowOrCellEdit(null,e,t),t.preventDefault())}},e.prototype.onSpaceKeyPressed=function(t){var e=this.beans.gridOptionsService;if(!this.cellCtrl.isEditing()&&e.isRowSelection()){var o=this.rowNode.isSelected(),i=!o;if(i||!e.is("suppressRowDeselection")){var n=this.beans.gridOptionsService.is("groupSelectsFiltered"),r=this.rowNode.setSelectedParams({newValue:i,rangeSelect:t.shiftKey,groupSelectsFiltered:n,event:t,source:"spacePressed"});void 0===o&&0===r&&this.rowNode.setSelectedParams({newValue:!1,rangeSelect:t.shiftKey,groupSelectsFiltered:n,event:t,source:"spacePressed"})}}t.preventDefault()},e.prototype.destroy=function(){t.prototype.destroy.call(this)},e}(Mt),ml=function(){var t=function(e,o){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])})(e,o)};return function(e,o){function i(){this.constructor=e}t(e,o),e.prototype=null===o?Object.create(o):(i.prototype=o.prototype,new i)}}(),Cl=function(t,e,o,i){var n,r=arguments.length,s=r<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,o):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,o,i);else for(var a=t.length-1;a>=0;a--)(n=t[a])&&(s=(r<3?n(s):r>3?n(e,o,s):n(e,o))||s);return r>3&&s&&Object.defineProperty(e,o,s),s},wl=function(t){function e(e,o,i,n){var r=t.call(this,'<div class="ag-drag-handle ag-row-drag" draggable="true"></div>')||this;return r.rowNode=e,r.column=o,r.beans=i,r.eCell=n,r}return ml(e,t),e.prototype.postConstruct=function(){this.getGui().appendChild(Mi("rowDrag",this.beans.gridOptionsService,null)),this.addGuiEventListener("mousedown",(function(t){t.stopPropagation()})),this.addDragSource(),this.checkVisibility()},e.prototype.addDragSource=function(){this.addGuiEventListener("dragstart",this.onDragStart.bind(this))},e.prototype.onDragStart=function(t){var e=this,o=this.column.getColDef().dndSourceOnRowDrag;t.dataTransfer.setDragImage(this.eCell,0,0);o?o({rowNode:this.rowNode,dragEvent:t,api:this.gridOptionsService.api,columnApi:this.gridOptionsService.columnApi,context:this.gridOptionsService.context}):function(){try{var o=JSON.stringify(e.rowNode.data);t.dataTransfer.setData("application/json",o),t.dataTransfer.setData("text/plain",o)}catch(t){}}()},e.prototype.checkVisibility=function(){var t=this.column.isDndSource(this.rowNode);this.setDisplayed(t)},Cl([B],e.prototype,"postConstruct",null),e}(cn),Sl=function(){var t=function(e,o){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])})(e,o)};return function(e,o){function i(){this.constructor=e}t(e,o),e.prototype=null===o?Object.create(o):(i.prototype=o.prototype,new i)}}(),El=function(){return(El=Object.assign||function(t){for(var e,o=1,i=arguments.length;o<i;o++)for(var n in e=arguments[o])Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t}).apply(this,arguments)},Rl=0,Ol=function(o){function i(t,e,i,n){var r=o.call(this)||this;return r.cellRangeFeature=null,r.cellPositionFeature=null,r.cellCustomStyleFeature=null,r.tooltipFeature=null,r.cellMouseListenerFeature=null,r.cellKeyboardListenerFeature=null,r.suppressRefreshCell=!1,r.onCellCompAttachedFuncs=[],r.column=t,r.rowNode=e,r.beans=i,r.rowCtrl=n,r.instanceId=t.getId()+"-"+Rl++,r.createCellPosition(),r.addFeatures(),r}return Sl(i,o),i.prototype.addFeatures=function(){var t=this;this.cellPositionFeature=new al(this,this.beans),this.addDestroyFunc((function(){var e;null===(e=t.cellPositionFeature)||void 0===e||e.destroy(),t.cellPositionFeature=null})),this.cellCustomStyleFeature=new ul(this,this.beans),this.addDestroyFunc((function(){var e;null===(e=t.cellCustomStyleFeature)||void 0===e||e.destroy(),t.cellCustomStyleFeature=null})),this.cellMouseListenerFeature=new gl(this,this.beans,this.column),this.addDestroyFunc((function(){var e;null===(e=t.cellMouseListenerFeature)||void 0===e||e.destroy(),t.cellMouseListenerFeature=null})),this.cellKeyboardListenerFeature=new yl(this,this.beans,this.column,this.rowNode,this.rowCtrl),this.addDestroyFunc((function(){var e;null===(e=t.cellKeyboardListenerFeature)||void 0===e||e.destroy(),t.cellKeyboardListenerFeature=null})),this.beans.rangeService&&this.beans.gridOptionsService.isEnableRangeSelection()&&(this.cellRangeFeature=new rl(this.beans,this),this.addDestroyFunc((function(){var e;null===(e=t.cellRangeFeature)||void 0===e||e.destroy(),t.cellRangeFeature=null}))),this.addTooltipFeature()},i.prototype.addTooltipFeature=function(){var t=this,o={getColumn:function(){return t.column},getColDef:function(){return t.column.getColDef()},getRowIndex:function(){return t.cellPosition.rowIndex},getRowNode:function(){return t.rowNode},getGui:function(){return t.getGui()},getLocation:function(){return"cell"},getTooltipValue:function(){var o=t.column.getColDef(),i=t.rowNode.data;if(o.tooltipField&&e(i))return C(i,o.tooltipField,t.column.isTooltipFieldContainsDots());var n=o.tooltipValueGetter;return n?n({location:"cell",api:t.beans.gridOptionsService.api,columnApi:t.beans.gridOptionsService.columnApi,context:t.beans.gridOptionsService.context,colDef:t.column.getColDef(),column:t.column,rowIndex:t.cellPosition.rowIndex,node:t.rowNode,data:t.rowNode.data,value:t.value,valueFormatted:t.valueFormatted}):null},getValueFormatted:function(){return t.valueFormatted}};this.tooltipFeature=new pl(o,this.beans),this.addDestroyFunc((function(){var e;null===(e=t.tooltipFeature)||void 0===e||e.destroy(),t.tooltipFeature=null}))},i.prototype.setComp=function(t,e,o,i,n){var r,s,a,l;this.cellComp=t,this.eGui=e,this.printLayout=i,this.updateAndFormatValue(!0),this.addDomData(),this.onCellFocused(),this.applyStaticCssClasses(),this.setWrapText(),this.onFirstRightPinnedChanged(),this.onLastLeftPinnedChanged(),this.onColumnHover(),this.setupControlComps(),o&&this.setupAutoHeight(o),this.setAriaColIndex(),this.beans.gridOptionsService.is("suppressCellFocus")||this.cellComp.setTabIndex(-1);var u=fe(this.column.getId());this.cellComp.setColId(u),this.cellComp.setRole("gridcell"),null===(r=this.cellPositionFeature)||void 0===r||r.setComp(e),null===(s=this.cellCustomStyleFeature)||void 0===s||s.setComp(t),null===(a=this.tooltipFeature)||void 0===a||a.setComp(t),null===(l=this.cellKeyboardListenerFeature)||void 0===l||l.setComp(this.eGui),this.cellRangeFeature&&this.cellRangeFeature.setComp(t,e),n&&this.isCellEditable()?this.startEditing():this.showValue(),this.onCellCompAttachedFuncs.length&&(this.onCellCompAttachedFuncs.forEach((function(t){return t()})),this.onCellCompAttachedFuncs=[])},i.prototype.setupAutoHeight=function(t){var e=this;if(this.column.isAutoHeight()){var o=t.parentElement,i=this.beans.gridOptionsService.getRowHeightForNode(this.rowNode).height,n=function(r){if(!e.editing&&e.isAlive()){var s=oi(o),a=s.paddingTop+s.paddingBottom+s.borderBottomWidth+s.borderTopWidth,l=t.offsetHeight+a;if(r<5){var u=e.beans.gridOptionsService.getDocument();if(!u||!u.contains(t)||0==l)return void e.beans.frameworkOverrides.setTimeout((function(){return n(r+1)}),0)}var c=Math.max(l,i);e.rowNode.setRowAutoHeight(c,e.column)}},r=function(){return n(0)};r();var s=this.beans.resizeObserverService.observeResize(t,r);this.addDestroyFunc((function(){s(),e.rowNode.setRowAutoHeight(void 0,e.column)}))}},i.prototype.getInstanceId=function(){return this.instanceId},i.prototype.showValue=function(t){void 0===t&&(t=!1);var e=null!=this.valueFormatted?this.valueFormatted:this.value,o=this.createCellRendererParams(),i=this.beans.userComponentFactory.getCellRendererDetails(this.column.getColDef(),o);this.cellComp.setRenderDetails(i,e,t),this.refreshHandle()},i.prototype.setupControlComps=function(){var t=this.column.getColDef();this.includeSelection=this.isIncludeControl(t.checkboxSelection),this.includeRowDrag=this.isIncludeControl(t.rowDrag),this.includeDndSource=this.isIncludeControl(t.dndSource),this.cellComp.setIncludeSelection(this.includeSelection),this.cellComp.setIncludeDndSource(this.includeDndSource),this.cellComp.setIncludeRowDrag(this.includeRowDrag)},i.prototype.isForceWrapper=function(){return this.beans.gridOptionsService.is("enableCellTextSelection")||this.column.isAutoHeight()},i.prototype.isIncludeControl=function(t){return!(null!=this.rowNode.rowPinned)&&("function"==typeof t||!0===t)},i.prototype.refreshShouldDestroy=function(){var t=this.column.getColDef(),e=this.includeSelection!=this.isIncludeControl(t.checkboxSelection),o=this.includeRowDrag!=this.isIncludeControl(t.rowDrag),i=this.includeDndSource!=this.isIncludeControl(t.dndSource);return e||o||i},i.prototype.startEditing=function(t,e,o,i){var n=this;if(void 0===t&&(t=null),void 0===e&&(e=null),void 0===o&&(o=!1),void 0===i&&(i=null),this.isCellEditable()&&!this.editing)if(this.cellComp){var r=this.createCellEditorParams(t,e,o),s=this.column.getColDef(),a=this.beans.userComponentFactory.getCellEditorDetails(s,r),l=null!=(null==a?void 0:a.popupFromSelector)?a.popupFromSelector:!!s.cellEditorPopup,u=null!=(null==a?void 0:a.popupPositionFromSelector)?a.popupPositionFromSelector:s.cellEditorPopupPosition;this.setEditing(!0),this.cellComp.setEditDetails(a,l,u);var c=this.createEvent(i,kt.EVENT_CELL_EDITING_STARTED);this.beans.eventService.dispatchEvent(c)}else this.onCellCompAttachedFuncs.push((function(){n.startEditing(t,e,o,i)}))},i.prototype.setEditing=function(t){this.editing!==t&&(this.editing=t,this.refreshHandle())},i.prototype.stopRowOrCellEdit=function(t){void 0===t&&(t=!1),"fullRow"===this.beans.gridOptionsService.get("editType")?this.rowCtrl.stopRowEditing(t):this.stopEditing(t)},i.prototype.onPopupEditorClosed=function(){this.isEditing()&&this.stopEditingAndFocus()},i.prototype.takeValueFromCellEditor=function(t){var e={newValueExists:!1};if(t)return e;var o=this.cellComp.getCellEditor();return o?o.isCancelAfterEnd&&o.isCancelAfterEnd()?e:{newValue:o.getValue(),newValueExists:!0}:e},i.prototype.saveNewValue=function(t,e){if(e===t)return!1;this.suppressRefreshCell=!0;var o=this.rowNode.setDataValue(this.column,e,"edit");return this.suppressRefreshCell=!1,o},i.prototype.stopEditing=function(t){if(void 0===t&&(t=!1),!this.editing)return!1;var e=this.takeValueFromCellEditor(t),o=e.newValue,i=e.newValueExists,n=this.getValueFromValueService(),r=!1;return i&&(r=this.saveNewValue(n,o)),this.setEditing(!1),this.cellComp.setEditDetails(),this.updateAndFormatValue(),this.refreshCell({forceRefresh:!0,suppressFlash:!0}),this.dispatchEditingStoppedEvent(n,o,!t&&!!r),r},i.prototype.dispatchEditingStoppedEvent=function(t,e,o){var i=El(El({},this.createEvent(null,kt.EVENT_CELL_EDITING_STOPPED)),{oldValue:t,newValue:e,valueChanged:o});this.beans.eventService.dispatchEvent(i)},i.prototype.createCellEditorParams=function(t,e,o){return{value:this.getValueFromValueService(),eventKey:t,charPress:e,column:this.column,colDef:this.column.getColDef(),rowIndex:this.getCellPosition().rowIndex,node:this.rowNode,data:this.rowNode.data,api:this.beans.gridOptionsService.api,cellStartedEdit:o,columnApi:this.beans.gridOptionsService.columnApi,context:this.beans.gridOptionsService.context,onKeyDown:this.onKeyDown.bind(this),stopEditing:this.stopEditingAndFocus.bind(this),eGridCell:this.getGui(),parseValue:this.parseValue.bind(this),formatValue:this.formatValue.bind(this)}},i.prototype.createCellRendererParams=function(){var t=this;return{value:this.value,valueFormatted:this.valueFormatted,getValue:this.getValueFromValueService.bind(this),setValue:function(e){return t.beans.valueService.setValue(t.rowNode,t.column,e)},formatValue:this.formatValue.bind(this),data:this.rowNode.data,node:this.rowNode,pinned:this.column.getPinned(),colDef:this.column.getColDef(),column:this.column,rowIndex:this.getCellPosition().rowIndex,api:this.beans.gridOptionsService.api,columnApi:this.beans.gridOptionsService.columnApi,context:this.beans.gridOptionsService.context,refreshCell:this.refreshCell.bind(this),eGridCell:this.getGui(),eParentOfValue:this.cellComp.getParentOfValue(),registerRowDragger:function(e,o,i,n){return t.registerRowDragger(e,o,n)}}},i.prototype.parseValue=function(t){var o=this.column.getColDef(),i={node:this.rowNode,data:this.rowNode.data,oldValue:this.getValue(),newValue:t,colDef:o,column:this.column,api:this.beans.gridOptionsService.api,columnApi:this.beans.gridOptionsService.columnApi,context:this.beans.gridOptionsService.context},n=o.valueParser;return e(n)?"function"==typeof n?n(i):this.beans.expressionService.evaluate(n,i):t},i.prototype.setFocusOutOnEditor=function(){if(this.editing){var t=this.cellComp.getCellEditor();t&&t.focusOut&&t.focusOut()}},i.prototype.setFocusInOnEditor=function(){if(this.editing){var t=this.cellComp.getCellEditor();t&&t.focusIn?t.focusIn():this.focusCell(!0)}},i.prototype.onCellChanged=function(t){this.cellComp&&(t.column===this.column&&this.refreshCell({}))},i.prototype.refreshCell=function(t){var e,o,i;if(!this.suppressRefreshCell&&!this.editing&&this.cellComp){var n=this.column.getColDef(),r=null!=t&&!!t.newData,s=null!=t&&!!t.suppressFlash||!!n.suppressCellFlash,a=null==n.field&&null==n.valueGetter&&null==n.showRowGroup,l=t&&t.forceRefresh||a||r,u=this.updateAndFormatValue();if(l||u){this.showValue(r);var c=this.beans.filterManager.isSuppressFlashingCellsBecauseFiltering();!s&&!c&&(this.beans.gridOptionsService.is("enableCellChangeFlash")||n.enableCellChangeFlash)&&this.flashCell(),null===(e=this.cellCustomStyleFeature)||void 0===e||e.applyUserStyles(),null===(o=this.cellCustomStyleFeature)||void 0===o||o.applyClassesFromColDef()}this.refreshToolTip(),null===(i=this.cellCustomStyleFeature)||void 0===i||i.applyCellClassRules()}},i.prototype.stopEditingAndFocus=function(t){void 0===t&&(t=!1),this.stopRowOrCellEdit(),this.focusCell(!0),t||this.navigateAfterEdit()},i.prototype.navigateAfterEdit=function(){"fullRow"===this.beans.gridOptionsService.get("editType")||this.beans.gridOptionsService.is("enterMovesDownAfterEdit")&&this.beans.navigationService.navigateToNextCell(null,Gi.DOWN,this.getCellPosition(),!1)},i.prototype.flashCell=function(t){var e=t&&t.flashDelay,o=t&&t.fadeDelay;this.animateCell("data-changed",e,o)},i.prototype.animateCell=function(t,o,i){var n,r,s=this,a="ag-cell-"+t,l="ag-cell-"+t+"-animation",u=this.beans.gridOptionsService;o||(o=null!==(n=u.getNum("cellFlashDelay"))&&void 0!==n?n:500),e(i)||(i=null!==(r=u.getNum("cellFadeDelay"))&&void 0!==r?r:1e3),this.cellComp.addOrRemoveCssClass(a,!0),this.cellComp.addOrRemoveCssClass(l,!1),window.setTimeout((function(){s.isAlive()&&(s.cellComp.addOrRemoveCssClass(a,!1),s.cellComp.addOrRemoveCssClass(l,!0),s.eGui.style.transition="background-color "+i+"ms",window.setTimeout((function(){s.isAlive()&&(s.cellComp.addOrRemoveCssClass(l,!1),s.eGui.style.transition="")}),i))}),o)},i.prototype.onFlashCells=function(t){if(this.cellComp){var e=this.beans.cellPositionUtils.createId(this.getCellPosition());t.cells[e]&&this.animateCell("highlight")}},i.prototype.isCellEditable=function(){return this.column.isCellEditable(this.rowNode)},i.prototype.isSuppressFillHandle=function(){return this.column.isSuppressFillHandle()},i.prototype.formatValue=function(t){var e=this.callValueFormatter(t);return null!=e?e:t},i.prototype.callValueFormatter=function(t){return this.beans.valueFormatterService.formatValue(this.column,this.rowNode,t)},i.prototype.updateAndFormatValue=function(t){void 0===t&&(t=!1);var e=this.value,o=this.valueFormatted;return this.value=this.getValueFromValueService(),this.valueFormatted=this.callValueFormatter(this.value),!!t||(!this.valuesAreEqual(e,this.value)||this.valueFormatted!=o)},i.prototype.valuesAreEqual=function(t,e){var o=this.column.getColDef();return o.equals?o.equals(t,e):t===e},i.prototype.getComp=function(){return this.cellComp},i.prototype.getValueFromValueService=function(){var t=this.rowNode.leafGroup&&this.beans.columnModel.isPivotMode(),e=this.rowNode.group&&this.rowNode.expanded&&!this.rowNode.footer&&!t,o=this.beans.gridOptionsService.is("groupIncludeFooter"),i=this.beans.gridOptionsService.is("groupSuppressBlankHeader"),n=e&&o&&!i;return this.beans.valueService.getValue(this.column,this.rowNode,!1,n)},i.prototype.getValue=function(){return this.value},i.prototype.getValueFormatted=function(){return this.valueFormatted},i.prototype.addDomData=function(){var t=this,e=this.getGui();this.beans.gridOptionsService.setDomData(e,i.DOM_DATA_KEY_CELL_CTRL,this),this.addDestroyFunc((function(){return t.beans.gridOptionsService.setDomData(e,i.DOM_DATA_KEY_CELL_CTRL,null)}))},i.prototype.createEvent=function(t,e){return{type:e,node:this.rowNode,data:this.rowNode.data,value:this.value,column:this.column,colDef:this.column.getColDef(),context:this.beans.gridOptionsService.context,api:this.beans.gridApi,columnApi:this.beans.columnApi,rowPinned:this.rowNode.rowPinned,event:t,rowIndex:this.rowNode.rowIndex}},i.prototype.onKeyPress=function(t){var e;null===(e=this.cellKeyboardListenerFeature)||void 0===e||e.onKeyPress(t)},i.prototype.onKeyDown=function(t){var e;null===(e=this.cellKeyboardListenerFeature)||void 0===e||e.onKeyDown(t)},i.prototype.onMouseEvent=function(t,e){var o;null===(o=this.cellMouseListenerFeature)||void 0===o||o.onMouseEvent(t,e)},i.prototype.getGui=function(){return this.eGui},i.prototype.refreshToolTip=function(){var t;null===(t=this.tooltipFeature)||void 0===t||t.refreshToolTip()},i.prototype.getColSpanningList=function(){return this.cellPositionFeature.getColSpanningList()},i.prototype.onLeftChanged=function(){var t;this.cellComp&&(null===(t=this.cellPositionFeature)||void 0===t||t.onLeftChanged())},i.prototype.onDisplayedColumnsChanged=function(){this.eGui&&this.setAriaColIndex()},i.prototype.setAriaColIndex=function(){var t=this.beans.columnModel.getAriaColumnIndex(this.column);so(this.getGui(),t)},i.prototype.isSuppressNavigable=function(){return this.column.isSuppressNavigable(this.rowNode)},i.prototype.onWidthChanged=function(){var t;return null===(t=this.cellPositionFeature)||void 0===t?void 0:t.onWidthChanged()},i.prototype.getColumn=function(){return this.column},i.prototype.getRowNode=function(){return this.rowNode},i.prototype.getBeans=function(){return this.beans},i.prototype.isPrintLayout=function(){return this.printLayout},i.prototype.appendChild=function(t){this.eGui.appendChild(t)},i.prototype.refreshHandle=function(){this.cellRangeFeature&&this.cellRangeFeature.refreshHandle()},i.prototype.getCellPosition=function(){return this.cellPosition},i.prototype.isEditing=function(){return this.editing},i.prototype.startRowOrCellEdit=function(t,e,o){void 0===o&&(o=null),this.cellComp&&("fullRow"===this.beans.gridOptionsService.get("editType")?this.rowCtrl.startRowEditing(t,e,this):this.startEditing(t,e,!0,o))},i.prototype.getRowCtrl=function(){return this.rowCtrl},i.prototype.getRowPosition=function(){return{rowIndex:this.cellPosition.rowIndex,rowPinned:this.cellPosition.rowPinned}},i.prototype.updateRangeBordersIfRangeCount=function(){this.cellComp&&this.cellRangeFeature&&this.cellRangeFeature.updateRangeBordersIfRangeCount()},i.prototype.onRangeSelectionChanged=function(){this.cellComp&&this.cellRangeFeature&&this.cellRangeFeature.onRangeSelectionChanged()},i.prototype.isRangeSelectionEnabled=function(){return null!=this.cellRangeFeature},i.prototype.focusCell=function(t){void 0===t&&(t=!1),this.beans.focusService.setFocusedCell({rowIndex:this.getCellPosition().rowIndex,column:this.column,rowPinned:this.rowNode.rowPinned,forceBrowserFocus:t})},i.prototype.onRowIndexChanged=function(){this.createCellPosition(),this.onCellFocused(),this.cellRangeFeature&&this.cellRangeFeature.onRangeSelectionChanged()},i.prototype.onFirstRightPinnedChanged=function(){if(this.cellComp){var t=this.column.isFirstRightPinned();this.cellComp.addOrRemoveCssClass("ag-cell-first-right-pinned",t)}},i.prototype.onLastLeftPinnedChanged=function(){if(this.cellComp){var t=this.column.isLastLeftPinned();this.cellComp.addOrRemoveCssClass("ag-cell-last-left-pinned",t)}},i.prototype.onCellFocused=function(t){if(this.cellComp&&!this.beans.gridOptionsService.is("suppressCellFocus")){var e=this.beans.focusService.isCellFocused(this.cellPosition);if(this.cellComp.addOrRemoveCssClass("ag-cell-focus",e),e&&t&&t.forceBrowserFocus)this.cellComp.getFocusableElement().focus({preventScroll:!!t.preventScrollOnBrowserFocus});var o="fullRow"===this.beans.gridOptionsService.get("editType");e||o||!this.editing||this.stopRowOrCellEdit()}},i.prototype.createCellPosition=function(){this.cellPosition={rowIndex:this.rowNode.rowIndex,rowPinned:t(this.rowNode.rowPinned),column:this.column}},i.prototype.applyStaticCssClasses=function(){this.cellComp.addOrRemoveCssClass("ag-cell",!0),this.cellComp.addOrRemoveCssClass("ag-cell-not-inline-editing",!0);var t=1==this.column.isAutoHeight();this.cellComp.addOrRemoveCssClass("ag-cell-auto-height",t),this.cellComp.addOrRemoveCssClass("ag-cell-normal-height",!t)},i.prototype.onColumnHover=function(){if(this.cellComp&&this.beans.gridOptionsService.is("columnHoverHighlight")){var t=this.beans.columnHoverService.isHovered(this.column);this.cellComp.addOrRemoveCssClass("ag-column-hover",t)}},i.prototype.onColDefChanged=function(){this.cellComp&&(this.setWrapText(),this.editing||this.refreshCell({forceRefresh:!0,suppressFlash:!0}))},i.prototype.setWrapText=function(){var t=1==this.column.getColDef().wrapText;this.cellComp.addOrRemoveCssClass("ag-cell-wrap-text",t)},i.prototype.dispatchCellContextMenuEvent=function(t){var e=this.column.getColDef(),o=this.createEvent(t,kt.EVENT_CELL_CONTEXT_MENU);this.beans.eventService.dispatchEvent(o),e.onCellContextMenu&&window.setTimeout((function(){return e.onCellContextMenu(o)}),0)},i.prototype.getCellRenderer=function(){return this.cellComp?this.cellComp.getCellRenderer():null},i.prototype.getCellEditor=function(){return this.cellComp?this.cellComp.getCellEditor():null},i.prototype.destroy=function(){this.onCellCompAttachedFuncs=[],o.prototype.destroy.call(this)},i.prototype.createSelectionCheckbox=function(){var t=new ws;return this.beans.context.createBean(t),t.init({rowNode:this.rowNode,column:this.column}),t},i.prototype.createDndSource=function(){var t=new wl(this.rowNode,this.column,this.beans,this.eGui);return this.beans.context.createBean(t),t},i.prototype.registerRowDragger=function(t,e,o){var i=this;if(this.customRowDragComp)this.customRowDragComp.setDragElement(t,e);else{var n=this.createRowDragComp(t,e,o);n&&(this.customRowDragComp=n,this.addDestroyFunc((function(){i.beans.context.destroyBean(n),i.customRowDragComp=null})))}},i.prototype.createRowDragComp=function(t,e,o){var i=this,n=this.beans.gridOptionsService.is("pagination"),r=this.beans.gridOptionsService.is("rowDragManaged"),s=this.beans.gridOptionsService.isRowModelType("clientSide");if(r){if(!s)return void O((function(){return console.warn("AG Grid: managed row dragging is only allowed in the Client Side Row Model")}),"CellComp.addRowDragging");if(n)return void O((function(){return console.warn("AG Grid: managed row dragging is not possible when doing pagination")}),"CellComp.addRowDragging")}var a=new Ds((function(){return i.value}),this.rowNode,this.column,t,e,o);return this.beans.context.createBean(a),a},i.DOM_DATA_KEY_CELL_CTRL="cellCtrl",i}(Mt),bl=function(){var t=function(e,o){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])})(e,o)};return function(e,o){function i(){this.constructor=e}t(e,o),e.prototype=null===o?Object.create(o):(i.prototype=o.prototype,new i)}}(),Tl=function(t){var e="function"==typeof Symbol&&Symbol.iterator,o=e&&t[e],i=0;if(o)return o.call(t);if(t&&"number"==typeof t.length)return{next:function(){return t&&i>=t.length&&(t=void 0),{value:t&&t[i++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")},Pl=function(t,e){var o="function"==typeof Symbol&&t[Symbol.iterator];if(!o)return t;var i,n,r=o.call(t),s=[];try{for(;(void 0===e||e-- >0)&&!(i=r.next()).done;)s.push(i.value)}catch(t){n={error:t}}finally{try{i&&!i.done&&(o=r.return)&&o.call(r)}finally{if(n)throw n.error}}return s},Dl=function(){for(var t=[],e=0;e<arguments.length;e++)t=t.concat(Pl(arguments[e]));return t};!function(t){t.Normal="Normal",t.FullWidth="FullWidth",t.FullWidthLoading="FullWidthLoading",t.FullWidthGroup="FullWidthGroup",t.FullWidthDetail="FullWidthDetail"}(nl||(nl={}));var _l,Al,Nl=0,Fl=function(o){function i(t,e,i,n,r){var s=o.call(this)||this;return s.allRowGuis=[],s.active=!0,s.centerCellCtrls={list:[],map:{}},s.leftCellCtrls={list:[],map:{}},s.rightCellCtrls={list:[],map:{}},s.slideInAnimation={left:!1,center:!1,right:!1,fullWidth:!1},s.fadeInAnimation={left:!1,center:!1,right:!1,fullWidth:!1},s.lastMouseDownOnDragger=!1,s.updateColumnListsPending=!1,s.businessKeySanitised=null,s.beans=e,s.rowNode=t,s.paginationPage=s.beans.paginationProxy.getCurrentPage(),s.useAnimationFrameForCreate=n,s.printLayout=r,s.instanceId=t.id+"-"+Nl++,s.setAnimateFlags(i),s.initRowBusinessKey(),s.rowFocused=s.beans.focusService.isRowFocused(s.rowNode.rowIndex,s.rowNode.rowPinned),s.rowLevel=s.beans.rowCssClassCalculator.calculateRowLevel(s.rowNode),s.setRowType(),s.addListeners(),s}return bl(i,o),i.prototype.initRowBusinessKey=function(){var t=this.beans.gridOptionsService.get("getBusinessKeyForNode");if("function"==typeof t){var e=t(this.rowNode);this.businessKeySanitised=fe(e)}},i.prototype.isSticky=function(){return this.rowNode.sticky},i.prototype.getBeans=function(){return this.beans},i.prototype.getInstanceId=function(){return this.instanceId},i.prototype.setComp=function(t,e,o){var i={rowComp:t,element:e,containerType:o};this.allRowGuis.push(i),o===Al.LEFT?this.leftGui=i:o===Al.RIGHT?this.rightGui=i:o===Al.FULL_WIDTH?this.fullWidthGui=i:this.centerGui=i,this.initialiseRowComp(i),"FullWidthLoading"===this.rowType||this.rowNode.rowPinned||this.beans.rowRenderer.dispatchFirstDataRenderedEvent()},i.prototype.unsetComp=function(t){this.allRowGuis=this.allRowGuis.filter((function(e){return e.containerType!==t})),t===Al.LEFT?this.leftGui=void 0:t===Al.RIGHT?this.rightGui=void 0:t===Al.FULL_WIDTH&&(this.fullWidthGui=void 0)},i.prototype.isCacheable=function(){return this.rowType===nl.FullWidthDetail&&this.beans.gridOptionsService.is("keepDetailRows")},i.prototype.setCached=function(t){var e=t?"none":"";this.allRowGuis.forEach((function(t){return t.element.style.display=e}))},i.prototype.initialiseRowComp=function(t){var e=this,o=this.beans.gridOptionsService;this.onRowHeightChanged(t),this.updateRowIndexes(t),this.setFocusedClasses(t),this.setStylesFromGridOptions(t),o.isRowSelection()&&this.rowNode.selectable&&this.onRowSelected(t),this.updateColumnLists(!this.useAnimationFrameForCreate);var n=t.rowComp;n.setRole("row"),this.getInitialRowClasses(t.containerType).forEach((function(t){return n.addOrRemoveCssClass(t,!0)})),this.executeSlideAndFadeAnimations(t),this.rowNode.group&&Ze(t.element,1==this.rowNode.expanded);var r=fe(this.rowNode.id);null!=r&&n.setRowId(r),null!=this.businessKeySanitised&&n.setRowBusinessKey(this.businessKeySanitised),this.isFullWidth()&&!this.beans.gridOptionsService.is("suppressCellFocus")&&n.setTabIndex(-1),o.setDomData(t.element,i.DOM_DATA_KEY_ROW_CTRL,this),this.addDestroyFunc((function(){return o.setDomData(t.element,i.DOM_DATA_KEY_ROW_CTRL,null)})),this.useAnimationFrameForCreate?this.beans.animationFrameService.createTask(this.addHoverFunctionality.bind(this,t.element),this.rowNode.rowIndex,"createTasksP2"):this.addHoverFunctionality(t.element),this.isFullWidth()&&this.setupFullWidth(t),o.is("rowDragEntireRow")&&this.addRowDraggerToRow(t),this.useAnimationFrameForCreate&&this.beans.animationFrameService.addDestroyTask((function(){e.isAlive()&&t.rowComp.addOrRemoveCssClass("ag-after-created",!0)})),this.executeProcessRowPostCreateFunc()},i.prototype.executeSlideAndFadeAnimations=function(t){var e=this,o=t.containerType;this.slideInAnimation[o]&&(A((function(){e.onTopChanged()})),this.slideInAnimation[o]=!1),this.fadeInAnimation[o]&&(A((function(){t.rowComp.addOrRemoveCssClass("ag-opacity-zero",!1)})),this.fadeInAnimation[o]=!1)},i.prototype.addRowDraggerToRow=function(t){if(this.beans.gridOptionsService.isEnableRangeSelection())O((function(){console.warn("AG Grid: Setting `rowDragEntireRow: true` in the gridOptions doesn't work with `enableRangeSelection: true`")}),"rowDragAndRangeSelectionEnabled");else{var e=this.beans.localeService.getLocaleTextFunc(),o=new Ds((function(){return"1 "+e("rowDragRow","row")}),this.rowNode,void 0,t.element,void 0,!0);this.createManagedBean(o,this.beans.context)}},i.prototype.setupFullWidth=function(t){var e=this.getPinnedForContainer(t.containerType),o=this.createFullWidthParams(t.element,e);if(this.rowType!=nl.FullWidthDetail||tt.assertRegistered(Q.MasterDetailModule,"cell renderer 'agDetailCellRenderer' (for master detail)")){var i;switch(this.rowType){case nl.FullWidthDetail:i=this.beans.userComponentFactory.getFullWidthDetailCellRendererDetails(o);break;case nl.FullWidthGroup:i=this.beans.userComponentFactory.getFullWidthGroupCellRendererDetails(o);break;case nl.FullWidthLoading:i=this.beans.userComponentFactory.getFullWidthLoadingCellRendererDetails(o);break;default:i=this.beans.userComponentFactory.getFullWidthCellRendererDetails(o)}t.rowComp.showFullWidth(i)}},i.prototype.isPrintLayout=function(){return this.printLayout},i.prototype.getFullWidthCellRenderer=function(){var t,e;return null===(e=null===(t=this.fullWidthGui)||void 0===t?void 0:t.rowComp)||void 0===e?void 0:e.getFullWidthCellRenderer()},i.prototype.getCellElement=function(t){var e=this.getCellCtrl(t);return e?e.getGui():null},i.prototype.executeProcessRowPostCreateFunc=function(){var t,e=this.beans.gridOptionsService.getCallback("processRowPostCreate");e&&this.areAllContainersReady()&&e({eRow:null===(t=this.centerGui)||void 0===t?void 0:t.element,ePinnedLeftRow:this.leftGui?this.leftGui.element:void 0,ePinnedRightRow:this.rightGui?this.rightGui.element:void 0,node:this.rowNode,rowIndex:this.rowNode.rowIndex,addRenderedRowListener:this.addEventListener.bind(this)})},i.prototype.areAllContainersReady=function(){var t=!!this.leftGui||!this.beans.columnModel.isPinningLeft(),e=!!this.centerGui,o=!!this.rightGui||!this.beans.columnModel.isPinningRight();return t&&e&&o},i.prototype.setRowType=function(){var t=this.rowNode.stub,e=this.rowNode.isFullWidthCell(),o=this.beans.doingMasterDetail&&this.rowNode.detail,i=this.beans.columnModel.isPivotMode(),n=!!this.rowNode.group&&!this.rowNode.footer&&this.beans.gridOptionsService.isGroupUseEntireRow(i);this.rowType=t?nl.FullWidthLoading:o?nl.FullWidthDetail:e?nl.FullWidth:n?nl.FullWidthGroup:nl.Normal},i.prototype.updateColumnLists=function(t){var e=this;(void 0===t&&(t=!1),this.isFullWidth())||(t||this.beans.gridOptionsService.is("suppressAnimationFrame")||this.printLayout?this.updateColumnListsImpl():this.updateColumnListsPending||(this.beans.animationFrameService.createTask((function(){e.active&&e.updateColumnListsImpl()}),this.rowNode.rowIndex,"createTasksP1"),this.updateColumnListsPending=!0))},i.prototype.createCellCtrls=function(t,e,o){var i=this;void 0===o&&(o=null);var n={list:[],map:{}},r=function(t,e){n.list.push(e),n.map[t]=e};return e.forEach((function(e){var o=e.getInstanceId(),n=t.map[o];n||(n=new Ol(e,i.rowNode,i.beans,i)),r(o,n)})),t.list.forEach((function(t){null!=n.map[t.getColumn().getInstanceId()]||(!i.isCellEligibleToBeRemoved(t,o)?r(t.getColumn().getInstanceId(),t):t.destroy())})),n},i.prototype.updateColumnListsImpl=function(){var t=this;this.updateColumnListsPending=!1;var e=this.beans.columnModel;if(this.printLayout)this.centerCellCtrls=this.createCellCtrls(this.centerCellCtrls,e.getAllDisplayedColumns()),this.leftCellCtrls={list:[],map:{}},this.rightCellCtrls={list:[],map:{}};else{var o=e.getViewportCenterColumnsForRow(this.rowNode);this.centerCellCtrls=this.createCellCtrls(this.centerCellCtrls,o);var i=e.getDisplayedLeftColumnsForRow(this.rowNode);this.leftCellCtrls=this.createCellCtrls(this.leftCellCtrls,i,"left");var n=e.getDisplayedRightColumnsForRow(this.rowNode);this.rightCellCtrls=this.createCellCtrls(this.rightCellCtrls,n,"right")}this.allRowGuis.forEach((function(e){var o=e.containerType===Al.LEFT?t.leftCellCtrls:e.containerType===Al.RIGHT?t.rightCellCtrls:t.centerCellCtrls;e.rowComp.setCellCtrls(o.list)}))},i.prototype.isCellEligibleToBeRemoved=function(t,e){if(t.getColumn().getPinned()!=e)return!0;var o=t.isEditing(),i=this.beans.focusService.isCellFocused(t.getCellPosition());if(o||i){var n=t.getColumn();return!(this.beans.columnModel.getAllDisplayedColumns().indexOf(n)>=0)}return!0},i.prototype.setAnimateFlags=function(t){if(!this.isSticky()&&t){var o=e(this.rowNode.oldRowTop),i=this.beans.columnModel.isPinningLeft(),n=this.beans.columnModel.isPinningRight();o?(this.slideInAnimation.center=!0,this.slideInAnimation.left=i,this.slideInAnimation.right=n):(this.fadeInAnimation.center=!0,this.fadeInAnimation.left=i,this.fadeInAnimation.right=n)}},i.prototype.isEditing=function(){return this.editingRow},i.prototype.stopRowEditing=function(t){this.stopEditing(t)},i.prototype.isFullWidth=function(){return this.rowType!==nl.Normal},i.prototype.getRowType=function(){return this.rowType},i.prototype.refreshFullWidth=function(){var t=this,e=function(e,o){if(!e)return!0;var i=e.rowComp.getFullWidthCellRenderer();if(!i)return!1;if(!i.refresh)return!1;var n=t.createFullWidthParams(e.element,o);return i.refresh(n)},o=e(this.fullWidthGui,null),i=e(this.centerGui,null),n=e(this.leftGui,"left"),r=e(this.rightGui,"right");return o&&i&&n&&r},i.prototype.addListeners=function(){var t=this;this.addManagedListener(this.rowNode,vs.EVENT_HEIGHT_CHANGED,(function(){return t.onRowHeightChanged()})),this.addManagedListener(this.rowNode,vs.EVENT_ROW_SELECTED,(function(){return t.onRowSelected()})),this.addManagedListener(this.rowNode,vs.EVENT_ROW_INDEX_CHANGED,this.onRowIndexChanged.bind(this)),this.addManagedListener(this.rowNode,vs.EVENT_TOP_CHANGED,this.onTopChanged.bind(this)),this.addManagedListener(this.rowNode,vs.EVENT_EXPANDED_CHANGED,this.updateExpandedCss.bind(this)),this.addManagedListener(this.rowNode,vs.EVENT_HAS_CHILDREN_CHANGED,this.updateExpandedCss.bind(this)),this.addManagedListener(this.rowNode,vs.EVENT_DATA_CHANGED,this.onRowNodeDataChanged.bind(this)),this.addManagedListener(this.rowNode,vs.EVENT_CELL_CHANGED,this.onRowNodeCellChanged.bind(this)),this.addManagedListener(this.rowNode,vs.EVENT_HIGHLIGHT_CHANGED,this.onRowNodeHighlightChanged.bind(this)),this.addManagedListener(this.rowNode,vs.EVENT_DRAGGING_CHANGED,this.onRowNodeDraggingChanged.bind(this)),this.addManagedListener(this.rowNode,vs.EVENT_UI_LEVEL_CHANGED,this.onUiLevelChanged.bind(this));var e=this.beans.eventService;this.addManagedListener(e,kt.EVENT_PAGINATION_PIXEL_OFFSET_CHANGED,this.onPaginationPixelOffsetChanged.bind(this)),this.addManagedListener(e,kt.EVENT_HEIGHT_SCALE_CHANGED,this.onTopChanged.bind(this)),this.addManagedListener(e,kt.EVENT_DISPLAYED_COLUMNS_CHANGED,this.onDisplayedColumnsChanged.bind(this)),this.addManagedListener(e,kt.EVENT_VIRTUAL_COLUMNS_CHANGED,this.onVirtualColumnsChanged.bind(this)),this.addManagedListener(e,kt.EVENT_CELL_FOCUSED,this.onCellFocused.bind(this)),this.addManagedListener(e,kt.EVENT_CELL_FOCUS_CLEARED,this.onCellFocusCleared.bind(this)),this.addManagedListener(e,kt.EVENT_PAGINATION_CHANGED,this.onPaginationChanged.bind(this)),this.addManagedListener(e,kt.EVENT_MODEL_UPDATED,this.onModelUpdated.bind(this)),this.addManagedListener(e,kt.EVENT_COLUMN_MOVED,this.onColumnMoved.bind(this)),this.addListenersForCellComps()},i.prototype.onColumnMoved=function(){this.updateColumnLists()},i.prototype.addListenersForCellComps=function(){var t=this;this.addManagedListener(this.rowNode,vs.EVENT_ROW_INDEX_CHANGED,(function(){t.getAllCellCtrls().forEach((function(t){return t.onRowIndexChanged()}))})),this.addManagedListener(this.rowNode,vs.EVENT_CELL_CHANGED,(function(e){t.getAllCellCtrls().forEach((function(t){return t.onCellChanged(e)}))}))},i.prototype.onRowNodeDataChanged=function(t){this.getAllCellCtrls().forEach((function(e){return e.refreshCell({suppressFlash:!t.update,newData:!t.update})})),this.onRowSelected(),this.postProcessCss()},i.prototype.onRowNodeCellChanged=function(){this.postProcessCss()},i.prototype.postProcessCss=function(){this.setStylesFromGridOptions(),this.postProcessClassesFromGridOptions(),this.postProcessRowClassRules(),this.postProcessRowDragging()},i.prototype.onRowNodeHighlightChanged=function(){var t=this.rowNode.highlighted;this.allRowGuis.forEach((function(e){var o=t===wa.Above,i=t===wa.Below;e.rowComp.addOrRemoveCssClass("ag-row-highlight-above",o),e.rowComp.addOrRemoveCssClass("ag-row-highlight-below",i)}))},i.prototype.onRowNodeDraggingChanged=function(){this.postProcessRowDragging()},i.prototype.postProcessRowDragging=function(){var t=this.rowNode.dragging;this.allRowGuis.forEach((function(e){return e.rowComp.addOrRemoveCssClass("ag-row-dragging",t)}))},i.prototype.updateExpandedCss=function(){var t=this.rowNode.isExpandable(),e=1==this.rowNode.expanded;this.allRowGuis.forEach((function(o){o.rowComp.addOrRemoveCssClass("ag-row-group",t),o.rowComp.addOrRemoveCssClass("ag-row-group-expanded",t&&e),o.rowComp.addOrRemoveCssClass("ag-row-group-contracted",t&&!e),Ze(o.element,t&&e)}))},i.prototype.onDisplayedColumnsChanged=function(){this.updateColumnLists(!0),this.beans.columnModel.wasAutoRowHeightEverActive()&&this.rowNode.checkAutoHeights()},i.prototype.onVirtualColumnsChanged=function(){this.updateColumnLists()},i.prototype.getRowPosition=function(){return{rowPinned:t(this.rowNode.rowPinned),rowIndex:this.rowNode.rowIndex}},i.prototype.onKeyboardNavigate=function(t){var e=this.allRowGuis.find((function(e){return e.element.contains(t.target)}));if((e?e.element:null)===t.target){var o=this.rowNode,i=this.beans.focusService.getFocusedCell(),n={rowIndex:o.rowIndex,rowPinned:o.rowPinned,column:i&&i.column};this.beans.navigationService.navigateToNextCell(t,t.key,n,!0),t.preventDefault()}},i.prototype.onTabKeyDown=function(t){if(!t.defaultPrevented&&!Rt(t)){var e=this.allRowGuis.find((function(e){return e.element.contains(t.target)})),o=e?e.element:null,i=o===t.target,n=null;i||(n=this.beans.focusService.findNextFocusableElement(o,!1,t.shiftKey)),(this.isFullWidth()&&i||!n)&&this.beans.navigationService.onTabKeyDown(this,t)}},i.prototype.onFullWidthRowFocused=function(t){var e,o=this.rowNode,i=!!t&&(this.isFullWidth()&&t.rowIndex===o.rowIndex&&t.rowPinned==o.rowPinned),n=this.fullWidthGui?this.fullWidthGui.element:null===(e=this.centerGui)||void 0===e?void 0:e.element;n&&(n.classList.toggle("ag-full-width-focus",i),i&&n.focus({preventScroll:!0}))},i.prototype.refreshCell=function(t){this.centerCellCtrls=this.removeCellCtrl(this.centerCellCtrls,t),this.leftCellCtrls=this.removeCellCtrl(this.leftCellCtrls,t),this.rightCellCtrls=this.removeCellCtrl(this.rightCellCtrls,t),this.updateColumnLists()},i.prototype.removeCellCtrl=function(t,e){var o={list:[],map:{}};return t.list.forEach((function(t){t!==e&&(o.list.push(t),o.map[t.getInstanceId()]=t)})),o},i.prototype.onMouseEvent=function(t,e){switch(t){case"dblclick":this.onRowDblClick(e);break;case"click":this.onRowClick(e);break;case"touchstart":case"mousedown":this.onRowMouseDown(e)}},i.prototype.createRowEvent=function(t,e){return{type:t,node:this.rowNode,data:this.rowNode.data,rowIndex:this.rowNode.rowIndex,rowPinned:this.rowNode.rowPinned,context:this.beans.gridOptionsService.context,api:this.beans.gridOptionsService.api,columnApi:this.beans.gridOptionsService.columnApi,event:e}},i.prototype.createRowEventWithSource=function(t,e){var o=this.createRowEvent(t,e);return o.source=this,o},i.prototype.onRowDblClick=function(t){if(!Rt(t)){var e=this.createRowEventWithSource(kt.EVENT_ROW_DOUBLE_CLICKED,t);this.beans.eventService.dispatchEvent(e)}},i.prototype.onRowMouseDown=function(t){if(this.lastMouseDownOnDragger=ei(t.target,"ag-row-drag",3),this.isFullWidth()){var e=this.rowNode,o=this.beans.columnModel;this.beans.rangeService&&this.beans.rangeService.removeAllCellRanges(),this.beans.focusService.setFocusedCell({rowIndex:e.rowIndex,column:o.getAllDisplayedColumns()[0],rowPinned:e.rowPinned,forceBrowserFocus:!0})}},i.prototype.onRowClick=function(t){if(!(Rt(t)||this.lastMouseDownOnDragger)){var e=this.createRowEventWithSource(kt.EVENT_ROW_CLICKED,t);this.beans.eventService.dispatchEvent(e);var o=t.ctrlKey||t.metaKey,i=t.shiftKey;if(!(this.beans.gridOptionsService.is("groupSelectsChildren")&&this.rowNode.group||!this.rowNode.selectable||this.rowNode.rowPinned||!this.beans.gridOptionsService.isRowSelection()||this.beans.gridOptionsService.is("suppressRowClickSelection"))){var n=this.beans.gridOptionsService.is("rowMultiSelectWithClick"),r=!this.beans.gridOptionsService.is("suppressRowDeselection"),s="rowClicked";if(this.rowNode.isSelected())n?this.rowNode.setSelectedParams({newValue:!1,event:t,source:s}):o?r&&this.rowNode.setSelectedParams({newValue:!1,event:t,source:s}):this.rowNode.setSelectedParams({newValue:!0,clearSelection:!i,rangeSelect:i,event:t,source:s});else{var a=!n&&!o;this.rowNode.setSelectedParams({newValue:!0,clearSelection:a,rangeSelect:i,event:t,source:s})}}}},i.prototype.setupDetailRowAutoHeight=function(t){var e=this;if(this.rowType===nl.FullWidthDetail&&this.beans.gridOptionsService.is("detailRowAutoHeight")){var o=function(){var o=t.clientHeight;if(null!=o&&o>0){e.beans.frameworkOverrides.setTimeout((function(){e.rowNode.setRowHeight(o),e.beans.clientSideRowModel?e.beans.clientSideRowModel.onRowHeightChanged():e.beans.serverSideRowModel&&e.beans.serverSideRowModel.onRowHeightChanged()}),0)}},i=this.beans.resizeObserverService.observeResize(t,o);this.addDestroyFunc(i),o()}},i.prototype.createFullWidthParams=function(t,e){var o=this;return{fullWidth:!0,data:this.rowNode.data,node:this.rowNode,value:this.rowNode.key,valueFormatted:this.rowNode.key,rowIndex:this.rowNode.rowIndex,api:this.beans.gridOptionsService.api,columnApi:this.beans.gridOptionsService.columnApi,context:this.beans.gridOptionsService.context,eGridCell:t,eParentOfValue:t,pinned:e,addRenderedRowListener:this.addEventListener.bind(this),registerRowDragger:function(t,e,i,n){return o.addFullWidthRowDragging(t,e,i,n)}}},i.prototype.addFullWidthRowDragging=function(t,e,o,i){if(void 0===o&&(o=""),this.isFullWidth()){var n=new Ds((function(){return o}),this.rowNode,void 0,t,e,i);this.createManagedBean(n,this.beans.context)}},i.prototype.onUiLevelChanged=function(){var t=this.beans.rowCssClassCalculator.calculateRowLevel(this.rowNode);if(this.rowLevel!=t){var e="ag-row-level-"+t,o="ag-row-level-"+this.rowLevel;this.allRowGuis.forEach((function(t){t.rowComp.addOrRemoveCssClass(e,!0),t.rowComp.addOrRemoveCssClass(o,!1)}))}this.rowLevel=t},i.prototype.isFirstRowOnPage=function(){return this.rowNode.rowIndex===this.beans.paginationProxy.getPageFirstRow()},i.prototype.isLastRowOnPage=function(){return this.rowNode.rowIndex===this.beans.paginationProxy.getPageLastRow()},i.prototype.onModelUpdated=function(){this.refreshFirstAndLastRowStyles()},i.prototype.refreshFirstAndLastRowStyles=function(){var t=this.isFirstRowOnPage(),e=this.isLastRowOnPage();this.firstRowOnPage!==t&&(this.firstRowOnPage=t,this.allRowGuis.forEach((function(e){return e.rowComp.addOrRemoveCssClass("ag-row-first",t)}))),this.lastRowOnPage!==e&&(this.lastRowOnPage=e,this.allRowGuis.forEach((function(t){return t.rowComp.addOrRemoveCssClass("ag-row-last",e)})))},i.prototype.stopEditing=function(t){var e,o;if(void 0===t&&(t=!1),!this.stoppingRowEdit){var i=this.getAllCellCtrls(),n=this.editingRow;this.stoppingRowEdit=!0;var r=!1;try{for(var s=Tl(i),a=s.next();!a.done;a=s.next()){var l=a.value.stopEditing(t);n&&!t&&!r&&l&&(r=!0)}}catch(t){e={error:t}}finally{try{a&&!a.done&&(o=s.return)&&o.call(s)}finally{if(e)throw e.error}}if(r){var u=this.createRowEvent(kt.EVENT_ROW_VALUE_CHANGED);this.beans.eventService.dispatchEvent(u)}n&&this.setEditingRow(!1),this.stoppingRowEdit=!1}},i.prototype.setInlineEditingCss=function(t){this.allRowGuis.forEach((function(e){e.rowComp.addOrRemoveCssClass("ag-row-inline-editing",t),e.rowComp.addOrRemoveCssClass("ag-row-not-inline-editing",!t)}))},i.prototype.setEditingRow=function(t){this.editingRow=t,this.allRowGuis.forEach((function(e){return e.rowComp.addOrRemoveCssClass("ag-row-editing",t)}));var e=t?this.createRowEvent(kt.EVENT_ROW_EDITING_STARTED):this.createRowEvent(kt.EVENT_ROW_EDITING_STOPPED);this.beans.eventService.dispatchEvent(e)},i.prototype.startRowEditing=function(t,e,o,i){(void 0===t&&(t=null),void 0===e&&(e=null),void 0===o&&(o=null),void 0===i&&(i=null),this.editingRow)||this.getAllCellCtrls().reduce((function(n,r){var s=r===o;return s?r.startEditing(t,e,s,i):r.startEditing(null,null,s,i),!!n||r.isEditing()}),!1)&&this.setEditingRow(!0)},i.prototype.getAllCellCtrls=function(){return 0===this.leftCellCtrls.list.length&&0===this.rightCellCtrls.list.length?this.centerCellCtrls.list:Dl(this.centerCellCtrls.list,this.leftCellCtrls.list,this.rightCellCtrls.list)},i.prototype.postProcessClassesFromGridOptions=function(){var t=this,e=this.beans.rowCssClassCalculator.processClassesFromGridOptions(this.rowNode);e&&e.length&&e.forEach((function(e){t.allRowGuis.forEach((function(t){return t.rowComp.addOrRemoveCssClass(e,!0)}))}))},i.prototype.postProcessRowClassRules=function(){var t=this;this.beans.rowCssClassCalculator.processRowClassRules(this.rowNode,(function(e){t.allRowGuis.forEach((function(t){return t.rowComp.addOrRemoveCssClass(e,!0)}))}),(function(e){t.allRowGuis.forEach((function(t){return t.rowComp.addOrRemoveCssClass(e,!1)}))}))},i.prototype.setStylesFromGridOptions=function(t){var e=this.processStylesFromGridOptions();this.forEachGui(t,(function(t){return t.rowComp.setUserStyles(e)}))},i.prototype.getPinnedForContainer=function(t){return t===Al.LEFT?"left":t===Al.RIGHT?"right":null},i.prototype.getInitialRowClasses=function(t){var e=this.getPinnedForContainer(t),o={rowNode:this.rowNode,rowFocused:this.rowFocused,fadeRowIn:this.fadeInAnimation[t],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(),pinned:e};return this.beans.rowCssClassCalculator.getInitialRowClasses(o)},i.prototype.processStylesFromGridOptions=function(){var t=this.beans.gridOptionsService.get("rowStyle");if(!t||"function"!=typeof t){var e,o=this.beans.gridOptionsService.getCallback("getRowStyle");if(o)e=o({data:this.rowNode.data,node:this.rowNode,rowIndex:this.rowNode.rowIndex});return Object.assign({},t,e)}console.warn("AG Grid: rowStyle should be an object of key/value styles, not be a function, use getRowStyle() instead")},i.prototype.onRowSelected=function(t){var e=this,o=!!this.rowNode.isSelected();this.forEachGui(t,(function(t){t.rowComp.addOrRemoveCssClass("ag-row-selected",o),co(t.element,!!o||void 0);var i=e.createAriaLabel();Ue(t.element,null==i?"":i)}))},i.prototype.createAriaLabel=function(){var t=this.rowNode.isSelected();if(!t||!this.beans.gridOptionsService.is("suppressRowDeselection"))return this.beans.localeService.getLocaleTextFunc()(t?"ariaRowDeselect":"ariaRowSelect","Press SPACE to "+(t?"deselect":"select")+" this row.")},i.prototype.isUseAnimationFrameForCreate=function(){return this.useAnimationFrameForCreate},i.prototype.addHoverFunctionality=function(t){var e=this;this.active&&(this.addManagedListener(t,"mouseenter",(function(){return e.rowNode.onMouseEnter()})),this.addManagedListener(t,"mouseleave",(function(){return e.rowNode.onMouseLeave()})),this.addManagedListener(this.rowNode,vs.EVENT_MOUSE_ENTER,(function(){e.beans.dragService.isDragging()||e.beans.gridOptionsService.is("suppressRowHoverHighlight")||t.classList.add("ag-row-hover")})),this.addManagedListener(this.rowNode,vs.EVENT_MOUSE_LEAVE,(function(){t.classList.remove("ag-row-hover")})))},i.prototype.roundRowTopToBounds=function(t){var e=this.beans.ctrlsService.getGridBodyCtrl().getScrollFeature().getVScrollPosition(),o=this.applyPaginationOffset(e.top,!0)-100,i=this.applyPaginationOffset(e.bottom,!0)+100;return Math.min(Math.max(o,t),i)},i.prototype.getFrameworkOverrides=function(){return this.beans.frameworkOverrides},i.prototype.forEachGui=function(t,e){(t?[t]:this.allRowGuis).forEach(e)},i.prototype.onRowHeightChanged=function(t){if(null!=this.rowNode.rowHeight){var e=this.rowNode.rowHeight,o=this.beans.environment.getDefaultRowHeight(),i=this.beans.gridOptionsService.isGetRowHeightFunction()?this.beans.gridOptionsService.getRowHeightForNode(this.rowNode).height:void 0,n=i?Math.min(o,i)-2+"px":void 0;this.forEachGui(t,(function(t){t.element.style.height=e+"px",n&&t.element.style.setProperty("--ag-line-height",n)}))}},i.prototype.addEventListener=function(t,e){o.prototype.addEventListener.call(this,t,e)},i.prototype.removeEventListener=function(t,e){o.prototype.removeEventListener.call(this,t,e)},i.prototype.destroyFirstPass=function(){this.active=!1,this.setupRemoveAnimation();var t=this.createRowEvent(kt.EVENT_VIRTUAL_ROW_REMOVED);this.dispatchEvent(t),this.beans.eventService.dispatchEvent(t),o.prototype.destroy.call(this)},i.prototype.setupRemoveAnimation=function(){if(!this.isSticky())if(null!=this.rowNode.rowTop){var t=this.roundRowTopToBounds(this.rowNode.rowTop);this.setRowTop(t)}else this.allRowGuis.forEach((function(t){return t.rowComp.addOrRemoveCssClass("ag-opacity-zero",!0)}))},i.prototype.destroySecondPass=function(){this.allRowGuis.length=0;var t=function(t){return t.list.forEach((function(t){return t.destroy()})),{list:[],map:{}}};this.centerCellCtrls=t(this.centerCellCtrls),this.leftCellCtrls=t(this.leftCellCtrls),this.rightCellCtrls=t(this.rightCellCtrls)},i.prototype.setFocusedClasses=function(t){var e=this;this.forEachGui(t,(function(t){t.rowComp.addOrRemoveCssClass("ag-row-focus",e.rowFocused),t.rowComp.addOrRemoveCssClass("ag-row-no-focus",!e.rowFocused)}))},i.prototype.onCellFocused=function(){this.onCellFocusChanged()},i.prototype.onCellFocusCleared=function(){this.onCellFocusChanged()},i.prototype.onCellFocusChanged=function(){var t=this.beans.focusService.isRowFocused(this.rowNode.rowIndex,this.rowNode.rowPinned);t!==this.rowFocused&&(this.rowFocused=t,this.setFocusedClasses()),!t&&this.editingRow&&this.stopEditing(!1)},i.prototype.onPaginationChanged=function(){var t=this.beans.paginationProxy.getCurrentPage();this.paginationPage!==t&&(this.paginationPage=t,this.onTopChanged()),this.refreshFirstAndLastRowStyles()},i.prototype.onTopChanged=function(){this.setRowTop(this.rowNode.rowTop)},i.prototype.onPaginationPixelOffsetChanged=function(){this.onTopChanged()},i.prototype.applyPaginationOffset=function(t,e){return void 0===e&&(e=!1),this.rowNode.isRowPinned()?t:t+this.beans.paginationProxy.getPixelOffset()*(e?1:-1)},i.prototype.setRowTop=function(t){if(!this.printLayout&&e(t)){var o=this.applyPaginationOffset(t),i=(this.rowNode.isRowPinned()?o:this.beans.rowContainerHeightService.getRealPixelPosition(o))+"px";this.setRowTopStyle(i)}},i.prototype.getInitialRowTop=function(t){return this.beans.gridOptionsService.is("suppressRowTransform")?this.getInitialRowTopShared(t):void 0},i.prototype.getInitialTransform=function(t){return this.beans.gridOptionsService.is("suppressRowTransform")?void 0:"translateY("+this.getInitialRowTopShared(t)+")"},i.prototype.getInitialRowTopShared=function(t){if(this.printLayout)return"";var e;if(this.isSticky())e=this.rowNode.stickyRowTop;else{var o=this.slideInAnimation[t]?this.roundRowTopToBounds(this.rowNode.oldRowTop):this.rowNode.rowTop,i=this.applyPaginationOffset(o);e=this.rowNode.isRowPinned()?i:this.beans.rowContainerHeightService.getRealPixelPosition(i)}return e+"px"},i.prototype.setRowTopStyle=function(t){var e=this.beans.gridOptionsService.is("suppressRowTransform");this.allRowGuis.forEach((function(o){return e?o.rowComp.setTop(t):o.rowComp.setTransform("translateY("+t+")")}))},i.prototype.getRowNode=function(){return this.rowNode},i.prototype.getCellCtrl=function(t){var e=null;return this.getAllCellCtrls().forEach((function(o){o.getColumn()==t&&(e=o)})),null!=e||this.getAllCellCtrls().forEach((function(o){o.getColSpanningList().indexOf(t)>=0&&(e=o)})),e},i.prototype.onRowIndexChanged=function(){null!=this.rowNode.rowIndex&&(this.onCellFocusChanged(),this.updateRowIndexes(),this.postProcessCss())},i.prototype.updateRowIndexes=function(t){var e=this.rowNode.getRowIndexString(),o=this.beans.headerNavigationService.getHeaderRowCount(),i=this.rowNode.rowIndex%2==0,n=o+this.rowNode.rowIndex+1;this.forEachGui(t,(function(t){t.rowComp.setRowIndex(e),t.rowComp.addOrRemoveCssClass("ag-row-even",i),t.rowComp.addOrRemoveCssClass("ag-row-odd",!i),no(t.element,n)}))},i.prototype.getPinnedLeftRowElement=function(){return this.leftGui?this.leftGui.element:void 0},i.prototype.getPinnedRightRowElement=function(){return this.rightGui?this.rightGui.element:void 0},i.prototype.getBodyRowElement=function(){return this.centerGui?this.centerGui.element:void 0},i.prototype.getFullWidthRowElement=function(){return this.fullWidthGui?this.fullWidthGui.element:void 0},i.DOM_DATA_KEY_ROW_CTRL="renderedRow",i}(Mt),Ll=function(){var t=function(e,o){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])})(e,o)};return function(e,o){function i(){this.constructor=e}t(e,o),e.prototype=null===o?Object.create(o):(i.prototype=o.prototype,new i)}}(),Ml=function(t,e,o,i){var n,r=arguments.length,s=r<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,o):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,o,i);else for(var a=t.length-1;a>=0;a--)(n=t[a])&&(s=(r<3?n(s):r>3?n(e,o,s):n(e,o))||s);return r>3&&s&&Object.defineProperty(e,o,s),s},Il=function(t,e){var o="function"==typeof Symbol&&t[Symbol.iterator];if(!o)return t;var i,n,r=o.call(t),s=[];try{for(;(void 0===e||e-- >0)&&!(i=r.next()).done;)s.push(i.value)}catch(t){n={error:t}}finally{try{i&&!i.done&&(o=r.return)&&o.call(r)}finally{if(n)throw n.error}}return s},Gl=function(t){function e(e){var o=t.call(this)||this;return o.element=e,o}return Ll(e,t),e.prototype.postConstruct=function(){this.addMouseListeners(),this.mockContextMenuForIPad(),this.addKeyboardEvents()},e.prototype.addKeyboardEvents=function(){var t=this;["keydown","keypress"].forEach((function(e){var o=t.processKeyboardEvent.bind(t,e);t.addManagedListener(t.element,e,o)}))},e.prototype.addMouseListeners=function(){var t=this;["dblclick","contextmenu","mouseover","mouseout","click",bt("touchstart")?"touchstart":"mousedown"].forEach((function(e){var o=t.processMouseEvent.bind(t,e);t.addManagedListener(t.element,e,o)}))},e.prototype.processMouseEvent=function(t,e){if(this.mouseEventService.isEventFromThisGrid(e)&&!Rt(e)){var o=this.getRowForEvent(e),i=this.mouseEventService.getRenderedCellForEvent(e);"contextmenu"===t?this.handleContextMenuMouseEvent(e,null,o,i):(i&&i.onMouseEvent(t,e),o&&o.onMouseEvent(t,e))}},e.prototype.mockContextMenuForIPad=function(){var t=this;if(Po()){var e=new jr(this.element);this.addManagedListener(e,jr.EVENT_LONG_TAP,(function(e){var o=t.getRowForEvent(e.touchEvent),i=t.mouseEventService.getRenderedCellForEvent(e.touchEvent);t.handleContextMenuMouseEvent(null,e.touchEvent,o,i)})),this.addDestroyFunc((function(){return e.destroy()}))}},e.prototype.getRowForEvent=function(t){for(var e=t.target;e;){var o=this.gridOptionsService.getDomData(e,Fl.DOM_DATA_KEY_ROW_CTRL);if(o)return o;e=e.parentElement}return null},e.prototype.handleContextMenuMouseEvent=function(t,e,o,i){var n=o?o.getRowNode():null,r=i?i.getColumn():null,s=null;if(r){var a=t||e;i.dispatchCellContextMenuEvent(a),s=this.valueService.getValue(r,n)}var l=this.ctrlsService.getGridBodyCtrl(),u=i?i.getGui():l.getGridBodyElement();this.contextMenuFactory&&this.contextMenuFactory.onContextMenu(t,e,n,r,s,u)},e.prototype.processKeyboardEvent=function(t,e){var o=Tt(this.gridOptionsService,e,Ol.DOM_DATA_KEY_CELL_CTRL),i=Tt(this.gridOptionsService,e,Fl.DOM_DATA_KEY_ROW_CTRL);e.defaultPrevented||(o?this.processCellKeyboardEvent(o,t,e):i&&i.isFullWidth()&&this.processFullWidthRowKeyboardEvent(i,t,e))},e.prototype.processCellKeyboardEvent=function(t,e,o){var i=t.getRowNode(),n=t.getColumn(),r=t.isEditing();if(!Hi(this.gridOptionsService,o,i,n,r))switch(e){case"keydown":!r&&this.navigationService.handlePageScrollingKey(o)||t.onKeyDown(o),this.doGridOperations(o,t.isEditing());break;case"keypress":t.onKeyPress(o)}if("keydown"===e){var s=t.createEvent(o,kt.EVENT_CELL_KEY_DOWN);this.eventService.dispatchEvent(s)}if("keypress"===e){var a=t.createEvent(o,kt.EVENT_CELL_KEY_PRESS);this.eventService.dispatchEvent(a)}},e.prototype.processFullWidthRowKeyboardEvent=function(t,e,o){var i=t.getRowNode(),n=this.focusService.getFocusedCell(),r=n&&n.column;if(!Hi(this.gridOptionsService,o,i,r,!1)){var s=o.key;if("keydown"===e)switch(s){case Gi.PAGE_HOME:case Gi.PAGE_END:this.navigationService.handlePageScrollingKey(o);break;case Gi.UP:case Gi.DOWN:t.onKeyboardNavigate(o);break;case Gi.TAB:t.onTabKeyDown(o)}}if("keydown"===e){var a=t.createRowEvent(kt.EVENT_CELL_KEY_DOWN,o);this.eventService.dispatchEvent(a)}if("keypress"===e){var l=t.createRowEvent(kt.EVENT_CELL_KEY_PRESS,o);this.eventService.dispatchEvent(l)}},e.prototype.doGridOperations=function(t,e){if((t.ctrlKey||t.metaKey)&&!e&&this.mouseEventService.isEventFromThisGrid(t)){var o=ki(t);return o===Gi.A?this.onCtrlAndA(t):o===Gi.C?this.onCtrlAndC(t):o===Gi.X?this.onCtrlAndX(t):o===Gi.V?this.onCtrlAndV():o===Gi.D?this.onCtrlAndD(t):o===Gi.Z?this.onCtrlAndZ(t):o===Gi.Y?this.onCtrlAndY():void 0}},e.prototype.onCtrlAndA=function(t){var e=this.pinnedRowModel,o=this.paginationProxy,n=this.rangeService;if(n&&o.isRowsToRender()){var r=Il([e.isEmpty("top"),e.isEmpty("bottom")],2),s=r[0]?null:"top",a=void 0,l=void 0;r[1]?(a=null,l=this.paginationProxy.getRowCount()-1):(a="bottom",l=e.getPinnedBottomRowData().length-1);var u=this.columnModel.getAllDisplayedColumns();if(i(u))return;n.setCellRange({rowStartIndex:0,rowStartPinned:s,rowEndIndex:l,rowEndPinned:a,columnStart:u[0],columnEnd:ut(u)})}t.preventDefault()},e.prototype.onCtrlAndC=function(t){this.clipboardService&&!this.gridOptionsService.is("enableCellTextSelection")&&(this.clipboardService.copyToClipboard(),t.preventDefault())},e.prototype.onCtrlAndX=function(t){!this.clipboardService||this.gridOptionsService.is("enableCellTextSelection")||this.gridOptionsService.is("suppressCutToClipboard")||(this.clipboardService.cutToClipboard(),t.preventDefault())},e.prototype.onCtrlAndV=function(){tt.isRegistered(Q.ClipboardModule)&&!this.gridOptionsService.is("suppressClipboardPaste")&&this.clipboardService.pasteFromClipboard()},e.prototype.onCtrlAndD=function(t){tt.isRegistered(Q.ClipboardModule)&&!this.gridOptionsService.is("suppressClipboardPaste")&&this.clipboardService.copyRangeDown(),t.preventDefault()},e.prototype.onCtrlAndZ=function(t){this.gridOptionsService.is("undoRedoCellEditing")&&(t.preventDefault(),t.shiftKey?this.undoRedoService.redo("ui"):this.undoRedoService.undo("ui"))},e.prototype.onCtrlAndY=function(){this.undoRedoService.redo("ui")},Ml([U("mouseEventService")],e.prototype,"mouseEventService",void 0),Ml([U("valueService")],e.prototype,"valueService",void 0),Ml([z("contextMenuFactory")],e.prototype,"contextMenuFactory",void 0),Ml([U("ctrlsService")],e.prototype,"ctrlsService",void 0),Ml([U("navigationService")],e.prototype,"navigationService",void 0),Ml([U("focusService")],e.prototype,"focusService",void 0),Ml([U("undoRedoService")],e.prototype,"undoRedoService",void 0),Ml([U("columnModel")],e.prototype,"columnModel",void 0),Ml([U("paginationProxy")],e.prototype,"paginationProxy",void 0),Ml([U("pinnedRowModel")],e.prototype,"pinnedRowModel",void 0),Ml([z("rangeService")],e.prototype,"rangeService",void 0),Ml([z("clipboardService")],e.prototype,"clipboardService",void 0),Ml([B],e.prototype,"postConstruct",null),e}(Mt),xl=function(){var t=function(e,o){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])})(e,o)};return function(e,o){function i(){this.constructor=e}t(e,o),e.prototype=null===o?Object.create(o):(i.prototype=o.prototype,new i)}}(),Hl=function(t,e,o,i){var n,r=arguments.length,s=r<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,o):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,o,i);else for(var a=t.length-1;a>=0;a--)(n=t[a])&&(s=(r<3?n(s):r>3?n(e,o,s):n(e,o))||s);return r>3&&s&&Object.defineProperty(e,o,s),s},Vl=function(t){function e(e){var o=t.call(this)||this;return o.centerContainerCtrl=e,o}return xl(e,t),e.prototype.postConstruct=function(){var t=this;this.ctrlsService.whenReady((function(){t.gridBodyCtrl=t.ctrlsService.getGridBodyCtrl(),t.listenForResize()})),this.addManagedListener(this.eventService,kt.EVENT_SCROLLBAR_WIDTH_CHANGED,this.onScrollbarWidthChanged.bind(this))},e.prototype.listenForResize=function(){var t=this,e=function(){return t.onCenterViewportResized()};this.centerContainerCtrl.registerViewportResizeListener(e),this.gridBodyCtrl.registerBodyViewportResizeListener(e)},e.prototype.onScrollbarWidthChanged=function(){this.checkViewportAndScrolls()},e.prototype.onCenterViewportResized=function(){if(this.centerContainerCtrl.isViewportVisible()){this.checkViewportAndScrolls();var t=this.centerContainerCtrl.getCenterWidth();t!==this.centerWidth&&(this.centerWidth=t,this.columnModel.refreshFlexedColumns({viewportWidth:this.centerWidth,updateBodyWidths:!0,fireResizedEvent:!0}))}else this.bodyHeight=0},e.prototype.checkViewportAndScrolls=function(){this.updateScrollVisibleService(),this.checkBodyHeight(),this.onHorizontalViewportChanged(),this.gridBodyCtrl.getScrollFeature().checkScrollLeft()},e.prototype.getBodyHeight=function(){return this.bodyHeight},e.prototype.checkBodyHeight=function(){var t=ii(this.gridBodyCtrl.getBodyViewportElement());if(this.bodyHeight!==t){this.bodyHeight=t;var e={type:kt.EVENT_BODY_HEIGHT_CHANGED};this.eventService.dispatchEvent(e)}},e.prototype.updateScrollVisibleService=function(){this.updateScrollVisibleServiceImpl(),setTimeout(this.updateScrollVisibleServiceImpl.bind(this),500)},e.prototype.updateScrollVisibleServiceImpl=function(){var t={horizontalScrollShowing:this.isHorizontalScrollShowing(),verticalScrollShowing:this.gridBodyCtrl.isVerticalScrollShowing()};this.scrollVisibleService.setScrollsVisible(t),this.gridBodyCtrl.setVerticalScrollPaddingVisible(t.verticalScrollShowing)},e.prototype.isHorizontalScrollShowing=function(){return this.gridOptionsService.is("alwaysShowHorizontalScroll")||this.centerContainerCtrl.isViewportHScrollShowing()},e.prototype.onHorizontalViewportChanged=function(){var t=this.centerContainerCtrl.getCenterWidth(),e=this.centerContainerCtrl.getViewportScrollLeft();this.columnModel.setViewportPosition(t,e)},Hl([U("ctrlsService")],e.prototype,"ctrlsService",void 0),Hl([U("columnModel")],e.prototype,"columnModel",void 0),Hl([U("scrollVisibleService")],e.prototype,"scrollVisibleService",void 0),Hl([B],e.prototype,"postConstruct",null),e}(Mt),kl=function(){var t=function(e,o){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])})(e,o)};return function(e,o){function i(){this.constructor=e}t(e,o),e.prototype=null===o?Object.create(o):(i.prototype=o.prototype,new i)}}(),Bl=function(t,e,o,i){var n,r=arguments.length,s=r<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,o):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,o,i);else for(var a=t.length-1;a>=0;a--)(n=t[a])&&(s=(r<3?n(s):r>3?n(e,o,s):n(e,o))||s);return r>3&&s&&Object.defineProperty(e,o,s),s},jl=function(t){function e(e){var o=t.call(this)||this;return o.element=e,o}return kl(e,t),e.prototype.postConstruct=function(){this.addManagedListener(this.eventService,kt.EVENT_LEFT_PINNED_WIDTH_CHANGED,this.onPinnedLeftWidthChanged.bind(this))},e.prototype.onPinnedLeftWidthChanged=function(){var t=this.pinnedWidthService.getPinnedLeftWidth(),e=t>0;Zo(this.element,e),Ri(this.element,t)},e.prototype.getWidth=function(){return this.pinnedWidthService.getPinnedLeftWidth()},Bl([U("pinnedWidthService")],e.prototype,"pinnedWidthService",void 0),Bl([B],e.prototype,"postConstruct",null),e}(Mt),Wl=function(){var t=function(e,o){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])})(e,o)};return function(e,o){function i(){this.constructor=e}t(e,o),e.prototype=null===o?Object.create(o):(i.prototype=o.prototype,new i)}}(),Ul=function(t,e,o,i){var n,r=arguments.length,s=r<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,o):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,o,i);else for(var a=t.length-1;a>=0;a--)(n=t[a])&&(s=(r<3?n(s):r>3?n(e,o,s):n(e,o))||s);return r>3&&s&&Object.defineProperty(e,o,s),s},zl=function(t){function e(e){var o=t.call(this)||this;return o.element=e,o}return Wl(e,t),e.prototype.postConstruct=function(){this.addManagedListener(this.eventService,kt.EVENT_RIGHT_PINNED_WIDTH_CHANGED,this.onPinnedRightWidthChanged.bind(this))},e.prototype.onPinnedRightWidthChanged=function(){var t=this.pinnedWidthService.getPinnedRightWidth(),e=t>0;Zo(this.element,e),Ri(this.element,t)},e.prototype.getWidth=function(){return this.pinnedWidthService.getPinnedRightWidth()},Ul([U("pinnedWidthService")],e.prototype,"pinnedWidthService",void 0),Ul([B],e.prototype,"postConstruct",null),e}(Mt),Kl=function(){var t=function(e,o){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])})(e,o)};return function(e,o){function i(){this.constructor=e}t(e,o),e.prototype=null===o?Object.create(o):(i.prototype=o.prototype,new i)}}(),Yl=function(t,e,o,i){var n,r=arguments.length,s=r<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,o):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,o,i);else for(var a=t.length-1;a>=0;a--)(n=t[a])&&(s=(r<3?n(s):r>3?n(e,o,s):n(e,o))||s);return r>3&&s&&Object.defineProperty(e,o,s),s},ql=function(t){function e(e,o){var i=t.call(this)||this;return i.eContainer=e,i.eWrapper=o,i}return Kl(e,t),e.prototype.postConstruct=function(){this.addManagedListener(this.eventService,kt.EVENT_ROW_CONTAINER_HEIGHT_CHANGED,this.onHeightChanged.bind(this))},e.prototype.onHeightChanged=function(){var t=this.maxDivHeightScaler.getUiContainerHeight(),e=null!=t?t+"px":"";this.eContainer.style.height=e,this.eWrapper&&(this.eWrapper.style.height=e)},Yl([U("rowContainerHeightService")],e.prototype,"maxDivHeightScaler",void 0),Yl([B],e.prototype,"postConstruct",null),e}(Mt),Ql=function(){var t=function(e,o){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])})(e,o)};return function(e,o){function i(){this.constructor=e}t(e,o),e.prototype=null===o?Object.create(o):(i.prototype=o.prototype,new i)}}(),Xl=function(t,e,o,i){var n,r=arguments.length,s=r<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,o):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,o,i);else for(var a=t.length-1;a>=0;a--)(n=t[a])&&(s=(r<3?n(s):r>3?n(e,o,s):n(e,o))||s);return r>3&&s&&Object.defineProperty(e,o,s),s},Jl=function(t){function e(e){var o=t.call(this)||this;return o.eContainer=e,o}return Ql(e,t),e.prototype.postConstruct=function(){var t=this;if(this.gridOptionsService.isEnableRangeSelection()&&!o(this.rangeService)){var e={eElement:this.eContainer,onDragStart:this.rangeService.onDragStart.bind(this.rangeService),onDragStop:this.rangeService.onDragStop.bind(this.rangeService),onDragging:this.rangeService.onDragging.bind(this.rangeService)};this.dragService.addDragSource(e),this.addDestroyFunc((function(){return t.dragService.removeDragSource(e)}))}},Xl([z("rangeService")],e.prototype,"rangeService",void 0),Xl([U("dragService")],e.prototype,"dragService",void 0),Xl([B],e.prototype,"postConstruct",null),e}(Mt),Zl=function(){var t=function(e,o){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])})(e,o)};return function(e,o){function i(){this.constructor=e}t(e,o),e.prototype=null===o?Object.create(o):(i.prototype=o.prototype,new i)}}(),$l=function(t,e,o,i){var n,r=arguments.length,s=r<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,o):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,o,i);else for(var a=t.length-1;a>=0;a--)(n=t[a])&&(s=(r<3?n(s):r>3?n(e,o,s):n(e,o))||s);return r>3&&s&&Object.defineProperty(e,o,s),s},tu=function(t){function e(e){var o=t.call(this)||this;return o.callback=e,o}return Zl(e,t),e.prototype.postConstruct=function(){var t=this.setWidth.bind(this);this.addManagedPropertyListener("domLayout",t),this.addManagedListener(this.eventService,kt.EVENT_DISPLAYED_COLUMNS_CHANGED,t),this.addManagedListener(this.eventService,kt.EVENT_DISPLAYED_COLUMNS_WIDTH_CHANGED,t),this.setWidth()},e.prototype.setWidth=function(){var t=this.columnModel,e=this.gridOptionsService.isDomLayout("print"),o=t.getBodyContainerWidth(),i=t.getDisplayedColumnsLeftWidth(),n=t.getDisplayedColumnsRightWidth(),r=e?o+i+n:o;this.callback(r)},$l([U("columnModel")],e.prototype,"columnModel",void 0),$l([B],e.prototype,"postConstruct",null),e}(Mt),eu=function(){var t=function(e,o){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])})(e,o)};return function(e,o){function i(){this.constructor=e}t(e,o),e.prototype=null===o?Object.create(o):(i.prototype=o.prototype,new i)}}(),ou=function(t,e,o,i){var n,r=arguments.length,s=r<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,o):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,o,i);else for(var a=t.length-1;a>=0;a--)(n=t[a])&&(s=(r<3?n(s):r>3?n(e,o,s):n(e,o))||s);return r>3&&s&&Object.defineProperty(e,o,s),s},iu=function(t,e){var o="function"==typeof Symbol&&t[Symbol.iterator];if(!o)return t;var i,n,r=o.call(t),s=[];try{for(;(void 0===e||e-- >0)&&!(i=r.next()).done;)s.push(i.value)}catch(t){n={error:t}}finally{try{i&&!i.done&&(o=r.return)&&o.call(r)}finally{if(n)throw n.error}}return s},nu=function(){for(var t=[],e=0;e<arguments.length;e++)t=t.concat(iu(arguments[e]));return t};function ru(t){switch(t){case _l.CENTER:case _l.TOP_CENTER:case _l.STICKY_TOP_CENTER:case _l.BOTTOM_CENTER:return Al.CENTER;case _l.LEFT:case _l.TOP_LEFT:case _l.STICKY_TOP_LEFT:case _l.BOTTOM_LEFT:return Al.LEFT;case _l.RIGHT:case _l.TOP_RIGHT:case _l.STICKY_TOP_RIGHT:case _l.BOTTOM_RIGHT:return Al.RIGHT;case _l.FULL_WIDTH:case _l.TOP_FULL_WIDTH:case _l.STICKY_TOP_FULL_WIDTH:case _l.BOTTOM_FULL_WIDTH:return Al.FULL_WIDTH;default:throw Error("Invalid Row Container Type")}}!function(t){t.LEFT="left",t.RIGHT="right",t.CENTER="center",t.FULL_WIDTH="fullWidth",t.TOP_LEFT="topLeft",t.TOP_RIGHT="topRight",t.TOP_CENTER="topCenter",t.TOP_FULL_WIDTH="topFullWidth",t.STICKY_TOP_LEFT="stickyTopLeft",t.STICKY_TOP_RIGHT="stickyTopRight",t.STICKY_TOP_CENTER="stickyTopCenter",t.STICKY_TOP_FULL_WIDTH="stickyTopFullWidth",t.BOTTOM_LEFT="bottomLeft",t.BOTTOM_RIGHT="bottomRight",t.BOTTOM_CENTER="bottomCenter",t.BOTTOM_FULL_WIDTH="bottomFullWidth"}(_l||(_l={})),function(t){t.LEFT="left",t.RIGHT="right",t.CENTER="center",t.FULL_WIDTH="fullWidth"}(Al||(Al={}));var su=ye([[_l.CENTER,"ag-center-cols-container"],[_l.LEFT,"ag-pinned-left-cols-container"],[_l.RIGHT,"ag-pinned-right-cols-container"],[_l.FULL_WIDTH,"ag-full-width-container"],[_l.TOP_CENTER,"ag-floating-top-container"],[_l.TOP_LEFT,"ag-pinned-left-floating-top"],[_l.TOP_RIGHT,"ag-pinned-right-floating-top"],[_l.TOP_FULL_WIDTH,"ag-floating-top-full-width-container"],[_l.STICKY_TOP_CENTER,"ag-sticky-top-container"],[_l.STICKY_TOP_LEFT,"ag-pinned-left-sticky-top"],[_l.STICKY_TOP_RIGHT,"ag-pinned-right-sticky-top"],[_l.STICKY_TOP_FULL_WIDTH,"ag-sticky-top-full-width-container"],[_l.BOTTOM_CENTER,"ag-floating-bottom-container"],[_l.BOTTOM_LEFT,"ag-pinned-left-floating-bottom"],[_l.BOTTOM_RIGHT,"ag-pinned-right-floating-bottom"],[_l.BOTTOM_FULL_WIDTH,"ag-floating-bottom-full-width-container"]]),au=ye([[_l.CENTER,"ag-center-cols-viewport"],[_l.TOP_CENTER,"ag-floating-top-viewport"],[_l.STICKY_TOP_CENTER,"ag-sticky-top-viewport"],[_l.BOTTOM_CENTER,"ag-floating-bottom-viewport"]]),lu=ye([[_l.CENTER,"ag-center-cols-clipper"]]),uu=function(t){function e(e){var o=t.call(this)||this;return o.visible=!0,o.EMPTY_CTRLS=[],o.name=e,o.isFullWithContainer=o.name===_l.TOP_FULL_WIDTH||o.name===_l.STICKY_TOP_FULL_WIDTH||o.name===_l.BOTTOM_FULL_WIDTH||o.name===_l.FULL_WIDTH,o}return eu(e,t),e.getRowContainerCssClasses=function(t){return{container:su.get(t),viewport:au.get(t),wrapper:lu.get(t)}},e.getPinned=function(t){switch(t){case _l.BOTTOM_LEFT:case _l.TOP_LEFT:case _l.STICKY_TOP_LEFT:case _l.LEFT:return"left";case _l.BOTTOM_RIGHT:case _l.TOP_RIGHT:case _l.STICKY_TOP_RIGHT:case _l.RIGHT:return"right";default:return null}},e.prototype.postConstruct=function(){var t=this;this.enableRtl=this.gridOptionsService.is("enableRtl"),this.embedFullWidthRows=this.gridOptionsService.is("embedFullWidthRows"),this.forContainers([_l.CENTER],(function(){return t.viewportSizeFeature=t.createManagedBean(new Vl(t))}))},e.prototype.registerWithCtrlsService=function(){switch(this.name){case _l.CENTER:this.ctrlsService.registerCenterRowContainerCtrl(this);break;case _l.LEFT:this.ctrlsService.registerLeftRowContainerCtrl(this);break;case _l.RIGHT:this.ctrlsService.registerRightRowContainerCtrl(this);break;case _l.TOP_CENTER:this.ctrlsService.registerTopCenterRowContainerCtrl(this);break;case _l.TOP_LEFT:this.ctrlsService.registerTopLeftRowContainerCon(this);break;case _l.TOP_RIGHT:this.ctrlsService.registerTopRightRowContainerCtrl(this);break;case _l.STICKY_TOP_CENTER:this.ctrlsService.registerStickyTopCenterRowContainerCtrl(this);break;case _l.STICKY_TOP_LEFT:this.ctrlsService.registerStickyTopLeftRowContainerCon(this);break;case _l.STICKY_TOP_RIGHT:this.ctrlsService.registerStickyTopRightRowContainerCtrl(this);break;case _l.BOTTOM_CENTER:this.ctrlsService.registerBottomCenterRowContainerCtrl(this);break;case _l.BOTTOM_LEFT:this.ctrlsService.registerBottomLeftRowContainerCtrl(this);break;case _l.BOTTOM_RIGHT:this.ctrlsService.registerBottomRightRowContainerCtrl(this)}},e.prototype.forContainers=function(t,e){t.indexOf(this.name)>=0&&e()},e.prototype.getContainerElement=function(){return this.eContainer},e.prototype.getViewportSizeFeature=function(){return this.viewportSizeFeature},e.prototype.setComp=function(t,e,o,i){var n=this;this.comp=t,this.eContainer=e,this.eViewport=o,this.eWrapper=i,this.createManagedBean(new Gl(this.eContainer)),this.addPreventScrollWhileDragging(),this.listenOnDomOrder(),this.stopHScrollOnPinnedRows();var r=[_l.TOP_CENTER,_l.TOP_LEFT,_l.TOP_RIGHT],s=[_l.STICKY_TOP_CENTER,_l.STICKY_TOP_LEFT,_l.STICKY_TOP_RIGHT],a=[_l.BOTTOM_CENTER,_l.BOTTOM_LEFT,_l.BOTTOM_RIGHT],l=[_l.CENTER,_l.LEFT,_l.RIGHT],u=nu(r,a,l,s),c=[_l.CENTER,_l.LEFT,_l.RIGHT,_l.FULL_WIDTH],p=[_l.CENTER,_l.TOP_CENTER,_l.STICKY_TOP_CENTER,_l.BOTTOM_CENTER],d=[_l.LEFT,_l.BOTTOM_LEFT,_l.TOP_LEFT,_l.STICKY_TOP_LEFT],h=[_l.RIGHT,_l.BOTTOM_RIGHT,_l.TOP_RIGHT,_l.STICKY_TOP_RIGHT];this.forContainers(d,(function(){n.pinnedWidthFeature=n.createManagedBean(new jl(n.eContainer)),n.addManagedListener(n.eventService,kt.EVENT_LEFT_PINNED_WIDTH_CHANGED,(function(){return n.onPinnedWidthChanged()}))})),this.forContainers(h,(function(){n.pinnedWidthFeature=n.createManagedBean(new zl(n.eContainer)),n.addManagedListener(n.eventService,kt.EVENT_RIGHT_PINNED_WIDTH_CHANGED,(function(){return n.onPinnedWidthChanged()}))})),this.forContainers(c,(function(){return n.createManagedBean(new ql(n.eContainer,n.eWrapper))})),this.forContainers(u,(function(){return n.createManagedBean(new Jl(n.eContainer))})),this.forContainers(p,(function(){return n.createManagedBean(new tu((function(t){return n.comp.setContainerWidth(t+"px")})))})),Io()&&(this.forContainers([_l.CENTER],(function(){var t=n.enableRtl?kt.EVENT_LEFT_PINNED_WIDTH_CHANGED:kt.EVENT_RIGHT_PINNED_WIDTH_CHANGED;n.addManagedListener(n.eventService,t,(function(){return n.refreshPaddingForFakeScrollbar()}))})),this.refreshPaddingForFakeScrollbar()),this.addListeners(),this.registerWithCtrlsService()},e.prototype.refreshPaddingForFakeScrollbar=function(){var t=this,e=t.enableRtl,o=t.columnModel,i=t.name,n=t.eWrapper,r=t.eContainer,s=e?_l.LEFT:_l.RIGHT;this.forContainers([_l.CENTER,s],(function(){var t=o.getContainerWidth(s),a=e?"marginLeft":"marginRight";i===_l.CENTER?n.style[a]=t?"0px":"16px":r.style[a]=t?"16px":"0px"}))},e.prototype.addListeners=function(){var t=this;this.addManagedListener(this.eventService,kt.EVENT_SCROLL_VISIBILITY_CHANGED,(function(){return t.onScrollVisibilityChanged()})),this.addManagedListener(this.eventService,kt.EVENT_DISPLAYED_COLUMNS_CHANGED,(function(){return t.onDisplayedColumnsChanged()})),this.addManagedListener(this.eventService,kt.EVENT_DISPLAYED_COLUMNS_WIDTH_CHANGED,(function(){return t.onDisplayedColumnsWidthChanged()})),this.addManagedListener(this.eventService,kt.EVENT_DISPLAYED_ROWS_CHANGED,(function(){return t.onDisplayedRowsChanged()})),this.onScrollVisibilityChanged(),this.onDisplayedColumnsChanged(),this.onDisplayedColumnsWidthChanged(),this.onDisplayedRowsChanged()},e.prototype.listenOnDomOrder=function(){var t=this;if([_l.STICKY_TOP_CENTER,_l.STICKY_TOP_LEFT,_l.STICKY_TOP_RIGHT,_l.STICKY_TOP_FULL_WIDTH].indexOf(this.name)>=0)this.comp.setDomOrder(!0);else{var e=function(){var e=t.gridOptionsService.is("ensureDomOrder"),o=t.gridOptionsService.isDomLayout("print");t.comp.setDomOrder(e||o)};this.addManagedPropertyListener("domLayout",e),e()}},e.prototype.stopHScrollOnPinnedRows=function(){var t=this;this.forContainers([_l.TOP_CENTER,_l.STICKY_TOP_CENTER,_l.BOTTOM_CENTER],(function(){t.addManagedListener(t.eViewport,"scroll",(function(){return t.eViewport.scrollLeft=0}))}))},e.prototype.onDisplayedColumnsChanged=function(){var t=this;this.forContainers([_l.CENTER],(function(){return t.onHorizontalViewportChanged()}))},e.prototype.onDisplayedColumnsWidthChanged=function(){var t=this;this.forContainers([_l.CENTER],(function(){return t.onHorizontalViewportChanged()}))},e.prototype.onScrollVisibilityChanged=function(){if(this.name===_l.CENTER){var t=this.scrollVisibleService.isHorizontalScrollShowing()&&this.gridOptionsService.getScrollbarWidth()||0,e=0==t?"100%":"calc(100% + "+t+"px)";this.comp.setViewportHeight(e)}},e.prototype.addPreventScrollWhileDragging=function(){var t=this,e=function(e){t.dragService.isDragging()&&e.cancelable&&e.preventDefault()};this.eContainer.addEventListener("touchmove",e,{passive:!1}),this.addDestroyFunc((function(){return t.eContainer.removeEventListener("touchmove",e)}))},e.prototype.onHorizontalViewportChanged=function(){var t=this.getCenterWidth(),e=this.getCenterViewportScrollLeft();this.columnModel.setViewportPosition(t,e)},e.prototype.getCenterWidth=function(){return ni(this.eViewport)},e.prototype.getCenterViewportScrollLeft=function(){return li(this.eViewport,this.enableRtl)},e.prototype.registerViewportResizeListener=function(t){var e=this.resizeObserverService.observeResize(this.eViewport,t);this.addDestroyFunc((function(){return e()}))},e.prototype.isViewportVisible=function(){return di(this.eViewport)},e.prototype.isViewportHScrollShowing=function(){return wi(this.eViewport)},e.prototype.getViewportScrollLeft=function(){return li(this.eViewport,this.enableRtl)},e.prototype.isHorizontalScrollShowing=function(){return this.gridOptionsService.is("alwaysShowHorizontalScroll")||wi(this.eViewport)},e.prototype.getViewportElement=function(){return this.eViewport},e.prototype.setContainerTranslateX=function(t){this.eContainer.style.transform="translateX("+t+"px)"},e.prototype.getHScrollPosition=function(){return{left:this.eViewport.scrollLeft,right:this.eViewport.scrollLeft+this.eViewport.offsetWidth}},e.prototype.setCenterViewportScrollLeft=function(t){ui(this.eViewport,t,this.enableRtl)},e.prototype.isContainerVisible=function(){return!e.getPinned(this.name)||!!this.pinnedWidthFeature&&this.pinnedWidthFeature.getWidth()>0},e.prototype.onPinnedWidthChanged=function(){var t=this.isContainerVisible();this.visible!=t&&(this.visible=t,this.onDisplayedRowsChanged()),Io()&&this.refreshPaddingForFakeScrollbar()},e.prototype.onDisplayedRowsChanged=function(){var t=this;if(this.visible){var e=this.gridOptionsService.isDomLayout("print"),o=this.getRowCtrls().filter((function(o){var i=o.isFullWidth(),n=t.embedFullWidthRows||e;return t.isFullWithContainer?!n&&i:n||!i}));this.comp.setRowCtrls(o)}else this.comp.setRowCtrls(this.EMPTY_CTRLS)},e.prototype.getRowCtrls=function(){switch(this.name){case _l.TOP_CENTER:case _l.TOP_LEFT:case _l.TOP_RIGHT:case _l.TOP_FULL_WIDTH:return this.rowRenderer.getTopRowCtrls();case _l.STICKY_TOP_CENTER:case _l.STICKY_TOP_LEFT:case _l.STICKY_TOP_RIGHT:case _l.STICKY_TOP_FULL_WIDTH:return this.rowRenderer.getStickyTopRowCtrls();case _l.BOTTOM_CENTER:case _l.BOTTOM_LEFT:case _l.BOTTOM_RIGHT:case _l.BOTTOM_FULL_WIDTH:return this.rowRenderer.getBottomRowCtrls();default:return this.rowRenderer.getRowCtrls()}},ou([U("scrollVisibleService")],e.prototype,"scrollVisibleService",void 0),ou([U("dragService")],e.prototype,"dragService",void 0),ou([U("ctrlsService")],e.prototype,"ctrlsService",void 0),ou([U("columnModel")],e.prototype,"columnModel",void 0),ou([U("resizeObserverService")],e.prototype,"resizeObserverService",void 0),ou([U("rowRenderer")],e.prototype,"rowRenderer",void 0),ou([B],e.prototype,"postConstruct",null),e}(Mt),cu=function(){var t=function(e,o){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])})(e,o)};return function(e,o){function i(){this.constructor=e}t(e,o),e.prototype=null===o?Object.create(o):(i.prototype=o.prototype,new i)}}(),pu=function(t,e,o,i){var n,r=arguments.length,s=r<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,o):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,o,i);else for(var a=t.length-1;a>=0;a--)(n=t[a])&&(s=(r<3?n(s):r>3?n(e,o,s):n(e,o))||s);return r>3&&s&&Object.defineProperty(e,o,s),s},du='<div class="ag-root ag-unselectable" role="treegrid">\n <ag-header-root ref="gridHeader"></ag-header-root>\n <div class="ag-floating-top" ref="eTop" role="presentation">\n <ag-row-container ref="topLeftContainer" name="'+_l.TOP_LEFT+'"></ag-row-container>\n <ag-row-container ref="topCenterContainer" name="'+_l.TOP_CENTER+'"></ag-row-container>\n <ag-row-container ref="topRightContainer" name="'+_l.TOP_RIGHT+'"></ag-row-container>\n <ag-row-container ref="topFullWidthContainer" name="'+_l.TOP_FULL_WIDTH+'"></ag-row-container>\n </div>\n <div class="ag-body" ref="eBody" role="presentation">\n <div class="ag-body-clipper" ref="eBodyClipper" role="presentation">\n <div class="ag-body-viewport" ref="eBodyViewport" role="presentation">\n <ag-row-container ref="leftContainer" name="'+_l.LEFT+'"></ag-row-container>\n <ag-row-container ref="centerContainer" name="'+_l.CENTER+'"></ag-row-container>\n <ag-row-container ref="rightContainer" name="'+_l.RIGHT+'"></ag-row-container>\n <ag-row-container ref="fullWidthContainer" name="'+_l.FULL_WIDTH+'"></ag-row-container>\n </div>\n </div>\n <ag-fake-vertical-scroll></ag-fake-vertical-scroll>\n </div>\n <div class="ag-sticky-top" ref="eStickyTop" role="presentation">\n <ag-row-container ref="stickyTopLeftContainer" name="'+_l.STICKY_TOP_LEFT+'"></ag-row-container>\n <ag-row-container ref="stickyTopCenterContainer" name="'+_l.STICKY_TOP_CENTER+'"></ag-row-container>\n <ag-row-container ref="stickyTopRightContainer" name="'+_l.STICKY_TOP_RIGHT+'"></ag-row-container>\n <ag-row-container ref="stickyTopFullWidthContainer" name="'+_l.STICKY_TOP_FULL_WIDTH+'"></ag-row-container>\n </div>\n <div class="ag-floating-bottom" ref="eBottom" role="presentation">\n <ag-row-container ref="bottomLeftContainer" name="'+_l.BOTTOM_LEFT+'"></ag-row-container>\n <ag-row-container ref="bottomCenterContainer" name="'+_l.BOTTOM_CENTER+'"></ag-row-container>\n <ag-row-container ref="bottomRightContainer" name="'+_l.BOTTOM_RIGHT+'"></ag-row-container>\n <ag-row-container ref="bottomFullWidthContainer" name="'+_l.BOTTOM_FULL_WIDTH+'"></ag-row-container>\n </div>\n <ag-fake-horizontal-scroll></ag-fake-horizontal-scroll>\n <ag-overlay-wrapper></ag-overlay-wrapper>\n </div>',hu=function(t){function e(){return t.call(this,du)||this}return cu(e,t),e.prototype.init=function(){var t=this,e=function(t,e){var o=t+"px";e.style.minHeight=o,e.style.height=o},o={setRowAnimationCssOnBodyViewport:function(e,o){return t.setRowAnimationCssOnBodyViewport(e,o)},setColumnCount:function(e){return ro(t.getGui(),e)},setRowCount:function(e){return io(t.getGui(),e)},setTopHeight:function(o){return e(o,t.eTop)},setBottomHeight:function(o){return e(o,t.eBottom)},setTopDisplay:function(e){return t.eTop.style.display=e},setBottomDisplay:function(e){return t.eBottom.style.display=e},setStickyTopHeight:function(e){return t.eStickyTop.style.height=e},setStickyTopTop:function(e){return t.eStickyTop.style.top=e},setStickyTopWidth:function(e){return t.eStickyTop.style.width=e},setColumnMovingCss:function(e,o){return t.addOrRemoveCssClass(e,o)},updateLayoutClasses:function(e,o){[t.eBodyViewport.classList,t.eBodyClipper.classList,t.eBody.classList].forEach((function(t){t.toggle(Pa.AUTO_HEIGHT,o.autoHeight),t.toggle(Pa.NORMAL,o.normal),t.toggle(Pa.PRINT,o.print)})),t.addOrRemoveCssClass(Pa.AUTO_HEIGHT,o.autoHeight),t.addOrRemoveCssClass(Pa.NORMAL,o.normal),t.addOrRemoveCssClass(Pa.PRINT,o.print)},setAlwaysVerticalScrollClass:function(e,o){return t.eBodyViewport.classList.toggle("ag-force-vertical-scroll",o)},registerBodyViewportResizeListener:function(e){var o=t.resizeObserverService.observeResize(t.eBodyViewport,e);t.addDestroyFunc((function(){return o()}))},setPinnedTopBottomOverflowY:function(e){return t.eTop.style.overflowY=t.eBottom.style.overflowY=e},setCellSelectableCss:function(e,o){[t.eTop,t.eBodyViewport,t.eBottom].forEach((function(t){return t.classList.toggle("ag-selectable",o)}))},setBodyViewportWidth:function(e){return t.eBodyViewport.style.width=e}};this.ctrl=this.createManagedBean(new il),this.ctrl.setComp(o,this.getGui(),this.eBodyViewport,this.eTop,this.eBottom,this.eStickyTop),(this.rangeService||"multiple"===this.gridOptionsService.get("rowSelection"))&&oo(this.getGui(),!0)},e.prototype.setRowAnimationCssOnBodyViewport=function(t,e){var o=this.eBodyViewport.classList;o.toggle(ka.ANIMATION_ON,e),o.toggle(ka.ANIMATION_OFF,!e)},e.prototype.getFloatingTopBottom=function(){return[this.eTop,this.eBottom]},pu([U("resizeObserverService")],e.prototype,"resizeObserverService",void 0),pu([z("rangeService")],e.prototype,"rangeService",void 0),pu([dn("eBodyViewport")],e.prototype,"eBodyViewport",void 0),pu([dn("eStickyTop")],e.prototype,"eStickyTop",void 0),pu([dn("eTop")],e.prototype,"eTop",void 0),pu([dn("eBottom")],e.prototype,"eBottom",void 0),pu([dn("gridHeader")],e.prototype,"headerRootComp",void 0),pu([dn("eBodyClipper")],e.prototype,"eBodyClipper",void 0),pu([dn("eBody")],e.prototype,"eBody",void 0),pu([B],e.prototype,"init",null),e}(cn),fu=function(){var t=function(e,o){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])})(e,o)};return function(e,o){function i(){this.constructor=e}t(e,o),e.prototype=null===o?Object.create(o):(i.prototype=o.prototype,new i)}}(),gu=function(t,e,o,i){var n,r=arguments.length,s=r<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,o):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,o,i);else for(var a=t.length-1;a>=0;a--)(n=t[a])&&(s=(r<3?n(s):r>3?n(e,o,s):n(e,o))||s);return r>3&&s&&Object.defineProperty(e,o,s),s},vu=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return fu(e,t),e.prototype.postConstruct=function(){this.addManagedListener(this.eventService,kt.EVENT_DISPLAYED_COLUMNS_CHANGED,this.onDisplayedColumnsChanged.bind(this)),this.addManagedListener(this.eventService,kt.EVENT_DISPLAYED_COLUMNS_WIDTH_CHANGED,this.onDisplayedColumnsWidthChanged.bind(this))},e.prototype.onDisplayedColumnsChanged=function(){this.update()},e.prototype.onDisplayedColumnsWidthChanged=function(){this.update()},e.prototype.update=function(){this.updateImpl(),setTimeout(this.updateImpl.bind(this),500)},e.prototype.updateImpl=function(){var t=this.ctrlsService.getCenterRowContainerCtrl();if(t){var e={horizontalScrollShowing:t.isHorizontalScrollShowing(),verticalScrollShowing:this.isVerticalScrollShowing()};this.setScrollsVisible(e)}},e.prototype.setScrollsVisible=function(t){if(this.horizontalScrollShowing!==t.horizontalScrollShowing||this.verticalScrollShowing!==t.verticalScrollShowing){this.horizontalScrollShowing=t.horizontalScrollShowing,this.verticalScrollShowing=t.verticalScrollShowing;var e={type:kt.EVENT_SCROLL_VISIBILITY_CHANGED};this.eventService.dispatchEvent(e)}},e.prototype.isHorizontalScrollShowing=function(){return this.horizontalScrollShowing},e.prototype.isVerticalScrollShowing=function(){return this.verticalScrollShowing},gu([U("ctrlsService")],e.prototype,"ctrlsService",void 0),gu([B],e.prototype,"postConstruct",null),e=gu([W("scrollVisibleService")],e)}(Mt),yu=function(){var t=function(e,o){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])})(e,o)};return function(e,o){function i(){this.constructor=e}t(e,o),e.prototype=null===o?Object.create(o):(i.prototype=o.prototype,new i)}}(),mu=function(t,e,o,i){var n,r=arguments.length,s=r<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,o):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,o,i);else for(var a=t.length-1;a>=0;a--)(n=t[a])&&(s=(r<3?n(s):r>3?n(e,o,s):n(e,o))||s);return r>3&&s&&Object.defineProperty(e,o,s),s},Cu=function(t){function o(){var e=null!==t&&t.apply(this,arguments)||this;return e.gridInstanceId=i.gridInstanceSequence.next(),e}var i;return yu(o,t),i=o,o.prototype.stampTopLevelGridCompWithGridInstance=function(t){t[i.GRID_DOM_KEY]=this.gridInstanceId},o.prototype.getRenderedCellForEvent=function(t){return Tt(this.gridOptionsService,t,Ol.DOM_DATA_KEY_CELL_CTRL)},o.prototype.isEventFromThisGrid=function(t){return this.isElementInThisGrid(t.target)},o.prototype.isElementInThisGrid=function(t){for(var o=t;o;){var n=o[i.GRID_DOM_KEY];if(e(n))return n===this.gridInstanceId;o=o.parentElement}return!1},o.prototype.getCellPositionForEvent=function(t){var e=this.getRenderedCellForEvent(t);return e?e.getCellPosition():null},o.prototype.getNormalisedPosition=function(t){var e,o,i=this.gridOptionsService.isDomLayout("normal"),n=t;if(null!=n.clientX||null!=n.clientY?(e=n.clientX,o=n.clientY):(e=n.x,o=n.y),i){var r=this.ctrlsService.getGridBodyCtrl(),s=r.getScrollFeature().getVScrollPosition();e+=r.getScrollFeature().getHScrollPosition().left,o+=s.top}return{x:e,y:o}},o.gridInstanceSequence=new Ji,o.GRID_DOM_KEY="__ag_grid_instance",mu([U("ctrlsService")],o.prototype,"ctrlsService",void 0),o=i=mu([W("mouseEventService")],o)}(Mt),wu=function(){var t=function(e,o){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])})(e,o)};return function(e,o){function i(){this.constructor=e}t(e,o),e.prototype=null===o?Object.create(o):(i.prototype=o.prototype,new i)}}(),Su=function(){return(Su=Object.assign||function(t){for(var e,o=1,i=arguments.length;o<i;o++)for(var n in e=arguments[o])Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t}).apply(this,arguments)},Eu=function(t,e,o,i){var n,r=arguments.length,s=r<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,o):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,o,i);else for(var a=t.length-1;a>=0;a--)(n=t[a])&&(s=(r<3?n(s):r>3?n(e,o,s):n(e,o))||s);return r>3&&s&&Object.defineProperty(e,o,s),s},Ru=function(t){function i(){var e=t.call(this)||this;return e.onPageDown=L(e.onPageDown,100),e.onPageUp=L(e.onPageUp,100),e}return wu(i,t),i.prototype.postConstruct=function(){var t=this;this.ctrlsService.whenReady((function(e){t.gridBodyCon=e.gridBodyCtrl}))},i.prototype.handlePageScrollingKey=function(t){var e=t.key,o=t.altKey,i=t.ctrlKey||t.metaKey,n=!!this.rangeService&&t.shiftKey,r=this.mouseEventService.getCellPositionForEvent(t),s=!1;switch(e){case Gi.PAGE_HOME:case Gi.PAGE_END:i||o||(this.onHomeOrEndKey(e),s=!0);break;case Gi.LEFT:case Gi.RIGHT:case Gi.UP:case Gi.DOWN:if(!r)return!1;!i||o||n||(this.onCtrlUpDownLeftRight(e,r),s=!0);break;case Gi.PAGE_DOWN:if(!r)return!1;i||o||(this.onPageDown(r),s=!0);break;case Gi.PAGE_UP:if(!r)return!1;i||o||(this.onPageUp(r),s=!0)}return s&&t.preventDefault(),s},i.prototype.navigateTo=function(t){var o=t.scrollIndex,i=t.scrollType,n=t.scrollColumn,r=t.focusIndex,s=t.focusColumn;if(e(n)&&!n.isPinned()&&this.gridBodyCon.getScrollFeature().ensureColumnVisible(n),e(o)&&this.gridBodyCon.getScrollFeature().ensureIndexVisible(o,i),t.isAsync||this.gridBodyCon.getScrollFeature().ensureIndexVisible(r),this.focusService.setFocusedCell({rowIndex:r,column:s,rowPinned:null,forceBrowserFocus:!0}),this.rangeService){var a={rowIndex:r,rowPinned:null,column:s};this.rangeService.setRangeToCell(a)}},i.prototype.onPageDown=function(t){var e=this.ctrlsService.getGridBodyCtrl().getScrollFeature().getVScrollPosition(),o=this.getViewportHeight(),i=this.paginationProxy.getPixelOffset(),n=e.top+o,r=this.paginationProxy.getRowIndexAtPixel(n+i);this.columnModel.isAutoRowHeightActive()?this.navigateToNextPageWithAutoHeight(t,r):this.navigateToNextPage(t,r)},i.prototype.onPageUp=function(t){var e=this.ctrlsService.getGridBodyCtrl().getScrollFeature().getVScrollPosition(),o=this.paginationProxy.getPixelOffset(),i=e.top,n=this.paginationProxy.getRowIndexAtPixel(i+o);this.columnModel.isAutoRowHeightActive()?this.navigateToNextPageWithAutoHeight(t,n,!0):this.navigateToNextPage(t,n,!0)},i.prototype.navigateToNextPage=function(t,e,o){void 0===o&&(o=!1);var i,n=this.getViewportHeight(),r=this.paginationProxy.getPageFirstRow(),s=this.paginationProxy.getPageLastRow(),a=this.paginationProxy.getPixelOffset(),l=this.paginationProxy.getRow(t.rowIndex),u=o?(null==l?void 0:l.rowHeight)-n-a:n-a,c=(null==l?void 0:l.rowTop)+u,p=this.paginationProxy.getRowIndexAtPixel(c+a);if(p===t.rowIndex){var d=o?-1:1;e=p=t.rowIndex+d}o?(i="bottom",p<r&&(p=r),e<r&&(e=r)):(i="top",p>s&&(p=s),e>s&&(e=s)),this.isRowTallerThanView(p)&&(e=p,i="top"),this.navigateTo({scrollIndex:e,scrollType:i,scrollColumn:null,focusIndex:p,focusColumn:t.column})},i.prototype.navigateToNextPageWithAutoHeight=function(t,e,o){var i=this;void 0===o&&(o=!1),this.navigateTo({scrollIndex:e,scrollType:o?"bottom":"top",scrollColumn:null,focusIndex:e,focusColumn:t.column}),setTimeout((function(){var n=i.getNextFocusIndexForAutoHeight(t,o);i.navigateTo({scrollIndex:e,scrollType:o?"bottom":"top",scrollColumn:null,focusIndex:n,focusColumn:t.column,isAsync:!0})}),50)},i.prototype.getNextFocusIndexForAutoHeight=function(t,e){var o;void 0===e&&(e=!1);for(var i=e?-1:1,n=this.getViewportHeight(),r=this.paginationProxy.getPageLastRow(),s=0,a=t.rowIndex;a>=0&&a<=r;){var l=this.paginationProxy.getRow(a);if(l){var u=null!==(o=l.rowHeight)&&void 0!==o?o:0;if(s+u>n)break;s+=u}a+=i}return Math.max(0,Math.min(a,r))},i.prototype.getViewportHeight=function(){var t=this.ctrlsService.getGridBodyCtrl().getScrollFeature().getVScrollPosition(),e=this.gridOptionsService.getScrollbarWidth(),o=t.bottom-t.top;return this.ctrlsService.getCenterRowContainerCtrl().isHorizontalScrollShowing()&&(o-=e),o},i.prototype.isRowTallerThanView=function(t){var e=this.paginationProxy.getRow(t);if(!e)return!1;var o=e.rowHeight;return"number"==typeof o&&o>this.getViewportHeight()},i.prototype.onCtrlUpDownLeftRight=function(t,e){var o=this.cellNavigationService.getNextCellToFocus(t,e,!0),i=o.rowIndex,n=o.column;this.navigateTo({scrollIndex:i,scrollType:null,scrollColumn:n,focusIndex:i,focusColumn:n})},i.prototype.onHomeOrEndKey=function(t){var e=t===Gi.PAGE_HOME,o=this.columnModel.getAllDisplayedColumns(),i=e?o[0]:ut(o),n=e?this.paginationProxy.getPageFirstRow():this.paginationProxy.getPageLastRow();this.navigateTo({scrollIndex:n,scrollType:null,scrollColumn:i,focusIndex:n,focusColumn:i})},i.prototype.onTabKeyDown=function(t,e){var o=e.shiftKey;if(this.tabToNextCellCommon(t,o,e))e.preventDefault();else if(o){var i=t.getRowPosition(),n=i.rowIndex;(i.rowPinned?0===n:n===this.paginationProxy.getPageFirstRow())&&(e.preventDefault(),this.focusService.focusLastHeader(e))}else t instanceof Ol&&t.focusCell(!0),this.focusService.focusNextGridCoreContainer(o)&&e.preventDefault()},i.prototype.tabToNextCell=function(t,e){var o=this.focusService.getFocusedCell();if(!o)return!1;var i=this.getCellByPosition(o);return!!(i||(i=this.rowRenderer.getRowByPosition(o))&&i.isFullWidth())&&this.tabToNextCellCommon(i,t,e)},i.prototype.tabToNextCellCommon=function(t,e,o){var i=t.isEditing();if(!i&&t instanceof Ol){var n=t.getRowCtrl();n&&(i=n.isEditing())}return(i?"fullRow"===this.gridOptionsService.get("editType")?this.moveToNextEditingRow(t,e,o):this.moveToNextEditingCell(t,e,o):this.moveToNextCellNotEditing(t,e))||!!this.focusService.getFocusedHeader()},i.prototype.moveToNextEditingCell=function(t,e,o){void 0===o&&(o=null);var i=t.getCellPosition();t.getGui().focus(),t.stopEditing();var n=this.findNextCellToFocusOn(i,e,!0);return null!=n&&(n.startEditing(null,null,!0,o),n.focusCell(!1),!0)},i.prototype.moveToNextEditingRow=function(t,e,o){void 0===o&&(o=null);var i=t.getCellPosition(),n=this.findNextCellToFocusOn(i,e,!0);if(null==n)return!1;var r=n.getCellPosition(),s=this.isCellEditable(i),a=this.isCellEditable(r),l=r&&i.rowIndex===r.rowIndex&&i.rowPinned===r.rowPinned;(s&&t.setFocusOutOnEditor(),l)||(t.getRowCtrl().stopEditing(),n.getRowCtrl().startRowEditing(void 0,void 0,void 0,o));return a?(n.setFocusInOnEditor(),n.focusCell()):n.focusCell(!0),!0},i.prototype.moveToNextCellNotEditing=function(t,o){var i,n=this.columnModel.getAllDisplayedColumns();i=t instanceof Fl?Su(Su({},t.getRowPosition()),{column:o?n[0]:ut(n)}):t.getCellPosition();var r=this.findNextCellToFocusOn(i,o,!1);if(r instanceof Ol)r.focusCell(!0);else if(r)return this.tryToFocusFullWidthRow(r.getRowPosition(),o);return e(r)},i.prototype.findNextCellToFocusOn=function(t,o,i){for(var n=t;;){t!==n&&(t=n),o||(n=this.getLastCellOfColSpan(n)),n=this.cellNavigationService.getNextTabbedCell(n,o);var r=this.gridOptionsService.getCallback("tabToNextCell");if(e(r)){var s=r({backwards:o,editing:i,previousCellPosition:t,nextCellPosition:n||null});e(s)?(s.floating&&(O((function(){console.warn("AG Grid: tabToNextCellFunc return type should have attributes: rowIndex, rowPinned, column. However you had 'floating', maybe you meant 'rowPinned'?")}),"no floating in userCell"),s.rowPinned=s.floating),n={rowIndex:s.rowIndex,column:s.column,rowPinned:s.rowPinned}):n=null}if(!n)return null;if(n.rowIndex<0){var a=this.headerNavigationService.getHeaderRowCount();return this.focusService.focusHeaderPosition({headerPosition:{headerRowIndex:a+n.rowIndex,column:n.column}}),null}var l="fullRow"===this.gridOptionsService.get("editType");if(i&&!l)if(!this.isCellEditable(n))continue;this.ensureCellVisible(n);var u=this.getCellByPosition(n);if(!u){var c=this.rowRenderer.getRowByPosition(n);if(!c||!c.isFullWidth()||i)continue;return c}if(!u.isSuppressNavigable())return this.rangeService&&this.rangeService.setRangeToCell(n),u}},i.prototype.isCellEditable=function(t){var e=this.lookupRowNodeForCell(t);return!!e&&t.column.isCellEditable(e)},i.prototype.getCellByPosition=function(t){var e=this.rowRenderer.getRowByPosition(t);return e?e.getCellCtrl(t.column):null},i.prototype.lookupRowNodeForCell=function(t){return"top"===t.rowPinned?this.pinnedRowModel.getPinnedTopRow(t.rowIndex):"bottom"===t.rowPinned?this.pinnedRowModel.getPinnedBottomRow(t.rowIndex):this.paginationProxy.getRow(t.rowIndex)},i.prototype.navigateToNextCell=function(t,i,n,r){for(var s=n,a=!1;s&&(s===n||!this.isValidNavigateCell(s));)this.gridOptionsService.is("enableRtl")?i===Gi.LEFT&&(s=this.getLastCellOfColSpan(s)):i===Gi.RIGHT&&(s=this.getLastCellOfColSpan(s)),a=o(s=this.cellNavigationService.getNextCellToFocus(i,s));if(a&&t&&t.key===Gi.UP&&(s={rowIndex:-1,rowPinned:null,column:n.column}),r){var l=this.gridOptionsService.getCallback("navigateToNextCell");if(e(l)){var u=l({key:i,previousCellPosition:n,nextCellPosition:s||null,event:t});e(u)?(u.floating&&(O((function(){console.warn("AG Grid: tabToNextCellFunc return type should have attributes: rowIndex, rowPinned, column. However you had 'floating', maybe you meant 'rowPinned'?")}),"no floating in userCell"),u.rowPinned=u.floating),s={rowPinned:u.rowPinned,rowIndex:u.rowIndex,column:u.column}):s=null}}if(s)if(s.rowIndex<0){var c=this.headerNavigationService.getHeaderRowCount();this.focusService.focusHeaderPosition({headerPosition:{headerRowIndex:c+s.rowIndex,column:n.column},event:t||void 0})}else{var p=this.getNormalisedPosition(s);p?this.focusPosition(p):this.tryToFocusFullWidthRow(s)}},i.prototype.getNormalisedPosition=function(t){this.ensureCellVisible(t);var e=this.getCellByPosition(t);return e?(t=e.getCellPosition(),this.ensureCellVisible(t),t):null},i.prototype.tryToFocusFullWidthRow=function(t,e){void 0===e&&(e=!1);var o=this.columnModel.getAllDisplayedColumns(),i=this.rowRenderer.getRowByPosition(t);if(!i||!i.isFullWidth())return!1;var n=this.focusService.getFocusedCell(),r={rowIndex:t.rowIndex,rowPinned:t.rowPinned,column:t.column||(e?ut(o):o[0])};this.focusPosition(r);var s=null!=n&&this.rowPositionUtils.before(r,n),a={type:kt.EVENT_FULL_WIDTH_ROW_FOCUSED,rowIndex:r.rowIndex,rowPinned:r.rowPinned,column:r.column,isFullWidthCell:!0,floating:r.rowPinned,fromBelow:s};return this.eventService.dispatchEvent(a),!0},i.prototype.focusPosition=function(t){this.focusService.setFocusedCell({rowIndex:t.rowIndex,column:t.column,rowPinned:t.rowPinned,forceBrowserFocus:!0}),this.rangeService&&this.rangeService.setRangeToCell(t)},i.prototype.isValidNavigateCell=function(t){return!!this.rowPositionUtils.getRowNode(t)},i.prototype.getLastCellOfColSpan=function(t){var e=this.getCellByPosition(t);if(!e)return t;var o=e.getColSpanningList();return 1===o.length?t:{rowIndex:t.rowIndex,column:ut(o),rowPinned:t.rowPinned}},i.prototype.ensureCellVisible=function(t){var e=this.gridOptionsService.is("groupRowsSticky"),i=this.rowModel.getRow(t.rowIndex);!(e&&(null==i?void 0:i.sticky))&&o(t.rowPinned)&&this.gridBodyCon.getScrollFeature().ensureIndexVisible(t.rowIndex),t.column.isPinned()||this.gridBodyCon.getScrollFeature().ensureColumnVisible(t.column)},Eu([U("mouseEventService")],i.prototype,"mouseEventService",void 0),Eu([U("paginationProxy")],i.prototype,"paginationProxy",void 0),Eu([U("focusService")],i.prototype,"focusService",void 0),Eu([z("rangeService")],i.prototype,"rangeService",void 0),Eu([U("columnModel")],i.prototype,"columnModel",void 0),Eu([U("rowModel")],i.prototype,"rowModel",void 0),Eu([U("ctrlsService")],i.prototype,"ctrlsService",void 0),Eu([U("rowRenderer")],i.prototype,"rowRenderer",void 0),Eu([U("headerNavigationService")],i.prototype,"headerNavigationService",void 0),Eu([U("rowPositionUtils")],i.prototype,"rowPositionUtils",void 0),Eu([U("cellNavigationService")],i.prototype,"cellNavigationService",void 0),Eu([U("pinnedRowModel")],i.prototype,"pinnedRowModel",void 0),Eu([B],i.prototype,"postConstruct",null),i=Eu([W("navigationService")],i)}(Mt),Ou=function(){var t=function(e,o){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])})(e,o)};return function(e,o){function i(){this.constructor=e}t(e,o),e.prototype=null===o?Object.create(o):(i.prototype=o.prototype,new i)}}(),bu=function(t,e,o,i){var n,r=arguments.length,s=r<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,o):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,o,i);else for(var a=t.length-1;a>=0;a--)(n=t[a])&&(s=(r<3?n(s):r>3?n(e,o,s):n(e,o))||s);return r>3&&s&&Object.defineProperty(e,o,s),s},Tu=function(t){function e(e){var o=t.call(this,'<div class="ag-popup-editor" tabindex="-1"/>')||this;return o.params=e,o}return Ou(e,t),e.prototype.postConstruct=function(){this.gridOptionsService.setDomData(this.getGui(),e.DOM_KEY_POPUP_EDITOR_WRAPPER,!0),this.addKeyDownListener()},e.prototype.addKeyDownListener=function(){var t=this,e=this.getGui(),o=this.params;this.addManagedListener(e,"keydown",(function(e){Hi(t.gridOptionsService,e,o.node,o.column,!0)||o.onKeyDown(e)}))},e.DOM_KEY_POPUP_EDITOR_WRAPPER="popupEditorWrapper",bu([B],e.prototype,"postConstruct",null),e}($r),Pu=function(){var t=function(e,o){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])})(e,o)};return function(e,o){function i(){this.constructor=e}t(e,o),e.prototype=null===o?Object.create(o):(i.prototype=o.prototype,new i)}}(),Du=function(t){function e(e,o,i,n,r){var s=t.call(this)||this;s.rendererVersion=0,s.editorVersion=0,s.beans=e,s.column=o.getColumn(),s.rowNode=o.getRowNode(),s.rowCtrl=o.getRowCtrl(),s.eRow=n,s.setTemplate('<div comp-id="'+s.getCompId()+'"/>');var a=s.getGui();s.forceWrapper=o.isForceWrapper(),s.refreshWrapper(!1);var l=function(t,e,o){var i=o||a;null!=e&&""!=e?i.setAttribute(t,e):i.removeAttribute(t)},u={addOrRemoveCssClass:function(t,e){return s.addOrRemoveCssClass(t,e)},setUserStyles:function(t){return Ci(a,t)},getFocusableElement:function(){return s.getFocusableElement()},setTabIndex:function(t){return l("tabindex",t.toString())},setRole:function(t){return ke(a,t)},setColId:function(t){return l("col-id",t)},setTitle:function(t){return l("title",t)},setIncludeSelection:function(t){return s.includeSelection=t},setIncludeRowDrag:function(t){return s.includeRowDrag=t},setIncludeDndSource:function(t){return s.includeDndSource=t},setRenderDetails:function(t,e,o){return s.setRenderDetails(t,e,o)},setEditDetails:function(t,e,o){return s.setEditDetails(t,e,o)},getCellEditor:function(){return s.cellEditor||null},getCellRenderer:function(){return s.cellRenderer||null},getParentOfValue:function(){return s.getParentOfValue()}};return s.cellCtrl=o,o.setComp(u,s.getGui(),s.eCellWrapper,i,r),s}return Pu(e,t),e.prototype.getParentOfValue=function(){return this.eCellValue?this.eCellValue:this.eCellWrapper?this.eCellWrapper:this.getGui()},e.prototype.setRenderDetails=function(t,e,o){if(!(this.cellEditor&&!this.cellEditorPopupWrapper)){this.firstRender=null==this.firstRender;var i=this.refreshWrapper(!1);if(this.refreshEditStyles(!1),t)!(o||i)&&this.refreshCellRenderer(t)||(this.destroyRenderer(),this.createCellRendererInstance(t));else this.destroyRenderer(),this.insertValueWithoutCellRenderer(e)}},e.prototype.setEditDetails=function(t,e,o){t?this.createCellEditorInstance(t,e,o):this.destroyEditor()},e.prototype.removeControls=function(){this.checkboxSelectionComp=this.beans.context.destroyBean(this.checkboxSelectionComp),this.dndSourceComp=this.beans.context.destroyBean(this.dndSourceComp),this.rowDraggingComp=this.beans.context.destroyBean(this.rowDraggingComp)},e.prototype.refreshWrapper=function(t){var e=this.includeRowDrag||this.includeDndSource||this.includeSelection,o=e||this.forceWrapper,i=o&&null==this.eCellWrapper;i&&(this.eCellWrapper=hi('<div class="ag-cell-wrapper" role="presentation"></div>'),this.getGui().appendChild(this.eCellWrapper));var n=!o&&null!=this.eCellWrapper;n&&(pi(this.eCellWrapper),this.eCellWrapper=void 0),this.addOrRemoveCssClass("ag-cell-value",!o);var r=!t&&o,s=r&&null==this.eCellValue;s&&(this.eCellValue=hi('<span class="ag-cell-value" role="presentation"></span>'),this.eCellWrapper.appendChild(this.eCellValue));var a=!r&&null!=this.eCellValue;a&&(pi(this.eCellValue),this.eCellValue=void 0);var l=i||n||s||a;return l&&this.removeControls(),t||e&&this.addControls(),l},e.prototype.addControls=function(){this.includeRowDrag&&null==this.rowDraggingComp&&(this.rowDraggingComp=this.cellCtrl.createRowDragComp(),this.rowDraggingComp&&this.eCellWrapper.insertBefore(this.rowDraggingComp.getGui(),this.eCellValue)),this.includeDndSource&&null==this.dndSourceComp&&(this.dndSourceComp=this.cellCtrl.createDndSource(),this.eCellWrapper.insertBefore(this.dndSourceComp.getGui(),this.eCellValue)),this.includeSelection&&null==this.checkboxSelectionComp&&(this.checkboxSelectionComp=this.cellCtrl.createSelectionCheckbox(),this.eCellWrapper.insertBefore(this.checkboxSelectionComp.getGui(),this.eCellValue))},e.prototype.createCellEditorInstance=function(t,e,i){var n=this,r=this.editorVersion,s=t.newAgStackInstance();if(s){var a=t.params;s.then((function(t){return n.afterCellEditorCreated(r,t,a,e,i)})),o(this.cellEditor)&&a.cellStartedEdit&&this.cellCtrl.focusCell(!0)}},e.prototype.insertValueWithoutCellRenderer=function(t){var e=this.getParentOfValue();ci(e);var o=null!=t?fe(t):null;null!=o&&(e.innerHTML=o)},e.prototype.destroyEditorAndRenderer=function(){this.destroyRenderer(),this.destroyEditor()},e.prototype.destroyRenderer=function(){var t=this.beans.context;this.cellRenderer=t.destroyBean(this.cellRenderer),pi(this.cellRendererGui),this.cellRendererGui=null,this.rendererVersion++},e.prototype.destroyEditor=function(){var t=this.beans.context;this.hideEditorPopup&&this.hideEditorPopup(),this.hideEditorPopup=void 0,this.cellEditor=t.destroyBean(this.cellEditor),this.cellEditorPopupWrapper=t.destroyBean(this.cellEditorPopupWrapper),pi(this.cellEditorGui),this.cellEditorGui=null,this.editorVersion++},e.prototype.refreshCellRenderer=function(t){if(null==this.cellRenderer||null==this.cellRenderer.refresh)return!1;if(this.cellRendererClass!==t.componentClass)return!1;var e=this.cellRenderer.refresh(t.params);return!0===e||void 0===e},e.prototype.createCellRendererInstance=function(t){var e=this,o=!this.beans.gridOptionsService.is("suppressAnimationFrame"),i=this.rendererVersion,n=t.componentClass,r=function(){if(!(e.rendererVersion!==i||!e.isAlive())){var o=t.newAgStackInstance(),r=e.afterCellRendererCreated.bind(e,i,n);o&&o.then(r)}};o&&this.firstRender?this.beans.animationFrameService.createTask(r,this.rowNode.rowIndex,"createTasksP2"):r()},e.prototype.getCtrl=function(){return this.cellCtrl},e.prototype.getRowCtrl=function(){return this.rowCtrl},e.prototype.getCellRenderer=function(){return this.cellRenderer},e.prototype.getCellEditor=function(){return this.cellEditor},e.prototype.afterCellRendererCreated=function(t,e,o){if(!this.isAlive()||t!==this.rendererVersion)this.beans.context.destroyBean(o);else if(this.cellRenderer=o,this.cellRendererClass=e,this.cellRendererGui=this.cellRenderer.getGui(),null!=this.cellRendererGui){var i=this.getParentOfValue();ci(i),i.appendChild(this.cellRendererGui)}},e.prototype.afterCellEditorCreated=function(t,e,o,i,n){if(t!==this.editorVersion)this.beans.context.destroyBean(e);else{if(e.isCancelBeforeStart&&e.isCancelBeforeStart())return this.beans.context.destroyBean(e),void this.cellCtrl.stopEditing(!0);if(!e.getGui)return console.warn("AG Grid: cellEditor for column "+this.column.getId()+" is missing getGui() method"),void this.beans.context.destroyBean(e);this.cellEditor=e,this.cellEditorGui=e.getGui();var r=i||void 0!==e.isPopup&&e.isPopup();r?this.addPopupCellEditor(o,n):this.addInCellEditor(),this.refreshEditStyles(!0,r),e.afterGuiAttached&&e.afterGuiAttached()}},e.prototype.refreshEditStyles=function(t,e){var o;this.addOrRemoveCssClass("ag-cell-inline-editing",t&&!e),this.addOrRemoveCssClass("ag-cell-popup-editing",t&&!!e),this.addOrRemoveCssClass("ag-cell-not-inline-editing",!t||!!e),null===(o=this.rowCtrl)||void 0===o||o.setInlineEditingCss(t)},e.prototype.addInCellEditor=function(){var t=this.getGui(),e=this.beans.gridOptionsService.getDocument();(t.contains(e.activeElement)&&t.focus(),this.destroyRenderer(),this.refreshWrapper(!0),this.clearParentOfValue(),this.cellEditorGui)&&this.getParentOfValue().appendChild(this.cellEditorGui)},e.prototype.addPopupCellEditor=function(t,e){var o=this;"fullRow"===this.beans.gridOptionsService.get("editType")&&console.warn("AG Grid: popup cellEditor does not work with fullRowEdit - you cannot use them both - either turn off fullRowEdit, or stop using popup editors.");var i=this.cellEditor;this.cellEditorPopupWrapper=this.beans.context.createBean(new Tu(t));var n=this.cellEditorPopupWrapper.getGui();this.cellEditorGui&&n.appendChild(this.cellEditorGui);var r=this.beans.popupService,s=this.beans.gridOptionsService.is("stopEditingWhenCellsLoseFocus"),a=null!=e?e:i.getPopupPosition?i.getPopupPosition():"over",l=this.beans.gridOptionsService.is("enableRtl"),u={ePopup:n,column:this.column,rowNode:this.rowNode,type:"popupCellEditor",eventSource:this.getGui(),position:a,alignSide:l?"right":"left",keepWithinBounds:!0},c=r.positionPopupByComponent.bind(r,u),p=this.beans.localeService.getLocaleTextFunc(),d=r.addPopup({modal:s,eChild:n,closeOnEsc:!0,closedCallback:function(){o.cellCtrl.onPopupEditorClosed()},anchorToElement:this.getGui(),positionCallback:c,ariaLabel:p("ariaLabelCellEditor","Cell Editor")});d&&(this.hideEditorPopup=d.hideFunc)},e.prototype.detach=function(){this.eRow.removeChild(this.getGui())},e.prototype.destroy=function(){this.cellCtrl.stopEditing(),this.destroyEditorAndRenderer(),this.removeControls(),t.prototype.destroy.call(this)},e.prototype.clearParentOfValue=function(){var t=this.getGui(),e=this.beans.gridOptionsService.getDocument();t.contains(e.activeElement)&&Do()&&t.focus({preventScroll:!0}),ci(this.getParentOfValue())},e}(cn),_u=function(){var t=function(e,o){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])})(e,o)};return function(e,o){function i(){this.constructor=e}t(e,o),e.prototype=null===o?Object.create(o):(i.prototype=o.prototype,new i)}}(),Au=function(t){function e(e,o,i){var n=t.call(this)||this;n.cellComps={},n.beans=o,n.rowCtrl=e,n.setTemplate('<div comp-id="'+n.getCompId()+'" style="'+n.getInitialStyle(i)+'"/>');var r=n.getGui(),s=r.style,a={setDomOrder:function(t){return n.domOrder=t},setCellCtrls:function(t){return n.setCellCtrls(t)},showFullWidth:function(t){return n.showFullWidth(t)},getFullWidthCellRenderer:function(){return n.getFullWidthCellRenderer()},addOrRemoveCssClass:function(t,e){return n.addOrRemoveCssClass(t,e)},setUserStyles:function(t){return Ci(r,t)},setTop:function(t){return s.top=t},setTransform:function(t){return s.transform=t},setRowIndex:function(t){return r.setAttribute("row-index",t)},setRole:function(t){return ke(r,t)},setRowId:function(t){return r.setAttribute("row-id",t)},setRowBusinessKey:function(t){return r.setAttribute("row-business-key",t)},setTabIndex:function(t){return r.setAttribute("tabindex",t.toString())}};return e.setComp(a,n.getGui(),i),n.addDestroyFunc((function(){e.unsetComp(i)})),n}return _u(e,t),e.prototype.getInitialStyle=function(t){var e=this.rowCtrl.getInitialTransform(t),o=this.rowCtrl.getInitialRowTop(t);return e?"transform: "+e:"top: "+o},e.prototype.showFullWidth=function(t){var e=this,o=t.newAgStackInstance();o&&o.then((function(t){if(e.isAlive()){var o=t.getGui();e.getGui().appendChild(o),e.rowCtrl.setupDetailRowAutoHeight(o),e.setFullWidthRowComp(t)}else e.beans.context.destroyBean(t)}))},e.prototype.setCellCtrls=function(t){var e=this,o=Object.assign({},this.cellComps);t.forEach((function(t){var i=t.getInstanceId();null==e.cellComps[i]?e.newCellComp(t):o[i]=null}));var i=y(o).filter((function(t){return null!=t}));this.destroyCells(i),this.ensureDomOrder(t)},e.prototype.ensureDomOrder=function(t){var e=this;if(this.domOrder){var o=[];t.forEach((function(t){var i=e.cellComps[t.getInstanceId()];i&&o.push(i.getGui())})),yi(this.getGui(),o)}},e.prototype.newCellComp=function(t){var e=new Du(this.beans,t,this.rowCtrl.isPrintLayout(),this.getGui(),this.rowCtrl.isEditing());this.cellComps[t.getInstanceId()]=e,this.getGui().appendChild(e.getGui())},e.prototype.destroy=function(){t.prototype.destroy.call(this),this.destroyAllCells()},e.prototype.destroyAllCells=function(){var t=y(this.cellComps).filter((function(t){return null!=t}));this.destroyCells(t)},e.prototype.setFullWidthRowComp=function(t){var e=this;this.fullWidthCellRenderer&&console.error("AG Grid - should not be setting fullWidthRowComponent twice"),this.fullWidthCellRenderer=t,this.addDestroyFunc((function(){e.fullWidthCellRenderer=e.beans.context.destroyBean(e.fullWidthCellRenderer)}))},e.prototype.getFullWidthCellRenderer=function(){return this.fullWidthCellRenderer},e.prototype.destroyCells=function(t){var e=this;t.forEach((function(t){if(t){var o=t.getCtrl().getInstanceId();e.cellComps[o]===t&&(t.detach(),t.destroy(),e.cellComps[o]=null)}}))},e}(cn),Nu=function(){var t=function(e,o){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])})(e,o)};return function(e,o){function i(){this.constructor=e}t(e,o),e.prototype=null===o?Object.create(o):(i.prototype=o.prototype,new i)}}(),Fu=function(){return(Fu=Object.assign||function(t){for(var e,o=1,i=arguments.length;o<i;o++)for(var n in e=arguments[o])Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t}).apply(this,arguments)},Lu=function(t,e,o,i){var n,r=arguments.length,s=r<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,o):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,o,i);else for(var a=t.length-1;a>=0;a--)(n=t[a])&&(s=(r<3?n(s):r>3?n(e,o,s):n(e,o))||s);return r>3&&s&&Object.defineProperty(e,o,s),s};var Mu,Iu=function(t){function e(){var e,o,i,n,r=t.call(this,(e=cn.elementGettingCreated.getAttribute("name"),o=uu.getRowContainerCssClasses(e),i=e===_l.CENTER,n=e===_l.TOP_CENTER||e===_l.STICKY_TOP_CENTER||e===_l.BOTTOM_CENTER,i?'<div class="'+o.wrapper+'" ref="eWrapper" role="presentation">\n <div class="'+o.viewport+'" ref="eViewport" role="presentation">\n <div class="'+o.container+'" ref="eContainer"></div>\n </div>\n </div>':n?'<div class="'+o.viewport+'" ref="eViewport" role="presentation">\n <div class="'+o.container+'" ref="eContainer"></div>\n </div>':'<div class="'+o.container+'" ref="eContainer"></div>'))||this;return r.rowComps={},r.name=cn.elementGettingCreated.getAttribute("name"),r.type=ru(r.name),r}return Nu(e,t),e.prototype.postConstruct=function(){var t=this,e={setViewportHeight:function(e){return t.eViewport.style.height=e},setRowCtrls:function(e){return t.setRowCtrls(e)},setDomOrder:function(e){t.domOrder=e},setContainerWidth:function(e){return t.eContainer.style.width=e}};this.createManagedBean(new uu(this.name)).setComp(e,this.eContainer,this.eViewport,this.eWrapper)},e.prototype.preDestroy=function(){this.setRowCtrls([])},e.prototype.setRowCtrls=function(t){var e=this,o=Fu({},this.rowComps);this.rowComps={},this.lastPlacedElement=null;t.forEach((function(t){var i=t.getInstanceId(),n=o[i];if(n)e.rowComps[i]=n,delete o[i],e.ensureDomOrder(n.getGui());else{var r=new Au(t,e.beans,e.type);e.rowComps[i]=r,e.appendRow(r.getGui())}})),y(o).forEach((function(t){e.eContainer.removeChild(t.getGui()),t.destroy()})),ke(this.eContainer,t.length?"rowgroup":"presentation")},e.prototype.appendRow=function(t){this.domOrder?mi(this.eContainer,t,this.lastPlacedElement):this.eContainer.appendChild(t),this.lastPlacedElement=t},e.prototype.ensureDomOrder=function(t){this.domOrder&&(vi(this.eContainer,t,this.lastPlacedElement),this.lastPlacedElement=t)},Lu([U("beans")],e.prototype,"beans",void 0),Lu([dn("eViewport")],e.prototype,"eViewport",void 0),Lu([dn("eContainer")],e.prototype,"eContainer",void 0),Lu([dn("eWrapper")],e.prototype,"eWrapper",void 0),Lu([B],e.prototype,"postConstruct",null),Lu([j],e.prototype,"preDestroy",null),e}(cn),Gu=function(t,e,o,i){var n,r=arguments.length,s=r<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,o):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,o,i);else for(var a=t.length-1;a>=0;a--)(n=t[a])&&(s=(r<3?n(s):r>3?n(e,o,s):n(e,o))||s);return r>3&&s&&Object.defineProperty(e,o,s),s},xu=function(){function t(t){this.columnsToAggregate=[],this.columnsToGroup=[],this.columnsToPivot=[],this.pinned=t}return t.prototype.onDragEnter=function(t){var e=this;if(this.clearColumnsList(),!this.gridOptionsService.is("functionsReadOnly")){var o=t.dragItem.columns;o&&o.forEach((function(t){t.isPrimary()&&(t.isAnyFunctionActive()||(t.isAllowValue()?e.columnsToAggregate.push(t):t.isAllowRowGroup()?e.columnsToGroup.push(t):t.isAllowPivot()&&e.columnsToPivot.push(t)))}))}},t.prototype.getIconName=function(){return this.columnsToAggregate.length+this.columnsToGroup.length+this.columnsToPivot.length>0?this.pinned?bs.ICON_PINNED:bs.ICON_MOVE:null},t.prototype.onDragLeave=function(t){this.clearColumnsList()},t.prototype.clearColumnsList=function(){this.columnsToAggregate.length=0,this.columnsToGroup.length=0,this.columnsToPivot.length=0},t.prototype.onDragging=function(t){},t.prototype.onDragStop=function(t){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")},Gu([U("columnModel")],t.prototype,"columnModel",void 0),Gu([U("gridOptionsService")],t.prototype,"gridOptionsService",void 0),t}(),Hu=function(t,e,o,i){var n,r=arguments.length,s=r<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,o):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,o,i);else for(var a=t.length-1;a>=0;a--)(n=t[a])&&(s=(r<3?n(s):r>3?n(e,o,s):n(e,o))||s);return r>3&&s&&Object.defineProperty(e,o,s),s},Vu=function(t,e){var o="function"==typeof Symbol&&t[Symbol.iterator];if(!o)return t;var i,n,r=o.call(t),s=[];try{for(;(void 0===e||e-- >0)&&!(i=r.next()).done;)s.push(i.value)}catch(t){n={error:t}}finally{try{i&&!i.done&&(o=r.return)&&o.call(r)}finally{if(n)throw n.error}}return s},ku=function(){function t(t,o){this.needToMoveLeft=!1,this.needToMoveRight=!1,this.lastMovedInfo=null,this.pinned=t,this.eContainer=o,this.centerContainer=!e(t)}return t.prototype.init=function(){var t=this;this.ctrlsService.whenReady((function(){t.gridBodyCon=t.ctrlsService.getGridBodyCtrl()}))},t.prototype.getIconName=function(){return this.pinned?bs.ICON_PINNED:bs.ICON_MOVE},t.prototype.onDragEnter=function(t){var e=t.dragItem.columns;if(t.dragSource.type===br.ToolPanel)this.setColumnsVisible(e,!0,"uiColumnDragged");else{var o=t.dragItem.visibleState,i=(e||[]).filter((function(t){return o[t.getId()]}));this.setColumnsVisible(i,!0,"uiColumnDragged")}this.setColumnsPinned(e,this.pinned,"uiColumnDragged"),this.onDragging(t,!0,!0)},t.prototype.onDragLeave=function(){this.ensureIntervalCleared(),this.lastMovedInfo=null},t.prototype.setColumnsVisible=function(t,e,o){if(void 0===o&&(o="api"),t){var i=t.filter((function(t){return!t.getColDef().lockVisible}));this.columnModel.setColumnsVisible(i,e,o)}},t.prototype.setColumnsPinned=function(t,e,o){if(void 0===o&&(o="api"),t){var i=t.filter((function(t){return!t.getColDef().lockPinned}));this.columnModel.setColumnsPinned(i,e,o)}},t.prototype.onDragStop=function(){this.onDragging(this.lastDraggingEvent,!1,!0,!0),this.ensureIntervalCleared(),this.lastMovedInfo=null},t.prototype.normaliseX=function(t){this.gridOptionsService.is("enableRtl")&&(t=this.eContainer.clientWidth-t);return this.centerContainer&&(t+=this.ctrlsService.getCenterRowContainerCtrl().getCenterViewportScrollLeft()),t},t.prototype.checkCenterForScrolling=function(t){if(this.centerContainer){var e=this.ctrlsService.getCenterRowContainerCtrl().getCenterViewportScrollLeft(),o=e+this.ctrlsService.getCenterRowContainerCtrl().getCenterWidth();this.gridOptionsService.is("enableRtl")?(this.needToMoveRight=t<e+50,this.needToMoveLeft=t>o-50):(this.needToMoveLeft=t<e+50,this.needToMoveRight=t>o-50),this.needToMoveLeft||this.needToMoveRight?this.ensureIntervalStarted():this.ensureIntervalCleared()}},t.prototype.onDragging=function(t,e,i,n){var r,s=this;if(void 0===t&&(t=this.lastDraggingEvent),void 0===e&&(e=!1),void 0===i&&(i=!1),void 0===n&&(n=!1),n){if(this.lastMovedInfo){var a=this.lastMovedInfo,l=a.columns,u=a.toIndex;this.moveColumns(l,u,"uiColumnMoved",!0)}}else if(this.lastDraggingEvent=t,!o(t.hDirection)){var c=this.normaliseX(t.x);e||this.checkCenterForScrolling(c);var p=this.normaliseDirection(t.hDirection),d=t.dragSource.type,h=(null===(r=t.dragSource.getDragItem().columns)||void 0===r?void 0:r.filter((function(t){return!t.getColDef().lockPinned||t.getPinned()==s.pinned})))||[];this.attemptMoveColumns({dragSourceType:d,allMovingColumns:h,hDirection:p,mouseX:c,fromEnter:e,fakeEvent:i})}},t.prototype.normaliseDirection=function(t){if(!this.gridOptionsService.is("enableRtl"))return t;switch(t){case Pr.Left:return Pr.Right;case Pr.Right:return Pr.Left;default:console.error("AG Grid: Unknown direction "+t)}},t.prototype.attemptMoveColumns=function(t){var e=t.dragSourceType,o=t.hDirection,i=t.mouseX,n=t.fromEnter,r=t.fakeEvent,s=o===Pr.Left,a=o===Pr.Right,l=t.allMovingColumns;if(e===br.HeaderCell){var u=[];l.forEach((function(t){for(var e=null,o=t.getParent();null!=o&&1===o.getDisplayedLeafColumns().length;)e=o,o=o.getParent();null!=e?e.getLeafColumns().forEach((function(t){u.includes(t)||u.push(t)})):u.includes(t)||u.push(t)})),l=u}var c=l.slice();this.columnModel.sortColumnsLikeGridColumns(c);var p=this.calculateValidMoves(c,a,i),d=this.calculateOldIndex(c);if(0!==p.length){var h=p[0],f=null!==d&&!n;if(e==br.HeaderCell&&(f=null!==d),f&&!r){if(s&&h>=d)return;if(a&&h<=d)return}for(var g=this.columnModel.getAllDisplayedColumns(),v=[],y=null,m=0;m<p.length;m++){var C=p[m],w=this.columnModel.getProposedColumnOrder(c,C);if(this.columnModel.doesOrderPassRules(w)){var S=w.filter((function(t){return g.includes(t)}));if(null===y)y=S;else if(!Xi.areEqual(S,y))break;var E=this.groupFragCount(w);v.push({move:C,fragCount:E})}}0!==v.length&&(v.sort((function(t,e){return t.fragCount-e.fragCount})),this.moveColumns(l,v[0].move,"uiColumnMoved",!1))}},t.prototype.calculateOldIndex=function(t){var e=this.columnModel.getAllGridColumns(),o=pt(t.map((function(t){return e.indexOf(t)}))),i=o[0];return ut(o)-i!==o.length-1?null:i},t.prototype.moveColumns=function(t,e,o,i){this.columnModel.moveColumns(t,e,o,i),this.lastMovedInfo=i?null:{columns:t,toIndex:e}},t.prototype.groupFragCount=function(t){function e(t){for(var e=[],o=t.getOriginalParent();null!=o;)e.push(o),o=o.getOriginalParent();return e}for(var o=0,i=function(i){var n,r=e(t[i]),s=e(t[i+1]);r=(n=Vu(r.length>s.length?[r,s]:[s,r],2))[0],s=n[1],r.forEach((function(t){-1===s.indexOf(t)&&o++}))},n=0;n<t.length-1;n++)i(n);return o},t.prototype.calculateValidMoves=function(t,e,o){if(this.gridOptionsService.is("suppressMovableColumns")||t.some((function(t){return t.getColDef().suppressMovable})))return[];var i,n=this.columnModel.getDisplayedColumns(this.pinned),r=this.columnModel.getAllGridColumns(),s=n.filter((function(e){return vt(t,e)})),a=n.filter((function(e){return!vt(t,e)})),l=r.filter((function(e){return!vt(t,e)})),u=0,c=o;if(e){var p=0;s.forEach((function(t){return p+=t.getActualWidth()})),c-=p}if(c>0){for(var d=0;d<a.length;d++){if((c-=a[d].getActualWidth())<0)break;u++}e&&u++}if(u>0){var h=a[u-1];i=l.indexOf(h)+1}else-1===(i=l.indexOf(a[0]))&&(i=0);var f=[i],g=function(t,e){return t-e};if(e){for(var v=i+1,y=r.length-1;v<=y;)f.push(v),v++;f.sort(g)}else{v=i,y=r.length-1;for(var m=r[v];v<=y&&this.isColumnHidden(n,m);)v++,f.push(v),m=r[v];v=i-1;for(;v>=0;)f.push(v),v--;f.sort(g).reverse()}return f},t.prototype.isColumnHidden=function(t,e){return t.indexOf(e)<0},t.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(bs.ICON_LEFT,!0):this.dragAndDropService.setGhostIcon(bs.ICON_RIGHT,!0))},t.prototype.ensureIntervalCleared=function(){this.movingIntervalId&&(window.clearInterval(this.movingIntervalId),this.movingIntervalId=null,this.dragAndDropService.setGhostIcon(bs.ICON_MOVE))},t.prototype.moveInterval=function(){var t;this.intervalCount++,(t=10+5*this.intervalCount)>100&&(t=100);var e=null,o=this.gridBodyCon.getScrollFeature();if(this.needToMoveLeft?e=o.scrollHorizontally(-t):this.needToMoveRight&&(e=o.scrollHorizontally(t)),0!==e)this.onDragging(this.lastDraggingEvent),this.failedMoveAttempts=0;else{this.failedMoveAttempts++;var i=this.lastDraggingEvent.dragItem.columns.filter((function(t){return!t.getColDef().lockPinned}));if(i.length>0&&(this.dragAndDropService.setGhostIcon(bs.ICON_PINNED),this.failedMoveAttempts>7)){var n=this.needToMoveLeft?"left":"right";this.setColumnsPinned(i,n,"uiColumnDragged"),this.dragAndDropService.nudge()}}},Hu([U("columnModel")],t.prototype,"columnModel",void 0),Hu([U("dragAndDropService")],t.prototype,"dragAndDropService",void 0),Hu([U("gridOptionsService")],t.prototype,"gridOptionsService",void 0),Hu([U("ctrlsService")],t.prototype,"ctrlsService",void 0),Hu([B],t.prototype,"init",null),t}(),Bu=function(){var t=function(e,o){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])})(e,o)};return function(e,o){function i(){this.constructor=e}t(e,o),e.prototype=null===o?Object.create(o):(i.prototype=o.prototype,new i)}}(),ju=function(t,e,o,i){var n,r=arguments.length,s=r<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,o):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,o,i);else for(var a=t.length-1;a>=0;a--)(n=t[a])&&(s=(r<3?n(s):r>3?n(e,o,s):n(e,o))||s);return r>3&&s&&Object.defineProperty(e,o,s),s},Wu=function(t){function e(e,o){var i=t.call(this)||this;return i.pinned=e,i.eContainer=o,i}return Bu(e,t),e.prototype.postConstruct=function(){var t=this;this.ctrlsService.whenReady((function(e){switch(t.pinned){case"left":t.eSecondaryContainers=[[e.gridBodyCtrl.getBodyViewportElement(),e.leftRowContainerCtrl.getContainerElement()],[e.bottomLeftRowContainerCtrl.getContainerElement()],[e.topLeftRowContainerCtrl.getContainerElement()]];break;case"right":t.eSecondaryContainers=[[e.gridBodyCtrl.getBodyViewportElement(),e.rightRowContainerCtrl.getContainerElement()],[e.bottomRightRowContainerCtrl.getContainerElement()],[e.topRightRowContainerCtrl.getContainerElement()]];break;default:t.eSecondaryContainers=[[e.gridBodyCtrl.getBodyViewportElement(),e.centerRowContainerCtrl.getViewportElement()],[e.bottomCenterRowContainerCtrl.getViewportElement()],[e.topCenterRowContainerCtrl.getViewportElement()]]}}))},e.prototype.isInterestedIn=function(t){return t===br.HeaderCell||t===br.ToolPanel&&this.gridOptionsService.is("allowDragFromColumnsToolPanel")},e.prototype.getSecondaryContainers=function(){return this.eSecondaryContainers},e.prototype.getContainer=function(){return this.eContainer},e.prototype.init=function(){this.moveColumnFeature=this.createManagedBean(new ku(this.pinned,this.eContainer)),this.bodyDropPivotTarget=this.createManagedBean(new xu(this.pinned)),this.dragAndDropService.addDropTarget(this)},e.prototype.getIconName=function(){return this.currentDropListener.getIconName()},e.prototype.isDropColumnInPivotMode=function(t){return this.columnModel.isPivotMode()&&t.dragSource.type===br.ToolPanel},e.prototype.onDragEnter=function(t){this.currentDropListener=this.isDropColumnInPivotMode(t)?this.bodyDropPivotTarget:this.moveColumnFeature,this.currentDropListener.onDragEnter(t)},e.prototype.onDragLeave=function(t){this.currentDropListener.onDragLeave(t)},e.prototype.onDragging=function(t){this.currentDropListener.onDragging(t)},e.prototype.onDragStop=function(t){this.currentDropListener.onDragStop(t)},ju([U("dragAndDropService")],e.prototype,"dragAndDropService",void 0),ju([U("columnModel")],e.prototype,"columnModel",void 0),ju([U("ctrlsService")],e.prototype,"ctrlsService",void 0),ju([B],e.prototype,"postConstruct",null),ju([B],e.prototype,"init",null),e}(Mt),Uu=function(t,e){var o="function"==typeof Symbol&&t[Symbol.iterator];if(!o)return t;var i,n,r=o.call(t),s=[];try{for(;(void 0===e||e-- >0)&&!(i=r.next()).done;)s.push(i.value)}catch(t){n={error:t}}finally{try{i&&!i.done&&(o=r.return)&&o.call(r)}finally{if(n)throw n.error}}return s},zu=function(){for(var t=[],e=0;e<arguments.length;e++)t=t.concat(Uu(arguments[e]));return t},Ku=function(){function t(){}return t.getHeaderClassesFromColDef=function(t,e,i,n){return o(t)?[]:this.getColumnClassesFromCollDef(t.headerClass,t,e,i,n)},t.getToolPanelClassesFromColDef=function(t,e,i,n){return o(t)?[]:this.getColumnClassesFromCollDef(t.toolPanelClass,t,e,i,n)},t.getClassParams=function(t,e,o,i){return{colDef:t,column:o,columnGroup:i,api:e.api,columnApi:e.columnApi,context:e.context}},t.getColumnClassesFromCollDef=function(t,e,i,n,r){if(o(t))return[];var s;"function"==typeof t?s=t(this.getClassParams(e,i,n,r)):s=t;return"string"==typeof s?[s]:Array.isArray(s)?zu(s):[]},t}(),Yu=function(){var t=function(e,o){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])})(e,o)};return function(e,o){function i(){this.constructor=e}t(e,o),e.prototype=null===o?Object.create(o):(i.prototype=o.prototype,new i)}}(),qu=function(t,e,o,i){var n,r=arguments.length,s=r<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,o):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,o,i);else for(var a=t.length-1;a>=0;a--)(n=t[a])&&(s=(r<3?n(s):r>3?n(e,o,s):n(e,o))||s);return r>3&&s&&Object.defineProperty(e,o,s),s},Qu=function(t){function e(o){var i=t.call(this,e.TEMPLATE,o)||this;return i.headerCompVersion=0,i.column=o.getColumnGroupChild(),i.pinned=o.getPinned(),i}return Yu(e,t),e.prototype.postConstruct=function(){var t=this,e=this.getGui(),o=function(t,o,i){var n=i||e;null!=o&&""!=o?n.setAttribute(t,o):n.removeAttribute(t)},i={setWidth:function(t){return e.style.width=t},addOrRemoveCssClass:function(e,o){return t.addOrRemoveCssClass(e,o)},setColId:function(t){return o("col-id",t)},setTitle:function(t){return o("title",t)},setAriaDescription:function(t){return Ke(e,t)},setAriaSort:function(t){return t?lo(e,t):uo(e)},setUserCompDetails:function(e){return t.setUserCompDetails(e)},getUserCompInstance:function(){return t.headerComp}};this.ctrl.setComp(i,this.getGui(),this.eResize,this.eHeaderCompWrapper);var n=this.ctrl.getSelectAllGui();this.eResize.insertAdjacentElement("afterend",n)},e.prototype.destroyHeaderComp=function(){this.headerComp&&(this.eHeaderCompWrapper.removeChild(this.headerCompGui),this.headerComp=this.destroyBean(this.headerComp),this.headerCompGui=void 0)},e.prototype.setUserCompDetails=function(t){var e=this;this.headerCompVersion++;var o=this.headerCompVersion;t.newAgStackInstance().then((function(t){return e.afterCompCreated(o,t)}))},e.prototype.afterCompCreated=function(t,e){t==this.headerCompVersion&&this.isAlive()?(this.destroyHeaderComp(),this.headerComp=e,this.headerCompGui=e.getGui(),this.eHeaderCompWrapper.appendChild(this.headerCompGui),this.ctrl.setDragSource(this.getGui())):this.destroyBean(e)},e.TEMPLATE='<div class="ag-header-cell" role="columnheader" tabindex="-1">\n <div ref="eResize" class="ag-header-cell-resize" role="presentation"></div>\n <div ref="eHeaderCompWrapper" class="ag-header-cell-comp-wrapper" role="presentation"></div>\n </div>',qu([dn("eResize")],e.prototype,"eResize",void 0),qu([dn("eHeaderCompWrapper")],e.prototype,"eHeaderCompWrapper",void 0),qu([B],e.prototype,"postConstruct",null),qu([j],e.prototype,"destroyHeaderComp",null),e}(Ma),Xu=function(){var t=function(e,o){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])})(e,o)};return function(e,o){function i(){this.constructor=e}t(e,o),e.prototype=null===o?Object.create(o):(i.prototype=o.prototype,new i)}}(),Ju=function(t,e,o,i){var n,r=arguments.length,s=r<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,o):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,o,i);else for(var a=t.length-1;a>=0;a--)(n=t[a])&&(s=(r<3?n(s):r>3?n(e,o,s):n(e,o))||s);return r>3&&s&&Object.defineProperty(e,o,s),s},Zu=function(t){function e(o){return t.call(this,e.TEMPLATE,o)||this}return Xu(e,t),e.prototype.postConstruct=function(){var t=this,e=this.getGui(),o=function(t,o){return null!=o?e.setAttribute(t,o):e.removeAttribute(t)},i={addOrRemoveCssClass:function(e,o){return t.addOrRemoveCssClass(e,o)},setResizableDisplayed:function(e){return Zo(t.eResize,e)},setWidth:function(t){return e.style.width=t},setColId:function(t){return e.setAttribute("col-id",t)},setAriaExpanded:function(t){return o("aria-expanded",t)},setTitle:function(t){return o("title",t)},setUserCompDetails:function(e){return t.setUserCompDetails(e)}};this.ctrl.setComp(i,e,this.eResize)},e.prototype.setUserCompDetails=function(t){var e=this;t.newAgStackInstance().then((function(t){return e.afterHeaderCompCreated(t)}))},e.prototype.afterHeaderCompCreated=function(t){var e=this,o=function(){return e.destroyBean(t)};this.isAlive()?(this.getGui().appendChild(t.getGui()),this.addDestroyFunc(o),this.ctrl.setDragSource(t.getGui())):o()},e.TEMPLATE='<div class="ag-header-group-cell" role="columnheader" tabindex="-1">\n <div ref="eResize" class="ag-header-cell-resize" role="presentation"></div>\n </div>',Ju([U("userComponentFactory")],e.prototype,"userComponentFactory",void 0),Ju([dn("eResize")],e.prototype,"eResize",void 0),Ju([B],e.prototype,"postConstruct",null),e}(Ma),$u=function(){var t=function(e,o){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])})(e,o)};return function(e,o){function i(){this.constructor=e}t(e,o),e.prototype=null===o?Object.create(o):(i.prototype=o.prototype,new i)}}(),tc=function(t,e,o,i){var n,r=arguments.length,s=r<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,o):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,o,i);else for(var a=t.length-1;a>=0;a--)(n=t[a])&&(s=(r<3?n(s):r>3?n(e,o,s):n(e,o))||s);return r>3&&s&&Object.defineProperty(e,o,s),s};
244/**
245 * @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue
246 * @version v29.2.0
247 * @link https://www.ag-grid.com/
248 * @license MIT
249 */!function(t){t.COLUMN_GROUP="group",t.COLUMN="column",t.FLOATING_FILTER="filter"}(Mu||(Mu={}));var ec,oc=function(t){function e(e){var o=t.call(this)||this;o.headerComps={};var i=e.getType()==Mu.COLUMN_GROUP?"ag-header-row-column-group":e.getType()==Mu.FLOATING_FILTER?"ag-header-row-column-filter":"ag-header-row-column";return o.setTemplate('<div class="ag-header-row '+i+'" role="row"></div>'),o.ctrl=e,o}return $u(e,t),e.prototype.init=function(){var t=this,e={setTransform:function(e){return t.getGui().style.transform=e},setHeight:function(e){return t.getGui().style.height=e},setTop:function(e){return t.getGui().style.top=e},setHeaderCtrls:function(e){return t.setHeaderCtrls(e)},setWidth:function(e){return t.getGui().style.width=e},setAriaRowIndex:function(e){return no(t.getGui(),e)}};this.ctrl.setComp(e)},e.prototype.destroyHeaderCtrls=function(){this.setHeaderCtrls([])},e.prototype.setHeaderCtrls=function(t){var e=this;if(this.isAlive()){var o=this.headerComps;this.headerComps={},t.forEach((function(t){var i=t.getInstanceId(),n=o[i];delete o[i],null==n&&(n=e.createHeaderComp(t),e.getGui().appendChild(n.getGui())),e.headerComps[i]=n})),c(o,(function(t,o){e.getGui().removeChild(o.getGui()),e.destroyBean(o)}));var i=this.gridOptionsService.is("ensureDomOrder"),n=this.gridOptionsService.isDomLayout("print");if(i||n){var r=y(this.headerComps);r.sort((function(t,e){return t.getCtrl().getColumnGroupChild().getLeft()-e.getCtrl().getColumnGroupChild().getLeft()}));var s=r.map((function(t){return t.getGui()}));yi(this.getGui(),s)}}},e.prototype.createHeaderComp=function(t){var e;switch(this.ctrl.getType()){case Mu.COLUMN_GROUP:e=new Zu(t);break;case Mu.FLOATING_FILTER:e=new xa(t);break;default:e=new Qu(t)}return this.createBean(e),e.setParentComponent(this),e},tc([B],e.prototype,"init",null),tc([j],e.prototype,"destroyHeaderCtrls",null),e}(cn),ic=function(){var t=function(e,o){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])})(e,o)};return function(e,o){function i(){this.constructor=e}t(e,o),e.prototype=null===o?Object.create(o):(i.prototype=o.prototype,new i)}}(),nc=function(t,e,o,i){var n,r=arguments.length,s=r<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,o):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,o,i);else for(var a=t.length-1;a>=0;a--)(n=t[a])&&(s=(r<3?n(s):r>3?n(e,o,s):n(e,o))||s);return r>3&&s&&Object.defineProperty(e,o,s),s},rc=0,sc=function(t){function e(e,o){var i=t.call(this)||this;return i.lastFocusEvent=null,i.columnGroupChild=e,i.parentRowCtrl=o,i.instanceId=e.getUniqueId()+"-"+rc++,i}return ic(e,t),e.prototype.shouldStopEventPropagation=function(t){var e=this.focusService.getFocusedHeader(),o=e.headerRowIndex,i=e.column;return Vi(this.gridOptionsService,t,o,i)},e.prototype.getWrapperHasFocus=function(){return this.gridOptionsService.getDocument().activeElement===this.eGui},e.prototype.setGui=function(t){this.eGui=t,this.addDomData()},e.prototype.handleKeyDown=function(t){var e=this.getWrapperHasFocus();switch(t.key){case Gi.PAGE_DOWN:case Gi.PAGE_UP:case Gi.PAGE_HOME:case Gi.PAGE_END:e&&t.preventDefault()}},e.prototype.addDomData=function(){var t=this,o=e.DOM_DATA_KEY_HEADER_CTRL;this.gridOptionsService.setDomData(this.eGui,o,this),this.addDestroyFunc((function(){return t.gridOptionsService.setDomData(t.eGui,o,null)}))},e.prototype.getGui=function(){return this.eGui},e.prototype.focus=function(t){return!!this.eGui&&(this.lastFocusEvent=t||null,this.eGui.focus(),!0)},e.prototype.getRowIndex=function(){return this.parentRowCtrl.getRowIndex()},e.prototype.getParentRowCtrl=function(){return this.parentRowCtrl},e.prototype.getPinned=function(){return this.parentRowCtrl.getPinned()},e.prototype.getInstanceId=function(){return this.instanceId},e.prototype.getColumnGroupChild=function(){return this.columnGroupChild},e.DOM_DATA_KEY_HEADER_CTRL="headerCtrl",nc([U("focusService")],e.prototype,"focusService",void 0),nc([U("beans")],e.prototype,"beans",void 0),nc([U("userComponentFactory")],e.prototype,"userComponentFactory",void 0),e}(Mt),ac=function(){var t=function(e,o){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])})(e,o)};return function(e,o){function i(){this.constructor=e}t(e,o),e.prototype=null===o?Object.create(o):(i.prototype=o.prototype,new i)}}(),lc=function(t,e,o,i){var n,r=arguments.length,s=r<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,o):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,o,i);else for(var a=t.length-1;a>=0;a--)(n=t[a])&&(s=(r<3?n(s):r>3?n(e,o,s):n(e,o))||s);return r>3&&s&&Object.defineProperty(e,o,s),s},uc=function(t){function o(e,o,i,n){var r=t.call(this)||this;return r.columnOrGroup=e,r.eCell=o,r.ariaEl=r.eCell.querySelector("[role=columnheader]")||r.eCell,r.colsSpanning=n,r.beans=i,r}return ac(o,t),o.prototype.setColsSpanning=function(t){this.colsSpanning=t,this.onLeftChanged()},o.prototype.getColumnOrGroup=function(){return this.beans.gridOptionsService.is("enableRtl")&&this.colsSpanning?ut(this.colsSpanning):this.columnOrGroup},o.prototype.postConstruct=function(){this.addManagedListener(this.columnOrGroup,nt.EVENT_LEFT_CHANGED,this.onLeftChanged.bind(this)),this.setLeftFirstTime(),this.addManagedListener(this.eventService,kt.EVENT_DISPLAYED_COLUMNS_WIDTH_CHANGED,this.onLeftChanged.bind(this)),this.addManagedPropertyListener("domLayout",this.onLeftChanged.bind(this))},o.prototype.setLeftFirstTime=function(){var t=this.beans.gridOptionsService.is("suppressColumnMoveAnimation"),o=e(this.columnOrGroup.getOldLeft());this.beans.columnAnimationService.isActive()&&o&&!t?this.animateInLeft():this.onLeftChanged()},o.prototype.animateInLeft=function(){var t=this,e=this.getColumnOrGroup(),o=e.getLeft(),i=e.getOldLeft(),n=this.modifyLeftForPrintLayout(e,i),r=this.modifyLeftForPrintLayout(e,o);this.setLeft(n),this.actualLeft=r,this.beans.columnAnimationService.executeNextVMTurn((function(){t.actualLeft===r&&t.setLeft(r)}))},o.prototype.onLeftChanged=function(){var t=this.getColumnOrGroup(),e=t.getLeft();this.actualLeft=this.modifyLeftForPrintLayout(t,e),this.setLeft(this.actualLeft)},o.prototype.modifyLeftForPrintLayout=function(t,e){if(!this.beans.gridOptionsService.isDomLayout("print"))return e;if("left"===t.getPinned())return e;var o=this.beans.columnModel.getDisplayedColumnsLeftWidth();return"right"===t.getPinned()?o+this.beans.columnModel.getBodyContainerWidth()+e:o+e},o.prototype.setLeft=function(t){var o;if(e(t)&&(this.eCell.style.left=t+"px"),this.columnOrGroup instanceof nt)o=this.columnOrGroup;else{var i=this.columnOrGroup.getLeafColumns();if(!i.length)return;i.length>1&&ao(this.ariaEl,i.length),o=i[0]}var n=this.beans.columnModel.getAriaColumnIndex(o);so(this.ariaEl,n)},lc([B],o.prototype,"postConstruct",null),o}(Mt),cc=function(){var t=function(e,o){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])})(e,o)};return function(e,o){function i(){this.constructor=e}t(e,o),e.prototype=null===o?Object.create(o):(i.prototype=o.prototype,new i)}}(),pc=function(t,e,o,i){var n,r=arguments.length,s=r<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,o):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,o,i);else for(var a=t.length-1;a>=0;a--)(n=t[a])&&(s=(r<3?n(s):r>3?n(e,o,s):n(e,o))||s);return r>3&&s&&Object.defineProperty(e,o,s),s},dc=function(t){function e(e,o){var i=t.call(this)||this;return i.columns=e,i.element=o,i}return cc(e,t),e.prototype.postConstruct=function(){this.gridOptionsService.is("columnHoverHighlight")&&this.addMouseHoverListeners()},e.prototype.addMouseHoverListeners=function(){this.addManagedListener(this.element,"mouseout",this.onMouseOut.bind(this)),this.addManagedListener(this.element,"mouseover",this.onMouseOver.bind(this))},e.prototype.onMouseOut=function(){this.columnHoverService.clearMouseOver()},e.prototype.onMouseOver=function(){this.columnHoverService.setMouseOver(this.columns)},pc([U("columnHoverService")],e.prototype,"columnHoverService",void 0),pc([B],e.prototype,"postConstruct",null),e}(Mt),hc=function(){var t=function(e,o){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])})(e,o)};return function(e,o){function i(){this.constructor=e}t(e,o),e.prototype=null===o?Object.create(o):(i.prototype=o.prototype,new i)}}(),fc=function(t,e,o,i){var n,r=arguments.length,s=r<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,o):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,o,i);else for(var a=t.length-1;a>=0;a--)(n=t[a])&&(s=(r<3?n(s):r>3?n(e,o,s):n(e,o))||s);return r>3&&s&&Object.defineProperty(e,o,s),s},gc=function(t){function e(e,o){var i=t.call(this,e,o)||this;return i.column=e,i}return hc(e,t),e.prototype.setComp=function(e,o,i,n){t.prototype.setGui.call(this,o),this.comp=e,this.eButtonShowMainFilter=i,this.eFloatingFilterBody=n;var r=this.column.getColDef(),s=!!r.filter||!!r.filterFramework,a=!!r.floatingFilter;this.active=s&&a,this.setupWidth(),this.setupLeft(),this.setupHover(),this.setupFocus(),this.setupUserComp(),this.setupSyncWithFilter(),this.setupUi(),this.addManagedListener(this.eButtonShowMainFilter,"click",this.showParentFilter.bind(this)),this.active&&this.addManagedListener(this.column,nt.EVENT_FILTER_CHANGED,this.updateFilterButton.bind(this))},e.prototype.setupUi=function(){if(this.comp.setButtonWrapperDisplayed(!this.suppressFilterButton&&this.active),this.active){this.comp.addOrRemoveBodyCssClass("ag-floating-filter-full-body",this.suppressFilterButton),this.comp.addOrRemoveBodyCssClass("ag-floating-filter-body",!this.suppressFilterButton);var t=Mi("filter",this.gridOptionsService,this.column);t&&this.eButtonShowMainFilter.appendChild(t)}},e.prototype.setupFocus=function(){this.createManagedBean(new On(this.eGui,{shouldStopEventPropagation:this.shouldStopEventPropagation.bind(this),onTabKeyDown:this.onTabKeyDown.bind(this),handleKeyDown:this.handleKeyDown.bind(this),onFocusIn:this.onFocusIn.bind(this)}))},e.prototype.onTabKeyDown=function(t){if(!(this.gridOptionsService.getDocument().activeElement===this.eGui)){var e=this.focusService.findNextFocusableElement(this.eGui,null,t.shiftKey);if(e)return this.beans.headerNavigationService.scrollToColumn(this.column),t.preventDefault(),void e.focus();var o=this.findNextColumnWithFloatingFilter(t.shiftKey);o&&this.focusService.focusHeaderPosition({headerPosition:{headerRowIndex:this.getParentRowCtrl().getRowIndex(),column:o},event:t})&&t.preventDefault()}},e.prototype.findNextColumnWithFloatingFilter=function(t){var e=this.beans.columnModel,o=this.column;do{if(!(o=t?e.getDisplayedColBefore(o):e.getDisplayedColAfter(o)))break}while(!o.getColDef().filter||!o.getColDef().floatingFilter);return o},e.prototype.handleKeyDown=function(e){t.prototype.handleKeyDown.call(this,e);var o=this.getWrapperHasFocus();switch(e.key){case Gi.UP:case Gi.DOWN:o||e.preventDefault();case Gi.LEFT:case Gi.RIGHT:if(o)return;e.stopPropagation();case Gi.ENTER:o&&this.focusService.focusInto(this.eGui)&&e.preventDefault();break;case Gi.ESCAPE:o||this.eGui.focus()}},e.prototype.onFocusIn=function(t){if(!this.eGui.contains(t.relatedTarget)){var e=!!t.relatedTarget&&!t.relatedTarget.classList.contains("ag-floating-filter"),o=!!t.relatedTarget&&ei(t.relatedTarget,"ag-floating-filter");if(e&&o&&t.target===this.eGui){var i=this.lastFocusEvent,n=!(!i||i.key!==Gi.TAB);if(i&&n){var r=i.shiftKey;this.focusService.focusInto(this.eGui,r)}}var s=this.getRowIndex();this.beans.focusService.setFocusedHeader(s,this.column)}},e.prototype.setupHover=function(){var t=this;this.createManagedBean(new dc([this.column],this.eGui));var e=function(){if(t.gridOptionsService.is("columnHoverHighlight")){var e=t.columnHoverService.isHovered(t.column);t.comp.addOrRemoveCssClass("ag-column-hover",e)}};this.addManagedListener(this.eventService,kt.EVENT_COLUMN_HOVER_CHANGED,e),e()},e.prototype.setupLeft=function(){var t=new uc(this.column,this.eGui,this.beans);this.createManagedBean(t)},e.prototype.setupUserComp=function(){var t=this;if(this.active){var e=this.column.getColDef();this.suppressFilterButton=!!e.floatingFilterComponentParams&&!!e.floatingFilterComponentParams.suppressFilterButton;var o=this.filterManager.getFloatingFilterCompDetails(this.column,(function(){return t.showParentFilter()}));o&&this.comp.setCompDetails(o)}},e.prototype.showParentFilter=function(){var t=this.suppressFilterButton?this.eFloatingFilterBody:this.eButtonShowMainFilter;this.menuFactory.showMenuAfterButtonClick(this.column,t,"floatingFilter","filterMenuTab",["filterMenuTab"])},e.prototype.setupSyncWithFilter=function(){var t=this;if(this.active){var e=function(e){var o=t.comp.getFloatingFilterComp();if(o){var i=t.filterManager.getCurrentFloatingFilterParentModel(t.column);o.then((function(t){t&&t.onParentModelChanged(i,e)}))}};this.addManagedListener(this.column,nt.EVENT_FILTER_CHANGED,e),this.filterManager.isFilterActive(this.column)&&e(null)}},e.prototype.setupWidth=function(){var t=this,e=function(){var e=t.column.getActualWidth()+"px";t.comp.setWidth(e)};this.addManagedListener(this.column,nt.EVENT_WIDTH_CHANGED,e),e()},e.prototype.updateFilterButton=function(){!this.suppressFilterButton&&this.comp&&this.comp.setButtonWrapperDisplayed(this.filterManager.isFilterAllowed(this.column))},fc([U("filterManager")],e.prototype,"filterManager",void 0),fc([U("columnHoverService")],e.prototype,"columnHoverService",void 0),fc([U("menuFactory")],e.prototype,"menuFactory",void 0),e}(sc),vc=function(){var t=function(e,o){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])})(e,o)};return function(e,o){function i(){this.constructor=e}t(e,o),e.prototype=null===o?Object.create(o):(i.prototype=o.prototype,new i)}}(),yc=function(t,e,o,i){var n,r=arguments.length,s=r<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,o):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,o,i);else for(var a=t.length-1;a>=0;a--)(n=t[a])&&(s=(r<3?n(s):r>3?n(e,o,s):n(e,o))||s);return r>3&&s&&Object.defineProperty(e,o,s),s},mc=function(t){function e(e,o,i,n,r){var s=t.call(this)||this;return s.pinned=e,s.column=o,s.eResize=i,s.comp=n,s.ctrl=r,s}return vc(e,t),e.prototype.postConstruct=function(){var t,e,o=this,i=this.column.getColDef(),n=[],r=function(){n.forEach((function(t){return t()})),n.length=0},s=function(){var s=o.column.isResizable(),a=!o.gridOptionsService.is("suppressAutoSize")&&!i.suppressAutoSize;(s!==t||a!==e)&&(t=s,e=a,r(),function(){if(Zo(o.eResize,t),t){var i=o.horizontalResizeService.addResizeBar({eResizeBar:o.eResize,onResizeStart:o.onResizeStart.bind(o),onResizing:o.onResizing.bind(o,!1),onResizeEnd:o.onResizing.bind(o,!0)});if(n.push(i),e){var r=o.gridOptionsService.is("skipHeaderOnAutoSize"),s=function(){o.columnModel.autoSizeColumn(o.column,r,"uiColumnResized")};o.eResize.addEventListener("dblclick",s);var a=new jr(o.eResize);a.addEventListener(jr.EVENT_DOUBLE_TAP,s),o.addDestroyFunc((function(){o.eResize.removeEventListener("dblclick",s),a.removeEventListener(jr.EVENT_DOUBLE_TAP,s),a.destroy()}))}}}())};s(),this.addDestroyFunc(r),this.ctrl.addRefreshFunction(s)},e.prototype.onResizing=function(t,e){var o=this.normaliseResizeAmount(e),i=[{key:this.column,newWidth:this.resizeStartWidth+o}];this.columnModel.setColumnWidths(i,this.resizeWithShiftKey,t,"uiColumnDragged"),t&&this.comp.addOrRemoveCssClass("ag-column-resizing",!1)},e.prototype.onResizeStart=function(t){this.resizeStartWidth=this.column.getActualWidth(),this.resizeWithShiftKey=t,this.comp.addOrRemoveCssClass("ag-column-resizing",!0)},e.prototype.normaliseResizeAmount=function(t){var e=t,o="left"!==this.pinned,i="right"===this.pinned;return this.gridOptionsService.is("enableRtl")?o&&(e*=-1):i&&(e*=-1),e},yc([U("horizontalResizeService")],e.prototype,"horizontalResizeService",void 0),yc([U("columnModel")],e.prototype,"columnModel",void 0),yc([B],e.prototype,"postConstruct",null),e}(Mt),Cc=function(){var t=function(e,o){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])})(e,o)};return function(e,o){function i(){this.constructor=e}t(e,o),e.prototype=null===o?Object.create(o):(i.prototype=o.prototype,new i)}}(),wc=function(t,e,o,i){var n,r=arguments.length,s=r<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,o):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,o,i);else for(var a=t.length-1;a>=0;a--)(n=t[a])&&(s=(r<3?n(s):r>3?n(e,o,s):n(e,o))||s);return r>3&&s&&Object.defineProperty(e,o,s),s},Sc=function(t){function e(e){var o=t.call(this)||this;o.cbSelectAllVisible=!1,o.processingEventFromCheckbox=!1,o.column=e;var i=e.getColDef();return o.filteredOnly=!!(null==i?void 0:i.headerCheckboxSelectionFilteredOnly),o.currentPageOnly=!!(null==i?void 0:i.headerCheckboxSelectionCurrentPageOnly),o}return Cc(e,t),e.prototype.onSpaceKeyPressed=function(t){var e=this.cbSelectAll,o=this.gridOptionsService.getDocument();e.isDisplayed()&&!e.getGui().contains(o.activeElement)&&(t.preventDefault(),e.setValue(!e.getValue()))},e.prototype.getCheckboxGui=function(){return this.cbSelectAll.getGui()},e.prototype.setComp=function(t){this.headerCellCtrl=t,this.cbSelectAll=this.createManagedBean(new Qn),this.cbSelectAll.addCssClass("ag-header-select-all"),ke(this.cbSelectAll.getGui(),"presentation"),this.showOrHideSelectAll(),this.addManagedListener(this.eventService,kt.EVENT_NEW_COLUMNS_LOADED,this.showOrHideSelectAll.bind(this)),this.addManagedListener(this.eventService,kt.EVENT_DISPLAYED_COLUMNS_CHANGED,this.showOrHideSelectAll.bind(this)),this.addManagedListener(this.eventService,kt.EVENT_SELECTION_CHANGED,this.onSelectionChanged.bind(this)),this.addManagedListener(this.eventService,kt.EVENT_PAGINATION_CHANGED,this.onSelectionChanged.bind(this)),this.addManagedListener(this.eventService,kt.EVENT_MODEL_UPDATED,this.onModelChanged.bind(this)),this.addManagedListener(this.cbSelectAll,Qn.EVENT_CHANGED,this.onCbSelectAll.bind(this)),Je(this.cbSelectAll.getGui(),!0),this.cbSelectAll.getInputElement().setAttribute("tabindex","-1"),this.refreshSelectAllLabel()},e.prototype.showOrHideSelectAll=function(){this.cbSelectAllVisible=this.isCheckboxSelection(),this.cbSelectAll.setDisplayed(this.cbSelectAllVisible,{skipAriaHidden:!0}),this.cbSelectAllVisible&&(this.checkRightRowModelType("selectAllCheckbox"),this.updateStateOfCheckbox()),this.refreshSelectAllLabel()},e.prototype.onModelChanged=function(){this.cbSelectAllVisible&&this.updateStateOfCheckbox()},e.prototype.onSelectionChanged=function(){this.cbSelectAllVisible&&this.updateStateOfCheckbox()},e.prototype.updateStateOfCheckbox=function(){if(!this.processingEventFromCheckbox){this.processingEventFromCheckbox=!0;var t=this.selectionService.getSelectAllState();this.cbSelectAll.setValue(t),this.refreshSelectAllLabel(),this.processingEventFromCheckbox=!1}},e.prototype.refreshSelectAllLabel=function(){if(this.cbSelectAllVisible){var t=this.localeService.getLocaleTextFunc(),e=this.cbSelectAll.getValue()?t("ariaChecked","checked"):t("ariaUnchecked","unchecked"),o=t("ariaRowSelectAll","Press Space to toggle all rows selection");this.headerCellCtrl.setAriaDescriptionProperty("selectAll",o+" ("+e+")"),this.cbSelectAll.setInputAriaLabel(o+" ("+e+")")}else this.headerCellCtrl.setAriaDescriptionProperty("selectAll",null),this.cbSelectAll.setInputAriaLabel(null);this.headerCellCtrl.refreshAriaDescription()},e.prototype.checkRightRowModelType=function(t){var e=this.rowModel.getType();return!("clientSide"!==e&&"serverSide"!==e)||(console.warn("AG Grid: "+t+" is only available if using 'clientSide' or 'serverSide' rowModelType, you are using "+e+"."),!1)},e.prototype.onCbSelectAll=function(){if(!this.processingEventFromCheckbox&&this.cbSelectAllVisible){var t=this.cbSelectAll.getValue(),e="uiSelectAll";this.currentPageOnly?e="uiSelectAllCurrentPage":this.filteredOnly&&(e="uiSelectAllFiltered");var o={source:e,justFiltered:this.filteredOnly,justCurrentPage:this.currentPageOnly};t?this.selectionService.selectAllRowNodes(o):this.selectionService.deselectAllRowNodes(o)}},e.prototype.isCheckboxSelection=function(){var t=this.column.getColDef().headerCheckboxSelection;"function"==typeof t&&(t=t({column:this.column,colDef:this.column.getColDef(),columnApi:this.columnApi,api:this.gridApi,context:this.gridOptionsService.context}));return!!t&&this.checkRightRowModelType("headerCheckboxSelection")},wc([U("gridApi")],e.prototype,"gridApi",void 0),wc([U("columnApi")],e.prototype,"columnApi",void 0),wc([U("rowModel")],e.prototype,"rowModel",void 0),wc([U("selectionService")],e.prototype,"selectionService",void 0),e}(Mt),Ec=function(){var t=function(e,o){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])})(e,o)};return function(e,o){function i(){this.constructor=e}t(e,o),e.prototype=null===o?Object.create(o):(i.prototype=o.prototype,new i)}}(),Rc=function(t,e,o,i){var n,r=arguments.length,s=r<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,o):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,o,i);else for(var a=t.length-1;a>=0;a--)(n=t[a])&&(s=(r<3?n(s):r>3?n(e,o,s):n(e,o))||s);return r>3&&s&&Object.defineProperty(e,o,s),s},Oc=function(t){function e(e,o){var i=t.call(this,e,o)||this;return i.refreshFunctions=[],i.userHeaderClasses=new Set,i.ariaDescriptionProperties=new Map,i.column=e,i}return Ec(e,t),e.prototype.setComp=function(e,o,i,n){var r=this;t.prototype.setGui.call(this,o),this.comp=e,this.updateState(),this.setupWidth(),this.setupMovingCss(),this.setupMenuClass(),this.setupSortableClass(),this.setupWrapTextClass(),this.refreshSpanHeaderHeight(),this.setupAutoHeight(n),this.addColumnHoverListener(),this.setupFilterCss(),this.setupColId(),this.setupClassesFromColDef(),this.setupTooltip(),this.addActiveHeaderMouseListeners(),this.setupSelectAll(),this.setupUserComp(),this.refreshAria(),this.createManagedBean(new mc(this.getPinned(),this.column,i,e,this)),this.createManagedBean(new dc([this.column],o)),this.createManagedBean(new uc(this.column,o,this.beans)),this.createManagedBean(new On(o,{shouldStopEventPropagation:function(t){return r.shouldStopEventPropagation(t)},onTabKeyDown:function(){return null},handleKeyDown:this.handleKeyDown.bind(this),onFocusIn:this.onFocusIn.bind(this),onFocusOut:this.onFocusOut.bind(this)})),this.addManagedListener(this.column,nt.EVENT_COL_DEF_CHANGED,this.onColDefChanged.bind(this)),this.addManagedListener(this.eventService,kt.EVENT_COLUMN_VALUE_CHANGED,this.onColumnValueChanged.bind(this)),this.addManagedListener(this.eventService,kt.EVENT_COLUMN_ROW_GROUP_CHANGED,this.onColumnRowGroupChanged.bind(this)),this.addManagedListener(this.eventService,kt.EVENT_COLUMN_PIVOT_CHANGED,this.onColumnPivotChanged.bind(this)),this.addManagedListener(this.eventService,kt.EVENT_HEADER_HEIGHT_CHANGED,this.onHeaderHeightChanged.bind(this))},e.prototype.setupUserComp=function(){var t=this.lookupUserCompDetails();this.setCompDetails(t)},e.prototype.setCompDetails=function(t){this.userCompDetails=t,this.comp.setUserCompDetails(t)},e.prototype.lookupUserCompDetails=function(){var t=this.createParams(),e=this.column.getColDef();return this.userComponentFactory.getHeaderCompDetails(e,t)},e.prototype.createParams=function(){var t=this,e=this.column.getColDef();return{column:this.column,displayName:this.displayName,enableSorting:e.sortable,enableMenu:this.menuEnabled,showColumnMenu:function(e){t.gridApi.showColumnMenuAfterButtonClick(t.column,e)},progressSort:function(e){t.sortController.progressSort(t.column,!!e,"uiColumnSorted")},setSort:function(e,o){t.sortController.setSortForColumn(t.column,e,!!o,"uiColumnSorted")},api:this.gridApi,columnApi:this.columnApi,context:this.gridOptionsService.context,eGridHeader:this.getGui()}},e.prototype.setupSelectAll=function(){this.selectAllFeature=this.createManagedBean(new Sc(this.column)),this.selectAllFeature.setComp(this)},e.prototype.getSelectAllGui=function(){return this.selectAllFeature.getCheckboxGui()},e.prototype.handleKeyDown=function(e){t.prototype.handleKeyDown.call(this,e),e.key===Gi.SPACE&&this.selectAllFeature.onSpaceKeyPressed(e),e.key===Gi.ENTER&&this.onEnterKeyPressed(e)},e.prototype.onEnterKeyPressed=function(t){var e=this.comp.getUserCompInstance();if(e)if(t.ctrlKey||t.metaKey)this.menuEnabled&&e.showMenu&&(t.preventDefault(),e.showMenu());else if(this.sortable){var o=t.shiftKey;this.sortController.progressSort(this.column,o,"uiColumnSorted")}},e.prototype.isMenuEnabled=function(){return this.menuEnabled},e.prototype.onFocusIn=function(t){if(!this.getGui().contains(t.relatedTarget)){var e=this.getRowIndex();this.focusService.setFocusedHeader(e,this.column)}this.setActiveHeader(!0)},e.prototype.onFocusOut=function(t){this.getGui().contains(t.relatedTarget)||this.setActiveHeader(!1)},e.prototype.setupTooltip=function(){var t=this,e={getColumn:function(){return t.column},getColDef:function(){return t.column.getColDef()},getGui:function(){return t.eGui},getLocation:function(){return"header"},getTooltipValue:function(){return t.column.getColDef().headerTooltip}},o=this.createManagedBean(new pl(e,this.beans));o.setComp(this.comp),this.refreshFunctions.push((function(){return o.refreshToolTip()}))},e.prototype.setupClassesFromColDef=function(){var t=this,e=function(){var e=t.column.getColDef(),o=Ku.getHeaderClassesFromColDef(e,t.gridOptionsService,t.column,null),i=t.userHeaderClasses;t.userHeaderClasses=new Set(o),o.forEach((function(e){i.has(e)?i.delete(e):t.comp.addOrRemoveCssClass(e,!0)})),i.forEach((function(e){return t.comp.addOrRemoveCssClass(e,!1)}))};this.refreshFunctions.push(e),e()},e.prototype.setDragSource=function(t){var e=this;if(this.dragSourceElement=t,this.removeDragSource(),t&&this.draggable){var o=!this.gridOptionsService.is("suppressDragLeaveHidesColumns");this.moveDragSource={type:br.HeaderCell,eElement:t,defaultIconName:o?bs.ICON_HIDE:bs.ICON_NOT_ALLOWED,getDragItem:function(){return e.createDragItem()},dragItemName:this.displayName,onDragStarted:function(){return e.column.setMoving(!0,"uiColumnMoved")},onDragStopped:function(){return e.column.setMoving(!1,"uiColumnMoved")},onGridEnter:function(t){var i;if(o){var n=(null===(i=null==t?void 0:t.columns)||void 0===i?void 0:i.filter((function(t){return!t.getColDef().lockVisible})))||[];e.columnModel.setColumnsVisible(n,!0,"uiColumnMoved")}},onGridExit:function(t){var i;if(o){var n=(null===(i=null==t?void 0:t.columns)||void 0===i?void 0:i.filter((function(t){return!t.getColDef().lockVisible})))||[];e.columnModel.setColumnsVisible(n,!1,"uiColumnMoved")}}},this.dragAndDropService.addDragSource(this.moveDragSource,!0)}},e.prototype.createDragItem=function(){var t={};return t[this.column.getId()]=this.column.isVisible(),{columns:[this.column],visibleState:t}},e.prototype.removeDragSource=function(){this.moveDragSource&&(this.dragAndDropService.removeDragSource(this.moveDragSource),this.moveDragSource=void 0)},e.prototype.onColDefChanged=function(){this.refresh()},e.prototype.updateState=function(){var t=this.column.getColDef();this.menuEnabled=this.menuFactory.isMenuEnabled(this.column)&&!t.suppressMenu,this.sortable=t.sortable,this.displayName=this.calculateDisplayName(),this.draggable=this.workOutDraggable()},e.prototype.addRefreshFunction=function(t){this.refreshFunctions.push(t)},e.prototype.refresh=function(){this.updateState(),this.refreshHeaderComp(),this.refreshAria(),this.refreshFunctions.forEach((function(t){return t()}))},e.prototype.refreshHeaderComp=function(){var t=this.lookupUserCompDetails();!!(null!=this.comp.getUserCompInstance()&&this.userCompDetails.componentClass==t.componentClass)&&this.attemptHeaderCompRefresh(t.params)?this.setDragSource(this.dragSourceElement):this.setCompDetails(t)},e.prototype.attemptHeaderCompRefresh=function(t){var e=this.comp.getUserCompInstance();return!!e&&(!!e.refresh&&e.refresh(t))},e.prototype.calculateDisplayName=function(){return this.columnModel.getDisplayNameForColumn(this.column,"header",!0)},e.prototype.checkDisplayName=function(){this.displayName!==this.calculateDisplayName()&&this.refresh()},e.prototype.workOutDraggable=function(){var t=this.column.getColDef();return!!(!this.gridOptionsService.is("suppressMovableColumns")&&!t.suppressMovable&&!t.lockPosition)||!!t.enableRowGroup||!!t.enablePivot},e.prototype.onColumnRowGroupChanged=function(){this.checkDisplayName()},e.prototype.onColumnPivotChanged=function(){this.checkDisplayName()},e.prototype.onColumnValueChanged=function(){this.checkDisplayName()},e.prototype.setupWidth=function(){var t=this,e=function(){var e=t.column.getActualWidth();t.comp.setWidth(e+"px")};this.addManagedListener(this.column,nt.EVENT_WIDTH_CHANGED,e),e()},e.prototype.setupMovingCss=function(){var t=this,e=function(){t.comp.addOrRemoveCssClass("ag-header-cell-moving",t.column.isMoving())};this.addManagedListener(this.column,nt.EVENT_MOVING_CHANGED,e),e()},e.prototype.setupMenuClass=function(){var t=this,e=function(){t.comp.addOrRemoveCssClass("ag-column-menu-visible",t.column.isMenuVisible())};this.addManagedListener(this.column,nt.EVENT_MENU_VISIBLE_CHANGED,e),e()},e.prototype.setupSortableClass=function(){var t=this,e=function(){t.comp.addOrRemoveCssClass("ag-header-cell-sortable",!!t.sortable)};e(),this.addRefreshFunction(e),this.addManagedListener(this.eventService,nt.EVENT_SORT_CHANGED,this.refreshAriaSort.bind(this))},e.prototype.setupWrapTextClass=function(){var t=this,e=function(){var e=!!t.column.getColDef().wrapHeaderText;t.comp.addOrRemoveCssClass("ag-header-cell-wrap-text",e)};e(),this.addRefreshFunction(e)},e.prototype.onHeaderHeightChanged=function(){this.refreshSpanHeaderHeight()},e.prototype.refreshSpanHeaderHeight=function(){var t=this,e=t.eGui,o=t.column,i=t.comp,n=t.columnModel,r=t.gridOptionsService;if(o.isSpanHeaderHeight()){var s=this.getColumnGroupPaddingInfo(),a=s.numberOfParents,l=s.isSpanningTotal;if(i.addOrRemoveCssClass("ag-header-span-height",a>0),0!==a){i.addOrRemoveCssClass("ag-header-span-total",l);var u=r.is("pivotMode")?n.getPivotGroupHeaderHeight():n.getGroupHeaderHeight(),c=n.getColumnHeaderRowHeight(),p=a*u;e.style.setProperty("top",-p+"px"),e.style.setProperty("height",c+p+"px")}}},e.prototype.getColumnGroupPaddingInfo=function(){var t=this.column.getParent();if(!t||!t.isPadding())return{numberOfParents:0,isSpanningTotal:!1};for(var e=t.getPaddingLevel()+1,o=!0;t;){if(!t.isPadding()){o=!1;break}t=t.getParent()}return{numberOfParents:e,isSpanningTotal:o}},e.prototype.setupAutoHeight=function(t){var e,o=this,i=function(e){if(o.isAlive()){var n=oi(o.getGui()),r=n.paddingTop+n.paddingBottom+n.borderBottomWidth+n.borderTopWidth,s=t.offsetHeight+r;if(e<5){var a=o.beans.gridOptionsService.getDocument();if(!a||!a.contains(t)||0==s)return void o.beans.frameworkOverrides.setTimeout((function(){return i(e+1)}),0)}o.columnModel.setColumnHeaderHeight(o.column,s)}},n=!1,r=function(){var t=o.column.isSpanHeaderHeight(),e=o.column.isAutoHeaderHeight();if(t){if(a(),e){O((function(){return console.warn("AG Grid: The properties `spanHeaderHeight` and `autoHeaderHeight` cannot be used together in the same column.")}),"HeaderCellCtrl.spanHeaderHeightAndAutoHeaderHeight")}}else e&&!n&&s(),!e&&n&&a()},s=function(){n=!0,i(0),o.comp.addOrRemoveCssClass("ag-header-cell-auto-height",!0),e=o.resizeObserverService.observeResize(t,(function(){return i(0)}))},a=function(){n=!1,e&&e(),o.comp.addOrRemoveCssClass("ag-header-cell-auto-height",!1),e=void 0};r(),this.addDestroyFunc((function(){return a()})),this.addManagedListener(this.column,nt.EVENT_WIDTH_CHANGED,(function(){return n&&i(0)})),this.addManagedListener(this.eventService,nt.EVENT_SORT_CHANGED,(function(){n&&o.beans.frameworkOverrides.setTimeout((function(){return i(0)}))})),this.addRefreshFunction(r)},e.prototype.refreshAriaSort=function(){if(this.sortable){var t=this.localeService.getLocaleTextFunc(),e=this.sortController.getDisplaySortForColumn(this.column)||null;this.comp.setAriaSort(Be(e)),this.setAriaDescriptionProperty("sort",t("ariaSortableColumn","Press ENTER to sort."))}else this.comp.setAriaSort(),this.setAriaDescriptionProperty("sort",null)},e.prototype.refreshAriaMenu=function(){if(this.menuEnabled){var t=this.localeService.getLocaleTextFunc();this.setAriaDescriptionProperty("menu",t("ariaMenuColumn","Press CTRL ENTER to open column menu."))}else this.setAriaDescriptionProperty("menu",null)},e.prototype.setAriaDescriptionProperty=function(t,e){null!=e?this.ariaDescriptionProperties.set(t,e):this.ariaDescriptionProperties.delete(t)},e.prototype.refreshAriaDescription=function(){var t=Array.from(this.ariaDescriptionProperties.values());this.comp.setAriaDescription(t.length?t.join(" "):void 0)},e.prototype.refreshAria=function(){this.refreshAriaSort(),this.refreshAriaMenu(),this.refreshAriaDescription()},e.prototype.addColumnHoverListener=function(){var t=this,e=function(){if(t.gridOptionsService.is("columnHoverHighlight")){var e=t.columnHoverService.isHovered(t.column);t.comp.addOrRemoveCssClass("ag-column-hover",e)}};this.addManagedListener(this.eventService,kt.EVENT_COLUMN_HOVER_CHANGED,e),e()},e.prototype.setupFilterCss=function(){var t=this,e=function(){t.comp.addOrRemoveCssClass("ag-header-cell-filtered",t.column.isFilterActive())};this.addManagedListener(this.column,nt.EVENT_FILTER_ACTIVE_CHANGED,e),e()},e.prototype.setupColId=function(){this.comp.setColId(this.column.getColId())},e.prototype.addActiveHeaderMouseListeners=function(){var t=this,e=function(e){return t.setActiveHeader("mouseenter"===e.type)};this.addManagedListener(this.getGui(),"mouseenter",e),this.addManagedListener(this.getGui(),"mouseleave",e)},e.prototype.setActiveHeader=function(t){this.comp.addOrRemoveCssClass("ag-header-active",t)},Rc([U("columnModel")],e.prototype,"columnModel",void 0),Rc([U("columnHoverService")],e.prototype,"columnHoverService",void 0),Rc([U("sortController")],e.prototype,"sortController",void 0),Rc([U("menuFactory")],e.prototype,"menuFactory",void 0),Rc([U("dragAndDropService")],e.prototype,"dragAndDropService",void 0),Rc([U("resizeObserverService")],e.prototype,"resizeObserverService",void 0),Rc([U("gridApi")],e.prototype,"gridApi",void 0),Rc([U("columnApi")],e.prototype,"columnApi",void 0),Rc([j],e.prototype,"removeDragSource",null),e}(sc),bc=function(){var t=function(e,o){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])})(e,o)};return function(e,o){function i(){this.constructor=e}t(e,o),e.prototype=null===o?Object.create(o):(i.prototype=o.prototype,new i)}}(),Tc=function(t,e,o,i){var n,r=arguments.length,s=r<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,o):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,o,i);else for(var a=t.length-1;a>=0;a--)(n=t[a])&&(s=(r<3?n(s):r>3?n(e,o,s):n(e,o))||s);return r>3&&s&&Object.defineProperty(e,o,s),s},Pc=function(t){function e(e,o,i,n){var r=t.call(this)||this;return r.eResize=o,r.comp=e,r.pinned=i,r.columnGroup=n,r}return bc(e,t),e.prototype.postConstruct=function(){var t=this;if(this.columnGroup.isResizable()){var e=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(e),!this.gridOptionsService.is("suppressAutoSize")){var o=this.gridOptionsService.is("skipHeaderOnAutoSize");this.eResize.addEventListener("dblclick",(function(){var e=[];t.columnGroup.getDisplayedLeafColumns().forEach((function(t){t.getColDef().suppressAutoSize||e.push(t.getColId())})),e.length>0&&t.columnModel.autoSizeColumns({columns:e,skipHeader:o,stopAtGroup:t.columnGroup,source:"uiColumnResized"}),t.resizeLeafColumnsToFit()}))}}else this.comp.setResizableDisplayed(!1)},e.prototype.onResizeStart=function(t){var e=this;this.calculateInitialValues();var o=null;if(t&&(o=this.columnModel.getDisplayedGroupAfter(this.columnGroup)),o){var i=o.getDisplayedLeafColumns();this.resizeTakeFromCols=i.filter((function(t){return t.isResizable()})),this.resizeTakeFromStartWidth=0,this.resizeTakeFromCols.forEach((function(t){return e.resizeTakeFromStartWidth+=t.getActualWidth()})),this.resizeTakeFromRatios=[],this.resizeTakeFromCols.forEach((function(t){return e.resizeTakeFromRatios.push(t.getActualWidth()/e.resizeTakeFromStartWidth)}))}else this.resizeTakeFromCols=null,this.resizeTakeFromStartWidth=null,this.resizeTakeFromRatios=null;this.comp.addOrRemoveCssClass("ag-column-resizing",!0)},e.prototype.onResizing=function(t,e){var o=this.normaliseDragChange(e),i=this.resizeStartWidth+o;this.resizeColumns(i,t)},e.prototype.resizeLeafColumnsToFit=function(){var t=this.autoWidthCalculator.getPreferredWidthForColumnGroup(this.columnGroup);this.calculateInitialValues(),t>this.resizeStartWidth&&this.resizeColumns(t,!0)},e.prototype.resizeColumns=function(t,e){void 0===e&&(e=!0);var o=[];if(o.push({columns:this.resizeCols,ratios:this.resizeRatios,width:t}),this.resizeTakeFromCols){var i=t-this.resizeStartWidth;o.push({columns:this.resizeTakeFromCols,ratios:this.resizeTakeFromRatios,width:this.resizeTakeFromStartWidth-i})}this.columnModel.resizeColumnSets({resizeSets:o,finished:e,source:"uiColumnDragged"}),e&&this.comp.addOrRemoveCssClass("ag-column-resizing",!1)},e.prototype.calculateInitialValues=function(){var t=this,e=this.columnGroup.getDisplayedLeafColumns();this.resizeCols=e.filter((function(t){return t.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)}))},e.prototype.normaliseDragChange=function(t){var e=t;return this.gridOptionsService.is("enableRtl")?"left"!==this.pinned&&(e*=-1):"right"===this.pinned&&(e*=-1),e},Tc([U("horizontalResizeService")],e.prototype,"horizontalResizeService",void 0),Tc([U("autoWidthCalculator")],e.prototype,"autoWidthCalculator",void 0),Tc([U("columnModel")],e.prototype,"columnModel",void 0),Tc([B],e.prototype,"postConstruct",null),e}(Mt),Dc=function(){var t=function(e,o){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])})(e,o)};return function(e,o){function i(){this.constructor=e}t(e,o),e.prototype=null===o?Object.create(o):(i.prototype=o.prototype,new i)}}(),_c=function(t,e,o,i){var n,r=arguments.length,s=r<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,o):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,o,i);else for(var a=t.length-1;a>=0;a--)(n=t[a])&&(s=(r<3?n(s):r>3?n(e,o,s):n(e,o))||s);return r>3&&s&&Object.defineProperty(e,o,s),s},Ac=function(t){function e(e,o){var i=t.call(this)||this;return i.removeChildListenersFuncs=[],i.columnGroup=o,i.comp=e,i}return Dc(e,t),e.prototype.postConstruct=function(){this.addListenersToChildrenColumns(),this.addManagedListener(this.columnGroup,re.EVENT_DISPLAYED_CHILDREN_CHANGED,this.onDisplayedChildrenChanged.bind(this)),this.onWidthChanged(),this.addDestroyFunc(this.removeListenersOnChildrenColumns.bind(this))},e.prototype.addListenersToChildrenColumns=function(){var t=this;this.removeListenersOnChildrenColumns();var e=this.onWidthChanged.bind(this);this.columnGroup.getLeafColumns().forEach((function(o){o.addEventListener("widthChanged",e),o.addEventListener("visibleChanged",e),t.removeChildListenersFuncs.push((function(){o.removeEventListener("widthChanged",e),o.removeEventListener("visibleChanged",e)}))}))},e.prototype.removeListenersOnChildrenColumns=function(){this.removeChildListenersFuncs.forEach((function(t){return t()})),this.removeChildListenersFuncs=[]},e.prototype.onDisplayedChildrenChanged=function(){this.addListenersToChildrenColumns(),this.onWidthChanged()},e.prototype.onWidthChanged=function(){var t=this.columnGroup.getActualWidth();this.comp.setWidth(t+"px"),this.comp.addOrRemoveCssClass("ag-hidden",0===t)},_c([B],e.prototype,"postConstruct",null),e}(Mt),Nc=function(){var t=function(e,o){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])})(e,o)};return function(e,o){function i(){this.constructor=e}t(e,o),e.prototype=null===o?Object.create(o):(i.prototype=o.prototype,new i)}}(),Fc=function(t,e,o,i){var n,r=arguments.length,s=r<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,o):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,o,i);else for(var a=t.length-1;a>=0;a--)(n=t[a])&&(s=(r<3?n(s):r>3?n(e,o,s):n(e,o))||s);return r>3&&s&&Object.defineProperty(e,o,s),s},Lc=function(t){function e(e,o){var i=t.call(this,e,o)||this;return i.columnGroup=e,i}return Nc(e,t),e.prototype.setComp=function(e,o,i){t.prototype.setGui.call(this,o),this.comp=e,this.displayName=this.columnModel.getDisplayNameForColumnGroup(this.columnGroup,"header"),this.addClasses(),this.addAttributes(),this.setupMovingCss(),this.setupExpandable(),this.setupTooltip(),this.setupUserComp();var n=this.getParentRowCtrl().getPinned(),r=this.columnGroup.getProvidedColumnGroup().getLeafColumns();this.createManagedBean(new dc(r,o)),this.createManagedBean(new uc(this.columnGroup,o,this.beans)),this.createManagedBean(new Ac(e,this.columnGroup)),this.groupResizeFeature=this.createManagedBean(new Pc(e,i,n,this.columnGroup)),this.createManagedBean(new On(o,{shouldStopEventPropagation:this.shouldStopEventPropagation.bind(this),onTabKeyDown:function(){},handleKeyDown:this.handleKeyDown.bind(this),onFocusIn:this.onFocusIn.bind(this)}))},e.prototype.resizeLeafColumnsToFit=function(){var t,e;null===(t=this.groupResizeFeature)||void 0===t||t.onResizeStart(!1),null===(e=this.groupResizeFeature)||void 0===e||e.resizeLeafColumnsToFit()},e.prototype.setupUserComp=function(){var t=this,e=this.displayName,o={displayName:this.displayName,columnGroup:this.columnGroup,setExpanded:function(e){t.columnModel.setColumnGroupOpened(t.columnGroup.getProvidedColumnGroup(),e,"gridInitializing")},api:this.gridApi,columnApi:this.columnApi,context:this.gridOptionsService.context};if(!e){for(var i=this.columnGroup,n=i.getLeafColumns();i.getParent()&&i.getParent().getLeafColumns().length===n.length;)i=i.getParent();var r=i.getColGroupDef();r&&(e=r.headerName),e||(e=n?this.columnModel.getDisplayNameForColumn(n[0],"header",!0):"")}var s=this.userComponentFactory.getHeaderGroupCompDetails(o);this.comp.setUserCompDetails(s)},e.prototype.setupTooltip=function(){var t=this,e=this.columnGroup.getColGroupDef(),o={getColumn:function(){return t.columnGroup},getGui:function(){return t.eGui},getLocation:function(){return"headerGroup"},getTooltipValue:function(){return e&&e.headerTooltip}};e&&(o.getColDef=function(){return e}),this.createManagedBean(new pl(o,this.beans)).setComp(this.comp)},e.prototype.setupExpandable=function(){var t=this.columnGroup.getProvidedColumnGroup();this.refreshExpanded(),this.addManagedListener(t,st.EVENT_EXPANDABLE_CHANGED,this.refreshExpanded.bind(this)),this.addManagedListener(t,st.EVENT_EXPANDED_CHANGED,this.refreshExpanded.bind(this))},e.prototype.refreshExpanded=function(){var t=this.columnGroup;this.expandable=t.isExpandable();var e=t.isExpanded();this.expandable?this.comp.setAriaExpanded(e?"true":"false"):this.comp.setAriaExpanded(void 0)},e.prototype.addAttributes=function(){this.comp.setColId(this.columnGroup.getUniqueId())},e.prototype.addClasses=function(){var t=this,e=this.columnGroup.getColGroupDef(),o=Ku.getHeaderClassesFromColDef(e,this.gridOptionsService,null,this.columnGroup);this.columnGroup.isPadding()?(o.push("ag-header-group-cell-no-group"),this.columnGroup.getLeafColumns().every((function(t){return t.isSpanHeaderHeight()}))&&o.push("ag-header-span-height")):o.push("ag-header-group-cell-with-group");o.forEach((function(e){return t.comp.addOrRemoveCssClass(e,!0)}))},e.prototype.setupMovingCss=function(){var t=this,e=this.columnGroup.getProvidedColumnGroup().getLeafColumns(),o=function(){return t.comp.addOrRemoveCssClass("ag-header-cell-moving",t.columnGroup.isMoving())};e.forEach((function(e){t.addManagedListener(e,nt.EVENT_MOVING_CHANGED,o)})),o()},e.prototype.onFocusIn=function(t){if(!this.eGui.contains(t.relatedTarget)){var e=this.getRowIndex();this.beans.focusService.setFocusedHeader(e,this.columnGroup)}},e.prototype.handleKeyDown=function(e){t.prototype.handleKeyDown.call(this,e);var o=this.getWrapperHasFocus();if(this.expandable&&o&&e.key===Gi.ENTER){var i=this.columnGroup,n=!i.isExpanded();this.columnModel.setColumnGroupOpened(i.getProvidedColumnGroup(),n,"uiColumnExpanded")}},e.prototype.setDragSource=function(t){var e=this;if(!this.isSuppressMoving()){var o=this.columnGroup.getProvidedColumnGroup().getLeafColumns(),i=!this.gridOptionsService.is("suppressDragLeaveHidesColumns"),n={type:br.HeaderCell,eElement:t,defaultIconName:i?bs.ICON_HIDE:bs.ICON_NOT_ALLOWED,dragItemName:this.displayName,getDragItem:this.getDragItemForGroup.bind(this),onDragStarted:function(){return o.forEach((function(t){return t.setMoving(!0,"uiColumnDragged")}))},onDragStopped:function(){return o.forEach((function(t){return t.setMoving(!1,"uiColumnDragged")}))},onGridEnter:function(t){var o;if(i){var n=(null===(o=null==t?void 0:t.columns)||void 0===o?void 0:o.filter((function(t){return!t.getColDef().lockVisible})))||[];e.columnModel.setColumnsVisible(n,!0,"uiColumnMoved")}},onGridExit:function(t){var o;if(i){var n=(null===(o=null==t?void 0:t.columns)||void 0===o?void 0:o.filter((function(t){return!t.getColDef().lockVisible})))||[];e.columnModel.setColumnsVisible(n,!1,"uiColumnMoved")}}};this.dragAndDropService.addDragSource(n,!0),this.addDestroyFunc((function(){return e.dragAndDropService.removeDragSource(n)}))}},e.prototype.getDragItemForGroup=function(){var t=this.columnGroup.getProvidedColumnGroup().getLeafColumns(),e={};t.forEach((function(t){return e[t.getId()]=t.isVisible()}));var o=[];return this.columnModel.getAllDisplayedColumns().forEach((function(e){t.indexOf(e)>=0&&(o.push(e),dt(t,e))})),t.forEach((function(t){return o.push(t)})),{columns:o,visibleState:e}},e.prototype.isSuppressMoving=function(){var t=!1;return this.columnGroup.getLeafColumns().forEach((function(e){(e.getColDef().suppressMovable||e.getColDef().lockPosition)&&(t=!0)})),t||this.gridOptionsService.is("suppressMovableColumns")},Fc([U("columnModel")],e.prototype,"columnModel",void 0),Fc([U("dragAndDropService")],e.prototype,"dragAndDropService",void 0),Fc([U("gridApi")],e.prototype,"gridApi",void 0),Fc([U("columnApi")],e.prototype,"columnApi",void 0),e}(sc),Mc=function(){var t=function(e,o){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])})(e,o)};return function(e,o){function i(){this.constructor=e}t(e,o),e.prototype=null===o?Object.create(o):(i.prototype=o.prototype,new i)}}(),Ic=function(t,e,o,i){var n,r=arguments.length,s=r<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,o):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,o,i);else for(var a=t.length-1;a>=0;a--)(n=t[a])&&(s=(r<3?n(s):r>3?n(e,o,s):n(e,o))||s);return r>3&&s&&Object.defineProperty(e,o,s),s},Gc=0,xc=function(t){function e(e,o,i){var n=t.call(this)||this;return n.instanceId=Gc++,n.headerCellCtrls={},n.rowIndex=e,n.pinned=o,n.type=i,n}return Mc(e,t),e.prototype.getInstanceId=function(){return this.instanceId},e.prototype.setComp=function(t){this.comp=t,this.onRowHeightChanged(),this.onVirtualColumnsChanged(),this.setWidth(),this.addEventListeners(),Eo()&&this.comp.setTransform("translateZ(0)"),t.setAriaRowIndex(this.rowIndex+1)},e.prototype.addEventListeners=function(){this.addManagedListener(this.eventService,kt.EVENT_COLUMN_RESIZED,this.onColumnResized.bind(this)),this.addManagedListener(this.eventService,kt.EVENT_DISPLAYED_COLUMNS_CHANGED,this.onDisplayedColumnsChanged.bind(this)),this.addManagedListener(this.eventService,kt.EVENT_VIRTUAL_COLUMNS_CHANGED,this.onVirtualColumnsChanged.bind(this)),this.addManagedListener(this.eventService,kt.EVENT_COLUMN_HEADER_HEIGHT_CHANGED,this.onRowHeightChanged.bind(this)),this.addManagedListener(this.eventService,kt.EVENT_GRID_STYLES_CHANGED,this.onRowHeightChanged.bind(this)),this.addManagedPropertyListener("domLayout",this.onDisplayedColumnsChanged.bind(this)),this.addManagedPropertyListener("headerHeight",this.onRowHeightChanged.bind(this)),this.addManagedPropertyListener("pivotHeaderHeight",this.onRowHeightChanged.bind(this)),this.addManagedPropertyListener("groupHeaderHeight",this.onRowHeightChanged.bind(this)),this.addManagedPropertyListener("pivotGroupHeaderHeight",this.onRowHeightChanged.bind(this)),this.addManagedPropertyListener("floatingFiltersHeight",this.onRowHeightChanged.bind(this))},e.prototype.getHeaderCellCtrl=function(t){return a(this.headerCellCtrls).find((function(e){return e.getColumnGroupChild()===t}))},e.prototype.onDisplayedColumnsChanged=function(){this.onVirtualColumnsChanged(),this.setWidth(),this.onRowHeightChanged()},e.prototype.getType=function(){return this.type},e.prototype.onColumnResized=function(){this.setWidth()},e.prototype.setWidth=function(){var t=this.getWidthForRow();this.comp.setWidth(t+"px")},e.prototype.getWidthForRow=function(){return this.gridOptionsService.isDomLayout("print")?null!=this.pinned?0:this.columnModel.getContainerWidth("right")+this.columnModel.getContainerWidth("left")+this.columnModel.getContainerWidth(null):this.columnModel.getContainerWidth(this.pinned)},e.prototype.onRowHeightChanged=function(){var t=this.columnModel.getHeaderRowCount(),e=[],o=0;this.columnModel.hasFloatingFilters()&&(t++,o=1);for(var i=this.columnModel.getColumnGroupHeaderRowHeight(),n=this.columnModel.getColumnHeaderRowHeight(),r=t-(1+o),s=0;s<r;s++)e.push(i);e.push(n);for(s=0;s<o;s++)e.push(this.columnModel.getFloatingFiltersHeight());var a=0;for(s=0;s<this.rowIndex;s++)a+=e[s];var l=e[this.rowIndex]+"px";this.comp.setTop(a+"px"),this.comp.setHeight(l)},e.prototype.getPinned=function(){return this.pinned},e.prototype.getRowIndex=function(){return this.rowIndex},e.prototype.onVirtualColumnsChanged=function(){var t=this,e=this.headerCellCtrls;this.headerCellCtrls={},this.getColumnsInViewport().forEach((function(o){if(!o.isEmptyGroup()){var i=o.getUniqueId(),n=e[i];if(delete e[i],n&&n.getColumnGroupChild()!=o&&(t.destroyBean(n),n=void 0),null==n)switch(t.type){case Mu.FLOATING_FILTER:n=t.createBean(new gc(o,t));break;case Mu.COLUMN_GROUP:n=t.createBean(new Lc(o,t));break;default:n=t.createBean(new Oc(o,t))}t.headerCellCtrls[i]=n}}));c(e,(function(e,o){var i;(i=o,!!t.focusService.isHeaderWrapperFocused(i)&&t.columnModel.isDisplayed(i.getColumnGroupChild()))?t.headerCellCtrls[e]=o:t.destroyBean(o)}));var o=y(this.headerCellCtrls);this.comp.setHeaderCtrls(o)},e.prototype.getColumnsInViewport=function(){return this.gridOptionsService.isDomLayout("print")?this.getColumnsInViewportPrintLayout():this.getColumnsInViewportNormalLayout()},e.prototype.getColumnsInViewportPrintLayout=function(){var t=this;if(null!=this.pinned)return[];var e=[],o=this.getActualDepth();return["left",null,"right"].forEach((function(i){var n=t.columnModel.getVirtualHeaderGroupRow(i,o);e=e.concat(n)})),e},e.prototype.getActualDepth=function(){return this.type==Mu.FLOATING_FILTER?this.rowIndex-1:this.rowIndex},e.prototype.getColumnsInViewportNormalLayout=function(){return this.columnModel.getVirtualHeaderGroupRow(this.pinned,this.getActualDepth())},e.prototype.focusHeader=function(t,e){var o=y(this.headerCellCtrls).find((function(e){return e.getColumnGroupChild()==t}));return!!o&&(o.focus(e),!0)},e.prototype.destroy=function(){var e=this;c(this.headerCellCtrls,(function(t,o){e.destroyBean(o)})),this.headerCellCtrls={},t.prototype.destroy.call(this)},Ic([U("columnModel")],e.prototype,"columnModel",void 0),Ic([U("focusService")],e.prototype,"focusService",void 0),e}(Mt),Hc=function(){var t=function(e,o){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])})(e,o)};return function(e,o){function i(){this.constructor=e}t(e,o),e.prototype=null===o?Object.create(o):(i.prototype=o.prototype,new i)}}(),Vc=function(t,e,o,i){var n,r=arguments.length,s=r<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,o):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,o,i);else for(var a=t.length-1;a>=0;a--)(n=t[a])&&(s=(r<3?n(s):r>3?n(e,o,s):n(e,o))||s);return r>3&&s&&Object.defineProperty(e,o,s),s},kc=function(t,e){var o="function"==typeof Symbol&&t[Symbol.iterator];if(!o)return t;var i,n,r=o.call(t),s=[];try{for(;(void 0===e||e-- >0)&&!(i=r.next()).done;)s.push(i.value)}catch(t){n={error:t}}finally{try{i&&!i.done&&(o=r.return)&&o.call(r)}finally{if(n)throw n.error}}return s},Bc=function(){for(var t=[],e=0;e<arguments.length;e++)t=t.concat(kc(arguments[e]));return t},jc=function(t){function e(e){var o=t.call(this)||this;return o.hidden=!1,o.groupsRowCtrls=[],o.pinned=e,o}return Hc(e,t),e.prototype.setComp=function(t,e){this.comp=t,this.eViewport=e,this.setupCenterWidth(),this.setupPinnedWidth(),this.setupDragAndDrop(this.eViewport),this.addManagedListener(this.eventService,kt.EVENT_GRID_COLUMNS_CHANGED,this.onGridColumnsChanged.bind(this)),this.addManagedListener(this.eViewport,"scroll",this.resetScrollLeft.bind(this)),this.ctrlsService.registerHeaderContainer(this,this.pinned),this.columnModel.isReady()&&this.refresh()},e.prototype.setupDragAndDrop=function(t){var e=new Wu(this.pinned,t);this.createManagedBean(e)},e.prototype.refresh=function(t){var e=this;void 0===t&&(t=!1);var o,i,n=new Ji,r=this.focusService.getFocusHeaderToUseAfterRefresh();!function(){var t=e.columnModel.getHeaderRowCount()-1;e.groupsRowCtrls=e.destroyBeans(e.groupsRowCtrls);for(var o=0;o<t;o++){var i=e.createBean(new xc(n.next(),e.pinned,Mu.COLUMN_GROUP));e.groupsRowCtrls.push(i)}}(),o=n.next(),((i=!(e.hidden||null!=e.columnsRowCtrl&&t&&e.columnsRowCtrl.getRowIndex()===o))||e.hidden)&&(e.columnsRowCtrl=e.destroyBean(e.columnsRowCtrl)),i&&(e.columnsRowCtrl=e.createBean(new xc(o,e.pinned,Mu.COLUMN))),function(){var o=function(){e.filtersRowCtrl=e.destroyBean(e.filtersRowCtrl)};if(e.columnModel.hasFloatingFilters()&&!e.hidden){var i=n.next();if(e.filtersRowCtrl){var r=e.filtersRowCtrl.getRowIndex()!==i;t&&!r||o()}e.filtersRowCtrl||(e.filtersRowCtrl=e.createBean(new xc(i,e.pinned,Mu.FLOATING_FILTER)))}else o()}();var s=this.getAllCtrls();this.comp.setCtrls(s),this.restoreFocusOnHeader(r)},e.prototype.restoreFocusOnHeader=function(t){null!=t&&t.column.getPinned()==this.pinned&&this.focusService.focusHeaderPosition({headerPosition:t})},e.prototype.getAllCtrls=function(){var t=Bc(this.groupsRowCtrls);return this.columnsRowCtrl&&t.push(this.columnsRowCtrl),this.filtersRowCtrl&&t.push(this.filtersRowCtrl),t},e.prototype.onGridColumnsChanged=function(){this.refresh(!0)},e.prototype.setupCenterWidth=function(){var t=this;null==this.pinned&&this.createManagedBean(new tu((function(e){return t.comp.setCenterWidth(e+"px")})))},e.prototype.setHorizontalScroll=function(t){this.comp.setContainerTransform("translateX("+t+"px)")},e.prototype.resetScrollLeft=function(){this.eViewport.scrollLeft=0},e.prototype.setupPinnedWidth=function(){var t=this;if(null!=this.pinned){var e="left"===this.pinned,o="right"===this.pinned;this.hidden=!0;var i=function(){var i=e?t.pinnedWidthService.getPinnedLeftWidth():t.pinnedWidthService.getPinnedRightWidth();if(null!=i){var n=0==i,r=t.hidden!==n,s=t.gridOptionsService.is("enableRtl"),a=t.gridOptionsService.getScrollbarWidth(),l=t.scrollVisibleService.isVerticalScrollShowing()&&(s&&e||!s&&o)?i+a:i;t.comp.setPinnedContainerWidth(l+"px"),t.comp.setDisplayed(!n),r&&(t.hidden=n,t.refresh())}};this.addManagedListener(this.eventService,kt.EVENT_LEFT_PINNED_WIDTH_CHANGED,i),this.addManagedListener(this.eventService,kt.EVENT_RIGHT_PINNED_WIDTH_CHANGED,i),this.addManagedListener(this.eventService,kt.EVENT_SCROLL_VISIBILITY_CHANGED,i),this.addManagedListener(this.eventService,kt.EVENT_SCROLLBAR_WIDTH_CHANGED,i)}},e.prototype.getHeaderCtrlForColumn=function(t){if(t instanceof nt){if(!this.columnsRowCtrl)return;return this.columnsRowCtrl.getHeaderCellCtrl(t)}if(0!==this.groupsRowCtrls.length)for(var e=0;e<this.groupsRowCtrls.length;e++){var o=this.groupsRowCtrls[e].getHeaderCellCtrl(t);if(o)return o}},e.prototype.getHtmlElementForColumnHeader=function(t){var e=this.getHeaderCtrlForColumn(t);return e?e.getGui():null},e.prototype.getRowType=function(t){var e=this.getAllCtrls()[t];return e?e.getType():void 0},e.prototype.focusHeader=function(t,e,o){var i=this.getAllCtrls()[t];return!!i&&i.focusHeader(e,o)},e.prototype.getRowCount=function(){return this.getAllCtrls().length},e.prototype.destroy=function(){this.filtersRowCtrl&&(this.filtersRowCtrl=this.destroyBean(this.filtersRowCtrl)),this.columnsRowCtrl&&(this.columnsRowCtrl=this.destroyBean(this.columnsRowCtrl)),this.groupsRowCtrls&&this.groupsRowCtrls.length&&(this.groupsRowCtrls=this.destroyBeans(this.groupsRowCtrls)),t.prototype.destroy.call(this)},Vc([U("ctrlsService")],e.prototype,"ctrlsService",void 0),Vc([U("scrollVisibleService")],e.prototype,"scrollVisibleService",void 0),Vc([U("pinnedWidthService")],e.prototype,"pinnedWidthService",void 0),Vc([U("columnModel")],e.prototype,"columnModel",void 0),Vc([U("focusService")],e.prototype,"focusService",void 0),e}(Mt),Wc=function(){var t=function(e,o){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])})(e,o)};return function(e,o){function i(){this.constructor=e}t(e,o),e.prototype=null===o?Object.create(o):(i.prototype=o.prototype,new i)}}(),Uc=function(t,e,o,i){var n,r=arguments.length,s=r<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,o):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,o,i);else for(var a=t.length-1;a>=0;a--)(n=t[a])&&(s=(r<3?n(s):r>3?n(e,o,s):n(e,o))||s);return r>3&&s&&Object.defineProperty(e,o,s),s},zc=function(t){function e(e){var o=t.call(this)||this;return o.headerRowComps={},o.rowCompsList=[],o.pinned=e,o}return Wc(e,t),e.prototype.init=function(){var t=this;this.selectAndSetTemplate();var e={setDisplayed:function(e){return t.setDisplayed(e)},setCtrls:function(e){return t.setCtrls(e)},setCenterWidth:function(e){return t.eCenterContainer.style.width=e},setContainerTransform:function(e){return t.eCenterContainer.style.transform=e},setPinnedContainerWidth:function(e){var o=t.getGui();o.style.width=e,o.style.maxWidth=e,o.style.minWidth=e}};this.createManagedBean(new jc(this.pinned)).setComp(e,this.getGui())},e.prototype.selectAndSetTemplate=function(){var t="left"==this.pinned,o="right"==this.pinned,i=t?e.PINNED_LEFT_TEMPLATE:o?e.PINNED_RIGHT_TEMPLATE:e.CENTER_TEMPLATE;this.setTemplate(i),this.eRowContainer=this.eCenterContainer?this.eCenterContainer:this.getGui()},e.prototype.destroyRowComps=function(){this.setCtrls([])},e.prototype.destroyRowComp=function(t){this.destroyBean(t),this.eRowContainer.removeChild(t.getGui())},e.prototype.setCtrls=function(t){var e,o=this,i=this.headerRowComps;this.headerRowComps={},this.rowCompsList=[];t.forEach((function(t){var n=t.getInstanceId(),r=i[n];delete i[n];var s=r||o.createBean(new oc(t));o.headerRowComps[n]=s,o.rowCompsList.push(s),function(t){var i=t.getGui();i.parentElement!=o.eRowContainer&&o.eRowContainer.appendChild(i),e&&vi(o.eRowContainer,i,e),e=i}(s)})),y(i).forEach((function(t){return o.destroyRowComp(t)}))},e.PINNED_LEFT_TEMPLATE='<div class="ag-pinned-left-header" role="presentation"></div>',e.PINNED_RIGHT_TEMPLATE='<div class="ag-pinned-right-header" role="presentation"></div>',e.CENTER_TEMPLATE='<div class="ag-header-viewport" role="presentation">\n <div class="ag-header-container" ref="eCenterContainer" role="rowgroup"></div>\n </div>',Uc([dn("eCenterContainer")],e.prototype,"eCenterContainer",void 0),Uc([B],e.prototype,"init",null),Uc([j],e.prototype,"destroyRowComps",null),e}(cn),Kc=function(){var t=function(e,o){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])})(e,o)};return function(e,o){function i(){this.constructor=e}t(e,o),e.prototype=null===o?Object.create(o):(i.prototype=o.prototype,new i)}}(),Yc=function(t,e,o,i){var n,r=arguments.length,s=r<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,o):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,o,i);else for(var a=t.length-1;a>=0;a--)(n=t[a])&&(s=(r<3?n(s):r>3?n(e,o,s):n(e,o))||s);return r>3&&s&&Object.defineProperty(e,o,s),s};
250/**
251 * @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue
252 * @version v29.2.0
253 * @link https://www.ag-grid.com/
254 * @license MIT
255 */!function(t){t[t.UP=0]="UP",t[t.DOWN=1]="DOWN",t[t.LEFT=2]="LEFT",t[t.RIGHT=3]="RIGHT"}(ec||(ec={}));var qc=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Kc(e,t),e.prototype.postConstruct=function(){var t=this;this.ctrlsService.whenReady((function(e){t.gridBodyCon=e.gridBodyCtrl}))},e.prototype.getHeaderRowCount=function(){var t=this.ctrlsService.getHeaderRowContainerCtrl();return t?t.getRowCount():0},e.prototype.navigateVertically=function(t,e,o){if(e||(e=this.focusService.getFocusedHeader()),!e)return!1;var i=e.headerRowIndex,n=e.column,r=this.getHeaderRowCount(),s=t===ec.UP?this.headerPositionUtils.getColumnVisibleParent(n,i):this.headerPositionUtils.getColumnVisibleChild(n,i),a=s.nextRow,l=s.nextFocusColumn,u=!1;return a<0&&(a=0,l=n,u=!0),a>=r&&(a=-1),!(!u&&!l)&&this.focusService.focusHeaderPosition({headerPosition:{headerRowIndex:a,column:l},allowUserOverride:!0,event:o})},e.prototype.navigateHorizontally=function(t,e,o){void 0===e&&(e=!1);var i,n,r=this.focusService.getFocusedHeader();return t===ec.LEFT!==this.gridOptionsService.is("enableRtl")?(n="Before",i=this.headerPositionUtils.findHeader(r,n)):(n="After",i=this.headerPositionUtils.findHeader(r,n)),i||!e?this.focusService.focusHeaderPosition({headerPosition:i,direction:n,fromTab:e,allowUserOverride:!0,event:o}):this.focusNextHeaderRow(r,n,o)},e.prototype.focusNextHeaderRow=function(t,e,o){var i,n=t.headerRowIndex,r=null;return"Before"===e?n>0&&(i=n-1,r=this.headerPositionUtils.findColAtEdgeForHeaderRow(i,"end")):(i=n+1,r=this.headerPositionUtils.findColAtEdgeForHeaderRow(i,"start")),this.focusService.focusHeaderPosition({headerPosition:r,direction:e,fromTab:!0,allowUserOverride:!0,event:o})},e.prototype.scrollToColumn=function(t,e){if(void 0===e&&(e="After"),!t.getPinned()){var o;if(t instanceof re){var i=t.getDisplayedLeafColumns();o="Before"===e?ut(i):i[0]}else o=t;this.gridBodyCon.getScrollFeature().ensureColumnVisible(o)}},Yc([U("focusService")],e.prototype,"focusService",void 0),Yc([U("headerPositionUtils")],e.prototype,"headerPositionUtils",void 0),Yc([U("ctrlsService")],e.prototype,"ctrlsService",void 0),Yc([B],e.prototype,"postConstruct",null),e=Yc([W("headerNavigationService")],e)}(Mt),Qc=function(){var t=function(e,o){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])})(e,o)};return function(e,o){function i(){this.constructor=e}t(e,o),e.prototype=null===o?Object.create(o):(i.prototype=o.prototype,new i)}}(),Xc=function(t,e,o,i){var n,r=arguments.length,s=r<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,o):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,o,i);else for(var a=t.length-1;a>=0;a--)(n=t[a])&&(s=(r<3?n(s):r>3?n(e,o,s):n(e,o))||s);return r>3&&s&&Object.defineProperty(e,o,s),s},Jc=function(t){function o(){return null!==t&&t.apply(this,arguments)||this}return Qc(o,t),o.prototype.setComp=function(t,e,o){this.comp=t,this.eGui=e,this.createManagedBean(new On(o,{onTabKeyDown:this.onTabKeyDown.bind(this),handleKeyDown:this.handleKeyDown.bind(this),onFocusOut:this.onFocusOut.bind(this)})),this.addManagedListener(this.eventService,kt.EVENT_COLUMN_PIVOT_MODE_CHANGED,this.onPivotModeChanged.bind(this)),this.addManagedListener(this.eventService,kt.EVENT_DISPLAYED_COLUMNS_CHANGED,this.onDisplayedColumnsChanged.bind(this)),this.onPivotModeChanged(),this.setupHeaderHeight(),this.ctrlsService.registerGridHeaderCtrl(this)},o.prototype.setupHeaderHeight=function(){var t=this.setHeaderHeight.bind(this);t(),this.addManagedPropertyListener("headerHeight",t),this.addManagedPropertyListener("pivotHeaderHeight",t),this.addManagedPropertyListener("groupHeaderHeight",t),this.addManagedPropertyListener("pivotGroupHeaderHeight",t),this.addManagedPropertyListener("floatingFiltersHeight",t),this.addManagedListener(this.eventService,kt.EVENT_DISPLAYED_COLUMNS_CHANGED,t),this.addManagedListener(this.eventService,kt.EVENT_COLUMN_HEADER_HEIGHT_CHANGED,t),this.addManagedListener(this.eventService,kt.EVENT_GRID_STYLES_CHANGED,t)},o.prototype.getHeaderHeight=function(){return this.headerHeight},o.prototype.setHeaderHeight=function(){var t,e=this.columnModel,o=0,i=e.getHeaderRowCount();e.hasFloatingFilters()&&(i++,o=1);var n=this.columnModel.getColumnGroupHeaderRowHeight(),r=this.columnModel.getColumnHeaderRowHeight(),s=i-(1+o);if(t=o*e.getFloatingFiltersHeight(),t+=s*n,t+=r,this.headerHeight!==t){this.headerHeight=t;var a=t+1+"px";this.comp.setHeightAndMinHeight(a),this.eventService.dispatchEvent({type:kt.EVENT_HEADER_HEIGHT_CHANGED})}},o.prototype.onPivotModeChanged=function(){var t=this.columnModel.isPivotMode();this.comp.addOrRemoveCssClass("ag-pivot-on",t),this.comp.addOrRemoveCssClass("ag-pivot-off",!t)},o.prototype.onDisplayedColumnsChanged=function(){var t=this.columnModel.getAllDisplayedColumns().some((function(t){return t.isSpanHeaderHeight()}));this.comp.addOrRemoveCssClass("ag-header-allow-overflow",t)},o.prototype.onTabKeyDown=function(t){var e=this.gridOptionsService.is("enableRtl"),o=t.shiftKey!==e?ec.LEFT:ec.RIGHT;(this.headerNavigationService.navigateHorizontally(o,!0,t)||this.focusService.focusNextGridCoreContainer(t.shiftKey))&&t.preventDefault()},o.prototype.handleKeyDown=function(t){var o=null;switch(t.key){case Gi.LEFT:o=ec.LEFT;case Gi.RIGHT:e(o)||(o=ec.RIGHT),this.headerNavigationService.navigateHorizontally(o,!1,t);break;case Gi.UP:o=ec.UP;case Gi.DOWN:e(o)||(o=ec.DOWN),this.headerNavigationService.navigateVertically(o,null,t)&&t.preventDefault();break;default:return}},o.prototype.onFocusOut=function(t){var e=this.gridOptionsService.getDocument(),o=t.relatedTarget;!o&&this.eGui.contains(e.activeElement)||this.eGui.contains(o)||this.focusService.clearFocusedHeader()},Xc([U("headerNavigationService")],o.prototype,"headerNavigationService",void 0),Xc([U("focusService")],o.prototype,"focusService",void 0),Xc([U("columnModel")],o.prototype,"columnModel",void 0),Xc([U("ctrlsService")],o.prototype,"ctrlsService",void 0),o}(Mt),Zc=function(){var t=function(e,o){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])})(e,o)};return function(e,o){function i(){this.constructor=e}t(e,o),e.prototype=null===o?Object.create(o):(i.prototype=o.prototype,new i)}}(),$c=function(t,e,o,i){var n,r=arguments.length,s=r<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,o):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,o,i);else for(var a=t.length-1;a>=0;a--)(n=t[a])&&(s=(r<3?n(s):r>3?n(e,o,s):n(e,o))||s);return r>3&&s&&Object.defineProperty(e,o,s),s},tp=function(t){function e(){return t.call(this,e.TEMPLATE)||this}return Zc(e,t),e.prototype.postConstruct=function(){var t=this,e={addOrRemoveCssClass:function(e,o){return t.addOrRemoveCssClass(e,o)},setHeightAndMinHeight:function(e){t.getGui().style.height=e,t.getGui().style.minHeight=e}};this.createManagedBean(new Jc).setComp(e,this.getGui(),this.getFocusableElement());var o=function(e){t.createManagedBean(e),t.appendChild(e)};o(new zc("left")),o(new zc(null)),o(new zc("right"))},e.TEMPLATE='<div class="ag-header" role="presentation"/>',$c([B],e.prototype,"postConstruct",null),e}(cn),ep=function(){var t=function(e,o){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])})(e,o)};return function(e,o){function i(){this.constructor=e}t(e,o),e.prototype=null===o?Object.create(o):(i.prototype=o.prototype,new i)}}(),op=function(t,e,o,i){var n,r=arguments.length,s=r<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,o):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,o,i);else for(var a=t.length-1;a>=0;a--)(n=t[a])&&(s=(r<3?n(s):r>3?n(e,o,s):n(e,o))||s);return r>3&&s&&Object.defineProperty(e,o,s),s},ip=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return ep(e,t),e.prototype.addResizeBar=function(t){var e=this,o={dragStartPixels:t.dragStartPixels||0,eElement:t.eResizeBar,onDragStart:this.onDragStart.bind(this,t),onDragStop:this.onDragStop.bind(this,t),onDragging:this.onDragging.bind(this,t)};this.dragService.addDragSource(o,!0);return function(){return e.dragService.removeDragSource(o)}},e.prototype.onDragStart=function(t,e){this.dragStartX=e.clientX,this.setResizeIcons();var o=e instanceof MouseEvent&&!0===e.shiftKey;t.onResizeStart(o)},e.prototype.setResizeIcons=function(){var t=this.ctrlsService.getGridCtrl();t.setResizeCursor(!0),t.disableUserSelect(!0)},e.prototype.onDragStop=function(t,e){t.onResizeEnd(this.resizeAmount),this.resetIcons()},e.prototype.resetIcons=function(){var t=this.ctrlsService.getGridCtrl();t.setResizeCursor(!1),t.disableUserSelect(!1)},e.prototype.onDragging=function(t,e){this.resizeAmount=e.clientX-this.dragStartX,t.onResizing(this.resizeAmount)},op([U("dragService")],e.prototype,"dragService",void 0),op([U("ctrlsService")],e.prototype,"ctrlsService",void 0),e=op([W("horizontalResizeService")],e)}(Mt),np=function(){var t=function(e,o){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])})(e,o)};return function(e,o){function i(){this.constructor=e}t(e,o),e.prototype=null===o?Object.create(o):(i.prototype=o.prototype,new i)}}(),rp=function(t,e,o,i){var n,r=arguments.length,s=r<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,o):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,o,i);else for(var a=t.length-1;a>=0;a--)(n=t[a])&&(s=(r<3?n(s):r>3?n(e,o,s):n(e,o))||s);return r>3&&s&&Object.defineProperty(e,o,s),s},sp=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return np(e,t),e.prototype.hideActiveMenu=function(){this.hidePopup&&this.hidePopup()},e.prototype.showMenuAfterMouseEvent=function(t,e){var o=this;this.showPopup(t,(function(i){o.popupService.positionPopupUnderMouseEvent({column:t,type:"columnMenu",mouseEvent:e,ePopup:i})}),"columnMenu",e.target)},e.prototype.showMenuAfterButtonClick=function(t,e,o){var i=this;this.showPopup(t,(function(n){i.popupService.positionPopupByComponent({type:o,eventSource:e,ePopup:n,keepWithinBounds:!0,position:"under",column:t,shouldSetMaxHeight:!0})}),o,e)},e.prototype.showPopup=function(t,e,o,i){var n=this,r=this.filterManager.getOrCreateFilterWrapper(t,"COLUMN_MENU");if(!r)throw new Error("AG Grid - unable to show popup filter, filter instantiation failed");var s,a=document.createElement("div");ke(a,"presentation"),a.classList.add("ag-menu"),this.tabListener=this.addManagedListener(a,"keydown",(function(t){return n.trapFocusWithin(t,a)})),r.guiPromise.then((function(t){return a.appendChild(t)}));var l=i||this.ctrlsService.getGridBodyCtrl().getGui(),u=this.localeService.getLocaleTextFunc(),c=this.popupService.addPopup({modal:!0,eChild:a,closeOnEsc:!0,closedCallback:function(e){t.setMenuVisible(!1,"contextMenu");var o,s=e instanceof KeyboardEvent;if(n.tabListener&&(n.tabListener=n.tabListener()),s&&i&&di(i)){var a=n.focusService.findTabbableParent(i);a&&a.focus()}null===(o=r.filterPromise)||void 0===o||o.then((function(t){var e;return null===(e=null==t?void 0:t.afterGuiDetached)||void 0===e?void 0:e.call(t)}))},positionCallback:function(){return e(a)},anchorToElement:l,ariaLabel:u("ariaLabelColumnMenu","Column Menu")});c&&(this.hidePopup=s=c.hideFunc),r.filterPromise.then((function(t){e(a),t.afterGuiAttached&&t.afterGuiAttached({container:o,hidePopup:s})})),t.setMenuVisible(!0,"contextMenu")},e.prototype.trapFocusWithin=function(t,e){t.key!==Gi.TAB||t.defaultPrevented||this.focusService.findNextFocusableElement(e,!1,t.shiftKey)||(t.preventDefault(),this.focusService.focusInto(e,t.shiftKey))},e.prototype.isMenuEnabled=function(t){return t.isFilterAllowed()},rp([U("filterManager")],e.prototype,"filterManager",void 0),rp([U("popupService")],e.prototype,"popupService",void 0),rp([U("focusService")],e.prototype,"focusService",void 0),rp([U("ctrlsService")],e.prototype,"ctrlsService",void 0),e=rp([W("menuFactory")],e)}(Mt),ap=function(){var t=function(e,o){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])})(e,o)};return function(e,o){function i(){this.constructor=e}t(e,o),e.prototype=null===o?Object.create(o):(i.prototype=o.prototype,new i)}}(),lp=function(t,e,o,i){var n,r=arguments.length,s=r<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,o):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,o,i);else for(var a=t.length-1;a>=0;a--)(n=t[a])&&(s=(r<3?n(s):r>3?n(e,o,s):n(e,o))||s);return r>3&&s&&Object.defineProperty(e,o,s),s},up=function(t){function e(o){var i=t.call(this,e.getTemplate(o.cssClass))||this;return i.items=[],i.tabbedItemScrollMap=new Map,i.params=o,o.items&&o.items.forEach((function(t){return i.addItem(t)})),i}return ap(e,t),e.prototype.postConstruct=function(){var t=this;this.createManagedBean(new On(this.getFocusableElement(),{onTabKeyDown:this.onTabKeyDown.bind(this),handleKeyDown:this.handleKeyDown.bind(this)})),this.addDestroyFunc((function(){var e,o,i;return null===(i=null===(o=null===(e=t.activeItem)||void 0===e?void 0:e.tabbedItem)||void 0===o?void 0:o.afterDetachedCallback)||void 0===i?void 0:i.call(o)}))},e.getTemplate=function(t){return'<div class="ag-tabs '+t+'">\n <div ref="eHeader" role="tablist" class="ag-tabs-header '+(t?t+"-header":"")+'"></div>\n <div ref="eBody" role="presentation" class="ag-tabs-body '+(t?t+"-body":"")+'"></div>\n </div>'},e.prototype.handleKeyDown=function(t){var e=this.gridOptionsService.getDocument();switch(t.key){case Gi.RIGHT:case Gi.LEFT:if(!this.eHeader.contains(e.activeElement))return;var o=t.key===Gi.RIGHT,i=this.gridOptionsService.is("enableRtl"),n=this.items.indexOf(this.activeItem),r=o!==i?Math.min(n+1,this.items.length-1):Math.max(n-1,0);if(n===r)return;t.preventDefault();var s=this.items[r];this.showItemWrapper(s),s.eHeaderButton.focus();break;case Gi.UP:case Gi.DOWN:t.stopPropagation()}},e.prototype.onTabKeyDown=function(t){if(!t.defaultPrevented){var e=this.focusService,o=this.eHeader,i=this.eBody,n=this.activeItem,r=this.gridOptionsService.getDocument().activeElement,s=t.target;if(t.preventDefault(),o.contains(r))e.focusInto(i,t.shiftKey);else{var a=null;e.isTargetUnderManagedComponent(i,s)&&(t.shiftKey&&(a=this.focusService.findFocusableElementBeforeTabGuard(i,s)),a||(a=n.eHeaderButton)),!a&&i.contains(r)&&((a=e.findNextFocusableElement(i,!1,t.shiftKey))||(a=n.eHeaderButton)),a&&a.focus()}}},e.prototype.setAfterAttachedParams=function(t){this.afterAttachedParams=t},e.prototype.showFirstItem=function(){this.items.length>0&&this.showItemWrapper(this.items[0])},e.prototype.addItem=function(t){var e=document.createElement("span");ke(e,"tab"),e.setAttribute("tabIndex","-1"),e.appendChild(t.title),e.classList.add("ag-tab"),this.eHeader.appendChild(e),Ue(e,t.titleLabel);var o={tabbedItem:t,eHeaderButton:e};this.items.push(o),e.addEventListener("click",this.showItemWrapper.bind(this,o))},e.prototype.showItem=function(t){var e=this.items.find((function(e){return e.tabbedItem===t}));e&&this.showItemWrapper(e)},e.prototype.showItemWrapper=function(t){var e,o,i=this,n=t.tabbedItem,r=t.eHeaderButton;this.params.onItemClicked&&this.params.onItemClicked({item:n}),this.activeItem!==t?(this.lastScrollListener&&(this.lastScrollListener=this.lastScrollListener()),ci(this.eBody),n.bodyPromise.then((function(t){i.eBody.appendChild(t);var e=!i.focusService.isKeyboardMode();if(i.focusService.focusInto(i.eBody,!1,e),n.afterAttachedCallback&&n.afterAttachedCallback(i.afterAttachedParams),i.params.keepScrollPosition){var o=n.getScrollableContainer&&n.getScrollableContainer()||t;i.lastScrollListener=i.addManagedListener(o,"scroll",(function(){i.tabbedItemScrollMap.set(n.name,o.scrollTop)}));var r=i.tabbedItemScrollMap.get(n.name);void 0!==r&&setTimeout((function(){o.scrollTop=r}),0)}})),this.activeItem&&(this.activeItem.eHeaderButton.classList.remove("ag-tab-selected"),null===(o=(e=this.activeItem.tabbedItem).afterDetachedCallback)||void 0===o||o.call(e)),r.classList.add("ag-tab-selected"),this.activeItem=t):I(this.params.onActiveItemClicked)},lp([U("focusService")],e.prototype,"focusService",void 0),lp([dn("eHeader")],e.prototype,"eHeader",void 0),lp([dn("eBody")],e.prototype,"eBody",void 0),lp([B],e.prototype,"postConstruct",null),e}(cn);
256/**
257 * @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue
258 * @version v29.2.0
259 * @link https://www.ag-grid.com/
260 * @license MIT
261 */
262/**
263 * @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue
264 * @version v29.2.0
265 * @link https://www.ag-grid.com/
266 * @license MIT
267 */
268function cp(t){return O((function(){return console.warn("AG Grid: Since v29 simpleHttpRequest has been deprecated as it was only meant for use in internal AG Grid documentation examples. Please use the browser fetch api directly.")}),"simpleHttpRequest"),new $i((function(e){var o=new XMLHttpRequest;o.open("GET",t.url),o.send(),o.onreadystatechange=function(){4===o.readyState&&200===o.status&&e(JSON.parse(o.responseText))}}))}
269/**
270 * @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue
271 * @version v29.2.0
272 * @link https://www.ag-grid.com/
273 * @license MIT
274 */var pp,dp=function(){var t=function(e,o){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])})(e,o)};return function(e,o){function i(){this.constructor=e}t(e,o),e.prototype=null===o?Object.create(o):(i.prototype=o.prototype,new i)}}(),hp=function(t,e,o,i){var n,r=arguments.length,s=r<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,o):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,o,i);else for(var a=t.length-1;a>=0;a--)(n=t[a])&&(s=(r<3?n(s):r>3?n(e,o,s):n(e,o))||s);return r>3&&s&&Object.defineProperty(e,o,s),s},fp=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.polyfillFunctions=[],e}return dp(e,t),e.prototype.observeResize=function(t,e){var o,i,n,r,s,a=this,l=this.gridOptionsService.getDocument().defaultView||window,u=F(e,50),c=this.gridOptionsService.is("suppressBrowserResizeObserver");return!!l.ResizeObserver&&!c?((o=new l.ResizeObserver(u)).observe(t),function(){return o.disconnect()}):(i=gi(t),n=fi(t),r=!0,(s=function(){if(r){var o=gi(t),l=fi(t);(o!==i||l!==n)&&(i=o,n=l,e()),a.doNextPolyfillTurn(s)}})(),function(){return r=!1})},e.prototype.doNextPolyfillTurn=function(t){this.polyfillFunctions.push(t),this.schedulePolyfill()},e.prototype.schedulePolyfill=function(){var t=this;if(!this.polyfillScheduled){this.polyfillScheduled=!0,this.getFrameworkOverrides().setTimeout((function(){var e=t.polyfillFunctions;t.polyfillScheduled=!1,t.polyfillFunctions=[],e.forEach((function(t){return t()}))}),50)}},e=hp([W("resizeObserverService")],e)}(Mt),gp=function(){var t=function(e,o){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])})(e,o)};return function(e,o){function i(){this.constructor=e}t(e,o),e.prototype=null===o?Object.create(o):(i.prototype=o.prototype,new i)}}(),vp=function(t,e,o,i){var n,r=arguments.length,s=r<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,o):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,o,i);else for(var a=t.length-1;a>=0;a--)(n=t[a])&&(s=(r<3?n(s):r>3?n(e,o,s):n(e,o))||s);return r>3&&s&&Object.defineProperty(e,o,s),s},yp=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.createTasksP1={list:[],sorted:!1},e.createTasksP2={list:[],sorted:!1},e.destroyTasks=[],e.ticking=!1,e.scrollGoingDown=!0,e.lastPage=0,e.lastScrollTop=0,e.taskCount=0,e.cancelledTasks=new Set,e}return gp(e,t),e.prototype.setScrollTop=function(t){var e=this.gridOptionsService.is("pagination");if(this.scrollGoingDown=t>=this.lastScrollTop,e&&0===t){var o=this.paginationProxy.getCurrentPage();o!==this.lastPage&&(this.lastPage=o,this.scrollGoingDown=!0)}this.lastScrollTop=t},e.prototype.init=function(){this.useAnimationFrame=!this.gridOptionsService.is("suppressAnimationFrame")},e.prototype.isOn=function(){return this.useAnimationFrame},e.prototype.verifyAnimationFrameOn=function(t){!1===this.useAnimationFrame&&console.warn("AG Grid: AnimationFrameService."+t+" called but animation frames are off")},e.prototype.createTask=function(t,e,o){this.verifyAnimationFrameOn(o);var i={task:t,index:e,createOrder:++this.taskCount};this.addTaskToList(this[o],i),this.schedule()},e.prototype.cancelTask=function(t){this.cancelledTasks.add(t)},e.prototype.addTaskToList=function(t,e){t.list.push(e),t.sorted=!1},e.prototype.sortTaskList=function(t){if(!t.sorted){var e=this.scrollGoingDown?1:-1;t.list.sort((function(t,o){return t.index!==o.index?e*(o.index-t.index):o.createOrder-t.createOrder})),t.sorted=!0}},e.prototype.addDestroyTask=function(t){this.verifyAnimationFrameOn("createTasksP3"),this.destroyTasks.push(t),this.schedule()},e.prototype.executeFrame=function(t){this.verifyAnimationFrameOn("executeFrame");for(var e=this.createTasksP1,o=e.list,i=this.createTasksP2,n=i.list,r=this.destroyTasks,s=(new Date).getTime(),a=(new Date).getTime()-s,l=t<=0,u=this.ctrlsService.getGridBodyCtrl();l||a<t;){if(!u.getScrollFeature().scrollGridIfNeeded()){var c=void 0;if(o.length)this.sortTaskList(e),c=o.pop().task;else if(n.length)this.sortTaskList(i),c=n.pop().task;else{if(!r.length){this.cancelledTasks.clear();break}c=r.pop()}this.cancelledTasks.has(c)||c()}a=(new Date).getTime()-s}o.length||n.length||r.length?this.requestFrame():this.stopTicking()},e.prototype.stopTicking=function(){this.ticking=!1},e.prototype.flushAllFrames=function(){this.useAnimationFrame&&this.executeFrame(-1)},e.prototype.schedule=function(){this.useAnimationFrame&&(this.ticking||(this.ticking=!0,this.requestFrame()))},e.prototype.requestFrame=function(){var t=this.executeFrame.bind(this,60),e=this.gridOptionsService.getDocument().defaultView||window;e.requestAnimationFrame?e.requestAnimationFrame(t):e.webkitRequestAnimationFrame?e.webkitRequestAnimationFrame(t):e.setTimeout(t,0)},e.prototype.isQueueEmpty=function(){return!this.ticking},e.prototype.debounce=function(t){var e=this,o=!1;return function(){e.isOn()?o||(o=!0,e.addDestroyTask((function(){o=!1,t()}))):e.getFrameworkOverrides().setTimeout(t,0)}},vp([U("ctrlsService")],e.prototype,"ctrlsService",void 0),vp([U("paginationProxy")],e.prototype,"paginationProxy",void 0),vp([B],e.prototype,"init",null),e=vp([W("animationFrameService")],e)}(Mt),mp=function(){var t=function(e,o){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])})(e,o)};return function(e,o){function i(){this.constructor=e}t(e,o),e.prototype=null===o?Object.create(o):(i.prototype=o.prototype,new i)}}(),Cp=function(t,e,o,i){var n,r=arguments.length,s=r<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,o):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,o,i);else for(var a=t.length-1;a>=0;a--)(n=t[a])&&(s=(r<3?n(s):r>3?n(e,o,s):n(e,o))||s);return r>3&&s&&Object.defineProperty(e,o,s),s},wp=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return mp(e,t),e.prototype.postConstruct=function(){var t=this;this.ctrlsService.whenReady((function(e){t.centerRowContainerCtrl=e.centerRowContainerCtrl}))},e.prototype.getPreferredWidthForColumn=function(t,e){var o=this.getHeaderCellForColumn(t);if(!o)return-1;var i=this.rowRenderer.getAllCellsForColumn(t);return e||i.push(o),this.addElementsToContainerAndGetWidth(i)},e.prototype.getPreferredWidthForColumnGroup=function(t){var e=this.getHeaderCellForColumn(t);return e?this.addElementsToContainerAndGetWidth([e]):-1},e.prototype.addElementsToContainerAndGetWidth=function(t){var e=this,o=document.createElement("form");o.style.position="fixed";var i=this.centerRowContainerCtrl.getContainerElement();i.appendChild(o),t.forEach((function(t){return e.cloneItemIntoDummy(t,o)}));var n=o.offsetWidth;return i.removeChild(o),n+this.getAutoSizePadding()},e.prototype.getAutoSizePadding=function(){var t=this.gridOptionsService.getNum("autoSizePadding");return null!=t&&t>=0?t:20},e.prototype.getHeaderCellForColumn=function(t){var e=null;return this.ctrlsService.getHeaderRowContainerCtrls().forEach((function(o){var i=o.getHtmlElementForColumnHeader(t);null!=i&&(e=i)})),e},e.prototype.cloneItemIntoDummy=function(t,e){var o=t.cloneNode(!0);o.style.width="",o.style.position="static",o.style.left="";var i=document.createElement("div"),n=i.classList;["ag-header-cell","ag-header-group-cell"].some((function(t){return o.classList.contains(t)}))?(n.add("ag-header","ag-header-row"),i.style.position="static"):n.add("ag-row");for(var r=t.parentElement;r;){if(["ag-header-row","ag-row"].some((function(t){return r.classList.contains(t)}))){for(var s=0;s<r.classList.length;s++){var a=r.classList[s];"ag-row-position-absolute"!=a&&n.add(a)}break}r=r.parentElement}i.appendChild(o),e.appendChild(i)},Cp([U("rowRenderer")],e.prototype,"rowRenderer",void 0),Cp([U("ctrlsService")],e.prototype,"ctrlsService",void 0),Cp([U("rowCssClassCalculator")],e.prototype,"rowCssClassCalculator",void 0),Cp([B],e.prototype,"postConstruct",null),e=Cp([W("autoWidthCalculator")],e)}(Mt),Sp=function(){var t=function(e,o){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])})(e,o)};return function(e,o){function i(){this.constructor=e}t(e,o),e.prototype=null===o?Object.create(o):(i.prototype=o.prototype,new i)}}(),Ep=function(t,e,o,i){var n,r=arguments.length,s=r<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,o):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,o,i);else for(var a=t.length-1;a>=0;a--)(n=t[a])&&(s=(r<3?n(s):r>3?n(e,o,s):n(e,o))||s);return r>3&&s&&Object.defineProperty(e,o,s),s},Rp=function(t){var e="function"==typeof Symbol&&Symbol.iterator,o=e&&t[e],i=0;if(o)return o.call(t);if(t&&"number"==typeof t.length)return{next:function(){return t&&i>=t.length&&(t=void 0),{value:t&&t[i++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")},Op=function(t,e){var o="function"==typeof Symbol&&t[Symbol.iterator];if(!o)return t;var i,n,r=o.call(t),s=[];try{for(;(void 0===e||e-- >0)&&!(i=r.next()).done;)s.push(i.value)}catch(t){n={error:t}}finally{try{i&&!i.done&&(o=r.return)&&o.call(r)}finally{if(n)throw n.error}}return s},bp=function(){for(var t=[],e=0;e<arguments.length;e++)t=t.concat(Op(arguments[e]));return t},Tp=function(t){function e(e,o){var i=t.call(this)||this;return i.createRowCon=e,i.destroyRowCtrls=o,i.stickyRowCtrls=[],i.containerHeight=0,i}return Sp(e,t),e.prototype.postConstruct=function(){var t=this;this.ctrlsService.whenReady((function(e){t.gridBodyCtrl=e.gridBodyCtrl}))},e.prototype.getStickyRowCtrls=function(){return this.stickyRowCtrls},e.prototype.checkStickyRows=function(){var t=0;if(this.gridOptionsService.is("groupRowsSticky")){for(var e=[],o=this.rowRenderer.getFirstVisibleVerticalPixel(),i=function(i){e.push(i);for(var n=i;n.expanded;)n=ut(n.childrenAfterSort);var r=n.rowTop+n.rowHeight,s=o+t+i.rowHeight;i.stickyRowTop=r<s?t+(r-s):t,t=0,e.forEach((function(e){var o=e.stickyRowTop+e.rowHeight;t<o&&(t=o)}))};;){var n=o+t,r=this.rowModel.getRowIndexAtPixel(n),s=this.rowModel.getRow(r);if(null==s)break;if(s.level<0)break;for(var a=[],l=s.parent;l.level>=0;)a.push(l),l=l.parent;var u=a.reverse().find((function(t){return e.indexOf(t)<0&&t.displayed}));if(u)i(u);else{if(!(s.group&&s.expanded&&!s.footer&&s.rowTop<n))break;i(s)}}this.refreshNodesAndContainerHeight(e,t)}else this.refreshNodesAndContainerHeight([],t)},e.prototype.refreshNodesAndContainerHeight=function(t,e){var o,i,n,r=this,s=this.stickyRowCtrls.filter((function(e){return-1===t.indexOf(e.getRowNode())})),a=t.filter((function(t){return-1===r.stickyRowCtrls.findIndex((function(e){return e.getRowNode()===t}))})),l={};s.forEach((function(t){l[t.getRowNode().id]=t,r.stickyRowCtrls=r.stickyRowCtrls.filter((function(e){return e!==t}))}));try{for(var u=Rp(Object.values(l)),c=u.next();!c.done;c=u.next()){c.value.getRowNode().sticky=!1}}catch(t){o={error:t}}finally{try{c&&!c.done&&(i=u.return)&&i.call(u)}finally{if(o)throw o.error}}this.destroyRowCtrls(l,!1);var p=a.map((function(t){return t.sticky=!0,r.createRowCon(t,!1,!1)}));(n=this.stickyRowCtrls).push.apply(n,bp(p)),this.stickyRowCtrls.forEach((function(t){return t.setRowTop(t.getRowNode().stickyRowTop)})),this.stickyRowCtrls.sort((function(t,e){return e.getRowNode().rowIndex-t.getRowNode().rowIndex})),this.containerHeight!==e&&(this.containerHeight=e,this.gridBodyCtrl.setStickyTopHeight(e))},Ep([U("rowModel")],e.prototype,"rowModel",void 0),Ep([U("rowRenderer")],e.prototype,"rowRenderer",void 0),Ep([U("ctrlsService")],e.prototype,"ctrlsService",void 0),Ep([B],e.prototype,"postConstruct",null),e}(Mt),Pp=function(){var t=function(e,o){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])})(e,o)};return function(e,o){function i(){this.constructor=e}t(e,o),e.prototype=null===o?Object.create(o):(i.prototype=o.prototype,new i)}}(),Dp=function(t,e,o,i){var n,r=arguments.length,s=r<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,o):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,o,i);else for(var a=t.length-1;a>=0;a--)(n=t[a])&&(s=(r<3?n(s):r>3?n(e,o,s):n(e,o))||s);return r>3&&s&&Object.defineProperty(e,o,s),s},_p=function(t,e){var o="function"==typeof Symbol&&t[Symbol.iterator];if(!o)return t;var i,n,r=o.call(t),s=[];try{for(;(void 0===e||e-- >0)&&!(i=r.next()).done;)s.push(i.value)}catch(t){n={error:t}}finally{try{i&&!i.done&&(o=r.return)&&o.call(r)}finally{if(n)throw n.error}}return s},Ap=function(){for(var t=[],e=0;e<arguments.length;e++)t=t.concat(_p(arguments[e]));return t},Np=function(t){var e="function"==typeof Symbol&&Symbol.iterator,o=e&&t[e],i=0;if(o)return o.call(t);if(t&&"number"==typeof t.length)return{next:function(){return t&&i>=t.length&&(t=void 0),{value:t&&t[i++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")},Fp=function(t){function i(){var e=null!==t&&t.apply(this,arguments)||this;return e.destroyFuncsForColumnListeners=[],e.rowCtrlsByRowIndex={},e.zombieRowCtrls={},e.allRowCtrls=[],e.topRowCtrls=[],e.bottomRowCtrls=[],e.refreshInProgress=!1,e.dataFirstRenderedFired=!1,e}return Pp(i,t),i.prototype.postConstruct=function(){var t=this;this.ctrlsService.whenReady((function(){t.gridBodyCtrl=t.ctrlsService.getGridBodyCtrl(),t.initialise()}))},i.prototype.initialise=function(){this.addManagedListener(this.eventService,kt.EVENT_PAGINATION_CHANGED,this.onPageLoaded.bind(this)),this.addManagedListener(this.eventService,kt.EVENT_PINNED_ROW_DATA_CHANGED,this.onPinnedRowDataChanged.bind(this)),this.addManagedListener(this.eventService,kt.EVENT_DISPLAYED_COLUMNS_CHANGED,this.onDisplayedColumnsChanged.bind(this)),this.addManagedListener(this.eventService,kt.EVENT_BODY_SCROLL,this.onBodyScroll.bind(this)),this.addManagedListener(this.eventService,kt.EVENT_BODY_HEIGHT_CHANGED,this.redrawAfterScroll.bind(this)),this.addManagedPropertyListener("domLayout",this.onDomLayoutChanged.bind(this)),this.addManagedPropertyListener("rowClass",this.redrawRows.bind(this)),this.gridOptionsService.is("groupRowsSticky")&&("clientSide"!=this.rowModel.getType()?O((function(){return console.warn("AG Grid: The feature Sticky Row Groups only works with the Client Side Row Model")}),"rowRenderer.stickyWorksWithCsrmOnly"):this.gridOptionsService.isTreeData()?O((function(){return console.warn("AG Grid: The feature Sticky Row Groups does not work with Tree Data.")}),"rowRenderer.stickyDoesNotWorkWithTreeData"):this.stickyRowFeature=this.createManagedBean(new Tp(this.createRowCon.bind(this),this.destroyRowCtrls.bind(this)))),this.registerCellEventListeners(),this.initialiseCache(),this.printLayout=this.gridOptionsService.isDomLayout("print"),this.embedFullWidthRows=this.printLayout||this.gridOptionsService.is("embedFullWidthRows"),this.redrawAfterModelUpdate()},i.prototype.initialiseCache=function(){if(this.gridOptionsService.is("keepDetailRows")){var t=this.getKeepDetailRowsCount(),e=null!=t?t:3;this.cachedRowCtrls=new Lp(e)}},i.prototype.getKeepDetailRowsCount=function(){var t=this.gridOptionsService.getNum("keepDetailRowsCount");return e(t)&&t>0?t:10},i.prototype.getRowCtrls=function(){return this.allRowCtrls},i.prototype.getStickyTopRowCtrls=function(){return this.stickyRowFeature?this.stickyRowFeature.getStickyRowCtrls():[]},i.prototype.updateAllRowCtrls=function(){var t=y(this.rowCtrlsByRowIndex),e=this.gridOptionsService.is("ensureDomOrder"),o=this.gridOptionsService.isDomLayout("print");(e||o)&&t.sort((function(t,e){return t.getRowNode().rowIndex-e.getRowNode.rowIndex}));var i=y(this.zombieRowCtrls),n=this.cachedRowCtrls?this.cachedRowCtrls.getEntries():[];this.allRowCtrls=Ap(t,i,n)},i.prototype.onCellFocusChanged=function(t){this.getAllCellCtrls().forEach((function(e){return e.onCellFocused(t)})),this.getFullWidthRowCtrls().forEach((function(e){return e.onFullWidthRowFocused(t)}))},i.prototype.registerCellEventListeners=function(){var t=this;this.addManagedListener(this.eventService,kt.EVENT_CELL_FOCUSED,(function(e){t.onCellFocusChanged(e)})),this.addManagedListener(this.eventService,kt.EVENT_CELL_FOCUS_CLEARED,(function(){t.onCellFocusChanged()})),this.addManagedListener(this.eventService,kt.EVENT_FLASH_CELLS,(function(e){t.getAllCellCtrls().forEach((function(t){return t.onFlashCells(e)}))})),this.addManagedListener(this.eventService,kt.EVENT_COLUMN_HOVER_CHANGED,(function(){t.getAllCellCtrls().forEach((function(t){return t.onColumnHover()}))})),this.addManagedListener(this.eventService,kt.EVENT_DISPLAYED_COLUMNS_CHANGED,(function(){t.getAllCellCtrls().forEach((function(t){return t.onDisplayedColumnsChanged()}))})),this.addManagedListener(this.eventService,kt.EVENT_DISPLAYED_COLUMNS_WIDTH_CHANGED,(function(){t.printLayout&&t.getAllCellCtrls().forEach((function(t){return t.onLeftChanged()}))})),this.gridOptionsService.isEnableRangeSelection()&&(this.addManagedListener(this.eventService,kt.EVENT_RANGE_SELECTION_CHANGED,(function(){t.getAllCellCtrls().forEach((function(t){return t.onRangeSelectionChanged()}))})),this.addManagedListener(this.eventService,kt.EVENT_COLUMN_MOVED,(function(){t.getAllCellCtrls().forEach((function(t){return t.updateRangeBordersIfRangeCount()}))})),this.addManagedListener(this.eventService,kt.EVENT_COLUMN_PINNED,(function(){t.getAllCellCtrls().forEach((function(t){return t.updateRangeBordersIfRangeCount()}))})),this.addManagedListener(this.eventService,kt.EVENT_COLUMN_VISIBLE,(function(){t.getAllCellCtrls().forEach((function(t){return t.updateRangeBordersIfRangeCount()}))}))),this.refreshListenersToColumnsForCellComps(),this.addManagedListener(this.eventService,kt.EVENT_GRID_COLUMNS_CHANGED,this.refreshListenersToColumnsForCellComps.bind(this)),this.addDestroyFunc(this.removeGridColumnListeners.bind(this))},i.prototype.removeGridColumnListeners=function(){this.destroyFuncsForColumnListeners.forEach((function(t){return t()})),this.destroyFuncsForColumnListeners.length=0},i.prototype.refreshListenersToColumnsForCellComps=function(){var t=this;this.removeGridColumnListeners();var e=this.columnModel.getAllGridColumns();e&&e.forEach((function(e){var o=function(o){t.getAllCellCtrls().forEach((function(t){t.getColumn()===e&&o(t)}))},i=function(){o((function(t){return t.onLeftChanged()}))},n=function(){o((function(t){return t.onWidthChanged()}))},r=function(){o((function(t){return t.onFirstRightPinnedChanged()}))},s=function(){o((function(t){return t.onLastLeftPinnedChanged()}))},a=function(){o((function(t){return t.onColDefChanged()}))};e.addEventListener("leftChanged",i),e.addEventListener("widthChanged",n),e.addEventListener("firstRightPinnedChanged",r),e.addEventListener("lastLeftPinnedChanged",s),e.addEventListener("colDefChanged",a),t.destroyFuncsForColumnListeners.push((function(){e.removeEventListener("leftChanged",i),e.removeEventListener("widthChanged",n),e.removeEventListener("firstRightPinnedChanged",r),e.removeEventListener("lastLeftPinnedChanged",s),e.removeEventListener("colDefChanged",a)}))}))},i.prototype.onDomLayoutChanged=function(){var t=this.gridOptionsService.isDomLayout("print"),e=t||this.gridOptionsService.is("embedFullWidthRows"),o=e!==this.embedFullWidthRows||this.printLayout!==t;this.printLayout=t,this.embedFullWidthRows=e,o&&this.redrawAfterModelUpdate({domLayoutChanged:!0})},i.prototype.datasourceChanged=function(){this.firstRenderedRow=0,this.lastRenderedRow=-1;var t=Object.keys(this.rowCtrlsByRowIndex);this.removeRowCtrls(t)},i.prototype.onPageLoaded=function(t){var e={recycleRows:t.keepRenderedRows,animate:t.animate,newData:t.newData,newPage:t.newPage,onlyBody:!0};this.redrawAfterModelUpdate(e)},i.prototype.getAllCellsForColumn=function(t){var e=[];return this.getAllRowCtrls().forEach((function(o){var i=o.getCellElement(t);i&&e.push(i)})),e},i.prototype.refreshFloatingRowComps=function(){this.refreshFloatingRows(this.topRowCtrls,this.pinnedRowModel.getPinnedTopRowData()),this.refreshFloatingRows(this.bottomRowCtrls,this.pinnedRowModel.getPinnedBottomRowData())},i.prototype.getTopRowCtrls=function(){return this.topRowCtrls},i.prototype.getBottomRowCtrls=function(){return this.bottomRowCtrls},i.prototype.refreshFloatingRows=function(t,e){var o=this;t.forEach((function(t){t.destroyFirstPass(),t.destroySecondPass()})),t.length=0,e&&e.forEach((function(e){var i=new Fl(e,o.beans,!1,!1,o.printLayout);t.push(i)}))},i.prototype.onPinnedRowDataChanged=function(){this.redrawAfterModelUpdate({recycleRows:!0})},i.prototype.getRenderedIndexesForRowNodes=function(t){var e=[];return o(t)||c(this.rowCtrlsByRowIndex,(function(o,i){var n=i.getRowNode();t.indexOf(n)>=0&&e.push(o)})),e},i.prototype.redrawRows=function(t){var e=null!=t&&t.length>0;if(e){var o=this.getRenderedIndexesForRowNodes(t);this.removeRowCtrls(o)}this.redrawAfterModelUpdate({recycleRows:e})},i.prototype.getCellToRestoreFocusToAfterRefresh=function(t){var e=(null==t?void 0:t.suppressKeepFocus)?null:this.focusService.getFocusCellToUseAfterRefresh();if(null==e)return null;var o=this.gridOptionsService.getDocument().activeElement,i=this.gridOptionsService.getDomData(o,Ol.DOM_DATA_KEY_CELL_CTRL),n=this.gridOptionsService.getDomData(o,Fl.DOM_DATA_KEY_ROW_CTRL);return i||n?e:null},i.prototype.redrawAfterModelUpdate=function(t){void 0===t&&(t={}),this.getLockOnRefresh();var e=this.getCellToRestoreFocusToAfterRefresh(t);this.updateContainerHeights(),this.scrollToTopIfNewData(t);var o=!t.domLayoutChanged&&!!t.recycleRows,i=t.animate&&this.gridOptionsService.isAnimateRows(),n=o?this.recycleRows():null;o||this.removeAllRowComps(),this.redraw(n,i),this.gridBodyCtrl.updateRowCount(),t.onlyBody||this.refreshFloatingRowComps(),this.dispatchDisplayedRowsChanged(),null!=e&&this.restoreFocusedCell(e),this.releaseLockOnRefresh()},i.prototype.scrollToTopIfNewData=function(t){var e=t.newData||t.newPage,o=this.gridOptionsService.is("suppressScrollOnNewData");e&&!o&&this.gridBodyCtrl.getScrollFeature().scrollToTop()},i.prototype.updateContainerHeights=function(){if(this.printLayout)this.rowContainerHeightService.setModelHeight(null);else{var t=this.paginationProxy.getCurrentPageHeight();0===t&&(t=1),this.rowContainerHeightService.setModelHeight(t)}},i.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.redrawRows(), call setTimeout(function() { api.redrawRows(); }, 0). To see what part of your code that caused the refresh check this stacktrace.");this.refreshInProgress=!0},i.prototype.releaseLockOnRefresh=function(){this.refreshInProgress=!1},i.prototype.isRefreshInProgress=function(){return this.refreshInProgress},i.prototype.restoreFocusedCell=function(t){t&&this.onCellFocusChanged({rowIndex:t.rowIndex,column:t.column,rowPinned:t.rowPinned,forceBrowserFocus:!0,preventScrollOnBrowserFocus:!0,api:this.beans.gridApi,columnApi:this.beans.columnApi,context:this.beans.gridOptionsService.context,type:"mock"})},i.prototype.stopEditing=function(t){void 0===t&&(t=!1),this.getAllRowCtrls().forEach((function(e){e.stopEditing(t)}))},i.prototype.getAllCellCtrls=function(){for(var t=[],e=this.getAllRowCtrls(),o=e.length,i=0;i<o;i++)for(var n=e[i].getAllCellCtrls(),r=n.length,s=0;s<r;s++)t.push(n[s]);return t},i.prototype.getAllRowCtrls=function(){var t,e,o=this.stickyRowFeature&&this.stickyRowFeature.getStickyRowCtrls()||[],i=Ap(this.topRowCtrls,this.bottomRowCtrls,o);try{for(var n=Np(Object.keys(this.rowCtrlsByRowIndex)),r=n.next();!r.done;r=n.next()){var s=r.value;i.push(this.rowCtrlsByRowIndex[s])}}catch(e){t={error:e}}finally{try{r&&!r.done&&(e=n.return)&&e.call(n)}finally{if(t)throw t.error}}return i},i.prototype.addRenderedRowListener=function(t,e,o){var i=this.rowCtrlsByRowIndex[e];i&&i.addEventListener(t,o)},i.prototype.flashCells=function(t){void 0===t&&(t={});var e=t.flashDelay,o=t.fadeDelay;this.getCellCtrls(t.rowNodes,t.columns).forEach((function(t){return t.flashCell({flashDelay:e,fadeDelay:o})}))},i.prototype.refreshCells=function(t){void 0===t&&(t={});var e={forceRefresh:t.force,newData:!1,suppressFlash:t.suppressFlash};this.getCellCtrls(t.rowNodes,t.columns).forEach((function(t){if(t.refreshShouldDestroy()){var o=t.getRowCtrl();o&&o.refreshCell(t)}else t.refreshCell(e)})),this.getFullWidthRowCtrls(t.rowNodes).forEach((function(t){t.refreshFullWidth()}))},i.prototype.getCellRendererInstances=function(t){var e,o=this,i=this.getCellCtrls(t.rowNodes,t.columns).map((function(t){return t.getCellRenderer()})).filter((function(t){return null!=t}));if(null===(e=t.columns)||void 0===e?void 0:e.length)return i;var n=[],r=this.mapRowNodes(t.rowNodes);return this.getAllRowCtrls().forEach((function(t){if((!r||o.isRowInMap(t.getRowNode(),r))&&t.isFullWidth()){var e=t.getFullWidthCellRenderer();e&&n.push(e)}})),Ap(n,i)},i.prototype.getCellEditorInstances=function(t){var e=[];return this.getCellCtrls(t.rowNodes,t.columns).forEach((function(t){var o=t.getCellEditor();o&&e.push(o)})),e},i.prototype.getEditingCells=function(){var t=[];return this.getAllCellCtrls().forEach((function(e){if(e.isEditing()){var o=e.getCellPosition();t.push(o)}})),t},i.prototype.mapRowNodes=function(t){if(t){var e={top:{},bottom:{},normal:{}};return t.forEach((function(t){var o=t.id;"top"===t.rowPinned?e.top[o]=t:"bottom"===t.rowPinned?e.bottom[o]=t:e.normal[o]=t})),e}},i.prototype.isRowInMap=function(t,e){var o=t.id,i=t.rowPinned;return"bottom"===i?null!=e.bottom[o]:"top"===i?null!=e.top[o]:null!=e.normal[o]},i.prototype.getCellCtrls=function(t,o){var i,n=this,r=this.mapRowNodes(t),s=[];e(o)&&(i={},o.forEach((function(t){var o=n.columnModel.getGridColumn(t);e(o)&&(i[o.getId()]=!0)})));return this.getAllRowCtrls().forEach((function(t){return o=(e=t).getRowNode(),void((null==r||n.isRowInMap(o,r))&&e.getAllCellCtrls().forEach((function(t){var e=t.getColumn().getId();i&&!i[e]||s.push(t)})));var e,o})),s},i.prototype.destroy=function(){this.removeAllRowComps(),t.prototype.destroy.call(this)},i.prototype.removeAllRowComps=function(){var t=Object.keys(this.rowCtrlsByRowIndex);this.removeRowCtrls(t)},i.prototype.recycleRows=function(){var t=[];c(this.rowCtrlsByRowIndex,(function(e,o){null==o.getRowNode().id&&t.push(e)})),this.removeRowCtrls(t);var e={};return c(this.rowCtrlsByRowIndex,(function(t,o){var i=o.getRowNode();e[i.id]=o})),this.rowCtrlsByRowIndex={},e},i.prototype.removeRowCtrls=function(t){var e=this;t.forEach((function(t){var o=e.rowCtrlsByRowIndex[t];o&&(o.destroyFirstPass(),o.destroySecondPass()),delete e.rowCtrlsByRowIndex[t]}))},i.prototype.onBodyScroll=function(t){"vertical"===t.direction&&this.redrawAfterScroll()},i.prototype.redrawAfterScroll=function(){var t;if(this.stickyRowFeature&&Do()&&(t=this.getCellToRestoreFocusToAfterRefresh()||void 0),this.getLockOnRefresh(),this.redraw(null,!1,!0),this.releaseLockOnRefresh(),this.dispatchDisplayedRowsChanged(),null!=t){var e=this.getCellToRestoreFocusToAfterRefresh();null!=t&&null==e&&(this.animationFrameService.flushAllFrames(),this.restoreFocusedCell(t))}},i.prototype.removeRowCompsNotToDraw=function(t){var e={};t.forEach((function(t){return e[t]=!0}));var o=Object.keys(this.rowCtrlsByRowIndex).filter((function(t){return!e[t]}));this.removeRowCtrls(o)},i.prototype.calculateIndexesToDraw=function(t){var e=this,o=Ho(this.firstRenderedRow,this.lastRenderedRow),i=function(t,i){var n=i.getRowNode().rowIndex;null!=n&&(n<e.firstRenderedRow||n>e.lastRenderedRow)&&e.doNotUnVirtualiseRow(i)&&o.push(n)};return c(this.rowCtrlsByRowIndex,i),c(t,i),o.sort((function(t,e){return t-e})),o=o.filter((function(t){var o=e.paginationProxy.getRow(t);return o&&!o.sticky}))},i.prototype.redraw=function(t,o,i){var n=this;void 0===o&&(o=!1),void 0===i&&(i=!1),this.rowContainerHeightService.updateOffset(),this.workOutFirstAndLastRowsToRender(),this.stickyRowFeature&&this.stickyRowFeature.checkStickyRows();var r=this.calculateIndexesToDraw(t);(this.removeRowCompsNotToDraw(r),this.printLayout&&(o=!1),r.forEach((function(r){e(n.createOrUpdateRowCtrl(r,t,o,i))})),t)&&(i&&!this.gridOptionsService.is("suppressAnimationFrame")&&!this.printLayout?this.beans.animationFrameService.addDestroyTask((function(){n.destroyRowCtrls(t,o),n.updateAllRowCtrls(),n.dispatchDisplayedRowsChanged()})):this.destroyRowCtrls(t,o));this.updateAllRowCtrls()},i.prototype.dispatchDisplayedRowsChanged=function(){var t={type:kt.EVENT_DISPLAYED_ROWS_CHANGED};this.eventService.dispatchEvent(t)},i.prototype.onDisplayedColumnsChanged=function(){var t=this.columnModel.isPinningLeft(),e=this.columnModel.isPinningRight();(this.pinningLeft!==t||e!==this.pinningRight)&&(this.pinningLeft=t,this.pinningRight=e,this.embedFullWidthRows&&this.redrawFullWidthEmbeddedRows())},i.prototype.redrawFullWidthEmbeddedRows=function(){var t=[];this.getFullWidthRowCtrls().forEach((function(e){var o=e.getRowNode().rowIndex;t.push(o.toString())})),this.refreshFloatingRowComps(),this.removeRowCtrls(t),this.redrawAfterScroll()},i.prototype.getFullWidthRowCtrls=function(t){var e=this,o=this.mapRowNodes(t);return y(this.rowCtrlsByRowIndex).filter((function(t){if(!t.isFullWidth())return!1;var i=t.getRowNode();return!(null!=o&&!e.isRowInMap(i,o))}))},i.prototype.refreshFullWidthRows=function(t){var e=[],o=!!t,i=o?{}:void 0;o&&i&&t.forEach((function(t){return i[t.id]=!0})),this.getFullWidthRowCtrls().forEach((function(t){var n=t.getRowNode();if(o&&i){var r=n.level>0&&n.parent?n.parent.id:void 0;if(!i[n.id]&&!i[r])return}if(!t.refreshFullWidth()){var s=t.getRowNode().rowIndex;e.push(s.toString())}})),this.removeRowCtrls(e),this.redrawAfterScroll()},i.prototype.createOrUpdateRowCtrl=function(t,o,i,n){var r,s=this.rowCtrlsByRowIndex[t];if(s||e(r=this.paginationProxy.getRow(t))&&e(o)&&o[r.id]&&r.alreadyRendered&&(s=o[r.id],o[r.id]=null),!s){if(r||(r=this.paginationProxy.getRow(t)),!e(r))return;s=this.createRowCon(r,i,n)}return r&&(r.alreadyRendered=!0),this.rowCtrlsByRowIndex[t]=s,s},i.prototype.destroyRowCtrls=function(t,e){var o=this,i=[];c(t,(function(t,n){n&&(o.cachedRowCtrls&&n.isCacheable()?o.cachedRowCtrls.addRow(n):(n.destroyFirstPass(),e?(o.zombieRowCtrls[n.getInstanceId()]=n,i.push((function(){n.destroySecondPass(),delete o.zombieRowCtrls[n.getInstanceId()]}))):n.destroySecondPass()))})),e&&(i.push((function(){o.updateAllRowCtrls(),o.dispatchDisplayedRowsChanged()})),P(i))},i.prototype.getRowBuffer=function(){var t=this.gridOptionsService.getNum("rowBuffer");return"number"==typeof t?t<0&&(O((function(){return console.warn("AG Grid: rowBuffer should not be negative")}),"warn rowBuffer negative"),t=0,this.gridOptionsService.set("rowBuffer",0)):t=10,t},i.prototype.getRowBufferInPixels=function(){return this.getRowBuffer()*this.gridOptionsService.getRowHeightAsNumber()},i.prototype.workOutFirstAndLastRowsToRender=function(){var t,e;if(this.paginationProxy.isRowsToRender())if(this.printLayout)t=this.paginationProxy.getPageFirstRow(),e=this.paginationProxy.getPageLastRow();else{var o=this.getRowBufferInPixels(),i=this.ctrlsService.getGridBodyCtrl(),n=this.gridOptionsService.is("suppressRowVirtualisation"),r=!1,s=void 0,a=void 0;do{var l=this.paginationProxy.getPixelOffset(),u=this.paginationProxy.getCurrentPagePixelRange(),c=u.pageFirstPixel,p=u.pageLastPixel,d=this.rowContainerHeightService.getDivStretchOffset(),h=i.getScrollFeature().getVScrollPosition(),f=h.top,g=h.bottom;n?(s=c+d,a=p+d):(s=Math.max(f+l-o,c)+d,a=Math.min(g+l+o,p)+d),this.firstVisibleVPixel=Math.max(f+l,c)+d,r=this.ensureAllRowsInRangeHaveHeightsCalculated(s,a)}while(r);var v=this.paginationProxy.getRowIndexAtPixel(s),y=this.paginationProxy.getRowIndexAtPixel(a),m=this.paginationProxy.getPageFirstRow(),C=this.paginationProxy.getPageLastRow();v<m&&(v=m),y>C&&(y=C),t=v,e=y}else t=0,e=-1;var w=this.gridOptionsService.isDomLayout("normal"),S=this.gridOptionsService.is("suppressMaxRenderedRowRestriction"),E=Math.max(this.getRowBuffer(),500);w&&!S&&e-t>E&&(e=t+E);var R=t!==this.firstRenderedRow,O=e!==this.lastRenderedRow;if(R||O){this.firstRenderedRow=t,this.lastRenderedRow=e;var b={type:kt.EVENT_VIEWPORT_CHANGED,firstRow:t,lastRow:e};this.eventService.dispatchEvent(b)}},i.prototype.dispatchFirstDataRenderedEvent=function(){var t=this;if(!this.dataFirstRenderedFired){this.dataFirstRenderedFired=!0;var e={type:kt.EVENT_FIRST_DATA_RENDERED,firstRow:this.firstRenderedRow,lastRow:this.lastRenderedRow};window.requestAnimationFrame((function(){t.beans.eventService.dispatchEvent(e)}))}},i.prototype.ensureAllRowsInRangeHaveHeightsCalculated=function(t,e){var o=this.paginationProxy.ensureRowHeightsValid(t,e,-1,-1);return o&&this.updateContainerHeights(),o},i.prototype.getFirstVisibleVerticalPixel=function(){return this.firstVisibleVPixel},i.prototype.getFirstVirtualRenderedRow=function(){return this.firstRenderedRow},i.prototype.getLastVirtualRenderedRow=function(){return this.lastRenderedRow},i.prototype.doNotUnVirtualiseRow=function(t){var e=t.getRowNode(),o=this.focusService.isRowNodeFocused(e),i=t.isEditing(),n=e.detail;return!!(o||i||n)&&!!this.paginationProxy.isRowPresent(e)},i.prototype.createRowCon=function(t,e,o){var i=this.cachedRowCtrls?this.cachedRowCtrls.getRow(t):null;if(i)return i;var n=this.gridOptionsService.is("suppressAnimationFrame"),r=o&&!n&&!this.printLayout;return new Fl(t,this.beans,e,r,this.printLayout)},i.prototype.getRenderedNodes=function(){var t=this.rowCtrlsByRowIndex;return Object.keys(t).map((function(e){return t[e].getRowNode()}))},i.prototype.getRowByPosition=function(t){var e,o=t.rowIndex;switch(t.rowPinned){case"top":e=this.topRowCtrls[o];break;case"bottom":e=this.bottomRowCtrls[o];break;default:(e=this.rowCtrlsByRowIndex[o])||(e=this.getStickyTopRowCtrls().find((function(t){return t.getRowNode().rowIndex===o}))||null)}return e},i.prototype.getRowNode=function(t){switch(t.rowPinned){case"top":return this.pinnedRowModel.getPinnedTopRowData()[t.rowIndex];case"bottom":return this.pinnedRowModel.getPinnedBottomRowData()[t.rowIndex];default:return this.rowModel.getRow(t.rowIndex)}},i.prototype.isRangeInRenderedViewport=function(t,e){if(null==t||null==e)return!1;var o=t>this.lastRenderedRow;return!(e<this.firstRenderedRow)&&!o},Dp([U("animationFrameService")],i.prototype,"animationFrameService",void 0),Dp([U("paginationProxy")],i.prototype,"paginationProxy",void 0),Dp([U("columnModel")],i.prototype,"columnModel",void 0),Dp([U("pinnedRowModel")],i.prototype,"pinnedRowModel",void 0),Dp([U("rowModel")],i.prototype,"rowModel",void 0),Dp([U("focusService")],i.prototype,"focusService",void 0),Dp([U("beans")],i.prototype,"beans",void 0),Dp([U("rowContainerHeightService")],i.prototype,"rowContainerHeightService",void 0),Dp([U("ctrlsService")],i.prototype,"ctrlsService",void 0),Dp([B],i.prototype,"postConstruct",null),i=Dp([W("rowRenderer")],i)}(Mt),Lp=function(){function t(t){this.entriesMap={},this.entriesList=[],this.maxCount=t}return t.prototype.addRow=function(t){if(this.entriesMap[t.getRowNode().id]=t,this.entriesList.push(t),t.setCached(!0),this.entriesList.length>this.maxCount){var e=this.entriesList[0];e.destroyFirstPass(),e.destroySecondPass(),this.removeFromCache(e)}},t.prototype.getRow=function(t){if(null==t||null==t.id)return null;var e=this.entriesMap[t.id];return e?(this.removeFromCache(e),e.setCached(!1),e.getRowNode()!=t?null:e):null},t.prototype.removeFromCache=function(t){var e=t.getRowNode().id;delete this.entriesMap[e],dt(this.entriesList,t)},t.prototype.getEntries=function(){return this.entriesList},t}(),Mp=function(){var t=function(e,o){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])})(e,o)};return function(e,o){function i(){this.constructor=e}t(e,o),e.prototype=null===o?Object.create(o):(i.prototype=o.prototype,new i)}}(),Ip=function(t,e,o,i){var n,r=arguments.length,s=r<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,o):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,o,i);else for(var a=t.length-1;a>=0;a--)(n=t[a])&&(s=(r<3?n(s):r>3?n(e,o,s):n(e,o))||s);return r>3&&s&&Object.defineProperty(e,o,s),s},Gp=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Mp(e,t),e.prototype.formatValue=function(t,e,o,i,n){void 0===n&&(n=!0);var r,s=null,a=t.getColDef();if(i?r=i:n&&(r=a.valueFormatter),r){var l={value:o,node:e,data:e?e.data:null,colDef:a,column:t,api:this.gridOptionsService.api,columnApi:this.gridOptionsService.columnApi,context:this.gridOptionsService.context};s="function"==typeof r?r(l):this.expressionService.evaluate(r,l)}else if(a.refData)return a.refData[o]||"";return null==s&&Array.isArray(o)&&(s=o.join(", ")),s},Ip([U("expressionService")],e.prototype,"expressionService",void 0),e=Ip([W("valueFormatterService")],e)}(Mt),xp=function(){var t=function(e,o){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])})(e,o)};return function(e,o){function i(){this.constructor=e}t(e,o),e.prototype=null===o?Object.create(o):(i.prototype=o.prototype,new i)}}(),Hp=function(t,e,o,i){var n,r=arguments.length,s=r<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,o):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,o,i);else for(var a=t.length-1;a>=0;a--)(n=t[a])&&(s=(r<3?n(s):r>3?n(e,o,s):n(e,o))||s);return r>3&&s&&Object.defineProperty(e,o,s),s},Vp=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return xp(e,t),e.prototype.init=function(){this.setPinnedTopRowData(this.gridOptionsService.get("pinnedTopRowData")),this.setPinnedBottomRowData(this.gridOptionsService.get("pinnedBottomRowData"))},e.prototype.isEmpty=function(t){return i("top"===t?this.pinnedTopRows:this.pinnedBottomRows)},e.prototype.isRowsToRender=function(t){return!this.isEmpty(t)},e.prototype.getRowAtPixel=function(t,e){var o="top"===e?this.pinnedTopRows:this.pinnedBottomRows;if(i(o))return 0;for(var n=0;n<o.length;n++){var r=o[n];if(r.rowTop+r.rowHeight-1>=t)return n}return o.length-1},e.prototype.setPinnedTopRowData=function(t){this.pinnedTopRows=this.createNodesFromData(t,!0);var e={type:kt.EVENT_PINNED_ROW_DATA_CHANGED};this.eventService.dispatchEvent(e)},e.prototype.setPinnedBottomRowData=function(t){this.pinnedBottomRows=this.createNodesFromData(t,!1);var e={type:kt.EVENT_PINNED_ROW_DATA_CHANGED};this.eventService.dispatchEvent(e)},e.prototype.createNodesFromData=function(t,e){var o=this,i=[];if(t){var n=0;t.forEach((function(t,r){var s=new vs(o.beans);s.data=t;var a=e?vs.ID_PREFIX_TOP_PINNED:vs.ID_PREFIX_BOTTOM_PINNED;s.id=a+r,s.rowPinned=e?"top":"bottom",s.setRowTop(n),s.setRowHeight(o.gridOptionsService.getRowHeightForNode(s).height),s.setRowIndex(r),n+=s.rowHeight,i.push(s)}))}return i},e.prototype.getPinnedTopRowData=function(){return this.pinnedTopRows},e.prototype.getPinnedBottomRowData=function(){return this.pinnedBottomRows},e.prototype.getPinnedTopTotalHeight=function(){return this.getTotalHeight(this.pinnedTopRows)},e.prototype.getPinnedTopRowCount=function(){return this.pinnedTopRows?this.pinnedTopRows.length:0},e.prototype.getPinnedBottomRowCount=function(){return this.pinnedBottomRows?this.pinnedBottomRows.length:0},e.prototype.getPinnedTopRow=function(t){return this.pinnedTopRows[t]},e.prototype.getPinnedBottomRow=function(t){return this.pinnedBottomRows[t]},e.prototype.forEachPinnedTopRow=function(t){i(this.pinnedTopRows)||this.pinnedTopRows.forEach(t)},e.prototype.forEachPinnedBottomRow=function(t){i(this.pinnedBottomRows)||this.pinnedBottomRows.forEach(t)},e.prototype.getPinnedBottomTotalHeight=function(){return this.getTotalHeight(this.pinnedBottomRows)},e.prototype.getTotalHeight=function(t){if(!t||0===t.length)return 0;var e=ut(t);return e.rowTop+e.rowHeight},Hp([U("beans")],e.prototype,"beans",void 0),Hp([B],e.prototype,"init",null),e=Hp([W("pinnedRowModel")],e)}(Mt);!function(t){t.Applied="Applied",t.StoreNotFound="StoreNotFound",t.StoreLoading="StoreLoading",t.StoreWaitingToLoad="StoreWaitingToLoad",t.StoreLoadingFailed="StoreLoadingFailed",t.StoreWrongType="StoreWrongType",t.Cancelled="Cancelled"}(pp||(pp={}));
275/**
276 * @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue
277 * @version v29.2.0
278 * @link https://www.ag-grid.com/
279 * @license MIT
280 */
281var kp,Bp=function(){function t(t,e){this.active=!0,this.nodeIdsToColumns={},this.mapToItems={},this.keepingColumns=t,this.pathRoot={rowNode:e,children:null},this.mapToItems[e.id]=this.pathRoot}return t.prototype.setInactive=function(){this.active=!1},t.prototype.isActive=function(){return this.active},t.prototype.depthFirstSearchChangedPath=function(t,e){if(t.children)for(var o=0;o<t.children.length;o++)this.depthFirstSearchChangedPath(t.children[o],e);e(t.rowNode)},t.prototype.depthFirstSearchEverything=function(t,e,o){if(t.childrenAfterGroup)for(var i=0;i<t.childrenAfterGroup.length;i++){var n=t.childrenAfterGroup[i];n.childrenAfterGroup?this.depthFirstSearchEverything(t.childrenAfterGroup[i],e,o):o&&e(n)}e(t)},t.prototype.forEachChangedNodeDepthFirst=function(t,e,o){void 0===e&&(e=!1),void 0===o&&(o=!1),this.active&&!o?this.depthFirstSearchChangedPath(this.pathRoot,t):this.depthFirstSearchEverything(this.pathRoot.rowNode,t,e)},t.prototype.executeFromRootNode=function(t){t(this.pathRoot.rowNode)},t.prototype.createPathItems=function(t){for(var e=t,o=0;!this.mapToItems[e.id];){var i={rowNode:e,children:null};this.mapToItems[e.id]=i,o++,e=e.parent}return o},t.prototype.populateColumnsMap=function(t,e){var o=this;if(this.keepingColumns&&e)for(var i=t;i;)this.nodeIdsToColumns[i.id]||(this.nodeIdsToColumns[i.id]={}),e.forEach((function(t){return o.nodeIdsToColumns[i.id][t.getId()]=!0})),i=i.parent},t.prototype.linkPathItems=function(t,e){for(var o=t,i=0;i<e;i++){var n=this.mapToItems[o.id],r=this.mapToItems[o.parent.id];r.children||(r.children=[]),r.children.push(n),o=o.parent}},t.prototype.addParentNode=function(t,e){if(t&&!t.isRowPinned()){var o=this.createPathItems(t);this.linkPathItems(t,o),this.populateColumnsMap(t,e)}},t.prototype.canSkip=function(t){return this.active&&!this.mapToItems[t.id]},t.prototype.getValueColumnsForNode=function(t,e){if(!this.keepingColumns)return e;var o=this.nodeIdsToColumns[t.id];return e.filter((function(t){return o[t.getId()]}))},t.prototype.getNotValueColumnsForNode=function(t,e){if(!this.keepingColumns)return null;var o=this.nodeIdsToColumns[t.id];return e.filter((function(t){return!o[t.getId()]}))},t}(),jp=function(){var t=function(e,o){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])})(e,o)};return function(e,o){function i(){this.constructor=e}t(e,o),e.prototype=null===o?Object.create(o):(i.prototype=o.prototype,new i)}}(),Wp=function(t){function e(o){var i=t.call(this)||this;return i.state=e.STATE_WAITING_TO_LOAD,i.version=0,i.id=o,i}return jp(e,t),e.prototype.getId=function(){return this.id},e.prototype.load=function(){this.state=e.STATE_LOADING,this.loadFromDatasource()},e.prototype.getVersion=function(){return this.version},e.prototype.setStateWaitingToLoad=function(){this.version++,this.state=e.STATE_WAITING_TO_LOAD},e.prototype.getState=function(){return this.state},e.prototype.pageLoadFailed=function(t){this.isRequestMostRecentAndLive(t)&&(this.state=e.STATE_FAILED,this.processServerFail()),this.dispatchLoadCompleted(!1)},e.prototype.success=function(t,e){this.successCommon(t,e)},e.prototype.pageLoaded=function(t,e,o){this.successCommon(t,{rowData:e,rowCount:o})},e.prototype.isRequestMostRecentAndLive=function(t){var e=t===this.version,o=this.isAlive();return e&&o},e.prototype.successCommon=function(t,o){this.dispatchLoadCompleted(),this.isRequestMostRecentAndLive(t)&&(this.state=e.STATE_LOADED,this.processServerResult(o))},e.prototype.dispatchLoadCompleted=function(t){void 0===t&&(t=!0);var o={type:e.EVENT_LOAD_COMPLETE,success:t,block:this};this.dispatchEvent(o)},e.EVENT_LOAD_COMPLETE="loadComplete",e.STATE_WAITING_TO_LOAD="needsLoading",e.STATE_LOADING="loading",e.STATE_LOADED="loaded",e.STATE_FAILED="failed",e}(Mt),Up=function(){var t=function(e,o){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])})(e,o)};return function(e,o){function i(){this.constructor=e}t(e,o),e.prototype=null===o?Object.create(o):(i.prototype=o.prototype,new i)}}(),zp=function(t,e,o,i){var n,r=arguments.length,s=r<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,o):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,o,i);else for(var a=t.length-1;a>=0;a--)(n=t[a])&&(s=(r<3?n(s):r>3?n(e,o,s):n(e,o))||s);return r>3&&s&&Object.defineProperty(e,o,s),s},Kp=function(t,e){return function(o,i){e(o,i,t)}},Yp=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.activeBlockLoadsCount=0,e.blocks=[],e.active=!0,e}var o;return Up(e,t),o=e,e.prototype.postConstruct=function(){this.maxConcurrentRequests=this.getMaxConcurrentDatasourceRequests();var t=this.gridOptionsService.getNum("blockLoadDebounceMillis");t&&t>0&&(this.checkBlockToLoadDebounce=Xi.debounce(this.performCheckBlocksToLoad.bind(this),t))},e.prototype.setBeans=function(t){this.logger=t.create("RowNodeBlockLoader")},e.prototype.getMaxConcurrentDatasourceRequests=function(){var t=this.gridOptionsService.getNum("maxConcurrentDatasourceRequests");return null==t?2:t<=0?void 0:t},e.prototype.addBlock=function(t){this.blocks.push(t),t.addEventListener(Wp.EVENT_LOAD_COMPLETE,this.loadComplete.bind(this)),this.checkBlockToLoad()},e.prototype.removeBlock=function(t){Xi.removeFromArray(this.blocks,t)},e.prototype.destroy=function(){t.prototype.destroy.call(this),this.active=!1},e.prototype.loadComplete=function(){this.activeBlockLoadsCount--,this.checkBlockToLoad(),this.dispatchEvent({type:o.BLOCK_LOADED_EVENT}),0==this.activeBlockLoadsCount&&this.dispatchEvent({type:o.BLOCK_LOADER_FINISHED_EVENT})},e.prototype.checkBlockToLoad=function(){this.checkBlockToLoadDebounce?this.checkBlockToLoadDebounce():this.performCheckBlocksToLoad()},e.prototype.performCheckBlocksToLoad=function(){if(this.active)if(this.printCacheStatus(),null!=this.maxConcurrentRequests&&this.activeBlockLoadsCount>=this.maxConcurrentRequests)this.logger.log("checkBlockToLoad: max loads exceeded");else{var t=this.getAvailableLoadingCount(),e=this.blocks.filter((function(t){return t.getState()===Wp.STATE_WAITING_TO_LOAD})).slice(0,t);this.registerLoads(e.length),e.forEach((function(t){return t.load()})),this.printCacheStatus()}},e.prototype.getBlockState=function(){if(this.gridOptionsService.isRowModelType("serverSide"))return this.rowModel.getBlockStates();var t={};return this.blocks.forEach((function(e){var o=e.getBlockStateJson(),i=o.id,n=o.state;t[i]=n})),t},e.prototype.printCacheStatus=function(){this.logger.isLogging()&&this.logger.log("printCacheStatus: activePageLoadsCount = "+this.activeBlockLoadsCount+", blocks = "+JSON.stringify(this.getBlockState()))},e.prototype.isLoading=function(){return this.activeBlockLoadsCount>0},e.prototype.registerLoads=function(t){this.activeBlockLoadsCount+=t},e.prototype.getAvailableLoadingCount=function(){return void 0!==this.maxConcurrentRequests?this.maxConcurrentRequests-this.activeBlockLoadsCount:void 0},e.BLOCK_LOADED_EVENT="blockLoaded",e.BLOCK_LOADER_FINISHED_EVENT="blockLoaderFinished",zp([U("rowModel")],e.prototype,"rowModel",void 0),zp([B],e.prototype,"postConstruct",null),zp([Kp(0,Y("loggerFactory"))],e.prototype,"setBeans",null),e=o=zp([W("rowNodeBlockLoader")],e)}(Mt),qp=function(){var t=function(e,o){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])})(e,o)};return function(e,o){function i(){this.constructor=e}t(e,o),e.prototype=null===o?Object.create(o):(i.prototype=o.prototype,new i)}}(),Qp=function(t,e,o,i){var n,r=arguments.length,s=r<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,o):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,o,i);else for(var a=t.length-1;a>=0;a--)(n=t[a])&&(s=(r<3?n(s):r>3?n(e,o,s):n(e,o))||s);return r>3&&s&&Object.defineProperty(e,o,s),s},Xp=function(t){function i(){var e=null!==t&&t.apply(this,arguments)||this;return e.currentPage=0,e.topDisplayedRowIndex=0,e.bottomDisplayedRowIndex=0,e.pixelOffset=0,e.masterRowCount=0,e}return qp(i,t),i.prototype.postConstruct=function(){this.active=this.gridOptionsService.is("pagination"),this.paginateChildRows=this.isPaginateChildRows(),this.addManagedListener(this.eventService,kt.EVENT_MODEL_UPDATED,this.onModelUpdated.bind(this)),this.addManagedPropertyListener("pagination",this.onPaginationPageSizeChanged.bind(this)),this.addManagedPropertyListener("paginationPageSize",this.onPaginationPageSizeChanged.bind(this)),this.onModelUpdated()},i.prototype.ensureRowHeightsValid=function(t,e,o,i){var n=this.rowModel.ensureRowHeightsValid(t,e,this.getPageFirstRow(),this.getPageLastRow());return n&&this.calculatePages(),n},i.prototype.isPaginateChildRows=function(){return!(!this.gridOptionsService.is("groupRemoveSingleChildren")&&!this.gridOptionsService.is("groupRemoveLowestSingleChildren"))||this.gridOptionsService.is("paginateChildRows")},i.prototype.onModelUpdated=function(t){this.calculatePages();var e={type:kt.EVENT_PAGINATION_CHANGED,animate:!!t&&t.animate,newData:!!t&&t.newData,newPage:!!t&&t.newPage,keepRenderedRows:!!t&&t.keepRenderedRows};this.eventService.dispatchEvent(e)},i.prototype.onPaginationPageSizeChanged=function(){this.active=this.gridOptionsService.is("pagination"),this.calculatePages();var t={type:kt.EVENT_PAGINATION_CHANGED,animate:!1,newData:!1,newPage:!1,keepRenderedRows:!0};this.eventService.dispatchEvent(t)},i.prototype.goToPage=function(t){if(this.active&&this.currentPage!==t&&"number"==typeof this.currentPage){this.currentPage=t;var e={type:kt.EVENT_MODEL_UPDATED,animate:!1,keepRenderedRows:!1,newData:!1,newPage:!0};this.onModelUpdated(e)}},i.prototype.getPixelOffset=function(){return this.pixelOffset},i.prototype.getRow=function(t){return this.rowModel.getRow(t)},i.prototype.getRowNode=function(t){return this.rowModel.getRowNode(t)},i.prototype.getRowIndexAtPixel=function(t){return this.rowModel.getRowIndexAtPixel(t)},i.prototype.getCurrentPageHeight=function(){return o(this.topRowBounds)||o(this.bottomRowBounds)?0:Math.max(this.bottomRowBounds.rowTop+this.bottomRowBounds.rowHeight-this.topRowBounds.rowTop,0)},i.prototype.getCurrentPagePixelRange=function(){return{pageFirstPixel:this.topRowBounds?this.topRowBounds.rowTop:0,pageLastPixel:this.bottomRowBounds?this.bottomRowBounds.rowTop+this.bottomRowBounds.rowHeight:0}},i.prototype.isRowPresent=function(t){return!!this.rowModel.isRowPresent(t)&&(t.rowIndex>=this.topDisplayedRowIndex&&t.rowIndex<=this.bottomDisplayedRowIndex)},i.prototype.isEmpty=function(){return this.rowModel.isEmpty()},i.prototype.isRowsToRender=function(){return this.rowModel.isRowsToRender()},i.prototype.forEachNode=function(t){return this.rowModel.forEachNode(t)},i.prototype.forEachNodeOnPage=function(t){for(var e=this.getPageFirstRow(),o=this.getPageLastRow(),i=e;i<=o;i++){var n=this.getRow(i);n&&t(n)}},i.prototype.getType=function(){return this.rowModel.getType()},i.prototype.getRowBounds=function(t){var e=this.rowModel.getRowBounds(t);return e.rowIndex=t,e},i.prototype.getPageFirstRow=function(){return this.topRowBounds?this.topRowBounds.rowIndex:-1},i.prototype.getPageLastRow=function(){return this.bottomRowBounds?this.bottomRowBounds.rowIndex:-1},i.prototype.getRowCount=function(){return this.rowModel.getRowCount()},i.prototype.getPageForIndex=function(t){return Math.floor(t/this.pageSize)},i.prototype.goToPageWithIndex=function(t){if(this.active){var e=this.getPageForIndex(t);this.goToPage(e)}},i.prototype.isRowInPage=function(t){return!this.active||this.getPageForIndex(t.rowIndex)===this.currentPage},i.prototype.isLastPageFound=function(){return this.rowModel.isLastRowIndexKnown()},i.prototype.getCurrentPage=function(){return this.currentPage},i.prototype.goToNextPage=function(){this.goToPage(this.currentPage+1)},i.prototype.goToPreviousPage=function(){this.goToPage(this.currentPage-1)},i.prototype.goToFirstPage=function(){this.goToPage(0)},i.prototype.goToLastPage=function(){var t=this.rowModel.getRowCount(),e=Math.floor(t/this.pageSize);this.goToPage(e)},i.prototype.getPageSize=function(){return this.pageSize},i.prototype.getTotalPages=function(){return this.totalPages},i.prototype.setPageSize=function(){this.pageSize=this.gridOptionsService.getNum("paginationPageSize"),(null==this.pageSize||this.pageSize<1)&&(this.pageSize=100)},i.prototype.calculatePages=function(){this.active?(this.setPageSize(),this.paginateChildRows?this.calculatePagesAllRows():this.calculatePagesMasterRowsOnly()):this.calculatedPagesNotActive(),this.topRowBounds=this.rowModel.getRowBounds(this.topDisplayedRowIndex),this.topRowBounds&&(this.topRowBounds.rowIndex=this.topDisplayedRowIndex),this.bottomRowBounds=this.rowModel.getRowBounds(this.bottomDisplayedRowIndex),this.bottomRowBounds&&(this.bottomRowBounds.rowIndex=this.bottomDisplayedRowIndex),this.setPixelOffset(e(this.topRowBounds)?this.topRowBounds.rowTop:0)},i.prototype.setPixelOffset=function(t){this.pixelOffset!==t&&(this.pixelOffset=t,this.eventService.dispatchEvent({type:kt.EVENT_PAGINATION_PIXEL_OFFSET_CHANGED}))},i.prototype.setZeroRows=function(){this.masterRowCount=0,this.topDisplayedRowIndex=0,this.bottomDisplayedRowIndex=-1,this.currentPage=0,this.totalPages=0},i.prototype.adjustCurrentPageIfInvalid=function(){this.currentPage>=this.totalPages&&(this.currentPage=this.totalPages-1),(!isFinite(this.currentPage)||isNaN(this.currentPage)||this.currentPage<0)&&(this.currentPage=0)},i.prototype.calculatePagesMasterRowsOnly=function(){if(this.masterRowCount=this.rowModel.getTopLevelRowCount(),this.masterRowCount<=0)this.setZeroRows();else{var t=this.masterRowCount-1;this.totalPages=Math.floor(t/this.pageSize)+1,this.adjustCurrentPageIfInvalid();var e=this.pageSize*this.currentPage,o=this.pageSize*(this.currentPage+1)-1;if(o>t&&(o=t),this.topDisplayedRowIndex=this.rowModel.getTopLevelRowDisplayedIndex(e),o===t)this.bottomDisplayedRowIndex=this.rowModel.getRowCount()-1;else{var i=this.rowModel.getTopLevelRowDisplayedIndex(o+1);this.bottomDisplayedRowIndex=i-1}}},i.prototype.getMasterRowCount=function(){return this.masterRowCount},i.prototype.calculatePagesAllRows=function(){if(this.masterRowCount=this.rowModel.getRowCount(),0!==this.masterRowCount){var t=this.masterRowCount-1;this.totalPages=Math.floor(t/this.pageSize)+1,this.adjustCurrentPageIfInvalid(),this.topDisplayedRowIndex=this.pageSize*this.currentPage,this.bottomDisplayedRowIndex=this.pageSize*(this.currentPage+1)-1,this.bottomDisplayedRowIndex>t&&(this.bottomDisplayedRowIndex=t)}else this.setZeroRows()},i.prototype.calculatedPagesNotActive=function(){this.pageSize=this.rowModel.getRowCount(),this.totalPages=1,this.currentPage=0,this.topDisplayedRowIndex=0,this.bottomDisplayedRowIndex=this.rowModel.getRowCount()-1},Qp([U("rowModel")],i.prototype,"rowModel",void 0),Qp([B],i.prototype,"postConstruct",null),i=Qp([W("paginationProxy")],i)}(Mt),Jp=function(){var t=function(e,o){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])})(e,o)};return function(e,o){function i(){this.constructor=e}t(e,o),e.prototype=null===o?Object.create(o):(i.prototype=o.prototype,new i)}}(),Zp=function(t,e,o,i){var n,r=arguments.length,s=r<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,o):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,o,i);else for(var a=t.length-1;a>=0;a--)(n=t[a])&&(s=(r<3?n(s):r>3?n(e,o,s):n(e,o))||s);return r>3&&s&&Object.defineProperty(e,o,s),s},$p=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Jp(e,t),e.prototype.processAllCellClasses=function(t,e,o,i){this.processClassRules(t.cellClassRules,e,o,i),this.processStaticCellClasses(t,e,o)},e.prototype.processClassRules=function(t,e,o,i){if(null!=t){for(var n=Object.keys(t),r={},s={},a=function(o){var i,a=n[o],u=t[a];"string"==typeof u?i=l.expressionService.evaluate(u,e):"function"==typeof u&&(i=u(e)),a.split(" ").forEach((function(t){null!=t&&""!=t.trim()&&(i?r[t]=!0:s[t]=!0)}))},l=this,u=0;u<n.length;u++)a(u);i&&Object.keys(s).forEach(i),Object.keys(r).forEach(o)}},e.prototype.getStaticCellClasses=function(t,e){var o,i=t.cellClass;if(!i)return[];"function"==typeof i?o=i(e):o=i;return"string"==typeof o&&(o=[o]),o||[]},e.prototype.processStaticCellClasses=function(t,e,o){this.getStaticCellClasses(t,e).forEach((function(t){o(t)}))},Zp([U("expressionService")],e.prototype,"expressionService",void 0),e=Zp([W("stylingService")],e)}(Mt),td=function(){var t=function(e,o){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])})(e,o)};return function(e,o){function i(){this.constructor=e}t(e,o),e.prototype=null===o?Object.create(o):(i.prototype=o.prototype,new i)}}(),ed=function(t){function e(e){return t.call(this,e,"ag-toggle-button")||this}return td(e,t),e.prototype.setValue=function(e,o){return t.prototype.setValue.call(this,e,o),this.addOrRemoveCssClass("ag-selected",this.getValue()),this},e}(Qn),od=function(){var t=function(e,o){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])})(e,o)};return function(e,o){function i(){this.constructor=e}t(e,o),e.prototype=null===o?Object.create(o):(i.prototype=o.prototype,new i)}}(),id=function(t){function e(e){return t.call(this,e,"ag-text-area",null,"textarea")||this}return od(e,t),e.prototype.setValue=function(e,o){var i=t.prototype.setValue.call(this,e,o);return this.eInput.value=e,i},e.prototype.setCols=function(t){return this.eInput.cols=t,this},e.prototype.setRows=function(t){return this.eInput.rows=t,this},e}(Yn),nd=function(){var t=function(e,o){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])})(e,o)};return function(e,o){function i(){this.constructor=e}t(e,o),e.prototype=null===o?Object.create(o):(i.prototype=o.prototype,new i)}}(),rd=function(t){function e(e){return t.call(this,e,"ag-range-field","range")||this}return nd(e,t),e.prototype.postConstruct=function(){t.prototype.postConstruct.call(this);var e=this.config,o=e.min,i=e.max,n=e.step;null!=o&&this.setMinValue(o),null!=i&&this.setMaxValue(i),this.setStep(n||1)},e.prototype.addInputListeners=function(){var t=this;this.addManagedListener(this.eInput,"input",(function(e){var o=e.target.value;t.setValue(o)}))},e.prototype.setMinValue=function(t){return this.min=t,this.eInput.setAttribute("min",t.toString()),this},e.prototype.setMaxValue=function(t){return this.max=t,this.eInput.setAttribute("max",t.toString()),this},e.prototype.setStep=function(t){return this.eInput.setAttribute("step",t.toString()),this},e.prototype.setValue=function(e,o){null!=this.min&&(e=Math.max(parseFloat(e),this.min).toString()),null!=this.max&&(e=Math.min(parseFloat(e),this.max).toString());var i=t.prototype.setValue.call(this,e,o);return this.eInput.value=e,i},e}(Yn),sd=function(){var t=function(e,o){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])})(e,o)};return function(e,o){function i(){this.constructor=e}t(e,o),e.prototype=null===o?Object.create(o):(i.prototype=o.prototype,new i)}}(),ad=function(t,e,o,i){var n,r=arguments.length,s=r<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,o):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,o,i);else for(var a=t.length-1;a>=0;a--)(n=t[a])&&(s=(r<3?n(s):r>3?n(e,o,s):n(e,o))||s);return r>3&&s&&Object.defineProperty(e,o,s),s},ld=function(t){function e(o){var i=t.call(this,o,e.TEMPLATE)||this;return i.labelAlignment="top",i}return sd(e,t),e.prototype.init=function(){this.eSlider.addCssClass("ag-slider-field")},e.prototype.onValueChange=function(t){var e=this,o=In.EVENT_CHANGED;return this.addManagedListener(this.eText,o,(function(){var o=parseFloat(e.eText.getValue());e.eSlider.setValue(o.toString(),!0),t(o||0)})),this.addManagedListener(this.eSlider,o,(function(){var o=e.eSlider.getValue();e.eText.setValue(o,!0),t(parseFloat(o))})),this},e.prototype.setSliderWidth=function(t){return this.eSlider.setWidth(t),this},e.prototype.setTextFieldWidth=function(t){return this.eText.setWidth(t),this},e.prototype.setMinValue=function(t){return this.eSlider.setMinValue(t),this.eText.setMin(t),this},e.prototype.setMaxValue=function(t){return this.eSlider.setMaxValue(t),this.eText.setMax(t),this},e.prototype.getValue=function(){return this.eText.getValue()},e.prototype.setValue=function(t){return this.getValue()===t||(this.eText.setValue(t,!0),this.eSlider.setValue(t,!0),this.dispatchEvent({type:In.EVENT_CHANGED})),this},e.prototype.setStep=function(t){return this.eSlider.setStep(t),this.eText.setStep(t),this},e.TEMPLATE='<div class="ag-slider">\n <label ref="eLabel"></label>\n <div class="ag-wrapper ag-slider-wrapper">\n <ag-input-range ref="eSlider"></ag-input-range>\n <ag-input-number-field ref="eText"></ag-input-number-field>\n </div>\n </div>',ad([dn("eLabel")],e.prototype,"eLabel",void 0),ad([dn("eSlider")],e.prototype,"eSlider",void 0),ad([dn("eText")],e.prototype,"eText",void 0),ad([B],e.prototype,"init",null),e}(Ln),ud=function(){var t=function(e,o){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])})(e,o)};return function(e,o){function i(){this.constructor=e}t(e,o),e.prototype=null===o?Object.create(o):(i.prototype=o.prototype,new i)}}(),cd=function(t,e,o,i){var n,r=arguments.length,s=r<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,o):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,o,i);else for(var a=t.length-1;a>=0;a--)(n=t[a])&&(s=(r<3?n(s):r>3?n(e,o,s):n(e,o))||s);return r>3&&s&&Object.defineProperty(e,o,s),s},pd=function(t){function e(o){void 0===o&&(o={});var i=t.call(this,e.getTemplate(o))||this;i.suppressEnabledCheckbox=!0,i.suppressOpenCloseIcons=!1;var n=o.title,r=o.enabled,s=o.items,a=o.suppressEnabledCheckbox,l=o.suppressOpenCloseIcons;return i.title=n,i.cssIdentifier=o.cssIdentifier||"default",i.enabled=null==r||r,i.items=s||[],i.alignItems=o.alignItems||"center",null!=a&&(i.suppressEnabledCheckbox=a),null!=l&&(i.suppressOpenCloseIcons=l),i}return ud(e,t),e.getTemplate=function(t){var e=t.cssIdentifier||"default";return'<div class="ag-group ag-'+e+'-group" role="presentation">\n <div class="ag-group-title-bar ag-'+e+'-group-title-bar ag-unselectable" ref="eTitleBar" role="button">\n <span class="ag-group-title-bar-icon ag-'+e+'-group-title-bar-icon" ref="eGroupOpenedIcon" role="presentation"></span>\n <span class="ag-group-title-bar-icon ag-'+e+'-group-title-bar-icon" ref="eGroupClosedIcon" role="presentation"></span>\n <span ref="eTitle" class="ag-group-title ag-'+e+'-group-title"></span>\n </div>\n <div ref="eToolbar" class="ag-group-toolbar ag-'+e+'-group-toolbar">\n <ag-checkbox ref="cbGroupEnabled"></ag-checkbox>\n </div>\n <div ref="eContainer" class="ag-group-container ag-group-container-'+(t.direction||"vertical")+" ag-"+e+'-group-container"></div>\n </div>'},e.prototype.postConstruct=function(){if(this.items.length){var t=this.items;this.items=[],this.addItems(t)}var e=this.localeService.getLocaleTextFunc();this.cbGroupEnabled.setLabel(e("enabled","Enabled")),this.title&&this.setTitle(this.title),this.enabled&&this.setEnabled(this.enabled),this.setAlignItems(this.alignItems),this.hideEnabledCheckbox(this.suppressEnabledCheckbox),this.hideOpenCloseIcons(this.suppressOpenCloseIcons),this.setupExpandContract(),this.refreshAriaStatus(),this.refreshChildDisplay()},e.prototype.setupExpandContract=function(){var t=this;this.eGroupClosedIcon.appendChild(Li("columnSelectClosed",this.gridOptionsService,null)),this.eGroupOpenedIcon.appendChild(Li("columnSelectOpen",this.gridOptionsService,null)),this.addManagedListener(this.eTitleBar,"click",(function(){return t.toggleGroupExpand()})),this.addManagedListener(this.eTitleBar,"keydown",(function(e){switch(e.key){case Gi.ENTER:case Gi.SPACE:e.preventDefault(),t.toggleGroupExpand();break;case Gi.RIGHT:case Gi.LEFT:e.preventDefault(),t.toggleGroupExpand(e.key===Gi.RIGHT)}}))},e.prototype.refreshAriaStatus=function(){this.suppressOpenCloseIcons||Ze(this.eTitleBar,this.expanded)},e.prototype.refreshChildDisplay=function(){var t=!this.suppressOpenCloseIcons;Zo(this.eToolbar,this.expanded&&!this.suppressEnabledCheckbox),Zo(this.eGroupOpenedIcon,t&&this.expanded),Zo(this.eGroupClosedIcon,t&&!this.expanded)},e.prototype.isExpanded=function(){return this.expanded},e.prototype.setAlignItems=function(t){this.alignItems!==t&&this.removeCssClass("ag-group-item-alignment-"+this.alignItems),this.alignItems=t;var e="ag-group-item-alignment-"+this.alignItems;return this.addCssClass(e),this},e.prototype.toggleGroupExpand=function(t){return this.suppressOpenCloseIcons?(this.expanded=!0,this.refreshChildDisplay(),Zo(this.eContainer,!0),this):(t=null!=t?t:!this.expanded,this.expanded===t||(this.expanded=t,this.refreshAriaStatus(),this.refreshChildDisplay(),Zo(this.eContainer,t),this.dispatchEvent({type:this.expanded?e.EVENT_EXPANDED:e.EVENT_COLLAPSED})),this)},e.prototype.addItems=function(t){var e=this;t.forEach((function(t){return e.addItem(t)}))},e.prototype.addItem=function(t){var e=this.eContainer,o=t instanceof cn?t.getGui():t;o.classList.add("ag-group-item","ag-"+this.cssIdentifier+"-group-item"),e.appendChild(o),this.items.push(o)},e.prototype.hideItem=function(t,e){Zo(this.items[e],!t)},e.prototype.setTitle=function(t){return this.eTitle.innerText=t,this},e.prototype.addCssClassToTitleBar=function(t){this.eTitleBar.classList.add(t)},e.prototype.setEnabled=function(t,e){return this.enabled=t,this.refreshDisabledStyles(),this.toggleGroupExpand(t),e||this.cbGroupEnabled.setValue(t),this},e.prototype.isEnabled=function(){return this.enabled},e.prototype.onEnableChange=function(t){var e=this;return this.cbGroupEnabled.onValueChange((function(o){e.setEnabled(o,!0),t(o)})),this},e.prototype.hideEnabledCheckbox=function(t){return this.suppressEnabledCheckbox=t,this.refreshChildDisplay(),this.refreshDisabledStyles(),this},e.prototype.hideOpenCloseIcons=function(t){return this.suppressOpenCloseIcons=t,t&&this.toggleGroupExpand(!0),this},e.prototype.refreshDisabledStyles=function(){this.addOrRemoveCssClass("ag-disabled",!this.enabled),this.suppressEnabledCheckbox&&!this.enabled?(this.eTitleBar.classList.add("ag-disabled-group-title-bar"),this.eTitleBar.removeAttribute("tabindex")):(this.eTitleBar.classList.remove("ag-disabled-group-title-bar"),this.eTitleBar.setAttribute("tabindex","0")),this.eContainer.classList.toggle("ag-disabled-group-container",!this.enabled)},e.EVENT_EXPANDED="expanded",e.EVENT_COLLAPSED="collapsed",cd([dn("eTitleBar")],e.prototype,"eTitleBar",void 0),cd([dn("eGroupOpenedIcon")],e.prototype,"eGroupOpenedIcon",void 0),cd([dn("eGroupClosedIcon")],e.prototype,"eGroupClosedIcon",void 0),cd([dn("eToolbar")],e.prototype,"eToolbar",void 0),cd([dn("cbGroupEnabled")],e.prototype,"cbGroupEnabled",void 0),cd([dn("eTitle")],e.prototype,"eTitle",void 0),cd([dn("eContainer")],e.prototype,"eContainer",void 0),cd([B],e.prototype,"postConstruct",null),e}(cn),dd=function(){var t=function(e,o){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])})(e,o)};return function(e,o){function i(){this.constructor=e}t(e,o),e.prototype=null===o?Object.create(o):(i.prototype=o.prototype,new i)}}(),hd=function(t,e,o,i){var n,r=arguments.length,s=r<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,o):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,o,i);else for(var a=t.length-1;a>=0;a--)(n=t[a])&&(s=(r<3?n(s):r>3?n(e,o,s):n(e,o))||s);return r>3&&s&&Object.defineProperty(e,o,s),s};
282/**
283 * @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue
284 * @version v29.2.0
285 * @link https://www.ag-grid.com/
286 * @license MIT
287 */!function(t){t.TAB_GUARD="ag-tab-guard",t.TAB_GUARD_TOP="ag-tab-guard-top",t.TAB_GUARD_BOTTOM="ag-tab-guard-bottom"}(kp||(kp={}));var fd,gd=function(t){function e(e){var o=t.call(this)||this;o.skipTabGuardFocus=!1;var i=e.comp,n=e.eTopGuard,r=e.eBottomGuard,s=e.focusInnerElement,a=e.onFocusIn,l=e.onFocusOut,u=e.shouldStopEventPropagation,c=e.onTabKeyDown,p=e.handleKeyDown,d=e.eFocusableElement;return o.comp=i,o.eTopGuard=n,o.eBottomGuard=r,o.providedFocusInnerElement=s,o.eFocusableElement=d,o.providedFocusIn=a,o.providedFocusOut=l,o.providedShouldStopEventPropagation=u,o.providedOnTabKeyDown=c,o.providedHandleKeyDown=p,o}return dd(e,t),e.prototype.postConstruct=function(){var t=this;this.createManagedBean(new On(this.eFocusableElement,{shouldStopEventPropagation:function(){return t.shouldStopEventPropagation()},onTabKeyDown:function(e){return t.onTabKeyDown(e)},handleKeyDown:function(e){return t.handleKeyDown(e)},onFocusIn:function(e){return t.onFocusIn(e)},onFocusOut:function(e){return t.onFocusOut(e)}})),this.activateTabGuards(),[this.eTopGuard,this.eBottomGuard].forEach((function(e){return t.addManagedListener(e,"focus",t.onFocus.bind(t))}))},e.prototype.handleKeyDown=function(t){this.providedHandleKeyDown&&this.providedHandleKeyDown(t)},e.prototype.tabGuardsAreActive=function(){return!!this.eTopGuard&&this.eTopGuard.hasAttribute("tabIndex")},e.prototype.shouldStopEventPropagation=function(){return!!this.providedShouldStopEventPropagation&&this.providedShouldStopEventPropagation()},e.prototype.activateTabGuards=function(){this.comp.setTabIndex(this.getGridTabIndex())},e.prototype.deactivateTabGuards=function(){this.comp.setTabIndex()},e.prototype.onFocus=function(t){if(this.skipTabGuardFocus)this.skipTabGuardFocus=!1;else{var e=t.target===this.eBottomGuard;this.providedFocusInnerElement?this.providedFocusInnerElement(e):this.focusInnerElement(e)}},e.prototype.onFocusIn=function(t){this.providedFocusIn&&this.providedFocusIn(t)||this.deactivateTabGuards()},e.prototype.onFocusOut=function(t){this.providedFocusOut&&this.providedFocusOut(t)||this.eFocusableElement.contains(t.relatedTarget)||this.activateTabGuards()},e.prototype.onTabKeyDown=function(t){var e=this;if(this.providedOnTabKeyDown)this.providedOnTabKeyDown(t);else if(!t.defaultPrevented){var o=this.tabGuardsAreActive();o&&this.deactivateTabGuards();var i=this.getNextFocusableElement(t.shiftKey);o&&setTimeout((function(){return e.activateTabGuards()}),0),i&&(i.focus(),t.preventDefault())}},e.prototype.getGridTabIndex=function(){return(this.gridOptionsService.getNum("tabIndex")||0).toString()},e.prototype.focusInnerElement=function(t){void 0===t&&(t=!1);var e=this.focusService.findFocusableElements(this.eFocusableElement);this.tabGuardsAreActive()&&(e.splice(0,1),e.splice(e.length-1,1)),e.length&&e[t?e.length-1:0].focus()},e.prototype.getNextFocusableElement=function(t){return this.focusService.findNextFocusableElement(this.eFocusableElement,!1,t)},e.prototype.forceFocusOutOfContainer=function(t){void 0===t&&(t=!1);var e=t?this.eTopGuard:this.eBottomGuard;this.activateTabGuards(),this.skipTabGuardFocus=!0,e.focus()},hd([U("focusService")],e.prototype,"focusService",void 0),hd([B],e.prototype,"postConstruct",null),e}(Mt),vd=function(){var t=function(e,o){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])})(e,o)};return function(e,o){function i(){this.constructor=e}t(e,o),e.prototype=null===o?Object.create(o):(i.prototype=o.prototype,new i)}}(),yd=function(t,e){var o="function"==typeof Symbol&&t[Symbol.iterator];if(!o)return t;var i,n,r=o.call(t),s=[];try{for(;(void 0===e||e-- >0)&&!(i=r.next()).done;)s.push(i.value)}catch(t){n={error:t}}finally{try{i&&!i.done&&(o=r.return)&&o.call(r)}finally{if(n)throw n.error}}return s},md=function(){for(var t=[],e=0;e<arguments.length;e++)t=t.concat(yd(arguments[e]));return t},Cd=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return vd(e,t),e.prototype.initialiseTabGuard=function(t){this.eTopGuard=this.createTabGuard("top"),this.eBottomGuard=this.createTabGuard("bottom"),this.eFocusableElement=this.getFocusableElement();var e=[this.eTopGuard,this.eBottomGuard],o={setTabIndex:function(t){e.forEach((function(e){return null!=t?e.setAttribute("tabIndex",t):e.removeAttribute("tabIndex")}))}};this.addTabGuards(this.eTopGuard,this.eBottomGuard),this.tabGuardCtrl=this.createManagedBean(new gd({comp:o,eTopGuard:this.eTopGuard,eBottomGuard:this.eBottomGuard,eFocusableElement:this.eFocusableElement,onFocusIn:t.onFocusIn,onFocusOut:t.onFocusOut,focusInnerElement:t.focusInnerElement,handleKeyDown:t.handleKeyDown,onTabKeyDown:t.onTabKeyDown,shouldStopEventPropagation:t.shouldStopEventPropagation}))},e.prototype.createTabGuard=function(t){var e=document.createElement("div"),o="top"===t?kp.TAB_GUARD_TOP:kp.TAB_GUARD_BOTTOM;return e.classList.add(kp.TAB_GUARD,o),ke(e,"presentation"),e},e.prototype.addTabGuards=function(t,e){this.eFocusableElement.insertAdjacentElement("afterbegin",t),this.eFocusableElement.insertAdjacentElement("beforeend",e)},e.prototype.removeAllChildrenExceptTabGuards=function(){var t=[this.eTopGuard,this.eBottomGuard];ci(this.getFocusableElement()),this.addTabGuards.apply(this,md(t))},e.prototype.forceFocusOutOfContainer=function(t){void 0===t&&(t=!1),this.tabGuardCtrl.forceFocusOutOfContainer(t)},e.prototype.appendChild=function(e,o){Ti(e)||(e=e.getGui());var i=this.eBottomGuard;i?i.insertAdjacentElement("beforebegin",e):t.prototype.appendChild.call(this,e,o)},e}(cn),wd=function(){var t=function(e,o){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])})(e,o)};return function(e,o){function i(){this.constructor=e}t(e,o),e.prototype=null===o?Object.create(o):(i.prototype=o.prototype,new i)}}(),Sd=function(){return(Sd=Object.assign||function(t){for(var e,o=1,i=arguments.length;o<i;o++)for(var n in e=arguments[o])Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t}).apply(this,arguments)},Ed=function(t,e,o,i){var n,r=arguments.length,s=r<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,o):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,o,i);else for(var a=t.length-1;a>=0;a--)(n=t[a])&&(s=(r<3?n(s):r>3?n(e,o,s):n(e,o))||s);return r>3&&s&&Object.defineProperty(e,o,s),s},Rd=function(t){function e(e){void 0===e&&(e=1);var o=t.call(this,'<div class="ag-menu-list" role="tree"></div>')||this;return o.level=e,o.menuItems=[],o}return wd(e,t),e.prototype.postConstruct=function(){var t=this;this.initialiseTabGuard({onTabKeyDown:function(e){return t.onTabKeyDown(e)},handleKeyDown:function(e){return t.handleKeyDown(e)}})},e.prototype.onTabKeyDown=function(t){var e=this.getParentComponent(),o=e&&e.getGui();o&&o.classList.contains("ag-focus-managed")||t.preventDefault(),t.shiftKey&&this.closeIfIsChild(t)},e.prototype.handleKeyDown=function(t){switch(t.key){case Gi.UP:case Gi.RIGHT:case Gi.DOWN:case Gi.LEFT:t.preventDefault(),this.handleNavKey(t.key);break;case Gi.ESCAPE:var e=this.findTopMenu();e&&this.focusService.focusInto(e.getGui())}},e.prototype.clearActiveItem=function(){this.activeMenuItem&&(this.activeMenuItem.deactivate(),this.activeMenuItem=null)},e.prototype.addMenuItems=function(t){var e=this;null!=t&&t.forEach((function(t){"separator"===t?e.addSeparator():"string"==typeof t?console.warn("AG Grid: unrecognised menu item "+t):e.addItem(t)}))},e.prototype.addItem=function(t){var e=this,o=this.createManagedBean(new _d(Sd(Sd({},t),{isAnotherSubMenuOpen:function(){return e.menuItems.some((function(t){return t.isSubMenuOpen()}))}})));o.setParentComponent(this),Qe(o.getGui(),this.level),this.menuItems.push(o),this.appendChild(o.getGui()),this.addManagedListener(o,_d.EVENT_MENU_ITEM_SELECTED,(function(t){e.dispatchEvent(t)})),this.addManagedListener(o,_d.EVENT_MENU_ITEM_ACTIVATED,(function(t){e.activeMenuItem&&e.activeMenuItem!==t.menuItem&&e.activeMenuItem.deactivate(),e.activeMenuItem=t.menuItem}))},e.prototype.activateFirstItem=function(){var t=this.menuItems.filter((function(t){return!t.isDisabled()}))[0];t&&t.activate()},e.prototype.addSeparator=function(){this.appendChild(hi('\n <div class="ag-menu-separator" aria-hidden="true">\n <div class="ag-menu-separator-part"></div>\n <div class="ag-menu-separator-part"></div>\n <div class="ag-menu-separator-part"></div>\n <div class="ag-menu-separator-part"></div>\n </div>'))},e.prototype.findTopMenu=function(){var t=this.getParentComponent();if(!t&&this instanceof e)return this;for(;;){var o=t&&t.getParentComponent&&t.getParentComponent();if(!o||!(o instanceof e||o instanceof _d))break;t=o}return t instanceof e?t:void 0},e.prototype.handleNavKey=function(t){switch(t){case Gi.UP:case Gi.DOWN:var e=this.findNextItem(t===Gi.UP);return void(e&&e!==this.activeMenuItem&&e.activate())}t===(this.gridOptionsService.is("enableRtl")?Gi.RIGHT:Gi.LEFT)?this.closeIfIsChild():this.openChild()},e.prototype.closeIfIsChild=function(t){var e=this.getParentComponent();e&&e instanceof _d&&(t&&t.preventDefault(),e.closeSubMenu(),e.getGui().focus())},e.prototype.openChild=function(){this.activeMenuItem&&this.activeMenuItem.openSubMenu(!0)},e.prototype.findNextItem=function(t){var e=this.menuItems.filter((function(t){return!t.isDisabled()}));if(e.length){if(!this.activeMenuItem)return t?ut(e):e[0];var o;t&&e.reverse();for(var i=!1,n=0;n<e.length;n++){var r=e[n];if(i){o=r;break}r===this.activeMenuItem&&(i=!0)}return o||this.activeMenuItem}},e.prototype.destroy=function(){this.clearActiveItem(),t.prototype.destroy.call(this)},Ed([U("focusService")],e.prototype,"focusService",void 0),Ed([B],e.prototype,"postConstruct",null),e}(Cd),Od=function(){var t=function(e,o){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])})(e,o)};return function(e,o){function i(){this.constructor=e}t(e,o),e.prototype=null===o?Object.create(o):(i.prototype=o.prototype,new i)}}(),bd=function(t,e,o,i){var n,r=arguments.length,s=r<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,o):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,o,i);else for(var a=t.length-1;a>=0;a--)(n=t[a])&&(s=(r<3?n(s):r>3?n(e,o,s):n(e,o))||s);return r>3&&s&&Object.defineProperty(e,o,s),s},Td=function(t){function e(e){var o=t.call(this)||this;return o.wrappedComponent=e,o.setTemplateFromElement(e.getGui()),o}return Od(e,t),e.prototype.postConstruct=function(){var t=this;this.initialiseTabGuard({onTabKeyDown:function(e){return t.onTabKeyDown(e)},handleKeyDown:function(e){return t.handleKeyDown(e)}})},e.prototype.handleKeyDown=function(t){t.key===Gi.ESCAPE&&this.closePanel()},e.prototype.onTabKeyDown=function(t){t.defaultPrevented||(this.closePanel(),t.preventDefault())},e.prototype.closePanel=function(){var t=this.parentComponent;t.closeSubMenu(),setTimeout((function(){return t.getGui().focus()}),0)},bd([B],e.prototype,"postConstruct",null),e}(Cd),Pd=function(){var t=function(e,o){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])})(e,o)};return function(e,o){function i(){this.constructor=e}t(e,o),e.prototype=null===o?Object.create(o):(i.prototype=o.prototype,new i)}}(),Dd=function(t,e,o,i){var n,r=arguments.length,s=r<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,o):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,o,i);else for(var a=t.length-1;a>=0;a--)(n=t[a])&&(s=(r<3?n(s):r>3?n(e,o,s):n(e,o))||s);return r>3&&s&&Object.defineProperty(e,o,s),s},_d=function(t){function e(e){var o=t.call(this)||this;return o.params=e,o.isActive=!1,o.subMenuIsOpen=!1,o.setTemplate('<div class="'+o.getClassName()+'" tabindex="-1" role="treeitem"></div>'),o}return Pd(e,t),e.prototype.init=function(){var t=this;this.addIcon(),this.addName(),this.addShortcut(),this.addSubMenu(),this.addTooltip();var e=this.getGui();this.params.disabled?(this.addCssClass(this.getClassName("disabled")),Xe(e,!0)):(this.addGuiEventListener("click",(function(e){return t.onItemSelected(e)})),this.addGuiEventListener("keydown",(function(e){e.key!==Gi.ENTER&&e.key!==Gi.SPACE||(e.preventDefault(),t.onItemSelected(e))})),this.addGuiEventListener("mousedown",(function(t){t.stopPropagation(),t.preventDefault()})),this.addGuiEventListener("mouseenter",(function(){return t.onMouseEnter()})),this.addGuiEventListener("mouseleave",(function(){return t.onMouseLeave()}))),this.params.cssClasses&&this.params.cssClasses.forEach((function(e){return t.addCssClass(e)}))},e.prototype.isDisabled=function(){return!!this.params.disabled},e.prototype.openSubMenu=function(t){var o=this;if(void 0===t&&(t=!1),this.closeSubMenu(),this.params.subMenu){var i,n=hi('<div class="ag-menu" role="presentation"></div>');if(this.params.subMenu instanceof Array){var r=je(this.getGui()),s=isNaN(r)?1:r+1,a=this.createBean(new Rd(s));a.setParentComponent(this),a.addMenuItems(this.params.subMenu),n.appendChild(a.getGui()),this.addManagedListener(a,e.EVENT_MENU_ITEM_SELECTED,(function(t){return o.dispatchEvent(t)})),a.addGuiEventListener("mouseenter",(function(){return o.cancelDeactivate()})),i=function(){return o.destroyBean(a)},t&&setTimeout((function(){return a.activateFirstItem()}),0)}else{var l=this.params.subMenu,u=this.createBean(new Td(l));u.setParentComponent(this);var c=u.getGui(),p=function(){return o.cancelDeactivate()};c.addEventListener("mouseenter",p),i=function(){return c.removeEventListener("mouseenter",p)},n.appendChild(c),l.afterGuiAttached&&setTimeout((function(){return l.afterGuiAttached()}),0)}var d=this.getGui(),h=this.popupService.positionPopupForMenu.bind(this.popupService,{eventSource:d,ePopup:n,shouldSetMaxHeight:this.params.shouldSetMaxHeight}),f=this.localeService.getLocaleTextFunc(),g=this.popupService.addPopup({modal:!0,eChild:n,positionCallback:h,anchorToElement:d,ariaLabel:f("ariaLabelSubMenu","SubMenu")});this.subMenuIsOpen=!0,Ze(d,!0),this.hideSubMenu=function(){g&&g.hideFunc(),o.subMenuIsOpen=!1,Ze(d,!1),i()}}},e.prototype.closeSubMenu=function(){this.hideSubMenu&&(this.hideSubMenu(),this.hideSubMenu=null,Ze(this.getGui(),!1))},e.prototype.isSubMenuOpen=function(){return this.subMenuIsOpen},e.prototype.activate=function(t){var e=this;this.cancelActivate(),this.params.disabled||(this.isActive=!0,this.addCssClass(this.getClassName("active")),this.getGui().focus(),t&&this.params.subMenu&&window.setTimeout((function(){e.isAlive()&&e.isActive&&e.openSubMenu()}),300),this.onItemActivated())},e.prototype.deactivate=function(){this.cancelDeactivate(),this.removeCssClass(this.getClassName("active")),this.isActive=!1,this.subMenuIsOpen&&this.hideSubMenu()},e.prototype.addIcon=function(){if(this.params.checked||this.params.icon||!this.params.isCompact){var t=hi('<span ref="eIcon" class="'+this.getClassName("part")+" "+this.getClassName("icon")+'" role="presentation"></span>');this.params.checked?t.appendChild(Mi("check",this.gridOptionsService)):this.params.icon&&(Ti(this.params.icon)?t.appendChild(this.params.icon):"string"==typeof this.params.icon?t.innerHTML=this.params.icon:console.warn("AG Grid: menu item icon must be DOM node or string")),this.getGui().appendChild(t)}},e.prototype.addName=function(){if(this.params.name||!this.params.isCompact){var t=hi('<span ref="eName" class="'+this.getClassName("part")+" "+this.getClassName("text")+'">'+(this.params.name||"")+"</span>");this.getGui().appendChild(t)}},e.prototype.addTooltip=function(){this.params.tooltip&&(this.tooltip=this.params.tooltip,this.gridOptionsService.is("enableBrowserTooltips")?this.getGui().setAttribute("title",this.tooltip):this.createManagedBean(new rn(this)))},e.prototype.getTooltipParams=function(){return{location:"menu",value:this.tooltip}},e.prototype.addShortcut=function(){if(this.params.shortcut||!this.params.isCompact){var t=hi('<span ref="eShortcut" class="'+this.getClassName("part")+" "+this.getClassName("shortcut")+'">'+(this.params.shortcut||"")+"</span>");this.getGui().appendChild(t)}},e.prototype.addSubMenu=function(){if(this.params.subMenu||!this.params.isCompact){var t=hi('<span ref="ePopupPointer" class="'+this.getClassName("part")+" "+this.getClassName("popup-pointer")+'"></span>'),e=this.getGui();if(this.params.subMenu){var o=this.gridOptionsService.is("enableRtl")?"smallLeft":"smallRight";Ze(e,!1),t.appendChild(Mi(o,this.gridOptionsService))}e.appendChild(t)}},e.prototype.onItemSelected=function(t){if(this.params.action?this.params.action():this.openSubMenu(t&&"keydown"===t.type),!this.params.subMenu||this.params.action){var o={type:e.EVENT_MENU_ITEM_SELECTED,action:this.params.action,checked:this.params.checked,cssClasses:this.params.cssClasses,disabled:this.params.disabled,icon:this.params.icon,name:this.params.name,shortcut:this.params.shortcut,subMenu:this.params.subMenu,tooltip:this.params.tooltip,event:t};this.dispatchEvent(o)}},e.prototype.onItemActivated=function(){var t={type:e.EVENT_MENU_ITEM_ACTIVATED,menuItem:this};this.dispatchEvent(t)},e.prototype.cancelActivate=function(){this.activateTimeoutId&&(window.clearTimeout(this.activateTimeoutId),this.activateTimeoutId=0)},e.prototype.cancelDeactivate=function(){this.deactivateTimeoutId&&(window.clearTimeout(this.deactivateTimeoutId),this.deactivateTimeoutId=0)},e.prototype.onMouseEnter=function(){var t=this;this.cancelDeactivate(),this.params.isAnotherSubMenuOpen()?this.activateTimeoutId=window.setTimeout((function(){return t.activate(!0)}),e.ACTIVATION_DELAY):this.activate(!0)},e.prototype.onMouseLeave=function(){var t=this;this.cancelActivate(),this.isSubMenuOpen()?this.deactivateTimeoutId=window.setTimeout((function(){return t.deactivate()}),e.ACTIVATION_DELAY):this.deactivate()},e.prototype.getClassName=function(t){var e=this.params.isCompact?"ag-compact-menu-option":"ag-menu-option";return t?e+"-"+t:e},e.EVENT_MENU_ITEM_SELECTED="menuItemSelected",e.EVENT_MENU_ITEM_ACTIVATED="menuItemActivated",e.ACTIVATION_DELAY=80,Dd([U("popupService")],e.prototype,"popupService",void 0),Dd([B],e.prototype,"init",null),e}(cn),Ad=function(){var t=function(e,o){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])})(e,o)};return function(e,o){function i(){this.constructor=e}t(e,o),e.prototype=null===o?Object.create(o):(i.prototype=o.prototype,new i)}}(),Nd=function(t,e,o,i){var n,r=arguments.length,s=r<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,o):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,o,i);else for(var a=t.length-1;a>=0;a--)(n=t[a])&&(s=(r<3?n(s):r>3?n(e,o,s):n(e,o))||s);return r>3&&s&&Object.defineProperty(e,o,s),s},Fd=function(t){function e(o){var i=t.call(this,e.getTemplate(o))||this;return i.closable=!0,i.config=o,i}return Ad(e,t),e.getTemplate=function(t){var e=t&&t.cssIdentifier||"default";return'<div class="ag-panel ag-'+e+'-panel" tabindex="-1">\n <div ref="eTitleBar" class="ag-panel-title-bar ag-'+e+'-panel-title-bar ag-unselectable">\n <span ref="eTitle" class="ag-panel-title-bar-title ag-'+e+'-panel-title-bar-title"></span>\n <div ref="eTitleBarButtons" class="ag-panel-title-bar-buttons ag-'+e+'-panel-title-bar-buttons"></div>\n </div>\n <div ref="eContentWrapper" class="ag-panel-content-wrapper ag-'+e+'-panel-content-wrapper"></div>\n </div>'},e.prototype.postConstruct=function(){var t=this,e=this.config,o=e.component,i=e.closable,n=e.hideTitleBar,r=e.title,s=e.minWidth,a=void 0===s?250:s,l=e.width,u=e.minHeight,c=void 0===u?250:u,p=e.height,d=e.centered,h=e.popup,f=e.x,g=e.y;this.positionableFeature=new Pn(this.getGui(),{minWidth:a,width:l,minHeight:c,height:p,centered:d,x:f,y:g,popup:h,calculateTopBuffer:function(){return t.positionableFeature.getHeight()-t.getBodyHeight()}}),this.createManagedBean(this.positionableFeature);var v=this.getGui();o&&this.setBodyComponent(o),n?Zo(this.eTitleBar,!1):(r&&this.setTitle(r),this.setClosable(null!=i?i:this.closable)),this.addManagedListener(this.eTitleBar,"mousedown",(function(e){var o=t.gridOptionsService.getDocument();if(v.contains(e.relatedTarget)||v.contains(o.activeElement)||t.eTitleBarButtons.contains(e.target))e.preventDefault();else{var i=t.eContentWrapper.querySelector("button, [href], input, select, textarea, [tabindex]");i&&i.focus()}})),h&&this.positionableFeature.isPositioned()||(this.renderComponent&&this.renderComponent(),this.positionableFeature.initialisePosition(),this.eContentWrapper.style.height="0")},e.prototype.renderComponent=function(){var t=this,e=this.getGui();e.focus(),this.close=function(){e.parentElement.removeChild(e),t.destroy()}},e.prototype.getHeight=function(){return this.positionableFeature.getHeight()},e.prototype.setHeight=function(t){this.positionableFeature.setHeight(t)},e.prototype.getWidth=function(){return this.positionableFeature.getWidth()},e.prototype.setWidth=function(t){this.positionableFeature.setWidth(t)},e.prototype.setClosable=function(t){if(t!==this.closable&&(this.closable=t),t){var o=this.closeButtonComp=new cn(e.CLOSE_BTN_TEMPLATE);this.getContext().createBean(o);var i=o.getGui(),n=Mi("close",this.gridOptionsService);n.classList.add("ag-panel-title-bar-button-icon"),i.appendChild(n),this.addTitleBarButton(o),o.addManagedListener(i,"click",this.onBtClose.bind(this))}else if(this.closeButtonComp){(i=this.closeButtonComp.getGui()).parentElement.removeChild(i),this.closeButtonComp=this.destroyBean(this.closeButtonComp)}},e.prototype.setBodyComponent=function(t){t.setParentComponent(this),this.eContentWrapper.appendChild(t.getGui())},e.prototype.addTitleBarButton=function(t,e){var o=this.eTitleBarButtons,i=o.children,n=i.length;null==e&&(e=n),e=Math.max(0,Math.min(e,n)),t.addCssClass("ag-panel-title-bar-button");var r=t.getGui();0===e?o.insertAdjacentElement("afterbegin",r):e===n?o.insertAdjacentElement("beforeend",r):i[e-1].insertAdjacentElement("afterend",r),t.setParentComponent(this)},e.prototype.getBodyHeight=function(){return ii(this.eContentWrapper)},e.prototype.getBodyWidth=function(){return ni(this.eContentWrapper)},e.prototype.setTitle=function(t){this.eTitle.innerText=t},e.prototype.onBtClose=function(){this.close()},e.prototype.destroy=function(){this.closeButtonComp&&(this.closeButtonComp=this.destroyBean(this.closeButtonComp));var e=this.getGui();e&&e.offsetParent&&this.close(),t.prototype.destroy.call(this)},e.CLOSE_BTN_TEMPLATE='<div class="ag-button"></div>',Nd([dn("eContentWrapper")],e.prototype,"eContentWrapper",void 0),Nd([dn("eTitleBar")],e.prototype,"eTitleBar",void 0),Nd([dn("eTitleBarButtons")],e.prototype,"eTitleBarButtons",void 0),Nd([dn("eTitle")],e.prototype,"eTitle",void 0),Nd([B],e.prototype,"postConstruct",null),e}(cn),Ld=function(){var t=function(e,o){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])})(e,o)};return function(e,o){function i(){this.constructor=e}t(e,o),e.prototype=null===o?Object.create(o):(i.prototype=o.prototype,new i)}}(),Md=function(){return(Md=Object.assign||function(t){for(var e,o=1,i=arguments.length;o<i;o++)for(var n in e=arguments[o])Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t}).apply(this,arguments)},Id=function(t,e,o,i){var n,r=arguments.length,s=r<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,o):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,o,i);else for(var a=t.length-1;a>=0;a--)(n=t[a])&&(s=(r<3?n(s):r>3?n(e,o,s):n(e,o))||s);return r>3&&s&&Object.defineProperty(e,o,s),s},Gd=function(t){function e(e){var o=t.call(this,Md(Md({},e),{popup:!0}))||this;return o.isMaximizable=!1,o.isMaximized=!1,o.maximizeListeners=[],o.resizeListenerDestroy=null,o.lastPosition={x:0,y:0,width:0,height:0},o}return Ld(e,t),e.prototype.postConstruct=function(){var e=this,o=this.getGui(),i=this.config,n=i.movable,r=i.resizable,s=i.maximizable;this.addCssClass("ag-dialog"),t.prototype.postConstruct.call(this),this.addManagedListener(o,"focusin",(function(t){o.contains(t.relatedTarget)||e.popupService.bringPopupToFront(o)})),n&&this.setMovable(n),s&&this.setMaximizable(s),r&&this.setResizable(r)},e.prototype.renderComponent=function(){var t=this.getGui(),e=this.config,o=e.alwaysOnTop,i=e.modal,n=e.title,r=this.localeService.getLocaleTextFunc(),s=this.popupService.addPopup({modal:i,eChild:t,closeOnEsc:!0,closedCallback:this.destroy.bind(this),alwaysOnTop:o,ariaLabel:n||r("ariaLabelDialog","Dialog")});s&&(this.close=s.hideFunc)},e.prototype.toggleMaximize=function(){var t=this.positionableFeature.getPosition();if(this.isMaximized){var e=this.lastPosition,o=e.x,i=e.y,n=e.width,r=e.height;this.setWidth(n),this.setHeight(r),this.positionableFeature.offsetElement(o,i)}else this.lastPosition.width=this.getWidth(),this.lastPosition.height=this.getHeight(),this.lastPosition.x=t.x,this.lastPosition.y=t.y,this.positionableFeature.offsetElement(0,0),this.setHeight("100%"),this.setWidth("100%");this.isMaximized=!this.isMaximized,this.refreshMaximizeIcon()},e.prototype.refreshMaximizeIcon=function(){Zo(this.maximizeIcon,!this.isMaximized),Zo(this.minimizeIcon,this.isMaximized)},e.prototype.clearMaximizebleListeners=function(){this.maximizeListeners.length&&(this.maximizeListeners.forEach((function(t){return t()})),this.maximizeListeners.length=0),this.resizeListenerDestroy&&(this.resizeListenerDestroy(),this.resizeListenerDestroy=null)},e.prototype.destroy=function(){this.maximizeButtonComp=this.destroyBean(this.maximizeButtonComp),this.clearMaximizebleListeners(),t.prototype.destroy.call(this)},e.prototype.setResizable=function(t){this.positionableFeature.setResizable(t)},e.prototype.setMovable=function(t){this.positionableFeature.setMovable(t,this.eTitleBar)},e.prototype.setMaximizable=function(t){var e=this;if(!t)return this.clearMaximizebleListeners(),void(this.maximizeButtonComp&&(this.destroyBean(this.maximizeButtonComp),this.maximizeButtonComp=this.maximizeIcon=this.minimizeIcon=void 0));var o=this.eTitleBar;if(o&&t!==this.isMaximizable){var i=this.buildMaximizeAndMinimizeElements();this.refreshMaximizeIcon(),i.addManagedListener(i.getGui(),"click",this.toggleMaximize.bind(this)),this.addTitleBarButton(i,0),this.maximizeListeners.push(this.addManagedListener(o,"dblclick",this.toggleMaximize.bind(this))),this.resizeListenerDestroy=this.addManagedListener(this,"resize",(function(){e.isMaximized=!1,e.refreshMaximizeIcon()}))}},e.prototype.buildMaximizeAndMinimizeElements=function(){var t=this.maximizeButtonComp=this.createBean(new cn('<div class="ag-dialog-button"></span>')),e=t.getGui();return this.maximizeIcon=Mi("maximize",this.gridOptionsService),e.appendChild(this.maximizeIcon),this.maximizeIcon.classList.add("ag-panel-title-bar-button-icon"),this.minimizeIcon=Mi("minimize",this.gridOptionsService),e.appendChild(this.minimizeIcon),this.minimizeIcon.classList.add("ag-panel-title-bar-button-icon"),t},Id([U("popupService")],e.prototype,"popupService",void 0),e}(Fd),xd=function(){var t=function(e,o){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])})(e,o)};return function(e,o){function i(){this.constructor=e}t(e,o),e.prototype=null===o?Object.create(o):(i.prototype=o.prototype,new i)}}(),Hd=function(){return(Hd=Object.assign||function(t){for(var e,o=1,i=arguments.length;o<i;o++)for(var n in e=arguments[o])Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t}).apply(this,arguments)},Vd=function(t,e,o,i){var n,r=arguments.length,s=r<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,o):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,o,i);else for(var a=t.length-1;a>=0;a--)(n=t[a])&&(s=(r<3?n(s):r>3?n(e,o,s):n(e,o))||s);return r>3&&s&&Object.defineProperty(e,o,s),s},kd=function(t,e){var o="function"==typeof Symbol&&t[Symbol.iterator];if(!o)return t;var i,n,r=o.call(t),s=[];try{for(;(void 0===e||e-- >0)&&!(i=r.next()).done;)s.push(i.value)}catch(t){n={error:t}}finally{try{i&&!i.done&&(o=r.return)&&o.call(r)}finally{if(n)throw n.error}}return s},Bd=function(){for(var t=[],e=0;e<arguments.length;e++)t=t.concat(kd(arguments[e]));return t},jd=function(e){function o(){return null!==e&&e.apply(this,arguments)||this}var i;return xd(o,e),i=o,o.addKeyboardModeEvents=function(t,e){var o=i.instancesMonitored.get(t);o&&o.length>0?-1===o.indexOf(e)&&o.push(e):(i.instancesMonitored.set(t,[e]),t.addEventListener("keydown",i.toggleKeyboardMode),t.addEventListener("mousedown",i.toggleKeyboardMode))},o.removeKeyboardModeEvents=function(t,e){var o=i.instancesMonitored.get(t),n=[];o&&o.length&&(n=Bd(o).filter((function(t){return t!==e})),i.instancesMonitored.set(t,n)),0===n.length&&(t.removeEventListener("keydown",i.toggleKeyboardMode),t.removeEventListener("mousedown",i.toggleKeyboardMode))},o.toggleKeyboardMode=function(t){var e=i.keyboardModeActive,o="keydown"===t.type;if(!(o&&(t.ctrlKey||t.metaKey||t.altKey)||e&&o||!e&&!o)){i.keyboardModeActive=o;var n=t.target.ownerDocument;if(n){var r=i.instancesMonitored.get(n);r&&r.forEach((function(t){t.dispatchEvent({type:o?kt.EVENT_KEYBOARD_FOCUS:kt.EVENT_MOUSE_FOCUS})}))}}},o.prototype.init=function(){var t=this,e=this.clearFocusedCell.bind(this);this.addManagedListener(this.eventService,kt.EVENT_COLUMN_PIVOT_MODE_CHANGED,e),this.addManagedListener(this.eventService,kt.EVENT_NEW_COLUMNS_LOADED,this.onColumnEverythingChanged.bind(this)),this.addManagedListener(this.eventService,kt.EVENT_COLUMN_GROUP_OPENED,e),this.addManagedListener(this.eventService,kt.EVENT_COLUMN_ROW_GROUP_CHANGED,e),this.ctrlsService.whenReady((function(e){t.gridCtrl=e.gridCtrl;var o=t.gridOptionsService.getDocument();i.addKeyboardModeEvents(o,t.gridCtrl),t.addDestroyFunc((function(){return t.unregisterGridCompController(t.gridCtrl)}))}))},o.prototype.unregisterGridCompController=function(t){var e=this.gridOptionsService.getDocument();i.removeKeyboardModeEvents(e,t)},o.prototype.onColumnEverythingChanged=function(){if(this.focusedCellPosition){var t=this.focusedCellPosition.column,e=this.columnModel.getGridColumn(t.getId());t!==e&&this.clearFocusedCell()}},o.prototype.isKeyboardMode=function(){return i.keyboardModeActive},o.prototype.getFocusCellToUseAfterRefresh=function(){var t=this.gridOptionsService.getDocument();return this.gridOptionsService.is("suppressFocusAfterRefresh")||!this.focusedCellPosition||this.isDomDataMissingInHierarchy(t.activeElement,Fl.DOM_DATA_KEY_ROW_CTRL)?null:this.focusedCellPosition},o.prototype.getFocusHeaderToUseAfterRefresh=function(){var t=this.gridOptionsService.getDocument();return this.gridOptionsService.is("suppressFocusAfterRefresh")||!this.focusedHeaderPosition||this.isDomDataMissingInHierarchy(t.activeElement,sc.DOM_DATA_KEY_HEADER_CTRL)?null:this.focusedHeaderPosition},o.prototype.isDomDataMissingInHierarchy=function(t,e){for(var o=t;o;){if(this.gridOptionsService.getDomData(o,e))return!1;o=o.parentNode}return!0},o.prototype.getFocusedCell=function(){return this.focusedCellPosition},o.prototype.getFocusEventParams=function(){var t=this.focusedCellPosition,e=t.rowIndex,o=t.rowPinned,i={rowIndex:e,rowPinned:o,column:t.column,isFullWidthCell:!1},n=this.rowRenderer.getRowByPosition({rowIndex:e,rowPinned:o});return n&&(i.isFullWidthCell=n.isFullWidth()),i},o.prototype.clearFocusedCell=function(){if(null!=this.focusedCellPosition){var t=Hd({type:kt.EVENT_CELL_FOCUS_CLEARED},this.getFocusEventParams());this.focusedCellPosition=null,this.eventService.dispatchEvent(t)}},o.prototype.setFocusedCell=function(e){var o=e.column,i=e.rowIndex,n=e.rowPinned,r=e.forceBrowserFocus,s=void 0!==r&&r,a=e.preventScrollOnBrowserFocus,l=void 0!==a&&a,u=this.columnModel.getGridColumn(o);if(u){this.focusedCellPosition=u?{rowIndex:i,rowPinned:t(n),column:u}:null;var c=Hd(Hd({type:kt.EVENT_CELL_FOCUSED},this.getFocusEventParams()),{forceBrowserFocus:s,preventScrollOnBrowserFocus:l,floating:null});this.eventService.dispatchEvent(c)}else this.focusedCellPosition=null},o.prototype.isCellFocused=function(t){return null!=this.focusedCellPosition&&(this.focusedCellPosition.column===t.column&&this.isRowFocused(t.rowIndex,t.rowPinned))},o.prototype.isRowNodeFocused=function(t){return this.isRowFocused(t.rowIndex,t.rowPinned)},o.prototype.isHeaderWrapperFocused=function(t){if(null==this.focusedHeaderPosition)return!1;var e=t.getColumnGroupChild(),o=t.getRowIndex(),i=t.getPinned(),n=this.focusedHeaderPosition,r=n.column,s=n.headerRowIndex;return e===r&&o===s&&i==r.getPinned()},o.prototype.clearFocusedHeader=function(){this.focusedHeaderPosition=null},o.prototype.getFocusedHeader=function(){return this.focusedHeaderPosition},o.prototype.setFocusedHeader=function(t,e){this.focusedHeaderPosition={headerRowIndex:t,column:e}},o.prototype.focusHeaderPosition=function(t){var e=t.direction,o=t.fromTab,i=t.allowUserOverride,n=t.event,r=t.headerPosition;if(i){var s,a=this.getFocusedHeader(),l=this.headerNavigationService.getHeaderRowCount();if(o){if(s=this.gridOptionsService.getCallback("tabToNextHeader"))r=s({backwards:"Before"===e,previousHeaderPosition:a,nextHeaderPosition:r,headerRowCount:l})}else if((s=this.gridOptionsService.getCallback("navigateToNextHeader"))&&n)r=s({key:n.key,previousHeaderPosition:a,nextHeaderPosition:r,headerRowCount:l,event:n})}return!!r&&(-1===r.headerRowIndex?this.focusGridView(r.column):(this.headerNavigationService.scrollToColumn(r.column,e),this.ctrlsService.getHeaderRowContainerCtrl(r.column.getPinned()).focusHeader(r.headerRowIndex,r.column,n)))},o.prototype.focusFirstHeader=function(){var t=this.columnModel.getAllDisplayedColumns()[0];return!!t&&(t.getParent()&&(t=this.columnModel.getColumnGroupAtLevel(t,0)),this.focusHeaderPosition({headerPosition:{headerRowIndex:0,column:t}}))},o.prototype.focusLastHeader=function(t){var e=this.headerNavigationService.getHeaderRowCount()-1,o=ut(this.columnModel.getAllDisplayedColumns());return this.focusHeaderPosition({headerPosition:{headerRowIndex:e,column:o},event:t})},o.prototype.isAnyCellFocused=function(){return!!this.focusedCellPosition},o.prototype.isRowFocused=function(e,o){return null!=this.focusedCellPosition&&(this.focusedCellPosition.rowIndex===e&&this.focusedCellPosition.rowPinned===t(o))},o.prototype.findFocusableElements=function(t,e,o){void 0===o&&(o=!1);var i=Xo;e&&(i+=", "+e),o&&(i+=', [tabindex="-1"]');var n=Array.prototype.slice.apply(t.querySelectorAll("[tabindex], input, select, button, textarea, [href]")),r=Array.prototype.slice.apply(t.querySelectorAll(i));if(!r.length)return n;var s;return s=r,n.filter((function(t){return-1===s.indexOf(t)}))},o.prototype.focusInto=function(t,e,o){void 0===e&&(e=!1),void 0===o&&(o=!1);var i=this.findFocusableElements(t,null,o),n=e?ut(i):i[0];return!!n&&(n.focus(),!0)},o.prototype.findFocusableElementBeforeTabGuard=function(t,e){if(!e)return null;var o=this.findFocusableElements(t),i=o.indexOf(e);if(-1===i)return null;for(var n=-1,r=i-1;r>=0;r--)if(o[r].classList.contains(kp.TAB_GUARD_TOP)){n=r;break}return n<=0?null:o[n-1]},o.prototype.findNextFocusableElement=function(t,e,o){void 0===t&&(t=this.eGridDiv);var i=this.findFocusableElements(t,e?':not([tabindex="-1"])':null),n=this.gridOptionsService.getDocument().activeElement,r=(e?i.findIndex((function(t){return t.contains(n)})):i.indexOf(n))+(o?-1:1);return r<0||r>=i.length?null:i[r]},o.prototype.isTargetUnderManagedComponent=function(t,e){if(!e)return!1;var o=t.querySelectorAll("."+On.FOCUS_MANAGED_CLASS);if(!o.length)return!1;for(var i=0;i<o.length;i++)if(o[i].contains(e))return!0;return!1},o.prototype.findTabbableParent=function(t,e){void 0===e&&(e=5);for(var o=0;t&&null===_o(t)&&++o<=e;)t=t.parentElement;return null===_o(t)?null:t},o.prototype.focusGridView=function(e,o){if(this.gridOptionsService.is("suppressCellFocus"))return o?this.focusLastHeader():this.focusNextGridCoreContainer(!1);var i=o?this.rowPositionUtils.getLastRow():this.rowPositionUtils.getFirstRow();if(!i)return!1;var n=i.rowIndex,r=i.rowPinned,s=this.getFocusedHeader();if(!e&&s&&(e=s.column),null==n||!e)return!1;if(this.navigationService.ensureCellVisible({rowIndex:n,column:e,rowPinned:r}),this.setFocusedCell({rowIndex:n,column:e,rowPinned:t(r),forceBrowserFocus:!0}),this.rangeService){var a={rowIndex:n,rowPinned:r,column:e};this.rangeService.setRangeToCell(a)}return!0},o.prototype.focusNextGridCoreContainer=function(t){return!!this.gridCtrl.focusNextInnerContainer(t)||(t||this.gridCtrl.isDetailGrid()||this.gridCtrl.forceFocusOutOfContainer(),!1)},o.AG_KEYBOARD_FOCUS="ag-keyboard-focus",o.keyboardModeActive=!1,o.instancesMonitored=new Map,Vd([U("eGridDiv")],o.prototype,"eGridDiv",void 0),Vd([U("columnModel")],o.prototype,"columnModel",void 0),Vd([U("headerNavigationService")],o.prototype,"headerNavigationService",void 0),Vd([U("rowRenderer")],o.prototype,"rowRenderer",void 0),Vd([U("rowPositionUtils")],o.prototype,"rowPositionUtils",void 0),Vd([z("rangeService")],o.prototype,"rangeService",void 0),Vd([U("navigationService")],o.prototype,"navigationService",void 0),Vd([U("ctrlsService")],o.prototype,"ctrlsService",void 0),Vd([B],o.prototype,"init",null),o=i=Vd([W("focusService")],o)}(Mt),Wd=function(){var t=function(e,o){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])})(e,o)};return function(e,o){function i(){this.constructor=e}t(e,o),e.prototype=null===o?Object.create(o):(i.prototype=o.prototype,new i)}}(),Ud=function(t,e,o,i){var n,r=arguments.length,s=r<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,o):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,o,i);else for(var a=t.length-1;a>=0;a--)(n=t[a])&&(s=(r<3?n(s):r>3?n(e,o,s):n(e,o))||s);return r>3&&s&&Object.defineProperty(e,o,s),s},zd=function(t,e){var o="function"==typeof Symbol&&t[Symbol.iterator];if(!o)return t;var i,n,r=o.call(t),s=[];try{for(;(void 0===e||e-- >0)&&!(i=r.next()).done;)s.push(i.value)}catch(t){n={error:t}}finally{try{i&&!i.done&&(o=r.return)&&o.call(r)}finally{if(n)throw n.error}}return s},Kd=function(){for(var t=[],e=0;e<arguments.length;e++)t=t.concat(zd(arguments[e]));return t};
288/**
289 * @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue
290 * @version v29.2.0
291 * @link https://www.ag-grid.com/
292 * @license MIT
293 */!function(t){t[t.vertical=0]="vertical",t[t.horizontal=1]="horizontal"}(fd||(fd={}));var Yd,qd=0,Qd=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.popupList=[],e}var o;return Wd(e,t),o=e,e.prototype.postConstruct=function(){var t=this;this.ctrlsService.whenReady((function(e){t.gridCtrl=e.gridCtrl,t.addManagedListener(t.gridCtrl,kt.EVENT_KEYBOARD_FOCUS,(function(){t.popupList.forEach((function(t){return t.element.classList.add(jd.AG_KEYBOARD_FOCUS)}))})),t.addManagedListener(t.gridCtrl,kt.EVENT_MOUSE_FOCUS,(function(){t.popupList.forEach((function(t){return t.element.classList.remove(jd.AG_KEYBOARD_FOCUS)}))}))}))},e.prototype.getPopupParent=function(){var t=this.gridOptionsService.get("popupParent");return t||this.gridCtrl.getGui()},e.prototype.positionPopupForMenu=function(t){var e=t.eventSource.getBoundingClientRect(),o=this.getParentRect();this.checkClearMaxHeight(t.ePopup,t.shouldSetMaxHeight);var i=this.keepXYWithinBounds(t.ePopup,e.top-o.top,fd.vertical),n=t.ePopup.clientWidth>0?t.ePopup.clientWidth:200;t.ePopup.style.minWidth=n+"px";var r,s=o.right-o.left-n;function a(){return e.right-o.left-2}function l(){return e.left-o.left-n}this.gridOptionsService.is("enableRtl")?((r=l())<0&&(r=a()),r>s&&(r=0)):((r=a())>s&&(r=l()),r<0&&(r=0)),t.ePopup.style.left=r+"px",t.ePopup.style.top=i+"px",this.checkSetMaxHeight(t.ePopup,i,t.shouldSetMaxHeight)},e.prototype.positionPopupUnderMouseEvent=function(t){var e=this,o=t.ePopup,i=t.nudgeX,n=t.nudgeY,r=t.skipObserver,s=t.shouldSetMaxHeight;this.positionPopup({ePopup:o,nudgeX:i,nudgeY:n,keepWithinBounds:!0,skipObserver:r,shouldSetMaxHeight:s,updatePosition:function(){return e.calculatePointerAlign(t.mouseEvent)},postProcessCallback:function(){return e.callPostProcessPopup(t.type,t.ePopup,null,t.mouseEvent,t.column,t.rowNode)}})},e.prototype.calculatePointerAlign=function(t){var e=this.getParentRect();return{x:t.clientX-e.left,y:t.clientY-e.top}},e.prototype.positionPopupByComponent=function(t){var e=this,o=t.eventSource.getBoundingClientRect(),i=t.alignSide||"left",n=t.position||"over",r=this.getParentRect();this.positionPopup({ePopup:t.ePopup,nudgeX:t.nudgeX,nudgeY:t.nudgeY,keepWithinBounds:t.keepWithinBounds,shouldSetMaxHeight:t.shouldSetMaxHeight,updatePosition:function(){var e=o.left-r.left;return"right"===i&&(e-=t.ePopup.offsetWidth-o.width),{x:e,y:"over"===n?o.top-r.top:o.top-r.top+o.height}},postProcessCallback:function(){return e.callPostProcessPopup(t.type,t.ePopup,t.eventSource,null,t.column,t.rowNode)}})},e.prototype.callPostProcessPopup=function(t,e,o,i,n,r){var s=this.gridOptionsService.getCallback("postProcessPopup");s&&s({column:n,rowNode:r,ePopup:e,type:t,eventSource:o,mouseEvent:i})},e.prototype.positionPopup=function(t){var e=this,i=t.ePopup,n=t.keepWithinBounds,r=t.nudgeX,s=t.nudgeY,a=t.skipObserver,l=t.shouldSetMaxHeight,u=t.updatePosition,c={width:0,height:0},p=function(o){void 0===o&&(o=!1);var a=u(),p=a.x,d=a.y;o&&i.clientWidth===c.width&&i.clientHeight===c.height||(c.width=i.clientWidth,c.height=i.clientHeight,r&&(p+=r),s&&(d+=s),e.checkClearMaxHeight(i,l),n&&(p=e.keepXYWithinBounds(i,p,fd.horizontal),d=e.keepXYWithinBounds(i,d,fd.vertical)),i.style.left=p+"px",i.style.top=d+"px",e.checkSetMaxHeight(i,d,l),t.postProcessCallback&&t.postProcessCallback())};if(p(),!a){var d=this.resizeObserverService.observeResize(i,(function(){return p(!0)}));setTimeout((function(){return d()}),o.WAIT_FOR_POPUP_CONTENT_RESIZE)}},e.prototype.getActivePopups=function(){return this.popupList.map((function(t){return t.element}))},e.prototype.getPopupList=function(){return this.popupList},e.prototype.getParentRect=function(){var t=this.gridOptionsService.getDocument(),e=this.getPopupParent();e===t.body?e=t.documentElement:"static"===getComputedStyle(e).position&&(e=e.offsetParent);var o=getComputedStyle(e),i=e.getBoundingClientRect();return{top:i.top+parseFloat(o.borderTopWidth)||0,left:i.left+parseFloat(o.borderLeftWidth)||0,right:i.right+parseFloat(o.borderRightWidth)||0,bottom:i.bottom+parseFloat(o.borderBottomWidth)||0}},e.prototype.keepXYWithinBounds=function(t,e,o){var i=o===fd.vertical,n=i?"clientHeight":"clientWidth",r=i?"top":"left",s=i?"offsetHeight":"offsetWidth",a=i?"scrollTop":"scrollLeft",l=this.gridOptionsService.getDocument(),u=l.documentElement,c=this.getPopupParent(),p=c.getBoundingClientRect(),d=l.documentElement.getBoundingClientRect(),h=c===l.body,f=t[s],g=h?(i?ri:si)(u)+u[a]:c[n];h&&(g-=Math.abs(d[r]-p[r]));var v=g-f;return Math.min(Math.max(e,0),Math.abs(v))},e.prototype.keepPopupPositionedRelativeTo=function(t){var e=this,o=this.getPopupParent(),i=o.getBoundingClientRect(),n=t.element.getBoundingClientRect(),r=i.top-n.top,s=i.left-n.left,a=r,l=s,u=t.ePopup.style.top,c=parseInt(u.substring(0,u.length-1),10),p=t.ePopup.style.left,d=parseInt(p.substring(0,p.length-1),10);return new $i((function(i){e.getFrameworkOverrides().setInterval((function(){var i=o.getBoundingClientRect(),n=t.element.getBoundingClientRect();if(0==n.top&&0==n.left&&0==n.height&&0==n.width)t.hidePopup();else{var u=i.top-n.top;if(u!=a){var p=e.keepXYWithinBounds(t.ePopup,c+r-u,fd.vertical);t.ePopup.style.top=p+"px"}a=u;var h=i.left-n.left;if(h!=l){var f=e.keepXYWithinBounds(t.ePopup,d+s-h,fd.horizontal);t.ePopup.style.left=f+"px"}l=h}}),200).then((function(t){i((function(){null!=t&&window.clearInterval(t)}))}))}))},e.prototype.addPopup=function(t){var e,o=this,i=t.modal,n=t.eChild,r=t.closeOnEsc,s=t.closedCallback,a=t.click,l=t.alwaysOnTop,u=t.afterGuiAttached,c=t.positionCallback,p=t.anchorToElement,d=t.ariaLabel,h=this.gridOptionsService.getDocument(),f=new $i((function(t){return t((function(){}))}));if(!h)return console.warn("AG Grid: could not find the document, document is empty"),{hideFunc:function(){},stopAnchoringPromise:f};var g=this.popupList.findIndex((function(t){return t.element===n}));if(-1!==g){var v=this.popupList[g];return{hideFunc:v.hideFunc,stopAnchoringPromise:v.stopAnchoringPromise}}var y=this.getPopupParent();null==n.style.top&&(n.style.top="0px"),null==n.style.left&&(n.style.left="0px");var m=document.createElement("div"),C=this.environment.getTheme().allThemes;C.length&&(e=m.classList).add.apply(e,Kd(C)),m.classList.add("ag-popup"),n.classList.add(this.gridOptionsService.is("enableRtl")?"ag-rtl":"ag-ltr","ag-popup-child"),n.hasAttribute("role")||ke(n,"dialog"),Ue(n,d),this.focusService.isKeyboardMode()&&n.classList.add(jd.AG_KEYBOARD_FOCUS),m.appendChild(n),y.appendChild(m),l?this.setAlwaysOnTop(m,!0):this.bringPopupToFront(m);var w=!1,S=function(t){m.contains(h.activeElement)&&(t.key===Gi.ESCAPE&&O({keyboardEvent:t}))},E=function(t){return O({mouseEvent:t})},R=function(t){return O({touchEvent:t})},O=function(t){void 0===t&&(t={});var e=t.mouseEvent,i=t.touchEvent,r=t.keyboardEvent;o.isEventFromCurrentPopup({mouseEvent:e,touchEvent:i},n)||o.isEventSameChainAsOriginalEvent({originalMouseEvent:a,mouseEvent:e,touchEvent:i})||w||(w=!0,y.removeChild(m),h.removeEventListener("keydown",S),h.removeEventListener("mousedown",E),h.removeEventListener("touchstart",R),h.removeEventListener("contextmenu",E),o.eventService.removeEventListener(kt.EVENT_DRAG_STARTED,E),s&&s(e||i||r),o.popupList=o.popupList.filter((function(t){return t.element!==n})),f&&f.then((function(t){return t&&t()})))};return u&&u({hidePopup:O}),window.setTimeout((function(){r&&h.addEventListener("keydown",S),i&&(h.addEventListener("mousedown",E),o.eventService.addEventListener(kt.EVENT_DRAG_STARTED,E),h.addEventListener("touchstart",R),h.addEventListener("contextmenu",E))}),0),c&&c(),p&&(f=this.keepPopupPositionedRelativeTo({element:p,ePopup:n,hidePopup:O})),this.popupList.push({element:n,wrapper:m,hideFunc:O,stopAnchoringPromise:f,instanceId:qd++,isAnchored:!!p}),{hideFunc:O,stopAnchoringPromise:f}},e.prototype.hasAnchoredPopup=function(){return this.popupList.some((function(t){return t.isAnchored}))},e.prototype.isEventFromCurrentPopup=function(t,e){var o=t.mouseEvent,i=t.touchEvent,n=o||i;if(!n)return!1;var r=this.popupList.findIndex((function(t){return t.element===e}));if(-1===r)return!1;for(var s=r;s<this.popupList.length;s++){if(Pt(this.popupList[s].element,n))return!0}return this.isElementWithinCustomPopup(n.target)},e.prototype.isElementWithinCustomPopup=function(t){for(var e=this.gridOptionsService.getDocument();t&&t!==e.body;){if(t.classList.contains("ag-custom-component-popup")||null===t.parentElement)return!0;t=t.parentElement}return!1},e.prototype.isEventSameChainAsOriginalEvent=function(t){var e=t.originalMouseEvent,o=t.mouseEvent,i=t.touchEvent,n=null;if(o?n=o:i&&(n=i.touches[0]),n&&e){var r=o?o.screenX:0,s=o?o.screenY:0,a=Math.abs(e.screenX-r)<5,l=Math.abs(e.screenY-s)<5;if(a&&l)return!0}return!1},e.prototype.getWrapper=function(t){for(;!t.classList.contains("ag-popup")&&t.parentElement;)t=t.parentElement;return t.classList.contains("ag-popup")?t:null},e.prototype.setAlwaysOnTop=function(t,e){var o=this.getWrapper(t);o&&(o.classList.toggle("ag-always-on-top",!!e),e&&this.bringPopupToFront(o))},e.prototype.bringPopupToFront=function(t){var e=this.getPopupParent(),o=Array.prototype.slice.call(e.querySelectorAll(".ag-popup")),i=o.length,n=Array.prototype.slice.call(e.querySelectorAll(".ag-popup.ag-always-on-top")),r=n.length,s=this.getWrapper(t);if(s&&!(i<=1)&&e.contains(t)){var a=o.indexOf(s),l=s.querySelectorAll("div"),u=[];if(l.forEach((function(t){0!==t.scrollTop&&u.push([t,t.scrollTop])})),r)s.classList.contains("ag-always-on-top")?a!==i-1&&ut(n).insertAdjacentElement("afterend",s):a!==i-r-1&&n[0].insertAdjacentElement("beforebegin",s);else a!==i-1&&ut(o).insertAdjacentElement("afterend",s);for(;u.length;){var c=u.pop();c[0].scrollTop=c[1]}var p={type:"popupToFront",api:this.gridOptionsService.api,columnApi:this.gridOptionsService.columnApi,eWrapper:s};this.eventService.dispatchEvent(p)}},e.prototype.checkClearMaxHeight=function(t,e){e&&t.style.removeProperty("max-height")},e.prototype.checkSetMaxHeight=function(t,e,o){o&&"100%"===getComputedStyle(t).maxHeight&&(t.style.maxHeight="calc(100% - "+e+"px)")},e.WAIT_FOR_POPUP_CONTENT_RESIZE=200,Ud([U("focusService")],e.prototype,"focusService",void 0),Ud([U("ctrlsService")],e.prototype,"ctrlsService",void 0),Ud([U("resizeObserverService")],e.prototype,"resizeObserverService",void 0),Ud([B],e.prototype,"postConstruct",null),e=o=Ud([W("popupService")],e)}(Mt),Xd=function(){var t=function(e,o){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])})(e,o)};return function(e,o){function i(){this.constructor=e}t(e,o),e.prototype=null===o?Object.create(o):(i.prototype=o.prototype,new i)}}(),Jd=function(t,e,o,i){var n,r=arguments.length,s=r<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,o):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,o,i);else for(var a=t.length-1;a>=0;a--)(n=t[a])&&(s=(r<3?n(s):r>3?n(e,o,s):n(e,o))||s);return r>3&&s&&Object.defineProperty(e,o,s),s},Zd=function(t){function e(o,i,n){void 0===o&&(o="default"),void 0===i&&(i="listbox");var r=t.call(this,e.getTemplate(o))||this;return r.cssIdentifier=o,r.ariaRole=i,r.listName=n,r.renderedRows=new Map,r.rowHeight=20,r}return Xd(e,t),e.prototype.postConstruct=function(){var t=this;this.addScrollListener(),this.rowHeight=this.getItemHeight(),this.addResizeObserver(),this.initialiseTabGuard({onFocusIn:function(e){return t.onFocusIn(e)},onFocusOut:function(e){return t.onFocusOut(e)},focusInnerElement:function(e){return t.focusInnerElement(e)},onTabKeyDown:function(e){return t.onTabKeyDown(e)},handleKeyDown:function(e){return t.handleKeyDown(e)}}),this.setAriaProperties(),this.addManagedListener(this.eventService,kt.EVENT_GRID_STYLES_CHANGED,this.onGridStylesChanged.bind(this))},e.prototype.onGridStylesChanged=function(){this.rowHeight=this.getItemHeight(),this.refresh()},e.prototype.setAriaProperties=function(){var t=this.localeService.getLocaleTextFunc()("ariaDefaultListName",this.listName||"List"),e=this.eContainer;ke(e,this.ariaRole),Ue(e,t)},e.prototype.addResizeObserver=function(){var t=this,e=this.resizeObserverService.observeResize(this.getGui(),(function(){return t.drawVirtualRows()}));this.addDestroyFunc(e)},e.prototype.focusInnerElement=function(t){this.focusRow(t?this.model.getRowCount()-1:0)},e.prototype.onFocusIn=function(t){var e=t.target;return e.classList.contains("ag-virtual-list-item")&&(this.lastFocusedRowIndex=We(e)-1),!1},e.prototype.onFocusOut=function(t){return this.getFocusableElement().contains(t.relatedTarget)||(this.lastFocusedRowIndex=null),!1},e.prototype.handleKeyDown=function(t){switch(t.key){case Gi.UP:case Gi.DOWN:this.navigate(t.key===Gi.UP)&&t.preventDefault()}},e.prototype.onTabKeyDown=function(t){this.navigate(t.shiftKey)?t.preventDefault():this.forceFocusOutOfContainer(t.shiftKey)},e.prototype.navigate=function(t){if(null==this.lastFocusedRowIndex)return!1;var e=this.lastFocusedRowIndex+(t?-1:1);return!(e<0||e>=this.model.getRowCount())&&(this.focusRow(e),!0)},e.prototype.getLastFocusedRow=function(){return this.lastFocusedRowIndex},e.prototype.focusRow=function(t){var e=this;this.ensureIndexVisible(t),window.setTimeout((function(){if(e.isAlive()){var o=e.renderedRows.get(t);o&&o.eDiv.focus()}}),10)},e.prototype.getComponentAt=function(t){var e=this.renderedRows.get(t);return e&&e.rowComponent},e.prototype.forEachRenderedRow=function(t){this.renderedRows.forEach((function(e,o){return t(e.rowComponent,o)}))},e.getTemplate=function(t){return'\n <div class="ag-virtual-list-viewport ag-'+t+'-virtual-list-viewport" role="presentation">\n <div class="ag-virtual-list-container ag-'+t+'-virtual-list-container" ref="eContainer"></div>\n </div>'},e.prototype.getItemHeight=function(){return this.environment.getListItemHeight()},e.prototype.ensureIndexVisible=function(t){var e=this.model.getRowCount();if("number"!=typeof t||t<0||t>=e)console.warn("AG Grid: invalid row index for ensureIndexVisible: "+t);else{var o=t*this.rowHeight,i=o+this.rowHeight,n=this.getGui(),r=n.scrollTop,s=n.offsetHeight,a=r+s<i;if(r>o)n.scrollTop=o;else if(a){var l=i-s;n.scrollTop=l}}},e.prototype.setComponentCreator=function(t){this.componentCreator=t},e.prototype.setComponentUpdater=function(t){this.componentUpdater=t},e.prototype.getRowHeight=function(){return this.rowHeight},e.prototype.getScrollTop=function(){return this.getGui().scrollTop},e.prototype.setRowHeight=function(t){this.rowHeight=t,this.refresh()},e.prototype.refresh=function(t){var e=this;if(null!=this.model&&this.isAlive()){var o=this.model.getRowCount();this.eContainer.style.height=o*this.rowHeight+"px",M((function(){return e.eContainer.clientHeight>=o*e.rowHeight}),(function(){e.isAlive()&&(e.canSoftRefresh(t)?e.drawVirtualRows(!0):(e.clearVirtualRows(),e.drawVirtualRows()))}))}},e.prototype.canSoftRefresh=function(t){return!!(t&&this.renderedRows.size&&"function"==typeof this.model.areRowsEqual&&this.componentUpdater)},e.prototype.clearVirtualRows=function(){var t=this;this.renderedRows.forEach((function(e,o){return t.removeRow(o)}))},e.prototype.drawVirtualRows=function(t){if(this.isAlive()){var e=this.getGui(),o=e.scrollTop,i=o+e.offsetHeight,n=Math.floor(o/this.rowHeight),r=Math.floor(i/this.rowHeight);this.ensureRowsRendered(n,r,t)}},e.prototype.ensureRowsRendered=function(t,e,o){var i=this;this.renderedRows.forEach((function(o,n){(n<t||n>e)&&n!==i.lastFocusedRowIndex&&i.removeRow(n)})),o&&this.refreshRows();for(var n=t;n<=e;n++)this.renderedRows.has(n)||n<this.model.getRowCount()&&this.insertRow(n)},e.prototype.insertRow=function(t){var e=this,o=this.model.getRow(t),i=document.createElement("div");if(i.classList.add("ag-virtual-list-item","ag-"+this.cssIdentifier+"-virtual-list-item"),ke(i,"tree"===this.ariaRole?"treeitem":"option"),to(i,this.model.getRowCount()),eo(i,t+1),i.setAttribute("tabindex","-1"),"function"==typeof this.model.isRowSelected){var n=this.model.isRowSelected(t);co(i,!!n),po(i,n)}i.style.height=this.rowHeight+"px",i.style.top=this.rowHeight*t+"px";var r=this.componentCreator(o,i);r.addGuiEventListener("focusin",(function(){return e.lastFocusedRowIndex=t})),i.appendChild(r.getGui()),this.renderedRows.has(t-1)?this.renderedRows.get(t-1).eDiv.insertAdjacentElement("afterend",i):this.renderedRows.has(t+1)?this.renderedRows.get(t+1).eDiv.insertAdjacentElement("beforebegin",i):this.eContainer.appendChild(i),this.renderedRows.set(t,{rowComponent:r,eDiv:i,value:o})},e.prototype.removeRow=function(t){var e=this.renderedRows.get(t);this.eContainer.removeChild(e.eDiv),this.destroyBean(e.rowComponent),this.renderedRows.delete(t)},e.prototype.refreshRows=function(){var t=this,e=this.model.getRowCount();this.renderedRows.forEach((function(o,i){var n,r;if(i>=e)t.removeRow(i);else{var s=t.model.getRow(i);(null===(r=(n=t.model).areRowsEqual)||void 0===r?void 0:r.call(n,o.value,s))?t.componentUpdater(s,o.rowComponent):t.removeRow(i)}}))},e.prototype.addScrollListener=function(){var t=this;this.addGuiEventListener("scroll",(function(){return t.drawVirtualRows()}),{passive:!0})},e.prototype.setModel=function(t){this.model=t},e.prototype.destroy=function(){this.isAlive()&&(this.clearVirtualRows(),t.prototype.destroy.call(this))},Jd([U("resizeObserverService")],e.prototype,"resizeObserverService",void 0),Jd([dn("eContainer")],e.prototype,"eContainer",void 0),Jd([B],e.prototype,"postConstruct",null),e}(Cd),$d=["mouseover","mouseout","mouseenter","mouseleave"],th=["touchstart","touchend","touchmove","touchcancel"],eh=function(){function t(){this.isOutsideAngular=function(t){return vt($d,t)}}return t.prototype.setTimeout=function(t,e){window.setTimeout(t,e)},t.prototype.setInterval=function(t,e){return new $i((function(o){o(window.setInterval(t,e))}))},t.prototype.addEventListener=function(t,e,o,i){var n=vt(th,e);t.addEventListener(e,o,{capture:!!i,passive:n})},t.prototype.dispatchEvent=function(t,e,o){e()},t.prototype.frameworkComponent=function(t){return null},t.prototype.isFrameworkComponent=function(t){return!1},t}(),oh=function(){var t=function(e,o){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])})(e,o)};return function(e,o){function i(){this.constructor=e}t(e,o),e.prototype=null===o?Object.create(o):(i.prototype=o.prototype,new i)}}(),ih=function(t,e,o,i){var n,r=arguments.length,s=r<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,o):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,o,i);else for(var a=t.length-1;a>=0;a--)(n=t[a])&&(s=(r<3?n(s):r>3?n(e,o,s):n(e,o))||s);return r>3&&s&&Object.defineProperty(e,o,s),s},nh=function(t,e){var o="function"==typeof Symbol&&t[Symbol.iterator];if(!o)return t;var i,n,r=o.call(t),s=[];try{for(;(void 0===e||e-- >0)&&!(i=r.next()).done;)s.push(i.value)}catch(t){n={error:t}}finally{try{i&&!i.done&&(o=r.return)&&o.call(r)}finally{if(n)throw n.error}}return s},rh=function(){for(var t=[],e=0;e<arguments.length;e++)t=t.concat(nh(arguments[e]));return t},sh=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return oh(e,t),e.prototype.getNextCellToFocus=function(t,e,o){return void 0===o&&(o=!1),o?this.getNextCellToFocusWithCtrlPressed(t,e):this.getNextCellToFocusWithoutCtrlPressed(t,e)},e.prototype.getNextCellToFocusWithCtrlPressed=function(t,e){var o,i,n=t===Gi.UP,r=t===Gi.DOWN,s=t===Gi.LEFT;if(n||r)i=n?this.paginationProxy.getPageFirstRow():this.paginationProxy.getPageLastRow(),o=e.column;else{var a=this.columnModel.getAllDisplayedColumns(),l=this.gridOptionsService.is("enableRtl");i=e.rowIndex,o=s!==l?a[0]:ut(a)}return{rowIndex:i,rowPinned:null,column:o}},e.prototype.getNextCellToFocusWithoutCtrlPressed=function(t,e){for(var o=e,i=!1;!i;){switch(t){case Gi.UP:o=this.getCellAbove(o);break;case Gi.DOWN:o=this.getCellBelow(o);break;case Gi.RIGHT:o=this.gridOptionsService.is("enableRtl")?this.getCellToLeft(o):this.getCellToRight(o);break;case Gi.LEFT:o=this.gridOptionsService.is("enableRtl")?this.getCellToRight(o):this.getCellToLeft(o);break;default:o=null,console.warn("AG Grid: unknown key for navigation "+t)}i=!o||this.isCellGoodToFocusOn(o)}return o},e.prototype.isCellGoodToFocusOn=function(t){var e,o=t.column;switch(t.rowPinned){case"top":e=this.pinnedRowModel.getPinnedTopRow(t.rowIndex);break;case"bottom":e=this.pinnedRowModel.getPinnedBottomRow(t.rowIndex);break;default:e=this.rowModel.getRow(t.rowIndex)}return!!e&&!o.isSuppressNavigable(e)},e.prototype.getCellToLeft=function(t){if(!t)return null;var e=this.columnModel.getDisplayedColBefore(t.column);return e?{rowIndex:t.rowIndex,column:e,rowPinned:t.rowPinned}:null},e.prototype.getCellToRight=function(t){if(!t)return null;var e=this.columnModel.getDisplayedColAfter(t.column);return e?{rowIndex:t.rowIndex,column:e,rowPinned:t.rowPinned}:null},e.prototype.getRowBelow=function(t){var e=t.rowIndex,o=t.rowPinned;if(this.isLastRowInContainer(t))switch(o){case"bottom":return null;case"top":return this.rowModel.isRowsToRender()?{rowIndex:this.paginationProxy.getPageFirstRow(),rowPinned:null}:this.pinnedRowModel.isRowsToRender("bottom")?{rowIndex:0,rowPinned:"bottom"}:null;default:return this.pinnedRowModel.isRowsToRender("bottom")?{rowIndex:0,rowPinned:"bottom"}:null}var i=this.rowModel.getRow(t.rowIndex),n=this.getNextStickyPosition(i);return n||{rowIndex:e+1,rowPinned:o}},e.prototype.getNextStickyPosition=function(t,e){if(this.gridOptionsService.is("groupRowsSticky")&&t&&t.sticky){var o=rh(this.rowRenderer.getStickyTopRowCtrls()).sort((function(t,e){return t.getRowNode().rowIndex-e.getRowNode().rowIndex})),i=e?-1:1,n=o.findIndex((function(e){return e.getRowNode().rowIndex===t.rowIndex})),r=o[n+i];return r?{rowIndex:r.getRowNode().rowIndex,rowPinned:null}:void 0}},e.prototype.getCellBelow=function(t){if(!t)return null;var e=this.getRowBelow(t);return e?{rowIndex:e.rowIndex,column:t.column,rowPinned:e.rowPinned}:null},e.prototype.isLastRowInContainer=function(t){var e=t.rowPinned,o=t.rowIndex;return"top"===e?this.pinnedRowModel.getPinnedTopRowData().length-1<=o:"bottom"===e?this.pinnedRowModel.getPinnedBottomRowData().length-1<=o:this.paginationProxy.getPageLastRow()<=o},e.prototype.getRowAbove=function(t){var e=t.rowIndex,o=t.rowPinned;if(o?0===e:e===this.paginationProxy.getPageFirstRow())return"top"===o?null:o&&this.rowModel.isRowsToRender()?this.getLastBodyCell():this.pinnedRowModel.isRowsToRender("top")?this.getLastFloatingTopRow():null;var i=this.rowModel.getRow(t.rowIndex),n=this.getNextStickyPosition(i,!0);return n||{rowIndex:e-1,rowPinned:o}},e.prototype.getCellAbove=function(t){if(!t)return null;var e=this.getRowAbove({rowIndex:t.rowIndex,rowPinned:t.rowPinned});return e?{rowIndex:e.rowIndex,column:t.column,rowPinned:e.rowPinned}:null},e.prototype.getLastBodyCell=function(){return{rowIndex:this.paginationProxy.getPageLastRow(),rowPinned:null}},e.prototype.getLastFloatingTopRow=function(){return{rowIndex:this.pinnedRowModel.getPinnedTopRowData().length-1,rowPinned:"top"}},e.prototype.getNextTabbedCell=function(t,e){return e?this.getNextTabbedCellBackwards(t):this.getNextTabbedCellForwards(t)},e.prototype.getNextTabbedCellForwards=function(t){var e=this.columnModel.getAllDisplayedColumns(),i=t.rowIndex,n=t.rowPinned,r=this.columnModel.getDisplayedColAfter(t.column);if(!r){r=e[0];var s=this.getRowBelow(t);if(o(s))return null;if(!s.rowPinned&&!this.paginationProxy.isRowInPage(s))return null;i=s?s.rowIndex:null,n=s?s.rowPinned:null}return{rowIndex:i,column:r,rowPinned:n}},e.prototype.getNextTabbedCellBackwards=function(t){var e=this.columnModel.getAllDisplayedColumns(),i=t.rowIndex,n=t.rowPinned,r=this.columnModel.getDisplayedColBefore(t.column);if(!r){r=ut(e);var s=this.getRowAbove({rowIndex:t.rowIndex,rowPinned:t.rowPinned});if(o(s))return null;if(!s.rowPinned&&!this.paginationProxy.isRowInPage(s))return null;i=s?s.rowIndex:null,n=s?s.rowPinned:null}return{rowIndex:i,column:r,rowPinned:n}},ih([U("columnModel")],e.prototype,"columnModel",void 0),ih([U("rowModel")],e.prototype,"rowModel",void 0),ih([U("rowRenderer")],e.prototype,"rowRenderer",void 0),ih([U("pinnedRowModel")],e.prototype,"pinnedRowModel",void 0),ih([U("paginationProxy")],e.prototype,"paginationProxy",void 0),e=ih([W("cellNavigationService")],e)}(Mt),ah=function(){var t=function(e,o){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])})(e,o)};return function(e,o){function i(){this.constructor=e}t(e,o),e.prototype=null===o?Object.create(o):(i.prototype=o.prototype,new i)}}(),lh=function(t,e,o,i){var n,r=arguments.length,s=r<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,o):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,o,i);else for(var a=t.length-1;a>=0;a--)(n=t[a])&&(s=(r<3?n(s):r>3?n(e,o,s):n(e,o))||s);return r>3&&s&&Object.defineProperty(e,o,s),s},uh=function(t,e){return function(o,i){e(o,i,t)}},ch=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.consuming=!1,e}return ah(e,t),e.prototype.setBeans=function(t){this.logger=t.create("AlignedGridsService")},e.prototype.init=function(){this.addManagedListener(this.eventService,kt.EVENT_COLUMN_MOVED,this.fireColumnEvent.bind(this)),this.addManagedListener(this.eventService,kt.EVENT_COLUMN_VISIBLE,this.fireColumnEvent.bind(this)),this.addManagedListener(this.eventService,kt.EVENT_COLUMN_PINNED,this.fireColumnEvent.bind(this)),this.addManagedListener(this.eventService,kt.EVENT_COLUMN_GROUP_OPENED,this.fireColumnEvent.bind(this)),this.addManagedListener(this.eventService,kt.EVENT_COLUMN_RESIZED,this.fireColumnEvent.bind(this)),this.addManagedListener(this.eventService,kt.EVENT_BODY_SCROLL,this.fireScrollEvent.bind(this))},e.prototype.fireEvent=function(t){if(!this.consuming){var e=this.gridOptionsService.get("alignedGrids");e&&e.forEach((function(e){if(e.api){var o=e.api.__getAlignedGridService();t(o)}}))}},e.prototype.onEvent=function(t){this.consuming=!0,t(),this.consuming=!1},e.prototype.fireColumnEvent=function(t){this.fireEvent((function(e){e.onColumnEvent(t)}))},e.prototype.fireScrollEvent=function(t){"horizontal"===t.direction&&this.fireEvent((function(e){e.onScrollEvent(t)}))},e.prototype.onScrollEvent=function(t){var e=this;this.onEvent((function(){e.ctrlsService.getGridBodyCtrl().getScrollFeature().setHorizontalScrollPosition(t.left)}))},e.prototype.getMasterColumns=function(t){var e=[];return t.columns?t.columns.forEach((function(t){e.push(t)})):t.column&&e.push(t.column),e},e.prototype.getColumnIds=function(t){var e=[];return t.columns?t.columns.forEach((function(t){e.push(t.getColId())})):t.column&&e.push(t.column.getColId()),e},e.prototype.onColumnEvent=function(t){var e=this;this.onEvent((function(){switch(t.type){case kt.EVENT_COLUMN_MOVED:case kt.EVENT_COLUMN_VISIBLE:case kt.EVENT_COLUMN_PINNED:case kt.EVENT_COLUMN_RESIZED:var o=t;e.processColumnEvent(o);break;case kt.EVENT_COLUMN_GROUP_OPENED:var i=t;e.processGroupOpenedEvent(i);break;case kt.EVENT_COLUMN_PIVOT_CHANGED:console.warn("AG Grid: pivoting is not supported with aligned grids. You can only use one of these features at a time in a grid.")}}))},e.prototype.processGroupOpenedEvent=function(t){var e=t.columnGroup,o=null;if(e){var i=e.getGroupId();o=this.columnModel.getProvidedColumnGroup(i)}e&&!o||(this.logger.log("onColumnEvent-> processing "+t+" expanded = "+e.isExpanded()),this.columnModel.setColumnGroupOpened(o,e.isExpanded(),"alignedGridChanged"))},e.prototype.processColumnEvent=function(t){var e,o=this,i=t.column,n=null;if(i&&(n=this.columnModel.getPrimaryColumn(i.getColId())),!i||n){var r=this.getMasterColumns(t);switch(t.type){case kt.EVENT_COLUMN_MOVED:var s=t,a=t.columnApi.getColumnState().map((function(t){return{colId:t.colId}}));this.columnModel.applyColumnState({state:a,applyOrder:!0},"alignedGridChanged"),this.logger.log("onColumnEvent-> processing "+t.type+" toIndex = "+s.toIndex);break;case kt.EVENT_COLUMN_VISIBLE:var l=t;a=t.columnApi.getColumnState().map((function(t){return{colId:t.colId,hide:t.hide}}));this.columnModel.applyColumnState({state:a},"alignedGridChanged"),this.logger.log("onColumnEvent-> processing "+t.type+" visible = "+l.visible);break;case kt.EVENT_COLUMN_PINNED:var u=t;a=t.columnApi.getColumnState().map((function(t){return{colId:t.colId,pinned:t.pinned}}));this.columnModel.applyColumnState({state:a},"alignedGridChanged"),this.logger.log("onColumnEvent-> processing "+t.type+" pinned = "+u.pinned);break;case kt.EVENT_COLUMN_RESIZED:var c=t,p={};r.forEach((function(e){o.logger.log("onColumnEvent-> processing "+t.type+" actualWidth = "+e.getActualWidth()),p[e.getId()]={key:e.getColId(),newWidth:e.getActualWidth()}})),null===(e=c.flexColumns)||void 0===e||e.forEach((function(t){p[t.getId()]&&delete p[t.getId()]})),this.columnModel.setColumnWidths(Object.values(p),!1,c.finished,"alignedGridChanged")}var d=this.ctrlsService.getGridBodyCtrl().isVerticalScrollShowing(),h=this.gridOptionsService.get("alignedGrids");h&&h.forEach((function(t){t.api&&t.api.setAlwaysShowVerticalScroll(d)}))}},lh([U("columnModel")],e.prototype,"columnModel",void 0),lh([U("ctrlsService")],e.prototype,"ctrlsService",void 0),lh([uh(0,Y("loggerFactory"))],e.prototype,"setBeans",null),lh([B],e.prototype,"init",null),e=lh([W("alignedGridsService")],e)}(Mt),ph=function(){var t=function(e,o){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])})(e,o)};return function(e,o){function i(){this.constructor=e}t(e,o),e.prototype=null===o?Object.create(o):(i.prototype=o.prototype,new i)}}(),dh=function(){return(dh=Object.assign||function(t){for(var e,o=1,i=arguments.length;o<i;o++)for(var n in e=arguments[o])Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t}).apply(this,arguments)},hh=function(t,e,o,i){var n,r=arguments.length,s=r<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,o):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,o,i);else for(var a=t.length-1;a>=0;a--)(n=t[a])&&(s=(r<3?n(s):r>3?n(e,o,s):n(e,o))||s);return r>3&&s&&Object.defineProperty(e,o,s),s},fh=function(t,e){return function(o,i){e(o,i,t)}},gh=function(t,e){var o="function"==typeof Symbol&&t[Symbol.iterator];if(!o)return t;var i,n,r=o.call(t),s=[];try{for(;(void 0===e||e-- >0)&&!(i=r.next()).done;)s.push(i.value)}catch(t){n={error:t}}finally{try{i&&!i.done&&(o=r.return)&&o.call(r)}finally{if(n)throw n.error}}return s},vh=function(t){function o(){return null!==t&&t.apply(this,arguments)||this}return ph(o,t),o.prototype.setBeans=function(t){this.logger=t.create("selectionService"),this.reset()},o.prototype.init=function(){var t=this;this.groupSelectsChildren=this.gridOptionsService.is("groupSelectsChildren"),this.addManagedPropertyListener("groupSelectsChildren",(function(e){return t.groupSelectsChildren=e.currentValue})),this.rowSelection=this.gridOptionsService.get("rowSelection"),this.addManagedPropertyListener("rowSelection",(function(e){return t.rowSelection=e.currentValue})),this.addManagedListener(this.eventService,kt.EVENT_ROW_SELECTED,this.onRowSelected.bind(this))},o.prototype.isMultiselect=function(){return"multiple"===this.rowSelection},o.prototype.setNodeSelected=function(t){var e,o=t.newValue,i=t.clearSelection,n=t.suppressFinishActions,r=t.rangeSelect;t.event;var s=t.node,a=t.source,l=void 0===a?"api":a,u=this.groupSelectsChildren&&!0===t.groupSelectsFiltered;if(void 0===s.id)return console.warn("AG Grid: cannot select node until id for node is known"),0;if(s.rowPinned)return console.warn("AG Grid: cannot select pinned rows"),0;if(s.footer)return this.setNodeSelected(dh(dh({},t),{node:s.sibling}));var c=this.getLastSelectedNode();if(r&&c&&(c!==s&&this.isMultiselect())){var p=this.selectRange(s,c,t.newValue,l);return this.setLastSelectedNode(s),p}var d=0;u&&s.group||s.selectThisNode(o,t.event,l)&&d++;if(this.groupSelectsChildren&&(null===(e=s.childrenAfterGroup)||void 0===e?void 0:e.length)&&(d+=this.selectChildren(s,o,u,l)),!n){if(o&&(i||!this.isMultiselect())&&(d+=this.clearOtherNodes(s,l)),d>0){this.updateGroupsFromChildrenSelections(l);var h={type:kt.EVENT_SELECTION_CHANGED,source:l};this.eventService.dispatchEvent(h)}o&&this.setLastSelectedNode(s)}return d},o.prototype.selectRange=function(t,e,o,i){var n=this;void 0===o&&(o=!0);var r=this.rowModel.getNodesInRangeForSelection(t,e),s=0;r.forEach((function(e){e.group&&n.groupSelectsChildren||!1===o&&t===e||e.selectThisNode(o,void 0,i)&&s++})),this.updateGroupsFromChildrenSelections(i);var a={type:kt.EVENT_SELECTION_CHANGED,source:i};return this.eventService.dispatchEvent(a),s},o.prototype.selectChildren=function(t,e,o,i){var n=o?t.childrenAfterAggFilter:t.childrenAfterGroup;if(Xi.missing(n))return 0;for(var r=0,s=0;s<n.length;s++)r+=n[s].setSelectedParams({newValue:e,clearSelection:!1,suppressFinishActions:!0,groupSelectsFiltered:o,source:i});return r},o.prototype.setLastSelectedNode=function(t){this.lastSelectedNode=t},o.prototype.getLastSelectedNode=function(){return this.lastSelectedNode},o.prototype.getSelectedNodes=function(){var t=[];return c(this.selectedNodes,(function(e,o){o&&t.push(o)})),t},o.prototype.getSelectedRows=function(){var t=[];return c(this.selectedNodes,(function(e,o){o&&o.data&&t.push(o.data)})),t},o.prototype.getSelectionCount=function(){return Object.values(this.selectedNodes).length},o.prototype.filterFromSelection=function(t){var e={};Object.entries(this.selectedNodes).forEach((function(o){var i=gh(o,2),n=i[0],r=i[1];r&&t(r)&&(e[n]=r)})),this.selectedNodes=e},o.prototype.updateGroupsFromChildrenSelections=function(t,e){if(!this.groupSelectsChildren)return!1;if("clientSide"!==this.rowModel.getType())return!1;var o=this.rowModel.getRootNode();e||(e=new Bp(!0,o)).setInactive();var i=!1;return e.forEachChangedNodeDepthFirst((function(e){if(e!==o){var n=e.calculateSelectedFromChildren();i=e.selectThisNode(null!==n&&n,void 0,t)||i}})),i},o.prototype.clearOtherNodes=function(t,e){var o=this,i={},n=0;return c(this.selectedNodes,(function(r,s){if(s&&s.id!==t.id){var a=o.selectedNodes[s.id];n+=a.setSelectedParams({newValue:!1,clearSelection:!1,suppressFinishActions:!0,source:e}),o.groupSelectsChildren&&s.parent&&(i[s.parent.id]=s.parent)}})),c(i,(function(t,o){var i=o.calculateSelectedFromChildren();o.selectThisNode(null!==i&&i,void 0,e)})),n},o.prototype.onRowSelected=function(t){var e=t.node;this.groupSelectsChildren&&e.group||(e.isSelected()?this.selectedNodes[e.id]=e:this.selectedNodes[e.id]=void 0)},o.prototype.syncInRowNode=function(t,e){this.syncInOldRowNode(t,e),this.syncInNewRowNode(t)},o.prototype.syncInOldRowNode=function(t,o){if(e(o)&&t.id!==o.id&&o){var i=o.id;this.selectedNodes[i]==t&&(this.selectedNodes[o.id]=o)}},o.prototype.syncInNewRowNode=function(t){e(this.selectedNodes[t.id])?(t.setSelectedInitialValue(!0),this.selectedNodes[t.id]=t):t.setSelectedInitialValue(!1)},o.prototype.reset=function(){this.logger.log("reset"),this.selectedNodes={},this.lastSelectedNode=null},o.prototype.getBestCostNodeSelection=function(){if("clientSide"===this.rowModel.getType()){var t=this.rowModel.getTopLevelNodes();if(null!==t){var e=[];return function t(o){for(var i=0,n=o.length;i<n;i++){var r=o[i];if(r.isSelected())e.push(r);else{var s=r;s.group&&s.children&&t(s.children)}}}(t),e}}},o.prototype.isEmpty=function(){var t=0;return c(this.selectedNodes,(function(e,o){o&&t++})),0===t},o.prototype.deselectAllRowNodes=function(t){var e=function(t){return t.selectThisNode(!1,void 0,i)},o="clientSide"===this.rowModel.getType(),i=t.source,n=t.justFiltered,r=t.justCurrentPage;if(r||n){if(!o)return void console.error("AG Grid: selecting just filtered only works when gridOptions.rowModelType='clientSide'");this.getNodesToSelect(n,r).forEach(e)}else c(this.selectedNodes,(function(t,o){o&&e(o)})),this.reset();o&&this.groupSelectsChildren&&this.updateGroupsFromChildrenSelections(i);var s={type:kt.EVENT_SELECTION_CHANGED,source:i};this.eventService.dispatchEvent(s)},o.prototype.getSelectAllState=function(t,e){var o=this,i=0,n=0;return this.getNodesToSelect(t,e).forEach((function(t){o.groupSelectsChildren&&t.group||(t.isSelected()?i++:t.selectable&&n++)})),(0!==i||0!==n)&&(i>0&&n>0?null:i>0)},o.prototype.getNodesToSelect=function(t,e){var o=this;if(void 0===t&&(t=!1),void 0===e&&(e=!1),"clientSide"!==this.rowModel.getType())throw new Error("selectAll only available when rowModelType='clientSide', ie not "+this.rowModel.getType());var i=[];if(e)return this.paginationProxy.forEachNodeOnPage((function(t){if(t.group)if(t.expanded)o.groupSelectsChildren||i.push(t);else{var e=function(t){var o;i.push(t),(null===(o=t.childrenAfterFilter)||void 0===o?void 0:o.length)&&t.childrenAfterFilter.forEach(e)};e(t)}else i.push(t)})),i;var n=this.rowModel;return t?(n.forEachNodeAfterFilter((function(t){i.push(t)})),i):(n.forEachNode((function(t){i.push(t)})),i)},o.prototype.selectAllRowNodes=function(t){if("clientSide"!==this.rowModel.getType())throw new Error("selectAll only available when rowModelType='clientSide', ie not "+this.rowModel.getType());var e=t.source,o=t.justFiltered,i=t.justCurrentPage;this.getNodesToSelect(o,i).forEach((function(t){return t.selectThisNode(!0,void 0,e)})),"clientSide"===this.rowModel.getType()&&this.groupSelectsChildren&&this.updateGroupsFromChildrenSelections(e);var n={type:kt.EVENT_SELECTION_CHANGED,source:e};this.eventService.dispatchEvent(n)},o.prototype.getServerSideSelectionState=function(){return null},o.prototype.setServerSideSelectionState=function(t){},hh([U("rowModel")],o.prototype,"rowModel",void 0),hh([U("paginationProxy")],o.prototype,"paginationProxy",void 0),hh([fh(0,Y("loggerFactory"))],o.prototype,"setBeans",null),hh([B],o.prototype,"init",null),o=hh([W("selectionService")],o)}(Mt),yh=function(t,e,o,i){var n,r=arguments.length,s=r<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,o):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,o,i);else for(var a=t.length-1;a>=0;a--)(n=t[a])&&(s=(r<3?n(s):r>3?n(e,o,s):n(e,o))||s);return r>3&&s&&Object.defineProperty(e,o,s),s},mh=function(){function t(){}return t.prototype.sizeColumnsToFit=function(t){void 0===t&&console.error("AG Grid: missing parameter to columnApi.sizeColumnsToFit(gridWidth)"),this.columnModel.sizeColumnsToFit(t,"api")},t.prototype.setColumnGroupOpened=function(t,e){this.columnModel.setColumnGroupOpened(t,e,"api")},t.prototype.getColumnGroup=function(t,e){return this.columnModel.getColumnGroup(t,e)},t.prototype.getProvidedColumnGroup=function(t){return this.columnModel.getProvidedColumnGroup(t)},t.prototype.getDisplayNameForColumn=function(t,e){return this.columnModel.getDisplayNameForColumn(t,e)||""},t.prototype.getDisplayNameForColumnGroup=function(t,e){return this.columnModel.getDisplayNameForColumnGroup(t,e)||""},t.prototype.getColumn=function(t){return this.columnModel.getPrimaryColumn(t)},t.prototype.getColumns=function(){return this.columnModel.getAllPrimaryColumns()},t.prototype.applyColumnState=function(t){return this.columnModel.applyColumnState(t,"api")},t.prototype.getColumnState=function(){return this.columnModel.getColumnState()},t.prototype.resetColumnState=function(){this.columnModel.resetColumnState("api")},t.prototype.getColumnGroupState=function(){return this.columnModel.getColumnGroupState()},t.prototype.setColumnGroupState=function(t){this.columnModel.setColumnGroupState(t,"api")},t.prototype.resetColumnGroupState=function(){this.columnModel.resetColumnGroupState("api")},t.prototype.isPinning=function(){return this.columnModel.isPinningLeft()||this.columnModel.isPinningRight()},t.prototype.isPinningLeft=function(){return this.columnModel.isPinningLeft()},t.prototype.isPinningRight=function(){return this.columnModel.isPinningRight()},t.prototype.getDisplayedColAfter=function(t){return this.columnModel.getDisplayedColAfter(t)},t.prototype.getDisplayedColBefore=function(t){return this.columnModel.getDisplayedColBefore(t)},t.prototype.setColumnVisible=function(t,e){this.columnModel.setColumnVisible(t,e,"api")},t.prototype.setColumnsVisible=function(t,e){this.columnModel.setColumnsVisible(t,e,"api")},t.prototype.setColumnPinned=function(t,e){this.columnModel.setColumnPinned(t,e,"api")},t.prototype.setColumnsPinned=function(t,e){this.columnModel.setColumnsPinned(t,e,"api")},t.prototype.getAllGridColumns=function(){return this.columnModel.getAllGridColumns()},t.prototype.getDisplayedLeftColumns=function(){return this.columnModel.getDisplayedLeftColumns()},t.prototype.getDisplayedCenterColumns=function(){return this.columnModel.getDisplayedCenterColumns()},t.prototype.getDisplayedRightColumns=function(){return this.columnModel.getDisplayedRightColumns()},t.prototype.getAllDisplayedColumns=function(){return this.columnModel.getAllDisplayedColumns()},t.prototype.getAllDisplayedVirtualColumns=function(){return this.columnModel.getViewportColumns()},t.prototype.moveColumn=function(t,e){this.columnModel.moveColumn(t,e,"api")},t.prototype.moveColumnByIndex=function(t,e){this.columnModel.moveColumnByIndex(t,e,"api")},t.prototype.moveColumns=function(t,e){this.columnModel.moveColumns(t,e,"api")},t.prototype.moveRowGroupColumn=function(t,e){this.columnModel.moveRowGroupColumn(t,e)},t.prototype.setColumnAggFunc=function(t,e){this.columnModel.setColumnAggFunc(t,e)},t.prototype.setColumnWidth=function(t,e,o,i){void 0===o&&(o=!0),this.columnModel.setColumnWidths([{key:t,newWidth:e}],!1,o,i)},t.prototype.setColumnWidths=function(t,e,o){void 0===e&&(e=!0),this.columnModel.setColumnWidths(t,!1,e,o)},t.prototype.setPivotMode=function(t){this.columnModel.setPivotMode(t)},t.prototype.isPivotMode=function(){return this.columnModel.isPivotMode()},t.prototype.getPivotResultColumn=function(t,e){return this.columnModel.getSecondaryPivotColumn(t,e)},t.prototype.setValueColumns=function(t){this.columnModel.setValueColumns(t,"api")},t.prototype.getValueColumns=function(){return this.columnModel.getValueColumns()},t.prototype.removeValueColumn=function(t){this.columnModel.removeValueColumn(t,"api")},t.prototype.removeValueColumns=function(t){this.columnModel.removeValueColumns(t,"api")},t.prototype.addValueColumn=function(t){this.columnModel.addValueColumn(t,"api")},t.prototype.addValueColumns=function(t){this.columnModel.addValueColumns(t,"api")},t.prototype.setRowGroupColumns=function(t){this.columnModel.setRowGroupColumns(t,"api")},t.prototype.removeRowGroupColumn=function(t){this.columnModel.removeRowGroupColumn(t,"api")},t.prototype.removeRowGroupColumns=function(t){this.columnModel.removeRowGroupColumns(t,"api")},t.prototype.addRowGroupColumn=function(t){this.columnModel.addRowGroupColumn(t,"api")},t.prototype.addRowGroupColumns=function(t){this.columnModel.addRowGroupColumns(t,"api")},t.prototype.getRowGroupColumns=function(){return this.columnModel.getRowGroupColumns()},t.prototype.setPivotColumns=function(t){this.columnModel.setPivotColumns(t,"api")},t.prototype.removePivotColumn=function(t){this.columnModel.removePivotColumn(t,"api")},t.prototype.removePivotColumns=function(t){this.columnModel.removePivotColumns(t,"api")},t.prototype.addPivotColumn=function(t){this.columnModel.addPivotColumn(t,"api")},t.prototype.addPivotColumns=function(t){this.columnModel.addPivotColumns(t,"api")},t.prototype.getPivotColumns=function(){return this.columnModel.getPivotColumns()},t.prototype.getLeftDisplayedColumnGroups=function(){return this.columnModel.getDisplayedTreeLeft()},t.prototype.getCenterDisplayedColumnGroups=function(){return this.columnModel.getDisplayedTreeCentre()},t.prototype.getRightDisplayedColumnGroups=function(){return this.columnModel.getDisplayedTreeRight()},t.prototype.getAllDisplayedColumnGroups=function(){return this.columnModel.getAllDisplayedTrees()},t.prototype.autoSizeColumn=function(t,e){return this.columnModel.autoSizeColumn(t,e,"api")},t.prototype.autoSizeColumns=function(t,e){this.columnModel.autoSizeColumns({columns:t,skipHeader:e})},t.prototype.autoSizeAllColumns=function(t){this.columnModel.autoSizeAllColumns(t,"api")},t.prototype.setPivotResultColumns=function(t){this.columnModel.setSecondaryColumns(t,"api")},t.prototype.getPivotResultColumns=function(){return this.columnModel.getSecondaryColumns()},t.prototype.cleanDownReferencesToAvoidMemoryLeakInCaseApplicationIsKeepingReferenceToDestroyedGrid=function(){setTimeout(Xi.removeAllReferences.bind(window,this,"Column API"),100)},t.prototype.getAllColumns=function(){return ee("28.0","getAllColumns","getColumns"),this.getColumns()},t.prototype.getOriginalColumnGroup=function(t){return ee("27.0","getOriginalColumnGroup","getProvidedColumnGroup"),this.columnModel.getProvidedColumnGroup(t)},t.prototype.getPrimaryColumns=function(){return ee("28.0","getPrimaryColumns","getColumns"),this.getColumns()},t.prototype.getSecondaryColumns=function(){return ee("28.0","getSecondaryColumns","getPivotResultColumns"),this.getPivotResultColumns()},t.prototype.setSecondaryColumns=function(t){ee("28.0","setSecondaryColumns","setPivotResultColumns"),this.setPivotResultColumns(t)},t.prototype.getSecondaryPivotColumn=function(t,e){return ee("28.0","getSecondaryPivotColumn","getPivotResultColumn"),this.getPivotResultColumn(t,e)},yh([U("columnModel")],t.prototype,"columnModel",void 0),yh([j],t.prototype,"cleanDownReferencesToAvoidMemoryLeakInCaseApplicationIsKeepingReferenceToDestroyedGrid",null),t=yh([W("columnApi")],t)}(),Ch=function(){var t=function(e,o){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])})(e,o)};return function(e,o){function i(){this.constructor=e}t(e,o),e.prototype=null===o?Object.create(o):(i.prototype=o.prototype,new i)}}(),wh=function(t,e,o,i){var n,r=arguments.length,s=r<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,o):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,o,i);else for(var a=t.length-1;a>=0;a--)(n=t[a])&&(s=(r<3?n(s):r>3?n(e,o,s):n(e,o))||s);return r>3&&s&&Object.defineProperty(e,o,s),s},Sh=function(t){function i(){var e=null!==t&&t.apply(this,arguments)||this;return e.initialised=!1,e}return Ch(i,t),i.prototype.init=function(){var t=this;this.cellExpressions=this.gridOptionsService.is("enableCellExpressions"),this.isTreeData=this.gridOptionsService.is("treeData"),this.initialised=!0,this.eventService.addEventListener(kt.EVENT_CELL_VALUE_CHANGED,(function(e){return t.callColumnCellValueChangedHandler(e)}),this.gridOptionsService.useAsyncEvents()),this.addManagedPropertyListener("treeData",(function(e){return t.isTreeData=e.currentValue}))},i.prototype.getValue=function(t,e,o,i){if(void 0===o&&(o=!1),void 0===i&&(i=!1),this.initialised||this.init(),e){var n,r=t.getColDef(),s=r.field,a=t.getColId(),l=e.data,u=e.groupData&&void 0!==e.groupData[a],c=!i&&e.aggData&&void 0!==e.aggData[a];if(o&&r.filterValueGetter?n=this.executeFilterValueGetter(r.filterValueGetter,l,t,e):this.isTreeData&&c?n=e.aggData[a]:this.isTreeData&&r.valueGetter?n=this.executeValueGetter(r.valueGetter,l,t,e):this.isTreeData&&s&&l?n=C(l,s,t.isFieldContainsDots()):u?n=e.groupData[a]:c?n=e.aggData[a]:r.valueGetter?n=this.executeValueGetter(r.valueGetter,l,t,e):s&&l&&(n=C(l,s,t.isFieldContainsDots())),this.cellExpressions&&"string"==typeof n&&0===n.indexOf("=")){var p=n.substring(1);n=this.executeValueGetter(p,l,t,e)}if(null==n){var d=this.getOpenedGroup(e,t);if(null!=d)return d}return n}},i.prototype.getOpenedGroup=function(t,e){if(this.gridOptionsService.is("showOpenedGroup")&&e.getColDef().showRowGroup)for(var o=e.getColDef().showRowGroup,i=t.parent;null!=i;){if(i.rowGroupColumn&&(!0===o||o===i.rowGroupColumn.getColId()))return i.key;i=i.parent}},i.prototype.setValue=function(t,i,n,r){var s=this.columnModel.getPrimaryColumn(i);if(!t||!s)return!1;o(t.data)&&(t.data={});var a=s.getColDef(),l=a.field,u=a.valueSetter;if(o(l)&&o(u))return console.warn("AG Grid: you need either field or valueSetter set on colDef for editing to work"),!1;var c,p={node:t,data:t.data,oldValue:this.getValue(s,t),newValue:n,colDef:s.getColDef(),column:s,api:this.gridOptionsService.api,columnApi:this.gridOptionsService.columnApi,context:this.gridOptionsService.context};if(p.newValue=n,void 0===(c=e(u)?"function"==typeof u?u(p):this.expressionService.evaluate(u,p):this.setValueUsingField(t.data,l,n,s.isFieldContainsDots()))&&(c=!0),!c)return!1;t.resetQuickFilterAggregateText(),this.valueCache.onDataChanged(),p.newValue=this.getValue(s,t);var d={type:kt.EVENT_CELL_VALUE_CHANGED,event:null,rowIndex:t.rowIndex,rowPinned:t.rowPinned,column:p.column,api:p.api,columnApi:p.columnApi,colDef:p.colDef,context:p.context,data:t.data,node:t,oldValue:p.oldValue,newValue:p.newValue,value:p.newValue,source:r};return this.eventService.dispatchEvent(d),!0},i.prototype.callColumnCellValueChangedHandler=function(t){var e=t.colDef.onCellValueChanged;"function"==typeof e&&e({node:t.node,data:t.data,oldValue:t.oldValue,newValue:t.newValue,colDef:t.colDef,column:t.column,api:t.api,columnApi:t.columnApi,context:t.context})},i.prototype.setValueUsingField=function(t,e,o,i){if(!e)return!1;var n=!1;if(i)for(var r=e.split("."),s=t;r.length>0&&s;){var a=r.shift();0===r.length?(n=s[a]==o)||(s[a]=o):s=s[a]}else(n=t[e]==o)||(t[e]=o);return!n},i.prototype.executeFilterValueGetter=function(t,e,o,i){var n={data:e,node:i,column:o,colDef:o.getColDef(),api:this.gridOptionsService.api,columnApi:this.gridOptionsService.columnApi,context:this.gridOptionsService.context,getValue:this.getValueCallback.bind(this,i)};return"function"==typeof t?t(n):this.expressionService.evaluate(t,n)},i.prototype.executeValueGetter=function(t,e,o,i){var n=o.getColId(),r=this.valueCache.getValue(i,n);if(void 0!==r)return r;var s,a={data:e,node:i,column:o,colDef:o.getColDef(),api:this.gridOptionsService.api,columnApi:this.gridOptionsService.columnApi,context:this.gridOptionsService.context,getValue:this.getValueCallback.bind(this,i)};return s="function"==typeof t?t(a):this.expressionService.evaluate(t,a),this.valueCache.setValue(i,n,s),s},i.prototype.getValueCallback=function(t,e){var o=this.columnModel.getPrimaryColumn(e);return o?this.getValue(o,t):null},i.prototype.getKeyForNode=function(t,e){var o=this.getValue(t,e),i=t.getColDef().keyCreator,n=o;i&&(n=i({value:o,colDef:t.getColDef(),column:t,node:e,data:e.data,api:this.gridOptionsService.api,columnApi:this.gridOptionsService.columnApi,context:this.gridOptionsService.context}));return"string"==typeof n||null==n||"[object Object]"===(n=String(n))&&O((function(){console.warn("AG Grid: a column you are grouping or pivoting by has objects as values. If you want to group by complex objects then either a) use a colDef.keyCreator (se AG Grid docs) or b) to toString() on the object to return a key")}),"getKeyForNode - warn about [object,object]"),n},wh([U("expressionService")],i.prototype,"expressionService",void 0),wh([U("columnModel")],i.prototype,"columnModel",void 0),wh([U("valueCache")],i.prototype,"valueCache",void 0),wh([B],i.prototype,"init",null),i=wh([W("valueService")],i)}(Mt),Eh=function(){var t=function(e,o){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])})(e,o)};return function(e,o){function i(){this.constructor=e}t(e,o),e.prototype=null===o?Object.create(o):(i.prototype=o.prototype,new i)}}(),Rh=function(t,e,o,i){var n,r=arguments.length,s=r<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,o):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,o,i);else for(var a=t.length-1;a>=0;a--)(n=t[a])&&(s=(r<3?n(s):r>3?n(e,o,s):n(e,o))||s);return r>3&&s&&Object.defineProperty(e,o,s),s},Oh=function(t,e){return function(o,i){e(o,i,t)}},bh=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.expressionToFunctionCache={},e}return Eh(e,t),e.prototype.setBeans=function(t){this.logger=t.create("ExpressionService")},e.prototype.evaluate=function(t,e){if("string"==typeof t)return this.evaluateExpression(t,e);console.error("AG Grid: value should be either a string or a function",t)},e.prototype.evaluateExpression=function(t,e){try{return this.createExpressionFunction(t)(e.value,e.context,e.oldValue,e.newValue,e.value,e.node,e.data,e.colDef,e.rowIndex,e.api,e.columnApi,e.getValue,e.column,e.columnGroup)}catch(o){return console.log("Processing of the expression failed"),console.log("Expression = "+t),console.log("Params =",e),console.log("Exception = "+o),null}},e.prototype.createExpressionFunction=function(t){if(this.expressionToFunctionCache[t])return this.expressionToFunctionCache[t];var e=this.createFunctionBody(t),o=new Function("x, ctx, oldValue, newValue, value, node, data, colDef, rowIndex, api, columnApi, getValue, column, columnGroup",e);return this.expressionToFunctionCache[t]=o,o},e.prototype.createFunctionBody=function(t){return t.indexOf("return")>=0?t:"return "+t+";"},Rh([Oh(0,Y("loggerFactory"))],e.prototype,"setBeans",null),e=Rh([W("expressionService")],e)}(Mt),Th=function(){var t=function(e,o){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])})(e,o)};return function(e,o){function i(){this.constructor=e}t(e,o),e.prototype=null===o?Object.create(o):(i.prototype=o.prototype,new i)}}(),Ph=function(t,e,o,i){var n,r=arguments.length,s=r<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,o):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,o,i);else for(var a=t.length-1;a>=0;a--)(n=t[a])&&(s=(r<3?n(s):r>3?n(e,o,s):n(e,o))||s);return r>3&&s&&Object.defineProperty(e,o,s),s},Dh=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.templateCache={},e.waitingCallbacks={},e}return Th(e,t),e.prototype.getTemplate=function(t,e){var o=this.templateCache[t];if(o)return o;var i=this.waitingCallbacks[t],n=this;if(!i){i=[],this.waitingCallbacks[t]=i;var r=new XMLHttpRequest;r.onload=function(){n.handleHttpResult(this,t)},r.open("GET",t),r.send()}return e&&i.push(e),null},e.prototype.handleHttpResult=function(t,e){if(200===t.status&&null!==t.response){this.templateCache[e]=t.response||t.responseText;for(var o=this.waitingCallbacks[e],i=0;i<o.length;i++){(0,o[i])()}}else console.warn("AG Grid: Unable to get template error "+t.status+" - "+e)},e=Ph([W("templateService")],e)}(Mt),_h=function(){var t=function(e,o){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])})(e,o)};return function(e,o){function i(){this.constructor=e}t(e,o),e.prototype=null===o?Object.create(o):(i.prototype=o.prototype,new i)}}(),Ah=function(t,e,o,i){var n,r=arguments.length,s=r<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,o):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,o,i);else for(var a=t.length-1;a>=0;a--)(n=t[a])&&(s=(r<3?n(s):r>3?n(e,o,s):n(e,o))||s);return r>3&&s&&Object.defineProperty(e,o,s),s},Nh=function(t,e){return function(o,i){e(o,i,t)}},Fh=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return _h(e,t),e.prototype.setBeans=function(t){this.logging=t.is("debug")},e.prototype.create=function(t){return new Lh(t,this.isLogging.bind(this))},e.prototype.isLogging=function(){return this.logging},Ah([Nh(0,Y("gridOptionsService"))],e.prototype,"setBeans",null),e=Ah([W("loggerFactory")],e)}(Mt),Lh=function(){function t(t,e){this.name=t,this.isLoggingFunc=e}return t.prototype.isLogging=function(){return this.isLoggingFunc()},t.prototype.log=function(t){this.isLoggingFunc()&&console.log("AG Grid."+this.name+": "+t)},t}(),Mh=function(){var t=function(e,o){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])})(e,o)};return function(e,o){function i(){this.constructor=e}t(e,o),e.prototype=null===o?Object.create(o):(i.prototype=o.prototype,new i)}}(),Ih=function(t,e,o,i){var n,r=arguments.length,s=r<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,o):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,o,i);else for(var a=t.length-1;a>=0;a--)(n=t[a])&&(s=(r<3?n(s):r>3?n(e,o,s):n(e,o))||s);return r>3&&s&&Object.defineProperty(e,o,s),s},Gh=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Mh(e,t),e.prototype.setComp=function(t,e,o){var i=this;this.view=t,this.eGridHostDiv=e,this.eGui=o,this.dragAndDropService.addDropTarget({getContainer:function(){return i.eGui},isInterestedIn:function(t){return t===br.HeaderCell||t===br.ToolPanel},getIconName:function(){return bs.ICON_NOT_ALLOWED}}),this.mouseEventService.stampTopLevelGridCompWithGridInstance(e),this.createManagedBean(new Ba(this.view)),this.addRtlSupport(),this.addManagedListener(this,kt.EVENT_KEYBOARD_FOCUS,(function(){i.view.addOrRemoveKeyboardFocusClass(!0)})),this.addManagedListener(this,kt.EVENT_MOUSE_FOCUS,(function(){i.view.addOrRemoveKeyboardFocusClass(!1)}));var n=this.resizeObserverService.observeResize(this.eGridHostDiv,this.onGridSizeChanged.bind(this));this.addDestroyFunc((function(){return n()})),this.ctrlsService.registerGridCtrl(this)},e.prototype.isDetailGrid=function(){var t,e=this.focusService.findTabbableParent(this.getGui());return(null===(t=null==e?void 0:e.getAttribute("row-id"))||void 0===t?void 0:t.startsWith("detail"))||!1},e.prototype.showDropZones=function(){return tt.isRegistered(Q.RowGroupingModule)},e.prototype.showSideBar=function(){return tt.isRegistered(Q.SideBarModule)},e.prototype.showStatusBar=function(){return tt.isRegistered(Q.StatusBarModule)},e.prototype.showWatermark=function(){return tt.isRegistered(Q.EnterpriseCoreModule)},e.prototype.onGridSizeChanged=function(){var t={type:kt.EVENT_GRID_SIZE_CHANGED,clientWidth:this.eGridHostDiv.clientWidth,clientHeight:this.eGridHostDiv.clientHeight};this.eventService.dispatchEvent(t)},e.prototype.addRtlSupport=function(){var t=this.gridOptionsService.is("enableRtl")?"ag-rtl":"ag-ltr";this.view.setRtlClass(t)},e.prototype.destroyGridUi=function(){this.view.destroyGridUi()},e.prototype.getGui=function(){return this.eGui},e.prototype.setResizeCursor=function(t){this.view.setCursor(t?"ew-resize":null)},e.prototype.disableUserSelect=function(t){this.view.setUserSelect(t?"none":null)},e.prototype.focusNextInnerContainer=function(t){var e=this.gridOptionsService.getDocument(),o=this.view.getFocusableContainers(),i=o.findIndex((function(t){return t.contains(e.activeElement)}))+(t?-1:1);return!(i<=0||i>=o.length)&&this.focusService.focusInto(o[i])},e.prototype.focusInnerElement=function(t){var e=this.view.getFocusableContainers();if(t){if(e.length>1)return this.focusService.focusInto(ut(e),!0);var o=ut(this.columnModel.getAllDisplayedColumns());if(this.focusService.focusGridView(o,!0))return!0}return this.focusService.focusFirstHeader()},e.prototype.forceFocusOutOfContainer=function(t){void 0===t&&(t=!1),this.view.forceFocusOutOfContainer(t)},Ih([U("focusService")],e.prototype,"focusService",void 0),Ih([U("resizeObserverService")],e.prototype,"resizeObserverService",void 0),Ih([U("columnModel")],e.prototype,"columnModel",void 0),Ih([U("ctrlsService")],e.prototype,"ctrlsService",void 0),Ih([U("mouseEventService")],e.prototype,"mouseEventService",void 0),Ih([U("dragAndDropService")],e.prototype,"dragAndDropService",void 0),e}(Mt),xh=function(){var t=function(e,o){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])})(e,o)};return function(e,o){function i(){this.constructor=e}t(e,o),e.prototype=null===o?Object.create(o):(i.prototype=o.prototype,new i)}}(),Hh=function(t,e,o,i){var n,r=arguments.length,s=r<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,o):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,o,i);else for(var a=t.length-1;a>=0;a--)(n=t[a])&&(s=(r<3?n(s):r>3?n(e,o,s):n(e,o))||s);return r>3&&s&&Object.defineProperty(e,o,s),s},Vh=function(t){function e(e){var o=t.call(this)||this;return o.eGridDiv=e,o}return xh(e,t),e.prototype.postConstruct=function(){var t=this;this.logger=this.loggerFactory.create("GridComp");var e={destroyGridUi:function(){return t.destroyBean(t)},setRtlClass:function(e){return t.addCssClass(e)},addOrRemoveKeyboardFocusClass:function(e){return t.addOrRemoveCssClass(jd.AG_KEYBOARD_FOCUS,e)},forceFocusOutOfContainer:this.forceFocusOutOfContainer.bind(this),updateLayoutClasses:this.updateLayoutClasses.bind(this),getFocusableContainers:this.getFocusableContainers.bind(this),setUserSelect:function(e){t.getGui().style.userSelect=null!=e?e:"",t.getGui().style.webkitUserSelect=null!=e?e:""},setCursor:function(e){t.getGui().style.cursor=null!=e?e:""}};this.ctrl=this.createManagedBean(new Gh);var o=this.createTemplate();this.setTemplate(o),this.ctrl.setComp(e,this.eGridDiv,this.getGui()),this.insertGridIntoDom(),this.initialiseTabGuard({onTabKeyDown:function(){},focusInnerElement:function(e){return t.ctrl.focusInnerElement(e)}})},e.prototype.insertGridIntoDom=function(){var t=this,e=this.getGui();this.eGridDiv.appendChild(e),this.addDestroyFunc((function(){t.eGridDiv.removeChild(e),t.logger.log("Grid removed from DOM")}))},e.prototype.updateLayoutClasses=function(t,e){var o=this.eRootWrapperBody.classList;o.toggle(Pa.AUTO_HEIGHT,e.autoHeight),o.toggle(Pa.NORMAL,e.normal),o.toggle(Pa.PRINT,e.print),this.addOrRemoveCssClass(Pa.AUTO_HEIGHT,e.autoHeight),this.addOrRemoveCssClass(Pa.NORMAL,e.normal),this.addOrRemoveCssClass(Pa.PRINT,e.print)},e.prototype.createTemplate=function(){return'<div class="ag-root-wrapper" role="presentation">\n '+(this.ctrl.showDropZones()?"<ag-grid-header-drop-zones></ag-grid-header-drop-zones>":"")+'\n <div class="ag-root-wrapper-body" ref="rootWrapperBody" role="presentation">\n <ag-grid-body ref="gridBody"></ag-grid-body>\n '+(this.ctrl.showSideBar()?'<ag-side-bar ref="sideBar"></ag-side-bar>':"")+"\n </div>\n "+(this.ctrl.showStatusBar()?'<ag-status-bar ref="statusBar"></ag-status-bar>':"")+"\n <ag-pagination></ag-pagination>\n "+(this.ctrl.showWatermark()?"<ag-watermark></ag-watermark>":"")+"\n </div>"},e.prototype.getFocusableElement=function(){return this.eRootWrapperBody},e.prototype.getFocusableContainers=function(){var t=[this.gridBodyComp.getGui()];return this.sideBarComp&&t.push(this.sideBarComp.getGui()),t.filter((function(t){return di(t)}))},Hh([U("loggerFactory")],e.prototype,"loggerFactory",void 0),Hh([dn("gridBody")],e.prototype,"gridBodyComp",void 0),Hh([dn("sideBar")],e.prototype,"sideBarComp",void 0),Hh([dn("rootWrapperBody")],e.prototype,"eRootWrapperBody",void 0),Hh([B],e.prototype,"postConstruct",null),e}(Cd),kh=function(){var t=function(e,o){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])})(e,o)};return function(e,o){function i(){this.constructor=e}t(e,o),e.prototype=null===o?Object.create(o):(i.prototype=o.prototype,new i)}}(),Bh=function(t,e,o,i){var n,r=arguments.length,s=r<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,o):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,o,i);else for(var a=t.length-1;a>=0;a--)(n=t[a])&&(s=(r<3?n(s):r>3?n(e,o,s):n(e,o))||s);return r>3&&s&&Object.defineProperty(e,o,s),s},jh=function(t,e){var o="function"==typeof Symbol&&t[Symbol.iterator];if(!o)return t;var i,n,r=o.call(t),s=[];try{for(;(void 0===e||e-- >0)&&!(i=r.next()).done;)s.push(i.value)}catch(t){n={error:t}}finally{try{i&&!i.done&&(o=r.return)&&o.call(r)}finally{if(n)throw n.error}}return s},Wh=function(){for(var t=[],e=0;e<arguments.length;e++)t=t.concat(jh(arguments[e]));return t},Uh=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}var o;return kh(e,t),o=e,e.prototype.progressSort=function(t,e,o){var i=this.getNextSortDirection(t);this.setSortForColumn(t,i,e,o)},e.prototype.setSortForColumn=function(t,e,o,i){"asc"!==e&&"desc"!==e&&(e=null);var n=[t];if(this.gridOptionsService.isColumnsSortingCoupledToGroup()&&t.getColDef().showRowGroup){t.getColDef().field||(n=[]);var r=this.columnModel.getSourceColumnsForGroupColumn(t),s=null==r?void 0:r.filter((function(t){return t.getColDef().sortable}));s&&(n=Wh(n,s))}n.forEach((function(t){return t.setSort(e,i)})),(o||this.gridOptionsService.is("alwaysMultiSort"))&&!this.gridOptionsService.is("suppressMultiSort")||this.clearSortBarTheseColumns(n,i),this.updateSortIndex(t),this.dispatchSortChangedEvents(i)},e.prototype.updateSortIndex=function(t){var e=this.gridOptionsService.isColumnsSortingCoupledToGroup(),o=this.columnModel.getGroupDisplayColumnForGroup(t.getId()),i=e&&o||t,n=this.getColumnsWithSortingOrdered(!0);this.columnModel.getPrimaryAndSecondaryAndAutoColumns().forEach((function(t){return t.setSortIndex(null)}));var r=n.filter((function(t){return t!==i}));(i.getSort()?Wh(r,[i]):r).forEach((function(t,e){return t.setSortIndex(e)}))},e.prototype.onSortChanged=function(t){this.dispatchSortChangedEvents(t)},e.prototype.isSortActive=function(){var t=this.columnModel.getPrimaryAndSecondaryAndAutoColumns().filter((function(t){return!!t.getSort()}));return t&&t.length>0},e.prototype.dispatchSortChangedEvents=function(t){var e={type:kt.EVENT_SORT_CHANGED,source:t};this.eventService.dispatchEvent(e)},e.prototype.clearSortBarTheseColumns=function(t,e){this.columnModel.getPrimaryAndSecondaryAndAutoColumns().forEach((function(o){t.includes(o)||o.setSort(void 0,e)}))},e.prototype.getNextSortDirection=function(t){var e;if(e=t.getColDef().sortingOrder?t.getColDef().sortingOrder:this.gridOptionsService.get("sortingOrder")?this.gridOptionsService.get("sortingOrder"):o.DEFAULT_SORTING_ORDER,!Array.isArray(e)||e.length<=0)return console.warn("AG Grid: sortingOrder must be an array with at least one element, currently it's "+e),null;var i=t.getColDef().field?t.getSort():this.getDisplaySortForColumn(t),n=e[0];if("mixed"!==i){var r=e.indexOf(i),s=r<0,a=r==e.length-1;n=s||a?e[0]:e[r+1]}return o.DEFAULT_SORTING_ORDER.indexOf(n)<0?(console.warn("AG Grid: invalid sort type "+n),null):n},e.prototype.getIndexedSortMap=function(t){var e=this;void 0===t&&(t=!1);var o=this.columnModel.getPrimaryAndSecondaryAndAutoColumns().filter((function(t){return!!t.getSort()}));!t&&this.columnModel.isPivotMode()&&(o=o.filter((function(t){return!!t.getAggFunc()||!t.isPrimary()||e.columnModel.getGroupDisplayColumnForGroup(t.getId())})));var i=this.columnModel.getRowGroupColumns().filter((function(t){return!!t.getSort()})),n=this.gridOptionsService.isColumnsSortingCoupledToGroup()&&!!i.length;n&&(o=Wh(new Set(o.map((function(t){var o;return null!==(o=e.columnModel.getGroupDisplayColumnForGroup(t.getId()))&&void 0!==o?o:t})))));var r={};o.forEach((function(t,e){return r[t.getId()]=e})),o.sort((function(t,e){var o=t.getSortIndex(),i=e.getSortIndex();return null!=o&&null!=i?o-i:null==o&&null==i?r[t.getId()]>r[e.getId()]?1:-1:null==i?-1:1}));var s=new Map;return o.forEach((function(t,e){return s.set(t,e)})),n&&i.forEach((function(t){var o=e.columnModel.getGroupDisplayColumnForGroup(t.getId());s.set(t,s.get(o))})),s},e.prototype.getColumnsWithSortingOrdered=function(t){return void 0===t&&(t=!1),Wh(this.getIndexedSortMap(t).entries()).sort((function(t,e){var o=jh(t,2);o[0];var i=o[1],n=jh(e,2);return n[0],i-n[1]})).map((function(t){return jh(t,1)[0]}))},e.prototype.getSortModel=function(){return this.getColumnsWithSortingOrdered(!0).map((function(t){return{sort:t.getSort(),colId:t.getId()}}))},e.prototype.getSortOptions=function(){return this.getColumnsWithSortingOrdered().map((function(t){return{sort:t.getSort(),column:t}}))},e.prototype.canColumnDisplayMixedSort=function(t){var e=this.gridOptionsService.isColumnsSortingCoupledToGroup(),o=!!t.getColDef().showRowGroup;return e&&o},e.prototype.getDisplaySortForColumn=function(t){var e=this.columnModel.getSourceColumnsForGroupColumn(t);if(!this.canColumnDisplayMixedSort(t)||!(null==e?void 0:e.length))return t.getSort();var o=!!t.getColDef().field?Wh([t],e):e,i=o[0].getSort();return o.every((function(t){return t.getSort()==i}))?i:"mixed"},e.prototype.getDisplaySortIndexForColumn=function(t){return this.getIndexedSortMap().get(t)},e.DEFAULT_SORTING_ORDER=["asc","desc",null],Bh([U("columnModel")],e.prototype,"columnModel",void 0),e=o=Bh([W("sortController")],e)}(Mt),zh=function(){var t=function(e,o){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])})(e,o)};return function(e,o){function i(){this.constructor=e}t(e,o),e.prototype=null===o?Object.create(o):(i.prototype=o.prototype,new i)}}(),Kh=function(t,e,o,i){var n,r=arguments.length,s=r<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,o):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,o,i);else for(var a=t.length-1;a>=0;a--)(n=t[a])&&(s=(r<3?n(s):r>3?n(e,o,s):n(e,o))||s);return r>3&&s&&Object.defineProperty(e,o,s),s},Yh=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return zh(e,t),e.prototype.setMouseOver=function(t){this.selectedColumns=t;var e={type:kt.EVENT_COLUMN_HOVER_CHANGED};this.eventService.dispatchEvent(e)},e.prototype.clearMouseOver=function(){this.selectedColumns=null;var t={type:kt.EVENT_COLUMN_HOVER_CHANGED};this.eventService.dispatchEvent(t)},e.prototype.isHovered=function(t){return!!this.selectedColumns&&this.selectedColumns.indexOf(t)>=0},e=Kh([W("columnHoverService")],e)}(Mt),qh=function(){var t=function(e,o){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])})(e,o)};return function(e,o){function i(){this.constructor=e}t(e,o),e.prototype=null===o?Object.create(o):(i.prototype=o.prototype,new i)}}(),Qh=function(t,e,o,i){var n,r=arguments.length,s=r<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,o):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,o,i);else for(var a=t.length-1;a>=0;a--)(n=t[a])&&(s=(r<3?n(s):r>3?n(e,o,s):n(e,o))||s);return r>3&&s&&Object.defineProperty(e,o,s),s},Xh=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.executeNextFuncs=[],e.executeLaterFuncs=[],e.active=!1,e.animationThreadCount=0,e}return qh(e,t),e.prototype.postConstruct=function(){var t=this;this.ctrlsService.whenReady((function(e){return t.gridBodyCtrl=e.gridBodyCtrl}))},e.prototype.isActive=function(){return this.active},e.prototype.start=function(){this.active||this.gridOptionsService.is("suppressColumnMoveAnimation")||this.gridOptionsService.is("enableRtl")||(this.ensureAnimationCssClassPresent(),this.active=!0)},e.prototype.finish=function(){this.active&&(this.flush(),this.active=!1)},e.prototype.executeNextVMTurn=function(t){this.active?this.executeNextFuncs.push(t):t()},e.prototype.executeLaterVMTurn=function(t){this.active?this.executeLaterFuncs.push(t):t()},e.prototype.ensureAnimationCssClassPresent=function(){var t=this;this.animationThreadCount++;var e=this.animationThreadCount;this.gridBodyCtrl.setColumnMovingCss(!0),this.executeLaterFuncs.push((function(){t.animationThreadCount===e&&t.gridBodyCtrl.setColumnMovingCss(!1)}))},e.prototype.flush=function(){var t=this.executeNextFuncs;this.executeNextFuncs=[];var e=this.executeLaterFuncs;this.executeLaterFuncs=[],0===t.length&&0===e.length||(window.setTimeout((function(){return t.forEach((function(t){return t()}))}),0),window.setTimeout((function(){return e.forEach((function(t){return t()}))}),300))},Qh([U("ctrlsService")],e.prototype,"ctrlsService",void 0),Qh([B],e.prototype,"postConstruct",null),e=Qh([W("columnAnimationService")],e)}(Mt),Jh=function(){var t=function(e,o){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])})(e,o)};return function(e,o){function i(){this.constructor=e}t(e,o),e.prototype=null===o?Object.create(o):(i.prototype=o.prototype,new i)}}(),Zh=function(t,e,o,i){var n,r=arguments.length,s=r<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,o):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,o,i);else for(var a=t.length-1;a>=0;a--)(n=t[a])&&(s=(r<3?n(s):r>3?n(e,o,s):n(e,o))||s);return r>3&&s&&Object.defineProperty(e,o,s),s},$h=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Jh(e,t),e.prototype.postConstruct=function(){var t=this;this.ctrlsService.whenReady((function(e){t.centerRowContainerCon=e.centerRowContainerCtrl,t.addManagedListener(t.eventService,kt.EVENT_BODY_HEIGHT_CHANGED,t.onBodyHeightChanged.bind(t)),t.addManagedListener(t.eventService,kt.EVENT_SCROLL_VISIBILITY_CHANGED,t.onScrollVisibilityChanged.bind(t)),t.checkPageSize()}))},e.prototype.notActive=function(){return!this.gridOptionsService.is("paginationAutoPageSize")},e.prototype.onScrollVisibilityChanged=function(){this.checkPageSize()},e.prototype.onBodyHeightChanged=function(){this.checkPageSize()},e.prototype.checkPageSize=function(){if(!this.notActive()){var t=this.gridOptionsService.getRowHeightAsNumber(),e=this.centerRowContainerCon.getViewportSizeFeature().getBodyHeight();if(e>0){var o=Math.floor(e/t);this.gridOptionsService.set("paginationPageSize",o)}}},Zh([U("ctrlsService")],e.prototype,"ctrlsService",void 0),Zh([B],e.prototype,"postConstruct",null),e=Zh([W("paginationAutoPageSizeService")],e)}(Mt),tf=function(){var t=function(e,o){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])})(e,o)};return function(e,o){function i(){this.constructor=e}t(e,o),e.prototype=null===o?Object.create(o):(i.prototype=o.prototype,new i)}}(),ef=function(t,e,o,i){var n,r=arguments.length,s=r<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,o):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,o,i);else for(var a=t.length-1;a>=0;a--)(n=t[a])&&(s=(r<3?n(s):r>3?n(e,o,s):n(e,o))||s);return r>3&&s&&Object.defineProperty(e,o,s),s},of=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.cacheVersion=0,e}return tf(e,t),e.prototype.init=function(){this.active=this.gridOptionsService.is("valueCache"),this.neverExpires=this.gridOptionsService.is("valueCacheNeverExpires")},e.prototype.onDataChanged=function(){this.neverExpires||this.expire()},e.prototype.expire=function(){this.cacheVersion++},e.prototype.setValue=function(t,e,o){this.active&&(t.__cacheVersion!==this.cacheVersion&&(t.__cacheVersion=this.cacheVersion,t.__cacheData={}),t.__cacheData[e]=o)},e.prototype.getValue=function(t,e){if(this.active&&t.__cacheVersion===this.cacheVersion)return t.__cacheData[e]},ef([B],e.prototype,"init",null),e=ef([W("valueCache")],e)}(Mt),nf=function(){var t=function(e,o){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])})(e,o)};return function(e,o){function i(){this.constructor=e}t(e,o),e.prototype=null===o?Object.create(o):(i.prototype=o.prototype,new i)}}(),rf=function(t,e,o,i){var n,r=arguments.length,s=r<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,o):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,o,i);else for(var a=t.length-1;a>=0;a--)(n=t[a])&&(s=(r<3?n(s):r>3?n(e,o,s):n(e,o))||s);return r>3&&s&&Object.defineProperty(e,o,s),s},sf=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return nf(e,t),e.prototype.init=function(){"clientSide"===this.rowModel.getType()&&(this.clientSideRowModel=this.rowModel),this.addManagedListener(this.eventService,kt.EVENT_CELL_VALUE_CHANGED,this.onCellValueChanged.bind(this))},e.prototype.onCellValueChanged=function(t){"paste"!==t.source&&this.doChangeDetection(t.node,t.column)},e.prototype.doChangeDetection=function(t,e){if(!this.gridOptionsService.is("suppressChangeDetection")){if(this.clientSideRowModel&&!t.isRowPinned()){var o=this.gridOptionsService.is("aggregateOnlyChangedColumns"),i=new Bp(o,this.clientSideRowModel.getRootNode());i.addParentNode(t.parent,[e]),this.clientSideRowModel.doAggregate(i)}this.rowRenderer.refreshCells()}},rf([U("rowModel")],e.prototype,"rowModel",void 0),rf([U("rowRenderer")],e.prototype,"rowRenderer",void 0),rf([B],e.prototype,"init",null),e=rf([W("changeDetectionService")],e)}(Mt),af=function(){var t=function(e,o){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])})(e,o)};return function(e,o){function i(){this.constructor=e}t(e,o),e.prototype=null===o?Object.create(o):(i.prototype=o.prototype,new i)}}(),lf=function(t,e,o,i){var n,r=arguments.length,s=r<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,o):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,o,i);else for(var a=t.length-1;a>=0;a--)(n=t[a])&&(s=(r<3?n(s):r>3?n(e,o,s):n(e,o))||s);return r>3&&s&&Object.defineProperty(e,o,s),s},uf=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return af(e,t),e.prototype.adaptFunction=function(t,e){var o=this.componentMetadataProvider.retrieve(t);return o&&o.functionAdapter?o.functionAdapter(e):null},e.prototype.adaptCellRendererFunction=function(t){return function(){function e(){}return e.prototype.refresh=function(t){return!1},e.prototype.getGui=function(){return this.eGui},e.prototype.init=function(e){var o=t(e),i=typeof o;this.eGui="string"!==i&&"number"!==i&&"boolean"!==i?null!=o?o:hi("<span></span>"):hi("<span>"+o+"</span>")},e}()},e.prototype.doesImplementIComponent=function(t){return!!t&&(t.prototype&&"getGui"in t.prototype)},lf([U("componentMetadataProvider")],e.prototype,"componentMetadataProvider",void 0),e=lf([W("agComponentUtils")],e)}(Mt),cf=function(){var t=function(e,o){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])})(e,o)};return function(e,o){function i(){this.constructor=e}t(e,o),e.prototype=null===o?Object.create(o):(i.prototype=o.prototype,new i)}}(),pf=function(t,e,o,i){var n,r=arguments.length,s=r<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,o):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,o,i);else for(var a=t.length-1;a>=0;a--)(n=t[a])&&(s=(r<3?n(s):r>3?n(e,o,s):n(e,o))||s);return r>3&&s&&Object.defineProperty(e,o,s),s},df=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return cf(e,t),e.prototype.postConstruct=function(){this.componentMetaData={dateComponent:{mandatoryMethodList:["getDate","setDate"],optionalMethodList:["afterGuiAttached","setInputPlaceholder","setInputAriaLabel"]},detailCellRenderer:{mandatoryMethodList:[],optionalMethodList:["refresh"],functionAdapter:this.agComponentUtils.adaptCellRendererFunction.bind(this.agComponentUtils)},headerComponent:{mandatoryMethodList:[],optionalMethodList:["refresh"]},headerGroupComponent:{mandatoryMethodList:[],optionalMethodList:[]},loadingCellRenderer:{mandatoryMethodList:[],optionalMethodList:[]},loadingOverlayComponent:{mandatoryMethodList:[],optionalMethodList:[]},noRowsOverlayComponent:{mandatoryMethodList:[],optionalMethodList:[]},floatingFilterComponent:{mandatoryMethodList:["onParentModelChanged"],optionalMethodList:["afterGuiAttached"]},floatingFilterWrapperComponent:{mandatoryMethodList:[],optionalMethodList:[]},cellRenderer:{mandatoryMethodList:[],optionalMethodList:["refresh","afterGuiAttached"],functionAdapter:this.agComponentUtils.adaptCellRendererFunction.bind(this.agComponentUtils)},cellEditor:{mandatoryMethodList:["getValue"],optionalMethodList:["isPopup","isCancelBeforeStart","isCancelAfterEnd","getPopupPosition","focusIn","focusOut","afterGuiAttached"]},innerRenderer:{mandatoryMethodList:[],optionalMethodList:["afterGuiAttached"],functionAdapter:this.agComponentUtils.adaptCellRendererFunction.bind(this.agComponentUtils)},fullWidthCellRenderer:{mandatoryMethodList:[],optionalMethodList:["refresh","afterGuiAttached"],functionAdapter:this.agComponentUtils.adaptCellRendererFunction.bind(this.agComponentUtils)},groupRowRenderer:{mandatoryMethodList:[],optionalMethodList:["afterGuiAttached"],functionAdapter:this.agComponentUtils.adaptCellRendererFunction.bind(this.agComponentUtils)},filter:{mandatoryMethodList:["isFilterActive","doesFilterPass","getModel","setModel"],optionalMethodList:["afterGuiAttached","afterGuiDetached","onNewRowsLoaded","getModelAsString","onFloatingFilterChanged","onAnyFilterChanged"]},filterComponent:{mandatoryMethodList:["isFilterActive","doesFilterPass","getModel","setModel"],optionalMethodList:["afterGuiAttached","afterGuiDetached","onNewRowsLoaded","getModelAsString","onFloatingFilterChanged","onAnyFilterChanged"]},statusPanel:{mandatoryMethodList:[],optionalMethodList:["afterGuiAttached"]},toolPanel:{mandatoryMethodList:[],optionalMethodList:["refresh","afterGuiAttached"]},tooltipComponent:{mandatoryMethodList:[],optionalMethodList:[]}}},e.prototype.retrieve=function(t){return this.componentMetaData[t]},pf([U("agComponentUtils")],e.prototype,"agComponentUtils",void 0),pf([B],e.prototype,"postConstruct",null),e=pf([W("componentMetadataProvider")],e)}(Mt),hf=function(){var t=function(e,o){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])})(e,o)};return function(e,o){function i(){this.constructor=e}t(e,o),e.prototype=null===o?Object.create(o):(i.prototype=o.prototype,new i)}}(),ff=function(t,e,o,i){var n,r=arguments.length,s=r<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,o):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,o,i);else for(var a=t.length-1;a>=0;a--)(n=t[a])&&(s=(r<3?n(s):r>3?n(e,o,s):n(e,o))||s);return r>3&&s&&Object.defineProperty(e,o,s),s},gf=function(t,e){var o="function"==typeof Symbol&&t[Symbol.iterator];if(!o)return t;var i,n,r=o.call(t),s=[];try{for(;(void 0===e||e-- >0)&&!(i=r.next()).done;)s.push(i.value)}catch(t){n={error:t}}finally{try{i&&!i.done&&(o=r.return)&&o.call(r)}finally{if(n)throw n.error}}return s},vf=function(){for(var t=[],e=0;e<arguments.length;e++)t=t.concat(gf(arguments[e]));return t},yf={"ag-theme-custom":{headerHeight:25,headerCellMinWidth:24,listItemHeight:20,rowHeight:25,chartMenuPanelWidth:220},"ag-theme-material":{headerHeight:56,headerCellMinWidth:48,listItemHeight:32,rowHeight:48,chartMenuPanelWidth:240},"ag-theme-balham":{headerHeight:32,headerCellMinWidth:24,listItemHeight:24,rowHeight:28,chartMenuPanelWidth:220},"ag-theme-alpine":{headerHeight:48,headerCellMinWidth:36,listItemHeight:24,rowHeight:42,chartMenuPanelWidth:240}},mf={headerHeight:["ag-header-row"],headerCellMinWidth:["ag-header-cell"],listItemHeight:["ag-virtual-list-item"],rowHeight:["ag-row"],chartMenuPanelWidth:["ag-chart-docked-container"]},Cf=function(t){function o(){var e=null!==t&&t.apply(this,arguments)||this;return e.calculatedSizes={},e}return hf(o,t),o.prototype.postConstruct=function(){var t,e=this,o=null!==(t=this.getTheme().el)&&void 0!==t?t:this.eGridDiv;this.mutationObserver=new MutationObserver((function(){e.calculatedSizes={},e.fireGridStylesChangedEvent()})),this.mutationObserver.observe(o||this.eGridDiv,{attributes:!0,attributeFilter:["class"]})},o.prototype.fireGridStylesChangedEvent=function(){var t={type:kt.EVENT_GRID_STYLES_CHANGED};this.eventService.dispatchEvent(t)},o.prototype.getSassVariable=function(t){var e=this.getTheme(),o=e.themeFamily,i=e.el;if(o&&0===o.indexOf("ag-theme")){this.calculatedSizes||(this.calculatedSizes={}),this.calculatedSizes[o]||(this.calculatedSizes[o]={});var n=this.calculatedSizes[o][t];return null!=n?n:(this.calculatedSizes[o][t]=this.calculateValueForSassProperty(t,o,i),this.calculatedSizes[o][t])}},o.prototype.calculateValueForSassProperty=function(t,e,o){var i,n="ag-theme-"+(e.match("material")?"material":e.match("balham")?"balham":e.match("alpine")?"alpine":"custom"),r=yf[n][t],s=this.gridOptionsService.getDocument();if(o||(o=this.eGridDiv),!mf[t])return r;var a=mf[t],l=s.createElement("div"),u=Array.from(o.classList);(i=l.classList).add.apply(i,vf([e],u)),l.style.position="absolute";var c=a.reduce((function(t,e){var o=s.createElement("div");return o.style.position="static",o.classList.add(e),t.appendChild(o),o}),l),p=0;if(s.body){s.body.appendChild(l);var d=-1!==t.toLowerCase().indexOf("height")?"height":"width";p=parseInt(window.getComputedStyle(c)[d],10),s.body.removeChild(l)}return p||r},o.prototype.isThemeDark=function(){var t=this.getTheme().theme;return!!t&&t.indexOf("dark")>=0},o.prototype.chartMenuPanelWidth=function(){return this.getSassVariable("chartMenuPanelWidth")},o.prototype.getTheme=function(){for(var t=/\bag-(material|(?:theme-([\w\-]*)))\b/g,e=this.eGridDiv,o=null,i=[];e;){if(o=t.exec(e.className)){var n=e.className.match(t);n&&(i=n);break}e=e.parentElement||void 0}if(!o)return{allThemes:i};var r=o[0];return{theme:r,el:e,themeFamily:r.replace(/-dark$/,""),allThemes:i}},o.prototype.getFromTheme=function(t,e){var o;return null!==(o=this.getSassVariable(e))&&void 0!==o?o:t},o.prototype.getDefaultRowHeight=function(){return this.getFromTheme(25,"rowHeight")},o.prototype.getListItemHeight=function(){return this.getFromTheme(20,"listItemHeight")},o.prototype.setRowHeightVariable=function(t){var e=t+"px";this.eGridDiv.style.getPropertyValue("--ag-line-height").trim()!=e&&this.eGridDiv.style.setProperty("--ag-line-height",e)},o.prototype.getMinColWidth=function(){var t=this.getFromTheme(null,"headerCellMinWidth");return e(t)?Math.max(t,10):10},o.prototype.destroy=function(){this.calculatedSizes=null,this.mutationObserver&&this.mutationObserver.disconnect(),t.prototype.destroy.call(this)},ff([U("eGridDiv")],o.prototype,"eGridDiv",void 0),ff([B],o.prototype,"postConstruct",null),o=ff([W("environment")],o)}(Mt),wf=function(){var t=function(e,o){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])})(e,o)};return function(e,o){function i(){this.constructor=e}t(e,o),e.prototype=null===o?Object.create(o):(i.prototype=o.prototype,new i)}}(),Sf=function(t,e,o,i){var n,r=arguments.length,s=r<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,o):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,o,i);else for(var a=t.length-1;a>=0;a--)(n=t[a])&&(s=(r<3?n(s):r>3?n(e,o,s):n(e,o))||s);return r>3&&s&&Object.defineProperty(e,o,s),s},Ef=function(t,e){return function(o,i){e(o,i,t)}},Rf=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.scrollY=0,e.uiBodyHeight=0,e}return wf(e,t),e.prototype.agWire=function(t){this.logger=t.create("RowContainerHeightService")},e.prototype.postConstruct=function(){this.addManagedListener(this.eventService,kt.EVENT_BODY_HEIGHT_CHANGED,this.updateOffset.bind(this)),this.maxDivHeight=Ao(),this.logger.log("maxDivHeight = "+this.maxDivHeight)},e.prototype.isStretching=function(){return this.stretching},e.prototype.getDivStretchOffset=function(){return this.divStretchOffset},e.prototype.updateOffset=function(){if(this.stretching){var t=this.ctrlsService.getGridBodyCtrl().getScrollFeature().getVScrollPosition().top,e=this.getUiBodyHeight();(t!==this.scrollY||e!==this.uiBodyHeight)&&(this.scrollY=t,this.uiBodyHeight=e,this.calculateOffset())}},e.prototype.calculateOffset=function(){this.setUiContainerHeight(this.maxDivHeight),this.pixelsToShave=this.modelHeight-this.uiContainerHeight,this.maxScrollY=this.uiContainerHeight-this.uiBodyHeight;var t=this.scrollY/this.maxScrollY,e=t*this.pixelsToShave;this.logger.log("Div Stretch Offset = "+e+" ("+this.pixelsToShave+" * "+t+")"),this.setDivStretchOffset(e)},e.prototype.setUiContainerHeight=function(t){t!==this.uiContainerHeight&&(this.uiContainerHeight=t,this.eventService.dispatchEvent({type:kt.EVENT_ROW_CONTAINER_HEIGHT_CHANGED}))},e.prototype.clearOffset=function(){this.setUiContainerHeight(this.modelHeight),this.pixelsToShave=0,this.setDivStretchOffset(0)},e.prototype.setDivStretchOffset=function(t){var e="number"==typeof t?Math.floor(t):null;this.divStretchOffset!==e&&(this.divStretchOffset=e,this.eventService.dispatchEvent({type:kt.EVENT_HEIGHT_SCALE_CHANGED}))},e.prototype.setModelHeight=function(t){this.modelHeight=t,this.stretching=null!=t&&this.maxDivHeight>0&&t>this.maxDivHeight,this.stretching?this.calculateOffset():this.clearOffset()},e.prototype.getUiContainerHeight=function(){return this.uiContainerHeight},e.prototype.getRealPixelPosition=function(t){return t-this.divStretchOffset},e.prototype.getUiBodyHeight=function(){var t=this.ctrlsService.getGridBodyCtrl().getScrollFeature().getVScrollPosition();return t.bottom-t.top},e.prototype.getScrollPositionForPixel=function(t){if(this.pixelsToShave<=0)return t;var e=t/(this.modelHeight-this.getUiBodyHeight());return this.maxScrollY*e},Sf([U("ctrlsService")],e.prototype,"ctrlsService",void 0),Sf([Ef(0,Y("loggerFactory"))],e.prototype,"agWire",null),Sf([B],e.prototype,"postConstruct",null),e=Sf([W("rowContainerHeightService")],e)}(Mt),Of=function(){var t=function(e,o){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])})(e,o)};return function(e,o){function i(){this.constructor=e}t(e,o),e.prototype=null===o?Object.create(o):(i.prototype=o.prototype,new i)}}(),bf=function(t,e,o,i){var n,r=arguments.length,s=r<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,o):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,o,i);else for(var a=t.length-1;a>=0;a--)(n=t[a])&&(s=(r<3?n(s):r>3?n(e,o,s):n(e,o))||s);return r>3&&s&&Object.defineProperty(e,o,s),s},Tf=function(t){function o(){return null!==t&&t.apply(this,arguments)||this}return Of(o,t),o.prototype.init=function(){this.groupSelectsChildren=this.gridOptionsService.is("groupSelectsChildren"),this.isRowSelectableFunc=this.gridOptionsService.get("isRowSelectable")},o.prototype.updateSelectableAfterGrouping=function(t){if(this.isRowSelectableFunc){this.recurseDown(t.childrenAfterGroup,(function(t){return t.childrenAfterGroup}))}},o.prototype.recurseDown=function(t,o){var i=this;t&&t.forEach((function(t){if(t.group){var n;if(t.hasChildren()&&i.recurseDown(o(t),o),i.groupSelectsChildren)n=e((o(t)||[]).find((function(t){return!0===t.selectable})));else n=!!i.isRowSelectableFunc&&i.isRowSelectableFunc(t);t.setRowSelectable(n)}}))},bf([B],o.prototype,"init",null),o=bf([W("selectableService")],o)}(Mt),Pf=function(){var t=function(e,o){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])})(e,o)};return function(e,o){function i(){this.constructor=e}t(e,o),e.prototype=null===o?Object.create(o):(i.prototype=o.prototype,new i)}}(),Df=function(t,e,o,i){var n,r=arguments.length,s=r<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,o):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,o,i);else for(var a=t.length-1;a>=0;a--)(n=t[a])&&(s=(r<3?n(s):r>3?n(e,o,s):n(e,o))||s);return r>3&&s&&Object.defineProperty(e,o,s),s},_f=function(t){function e(){var e=t.call(this)||this;return e.previousAndFirstButtonsDisabled=!1,e.nextButtonDisabled=!1,e.lastButtonDisabled=!1,e.areListenersSetup=!1,e}return Pf(e,t),e.prototype.postConstruct=function(){var t=this.gridOptionsService.is("enableRtl");this.setTemplate(this.getTemplate()),this.btFirst.insertAdjacentElement("afterbegin",Mi(t?"last":"first",this.gridOptionsService)),this.btPrevious.insertAdjacentElement("afterbegin",Mi(t?"next":"previous",this.gridOptionsService)),this.btNext.insertAdjacentElement("afterbegin",Mi(t?"previous":"next",this.gridOptionsService)),this.btLast.insertAdjacentElement("afterbegin",Mi(t?"first":"last",this.gridOptionsService)),this.addManagedPropertyListener("pagination",this.onPaginationChanged.bind(this)),this.addManagedPropertyListener("suppressPaginationPanel",this.onPaginationChanged.bind(this)),this.onPaginationChanged()},e.prototype.onPaginationChanged=function(){var t=this.gridOptionsService.is("pagination")&&!this.gridOptionsService.is("suppressPaginationPanel");this.setDisplayed(t),t&&(this.setupListeners(),this.enableOrDisableButtons(),this.updateRowLabels(),this.setCurrentPageLabel(),this.setTotalLabels())},e.prototype.setupListeners=function(){var t=this;this.areListenersSetup||(this.addManagedListener(this.eventService,kt.EVENT_PAGINATION_CHANGED,this.onPaginationChanged.bind(this)),[{el:this.btFirst,fn:this.onBtFirst.bind(this)},{el:this.btPrevious,fn:this.onBtPrevious.bind(this)},{el:this.btNext,fn:this.onBtNext.bind(this)},{el:this.btLast,fn:this.onBtLast.bind(this)}].forEach((function(e){var o=e.el,i=e.fn;t.addManagedListener(o,"click",i),t.addManagedListener(o,"keydown",(function(t){t.key!==Gi.ENTER&&t.key!==Gi.SPACE||(t.preventDefault(),i())}))})),this.areListenersSetup=!0)},e.prototype.onBtFirst=function(){this.previousAndFirstButtonsDisabled||this.paginationProxy.goToFirstPage()},e.prototype.setCurrentPageLabel=function(){var t=this.paginationProxy.getTotalPages()>0,e=this.paginationProxy.getCurrentPage(),o=t?e+1:0;this.lbCurrent.innerHTML=this.formatNumber(o)},e.prototype.formatNumber=function(t){var e=this.gridOptionsService.getCallback("paginationNumberFormatter");if(e)return e({value:t});var o=this.localeService.getLocaleTextFunc();return Vo(t,o("thousandSeparator",","),o("decimalSeparator","."))},e.prototype.getTemplate=function(){var t=this.localeService.getLocaleTextFunc(),e=t("page","Page"),o=t("to","to"),i=t("of","of"),n=t("firstPage","First Page"),r=t("previousPage","Previous Page"),s=t("nextPage","Next Page"),a=t("lastPage","Last Page"),l=this.getCompId();return'<div class="ag-paging-panel ag-unselectable" id="ag-'+l+'">\n <span class="ag-paging-row-summary-panel" role="status">\n <span id="ag-'+l+'-first-row" ref="lbFirstRowOnPage" class="ag-paging-row-summary-panel-number"></span>\n <span id="ag-'+l+'-to">'+o+'</span>\n <span id="ag-'+l+'-last-row" ref="lbLastRowOnPage" class="ag-paging-row-summary-panel-number"></span>\n <span id="ag-'+l+'-of">'+i+'</span>\n <span id="ag-'+l+'-row-count" ref="lbRecordCount" class="ag-paging-row-summary-panel-number"></span>\n </span>\n <span class="ag-paging-page-summary-panel" role="presentation">\n <div ref="btFirst" class="ag-paging-button" role="button" aria-label="'+n+'"></div>\n <div ref="btPrevious" class="ag-paging-button" role="button" aria-label="'+r+'"></div>\n <span class="ag-paging-description" role="status">\n <span id="ag-'+l+'-start-page">'+e+'</span>\n <span id="ag-'+l+'-start-page-number" ref="lbCurrent" class="ag-paging-number"></span>\n <span id="ag-'+l+'-of-page">'+i+'</span>\n <span id="ag-'+l+'-of-page-number" ref="lbTotal" class="ag-paging-number"></span>\n </span>\n <div ref="btNext" class="ag-paging-button" role="button" aria-label="'+s+'"></div>\n <div ref="btLast" class="ag-paging-button" role="button" aria-label="'+a+'"></div>\n </span>\n </div>'},e.prototype.onBtNext=function(){this.nextButtonDisabled||this.paginationProxy.goToNextPage()},e.prototype.onBtPrevious=function(){this.previousAndFirstButtonsDisabled||this.paginationProxy.goToPreviousPage()},e.prototype.onBtLast=function(){this.lastButtonDisabled||this.paginationProxy.goToLastPage()},e.prototype.enableOrDisableButtons=function(){var t=this.paginationProxy.getCurrentPage(),e=this.paginationProxy.isLastPageFound(),o=this.paginationProxy.getTotalPages();this.previousAndFirstButtonsDisabled=0===t,this.toggleButtonDisabled(this.btFirst,this.previousAndFirstButtonsDisabled),this.toggleButtonDisabled(this.btPrevious,this.previousAndFirstButtonsDisabled);var i=this.isZeroPagesToDisplay(),n=e&&t===o-1;this.nextButtonDisabled=n||i,this.lastButtonDisabled=!e||i||t===o-1,this.toggleButtonDisabled(this.btNext,this.nextButtonDisabled),this.toggleButtonDisabled(this.btLast,this.lastButtonDisabled)},e.prototype.toggleButtonDisabled=function(t,e){Xe(t,e),t.classList.toggle("ag-disabled",e),e?t.removeAttribute("tabindex"):t.setAttribute("tabindex","0")},e.prototype.updateRowLabels=function(){var t,e,o=this.paginationProxy.getCurrentPage(),i=this.paginationProxy.getPageSize(),n=this.paginationProxy.isLastPageFound(),r=this.paginationProxy.isLastPageFound()?this.paginationProxy.getMasterRowCount():null;this.isZeroPagesToDisplay()?t=e=0:(e=(t=i*o+1)+i-1,n&&e>r&&(e=r)),this.lbFirstRowOnPage.innerHTML=this.formatNumber(t),this.rowNodeBlockLoader.isLoading()?this.lbLastRowOnPage.innerHTML="?":this.lbLastRowOnPage.innerHTML=this.formatNumber(e)},e.prototype.isZeroPagesToDisplay=function(){var t=this.paginationProxy.isLastPageFound(),e=this.paginationProxy.getTotalPages();return t&&0===e},e.prototype.setTotalLabels=function(){var t=this.paginationProxy.isLastPageFound(),e=this.paginationProxy.getTotalPages(),o=t?this.paginationProxy.getMasterRowCount():null;if(1===o){var i=this.paginationProxy.getRow(0);if(i&&i.group&&!(i.groupData||i.aggData))return void this.setTotalLabelsToZero()}if(t)this.lbTotal.innerHTML=this.formatNumber(e),this.lbRecordCount.innerHTML=this.formatNumber(o);else{var n=this.localeService.getLocaleTextFunc()("more","more");this.lbTotal.innerHTML=n,this.lbRecordCount.innerHTML=n}},e.prototype.setTotalLabelsToZero=function(){this.lbFirstRowOnPage.innerHTML=this.formatNumber(0),this.lbCurrent.innerHTML=this.formatNumber(0),this.lbLastRowOnPage.innerHTML=this.formatNumber(0),this.lbTotal.innerHTML=this.formatNumber(0),this.lbRecordCount.innerHTML=this.formatNumber(0)},Df([U("paginationProxy")],e.prototype,"paginationProxy",void 0),Df([U("rowNodeBlockLoader")],e.prototype,"rowNodeBlockLoader",void 0),Df([dn("btFirst")],e.prototype,"btFirst",void 0),Df([dn("btPrevious")],e.prototype,"btPrevious",void 0),Df([dn("btNext")],e.prototype,"btNext",void 0),Df([dn("btLast")],e.prototype,"btLast",void 0),Df([dn("lbRecordCount")],e.prototype,"lbRecordCount",void 0),Df([dn("lbFirstRowOnPage")],e.prototype,"lbFirstRowOnPage",void 0),Df([dn("lbLastRowOnPage")],e.prototype,"lbLastRowOnPage",void 0),Df([dn("lbCurrent")],e.prototype,"lbCurrent",void 0),Df([dn("lbTotal")],e.prototype,"lbTotal",void 0),Df([B],e.prototype,"postConstruct",null),e}(cn),Af=function(){var t=function(e,o){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])})(e,o)};return function(e,o){function i(){this.constructor=e}t(e,o),e.prototype=null===o?Object.create(o):(i.prototype=o.prototype,new i)}}(),Nf=function(t,e,o,i){var n,r=arguments.length,s=r<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,o):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,o,i);else for(var a=t.length-1;a>=0;a--)(n=t[a])&&(s=(r<3?n(s):r>3?n(e,o,s):n(e,o))||s);return r>3&&s&&Object.defineProperty(e,o,s),s};!function(t){t[t.Loading=0]="Loading",t[t.NoRows=1]="NoRows"}(Yd||(Yd={}));var Ff=function(t){function e(){var o=t.call(this,e.TEMPLATE)||this;return o.inProgress=!1,o.destroyRequested=!1,o.manuallyDisplayed=!1,o}return Af(e,t),e.prototype.updateLayoutClasses=function(t,e){var o=this.eOverlayWrapper.classList;o.toggle(Pa.AUTO_HEIGHT,e.autoHeight),o.toggle(Pa.NORMAL,e.normal),o.toggle(Pa.PRINT,e.print)},e.prototype.postConstruct=function(){this.createManagedBean(new Ba(this)),this.setDisplayed(!1,{skipAriaHidden:!0}),this.addManagedListener(this.eventService,kt.EVENT_ROW_DATA_UPDATED,this.onRowDataUpdated.bind(this)),this.addManagedListener(this.eventService,kt.EVENT_NEW_COLUMNS_LOADED,this.onNewColumnsLoaded.bind(this)),this.gridOptionsService.isRowModelType("clientSide")&&!this.gridOptionsService.get("rowData")&&this.showLoadingOverlay(),this.gridApi.registerOverlayWrapperComp(this)},e.prototype.setWrapperTypeClass=function(t){var e=this.eOverlayWrapper.classList;e.toggle("ag-overlay-loading-wrapper",t===Yd.Loading),e.toggle("ag-overlay-no-rows-wrapper",t===Yd.NoRows)},e.prototype.showLoadingOverlay=function(){if(!this.gridOptionsService.is("suppressLoadingOverlay")){var t=this.userComponentFactory.getLoadingOverlayCompDetails({}).newAgStackInstance();this.showOverlay(t,Yd.Loading)}},e.prototype.showNoRowsOverlay=function(){if(!this.gridOptionsService.is("suppressNoRowsOverlay")){var t=this.userComponentFactory.getNoRowsOverlayCompDetails({}).newAgStackInstance();this.showOverlay(t,Yd.NoRows)}},e.prototype.showOverlay=function(t,e){var o=this;this.inProgress||(this.setWrapperTypeClass(e),this.destroyActiveOverlay(),this.inProgress=!0,t&&t.then((function(t){o.inProgress=!1,o.eOverlayWrapper.appendChild(t.getGui()),o.activeOverlay=t,o.destroyRequested&&(o.destroyRequested=!1,o.destroyActiveOverlay())})),this.manuallyDisplayed=this.columnModel.isReady()&&!this.paginationProxy.isEmpty(),this.setDisplayed(!0,{skipAriaHidden:!0}))},e.prototype.destroyActiveOverlay=function(){this.inProgress?this.destroyRequested=!0:this.activeOverlay&&(this.activeOverlay=this.getContext().destroyBean(this.activeOverlay),ci(this.eOverlayWrapper))},e.prototype.hideOverlay=function(){this.manuallyDisplayed=!1,this.destroyActiveOverlay(),this.setDisplayed(!1,{skipAriaHidden:!0})},e.prototype.destroy=function(){this.destroyActiveOverlay(),t.prototype.destroy.call(this)},e.prototype.showOrHideOverlay=function(){var t=this.paginationProxy.isEmpty(),e=this.gridOptionsService.is("suppressNoRowsOverlay");t&&!e?this.showNoRowsOverlay():this.hideOverlay()},e.prototype.onRowDataUpdated=function(){this.showOrHideOverlay()},e.prototype.onNewColumnsLoaded=function(){!this.columnModel.isReady()||this.paginationProxy.isEmpty()||this.manuallyDisplayed||this.hideOverlay()},e.TEMPLATE='\n <div class="ag-overlay" aria-hidden="true">\n <div class="ag-overlay-panel">\n <div class="ag-overlay-wrapper" ref="eOverlayWrapper"></div>\n </div>\n </div>',Nf([U("userComponentFactory")],e.prototype,"userComponentFactory",void 0),Nf([U("paginationProxy")],e.prototype,"paginationProxy",void 0),Nf([U("gridApi")],e.prototype,"gridApi",void 0),Nf([U("columnModel")],e.prototype,"columnModel",void 0),Nf([dn("eOverlayWrapper")],e.prototype,"eOverlayWrapper",void 0),Nf([B],e.prototype,"postConstruct",null),e}(cn),Lf=function(){var t=function(e,o){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])})(e,o)};return function(e,o){function i(){this.constructor=e}t(e,o),e.prototype=null===o?Object.create(o):(i.prototype=o.prototype,new i)}}(),Mf=function(t,e,o,i){var n,r=arguments.length,s=r<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,o):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,o,i);else for(var a=t.length-1;a>=0;a--)(n=t[a])&&(s=(r<3?n(s):r>3?n(e,o,s):n(e,o))||s);return r>3&&s&&Object.defineProperty(e,o,s),s},If=function(t){function o(){return null!==t&&t.apply(this,arguments)||this}return Lf(o,t),o.prototype.getFirstRow=function(){var t,e=0;return this.pinnedRowModel.getPinnedTopRowCount()?t="top":this.rowModel.getRowCount()?(t=null,e=this.paginationProxy.getPageFirstRow()):this.pinnedRowModel.getPinnedBottomRowCount()&&(t="bottom"),void 0===t?null:{rowIndex:e,rowPinned:t}},o.prototype.getLastRow=function(){var t,e=null,o=this.pinnedRowModel.getPinnedBottomRowCount(),i=this.pinnedRowModel.getPinnedTopRowCount();return o?(e="bottom",t=o-1):this.rowModel.getRowCount()?(e=null,t=this.paginationProxy.getPageLastRow()):i&&(e="top",t=i-1),void 0===t?null:{rowIndex:t,rowPinned:e}},o.prototype.getRowNode=function(t){switch(t.rowPinned){case"top":return this.pinnedRowModel.getPinnedTopRowData()[t.rowIndex];case"bottom":return this.pinnedRowModel.getPinnedBottomRowData()[t.rowIndex];default:return this.rowModel.getRow(t.rowIndex)}},o.prototype.sameRow=function(t,e){return!t&&!e||!(t&&!e||!t&&e)&&(t.rowIndex===e.rowIndex&&t.rowPinned==e.rowPinned)},o.prototype.before=function(t,o){switch(t.rowPinned){case"top":if("top"!==o.rowPinned)return!0;break;case"bottom":if("bottom"!==o.rowPinned)return!1;break;default:if(e(o.rowPinned))return"top"!==o.rowPinned}return t.rowIndex<o.rowIndex},o.prototype.rowMax=function(t){var e,o=this;return t.forEach((function(t){(void 0===e||o.before(e,t))&&(e=t)})),e},o.prototype.rowMin=function(t){var e,o=this;return t.forEach((function(t){(void 0===e||o.before(t,e))&&(e=t)})),e},Mf([U("rowModel")],o.prototype,"rowModel",void 0),Mf([U("pinnedRowModel")],o.prototype,"pinnedRowModel",void 0),Mf([U("paginationProxy")],o.prototype,"paginationProxy",void 0),o=Mf([W("rowPositionUtils")],o)}(Mt),Gf=function(){var t=function(e,o){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])})(e,o)};return function(e,o){function i(){this.constructor=e}t(e,o),e.prototype=null===o?Object.create(o):(i.prototype=o.prototype,new i)}}(),xf=function(t,e,o,i){var n,r=arguments.length,s=r<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,o):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,o,i);else for(var a=t.length-1;a>=0;a--)(n=t[a])&&(s=(r<3?n(s):r>3?n(e,o,s):n(e,o))||s);return r>3&&s&&Object.defineProperty(e,o,s),s},Hf=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Gf(e,t),e.prototype.createId=function(t){var e=t.rowIndex,o=t.rowPinned,i=t.column;return this.createIdFromValues({rowIndex:e,column:i,rowPinned:o})},e.prototype.createIdFromValues=function(t){var e=t.rowIndex,o=t.rowPinned;return e+"."+(null==o?"null":o)+"."+t.column.getId()},e.prototype.equals=function(t,e){var o=t.column===e.column,i=t.rowPinned===e.rowPinned,n=t.rowIndex===e.rowIndex;return o&&i&&n},e=xf([W("cellPositionUtils")],e)}(Mt),Vf=function(){var t=function(e,o){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])})(e,o)};return function(e,o){function i(){this.constructor=e}t(e,o),e.prototype=null===o?Object.create(o):(i.prototype=o.prototype,new i)}}(),kf=function(t){this.cellValueChanges=t},Bf=function(t){function e(e,o,i,n){var r=t.call(this,e)||this;return r.initialRange=o,r.finalRange=i,r.ranges=n,r}return Vf(e,t),e}(kf),jf=function(){function t(e){this.actionStack=[],this.maxStackSize=e||t.DEFAULT_STACK_SIZE,this.actionStack=new Array(this.maxStackSize)}return t.prototype.pop=function(){return this.actionStack.pop()},t.prototype.push=function(t){t.cellValueChanges&&t.cellValueChanges.length>0&&(this.actionStack.length===this.maxStackSize&&this.actionStack.shift(),this.actionStack.push(t))},t.prototype.clear=function(){this.actionStack=[]},t.prototype.getCurrentStackSize=function(){return this.actionStack.length},t.DEFAULT_STACK_SIZE=10,t}(),Wf=function(){var t=function(e,o){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])})(e,o)};return function(e,o){function i(){this.constructor=e}t(e,o),e.prototype=null===o?Object.create(o):(i.prototype=o.prototype,new i)}}(),Uf=function(){return(Uf=Object.assign||function(t){for(var e,o=1,i=arguments.length;o<i;o++)for(var n in e=arguments[o])Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t}).apply(this,arguments)},zf=function(t,e,o,i){var n,r=arguments.length,s=r<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,o):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,o,i);else for(var a=t.length-1;a>=0;a--)(n=t[a])&&(s=(r<3?n(s):r>3?n(e,o,s):n(e,o))||s);return r>3&&s&&Object.defineProperty(e,o,s),s},Kf=function(t,e){var o="function"==typeof Symbol&&t[Symbol.iterator];if(!o)return t;var i,n,r=o.call(t),s=[];try{for(;(void 0===e||e-- >0)&&!(i=r.next()).done;)s.push(i.value)}catch(t){n={error:t}}finally{try{i&&!i.done&&(o=r.return)&&o.call(r)}finally{if(n)throw n.error}}return s},Yf=function(){for(var t=[],e=0;e<arguments.length;e++)t=t.concat(Kf(arguments[e]));return t},qf=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.cellValueChanges=[],e.activeCellEdit=null,e.activeRowEdit=null,e.isPasting=!1,e.isRangeInAction=!1,e.onCellValueChanged=function(t){var o={column:t.column,rowIndex:t.rowIndex,rowPinned:t.rowPinned},i=null!==e.activeCellEdit&&e.cellPositionUtils.equals(e.activeCellEdit,o),n=null!==e.activeRowEdit&&e.rowPositionUtils.sameRow(e.activeRowEdit,o);if(i||n||e.isPasting||e.isRangeInAction){var r=t.rowPinned,s=t.rowIndex,a=t.column,l=t.oldValue,u=t.value,c={rowPinned:r,rowIndex:s,columnId:a.getColId(),newValue:u,oldValue:l};e.cellValueChanges.push(c)}},e.clearStacks=function(){e.undoStack.clear(),e.redoStack.clear()},e}return Wf(e,t),e.prototype.init=function(){var t=this;if(this.gridOptionsService.is("undoRedoCellEditing")){var e=this.gridOptionsService.getNum("undoRedoCellEditingLimit");e<=0||(this.undoStack=new jf(e),this.redoStack=new jf(e),this.addRowEditingListeners(),this.addCellEditingListeners(),this.addPasteListeners(),this.addFillListeners(),this.addCellKeyListeners(),this.addManagedListener(this.eventService,kt.EVENT_CELL_VALUE_CHANGED,this.onCellValueChanged),this.addManagedListener(this.eventService,kt.EVENT_MODEL_UPDATED,(function(e){e.keepUndoRedoStack||t.clearStacks()})),this.addManagedListener(this.eventService,kt.EVENT_COLUMN_PIVOT_MODE_CHANGED,this.clearStacks),this.addManagedListener(this.eventService,kt.EVENT_NEW_COLUMNS_LOADED,this.clearStacks),this.addManagedListener(this.eventService,kt.EVENT_COLUMN_GROUP_OPENED,this.clearStacks),this.addManagedListener(this.eventService,kt.EVENT_COLUMN_ROW_GROUP_CHANGED,this.clearStacks),this.addManagedListener(this.eventService,kt.EVENT_COLUMN_MOVED,this.clearStacks),this.addManagedListener(this.eventService,kt.EVENT_COLUMN_PINNED,this.clearStacks),this.addManagedListener(this.eventService,kt.EVENT_COLUMN_VISIBLE,this.clearStacks),this.addManagedListener(this.eventService,kt.EVENT_ROW_DRAG_END,this.clearStacks),this.ctrlsService.whenReady((function(){t.gridBodyCtrl=t.ctrlsService.getGridBodyCtrl()})))}},e.prototype.getCurrentUndoStackSize=function(){return this.undoStack?this.undoStack.getCurrentStackSize():0},e.prototype.getCurrentRedoStackSize=function(){return this.redoStack?this.redoStack.getCurrentStackSize():0},e.prototype.undo=function(t){var e={type:kt.EVENT_UNDO_STARTED,source:t};this.eventService.dispatchEvent(e);var o=this.undoRedo(this.undoStack,this.redoStack,"initialRange","oldValue","undo"),i={type:kt.EVENT_UNDO_ENDED,source:t,operationPerformed:o};this.eventService.dispatchEvent(i)},e.prototype.redo=function(t){var e={type:kt.EVENT_REDO_STARTED,source:t};this.eventService.dispatchEvent(e);var o=this.undoRedo(this.redoStack,this.undoStack,"finalRange","newValue","redo"),i={type:kt.EVENT_REDO_ENDED,source:t,operationPerformed:o};this.eventService.dispatchEvent(i)},e.prototype.undoRedo=function(t,e,o,i,n){if(!t)return!1;var r=t.pop();return!(!r||!r.cellValueChanges)&&(this.processAction(r,(function(t){return t[i]}),n),r instanceof Bf?this.processRange(r.ranges||[r[o]]):this.processCell(r.cellValueChanges),e.push(r),!0)},e.prototype.processAction=function(t,e,o){var i=this;t.cellValueChanges.forEach((function(t){var n=t.rowIndex,r=t.rowPinned,s=t.columnId,a={rowIndex:n,rowPinned:r},l=i.getRowNode(a);l.displayed&&l.setDataValue(s,e(t),o)}))},e.prototype.processRange=function(t){var e,o=this;this.rangeService.removeAllCellRanges(!0),t.forEach((function(i,n){if(i){var r=i.startRow,s=i.endRow;n===t.length-1&&(e={rowPinned:r.rowPinned,rowIndex:r.rowIndex,columnId:i.startColumn.getColId()},o.setLastFocusedCell(e));var a={rowStartIndex:r.rowIndex,rowStartPinned:r.rowPinned,rowEndIndex:s.rowIndex,rowEndPinned:s.rowPinned,columnStart:i.startColumn,columns:i.columns};o.rangeService.addCellRange(a)}}))},e.prototype.processCell=function(t){var e=t[0],o={rowIndex:e.rowIndex,rowPinned:e.rowPinned},i=this.getRowNode(o),n={rowPinned:e.rowPinned,rowIndex:i.rowIndex,columnId:e.columnId};this.setLastFocusedCell(n,!!this.rangeService)},e.prototype.setLastFocusedCell=function(t,e){var o=t.rowIndex,i=t.columnId,n=t.rowPinned,r=this.gridBodyCtrl.getScrollFeature(),s=this.columnModel.getGridColumn(i);if(s){r.ensureIndexVisible(o),r.ensureColumnVisible(s);var a={rowIndex:o,column:s,rowPinned:n};this.focusService.setFocusedCell(Uf(Uf({},a),{forceBrowserFocus:!0})),e&&this.rangeService.setRangeToCell(a)}},e.prototype.addRowEditingListeners=function(){var t=this;this.addManagedListener(this.eventService,kt.EVENT_ROW_EDITING_STARTED,(function(e){t.activeRowEdit={rowIndex:e.rowIndex,rowPinned:e.rowPinned}})),this.addManagedListener(this.eventService,kt.EVENT_ROW_EDITING_STOPPED,(function(){var e=new kf(t.cellValueChanges);t.pushActionsToUndoStack(e),t.activeRowEdit=null}))},e.prototype.addCellEditingListeners=function(){var t=this;this.addManagedListener(this.eventService,kt.EVENT_CELL_EDITING_STARTED,(function(e){t.activeCellEdit={column:e.column,rowIndex:e.rowIndex,rowPinned:e.rowPinned}})),this.addManagedListener(this.eventService,kt.EVENT_CELL_EDITING_STOPPED,(function(e){if(t.activeCellEdit=null,e.valueChanged&&!t.activeRowEdit&&!t.isPasting&&!t.isRangeInAction){var o=new kf(t.cellValueChanges);t.pushActionsToUndoStack(o)}}))},e.prototype.addPasteListeners=function(){var t=this;this.addManagedListener(this.eventService,kt.EVENT_PASTE_START,(function(){t.isPasting=!0})),this.addManagedListener(this.eventService,kt.EVENT_PASTE_END,(function(){var e=new kf(t.cellValueChanges);t.pushActionsToUndoStack(e),t.isPasting=!1}))},e.prototype.addFillListeners=function(){var t=this;this.addManagedListener(this.eventService,kt.EVENT_FILL_START,(function(){t.isRangeInAction=!0})),this.addManagedListener(this.eventService,kt.EVENT_FILL_END,(function(e){var o=new Bf(t.cellValueChanges,e.initialRange,e.finalRange);t.pushActionsToUndoStack(o),t.isRangeInAction=!1}))},e.prototype.addCellKeyListeners=function(){var t=this;this.addManagedListener(this.eventService,kt.EVENT_KEY_SHORTCUT_CHANGED_CELL_START,(function(){t.isRangeInAction=!0})),this.addManagedListener(this.eventService,kt.EVENT_KEY_SHORTCUT_CHANGED_CELL_END,(function(){var e;e=t.rangeService&&t.gridOptionsService.isEnableRangeSelection()?new Bf(t.cellValueChanges,void 0,void 0,Yf(t.rangeService.getCellRanges())):new kf(t.cellValueChanges),t.pushActionsToUndoStack(e),t.isRangeInAction=!1}))},e.prototype.pushActionsToUndoStack=function(t){this.undoStack.push(t),this.cellValueChanges=[],this.redoStack.clear()},e.prototype.getRowNode=function(t){switch(t.rowPinned){case"top":return this.pinnedRowModel.getPinnedTopRowData()[t.rowIndex];case"bottom":return this.pinnedRowModel.getPinnedBottomRowData()[t.rowIndex];default:return this.rowModel.getRow(t.rowIndex)}},zf([U("focusService")],e.prototype,"focusService",void 0),zf([U("ctrlsService")],e.prototype,"ctrlsService",void 0),zf([U("rowModel")],e.prototype,"rowModel",void 0),zf([U("pinnedRowModel")],e.prototype,"pinnedRowModel",void 0),zf([U("cellPositionUtils")],e.prototype,"cellPositionUtils",void 0),zf([U("rowPositionUtils")],e.prototype,"rowPositionUtils",void 0),zf([U("columnModel")],e.prototype,"columnModel",void 0),zf([z("rangeService")],e.prototype,"rangeService",void 0),zf([B],e.prototype,"init",null),e=zf([W("undoRedoService")],e)}(Mt),Qf=function(){var t=function(e,o){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])})(e,o)};return function(e,o){function i(){this.constructor=e}t(e,o),e.prototype=null===o?Object.create(o):(i.prototype=o.prototype,new i)}}(),Xf=function(t,e,o,i){var n,r=arguments.length,s=r<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,o):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,o,i);else for(var a=t.length-1;a>=0;a--)(n=t[a])&&(s=(r<3?n(s):r>3?n(e,o,s):n(e,o))||s);return r>3&&s&&Object.defineProperty(e,o,s),s},Jf=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Qf(e,t),e.prototype.findHeader=function(t,e){var o,i,n;if(t.column instanceof re?(i="getDisplayedGroup"+e,o=this.columnModel[i](t.column)):(n="getDisplayedCol"+e,o=this.columnModel[n](t.column)),o){var r=t.headerRowIndex;if(this.getHeaderRowType(r)===Mu.COLUMN_GROUP){var s=o;if(s.isPadding()&&this.isAnyChildSpanningHeaderHeight(s)){var a=this.getColumnVisibleChild(s,r,e),l=a.nextFocusColumn,u=a.nextRow;l&&(o=l,r=u)}}return{column:o,headerRowIndex:r}}},e.prototype.isAnyChildSpanningHeaderHeight=function(t){return!!t&&t.getLeafColumns().some((function(t){return t.isSpanHeaderHeight()}))},e.prototype.getColumnVisibleParent=function(t,e){var o=this.getHeaderRowType(e),i=o===Mu.FLOATING_FILTER,n=o===Mu.COLUMN,r=i?t:t.getParent(),s=e-1;if(n&&this.isAnyChildSpanningHeaderHeight(t.getParent())){for(;r&&r.isPadding();)r=r.getParent(),s--;s<0&&(r=t,s=e)}return{nextFocusColumn:r,nextRow:s}},e.prototype.getColumnVisibleChild=function(t,e,o){void 0===o&&(o="After");var i=t,n=e+1;if(this.getHeaderRowType(e)===Mu.COLUMN_GROUP){var r=t.getLeafColumns(),s="After"===o?r[0]:ut(r);if(this.isAnyChildSpanningHeaderHeight(s.getParent())){i=s;for(var a=s.getParent();a&&a!==t;)a=a.getParent(),n++}else i=t.getDisplayedChildren()[0]}return{nextFocusColumn:i,nextRow:n}},e.prototype.getHeaderRowType=function(t){var e=this.ctrlsService.getHeaderRowContainerCtrl();if(e)return e.getRowType(t)},e.prototype.findColAtEdgeForHeaderRow=function(t,e){var o=this.columnModel.getAllDisplayedColumns(),i=o["start"===e?0:o.length-1];if(i){var n=this.ctrlsService.getHeaderRowContainerCtrl(i.getPinned()).getRowType(t);return n==Mu.COLUMN_GROUP?{headerRowIndex:t,column:this.columnModel.getColumnGroupAtLevel(i,t)}:{headerRowIndex:null==n?-1:t,column:i}}},Xf([U("columnModel")],e.prototype,"columnModel",void 0),Xf([U("ctrlsService")],e.prototype,"ctrlsService",void 0),e=Xf([W("headerPositionUtils")],e)}(Mt),Zf=function(t,e,o,i){var n,r=arguments.length,s=r<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,o):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,o,i);else for(var a=t.length-1;a>=0;a--)(n=t[a])&&(s=(r<3?n(s):r>3?n(e,o,s):n(e,o))||s);return r>3&&s&&Object.defineProperty(e,o,s),s},$f=function(){function t(){}return t.prototype.buildColumnDefs=function(t,e,o){var i=this,n=[],r={};return t.forEach((function(t){for(var s=!0,a=i.createDefFromColumn(t,e,o),l=t.getOriginalParent();l;){var u=null;if(l.isPadding())l=l.getOriginalParent();else{var c=r[l.getGroupId()];if(c){c.children.push(a),s=!1;break}(u=i.createDefFromGroup(l))&&(u.children=[a],r[u.groupId]=u,a=u,l=l.getOriginalParent())}}s&&n.push(a)})),n},t.prototype.createDefFromGroup=function(t){var e=d(t.getColGroupDef(),["children"]);return e&&(e.groupId=t.getGroupId()),e},t.prototype.createDefFromColumn=function(t,e,o){var i=d(t.getColDef());return i.colId=t.getColId(),i.width=t.getActualWidth(),i.rowGroup=t.isRowGroupActive(),i.rowGroupIndex=t.isRowGroupActive()?e.indexOf(t):null,i.pivot=t.isPivotActive(),i.pivotIndex=t.isPivotActive()?o.indexOf(t):null,i.aggFunc=t.isValueActive()?t.getAggFunc():null,i.hide=!t.isVisible()||void 0,i.pinned=t.isPinned()?t.getPinned():null,i.sort=t.getSort()?t.getSort():null,i.sortIndex=null!=t.getSortIndex()?t.getSortIndex():null,i},t=Zf([W("columnDefFactory")],t)}(),tg=function(t,e,o,i){var n,r=arguments.length,s=r<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,o):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,o,i);else for(var a=t.length-1;a>=0;a--)(n=t[a])&&(s=(r<3?n(s):r>3?n(e,o,s):n(e,o))||s);return r>3&&s&&Object.defineProperty(e,o,s),s},eg=function(){function t(){}return t.prototype.getInitialRowClasses=function(t){var o=[];return e(t.extraCssClass)&&o.push(t.extraCssClass),o.push("ag-row"),o.push(t.rowFocused?"ag-row-focus":"ag-row-no-focus"),t.fadeRowIn&&o.push("ag-opacity-zero"),o.push(t.rowIsEven?"ag-row-even":"ag-row-odd"),t.rowNode.isRowPinned()&&o.push("ag-row-pinned"),t.rowNode.isSelected()&&o.push("ag-row-selected"),t.rowNode.footer&&o.push("ag-row-footer"),o.push("ag-row-level-"+t.rowLevel),t.rowNode.stub&&o.push("ag-row-loading"),t.fullWidthRow&&o.push("ag-full-width-row"),t.expandable&&(o.push("ag-row-group"),o.push(t.rowNode.expanded?"ag-row-group-expanded":"ag-row-group-contracted")),t.rowNode.dragging&&o.push("ag-row-dragging"),mt(o,this.processClassesFromGridOptions(t.rowNode)),mt(o,this.preProcessRowClassRules(t.rowNode)),o.push(t.printLayout?"ag-row-position-relative":"ag-row-position-absolute"),t.firstRowOnPage&&o.push("ag-row-first"),t.lastRowOnPage&&o.push("ag-row-last"),t.fullWidthRow&&("left"===t.pinned&&o.push("ag-cell-last-left-pinned"),"right"===t.pinned&&o.push("ag-cell-first-right-pinned")),o},t.prototype.processClassesFromGridOptions=function(t){var e=[],o=function(t){"string"==typeof t?e.push(t):Array.isArray(t)&&t.forEach((function(t){return e.push(t)}))},i=this.gridOptionsService.get("rowClass");if(i){if("function"==typeof i)return console.warn("AG Grid: rowClass should not be a function, please use getRowClass instead"),[];o(i)}var n=this.gridOptionsService.getCallback("getRowClass");n&&o(n({data:t.data,node:t,rowIndex:t.rowIndex}));return e},t.prototype.preProcessRowClassRules=function(t){var e=[];return this.processRowClassRules(t,(function(t){e.push(t)}),(function(t){})),e},t.prototype.processRowClassRules=function(t,e,o){var i={data:t.data,node:t,rowIndex:t.rowIndex,api:this.gridOptionsService.api,columnApi:this.gridOptionsService.columnApi,context:this.gridOptionsService.context};this.stylingService.processClassRules(this.gridOptionsService.get("rowClassRules"),i,e,o)},t.prototype.calculateRowLevel=function(t){return t.group?t.level:t.parent?t.parent.level+1:0},tg([U("stylingService")],t.prototype,"stylingService",void 0),tg([U("gridOptionsService")],t.prototype,"gridOptionsService",void 0),t=tg([W("rowCssClassCalculator")],t)}(),og=function(){var t=function(e,o){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])})(e,o)};return function(e,o){function i(){this.constructor=e}t(e,o),e.prototype=null===o?Object.create(o):(i.prototype=o.prototype,new i)}}(),ig=function(t,e,o,i){var n,r=arguments.length,s=r<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,o):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,o,i);else for(var a=t.length-1;a>=0;a--)(n=t[a])&&(s=(r<3?n(s):r>3?n(e,o,s):n(e,o))||s);return r>3&&s&&Object.defineProperty(e,o,s),s},ng=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return og(e,t),e.prototype.init=function(){var t=this;this.isAccentedSort=this.gridOptionsService.is("accentedSort"),this.primaryColumnsSortGroups=this.gridOptionsService.isColumnsSortingCoupledToGroup(),this.addManagedPropertyListener("accentedSort",(function(e){return t.isAccentedSort=e.currentValue})),this.addManagedPropertyListener("autoGroupColumnDef",(function(){return t.primaryColumnsSortGroups=t.gridOptionsService.isColumnsSortingCoupledToGroup()}))},e.prototype.doFullSort=function(t,e){var o=t.map((function(t,e){return{currentPos:e,rowNode:t}}));return o.sort(this.compareRowNodes.bind(this,e)),o.map((function(t){return t.rowNode}))},e.prototype.compareRowNodes=function(t,e,o){for(var i=e.rowNode,n=o.rowNode,r=0,s=t.length;r<s;r++){var a=t[r],l="desc"===a.sort,u=this.getValue(i,a.column),c=this.getValue(n,a.column),p=void 0,d=this.getComparator(a,i);if(p=d?d(u,c,i,n,l):Xi.defaultComparator(u,c,this.isAccentedSort),!isNaN(p)&&0!==p)return"asc"===a.sort?p:-1*p}return e.currentPos-o.currentPos},e.prototype.getComparator=function(t,e){var o=t.column,i=o.getColDef().comparator;if(null!=i)return i;if(o.getColDef().showRowGroup){var n=!e.group&&o.getColDef().field;if(n){var r=this.columnModel.getPrimaryColumn(n);if(r)return r.getColDef().comparator}}},e.prototype.getValue=function(t,e){var o,i;if(!this.primaryColumnsSortGroups)return this.valueService.getValue(e,t,!1,!1);if(t.rowGroupColumn===e){if(this.gridOptionsService.isGroupUseEntireRow(this.columnModel.isPivotActive())){if(e.getColDef().keyCreator)return t.key;var n=null===(o=t.allLeafChildren)||void 0===o?void 0:o[0];return n?this.valueService.getValue(e,n,!1,!1):void 0}var r=this.columnModel.getGroupDisplayColumnForGroup(e.getId());if(!r)return;return null===(i=t.groupData)||void 0===i?void 0:i[r.getId()]}return t.group&&e.getColDef().showRowGroup?void 0:this.valueService.getValue(e,t,!1,!1)},ig([U("valueService")],e.prototype,"valueService",void 0),ig([U("columnModel")],e.prototype,"columnModel",void 0),ig([B],e.prototype,"init",null),e=ig([W("rowNodeSorter")],e)}(Mt),rg=function(){var t=function(e,o){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])})(e,o)};return function(e,o){function i(){this.constructor=e}t(e,o),e.prototype=null===o?Object.create(o):(i.prototype=o.prototype,new i)}}(),sg=function(t,e,o,i){var n,r=arguments.length,s=r<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,o):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,o,i);else for(var a=t.length-1;a>=0;a--)(n=t[a])&&(s=(r<3?n(s):r>3?n(e,o,s):n(e,o))||s);return r>3&&s&&Object.defineProperty(e,o,s),s},ag=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.ready=!1,e.readyCallbacks=[],e}var o;return rg(e,t),o=e,e.prototype.checkReady=function(){if(this.ready=null!=this.gridCtrl&&null!=this.gridBodyCtrl&&null!=this.centerRowContainerCtrl&&null!=this.leftRowContainerCtrl&&null!=this.rightRowContainerCtrl&&null!=this.bottomCenterRowContainerCtrl&&null!=this.bottomLeftRowContainerCtrl&&null!=this.bottomRightRowContainerCtrl&&null!=this.topCenterRowContainerCtrl&&null!=this.topLeftRowContainerCtrl&&null!=this.topRightRowContainerCtrl&&null!=this.stickyTopCenterRowContainerCtrl&&null!=this.stickyTopLeftRowContainerCtrl&&null!=this.stickyTopRightRowContainerCtrl&&null!=this.centerHeaderRowContainerCtrl&&null!=this.leftHeaderRowContainerCtrl&&null!=this.rightHeaderRowContainerCtrl&&null!=this.fakeHScrollComp&&null!=this.fakeVScrollComp&&null!=this.gridHeaderCtrl,this.ready){var t=this.createReadyParams();this.readyCallbacks.forEach((function(e){return e(t)})),this.readyCallbacks.length=0}},e.prototype.whenReady=function(t){this.ready?t(this.createReadyParams()):this.readyCallbacks.push(t)},e.prototype.createReadyParams=function(){return{centerRowContainerCtrl:this.centerRowContainerCtrl,leftRowContainerCtrl:this.leftRowContainerCtrl,rightRowContainerCtrl:this.rightRowContainerCtrl,bottomCenterRowContainerCtrl:this.bottomCenterRowContainerCtrl,bottomLeftRowContainerCtrl:this.bottomLeftRowContainerCtrl,bottomRightRowContainerCtrl:this.bottomRightRowContainerCtrl,topCenterRowContainerCtrl:this.topCenterRowContainerCtrl,topLeftRowContainerCtrl:this.topLeftRowContainerCtrl,topRightRowContainerCtrl:this.topRightRowContainerCtrl,stickyTopCenterRowContainerCtrl:this.stickyTopCenterRowContainerCtrl,stickyTopLeftRowContainerCtrl:this.stickyTopLeftRowContainerCtrl,stickyTopRightRowContainerCtrl:this.stickyTopRightRowContainerCtrl,centerHeaderRowContainerCtrl:this.centerHeaderRowContainerCtrl,leftHeaderRowContainerCtrl:this.leftHeaderRowContainerCtrl,rightHeaderRowContainerCtrl:this.rightHeaderRowContainerCtrl,fakeHScrollComp:this.fakeHScrollComp,fakeVScrollComp:this.fakeVScrollComp,gridBodyCtrl:this.gridBodyCtrl,gridCtrl:this.gridCtrl,gridHeaderCtrl:this.gridHeaderCtrl}},e.prototype.registerFakeHScrollComp=function(t){this.fakeHScrollComp=t,this.checkReady()},e.prototype.registerFakeVScrollComp=function(t){this.fakeVScrollComp=t,this.checkReady()},e.prototype.registerGridHeaderCtrl=function(t){this.gridHeaderCtrl=t,this.checkReady()},e.prototype.registerCenterRowContainerCtrl=function(t){this.centerRowContainerCtrl=t,this.checkReady()},e.prototype.registerLeftRowContainerCtrl=function(t){this.leftRowContainerCtrl=t,this.checkReady()},e.prototype.registerRightRowContainerCtrl=function(t){this.rightRowContainerCtrl=t,this.checkReady()},e.prototype.registerTopCenterRowContainerCtrl=function(t){this.topCenterRowContainerCtrl=t,this.checkReady()},e.prototype.registerTopLeftRowContainerCon=function(t){this.topLeftRowContainerCtrl=t,this.checkReady()},e.prototype.registerTopRightRowContainerCtrl=function(t){this.topRightRowContainerCtrl=t,this.checkReady()},e.prototype.registerStickyTopCenterRowContainerCtrl=function(t){this.stickyTopCenterRowContainerCtrl=t,this.checkReady()},e.prototype.registerStickyTopLeftRowContainerCon=function(t){this.stickyTopLeftRowContainerCtrl=t,this.checkReady()},e.prototype.registerStickyTopRightRowContainerCtrl=function(t){this.stickyTopRightRowContainerCtrl=t,this.checkReady()},e.prototype.registerBottomCenterRowContainerCtrl=function(t){this.bottomCenterRowContainerCtrl=t,this.checkReady()},e.prototype.registerBottomLeftRowContainerCtrl=function(t){this.bottomLeftRowContainerCtrl=t,this.checkReady()},e.prototype.registerBottomRightRowContainerCtrl=function(t){this.bottomRightRowContainerCtrl=t,this.checkReady()},e.prototype.registerHeaderContainer=function(t,e){switch(e){case"left":this.leftHeaderRowContainerCtrl=t;break;case"right":this.rightHeaderRowContainerCtrl=t;break;default:this.centerHeaderRowContainerCtrl=t}this.checkReady()},e.prototype.registerGridBodyCtrl=function(t){this.gridBodyCtrl=t,this.checkReady()},e.prototype.registerGridCtrl=function(t){this.gridCtrl=t,this.checkReady()},e.prototype.getFakeHScrollComp=function(){return this.fakeHScrollComp},e.prototype.getFakeVScrollComp=function(){return this.fakeVScrollComp},e.prototype.getGridHeaderCtrl=function(){return this.gridHeaderCtrl},e.prototype.getGridCtrl=function(){return this.gridCtrl},e.prototype.getCenterRowContainerCtrl=function(){return this.centerRowContainerCtrl},e.prototype.getTopCenterRowContainerCtrl=function(){return this.topCenterRowContainerCtrl},e.prototype.getBottomCenterRowContainerCtrl=function(){return this.bottomCenterRowContainerCtrl},e.prototype.getStickyTopCenterRowContainerCtrl=function(){return this.stickyTopCenterRowContainerCtrl},e.prototype.getGridBodyCtrl=function(){return this.gridBodyCtrl},e.prototype.getHeaderRowContainerCtrls=function(){return[this.leftHeaderRowContainerCtrl,this.rightHeaderRowContainerCtrl,this.centerHeaderRowContainerCtrl]},e.prototype.getHeaderRowContainerCtrl=function(t){switch(t){case"left":return this.leftHeaderRowContainerCtrl;case"right":return this.rightHeaderRowContainerCtrl;default:return this.centerHeaderRowContainerCtrl}},e.NAME="ctrlsService",e=o=sg([W(o.NAME)],e)}(Mt),lg=function(){var t=function(e,o){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])})(e,o)};return function(e,o){function i(){this.constructor=e}t(e,o),e.prototype=null===o?Object.create(o):(i.prototype=o.prototype,new i)}}(),ug=function(t,e,o,i){var n,r=arguments.length,s=r<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,o):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,o,i);else for(var a=t.length-1;a>=0;a--)(n=t[a])&&(s=(r<3?n(s):r>3?n(e,o,s):n(e,o))||s);return r>3&&s&&Object.defineProperty(e,o,s),s},cg=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.registry={},e}return lg(e,t),e.prototype.register=function(t){this.registry[t.controllerName]=t.controllerClass},e.prototype.getInstance=function(t){var e=this.registry[t];if(null!=e)return new e},e=ug([W("ctrlsFactory")],e)}(Mt),pg=function(){var t=function(e,o){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])})(e,o)};return function(e,o){function i(){this.constructor=e}t(e,o),e.prototype=null===o?Object.create(o):(i.prototype=o.prototype,new i)}}(),dg=function(t,e,o,i){var n,r=arguments.length,s=r<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,o):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,o,i);else for(var a=t.length-1;a>=0;a--)(n=t[a])&&(s=(r<3?n(s):r>3?n(e,o,s):n(e,o))||s);return r>3&&s&&Object.defineProperty(e,o,s),s},hg=function(t){function e(e,o){var i=t.call(this,e)||this;return i.direction=o,i.hideTimeout=null,i}return pg(e,t),e.prototype.postConstruct=function(){this.addManagedListener(this.eventService,kt.EVENT_SCROLL_VISIBILITY_CHANGED,this.onScrollVisibilityChanged.bind(this)),this.onScrollVisibilityChanged(),this.addOrRemoveCssClass("ag-apple-scrollbar",To()||Po())},e.prototype.initialiseInvisibleScrollbar=function(){void 0===this.invisibleScrollbar&&(this.invisibleScrollbar=Io(),this.invisibleScrollbar&&(this.hideAndShowInvisibleScrollAsNeeded(),this.addActiveListenerToggles()))},e.prototype.addActiveListenerToggles=function(){var t=this,e=this.getGui();["mouseenter","mousedown","touchstart"].forEach((function(o){return t.addManagedListener(e,o,(function(){return t.addOrRemoveCssClass("ag-scrollbar-active",!0)}))})),["mouseleave","touchend"].forEach((function(o){return t.addManagedListener(e,o,(function(){return t.addOrRemoveCssClass("ag-scrollbar-active",!1)}))}))},e.prototype.onScrollVisibilityChanged=function(){void 0===this.invisibleScrollbar&&this.initialiseInvisibleScrollbar(),this.setScrollVisible()},e.prototype.hideAndShowInvisibleScrollAsNeeded=function(){var t=this;this.addManagedListener(this.eventService,kt.EVENT_BODY_SCROLL,(function(e){e.direction===t.direction&&(null!==t.hideTimeout&&(window.clearTimeout(t.hideTimeout),t.hideTimeout=null),t.addOrRemoveCssClass("ag-scrollbar-scrolling",!0))})),this.addManagedListener(this.eventService,kt.EVENT_BODY_SCROLL_END,(function(){t.hideTimeout=window.setTimeout((function(){t.addOrRemoveCssClass("ag-scrollbar-scrolling",!1),t.hideTimeout=null}),400)}))},e.prototype.getViewport=function(){return this.eViewport},e.prototype.getContainer=function(){return this.eContainer},dg([dn("eViewport")],e.prototype,"eViewport",void 0),dg([dn("eContainer")],e.prototype,"eContainer",void 0),dg([U("scrollVisibleService")],e.prototype,"scrollVisibleService",void 0),dg([U("ctrlsService")],e.prototype,"ctrlsService",void 0),e}(cn),fg=function(){var t=function(e,o){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])})(e,o)};return function(e,o){function i(){this.constructor=e}t(e,o),e.prototype=null===o?Object.create(o):(i.prototype=o.prototype,new i)}}(),gg=function(t,e,o,i){var n,r=arguments.length,s=r<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,o):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,o,i);else for(var a=t.length-1;a>=0;a--)(n=t[a])&&(s=(r<3?n(s):r>3?n(e,o,s):n(e,o))||s);return r>3&&s&&Object.defineProperty(e,o,s),s},vg=function(t){function e(){return t.call(this,e.TEMPLATE,"horizontal")||this}return fg(e,t),e.prototype.postConstruct=function(){var e=this;t.prototype.postConstruct.call(this);var o=this.setFakeHScrollSpacerWidths.bind(this);this.addManagedListener(this.eventService,kt.EVENT_DISPLAYED_COLUMNS_CHANGED,o),this.addManagedListener(this.eventService,kt.EVENT_DISPLAYED_COLUMNS_WIDTH_CHANGED,o),this.addManagedListener(this.eventService,kt.EVENT_PINNED_ROW_DATA_CHANGED,this.onPinnedRowDataChanged.bind(this)),this.addManagedPropertyListener("domLayout",o),this.ctrlsService.registerFakeHScrollComp(this),this.createManagedBean(new tu((function(t){return e.eContainer.style.width=t+"px"})))},e.prototype.initialiseInvisibleScrollbar=function(){void 0===this.invisibleScrollbar&&(this.enableRtl=this.gridOptionsService.is("enableRtl"),t.prototype.initialiseInvisibleScrollbar.call(this),this.invisibleScrollbar&&this.refreshCompBottom())},e.prototype.onPinnedRowDataChanged=function(){this.refreshCompBottom()},e.prototype.refreshCompBottom=function(){if(this.invisibleScrollbar){var t=this.pinnedRowModel.getPinnedBottomTotalHeight();this.getGui().style.bottom=t+"px"}},e.prototype.onScrollVisibilityChanged=function(){t.prototype.onScrollVisibilityChanged.call(this),this.setFakeHScrollSpacerWidths()},e.prototype.setFakeHScrollSpacerWidths=function(){var t=this.scrollVisibleService.isVerticalScrollShowing(),e=this.columnModel.getDisplayedColumnsRightWidth(),o=!this.enableRtl&&t,i=this.gridOptionsService.getScrollbarWidth();o&&(e+=i),Ri(this.eRightSpacer,e),this.eRightSpacer.classList.toggle("ag-scroller-corner",e<=i);var n=this.columnModel.getDisplayedColumnsLeftWidth();this.enableRtl&&t&&(n+=i),Ri(this.eLeftSpacer,n),this.eLeftSpacer.classList.toggle("ag-scroller-corner",n<=i)},e.prototype.setScrollVisible=function(){var t=this.scrollVisibleService.isHorizontalScrollShowing(),e=this.invisibleScrollbar,o=this.gridOptionsService.is("suppressHorizontalScroll"),i=t&&this.gridOptionsService.getScrollbarWidth()||0,n=o?0:0===i&&e?16:i;this.addOrRemoveCssClass("ag-scrollbar-invisible",e),Oi(this.getGui(),n),Oi(this.eViewport,n),Oi(this.eContainer,n),this.setDisplayed(t,{skipAriaHidden:!0})},e.TEMPLATE='<div class="ag-body-horizontal-scroll" aria-hidden="true">\n <div class="ag-horizontal-left-spacer" ref="eLeftSpacer"></div>\n <div class="ag-body-horizontal-scroll-viewport" ref="eViewport">\n <div class="ag-body-horizontal-scroll-container" ref="eContainer"></div>\n </div>\n <div class="ag-horizontal-right-spacer" ref="eRightSpacer"></div>\n </div>',gg([dn("eLeftSpacer")],e.prototype,"eLeftSpacer",void 0),gg([dn("eRightSpacer")],e.prototype,"eRightSpacer",void 0),gg([U("columnModel")],e.prototype,"columnModel",void 0),gg([U("pinnedRowModel")],e.prototype,"pinnedRowModel",void 0),gg([B],e.prototype,"postConstruct",null),e}(hg),yg=function(){var t=function(e,o){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])})(e,o)};return function(e,o){function i(){this.constructor=e}t(e,o),e.prototype=null===o?Object.create(o):(i.prototype=o.prototype,new i)}}(),mg=function(t,e,o,i){var n,r=arguments.length,s=r<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,o):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,o,i);else for(var a=t.length-1;a>=0;a--)(n=t[a])&&(s=(r<3?n(s):r>3?n(e,o,s):n(e,o))||s);return r>3&&s&&Object.defineProperty(e,o,s),s},Cg=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return yg(e,t),e.prototype.postConstruct=function(){var t=this.checkContainerWidths.bind(this);this.addManagedListener(this.eventService,kt.EVENT_DISPLAYED_COLUMNS_CHANGED,t),this.addManagedListener(this.eventService,kt.EVENT_DISPLAYED_COLUMNS_WIDTH_CHANGED,t),this.addManagedPropertyListener("domLayout",t)},e.prototype.checkContainerWidths=function(){var t=this.gridOptionsService.isDomLayout("print"),e=t?0:this.columnModel.getDisplayedColumnsLeftWidth(),o=t?0:this.columnModel.getDisplayedColumnsRightWidth();e!=this.leftWidth&&(this.leftWidth=e,this.eventService.dispatchEvent({type:kt.EVENT_LEFT_PINNED_WIDTH_CHANGED})),o!=this.rightWidth&&(this.rightWidth=o,this.eventService.dispatchEvent({type:kt.EVENT_RIGHT_PINNED_WIDTH_CHANGED}))},e.prototype.getPinnedRightWidth=function(){return this.rightWidth},e.prototype.getPinnedLeftWidth=function(){return this.leftWidth},mg([U("columnModel")],e.prototype,"columnModel",void 0),mg([B],e.prototype,"postConstruct",null),e=mg([W("pinnedWidthService")],e)}(Mt),wg=function(){var t=function(e,o){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])})(e,o)};return function(e,o){function i(){this.constructor=e}t(e,o),e.prototype=null===o?Object.create(o):(i.prototype=o.prototype,new i)}}(),Sg=function(t,e,o,i){var n,r=arguments.length,s=r<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,o):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,o,i);else for(var a=t.length-1;a>=0;a--)(n=t[a])&&(s=(r<3?n(s):r>3?n(e,o,s):n(e,o))||s);return r>3&&s&&Object.defineProperty(e,o,s),s},Eg=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.events=[],e}return wg(e,t),e.prototype.postConstruct=function(){"clientSide"==this.rowModel.getType()&&(this.clientSideRowModel=this.rowModel)},e.prototype.dispatchExpanded=function(t){var e=this;if(null!=this.clientSideRowModel){this.events.push(t);null==this.dispatchExpandedDebounced&&(this.dispatchExpandedDebounced=this.animationFrameService.debounce((function(){e.clientSideRowModel&&e.clientSideRowModel.onRowGroupOpened(),e.events.forEach((function(t){return e.eventService.dispatchEvent(t)})),e.events=[]}))),this.dispatchExpandedDebounced()}else this.eventService.dispatchEvent(t)},Sg([U("animationFrameService")],e.prototype,"animationFrameService",void 0),Sg([U("rowModel")],e.prototype,"rowModel",void 0),Sg([B],e.prototype,"postConstruct",null),e=Sg([W("rowNodeEventThrottle")],e)}(Mt),Rg=function(){return(Rg=Object.assign||function(t){for(var e,o=1,i=arguments.length;o<i;o++)for(var n in e=arguments[o])Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t}).apply(this,arguments)},Og=function(t,e,o,i){var n,r=arguments.length,s=r<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,o):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,o,i);else for(var a=t.length-1;a>=0;a--)(n=t[a])&&(s=(r<3?n(s):r>3?n(e,o,s):n(e,o))||s);return r>3&&s&&Object.defineProperty(e,o,s),s},bg=function(t,e){return function(o,i){e(o,i,t)}},Tg=function(t,e){var o="function"==typeof Symbol&&t[Symbol.iterator];if(!o)return t;var i,n,r=o.call(t),s=[];try{for(;(void 0===e||e-- >0)&&!(i=r.next()).done;)s.push(i.value)}catch(t){n={error:t}}finally{try{i&&!i.done&&(o=r.return)&&o.call(r)}finally{if(n)throw n.error}}return s},Pg=function(){for(var t=[],e=0;e<arguments.length;e++)t=t.concat(Tg(arguments[e]));return t};
294/**
295 * @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue
296 * @version v29.2.0
297 * @link https://www.ag-grid.com/
298 * @license MIT
299 */function Dg(t){return!0===t||"true"===t}var _g,Ag=function(){function t(){this.destroyed=!1,this.domDataKey="__AG_"+Math.random().toString(),this.propertyEventService=new Z}return Object.defineProperty(t.prototype,"context",{get:function(){return this.gridOptions.context},enumerable:!1,configurable:!0}),t.prototype.agWire=function(t,e){this.gridOptions.api=t,this.gridOptions.columnApi=e,this.api=t,this.columnApi=e},t.prototype.init=function(){this.gridOptionLookup=new Set(Pg(Yt.ALL_PROPERTIES,Yt.EVENT_CALLBACKS));var t=!this.is("suppressAsyncEvents");this.eventService.addGlobalListener(this.globalEventHandler.bind(this),t),this.getScrollbarWidth()},t.prototype.destroy=function(){this.gridOptions.api=null,this.gridOptions.columnApi=null,this.destroyed=!0},t.prototype.is=function(t){return Dg(this.gridOptions[t])},t.prototype.get=function(t){return this.gridOptions[t]},t.prototype.getNum=function(t){return"number"==typeof(e=this.gridOptions[t])?e:"string"==typeof e?parseInt(e,10):void 0;var e},t.prototype.getCallback=function(t){return this.mergeGridCommonParams(this.gridOptions[t])},t.prototype.exists=function(t){return e(this.gridOptions[t])},t.prototype.mergeGridCommonParams=function(t){var e=this;if(t){return function(o){var i=o;return i.api=e.api,i.columnApi=e.columnApi,i.context=e.context,t(i)}}return t},t.prototype.set=function(t,e,o,i){if(void 0===o&&(o=!1),void 0===i&&(i={}),this.gridOptionLookup.has(t)){var n=this.gridOptions[t];if(o||n!==e){this.gridOptions[t]=e;var r=Rg({type:t,currentValue:e,previousValue:n},i);this.propertyEventService.dispatchEvent(r)}}},t.prototype.addEventListener=function(t,e){this.propertyEventService.addEventListener(t,e)},t.prototype.removeEventListener=function(t,e){this.propertyEventService.removeEventListener(t,e)},t.prototype.globalEventHandler=function(t,e){if(!this.destroyed){var o=Yt.getCallbackForEvent(t);"function"==typeof this.gridOptions[o]&&this.gridOptions[o](e)}},t.prototype.getScrollbarWidth=function(){if(null==this.scrollbarWidth){var t="number"==typeof this.gridOptions.scrollbarWidth&&this.gridOptions.scrollbarWidth>=0?this.gridOptions.scrollbarWidth:Lo();null!=t&&(this.scrollbarWidth=t,this.eventService.dispatchEvent({type:kt.EVENT_SCROLLBAR_WIDTH_CHANGED}))}return this.scrollbarWidth},t.prototype.isRowModelType=function(t){return this.gridOptions.rowModelType===t||"clientSide"===t&&o(this.gridOptions.rowModelType)},t.prototype.isDomLayout=function(t){var e;return(null!==(e=this.gridOptions.domLayout)&&void 0!==e?e:"normal")===t},t.prototype.isRowSelection=function(){return"single"===this.gridOptions.rowSelection||"multiple"===this.gridOptions.rowSelection},t.prototype.useAsyncEvents=function(){return!this.is("suppressAsyncEvents")},t.prototype.isGetRowHeightFunction=function(){return"function"==typeof this.gridOptions.getRowHeight},t.prototype.getRowHeightForNode=function(t,e,o){if(void 0===e&&(e=!1),null==o&&(o=this.environment.getDefaultRowHeight()),this.isGetRowHeightFunction()){if(e)return{height:o,estimated:!0};var i={node:t,data:t.data},n=this.getCallback("getRowHeight")(i);if(this.isNumeric(n))return 0===n&&O((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,n),estimated:!1}}return t.detail&&this.is("masterDetail")?this.getMasterDetailRowHeight():{height:this.gridOptions.rowHeight&&this.isNumeric(this.gridOptions.rowHeight)?this.gridOptions.rowHeight:o,estimated:!1}},t.prototype.getMasterDetailRowHeight=function(){return this.is("detailRowAutoHeight")?{height:1,estimated:!1}:this.isNumeric(this.gridOptions.detailRowHeight)?{height:this.gridOptions.detailRowHeight,estimated:!1}:{height:300,estimated:!1}},t.prototype.getRowHeightAsNumber=function(){if(!this.gridOptions.rowHeight||o(this.gridOptions.rowHeight))return this.environment.getDefaultRowHeight();var t=this.gridOptions.rowHeight;return t&&this.isNumeric(t)?(this.environment.setRowHeightVariable(t),t):(console.warn("AG Grid row height must be a number if not using standard row model"),this.environment.getDefaultRowHeight())},t.prototype.isNumeric=function(t){return!isNaN(t)&&"number"==typeof t&&isFinite(t)},t.prototype.getDomDataKey=function(){return this.domDataKey},t.prototype.getDomData=function(t,e){var o=t[this.getDomDataKey()];return o?o[e]:void 0},t.prototype.setDomData=function(t,e,i){var n=this.getDomDataKey(),r=t[n];o(r)&&(r={},t[n]=r),r[e]=i},t.prototype.getDocument=function(){var t=null;return this.gridOptions.getDocument&&e(this.gridOptions.getDocument)?t=this.gridOptions.getDocument():this.eGridDiv&&(t=this.eGridDiv.ownerDocument),t&&e(t)?t:document},t.prototype.getRootNode=function(){return this.eGridDiv.getRootNode()},t.prototype.getRowIdFunc=function(){var t=this.getCallback("getRowId");if(t)return t;var e=this.gridOptions.getRowNodeId;return e?function(t){return e(t.data)}:void 0},t.prototype.getAsyncTransactionWaitMillis=function(){return e(this.gridOptions.asyncTransactionWaitMillis)?this.gridOptions.asyncTransactionWaitMillis:50},t.prototype.isAnimateRows=function(){return!this.is("ensureDomOrder")&&this.is("animateRows")},t.prototype.isTreeData=function(){return this.is("treeData")&&tt.assertRegistered(Q.RowGroupingModule,"Tree Data")},t.prototype.isMasterDetail=function(){return this.is("masterDetail")&&tt.assertRegistered(Q.MasterDetailModule,"masterDetail")},t.prototype.isEnableRangeSelection=function(){return this.is("enableRangeSelection")&&tt.isRegistered(Q.RangeSelectionModule)},t.prototype.isColumnsSortingCoupledToGroup=function(){var t=this.gridOptions.autoGroupColumnDef;return this.isRowModelType("clientSide")&&!(null==t?void 0:t.comparator)},t.prototype.getGroupAggFiltering=function(){var t=this.gridOptions.groupAggFiltering;return"function"==typeof t?this.getCallback("groupAggFiltering"):Dg(t)?function(){return!0}:void 0},t.prototype.isGroupMultiAutoColumn=function(){return this.gridOptions.groupDisplayType?ie("multipleColumns",this.gridOptions.groupDisplayType):this.is("groupHideOpenParents")},t.prototype.isGroupUseEntireRow=function(t){return!t&&(!!this.gridOptions.groupDisplayType&&ie("groupRows",this.gridOptions.groupDisplayType))},Og([U("gridOptions")],t.prototype,"gridOptions",void 0),Og([U("eventService")],t.prototype,"eventService",void 0),Og([U("environment")],t.prototype,"environment",void 0),Og([U("eGridDiv")],t.prototype,"eGridDiv",void 0),Og([bg(0,Y("gridApi")),bg(1,Y("columnApi"))],t.prototype,"agWire",null),Og([B],t.prototype,"init",null),Og([j],t.prototype,"destroy",null),t=Og([W("gridOptionsService")],t)}(),Ng=function(){var t=function(e,o){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])})(e,o)};return function(e,o){function i(){this.constructor=e}t(e,o),e.prototype=null===o?Object.create(o):(i.prototype=o.prototype,new i)}}(),Fg=function(t,e,o,i){var n,r=arguments.length,s=r<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,o):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,o,i);else for(var a=t.length-1;a>=0;a--)(n=t[a])&&(s=(r<3?n(s):r>3?n(e,o,s):n(e,o))||s);return r>3&&s&&Object.defineProperty(e,o,s),s},Lg=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Ng(e,t),e.prototype.getLocaleTextFunc=function(){var t=this.gridOptionsService.getCallback("getLocaleText");if(t)return function(e,o,i){return t({key:e,defaultValue:o,variableValues:i})};var e=this.gridOptionsService.get("localeTextFunc");if(e)return e;var o=this.gridOptionsService.get("localeText");return function(t,e,i){var n=o&&o[t];if(n&&i&&i.length)for(var r=0;!(r>=i.length);){if(-1===n.indexOf("${variable}"))break;n=n.replace("${variable}",i[r++])}return null!=n?n:e}},e=Fg([W("localeService")],e)}(Mt),Mg=function(){var t=function(e,o){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])})(e,o)};return function(e,o){function i(){this.constructor=e}t(e,o),e.prototype=null===o?Object.create(o):(i.prototype=o.prototype,new i)}}(),Ig=function(t,e,o,i){var n,r=arguments.length,s=r<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,o):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,o,i);else for(var a=t.length-1;a>=0;a--)(n=t[a])&&(s=(r<3?n(s):r>3?n(e,o,s):n(e,o))||s);return r>3&&s&&Object.defineProperty(e,o,s),s},Gg=function(t){function e(){return t.call(this,e.TEMPLATE,"vertical")||this}return Mg(e,t),e.prototype.postConstruct=function(){t.prototype.postConstruct.call(this),this.createManagedBean(new ql(this.eContainer)),this.ctrlsService.registerFakeVScrollComp(this)},e.prototype.setScrollVisible=function(){var t=this.scrollVisibleService.isVerticalScrollShowing(),e=this.invisibleScrollbar,o=t&&this.gridOptionsService.getScrollbarWidth()||0,i=0===o&&e?16:o;this.addOrRemoveCssClass("ag-scrollbar-invisible",e),Ri(this.getGui(),i),Ri(this.eViewport,i),Ri(this.eContainer,i),this.setDisplayed(t,{skipAriaHidden:!0})},e.TEMPLATE='<div class="ag-body-vertical-scroll" aria-hidden="true">\n <div class="ag-body-vertical-scroll-viewport" ref="eViewport">\n <div class="ag-body-vertical-scroll-container" ref="eContainer"></div>\n </div>\n </div>',Ig([B],e.prototype,"postConstruct",null),e}(hg),xg=function(t,e){var o="function"==typeof Symbol&&t[Symbol.iterator];if(!o)return t;var i,n,r=o.call(t),s=[];try{for(;(void 0===e||e-- >0)&&!(i=r.next()).done;)s.push(i.value)}catch(t){n={error:t}}finally{try{i&&!i.done&&(o=r.return)&&o.call(r)}finally{if(n)throw n.error}}return s},Hg=function(){for(var t=[],e=0;e<arguments.length;e++)t=t.concat(xg(arguments[e]));return t},Vg=function(){function t(t,e,o){e?(this.gridOptions=e,(new kg).create(t,e,(function(e){var o=new Vh(t);e.createBean(o)}),void 0,o)):console.error("AG Grid: no gridOptions provided to the grid")}return t.prototype.destroy=function(){this.gridOptions&&this.gridOptions.api&&this.gridOptions.api.destroy()},t}(),kg=function(){function t(){}return t.prototype.create=function(t,e,o,i,n){var r=this,s=!!e.debug,a=this.getRegisteredModules(n),l=this.createBeansList(e.rowModelType,a),u=this.createProvidedBeans(t,e,n);if(l){var c={providedBeanInstances:u,beanClasses:l,debug:s},p=new Lh("AG Grid",(function(){return e.debug})),d=new Lh("Context",(function(){return c.debug})),h=new V(c,d),f=h.getBean("beans");this.registerModuleUserComponents(f,a),this.registerStackComponents(f,a),this.registerControllers(f,a),o(h),f.ctrlsService.whenReady((function(){r.setColumnsAndData(f),r.dispatchGridReadyEvent(f);var t=tt.isRegistered(Q.EnterpriseCoreModule);p.log("initialised successfully, enterprise = "+t)})),i&&i(h)}},t.prototype.registerControllers=function(t,e){e.forEach((function(e){e.controllers&&e.controllers.forEach((function(e){return t.ctrlsFactory.register(e)}))}))},t.prototype.registerStackComponents=function(t,e){var o=this.createAgStackComponentsList(e);t.agStackComponentsRegistry.setupComponents(o)},t.prototype.getRegisteredModules=function(t){var e=t?t.modules:null,o=tt.getRegisteredModules(),i=[],n={};function r(t,e){var o;n[(o=e).moduleName]||(n[o.moduleName]=!0,i.push(o),tt.register(o,t)),e.dependantModules&&e.dependantModules.forEach(r.bind(null,t))}return e&&e.forEach(r.bind(null,!0)),o&&o.forEach(r.bind(null,!tt.isPackageBased())),i},t.prototype.registerModuleUserComponents=function(t,e){this.extractModuleEntity(e,(function(t){return t.userComponents?t.userComponents:[]})).forEach((function(e){t.userComponentRegistry.registerDefaultComponent(e.componentName,e.componentClass)}))},t.prototype.createProvidedBeans=function(t,e,i){var n=i?i.frameworkOverrides:null;o(n)&&(n=new eh);var r={gridOptions:e,eGridDiv:t,globalEventListener:i?i.globalEventListener:null,frameworkOverrides:n};return i&&i.providedBeanInstances&&Object.assign(r,i.providedBeanInstances),r},t.prototype.createAgStackComponentsList=function(t){var e=[{componentName:"AgCheckbox",componentClass:Qn},{componentName:"AgRadioButton",componentClass:Jn},{componentName:"AgToggleButton",componentClass:ed},{componentName:"AgInputTextField",componentClass:Cr},{componentName:"AgInputTextArea",componentClass:id},{componentName:"AgInputNumberField",componentClass:Sr},{componentName:"AgInputRange",componentClass:rd},{componentName:"AgSelect",componentClass:Un},{componentName:"AgSlider",componentClass:ld},{componentName:"AgGridBody",componentClass:hu},{componentName:"AgHeaderRoot",componentClass:tp},{componentName:"AgSortIndicator",componentClass:zr},{componentName:"AgPagination",componentClass:_f},{componentName:"AgOverlayWrapper",componentClass:Ff},{componentName:"AgGroupComponent",componentClass:pd},{componentName:"AgPanel",componentClass:Fd},{componentName:"AgDialog",componentClass:Gd},{componentName:"AgRowContainer",componentClass:Iu},{componentName:"AgFakeHorizontalScroll",componentClass:vg},{componentName:"AgFakeVerticalScroll",componentClass:Gg}],o=this.extractModuleEntity(t,(function(t){return t.agStackComponents?t.agStackComponents:[]}));return e=e.concat(o)},t.prototype.createBeansList=function(t,e){void 0===t&&(t="clientSide");var o=e.filter((function(e){return!e.rowModel||e.rowModel===t})),i={clientSide:Q.ClientSideRowModelModule,infinite:Q.InfiniteRowModelModule,serverSide:Q.ServerSideRowModelModule,viewport:Q.ViewportRowModelModule};if(i[t]){if(tt.assertRegistered(i[t],"rowModelType = '"+t+"'")){var n=[hl,If,Hf,Jf,$h,Da,Zs,uf,df,fp,Ca,Rf,ip,Lg,oe,Vp,Oa,Fe,Z,Ag,Qd,vh,Fa,Te,qc,Xp,Fp,bh,Ht,Dh,ch,Ru,of,Sh,Fh,_e,wp,sp,bs,mh,jd,Cu,Cf,sh,Gp,$p,vu,Uh,Yh,Xh,Tf,ce,sf,yp,qf,Ie,$f,eg,Yp,ng,ag,Cg,Eg,cg],r=this.extractModuleEntity(o,(function(t){return t.beans?t.beans:[]}));n.push.apply(n,Hg(r));var s=[];return n.forEach((function(t){s.indexOf(t)<0&&s.push(t)})),s}}else console.error("AG Grid: could not find row model for rowModelType = "+t)},t.prototype.extractModuleEntity=function(t,e){return[].concat.apply([],Hg(t.map(e)))},t.prototype.setColumnsAndData=function(t){var e=t.gridOptionsService.get("columnDefs");t.columnModel.setColumnDefs(e||[],"gridInitializing"),t.rowModel.start()},t.prototype.dispatchGridReadyEvent=function(t){var e={type:kt.EVENT_GRID_READY};t.eventService.dispatchEvent(e)},t}(),Bg=function(){function t(){}return t.prototype.wrap=function(t,e,o,i){var n=this;void 0===o&&(o=[]);var r=this.createWrapper(t,i);return e.forEach((function(t){n.createMethod(r,t,!0)})),o.forEach((function(t){n.createMethod(r,t,!1)})),r},t.prototype.unwrap=function(t){return t},t.prototype.createMethod=function(t,e,o){t.addMethod(e,this.createMethodProxy(t,e,o))},t.prototype.createMethodProxy=function(t,e,o){return function(){return t.hasMethod(e)?t.callMethod(e,arguments):(o&&console.warn("AG Grid: Framework component is missing the method "+e+"()"),null)}},t}(),jg={columnGroup:["column","stackedColumn","normalizedColumn"],barGroup:["bar","stackedBar","normalizedBar"],pieGroup:["pie","doughnut"],lineGroup:["line"],scatterGroup:["scatter","bubble"],areaGroup:["area","stackedArea","normalizedArea"],histogramGroup:["histogram"],combinationGroup:["columnLineCombo","areaColumnCombo","customCombo"]},Wg=["chartSettings","chartData","chartFormat"],Ug=["chartUnlink","chartLink","chartDownload"],zg={settings:"chartSettings",data:"chartData",format:"chartFormat"},Kg=0;
300/**
301 * @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue
302 * @version v29.2.0
303 * @link https://www.ag-grid.com/
304 * @license MIT
305 */!function(t){t.InsideBase="insideBase",t.InsideEnd="insideEnd",t.Center="center",t.OutsideEnd="outsideEnd"}(_g||(_g={}));
306/**
307 * @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue
308 * @version v29.2.0
309 * @link https://www.ag-grid.com/
310 * @license MIT
311 */
312var Yg="undefined"==typeof global?{}:global;Yg.HTMLElement="undefined"==typeof HTMLElement?{}:HTMLElement,Yg.HTMLButtonElement="undefined"==typeof HTMLButtonElement?{}:HTMLButtonElement,Yg.HTMLSelectElement="undefined"==typeof HTMLSelectElement?{}:HTMLSelectElement,Yg.HTMLInputElement="undefined"==typeof HTMLInputElement?{}:HTMLInputElement,Yg.Node="undefined"==typeof Node?{}:Node,Yg.MouseEvent="undefined"==typeof MouseEvent?{}:MouseEvent;var qg,Qg=function(t,e){var o="function"==typeof Symbol&&t[Symbol.iterator];if(!o)return t;var i,n,r=o.call(t),s=[];try{for(;(void 0===e||e-- >0)&&!(i=r.next()).done;)s.push(i.value)}catch(t){n={error:t}}finally{try{i&&!i.done&&(o=r.return)&&o.call(r)}finally{if(n)throw n.error}}return s},Xg=function(){for(var t=[],e=0;e<arguments.length;e++)t=t.concat(Qg(arguments[e]));return t},Jg=function(){function t(e,o,i,n,r,s){this.nextId=0,this.allNodesMap={},this.rootNode=e,this.gridOptionsService=o,this.eventService=i,this.columnModel=n,this.beans=s,this.selectionService=r,this.rootNode.group=!0,this.rootNode.level=-1,this.rootNode.id=t.ROOT_NODE_ID,this.rootNode.allLeafChildren=[],this.rootNode.childrenAfterGroup=[],this.rootNode.childrenAfterSort=[],this.rootNode.childrenAfterAggFilter=[],this.rootNode.childrenAfterFilter=[],this.postConstruct()}return t.prototype.postConstruct=function(){this.suppressParentsInRowNodes=this.gridOptionsService.is("suppressParentsInRowNodes"),this.isRowMasterFunc=this.gridOptionsService.get("isRowMaster"),this.doingTreeData=this.gridOptionsService.isTreeData(),this.doingMasterDetail=this.gridOptionsService.isMasterDetail()},t.prototype.getCopyOfNodesMap=function(){return Xi.cloneObject(this.allNodesMap)},t.prototype.getRowNode=function(t){return this.allNodesMap[t]},t.prototype.setRowData=function(e){var o=this;if("string"!=typeof e){var i=this.rootNode,n=this.rootNode.sibling;i.childrenAfterFilter=null,i.childrenAfterGroup=null,i.childrenAfterAggFilter=null,i.childrenAfterSort=null,i.childrenMapped=null,i.updateHasChildren(),this.nextId=0,this.allNodesMap={},e?i.allLeafChildren=e.map((function(e){return o.createNode(e,o.rootNode,t.TOP_LEVEL)})):(i.allLeafChildren=[],i.childrenAfterGroup=[]),n&&(n.childrenAfterFilter=i.childrenAfterFilter,n.childrenAfterGroup=i.childrenAfterGroup,n.childrenAfterAggFilter=i.childrenAfterAggFilter,n.childrenAfterSort=i.childrenAfterSort,n.childrenMapped=i.childrenMapped,n.allLeafChildren=i.allLeafChildren)}else console.warn("AG Grid: rowData must be an array, however you passed in a string. If you are loading JSON, make sure you convert the JSON string to JavaScript objects first")},t.prototype.updateRowData=function(t,e){var o={remove:[],update:[],add:[]},i=[];return this.executeRemove(t,o,i),this.executeUpdate(t,o,i),this.executeAdd(t,o),this.updateSelection(i,"rowDataChanged"),e&&Xi.sortRowNodesByOrder(this.rootNode.allLeafChildren,e),o},t.prototype.updateSelection=function(t,e){var o=t.length>0;if(o&&t.forEach((function(t){t.setSelected(!1,!1,!0,e)})),this.selectionService.updateGroupsFromChildrenSelections(e),o){var i={type:kt.EVENT_SELECTION_CHANGED,source:e};this.eventService.dispatchEvent(i)}},t.prototype.executeAdd=function(e,o){var i,n=this,r=e.add,s=e.addIndex;if(!Xi.missingOrEmpty(r)){var a=r.map((function(e){return n.createNode(e,n.rootNode,t.TOP_LEVEL)}));if("number"==typeof s&&s>=0){var l=this.rootNode.allLeafChildren,u=l.length,c=s;if(this.doingTreeData&&s>0&&u>0)for(var p=0;p<u;p++)if((null===(i=l[p])||void 0===i?void 0:i.rowIndex)==s-1){c=p+1;break}var d=l.slice(0,c),h=l.slice(c,l.length);this.rootNode.allLeafChildren=Xg(d,a,h)}else this.rootNode.allLeafChildren=Xg(this.rootNode.allLeafChildren,a);this.rootNode.sibling&&(this.rootNode.sibling.allLeafChildren=this.rootNode.allLeafChildren),o.add=a}},t.prototype.executeRemove=function(t,e,o){var i=this,n=t.remove;if(!Xi.missingOrEmpty(n)){var r={};n.forEach((function(t){var n=i.lookupRowNode(t);n&&(n.isSelected()&&o.push(n),n.clearRowTopAndRowIndex(),r[n.id]=!0,delete i.allNodesMap[n.id],e.remove.push(n))})),this.rootNode.allLeafChildren=this.rootNode.allLeafChildren.filter((function(t){return!r[t.id]})),this.rootNode.sibling&&(this.rootNode.sibling.allLeafChildren=this.rootNode.allLeafChildren)}},t.prototype.executeUpdate=function(e,o,i){var n=this,r=e.update;Xi.missingOrEmpty(r)||r.forEach((function(e){var r=n.lookupRowNode(e);r&&(r.updateData(e),!r.selectable&&r.isSelected()&&i.push(r),n.setMasterForRow(r,e,t.TOP_LEVEL,!1),o.update.push(r))}))},t.prototype.lookupRowNode=function(t){var e,o=this.gridOptionsService.getRowIdFunc();if(o){var i=o({data:t,level:0});if(!(e=this.allNodesMap[i]))return console.error("AG Grid: could not find row id="+i+", data item was not found for this id"),null}else if(!(e=this.rootNode.allLeafChildren.find((function(e){return e.data===t}))))return console.error("AG Grid: could not find data item as object was not found",t),console.error("Consider using getRowId to help the Grid find matching row data"),null;return e||null},t.prototype.createNode=function(t,e,o){var i=new vs(this.beans);return i.group=!1,this.setMasterForRow(i,t,o,!0),e&&!this.suppressParentsInRowNodes&&(i.parent=e),i.level=o,i.setDataAndId(t,this.nextId.toString()),this.allNodesMap[i.id]&&console.warn("AG Grid: duplicate node id '"+i.id+"' detected from getRowId callback, this could cause issues in your grid."),this.allNodesMap[i.id]=i,this.nextId++,i},t.prototype.setMasterForRow=function(t,e,o,i){if(this.doingTreeData)t.setMaster(!1),i&&(t.expanded=!1);else if(this.doingMasterDetail?this.isRowMasterFunc?t.setMaster(this.isRowMasterFunc(e)):t.setMaster(!0):t.setMaster(!1),i){var n=this.columnModel.getRowGroupColumns(),r=o+(n?n.length:0);t.expanded=!!t.master&&this.isExpanded(r)}},t.prototype.isExpanded=function(t){var e=this.gridOptionsService.getNum("groupDefaultExpanded");return-1===e||t<e},t.TOP_LEVEL=0,t.ROOT_NODE_ID="ROOT_NODE_ID",t}(),Zg=function(){var t=function(e,o){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])})(e,o)};return function(e,o){function i(){this.constructor=e}t(e,o),e.prototype=null===o?Object.create(o):(i.prototype=o.prototype,new i)}}(),$g=function(t,e,o,i){var n,r=arguments.length,s=r<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,o):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,o,i);else for(var a=t.length-1;a>=0;a--)(n=t[a])&&(s=(r<3?n(s):r>3?n(e,o,s):n(e,o))||s);return r>3&&s&&Object.defineProperty(e,o,s),s},tv=function(t,e){var o="function"==typeof Symbol&&t[Symbol.iterator];if(!o)return t;var i,n,r=o.call(t),s=[];try{for(;(void 0===e||e-- >0)&&!(i=r.next()).done;)s.push(i.value)}catch(t){n={error:t}}finally{try{i&&!i.done&&(o=r.return)&&o.call(r)}finally{if(n)throw n.error}}return s},ev=function(){for(var t=[],e=0;e<arguments.length;e++)t=t.concat(tv(arguments[e]));return t};!function(t){t[t.Normal=0]="Normal",t[t.AfterFilter=1]="AfterFilter",t[t.AfterFilterAndSort=2]="AfterFilterAndSort",t[t.PivotNodes=3]="PivotNodes"}(qg||(qg={}));var ov,iv=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.onRowHeightChanged_debounced=Xi.debounce(e.onRowHeightChanged.bind(e),100),e.rowsToDisplay=[],e}return Zg(e,t),e.prototype.init=function(){var t=this.refreshModel.bind(this,{step:Sa.EVERYTHING}),e=!this.gridOptionsService.is("suppressAnimationFrame"),o=this.refreshModel.bind(this,{step:Sa.EVERYTHING,afterColumnsChanged:!0,keepRenderedRows:!0,animate:e});this.addManagedListener(this.eventService,kt.EVENT_NEW_COLUMNS_LOADED,o),this.addManagedListener(this.eventService,kt.EVENT_COLUMN_ROW_GROUP_CHANGED,t),this.addManagedListener(this.eventService,kt.EVENT_COLUMN_VALUE_CHANGED,this.onValueChanged.bind(this)),this.addManagedListener(this.eventService,kt.EVENT_COLUMN_PIVOT_CHANGED,this.refreshModel.bind(this,{step:Sa.PIVOT})),this.addManagedListener(this.eventService,kt.EVENT_FILTER_CHANGED,this.onFilterChanged.bind(this)),this.addManagedListener(this.eventService,kt.EVENT_SORT_CHANGED,this.onSortChanged.bind(this)),this.addManagedListener(this.eventService,kt.EVENT_COLUMN_PIVOT_MODE_CHANGED,t),this.addManagedListener(this.eventService,kt.EVENT_GRID_STYLES_CHANGED,this.resetRowHeights.bind(this));var i=this.refreshModel.bind(this,{step:Sa.MAP,keepRenderedRows:!0,animate:e});this.addManagedPropertyListener("groupRemoveSingleChildren",i),this.addManagedPropertyListener("groupRemoveLowestSingleChildren",i),this.rootNode=new vs(this.beans),this.nodeManager=new Jg(this.rootNode,this.gridOptionsService,this.eventService,this.columnModel,this.selectionService,this.beans)},e.prototype.start=function(){var t=this.gridOptionsService.get("rowData");t&&this.setRowData(t)},e.prototype.ensureRowHeightsValid=function(t,e,o,i){var n,r=!1;do{n=!1;for(var s=this.getRowIndexAtPixel(t),a=this.getRowIndexAtPixel(e),l=Math.max(s,o),u=Math.min(a,i),c=l;c<=u;c++){var p=this.getRow(c);if(p.rowHeightEstimated){var d=this.gridOptionsService.getRowHeightForNode(p);p.setRowHeight(d.height),n=!0,r=!0}}n&&this.setRowTopAndRowIndex()}while(n);return r},e.prototype.setRowTopAndRowIndex=function(){for(var t=this.environment.getDefaultRowHeight(),e=0,o=new Set,i=this.gridOptionsService.isDomLayout("normal"),n=0;n<this.rowsToDisplay.length;n++){var r=this.rowsToDisplay[n];if(null!=r.id&&o.add(r.id),null==r.rowHeight){var s=this.gridOptionsService.getRowHeightForNode(r,i,t);r.setRowHeight(s.height,s.estimated)}r.setRowTop(e),r.setRowIndex(n),e+=r.rowHeight}return o},e.prototype.clearRowTopAndRowIndex=function(t,e){var o=t.isActive(),i=function(t){t&&null!=t.id&&!e.has(t.id)&&t.clearRowTopAndRowIndex()},n=function(t){if(i(t),i(t.detailNode),i(t.sibling),t.hasChildren()&&t.childrenAfterGroup){var e=-1==t.level;o&&!e&&!t.expanded||t.childrenAfterGroup.forEach(n)}};n(this.rootNode)},e.prototype.ensureRowsAtPixel=function(t,e,o){var i=this;void 0===o&&(o=0);var n=this.getRowIndexAtPixel(e),r=this.getRow(n),s=!this.gridOptionsService.is("suppressAnimationFrame");return r!==t[0]&&(t.forEach((function(t){Xi.removeFromArray(i.rootNode.allLeafChildren,t)})),t.forEach((function(t,e){Xi.insertIntoArray(i.rootNode.allLeafChildren,t,Math.max(n+o,0)+e)})),this.refreshModel({step:Sa.EVERYTHING,keepRenderedRows:!0,keepEditingRows:!0,animate:s}),!0)},e.prototype.highlightRowAtPixel=function(t,e){var o=null!=e?this.getRowIndexAtPixel(e):null,i=null!=o?this.getRow(o):null;if(i&&t&&i!==t&&null!=e){var n=this.getHighlightPosition(e,i);this.lastHighlightedRow&&this.lastHighlightedRow!==i&&(this.lastHighlightedRow.setHighlighted(null),this.lastHighlightedRow=null),i.setHighlighted(n),this.lastHighlightedRow=i}else this.lastHighlightedRow&&(this.lastHighlightedRow.setHighlighted(null),this.lastHighlightedRow=null)},e.prototype.getHighlightPosition=function(t,e){if(!e){var o=this.getRowIndexAtPixel(t);if(!(e=this.getRow(o||0)))return wa.Below}return t-e.rowTop<e.rowHeight/2?wa.Above:wa.Below},e.prototype.getLastHighlightedRowNode=function(){return this.lastHighlightedRow},e.prototype.isLastRowIndexKnown=function(){return!0},e.prototype.getRowCount=function(){return this.rowsToDisplay?this.rowsToDisplay.length:0},e.prototype.getTopLevelRowCount=function(){if(this.rowsToDisplay&&this.rowsToDisplay[0]===this.rootNode)return 1;var t=this.rootNode.childrenAfterAggFilter;return t?t.length:0},e.prototype.getTopLevelRowDisplayedIndex=function(t){if(this.rowsToDisplay&&this.rowsToDisplay[0]===this.rootNode)return t;var e=this.rootNode.childrenAfterSort[t];if(this.gridOptionsService.is("groupHideOpenParents"))for(;e.expanded&&e.childrenAfterSort&&e.childrenAfterSort.length>0;)e=e.childrenAfterSort[0];return e.rowIndex},e.prototype.getRowBounds=function(t){if(Xi.missing(this.rowsToDisplay))return null;var e=this.rowsToDisplay[t];return e?{rowTop:e.rowTop,rowHeight:e.rowHeight}:null},e.prototype.onRowGroupOpened=function(){var t=this.gridOptionsService.isAnimateRows();this.refreshModel({step:Sa.MAP,keepRenderedRows:!0,animate:t})},e.prototype.onFilterChanged=function(t){if(!t.afterDataChange){var e=this.gridOptionsService.isAnimateRows(),o=0===t.columns.length||t.columns.some((function(t){return t.isPrimary()}))?Sa.FILTER:Sa.FILTER_AGGREGATES;this.refreshModel({step:o,keepRenderedRows:!0,animate:e})}},e.prototype.onSortChanged=function(){var t=this.gridOptionsService.isAnimateRows();this.refreshModel({step:Sa.SORT,keepRenderedRows:!0,animate:t,keepEditingRows:!0})},e.prototype.getType=function(){return"clientSide"},e.prototype.onValueChanged=function(){this.columnModel.isPivotActive()?this.refreshModel({step:Sa.PIVOT}):this.refreshModel({step:Sa.AGGREGATE})},e.prototype.createChangePath=function(t){var e=Xi.missingOrEmpty(t),o=new Bp(!1,this.rootNode);return(e||this.gridOptionsService.isTreeData())&&o.setInactive(),o},e.prototype.isSuppressModelUpdateAfterUpdateTransaction=function(t){if(!this.gridOptionsService.is("suppressModelUpdateAfterUpdateTransaction"))return!1;if(null==t.rowNodeTransactions)return!1;var e=t.rowNodeTransactions.filter((function(t){return null!=t.add&&t.add.length>0||null!=t.remove&&t.remove.length>0}));return null==e||0==e.length},e.prototype.buildRefreshModelParams=function(t){var e=Sa.EVERYTHING,o={everything:Sa.EVERYTHING,group:Sa.EVERYTHING,filter:Sa.FILTER,map:Sa.MAP,aggregate:Sa.AGGREGATE,sort:Sa.SORT,pivot:Sa.PIVOT};if(Xi.exists(t)&&(e=o[t]),!Xi.missing(e))return{step:e,keepRenderedRows:!0,keepEditingRows:!0,animate:!this.gridOptionsService.is("suppressAnimationFrame")};console.error("AG Grid: invalid step "+t+", available steps are "+Object.keys(o).join(", "))},e.prototype.refreshModel=function(t){var e="object"==typeof t&&"step"in t?t:this.buildRefreshModelParams(t);if(e&&!this.isSuppressModelUpdateAfterUpdateTransaction(e)){var o=this.createChangePath(e.rowNodeTransactions);switch(e.step){case Sa.EVERYTHING:this.doRowGrouping(e.groupState,e.rowNodeTransactions,e.rowNodeOrder,o,!!e.afterColumnsChanged);case Sa.FILTER:this.doFilter(o);case Sa.PIVOT:this.doPivot(o);case Sa.AGGREGATE:this.doAggregate(o);case Sa.FILTER_AGGREGATES:this.doFilterAggregates(o);case Sa.SORT:this.doSort(e.rowNodeTransactions,o);case Sa.MAP:this.doRowsToDisplay()}var i=this.setRowTopAndRowIndex();this.clearRowTopAndRowIndex(o,i);var n={type:kt.EVENT_MODEL_UPDATED,animate:e.animate,keepRenderedRows:e.keepRenderedRows,newData:e.newData,newPage:!1,keepUndoRedoStack:e.keepUndoRedoStack};this.eventService.dispatchEvent(n)}},e.prototype.isEmpty=function(){var t=Xi.missing(this.rootNode.allLeafChildren)||0===this.rootNode.allLeafChildren.length;return Xi.missing(this.rootNode)||t||!this.columnModel.isReady()},e.prototype.isRowsToRender=function(){return Xi.exists(this.rowsToDisplay)&&this.rowsToDisplay.length>0},e.prototype.getNodesInRangeForSelection=function(t,e){var o,i=!e,n=!1,r=[],s=this.gridOptionsService.is("groupSelectsChildren");return this.forEachNodeAfterFilterAndSort((function(a){var l=i&&!n;if(i||a!==e&&a!==t||(i=!0),!(a.group&&s)){var u=i&&!n,c=a.isParentOfNode(o);(u||c)&&r.push(a)}l&&(a!==e&&a!==t||(n=!0,o=a===e?e:t))})),r},e.prototype.setDatasource=function(t){console.error("AG Grid: should never call setDatasource on clientSideRowController")},e.prototype.getTopLevelNodes=function(){return this.rootNode?this.rootNode.childrenAfterGroup:null},e.prototype.getRootNode=function(){return this.rootNode},e.prototype.getRow=function(t){return this.rowsToDisplay[t]},e.prototype.isRowPresent=function(t){return this.rowsToDisplay.indexOf(t)>=0},e.prototype.getRowIndexAtPixel=function(t){if(this.isEmpty()||0===this.rowsToDisplay.length)return-1;var e=0,o=this.rowsToDisplay.length-1;if(t<=0)return 0;if(Xi.last(this.rowsToDisplay).rowTop<=t)return this.rowsToDisplay.length-1;for(var i=-1,n=-1;;){var r=Math.floor((e+o)/2),s=this.rowsToDisplay[r];if(this.isRowInPixel(s,t))return r;if(s.rowTop<t?e=r+1:s.rowTop>t&&(o=r-1),i===e&&n===o)return r;i=e,n=o}},e.prototype.isRowInPixel=function(t,e){var o=t.rowTop,i=t.rowTop+t.rowHeight;return o<=e&&i>e},e.prototype.forEachLeafNode=function(t){this.rootNode.allLeafChildren&&this.rootNode.allLeafChildren.forEach((function(e,o){return t(e,o)}))},e.prototype.forEachNode=function(t,e){void 0===e&&(e=!1),this.recursivelyWalkNodesAndCallback({nodes:ev(this.rootNode.childrenAfterGroup||[]),callback:t,recursionType:qg.Normal,index:0,includeFooterNodes:e})},e.prototype.forEachNodeAfterFilter=function(t,e){void 0===e&&(e=!1),this.recursivelyWalkNodesAndCallback({nodes:ev(this.rootNode.childrenAfterAggFilter||[]),callback:t,recursionType:qg.AfterFilter,index:0,includeFooterNodes:e})},e.prototype.forEachNodeAfterFilterAndSort=function(t,e){void 0===e&&(e=!1),this.recursivelyWalkNodesAndCallback({nodes:ev(this.rootNode.childrenAfterSort||[]),callback:t,recursionType:qg.AfterFilterAndSort,index:0,includeFooterNodes:e})},e.prototype.forEachPivotNode=function(t,e){void 0===e&&(e=!1),this.recursivelyWalkNodesAndCallback({nodes:[this.rootNode],callback:t,recursionType:qg.PivotNodes,index:0,includeFooterNodes:e})},e.prototype.recursivelyWalkNodesAndCallback=function(t){var e,o=t.nodes,i=t.callback,n=t.recursionType,r=t.includeFooterNodes,s=t.index,a=o[0];r&&(null===(e=null==a?void 0:a.parent)||void 0===e?void 0:e.sibling)&&o.push(a.parent.sibling);for(var l=0;l<o.length;l++){var u=o[l];if(i(u,s++),u.hasChildren()&&!u.footer){var c=null;switch(n){case qg.Normal:c=u.childrenAfterGroup;break;case qg.AfterFilter:c=u.childrenAfterAggFilter;break;case qg.AfterFilterAndSort:c=u.childrenAfterSort;break;case qg.PivotNodes:c=u.leafGroup?null:u.childrenAfterSort}c&&(s=this.recursivelyWalkNodesAndCallback({nodes:ev(c),callback:i,recursionType:n,index:s,includeFooterNodes:r}))}}return s},e.prototype.doAggregate=function(t){this.aggregationStage&&this.aggregationStage.execute({rowNode:this.rootNode,changedPath:t})},e.prototype.doFilterAggregates=function(t){this.filterAggregatesStage?this.filterAggregatesStage.execute({rowNode:this.rootNode,changedPath:t}):this.rootNode.childrenAfterAggFilter=this.rootNode.childrenAfterFilter},e.prototype.expandOrCollapseAll=function(t){var e=this.gridOptionsService.isTreeData(),o=this.columnModel.isPivotActive(),i=function(n){n&&n.forEach((function(n){var r=function(){n.expanded=t,i(n.childrenAfterGroup)};e?Xi.exists(n.childrenAfterGroup)&&r():o?!n.leafGroup&&r():n.group&&r()}))};this.rootNode&&i(this.rootNode.childrenAfterGroup),this.refreshModel({step:Sa.MAP});var n=t?"expandAll":"collapseAll",r={type:kt.EVENT_EXPAND_COLLAPSE_ALL,source:n};this.eventService.dispatchEvent(r)},e.prototype.doSort=function(t,e){this.sortStage.execute({rowNode:this.rootNode,rowNodeTransactions:t,changedPath:e})},e.prototype.doRowGrouping=function(t,e,o,i,n){if(this.groupStage){if(e?this.groupStage.execute({rowNode:this.rootNode,rowNodeTransactions:e,rowNodeOrder:o,changedPath:i}):(this.groupStage.execute({rowNode:this.rootNode,changedPath:i,afterColumnsChanged:n}),this.restoreGroupState(t)),this.gridOptionsService.is("groupSelectsChildren")&&this.selectionService.updateGroupsFromChildrenSelections("rowGroupChanged",i)){var r={type:kt.EVENT_SELECTION_CHANGED,source:"rowGroupChanged"};this.eventService.dispatchEvent(r)}}else this.rootNode.childrenAfterGroup=this.rootNode.allLeafChildren,this.rootNode.sibling&&(this.rootNode.sibling.childrenAfterGroup=this.rootNode.childrenAfterGroup),this.rootNode.updateHasChildren()},e.prototype.restoreGroupState=function(t){t&&Xi.traverseNodesWithKey(this.rootNode.childrenAfterGroup,(function(e,o){"boolean"==typeof t[o]&&(e.expanded=t[o])}))},e.prototype.doFilter=function(t){this.filterStage.execute({rowNode:this.rootNode,changedPath:t})},e.prototype.doPivot=function(t){this.pivotStage&&this.pivotStage.execute({rowNode:this.rootNode,changedPath:t})},e.prototype.getGroupState=function(){if(!this.rootNode.childrenAfterGroup||!this.gridOptionsService.is("rememberGroupStateWhenNewData"))return null;var t={};return Xi.traverseNodesWithKey(this.rootNode.childrenAfterGroup,(function(e,o){return t[o]=e.expanded})),t},e.prototype.getCopyOfNodesMap=function(){return this.nodeManager.getCopyOfNodesMap()},e.prototype.getRowNode=function(t){if("string"==typeof t&&0==t.indexOf(vs.ID_PREFIX_ROW_GROUP)){var e=void 0;return this.forEachNode((function(o){o.id===t&&(e=o)})),e}return this.nodeManager.getRowNode(t)},e.prototype.setRowData=function(t){var e=this.getGroupState();this.nodeManager.setRowData(t),this.selectionService.reset(),this.filterManager.onNewRowsLoaded("rowDataUpdated");var o={type:kt.EVENT_ROW_DATA_UPDATED};this.eventService.dispatchEvent(o),this.refreshModel({step:Sa.EVERYTHING,groupState:e,newData:!0})},e.prototype.batchUpdateRowData=function(t,e){var o=this;if(null==this.applyAsyncTransactionsTimeout){this.rowDataTransactionBatch=[];var i=this.gridOptionsService.getAsyncTransactionWaitMillis();this.applyAsyncTransactionsTimeout=window.setTimeout((function(){o.executeBatchUpdateRowData()}),i)}this.rowDataTransactionBatch.push({rowDataTransaction:t,callback:e})},e.prototype.flushAsyncTransactions=function(){null!=this.applyAsyncTransactionsTimeout&&(clearTimeout(this.applyAsyncTransactionsTimeout),this.executeBatchUpdateRowData())},e.prototype.executeBatchUpdateRowData=function(){var t=this;this.valueCache.onDataChanged();var e=[],o=[],i=!1;if(this.rowDataTransactionBatch&&this.rowDataTransactionBatch.forEach((function(n){var r=t.nodeManager.updateRowData(n.rowDataTransaction,void 0);o.push(r),n.callback&&e.push(n.callback.bind(null,r)),"number"==typeof n.rowDataTransaction.addIndex&&(i=!0)})),this.commonUpdateRowData(o,void 0,i),e.length>0&&window.setTimeout((function(){e.forEach((function(t){return t()}))}),0),o.length>0){var n={type:kt.EVENT_ASYNC_TRANSACTIONS_FLUSHED,results:o};this.eventService.dispatchEvent(n)}this.rowDataTransactionBatch=null,this.applyAsyncTransactionsTimeout=void 0},e.prototype.updateRowData=function(t,e){this.valueCache.onDataChanged();var o=this.nodeManager.updateRowData(t,e),i="number"==typeof t.addIndex;return this.commonUpdateRowData([o],e,i),o},e.prototype.createRowNodeOrder=function(){if(!this.gridOptionsService.is("suppressMaintainUnsortedOrder")){var t={};if(this.rootNode&&this.rootNode.allLeafChildren)for(var e=0;e<this.rootNode.allLeafChildren.length;e++){t[this.rootNode.allLeafChildren[e].id]=e}return t}},e.prototype.commonUpdateRowData=function(t,e,o){var i=!this.gridOptionsService.is("suppressAnimationFrame");o&&(e=this.createRowNodeOrder()),this.refreshModel({step:Sa.EVERYTHING,rowNodeTransactions:t,rowNodeOrder:e,keepRenderedRows:!0,keepEditingRows:!0,animate:i}),this.filterManager.onNewRowsLoaded("rowDataUpdated");var n={type:kt.EVENT_ROW_DATA_UPDATED};this.eventService.dispatchEvent(n)},e.prototype.doRowsToDisplay=function(){this.rowsToDisplay=this.flattenStage.execute({rowNode:this.rootNode})},e.prototype.onRowHeightChanged=function(){this.refreshModel({step:Sa.MAP,keepRenderedRows:!0,keepEditingRows:!0,keepUndoRedoStack:!0})},e.prototype.onRowHeightChangedDebounced=function(){this.onRowHeightChanged_debounced()},e.prototype.resetRowHeights=function(){var t=!1;this.forEachNode((function(e){e.setRowHeight(e.rowHeight,!0);var o=e.detailNode;o&&o.setRowHeight(o.rowHeight,!0),t=!0})),this.rootNode.setRowHeight(this.rootNode.rowHeight,!0),t&&this.onRowHeightChanged()},$g([U("columnModel")],e.prototype,"columnModel",void 0),$g([U("selectionService")],e.prototype,"selectionService",void 0),$g([U("filterManager")],e.prototype,"filterManager",void 0),$g([U("valueCache")],e.prototype,"valueCache",void 0),$g([U("beans")],e.prototype,"beans",void 0),$g([U("filterStage")],e.prototype,"filterStage",void 0),$g([U("sortStage")],e.prototype,"sortStage",void 0),$g([U("flattenStage")],e.prototype,"flattenStage",void 0),$g([z("groupStage")],e.prototype,"groupStage",void 0),$g([z("aggregationStage")],e.prototype,"aggregationStage",void 0),$g([z("pivotStage")],e.prototype,"pivotStage",void 0),$g([z("filterAggregatesStage")],e.prototype,"filterAggregatesStage",void 0),$g([B],e.prototype,"init",null),e=$g([W("rowModel")],e)}(Mt),nv=function(){var t=function(e,o){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])})(e,o)};return function(e,o){function i(){this.constructor=e}t(e,o),e.prototype=null===o?Object.create(o):(i.prototype=o.prototype,new i)}}(),rv=function(t,e,o,i){var n,r=arguments.length,s=r<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,o):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,o,i);else for(var a=t.length-1;a>=0;a--)(n=t[a])&&(s=(r<3?n(s):r>3?n(e,o,s):n(e,o))||s);return r>3&&s&&Object.defineProperty(e,o,s),s},sv=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return nv(e,t),e.prototype.execute=function(t){var e=t.changedPath;this.filterService.filter(e)},rv([U("filterService")],e.prototype,"filterService",void 0),e=rv([W("filterStage")],e)}(Mt),av=function(){var t=function(e,o){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])})(e,o)};return function(e,o){function i(){this.constructor=e}t(e,o),e.prototype=null===o?Object.create(o):(i.prototype=o.prototype,new i)}}(),lv=function(t,e,o,i){var n,r=arguments.length,s=r<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,o):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,o,i);else for(var a=t.length-1;a>=0;a--)(n=t[a])&&(s=(r<3?n(s):r>3?n(e,o,s):n(e,o))||s);return r>3&&s&&Object.defineProperty(e,o,s),s},uv=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return av(e,t),e.prototype.execute=function(t){var e=this,o=this.sortController.getSortOptions(),i=Xi.exists(o)&&o.length>0,n=i&&Xi.exists(t.rowNodeTransactions)&&this.gridOptionsService.is("deltaSort"),r=o.some((function(t){return!!e.columnModel.getGroupDisplayColumnForGroup(t.column.getId())}));this.sortService.sort(o,i,n,t.rowNodeTransactions,t.changedPath,r)},lv([U("sortService")],e.prototype,"sortService",void 0),lv([U("sortController")],e.prototype,"sortController",void 0),lv([U("columnModel")],e.prototype,"columnModel",void 0),e=lv([W("sortStage")],e)}(Mt),cv=function(){var t=function(e,o){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])})(e,o)};return function(e,o){function i(){this.constructor=e}t(e,o),e.prototype=null===o?Object.create(o):(i.prototype=o.prototype,new i)}}(),pv=function(t,e,o,i){var n,r=arguments.length,s=r<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,o):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,o,i);else for(var a=t.length-1;a>=0;a--)(n=t[a])&&(s=(r<3?n(s):r>3?n(e,o,s):n(e,o))||s);return r>3&&s&&Object.defineProperty(e,o,s),s},dv=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return cv(e,t),e.prototype.execute=function(t){var e=t.rowNode,o=[],i={value:0},n=this.columnModel.isPivotMode(),r=n&&e.leafGroup,s=r?[e]:e.childrenAfterSort;return this.recursivelyAddToRowsToDisplay(s,o,i,n,0),!r&&o.length>0&&this.gridOptionsService.is("groupIncludeTotalFooter")&&(e.createFooter(),this.addRowNodeToRowsToDisplay(e.sibling,o,i,0)),o},e.prototype.recursivelyAddToRowsToDisplay=function(t,e,o,i,n){if(!Xi.missingOrEmpty(t))for(var r=this.gridOptionsService.is("groupHideOpenParents"),s=this.gridOptionsService.is("groupRemoveSingleChildren"),a=!s&&this.gridOptionsService.is("groupRemoveLowestSingleChildren"),l=0;l<t.length;l++){var u=t[l],c=u.hasChildren(),p=i&&!c,d=s&&c&&1===u.childrenAfterGroup.length,h=a&&c&&u.leafGroup&&1===u.childrenAfterGroup.length,f=i&&u.leafGroup,g=r&&u.expanded&&!u.master&&!f;if(!(p||g||d||h)&&this.addRowNodeToRowsToDisplay(u,e,o,n),!i||!u.leafGroup)if(c){var v=d||h;if(u.expanded||v){var y=v?n:n+1;this.recursivelyAddToRowsToDisplay(u.childrenAfterSort,e,o,i,y),this.gridOptionsService.is("groupIncludeFooter")&&this.addRowNodeToRowsToDisplay(u.sibling,e,o,n)}}else if(u.master&&u.expanded){var m=this.createDetailNode(u);this.addRowNodeToRowsToDisplay(m,e,o,n)}}},e.prototype.addRowNodeToRowsToDisplay=function(t,e,o,i){var n=this.gridOptionsService.isGroupMultiAutoColumn();e.push(t),t.setUiLevel(n?0:i)},e.prototype.createDetailNode=function(t){if(Xi.exists(t.detailNode))return t.detailNode;var e=new vs(this.beans);return e.detail=!0,e.selectable=!1,e.parent=t,Xi.exists(t.id)&&(e.id="detail_"+t.id),e.data=t.data,e.level=t.level+1,t.detailNode=e,e},pv([U("columnModel")],e.prototype,"columnModel",void 0),pv([U("beans")],e.prototype,"beans",void 0),e=pv([W("flattenStage")],e)}(Mt),hv=function(){var t=function(e,o){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])})(e,o)};return function(e,o){function i(){this.constructor=e}t(e,o),e.prototype=null===o?Object.create(o):(i.prototype=o.prototype,new i)}}(),fv=function(t,e,o,i){var n,r=arguments.length,s=r<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,o):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,o,i);else for(var a=t.length-1;a>=0;a--)(n=t[a])&&(s=(r<3?n(s):r>3?n(e,o,s):n(e,o))||s);return r>3&&s&&Object.defineProperty(e,o,s),s},gv=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return hv(e,t),e.prototype.init=function(){this.postSortFunc=this.getPostSortFunc()},e.prototype.sort=function(t,e,o,i,n,r){var s=this,a=this.gridOptionsService.is("groupMaintainOrder"),l=this.columnModel.getAllGridColumns().some((function(t){return t.isRowGroupActive()})),u={};o&&i&&(u=this.calculateDirtyNodes(i));var c=this.columnModel.isPivotMode();n&&n.forEachChangedNodeDepthFirst((function(i){s.pullDownGroupDataForHideOpenParents(i.childrenAfterAggFilter,!0);var p=c&&i.leafGroup;if(a&&l&&!i.leafGroup&&!r){var d=i.childrenAfterAggFilter.slice(0);if(i.childrenAfterSort){var h={};i.childrenAfterSort.forEach((function(t,e){h[t.id]=e})),d.sort((function(t,e){var o,i;return(null!==(o=h[t.id])&&void 0!==o?o:0)-(null!==(i=h[e.id])&&void 0!==i?i:0)}))}i.childrenAfterSort=d}else i.childrenAfterSort=!e||p?i.childrenAfterAggFilter.slice(0):o?s.doDeltaSort(i,u,n,t):s.rowNodeSorter.doFullSort(i.childrenAfterAggFilter,t);if(i.sibling&&(i.sibling.childrenAfterSort=i.childrenAfterSort),s.updateChildIndexes(i),s.postSortFunc){var f={nodes:i.childrenAfterSort};s.postSortFunc(f)}})),this.updateGroupDataForHideOpenParents(n)},e.prototype.getPostSortFunc=function(){var t=this.gridOptionsService.getCallback("postSortRows");if(t)return t;var e=this.gridOptionsService.get("postSort");return e?function(t){return e(t.nodes)}:void 0},e.prototype.calculateDirtyNodes=function(t){var e={},o=function(t){t&&t.forEach((function(t){return e[t.id]=!0}))};return t&&t.forEach((function(t){o(t.add),o(t.update),o(t.remove)})),e},e.prototype.doDeltaSort=function(t,e,o,i){var n=this,r=t.childrenAfterAggFilter,s=t.childrenAfterSort;if(!s)return this.rowNodeSorter.doFullSort(r,i);var a={},l=[];r.forEach((function(t){e[t.id]||!o.canSkip(t)?l.push(t):a[t.id]=!0}));var u=s.filter((function(t){return a[t.id]})),c=function(t,e){return{currentPos:e,rowNode:t}},p=l.map(c).sort((function(t,e){return n.rowNodeSorter.compareRowNodes(i,t,e)}));return this.mergeSortedArrays(i,p,u.map(c)).map((function(t){return t.rowNode}))},e.prototype.mergeSortedArrays=function(t,e,o){for(var i=[],n=0,r=0;n<e.length&&r<o.length;){this.rowNodeSorter.compareRowNodes(t,e[n],o[r])<0?i.push(e[n++]):i.push(o[r++])}for(;n<e.length;)i.push(e[n++]);for(;r<o.length;)i.push(o[r++]);return i},e.prototype.updateChildIndexes=function(t){if(!Xi.missing(t.childrenAfterSort))for(var e=t.childrenAfterSort,o=0;o<e.length;o++){var i=e[o],n=0===o,r=o===t.childrenAfterSort.length-1;i.setFirstChild(n),i.setLastChild(r),i.setChildIndex(o)}},e.prototype.updateGroupDataForHideOpenParents=function(t){var e=this;if(this.gridOptionsService.is("groupHideOpenParents")){if(this.gridOptionsService.isTreeData()){return Xi.doOnce((function(){return console.warn("AG Grid: The property hideOpenParents dose not work with Tree Data. This is because Tree Data has values at the group level, it doesn't make sense to hide them (as opposed to Row Grouping, which only has Aggregated Values at the group level).")}),"sortService.hideOpenParentsWithTreeData"),!1}var o=function(t){e.pullDownGroupDataForHideOpenParents(t.childrenAfterSort,!1),t.childrenAfterSort.forEach((function(t){t.hasChildren()&&o(t)}))};t&&t.executeFromRootNode((function(t){return o(t)}))}},e.prototype.pullDownGroupDataForHideOpenParents=function(t,e){var o=this;this.gridOptionsService.is("groupHideOpenParents")&&!Xi.missing(t)&&t.forEach((function(t){o.columnModel.getGroupDisplayColumns().forEach((function(i){var n=i.getColDef().showRowGroup;if("string"==typeof n){var r=n,s=o.columnModel.getPrimaryColumn(r);if(!(s===t.rowGroupColumn))if(e)t.setGroupValue(i.getId(),void 0);else{var a=t.getFirstChildOfFirstChild(s);a&&t.setGroupValue(i.getId(),a.key)}}else console.error("AG Grid: groupHideOpenParents only works when specifying specific columns for colDef.showRowGroup")}))}))},fv([U("columnModel")],e.prototype,"columnModel",void 0),fv([U("rowNodeSorter")],e.prototype,"rowNodeSorter",void 0),fv([B],e.prototype,"init",null),e=fv([W("sortService")],e)}(Mt),vv=function(){var t=function(e,o){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])})(e,o)};return function(e,o){function i(){this.constructor=e}t(e,o),e.prototype=null===o?Object.create(o):(i.prototype=o.prototype,new i)}}(),yv=function(t,e,o,i){var n,r=arguments.length,s=r<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,o):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,o,i);else for(var a=t.length-1;a>=0;a--)(n=t[a])&&(s=(r<3?n(s):r>3?n(e,o,s):n(e,o))||s);return r>3&&s&&Object.defineProperty(e,o,s),s},mv=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return vv(e,t),e.prototype.filter=function(t){var e=this.filterManager.isColumnFilterPresent()||this.filterManager.isQuickFilterPresent()||this.filterManager.isExternalFilterPresent();this.filterNodes(e,t)},e.prototype.filterNodes=function(t,e){var o=this,i=function(e,i){e.hasChildren()?e.childrenAfterFilter=t&&!i?e.childrenAfterGroup.filter((function(t){var e=t.childrenAfterFilter&&t.childrenAfterFilter.length>0,i=t.data&&o.filterManager.doesRowPassFilter({rowNode:t});return e||i})):e.childrenAfterGroup:e.childrenAfterFilter=e.childrenAfterGroup,e.sibling&&(e.sibling.childrenAfterFilter=e.childrenAfterFilter)};if(this.doingTreeDataFiltering()){var n=function(t,e){if(t.childrenAfterGroup)for(var r=0;r<t.childrenAfterGroup.length;r++){var s=t.childrenAfterGroup[r],a=e||o.filterManager.doesRowPassFilter({rowNode:s});s.childrenAfterGroup?n(t.childrenAfterGroup[r],a):i(s,a)}i(t,e)};e.executeFromRootNode((function(t){return n(t,!1)}))}else{e.forEachChangedNodeDepthFirst((function(t){return i(t,!1)}),!0)}},e.prototype.doingTreeDataFiltering=function(){return this.gridOptionsService.isTreeData()&&!this.gridOptionsService.is("excludeChildrenWhenTreeDataFiltering")},yv([U("filterManager")],e.prototype,"filterManager",void 0),e=yv([W("filterService")],e)}(Mt),Cv=function(){var t=function(e,o){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])})(e,o)};return function(e,o){function i(){this.constructor=e}t(e,o),e.prototype=null===o?Object.create(o):(i.prototype=o.prototype,new i)}}(),wv=function(t,e,o,i){var n,r=arguments.length,s=r<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,o):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,o,i);else for(var a=t.length-1;a>=0;a--)(n=t[a])&&(s=(r<3?n(s):r>3?n(e,o,s):n(e,o))||s);return r>3&&s&&Object.defineProperty(e,o,s),s},Sv=function(t,e){var o="function"==typeof Symbol&&t[Symbol.iterator];if(!o)return t;var i,n,r=o.call(t),s=[];try{for(;(void 0===e||e-- >0)&&!(i=r.next()).done;)s.push(i.value)}catch(t){n={error:t}}finally{try{i&&!i.done&&(o=r.return)&&o.call(r)}finally{if(n)throw n.error}}return s},Ev=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Cv(e,t),e.prototype.postConstruct=function(){"clientSide"===this.rowModel.getType()&&(this.clientSideRowModel=this.rowModel)},e.prototype.isActive=function(){var t=this.gridOptionsService.exists("getRowId"),e=this.gridOptionsService.is("immutableData");return!this.gridOptionsService.is("resetRowDataOnUpdate")&&(t||e)},e.prototype.setRowData=function(t){var e=this.createTransactionForRowData(t);if(e){var o=Sv(e,2),i=o[0],n=o[1],r=this.clientSideRowModel.updateRowData(i,n);r&&this.rowRenderer.refreshFullWidthRows(r.update)}},e.prototype.createTransactionForRowData=function(t){if(Xi.missing(this.clientSideRowModel))console.error("AG Grid: ImmutableService only works with ClientSideRowModel");else{var e=this.gridOptionsService.getRowIdFunc();if(null!=e){var o={remove:[],update:[],add:[]},i=this.clientSideRowModel.getCopyOfNodesMap(),n=this.gridOptionsService.is("suppressMaintainUnsortedOrder")?void 0:{};return Xi.exists(t)&&t.forEach((function(t,r){var s=e({data:t,level:0}),a=i[s];(n&&(n[s]=r),a)?(a.data!==t&&o.update.push(t),i[s]=void 0):o.add.push(t)})),Xi.iterateObject(i,(function(t,e){e&&o.remove.push(e.data)})),[o,n]}console.error("AG Grid: ImmutableService requires getRowId() callback to be implemented, your row data needs IDs!")}},wv([U("rowModel")],e.prototype,"rowModel",void 0),wv([U("rowRenderer")],e.prototype,"rowRenderer",void 0),wv([B],e.prototype,"postConstruct",null),e=wv([W("immutableService")],e)}(Mt),Rv={version:"29.2.0",moduleName:Q.ClientSideRowModelModule,rowModel:"clientSide",beans:[iv,sv,uv,dv,gv,mv,Ev]},Ov=function(){var t=function(e,o){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])})(e,o)};return function(e,o){function i(){this.constructor=e}t(e,o),e.prototype=null===o?Object.create(o):(i.prototype=o.prototype,new i)}}(),bv=function(t,e,o,i){var n,r=arguments.length,s=r<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,o):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,o,i);else for(var a=t.length-1;a>=0;a--)(n=t[a])&&(s=(r<3?n(s):r>3?n(e,o,s):n(e,o))||s);return r>3&&s&&Object.defineProperty(e,o,s),s},Tv=function(t){function e(e,o,i){var n=t.call(this,e)||this;return n.parentCache=o,n.params=i,n.startRow=e*i.blockSize,n.endRow=n.startRow+i.blockSize,n}return Ov(e,t),e.prototype.postConstruct=function(){this.createRowNodes()},e.prototype.getBlockStateJson=function(){return{id:""+this.getId(),state:{blockNumber:this.getId(),startRow:this.getStartRow(),endRow:this.getEndRow(),pageStatus:this.getState()}}},e.prototype.setDataAndId=function(t,e,o){!t.id&&t.alreadyRendered&&(t.alreadyRendered=!1),Xi.exists(e)?t.setDataAndId(e,o.toString()):t.setDataAndId(void 0,void 0)},e.prototype.loadFromDatasource=function(){var t=this,e=this.createLoadParams();Xi.missing(this.params.datasource.getRows)?console.warn("AG Grid: datasource is missing getRows method"):window.setTimeout((function(){t.params.datasource.getRows(e)}),0)},e.prototype.processServerFail=function(){},e.prototype.createLoadParams=function(){return{startRow:this.getStartRow(),endRow:this.getEndRow(),successCallback:this.pageLoaded.bind(this,this.getVersion()),failCallback:this.pageLoadFailed.bind(this,this.getVersion()),sortModel:this.params.sortModel,filterModel:this.params.filterModel,context:this.gridOptionsService.context}},e.prototype.forEachNode=function(t,e,o){var i=this;this.rowNodes.forEach((function(n,r){i.startRow+r<o&&t(n,e.next())}))},e.prototype.getLastAccessed=function(){return this.lastAccessed},e.prototype.getRow=function(t,e){void 0===e&&(e=!1),e||(this.lastAccessed=this.params.lastAccessedSequence.next());var o=t-this.startRow;return this.rowNodes[o]},e.prototype.getStartRow=function(){return this.startRow},e.prototype.getEndRow=function(){return this.endRow},e.prototype.createRowNodes=function(){this.rowNodes=[];for(var t=0;t<this.params.blockSize;t++){var e=this.startRow+t,o=new vs(this.beans);o.setRowHeight(this.params.rowHeight),o.uiLevel=0,o.setRowIndex(e),o.setRowTop(this.params.rowHeight*e),this.rowNodes.push(o)}},e.prototype.processServerResult=function(t){var e=this;this.rowNodes.forEach((function(o,i){var n=t.rowData?t.rowData[i]:void 0;e.setDataAndId(o,n,e.startRow+i)}));var o=null!=t.rowCount&&t.rowCount>=0?t.rowCount:void 0;this.parentCache.pageLoaded(this,o)},e.prototype.destroyRowNodes=function(){this.rowNodes.forEach((function(t){t.clearRowTopAndRowIndex()}))},bv([U("beans")],e.prototype,"beans",void 0),bv([B],e.prototype,"postConstruct",null),bv([j],e.prototype,"destroyRowNodes",null),e}(Wp),Pv=function(){var t=function(e,o){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])})(e,o)};return function(e,o){function i(){this.constructor=e}t(e,o),e.prototype=null===o?Object.create(o):(i.prototype=o.prototype,new i)}}(),Dv=function(t,e,o,i){var n,r=arguments.length,s=r<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,o):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,o,i);else for(var a=t.length-1;a>=0;a--)(n=t[a])&&(s=(r<3?n(s):r>3?n(e,o,s):n(e,o))||s);return r>3&&s&&Object.defineProperty(e,o,s),s},_v=function(t,e){return function(o,i){e(o,i,t)}},Av=function(t){function e(e){var o=t.call(this)||this;return o.lastRowIndexKnown=!1,o.blocks={},o.blockCount=0,o.rowCount=e.initialRowCount,o.params=e,o}return Pv(e,t),e.prototype.setBeans=function(t){this.logger=t.create("InfiniteCache")},e.prototype.getRow=function(t,e){void 0===e&&(e=!1);var o=Math.floor(t/this.params.blockSize),i=this.blocks[o];if(!i){if(e)return;i=this.createBlock(o)}return i.getRow(t)},e.prototype.createBlock=function(t){var e=this.createBean(new Tv(t,this,this.params));return this.blocks[e.getId()]=e,this.blockCount++,this.purgeBlocksIfNeeded(e),this.params.rowNodeBlockLoader.addBlock(e),e},e.prototype.refreshCache=function(){0==this.blockCount?this.purgeCache():(this.getBlocksInOrder().forEach((function(t){return t.setStateWaitingToLoad()})),this.params.rowNodeBlockLoader.checkBlockToLoad())},e.prototype.destroyAllBlocks=function(){var t=this;this.getBlocksInOrder().forEach((function(e){return t.destroyBlock(e)}))},e.prototype.getRowCount=function(){return this.rowCount},e.prototype.isLastRowIndexKnown=function(){return this.lastRowIndexKnown},e.prototype.pageLoaded=function(t,e){this.isAlive()&&(this.logger.log("onPageLoaded: page = "+t.getId()+", lastRow = "+e),this.checkRowCount(t,e),this.onCacheUpdated())},e.prototype.purgeBlocksIfNeeded=function(t){var o=this,i=this.getBlocksInOrder().filter((function(e){return e!=t}));i.sort((function(t,e){return e.getLastAccessed()-t.getLastAccessed()}));var n=this.params.maxBlocksInCache>0,r=n?this.params.maxBlocksInCache-1:null,s=e.MAX_EMPTY_BLOCKS_TO_KEEP-1;i.forEach((function(t,e){if(t.getState()===Tv.STATE_WAITING_TO_LOAD&&e>=s||!!n&&e>=r){if(o.isBlockCurrentlyDisplayed(t))return;if(o.isBlockFocused(t))return;o.removeBlockFromCache(t)}}))},e.prototype.isBlockFocused=function(t){var e=this.focusService.getFocusCellToUseAfterRefresh();if(!e)return!1;if(null!=e.rowPinned)return!1;var o=t.getStartRow(),i=t.getEndRow();return e.rowIndex>=o&&e.rowIndex<i},e.prototype.isBlockCurrentlyDisplayed=function(t){var e=t.getStartRow(),o=t.getEndRow()-1;return this.rowRenderer.isRangeInRenderedViewport(e,o)},e.prototype.removeBlockFromCache=function(t){t&&this.destroyBlock(t)},e.prototype.checkRowCount=function(t,e){if("number"==typeof e&&e>=0)this.rowCount=e,this.lastRowIndexKnown=!0;else if(!this.lastRowIndexKnown){var o=(t.getId()+1)*this.params.blockSize+this.params.overflowSize;this.rowCount<o&&(this.rowCount=o)}},e.prototype.setRowCount=function(t,e){this.rowCount=t,Xi.exists(e)&&(this.lastRowIndexKnown=e),this.lastRowIndexKnown||this.rowCount%this.params.blockSize==0&&this.rowCount++,this.onCacheUpdated()},e.prototype.forEachNodeDeep=function(t){var e=this,o=new Ji;this.getBlocksInOrder().forEach((function(i){return i.forEachNode(t,o,e.rowCount)}))},e.prototype.getBlocksInOrder=function(){return Xi.getAllValuesInObject(this.blocks).sort((function(t,e){return t.getId()-e.getId()}))},e.prototype.destroyBlock=function(t){delete this.blocks[t.getId()],this.destroyBean(t),this.blockCount--,this.params.rowNodeBlockLoader.removeBlock(t)},e.prototype.onCacheUpdated=function(){if(this.isAlive()){this.destroyAllBlocksPastVirtualRowCount();var t={type:kt.EVENT_STORE_UPDATED};this.eventService.dispatchEvent(t)}},e.prototype.destroyAllBlocksPastVirtualRowCount=function(){var t=this,e=[];this.getBlocksInOrder().forEach((function(o){o.getId()*t.params.blockSize>=t.rowCount&&e.push(o)})),e.length>0&&e.forEach((function(e){return t.destroyBlock(e)}))},e.prototype.purgeCache=function(){var t=this;this.getBlocksInOrder().forEach((function(e){return t.removeBlockFromCache(e)})),this.lastRowIndexKnown=!1,0===this.rowCount&&(this.rowCount=this.params.initialRowCount),this.onCacheUpdated()},e.prototype.getRowNodesInRange=function(t,e){var o=this,i=[],n=-1,r=!1,s=new Ji;Xi.missing(t)&&(r=!0);var a=!1;return this.getBlocksInOrder().forEach((function(l){a||(r&&n+1!==l.getId()?a=!0:(n=l.getId(),l.forEachNode((function(o){var n=o===t||o===e;(r||n)&&i.push(o),n&&(r=!r)}),s,o.rowCount)))})),a||r?[]:i},e.MAX_EMPTY_BLOCKS_TO_KEEP=2,Dv([U("rowRenderer")],e.prototype,"rowRenderer",void 0),Dv([U("focusService")],e.prototype,"focusService",void 0),Dv([_v(0,Y("loggerFactory"))],e.prototype,"setBeans",null),Dv([j],e.prototype,"destroyAllBlocks",null),e}(Mt),Nv=function(){var t=function(e,o){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])})(e,o)};return function(e,o){function i(){this.constructor=e}t(e,o),e.prototype=null===o?Object.create(o):(i.prototype=o.prototype,new i)}}(),Fv=function(t,e,o,i){var n,r=arguments.length,s=r<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,o):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,o,i);else for(var a=t.length-1;a>=0;a--)(n=t[a])&&(s=(r<3?n(s):r>3?n(e,o,s):n(e,o))||s);return r>3&&s&&Object.defineProperty(e,o,s),s},Lv=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Nv(e,t),e.prototype.getRowBounds=function(t){return{rowHeight:this.rowHeight,rowTop:this.rowHeight*t}},e.prototype.ensureRowHeightsValid=function(t,e,o,i){return!1},e.prototype.init=function(){var t=this;this.gridOptionsService.isRowModelType("infinite")&&(this.rowHeight=this.gridOptionsService.getRowHeightAsNumber(),this.addEventListeners(),this.addDestroyFunc((function(){return t.destroyCache()})),this.verifyProps())},e.prototype.verifyProps=function(){if(this.gridOptionsService.exists("initialGroupOrderComparator")||this.gridOptionsService.exists("defaultGroupOrderComparator")){Xi.doOnce((function(){return console.warn("AG Grid: initialGroupOrderComparator cannot be used with Infinite Row Model. If using Infinite Row Model, then sorting is done on the server side, nothing to do with the client.")}),"IRM.InitialGroupOrderComparator")}},e.prototype.start=function(){this.setDatasource(this.gridOptionsService.get("datasource"))},e.prototype.destroyDatasource=function(){this.datasource&&(this.getContext().destroyBean(this.datasource),this.rowRenderer.datasourceChanged(),this.datasource=null)},e.prototype.addEventListeners=function(){this.addManagedListener(this.eventService,kt.EVENT_FILTER_CHANGED,this.onFilterChanged.bind(this)),this.addManagedListener(this.eventService,kt.EVENT_SORT_CHANGED,this.onSortChanged.bind(this)),this.addManagedListener(this.eventService,kt.EVENT_NEW_COLUMNS_LOADED,this.onColumnEverything.bind(this)),this.addManagedListener(this.eventService,kt.EVENT_STORE_UPDATED,this.onCacheUpdated.bind(this))},e.prototype.onFilterChanged=function(){this.reset()},e.prototype.onSortChanged=function(){this.reset()},e.prototype.onColumnEverything=function(){(!this.cacheParams||this.isSortModelDifferent())&&this.reset()},e.prototype.isSortModelDifferent=function(){return!Xi.jsonEquals(this.cacheParams.sortModel,this.sortController.getSortModel())},e.prototype.getType=function(){return"infinite"},e.prototype.setDatasource=function(t){this.destroyDatasource(),this.datasource=t,t&&this.reset()},e.prototype.isEmpty=function(){return!this.infiniteCache},e.prototype.isRowsToRender=function(){return!!this.infiniteCache},e.prototype.getNodesInRangeForSelection=function(t,e){return this.infiniteCache?this.infiniteCache.getRowNodesInRange(t,e):[]},e.prototype.reset=function(){if(this.datasource){null!=this.gridOptionsService.getRowIdFunc()||this.selectionService.reset(),this.resetCache();var t=this.createModelUpdatedEvent();this.eventService.dispatchEvent(t)}},e.prototype.createModelUpdatedEvent=function(){return{type:kt.EVENT_MODEL_UPDATED,newPage:!1,newData:!1,keepRenderedRows:!0,animate:!1}},e.prototype.resetCache=function(){this.destroyCache(),this.cacheParams={datasource:this.datasource,filterModel:this.filterManager.getFilterModel(),sortModel:this.sortController.getSortModel(),rowNodeBlockLoader:this.rowNodeBlockLoader,initialRowCount:this.defaultIfInvalid(this.gridOptionsService.getNum("infiniteInitialRowCount"),1),maxBlocksInCache:this.gridOptionsService.getNum("maxBlocksInCache"),rowHeight:this.gridOptionsService.getRowHeightAsNumber(),overflowSize:this.defaultIfInvalid(this.gridOptionsService.getNum("cacheOverflowSize"),1),blockSize:this.defaultIfInvalid(this.gridOptionsService.getNum("cacheBlockSize"),100),lastAccessedSequence:new Ji},this.infiniteCache=this.createBean(new Av(this.cacheParams))},e.prototype.defaultIfInvalid=function(t,e){return t>0?t:e},e.prototype.destroyCache=function(){this.infiniteCache&&(this.infiniteCache=this.destroyBean(this.infiniteCache))},e.prototype.onCacheUpdated=function(){var t=this.createModelUpdatedEvent();this.eventService.dispatchEvent(t)},e.prototype.getRow=function(t){if(this.infiniteCache&&!(t>=this.infiniteCache.getRowCount()))return this.infiniteCache.getRow(t)},e.prototype.getRowNode=function(t){var e;return this.forEachNode((function(o){o.id===t&&(e=o)})),e},e.prototype.forEachNode=function(t){this.infiniteCache&&this.infiniteCache.forEachNodeDeep(t)},e.prototype.getTopLevelRowCount=function(){return this.getRowCount()},e.prototype.getTopLevelRowDisplayedIndex=function(t){return t},e.prototype.getRowIndexAtPixel=function(t){if(0!==this.rowHeight){var e=Math.floor(t/this.rowHeight),o=this.getRowCount()-1;return e>o?o:e}return 0},e.prototype.getRowCount=function(){return this.infiniteCache?this.infiniteCache.getRowCount():0},e.prototype.isRowPresent=function(t){return!!this.getRowNode(t.id)},e.prototype.refreshCache=function(){this.infiniteCache&&this.infiniteCache.refreshCache()},e.prototype.purgeCache=function(){this.infiniteCache&&this.infiniteCache.purgeCache()},e.prototype.isLastRowIndexKnown=function(){return!!this.infiniteCache&&this.infiniteCache.isLastRowIndexKnown()},e.prototype.setRowCount=function(t,e){this.infiniteCache&&this.infiniteCache.setRowCount(t,e)},Fv([U("filterManager")],e.prototype,"filterManager",void 0),Fv([U("sortController")],e.prototype,"sortController",void 0),Fv([U("selectionService")],e.prototype,"selectionService",void 0),Fv([U("rowRenderer")],e.prototype,"rowRenderer",void 0),Fv([U("rowNodeBlockLoader")],e.prototype,"rowNodeBlockLoader",void 0),Fv([B],e.prototype,"init",null),Fv([j],e.prototype,"destroyDatasource",null),e=Fv([W("rowModel")],e)}(Mt),Mv={version:"29.2.0",moduleName:Q.InfiniteRowModelModule,rowModel:"infinite",beans:[Lv]},Iv=function(){function t(){}return t.prototype.setBeans=function(t){this.beans=t},t.prototype.getFileName=function(t){var e=this.getDefaultFileExtension();return null!=t&&t.length||(t=this.getDefaultFileName()),-1===t.indexOf(".")?t+"."+e:t},t.prototype.getData=function(t){var e=this.createSerializingSession(t);return this.beans.gridSerializer.serialize(e,t)},t}(),Gv=function(){function t(t){this.groupColumns=[];var e=t.columnModel,o=t.valueService,i=t.gridOptionsService,n=t.processCellCallback,r=t.processHeaderCallback,s=t.processGroupHeaderCallback,a=t.processRowGroupCallback;this.columnModel=e,this.valueService=o,this.gridOptionsService=i,this.processCellCallback=n,this.processHeaderCallback=r,this.processGroupHeaderCallback=s,this.processRowGroupCallback=a}return t.prototype.prepare=function(t){this.groupColumns=t.filter((function(t){return!!t.getColDef().showRowGroup}))},t.prototype.extractHeaderValue=function(t){var e=this.getHeaderName(this.processHeaderCallback,t);return null!=e?e:""},t.prototype.extractRowCellValue=function(t,e,o,i,n){var r=!this.gridOptionsService.is("groupHideOpenParents")&&this.shouldRenderGroupSummaryCell(n,t,e)?this.createValueForGroupNode(n):this.valueService.getValue(t,n),s=this.processCell({accumulatedRowIndex:o,rowNode:n,column:t,value:r,processCellCallback:this.processCellCallback,type:i});return null!=s?s:""},t.prototype.shouldRenderGroupSummaryCell=function(t,e,o){var i;if(!(t&&t.group))return!1;if(-1!==this.groupColumns.indexOf(e)){if(null===(i=t.groupData)||void 0===i?void 0:i[e.getId()])return!0;if(t.footer&&-1===t.level){var n=e.getColDef();return null==n||!0===n.showRowGroup||n.showRowGroup===this.columnModel.getRowGroupColumns()[0].getId()}}var r=this.gridOptionsService.isGroupUseEntireRow(this.columnModel.isPivotMode());return 0===o&&r},t.prototype.getHeaderName=function(t,e){return t?t({column:e,api:this.gridOptionsService.api,columnApi:this.gridOptionsService.columnApi,context:this.gridOptionsService.context}):this.columnModel.getDisplayNameForColumn(e,"csv",!0)},t.prototype.createValueForGroupNode=function(t){if(this.processRowGroupCallback)return this.processRowGroupCallback({node:t,api:this.gridOptionsService.api,columnApi:this.gridOptionsService.columnApi,context:this.gridOptionsService.context});var e=t.footer,o=[t.key];if(!this.gridOptionsService.isGroupMultiAutoColumn())for(;t.parent;)t=t.parent,o.push(t.key);var i=o.reverse().join(" -> ");return e?"Total "+i:i},t.prototype.processCell=function(t){var e=t.accumulatedRowIndex,o=t.rowNode,i=t.column,n=t.value,r=t.processCellCallback,s=t.type;return r?r({accumulatedRowIndex:e,column:i,node:o,value:n,api:this.gridOptionsService.api,columnApi:this.gridOptionsService.columnApi,context:this.gridOptionsService.context,type:s}):null!=n?n:""},t}(),xv=function(){function t(){}return t.download=function(t,e){var o=document.defaultView||window;if(o){var i=document.createElement("a"),n=o.URL.createObjectURL(e);i.setAttribute("href",n),i.setAttribute("download",t),i.style.display="none",document.body.appendChild(i),i.dispatchEvent(new MouseEvent("click",{bubbles:!1,cancelable:!0,view:o})),document.body.removeChild(i),o.setTimeout((function(){o.URL.revokeObjectURL(n)}),0)}else console.warn("AG Grid: There is no `window` associated with the current `document`")},t}(),Hv=function(){var t=function(e,o){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])})(e,o)};return function(e,o){function i(){this.constructor=e}t(e,o),e.prototype=null===o?Object.create(o):(i.prototype=o.prototype,new i)}}(),Vv=function(t){function e(e){var o=t.call(this,e)||this;o.isFirstLine=!0,o.result="";var i=e.suppressQuotes,n=e.columnSeparator;return o.suppressQuotes=i,o.columnSeparator=n,o}return Hv(e,t),e.prototype.addCustomContent=function(t){var e=this;t&&("string"==typeof t?(/^\s*\n/.test(t)||this.beginNewLine(),t=t.replace(/\r?\n/g,"\r\n"),this.result+=t):t.forEach((function(t){e.beginNewLine(),t.forEach((function(t,o){0!==o&&(e.result+=e.columnSeparator),e.result+=e.putInQuotes(t.data.value||""),t.mergeAcross&&e.appendEmptyCells(t.mergeAcross)}))})))},e.prototype.onNewHeaderGroupingRow=function(){return this.beginNewLine(),{onColumn:this.onNewHeaderGroupingRowColumn.bind(this)}},e.prototype.onNewHeaderGroupingRowColumn=function(t,e,o,i){0!=o&&(this.result+=this.columnSeparator),this.result+=this.putInQuotes(e),this.appendEmptyCells(i)},e.prototype.appendEmptyCells=function(t){for(var e=1;e<=t;e++)this.result+=this.columnSeparator+this.putInQuotes("")},e.prototype.onNewHeaderRow=function(){return this.beginNewLine(),{onColumn:this.onNewHeaderRowColumn.bind(this)}},e.prototype.onNewHeaderRowColumn=function(t,e){0!=e&&(this.result+=this.columnSeparator),this.result+=this.putInQuotes(this.extractHeaderValue(t))},e.prototype.onNewBodyRow=function(){return this.beginNewLine(),{onColumn:this.onNewBodyRowColumn.bind(this)}},e.prototype.onNewBodyRowColumn=function(t,e,o){0!=e&&(this.result+=this.columnSeparator),this.result+=this.putInQuotes(this.extractRowCellValue(t,e,e,"csv",o))},e.prototype.putInQuotes=function(t){return this.suppressQuotes?t:null==t?'""':("string"==typeof t?e=t:"function"==typeof t.toString?e=t.toString():(console.warn("AG Grid: unknown value type during csv conversion"),e=""),'"'+e.replace(/"/g,'""')+'"');var e},e.prototype.parse=function(){return this.result},e.prototype.beginNewLine=function(){this.isFirstLine||(this.result+="\r\n"),this.isFirstLine=!1},e}(Gv),kv=function(){var t=function(e,o){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])})(e,o)};return function(e,o){function i(){this.constructor=e}t(e,o),e.prototype=null===o?Object.create(o):(i.prototype=o.prototype,new i)}}(),Bv=function(t,e,o,i){var n,r=arguments.length,s=r<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,o):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,o,i);else for(var a=t.length-1;a>=0;a--)(n=t[a])&&(s=(r<3?n(s):r>3?n(e,o,s):n(e,o))||s);return r>3&&s&&Object.defineProperty(e,o,s),s},jv=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return kv(e,t),e.prototype.postConstruct=function(){this.setBeans({gridSerializer:this.gridSerializer,gridOptionsService:this.gridOptionsService})},e.prototype.getMergedParams=function(t){var e=this.gridOptionsService.get("defaultCsvExportParams");return Object.assign({},e,t)},e.prototype.export=function(t){if(this.isExportSuppressed())return console.warn("AG Grid: Export cancelled. Export is not allowed as per your configuration."),"";var e=this.getMergedParams(t),o=this.getData(e),i=new Blob(["\ufeff",o],{type:"text/plain"});return xv.download(this.getFileName(e.fileName),i),o},e.prototype.exportDataAsCsv=function(t){return this.export(t)},e.prototype.getDataAsCsv=function(t,e){void 0===e&&(e=!1);var o=e?Object.assign({},t):this.getMergedParams(t);return this.getData(o)},e.prototype.getDefaultFileName=function(){return"export.csv"},e.prototype.getDefaultFileExtension=function(){return"csv"},e.prototype.createSerializingSession=function(t){var e=this.columnModel,o=this.valueService,i=this.gridOptionsService,n=t,r=n.processCellCallback,s=n.processHeaderCallback,a=n.processGroupHeaderCallback,l=n.processRowGroupCallback,u=n.suppressQuotes,c=n.columnSeparator;return new Vv({columnModel:e,valueService:o,gridOptionsService:i,processCellCallback:r||void 0,processHeaderCallback:s||void 0,processGroupHeaderCallback:a||void 0,processRowGroupCallback:l||void 0,suppressQuotes:u||!1,columnSeparator:c||","})},e.prototype.isExportSuppressed=function(){return this.gridOptionsService.is("suppressCsvExport")},Bv([U("columnModel")],e.prototype,"columnModel",void 0),Bv([U("valueService")],e.prototype,"valueService",void 0),Bv([U("gridSerializer")],e.prototype,"gridSerializer",void 0),Bv([U("gridOptionsService")],e.prototype,"gridOptionsService",void 0),Bv([B],e.prototype,"postConstruct",null),e=Bv([W("csvCreator")],e)}(Iv),Wv=function(){var t=function(e,o){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])})(e,o)};return function(e,o){function i(){this.constructor=e}t(e,o),e.prototype=null===o?Object.create(o):(i.prototype=o.prototype,new i)}}(),Uv=function(t,e,o,i){var n,r=arguments.length,s=r<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,o):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,o,i);else for(var a=t.length-1;a>=0;a--)(n=t[a])&&(s=(r<3?n(s):r>3?n(e,o,s):n(e,o))||s);return r>3&&s&&Object.defineProperty(e,o,s),s};!function(t){t[t.HEADER_GROUPING=0]="HEADER_GROUPING",t[t.HEADER=1]="HEADER",t[t.BODY=2]="BODY"}(ov||(ov={}));var zv=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Wv(e,t),e.prototype.serialize=function(t,e){void 0===e&&(e={});var o=this.getColumnsToExport(e.allColumns,e.columnKeys);return Xi.compose(this.prepareSession(o),this.prependContent(e),this.exportColumnGroups(e,o),this.exportHeaders(e,o),this.processPinnedTopRows(e,o),this.processRows(e,o),this.processPinnedBottomRows(e,o),this.appendContent(e))(t).parse()},e.prototype.processRow=function(t,e,o,i){var n=e.shouldRowBeSkipped||function(){return!1},r=this.gridOptionsService.context,s=this.gridOptionsService.api,a=this.gridOptionsService.columnApi,l=this.gridOptionsService.is("groupRemoveSingleChildren"),u=this.gridOptionsService.is("groupRemoveLowestSingleChildren"),c=null!=e.rowPositions||!!e.onlySelected,p=this.gridOptionsService.is("groupHideOpenParents")&&!c,d=this.columnModel.isPivotMode()?i.leafGroup:!i.group,h=e.skipGroups||e.skipRowGroups,f=u&&i.leafGroup,g=1===i.allChildrenCount&&(l||f);if((h&&e.skipGroups&&Xi.doOnce((function(){return console.warn("AG Grid: Since v25.2 `skipGroups` has been renamed to `skipRowGroups`.")}),"gridSerializer-skipGroups"),!(!d&&(e.skipRowGroups||g||p)||e.onlySelected&&!i.isSelected()||e.skipPinnedTop&&"top"===i.rowPinned||e.skipPinnedBottom&&"bottom"===i.rowPinned))&&((!(-1===i.level)||i.leafGroup||i.footer)&&!n({node:i,api:s,columnApi:a,context:r}))){var v=t.onNewBodyRow();if(o.forEach((function(t,e){v.onColumn(t,e,i)})),e.getCustomContentBelowRow){var y=e.getCustomContentBelowRow({node:i,api:s,columnApi:a,context:r});y&&t.addCustomContent(y)}}},e.prototype.appendContent=function(t){return function(e){var o=t.customFooter||t.appendContent;return o&&(t.customFooter&&Xi.doOnce((function(){return console.warn("AG Grid: Since version 25.2.0 the `customFooter` param has been deprecated. Use `appendContent` instead.")}),"gridSerializer-customFooter"),e.addCustomContent(o)),e}},e.prototype.prependContent=function(t){return function(e){var o=t.customHeader||t.prependContent;return o&&(t.customHeader&&Xi.doOnce((function(){return console.warn("AG Grid: Since version 25.2.0 the `customHeader` param has been deprecated. Use `prependContent` instead.")}),"gridSerializer-customHeader"),e.addCustomContent(o)),e}},e.prototype.prepareSession=function(t){return function(e){return e.prepare(t),e}},e.prototype.exportColumnGroups=function(t,e){var o=this;return function(i){if(t.skipColumnGroupHeaders)t.columnGroups&&Xi.doOnce((function(){return console.warn("AG Grid: Since v25.2 the `columnGroups` param has deprecated, and groups are exported by default.")}),"gridSerializer-columnGroups");else{var n=new se,r=o.displayedGroupCreator.createDisplayedGroups(e,o.columnModel.getGridBalancedTree(),n,null);o.recursivelyAddHeaderGroups(r,i,t.processGroupHeaderCallback)}return i}},e.prototype.exportHeaders=function(t,e){return function(o){if(t.skipHeader||t.skipColumnHeaders)t.skipHeader&&Xi.doOnce((function(){return console.warn("AG Grid: Since v25.2 the `skipHeader` param has been renamed to `skipColumnHeaders`.")}),"gridSerializer-skipHeader");else{var i=o.onNewHeaderRow();e.forEach((function(t,e){i.onColumn(t,e,void 0)}))}return o}},e.prototype.processPinnedTopRows=function(t,e){var o=this;return function(i){var n=o.processRow.bind(o,i,t,e);return t.rowPositions?t.rowPositions.filter((function(t){return"top"===t.rowPinned})).sort((function(t,e){return t.rowIndex-e.rowIndex})).map((function(t){return o.pinnedRowModel.getPinnedTopRow(t.rowIndex)})).forEach(n):o.pinnedRowModel.forEachPinnedTopRow(n),i}},e.prototype.processRows=function(t,e){var o=this;return function(i){var n=o.rowModel,r=n.getType(),s="clientSide"===r,a="serverSide"===r,l=!s&&t.onlySelected,u=o.processRow.bind(o,i,t,e),c=t.exportedRows,p=void 0===c?"filteredAndSorted":c;if(t.rowPositions)t.rowPositions.filter((function(t){return null==t.rowPinned})).sort((function(t,e){return t.rowIndex-e.rowIndex})).map((function(t){return n.getRow(t.rowIndex)})).forEach(u);else if(o.columnModel.isPivotMode())s?n.forEachPivotNode(u,!0):n.forEachNode(u);else if(t.onlySelectedAllPages||l){var d=o.selectionService.getSelectedNodes();o.replicateSortedOrder(d),d.forEach(u)}else"all"===p?n.forEachNode(u):s?n.forEachNodeAfterFilterAndSort(u,!0):a?n.forEachNodeAfterFilterAndSort(u):n.forEachNode(u);return i}},e.prototype.replicateSortedOrder=function(t){var e=this,o=this.sortController.getSortOptions(),i=function(t,n){var r,s,a,l;return null!=t.rowIndex&&null!=n.rowIndex?t.rowIndex-n.rowIndex:t.level===n.level?(null===(r=t.parent)||void 0===r?void 0:r.id)===(null===(s=n.parent)||void 0===s?void 0:s.id)?e.rowNodeSorter.compareRowNodes(o,{rowNode:t,currentPos:null!==(a=t.rowIndex)&&void 0!==a?a:-1},{rowNode:n,currentPos:null!==(l=n.rowIndex)&&void 0!==l?l:-1}):i(t.parent,n.parent):t.level>n.level?i(t.parent,n):i(t,n.parent)};t.sort(i)},e.prototype.processPinnedBottomRows=function(t,e){var o=this;return function(i){var n=o.processRow.bind(o,i,t,e);return t.rowPositions?t.rowPositions.filter((function(t){return"bottom"===t.rowPinned})).sort((function(t,e){return t.rowIndex-e.rowIndex})).map((function(t){return o.pinnedRowModel.getPinnedBottomRow(t.rowIndex)})).forEach(n):o.pinnedRowModel.forEachPinnedBottomRow(n),i}},e.prototype.getColumnsToExport=function(t,e){void 0===t&&(t=!1);var o=this.columnModel.isPivotMode();return e&&e.length?this.columnModel.getGridColumns(e):t&&!o?(this.gridOptionsService.isTreeData()?this.columnModel.getGridColumns(["ag-Grid-AutoColumn"]):[]).concat(this.columnModel.getAllPrimaryColumns()||[]):this.columnModel.getAllDisplayedColumns()},e.prototype.recursivelyAddHeaderGroups=function(t,e,o){var i=[];t.forEach((function(t){var e=t;e.getChildren&&e.getChildren().forEach((function(t){return i.push(t)}))})),t.length>0&&t[0]instanceof re&&this.doAddHeaderHeader(e,t,o),i&&i.length>0&&this.recursivelyAddHeaderGroups(i,e,o)},e.prototype.doAddHeaderHeader=function(t,e,o){var i=this,n=t.onNewHeaderGroupingRow(),r=0;e.forEach((function(t){var e,s=t;e=o?o({columnGroup:s,api:i.gridOptionsService.api,columnApi:i.gridOptionsService.columnApi,context:i.gridOptionsService.context}):i.columnModel.getDisplayNameForColumnGroup(s,"header");var a=s.getLeafColumns().reduce((function(t,e,o,i){var n=Xi.last(t);return"open"===e.getColumnGroupShow()?n&&null==n[1]||(n=[o],t.push(n)):n&&null==n[1]&&(n[1]=o-1),o===i.length-1&&n&&null==n[1]&&(n[1]=o),t}),[]);n.onColumn(s,e||"",r++,s.getLeafColumns().length-1,a)}))},Uv([U("displayedGroupCreator")],e.prototype,"displayedGroupCreator",void 0),Uv([U("columnModel")],e.prototype,"columnModel",void 0),Uv([U("rowModel")],e.prototype,"rowModel",void 0),Uv([U("pinnedRowModel")],e.prototype,"pinnedRowModel",void 0),Uv([U("selectionService")],e.prototype,"selectionService",void 0),Uv([U("rowNodeSorter")],e.prototype,"rowNodeSorter",void 0),Uv([U("sortController")],e.prototype,"sortController",void 0),e=Uv([W("gridSerializer")],e)}(Mt),Kv={version:"29.2.0",moduleName:Q.CsvExportModule,beans:[jv,zv]},Yv=function(){function t(){}return t.createHeader=function(t){void 0===t&&(t={});var e=["version"];return t.version||(t.version="1.0"),t.encoding&&e.push("encoding"),t.standalone&&e.push("standalone"),"<?xml "+e.map((function(e){return e+'="'+t[e]+'"'})).join(" ")+" ?>"},t.createXml=function(t,e){var o=this,i="";t.properties&&(t.properties.prefixedAttributes&&t.properties.prefixedAttributes.forEach((function(t){Object.keys(t.map).forEach((function(n){i+=o.returnAttributeIfPopulated(t.prefix+n,t.map[n],e)}))})),t.properties.rawMap&&Object.keys(t.properties.rawMap).forEach((function(n){i+=o.returnAttributeIfPopulated(n,t.properties.rawMap[n],e)})));var n="<"+t.name+i;return t.children||null!=t.textNode?null!=t.textNode?n+">"+t.textNode+"</"+t.name+">\r\n":(n+=">\r\n",t.children&&t.children.forEach((function(t){n+=o.createXml(t,e)})),n+"</"+t.name+">\r\n"):n+"/>\r\n"},t.returnAttributeIfPopulated=function(t,e,o){if(!e&&""!==e&&0!==e)return"";var i=e;return"boolean"==typeof e&&o&&(i=o(e))," "+t+'="'+i+'"'},t}(),qv=function(t){var e="function"==typeof Symbol&&Symbol.iterator,o=e&&t[e],i=0;if(o)return o.call(t);if(t&&"number"==typeof t.length)return{next:function(){return t&&i>=t.length&&(t=void 0),{value:t&&t[i++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")},Qv=new Uint32Array([0,1996959894,3993919788,2567524794,124634137,1886057615,3915621685,2657392035,249268274,2044508324,3772115230,2547177864,162941995,2125561021,3887607047,2428444049,498536548,1789927666,4089016648,2227061214,450548861,1843258603,4107580753,2211677639,325883990,1684777152,4251122042,2321926636,335633487,1661365465,4195302755,2366115317,997073096,1281953886,3579855332,2724688242,1006888145,1258607687,3524101629,2768942443,901097722,1119000684,3686517206,2898065728,853044451,1172266101,3705015759,2882616665,651767980,1373503546,3369554304,3218104598,565507253,1454621731,3485111705,3099436303,671266974,1594198024,3322730930,2970347812,795835527,1483230225,3244367275,3060149565,1994146192,31158534,2563907772,4023717930,1907459465,112637215,2680153253,3904427059,2013776290,251722036,2517215374,3775830040,2137656763,141376813,2439277719,3865271297,1802195444,476864866,2238001368,4066508878,1812370925,453092731,2181625025,4111451223,1706088902,314042704,2344532202,4240017532,1658658271,366619977,2362670323,4224994405,1303535960,984961486,2747007092,3569037538,1256170817,1037604311,2765210733,3554079995,1131014506,879679996,2909243462,3663771856,1141124467,855842277,2852801631,3708648649,1342533948,654459306,3188396048,3373015174,1466479909,544179635,3110523913,3462522015,1591671054,702138776,2966460450,3352799412,1504918807,783551873,3082640443,3233442989,3988292384,2596254646,62317068,1957810842,3939845945,2647816111,81470997,1943803523,3814918930,2489596804,225274430,2053790376,3826175755,2466906013,167816743,2097651377,4027552580,2265490386,503444072,1762050814,4150417245,2154129355,426522225,1852507879,4275313526,2312317920,282753626,1742555852,4189708143,2394877945,397917763,1622183637,3604390888,2714866558,953729732,1340076626,3518719985,2797360999,1068828381,1219638859,3624741850,2936675148,906185462,1090812512,3747672003,2825379669,829329135,1181335161,3412177804,3160834842,628085408,1382605366,3423369109,3138078467,570562233,1426400815,3317316542,2998733608,733239954,1555261956,3268935591,3050360625,752459403,1541320221,2607071920,3965973030,1969922972,40735498,2617837225,3943577151,1913087877,83908371,2512341634,3803740692,2075208622,213261112,2463272603,3855990285,2094854071,198958881,2262029012,4057260610,1759359992,534414190,2176718541,4139329115,1873836001,414664567,2282248934,4279200368,1711684554,285281116,2405801727,4167216745,1634467795,376229701,2685067896,3608007406,1308918612,956543938,2808555105,3495958263,1231636301,1047427035,2932959818,3654703836,1088359270,936918e3,2847714899,3736837829,1202900863,817233897,3183342108,3401237130,1404277552,615818150,3134207493,3453421203,1423857449,601450431,3009837614,3294710456,1567103746,711928724,3020668471,3272380065,1510334235,755167117]),Xv=function(){function t(){}return t.addFolders=function(t){t.forEach(this.addFolder.bind(this))},t.addFolder=function(t){this.folders.push({path:t,created:new Date,isBase64:!1})},t.addFile=function(t,e,o){void 0===o&&(o=!1),this.files.push({path:t,created:new Date,content:e,isBase64:o})},t.getContent=function(t){void 0===t&&(t="application/zip");var e=this.buildFileStream(),o=this.buildUint8Array(e);return this.clearStream(),new Blob([o],{type:t})},t.clearStream=function(){this.folders=[],this.files=[]},t.buildFileStream=function(t){var e,o;void 0===t&&(t="");var i=this.folders.concat(this.files),n=i.length,r="",s=0,a=0;try{for(var l=qv(i),u=l.next();!u.done;u=l.next()){var c=u.value,p=this.getHeader(c,s),d=p.fileHeader,h=p.folderHeader,f=p.content;s+=d.length+f.length,a+=h.length,t+=d+f,r+=h}}catch(t){e={error:t}}finally{try{u&&!u.done&&(o=l.return)&&o.call(l)}finally{if(e)throw e.error}}return t+r+this.buildFolderEnd(n,a,s)},t.getHeader=function(t,e){var o=t.content,i=t.path,n=t.created,r=t.isBase64,s=Xi.utf8_encode,a=Xi.decToHex,l=s(i),u=l!==i,c=this.convertTime(n),p=this.convertDate(n),d="";if(u){var h=a(1,1)+a(this.getFromCrc32Table(l),4)+l;d="up"+a(h.length,2)+h}var f=o?this.getConvertedContent(o,r):{size:0,content:""},g=f.size,v=f.content,y="\n\0"+(u?"\0\b":"\0\0")+"\0\0"+a(c,2)+a(p,2)+a(g?this.getFromCrc32Table(v):0,4)+a(g,4)+a(g,4)+a(l.length,2)+a(d.length,2);return{fileHeader:"PK\x03\x04"+y+l+d,folderHeader:"PK\x01\x02\x14\0"+y+"\0\0\0\0\0\0"+(o?"\0\0\0\0":"\x10\0\0\0")+a(e,4)+l+d,content:v||""}},t.getConvertedContent=function(t,e){return void 0===e&&(e=!1),e&&(t=t.split(";base64,")[1]),{size:(t=e?atob(t):t).length,content:t}},t.buildFolderEnd=function(t,e,o){var i=Xi.decToHex;return"PK\x05\x06\0\0\0\0"+i(t,2)+i(t,2)+i(e,4)+i(o,4)+"\0\0"},t.buildUint8Array=function(t){for(var e=new Uint8Array(t.length),o=0;o<e.length;o++)e[o]=t.charCodeAt(o);return e},t.getFromCrc32Table=function(t){if(!t.length)return 0;for(var e=t.length,o=new Uint8Array(e),i=0;i<e;i++)o[i]=t.charCodeAt(i);var n=-1,r=0;for(i=0;i<e;i++)r=o[i],n=n>>>8^Qv[255&(n^r)];return-1^n},t.convertTime=function(t){var e=t.getHours();return e<<=6,e|=t.getMinutes(),e<<=5,e|=t.getSeconds()/2},t.convertDate=function(t){var e=t.getFullYear()-1980;return e<<=4,e|=t.getMonth()+1,e<<=5,e|=t.getDate()},t.folders=[],t.files=[],t}(),Jv=[Rv,Mv,Kv];export{sc as AbstractHeaderCellCtrl,In as AgAbstractField,Ln as AgAbstractLabel,Qn as AgCheckbox,Gd as AgDialog,pd as AgGroupComponent,Sr as AgInputNumberField,rd as AgInputRange,id as AgInputTextArea,Cr as AgInputTextField,_d as AgMenuItemComponent,Rd as AgMenuList,Td as AgMenuPanel,Fd as AgPanel,Hn as AgPickerField,$i as AgPromise,Yi as AgPromiseStatus,Jn as AgRadioButton,Un as AgSelect,ld as AgSlider,Ie as AgStackComponentsRegistry,ed as AgToggleButton,ch as AlignedGridsService,Jv as AllCommunityModules,ps as AnimateShowChangeCellRenderer,fs as AnimateSlideCellRenderer,yp as AnimationFrameService,Ka as AutoScrollService,wp as AutoWidthCalculator,U as Autowired,_g as BarColumnLabelPlacement,Bg as BaseComponentWrapper,Iv as BaseCreator,Gv as BaseGridSerializingSession,W as Bean,Mt as BeanStub,hl as Beans,xu as BodyDropPivotTarget,Wu as BodyDropTarget,Ug as CHART_TOOLBAR_ALLOW_LIST,Wg as CHART_TOOL_PANEL_ALLOW_LIST,zg as CHART_TOOL_PANEL_MENU_OPTIONS,Du as CellComp,Ol as CellCtrl,sh as CellNavigationService,Hf as CellPositionUtils,ol as CellRangeType,Bp as ChangedPath,ws as CheckboxSelectionComponent,Rv as ClientSideRowModelModule,Sa as ClientSideRowModelSteps,Vt as ColDefUtil,nt as Column,mh as ColumnApi,Ht as ColumnFactory,re as ColumnGroup,u as ColumnKeyCreator,Te as ColumnModel,_e as ColumnUtils,cn as Component,Yt as ComponentUtil,V as Context,Ku as CssClassApplier,sn as CssClassManager,jv as CsvCreator,Kv as CsvExportModule,ag as CtrlsService,rn as CustomTooltipFeature,jg as DEFAULT_CHART_GROUPS,ur as DateFilter,Fe as DisplayedGroupCreator,xv as Downloader,bs as DragAndDropService,Oa as DragService,br as DragSourceType,Cf as Environment,Z as EventService,kt as Events,Os as ExcelFactoryMode,bh as ExpressionService,Fa as FilterManager,va as FloatingFilterMapper,jd as FocusService,ue as GROUP_AUTO_COLUMN_ID,Vg as Grid,Da as GridApi,hu as GridBodyComp,il as GridBodyCtrl,Vh as GridComp,kg as GridCoreCreator,Gh as GridCtrl,tp as GridHeaderComp,Jc as GridHeaderCtrl,Ag as GridOptionsService,zv as GridSerializer,Hs as GroupCellRenderer,Is as GroupCellRendererCtrl,se as GroupInstanceIdCreator,Oc as HeaderCellCtrl,xa as HeaderFilterCellComp,gc as HeaderFilterCellCtrl,Lc as HeaderGroupCellCtrl,ec as HeaderNavigationDirection,qc as HeaderNavigationService,Jf as HeaderPositionUtils,oc as HeaderRowComp,zc as HeaderRowContainerComp,jc as HeaderRowContainerCtrl,xc as HeaderRowCtrl,Mu as HeaderRowType,Pr as HorizontalDirection,ip as HorizontalResizeService,Mv as InfiniteRowModelModule,Gi as KeyCode,os as LargeTextCellEditor,Pa as LayoutCssClasses,Lg as LocaleService,Lh as Logger,Fh as LoggerFactory,On as ManagedFocusFeature,Q as ModuleNames,tt as ModuleRegistry,Cu as MouseEventService,ku as MoveColumnFeature,Ru as NavigationService,Dr as NumberFilter,Ji as NumberSequence,z as Optional,Xp as PaginationProxy,Vp as PinnedRowModel,$r as PopupComponent,Tu as PopupEditorWrapper,Qd as PopupService,Pn as PositionableFeature,B as PostConstruct,k as PreConstruct,j as PreDestroy,Wt as PropertyKeys,st as ProvidedColumnGroup,An as ProvidedFilter,Y as Qualifier,pn as QuerySelector,dn as RefSelector,fp as ResizeObserverService,ka as RowAnimationCssClasses,Iu as RowContainerComp,uu as RowContainerCtrl,_l as RowContainerName,Al as RowContainerType,Fl as RowCtrl,wa as RowHighlightPosition,vs as RowNode,Wp as RowNodeBlock,Yp as RowNodeBlockLoader,ng as RowNodeSorter,If as RowPositionUtils,Fp as RowRenderer,ov as RowType,nr as ScalarFilter,vu as ScrollVisibleService,rs as SelectCellEditor,Tf as SelectableService,el as SelectionHandleType,pp as ServerSideTransactionResultStatus,uc as SetLeftFeature,or as SimpleFilter,Uh as SortController,zr as SortIndicatorComp,sp as StandardMenuFactory,$p as StylingService,kp as TabGuardClassNames,Cd as TabGuardComp,gd as TabGuardCtrl,up as TabbedLayout,Dh as TemplateService,ls as TextCellEditor,Fr as TextFilter,Br as TextFloatingFilter,tn as Timer,jr as TouchListener,Ca as UserComponentFactory,Zs as UserComponentRegistry,of as ValueCache,Gp as ValueFormatterService,Sh as ValueService,eh as VanillaFrameworkOverrides,Tr as VerticalDirection,Zd as VirtualList,Yv as XmlFactory,Xv as ZipContainer,Xi as _,Kg as __FORCE_MODULE_DETECTION,ru as getRowContainerTypeForName,cp as simpleHttpRequest};
\No newline at end of file