ag-grid-community
Version:
Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue
68 lines • 1.07 MB
JavaScript
/**
* @ag-grid-community/all-modules - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue * @version v29.2.0
* @link https://www.ag-grid.com/
* @license MIT
*/
/**
* @ag-grid-community/all-modules - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue * @version v29.2.0
* @link https://www.ag-grid.com/
* @license MIT
*/
/**
* @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue
* @version v29.2.0
* @link https://www.ag-grid.com/
* @license MIT
*/
function 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}();
/**
* @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue
* @version v29.2.0
* @link https://www.ag-grid.com/
* @license MIT
*/
/**
* @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue
* @version v29.2.0
* @link https://www.ag-grid.com/
* @license MIT
*/
function 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={};
/**
* @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue
* @version v29.2.0
* @link https://www.ag-grid.com/
* @license MIT
*/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}
/**
* @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue
* @version v29.2.0
* @link https://www.ag-grid.com/
* @license MIT
*/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={}));
/**
* @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue
* @version v29.2.0
* @link https://www.ag-grid.com/
* @license MIT
*/
var $=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"}};
/**
* @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue
* @version v29.2.0
* @link https://www.ag-grid.com/
* @license MIT
*/
/**
* @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue
* @version v29.2.0
* @link https://www.ag-grid.com/
* @license MIT
*/
function 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={};
/**
* @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue
* @version v29.2.0
* @link https://www.ag-grid.com/
* @license MIT
*/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=O